/* O'Vestiaire — La carte */

/* ---------- Barre de rubriques collante ---------- */
.catbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 9, 4, .9); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--alv-hair);
  transition: top var(--alv-dur-hover) var(--alv-ease-out);
}
html[data-hdr="shown"] .catbar { top: var(--alv-header-h-compact); }
.catbar__scroll { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--alv-gutter); overscroll-behavior-x: contain; }
.catbar__scroll::-webkit-scrollbar { display: none; }
.catbar a {
  position: relative; z-index: 1; flex: none; padding: 16px 16px; border-radius: 10px;
  font: 700 13px/1 var(--alv-font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--alv-ink-soft);
  transition: color var(--alv-dur-s), background-color var(--alv-dur-s);
}
.catbar a:first-of-type { margin-left: auto; }
.catbar a:last-of-type { margin-right: auto; }
.catbar a:hover { color: var(--alv-ink); background: rgba(247, 219, 142, .08); }
.catbar a[aria-current="true"] { color: #1A1206; background: var(--alv-gold-fill); }
/* Pastille or posée par carte.js : elle glisse sous l'onglet actif (transform + largeur d'une couche absolue, aucun effet sur la mise en page).
   Sans JS, ou avant son placement, le fond de aria-current reste. */
.catbar__pill { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 10px; background: var(--alv-gold-fill); pointer-events: none; transition: transform var(--alv-dur-s) var(--alv-ease-out), width var(--alv-dur-s) var(--alv-ease-out), opacity var(--alv-dur-xs); }
.catbar.has-pill a[aria-current="true"] { background: none; }
.catbar a { cursor: pointer; }

/* ---------- Rubriques en onglets : une seule ouverte à la fois (toutes pendant une recherche) ---------- */
.js .carte-sec.is-off { display: none; }  /* sans JS : toutes les rubriques restent lisibles */
.js.is-searching .carte-sec.is-off { display: block; }
.carte-sec { min-height: 62vh; }

/* ---------- Rubrique suivante (carte.js) : section « À suivre », entre À emporter et la mention légale ----------
   Un lien ordinaire. Au survol et au focus, le pinceau or se peint de gauche à droite sous le nom de la rubrique suivante ;
   le texte passe du crème au brun sur l'or, à la même frontière (deux couches superposées), il reste lisible à tout instant.
   Au doigt, rien de particulier : le toucher ouvre la rubrique (balayage au pinceau or, carte.js). */
.carte-next { position: relative; padding-block: clamp(56px, 6vw, 88px); background: var(--alv-bg); border-top: 1px solid var(--alv-hair); overflow: hidden; }
.carte-next.trame::before { opacity: .3; }
.carte-next__inner { display: grid; justify-items: center; gap: 16px; text-align: center; }
.carte-next__kicker { margin: 0; }
.carte-next__link { position: relative; display: block; isolation: isolate; padding: 20px 52px 19px 40px; border-radius: 6px; }
.carte-next__link:focus-visible { outline-offset: 6px; }
.carte-next__link::before, .carte-next__fill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  -webkit-mask: url("../img/marque/pinceau-or-2.png") center / 100% 100% no-repeat; mask: url("../img/marque/pinceau-or-2.png") center / 100% 100% no-repeat;
}
.carte-next__link::before { background: rgba(247, 219, 142, .1); } /* au repos : l'empreinte du pinceau */
.carte-next__fill { position: absolute; inset: 0; padding: inherit; isolation: isolate; clip-path: inset(-12px 100% -12px -12px); transition: clip-path var(--alv-dur-hover) var(--alv-ease-out); }
.carte-next__fill::before { background: var(--alv-gold-brush); }
.carte-next__txt { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; font: 700 clamp(24px, 2.4vw, 32px)/1 var(--alv-font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--alv-cream); }
.carte-next__fill .carte-next__txt { color: #1A1206; }
.carte-next__txt svg { width: .9em; height: .9em; flex: none; transition: transform var(--alv-dur-s) var(--alv-ease-out); }
/* survol (souris), focus clavier, et la copie figée pendant le balayage : le pinceau plein, la flèche avance ;
   le lien lui-même ne bouge pas (la cible reste sous le pointeur) */
.carte-next__link:focus-visible .carte-next__fill, .carte-next__link.is-on .carte-next__fill { clip-path: inset(-12px); }
.carte-next__link:focus-visible .carte-next__txt svg, .carte-next__link.is-on .carte-next__txt svg { transform: translateX(8px); }
@media (hover: hover) {
  .carte-next__link:hover .carte-next__fill { clip-path: inset(-12px); }
  .carte-next__link:hover .carte-next__txt svg { transform: translateX(8px); }
}
.is-searching .carte-next { display: none; }

/* Le passage (carte.js) : copie figée de l'écran découpée par le pinceau or qui la traverse ; sous la barre et l'en-tête.
   Le calque arrête le pointeur le temps du passage (un clic y termine le passage, il ne tombe jamais sur la rubrique cachée).
   Tout ce qui bouge bouge en transform : le cadre incliné de la copie (__wrap, son bord gauche suit le pinceau) et son contenu
   (__old, décalé en sens inverse, donc immobile à l'écran), les traits, et le reflet (<b>) qui file dans chaque trait. */
.carte-sweep { position: fixed; inset: 0; z-index: 29; overflow: hidden; }
.carte-sweep__wrap { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; background: var(--alv-bg); transform-origin: 0 50%; will-change: transform; }
.carte-sweep__old { position: absolute; left: 0; top: 0; width: 100vw; height: 100%; transform-origin: 0 50%; will-change: transform; }
.carte-sweep__brush {
  position: absolute; left: 0; top: 0; overflow: hidden;
  -webkit-mask: url("../img/marque/pinceau-or-1.png") center / 100% 100% no-repeat; mask: url("../img/marque/pinceau-or-1.png") center / 100% 100% no-repeat;
  will-change: transform;
}
.carte-sweep__brush b { position: absolute; left: 0; top: 0; bottom: 0; width: 220%; background: var(--alv-gold-brush); will-change: transform; } /* le reflet file le long du trait */
.carte-sweep__brush--echo { -webkit-mask-image: url("../img/marque/pinceau-or-3.png"); mask-image: url("../img/marque/pinceau-or-3.png"); }
.carte-sweep__brush--echo b { background: var(--alv-gold-brush-echo); }

/* Mouvement réduit : le pinceau du lien se pose sans tracé, la pastille sans glisser */
@media (prefers-reduced-motion: reduce) {
  .carte-next__fill, .carte-next__txt svg, .catbar__pill { transition: none; }
}

/* ---------- Sections de la carte ---------- */
.carte-sec .sec-head { margin-bottom: 44px; }
.carte-sec .sec-head:not(:has(.lead)) { grid-template-columns: 1fr; }
.carte-sec .sec-head[id], .carte-sec [id="midi"] { scroll-margin-top: 150px; }
#tour-du-monde { scroll-margin-top: 100px; } /* le bloc a 48 à 80 px de marge haute : son titre se pose sous la barre */

/* Liste de plats : nom, prix doré, description — comme la carte imprimée */
.dish-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(36px, 5vw, 84px); }
.dish {
  break-inside: avoid; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline;
  position: relative; padding: 14px 0 16px;
}
/* Filet pointillé : une couche que carte.js trace à l'entrée du panneau (variable --rule de 0 à 1) */
.dish::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: repeating-linear-gradient(90deg, rgba(247, 219, 142, .2) 0 4px, transparent 4px 8px); transform-origin: left; transform: scaleX(var(--rule, 1)); }
.dish__name { font: 700 19px/1.15 var(--alv-font-label); letter-spacing: .05em; text-transform: uppercase; color: var(--alv-ink); }
.dish__price { font: 700 20px/1 var(--alv-font-label); letter-spacing: .04em; white-space: nowrap; }
.dish__price:empty { display: none; }
.dish__desc { grid-column: 1 / -1; margin: 5px 0 0; font-size: 15px; line-height: 1.45; color: var(--alv-ink-soft); }
.dish--moment::after { background: var(--alv-hair); }
.dish-list--lead .dish--moment { column-span: all; margin-bottom: 4px; }
.dish--moment mark { display: inline-block; padding: 4px 10px 3px; border-radius: 4px; background: var(--alv-cream); color: #1A1206; }

.group + .group { margin-top: 64px; }
.group h3 { margin-bottom: 8px; font-size: clamp(26px, 2.4vw, 34px); }
.group__note { margin: 0 0 18px; font: 600 15px/1.4 var(--alv-font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--alv-ink-soft); }

/* ---------- Ardoise du jour ---------- */
.midi { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.midi .lead { margin: 26px 0 24px; max-width: 36ch; }
.midi__facts { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; font: 600 15px/1.4 var(--alv-font-label); letter-spacing: .08em; text-transform: uppercase; }
.midi__facts li { display: flex; align-items: center; gap: 12px; }
.midi__facts svg { width: 18px; height: 18px; color: var(--alv-gold-solid); flex: none; }
.midi__facts a:hover { color: var(--alv-ink); }


/* ---------- Planches : cartes (téléphone : liste) ---------- */
.planches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.planches-grid .planche { min-height: 270px; }
.planches-grid .planche h3 { margin-top: 14px; font-size: clamp(28px, 2.5vw, 38px); line-height: .95; letter-spacing: -.03em; }

/* ---------- Tartares : liste + polaroïd ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 24vw, 320px); gap: clamp(36px, 6vw, 96px); align-items: start; }
.with-aside .dish-list { columns: 1; }
.tartare-shot { position: sticky; top: 170px; }

/* ---------- Fraîcheurs du moment ---------- */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; margin-top: clamp(48px, 5vw, 72px);
  border-radius: var(--alv-radius-lg); overflow: hidden; border: 1px solid var(--alv-line); background: var(--alv-surface); box-shadow: var(--alv-shadow-1);
}
.feature .media img { aspect-ratio: 1402 / 1122; }
.feature__body { padding: clamp(26px, 3.4vw, 52px); display: grid; gap: 16px; align-content: center; justify-items: start; }
.feature__body p { margin: 0; color: var(--alv-ink-soft); }

/* ---------- Tour du monde ---------- */
.worlds { display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(72px, 8vw, 120px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--alv-hair); align-items: start; }
.worlds__col, .emporter__col { perspective: 900px; }
.worlds__body .lead { margin-top: 22px; }
.world-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.world:last-child:nth-child(odd) { grid-column: 1 / -1; } /* nombre impair de burgers (continent américain : 3) : la dernière carte prend la rangée */
.world { position: relative; padding: 20px 22px 22px; border-radius: var(--alv-radius); background: var(--alv-surface); border: 1px solid var(--alv-hair); transition: border-color .4s, transform .5s var(--alv-ease-out); }
.world:hover { border-color: var(--alv-line); transform: translateY(-3px); }
.world__n { font: 400 15px/1 var(--alv-font-display); }
.world h4 { margin: 8px 0; font: 400 24px/1 var(--alv-font-display); text-transform: uppercase; letter-spacing: -.02em; color: var(--alv-cream); }
.world p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--alv-ink-soft); }

/* ---------- Menu kids ---------- */
.kids { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: none; padding: clamp(26px, 3.4vw, 44px) clamp(24px, 4vw, 56px); border-radius: var(--alv-radius-lg); border: 1px solid var(--alv-line); background: var(--alv-surface); box-shadow: var(--alv-shadow-1); }
.kids__price { display: grid; gap: 10px; justify-items: start; }
.kids__price b { font: 400 clamp(56px, 6vw, 84px)/.9 var(--alv-font-display); letter-spacing: -.04em; }
.kids__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font: 700 clamp(20px, 2vw, 28px)/1.15 var(--alv-font-label); text-transform: uppercase; letter-spacing: .03em; }
.kids__list i { font-style: normal; background: var(--alv-gold); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- Desserts ---------- */
.desserts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.dessert { overflow: hidden; display: flex; flex-direction: column; }
.dessert .media { aspect-ratio: 3 / 4; }
.dessert__body { display: grid; gap: 10px; padding: 22px 24px 26px; align-content: start; flex: 1; }
.dessert__body p { margin: 0; font-size: 15px; color: var(--alv-ink-soft); }
.dessert__body small { font-size: 13px; line-height: 1.45; color: var(--alv-ink-soft); }
.tl-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--alv-ink-soft); }
.tl-list b { display: block; font: 700 14px/1.3 var(--alv-font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--alv-cream); }

/* ---------- Les « du moment » : l'ardoise du jour et les plats à découvrir, côte à côte ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(28px, 4vw, 56px); align-items: stretch; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 210px; padding: 28px 28px 30px; overflow: hidden; isolation: isolate;
  border-radius: var(--alv-radius-lg); background: var(--alv-surface); border: 1px solid var(--alv-line); box-shadow: var(--alv-shadow-1);
  transition: transform .55s var(--alv-ease-out), box-shadow .55s var(--alv-ease-out), border-color .4s;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/marque/trame-courbes.jpg") right center / cover; mix-blend-mode: screen; opacity: .28; transition: opacity .6s, transform 1.2s var(--alv-ease-out); }
.tile:hover, .tile:focus-visible { transform: translateY(-6px); box-shadow: var(--alv-shadow-2), var(--alv-glow-gold); border-color: rgba(247, 219, 142, .8); }
.tile:hover::before { opacity: .5; transform: scale(1.06); }
.tile__label { font: 700 13px/1.3 var(--alv-font-label); letter-spacing: .18em; text-transform: uppercase; color: var(--alv-ink-soft); }
.tile__val { display: block; font: 400 clamp(34px, 3.6vw, 54px)/.95 var(--alv-font-display); text-transform: uppercase; letter-spacing: -.04em; }
.tile__val--sm { font-size: clamp(26px, 2.5vw, 38px); padding-top: .12em; }
.tile__desc { margin: 0; font-size: 15px; line-height: 1.45; color: var(--alv-ink-soft); max-width: 30ch; }
.tile--gold { background: var(--alv-gold-fill); border-color: transparent; color: #120C04; box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .8); }
.tile--gold::before { mix-blend-mode: multiply; opacity: .22; }
.tile--gold .tile__label { color: #5A140C; }
.tile--gold .tile__desc { color: #2A1608; }
.carte-sec--moment .worlds { margin-top: clamp(80px, 8vw, 120px); }
.carte-sec--moment .feature, .carte-sec--moment .desserts { margin-top: clamp(72px, 7vw, 104px); }

/* ---------- À emporter ---------- */
.emporter { background: var(--alv-bg-raised); border-top: 1px solid var(--alv-hair); }
.emporter__grid { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.poster--tall { aspect-ratio: 2 / 3; }
.emporter .lead { max-width: 38ch; }

.carte-legal { margin: 0 auto; padding-block: 28px 56px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--alv-ink-soft); }
.carte-legal a { text-decoration: underline; text-underline-offset: 3px; }
.carte-legal a:hover { color: var(--alv-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .planches-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* bords de la barre qui s'efface : on voit qu'elle défile */
  .catbar__scroll { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--alv-gutter), #000 calc(100% - var(--alv-gutter)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--alv-gutter), #000 calc(100% - var(--alv-gutter)), transparent); }
  .dish-list { columns: 1; }
  .midi, .worlds, .emporter__grid, .feature, .bento { grid-template-columns: 1fr; }
  .with-aside { grid-template-columns: 1fr; }
  .tartare-shot { position: static; order: -1; width: min(56%, 240px); margin: 0 0 12px 6px; }
  .worlds__col { max-width: 420px; }
  .emporter__col { max-width: 340px; }
  .carte-sec .sec-head[id], .carte-sec [id="midi"] { scroll-margin-top: 150px; }
}
@media (max-width: 640px) {
  .catbar a { padding: 16px 13px; }
  .catbar a:first-of-type, .catbar a:last-of-type { margin: 0; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { min-height: 0; padding: 22px 22px 24px; gap: 14px; }
  .dish__name { font-size: 17px; }
  .dish__price { font-size: 19px; }
  .planches-grid { display: block; }
  .planches-grid .planche { min-height: 0; padding: 16px 0 17px; border: 0; border-bottom: 1px dashed rgba(247, 219, 142, .2); border-radius: 0; background: none; box-shadow: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 4px; transform: none !important; }
  .planches-grid .planche__top { display: none; }
  .planches-grid .planche h3 { margin: 0; font-size: 25px; grid-column: 1; }
  .planches-grid .planche p { grid-column: 1 / -1; grid-row: 2; }
  .planches-grid .planche .price { grid-column: 2; grid-row: 1; margin: 0; font-size: 20px; align-self: baseline; }
  .world-list { grid-template-columns: 1fr; }
  .kids { grid-template-columns: 1fr; gap: 20px; }
  .desserts {
    display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--alv-gutter); gap: 14px; touch-action: pan-x pan-y;
    margin-inline: calc(-1 * var(--alv-gutter)); padding: 6px var(--alv-gutter) 18px; scrollbar-width: none; overscroll-behavior-x: contain; align-items: flex-start; /* chaque carte à sa hauteur : sinon un grand vide sous les profiteroles */
  }
  .desserts::-webkit-scrollbar { display: none; }
  .desserts > * { flex: 0 0 78%; scroll-snap-align: start; }
  .emporter__col { max-width: 260px; }
}
@media (max-width: 900px) { .with-aside { gap: 16px; } }

.search-count { min-height: 1.4em; margin: 12px 0 0; font: 600 14px/1.4 var(--alv-font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--alv-ink-soft); }
.search-count:empty { visibility: hidden; }
.planches-grid .planche h3 { line-height: 1.08; } /* « Veggie Vélodrome » : l’accent de la 2e ligne ne touche plus la 1re */
/* les polaroïds viennent de la carte imprimée en 371 px : on ne les agrandit pas au-delà de 260 px */
.tartare-shot { max-width: 260px; justify-self: center; }

/* ---------- Desserts : trois photos maison sous les affiches ---------- */
.dessert-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 24px); margin-top: clamp(28px, 4vw, 56px); }
.dessert-photos figure { margin: 0; border-radius: var(--alv-radius); border: 1px solid var(--alv-line); box-shadow: var(--alv-shadow-2); overflow: hidden; }
.dessert-photos img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 640px) {
  .dessert-photos { grid-template-columns: repeat(2, 1fr); }
  .dessert-photos figure:first-child { grid-column: 1 / -1; }
  .dessert-photos figure:first-child img { aspect-ratio: 4 / 3; }
}

/* ---------- Tarif d'un spécial (facultatif : absent tant que la fiche n'en porte pas) ---------- */
.special-price { margin: 0; font: 700 20px/1.2 var(--alv-font-label); letter-spacing: .04em; }
.worlds__body .special-price { margin-top: 18px; }
.world__price { display: block; margin: -2px 0 8px; font: 700 18px/1 var(--alv-font-label); letter-spacing: .04em; white-space: nowrap; }
.tl-price { margin-left: 6px; letter-spacing: .04em; white-space: nowrap; }
/* Servi en entrée et en plat : un prix par portion, alignés à droite l'un sous l'autre */
.dish__price--formules { display: grid; justify-items: end; gap: 6px; }
.dish__price--formules small { margin-right: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--alv-ink-soft); }
