/* Pomo d'Oro, site d'exemple dsprt. Voir DESIGN.md (planches validées le 2026-11-14). */
@font-face { font-family: "Bodoni Moda"; src: url(polices/bodoni.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(polices/bodoni-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Switzer"; src: url(polices/switzer-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url(polices/switzer-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --rosso: #D9261C;
  --rosso-fonce: #B41C14;
  --crema: #FFF4DC;
  --blu: #18245E;
  --blu-clair: #24338A;
  --giallo: #FFC72C;
  --giallo-clair: #FFD75E;
  --verde: #0F7A45;
  --blanc: #FFFFFF;
  --filet-bleu: rgba(24, 36, 94, .2);
  --filet-creme: rgba(255, 244, 220, .45);
  --titre: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --texte: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marge: clamp(20px, 5vw, 72px);
  --section: clamp(88px, 11vw, 168px);
  --t-h1: clamp(34px, 3.5vw, 48px);
  --t-h2: clamp(28px, 2.7vw, 36px);
  --sortie: cubic-bezier(.22, 1, .36, 1);
  --rebond: cubic-bezier(.34, 1.45, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--crema); color: var(--blu); font: 400 16px/1.6 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
h1, h2, h3 { font-family: var(--titre); font-weight: 500; line-height: 1.12; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--giallo); color: var(--blu); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.cadre { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--marge); }
.evitement { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--blu); color: var(--crema); padding: 12px 16px; }
.evitement:focus { top: 12px; }
.repere { font: 500 13px/1.4 var(--texte); letter-spacing: .2em; text-transform: uppercase; }

/* Le filet d'étiquette : un trait fin à l'intérieur du bloc */
.etiquette { outline: 1px solid var(--rosso); outline-offset: -10px; }

/* ---------- Boutons et liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 0; font: 500 15px/1 var(--texte); text-decoration: none; cursor: pointer; transition: background-color .18s ease-out, transform .18s var(--sortie); }
.btn:active { transform: scale(.97); }
.btn-jaune { background: var(--giallo); color: var(--blu); }
.btn-rouge { background: var(--rosso); color: var(--crema); }
.btn-bleu { background: var(--blu); color: var(--crema); }
.lien { background: none; border: 0; padding: 0 0 3px; font: 500 15px/1.2 var(--texte); text-decoration: none; border-bottom: 1px solid currentColor; cursor: pointer; transition: color .18s ease-out; }
@media (hover: hover) {
  .btn-jaune:hover { background: var(--giallo-clair); }
  .btn-rouge:hover { background: var(--rosso-fonce); }
  .btn-bleu:hover { background: var(--blu-clair); }
  .lien:hover { color: var(--rosso); }
  .lien-clair:hover { color: var(--giallo); }
}

/* ---------- En-tête ---------- */
/* Fond crème par défaut. Avec le script, elle est transparente tant qu'on est sur le haut de page rouge. */
.entete { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--crema); color: var(--blu); box-shadow: 0 1px 0 var(--filet-bleu); transition: background-color .25s ease-out, color .25s ease-out, box-shadow .25s ease-out; }
.entete-cadre { display: flex; align-items: center; gap: 32px; height: 68px; }
.marque { display: flex; align-items: baseline; gap: 12px; font: 500 italic 26px/1 var(--titre); color: var(--rosso); text-decoration: none; white-space: nowrap; transition: color .25s ease-out; }
.marque span { font: 500 11px/1 var(--texte); letter-spacing: .2em; text-transform: uppercase; color: var(--blu); transition: color .25s ease-out; }
.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a { font-size: 15px; text-decoration: none; padding: 12px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size .25s var(--sortie); }
@media (hover: hover) { .menu a:hover { background-size: 100% 1px; } }
.entete .entete-resa { background: var(--rosso); color: var(--crema); }
@media (hover: hover) { .entete .entete-resa:hover { background: var(--rosso-fonce); } }
.js .entete.en-haut { background: none; color: var(--crema); box-shadow: none; }
.js .entete.en-haut .marque { color: var(--giallo); }
.js .entete.en-haut .marque span { color: var(--crema); }
.js .entete.en-haut .entete-resa { background: var(--giallo); color: var(--blu); }
@media (hover: hover) { .js .entete.en-haut .entete-resa:hover { background: var(--giallo-clair); } }

/* ---------- Haut de page ---------- */
.haut { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding-top: 68px; background: var(--rosso); color: var(--crema); overflow: hidden; }
.haut::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--filet-creme); pointer-events: none; z-index: 2; }
.haut-grille { flex: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 96px); align-items: center; padding-block: clamp(28px, 5vh, 64px); }
.haut-texte .repere { margin-bottom: 20px; }
.haut-texte h1 { max-width: 15ch; }
.haut-phrase { max-width: 46ch; margin-top: 20px; font-size: 18px; line-height: 1.55; }
.haut-etat { margin-top: 20px; font: 500 italic 24px/1.3 var(--titre); color: var(--giallo); }
.haut-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }

.haut-images { position: relative; justify-self: end; width: min(100%, 560px); aspect-ratio: 56 / 60; }
.haut-plat { position: absolute; right: 0; top: 0; width: 66%; }
.haut-pizza { position: absolute; left: 0; bottom: 0; width: 40%; }
.haut-plat img, .haut-pizza img { width: 100%; }
.haut-plat img { aspect-ratio: 4 / 5; object-fit: cover; }
.haut-images figcaption { margin-top: 8px; font-size: 13px; }
.haut-plat figcaption { text-align: right; }
.haut-pizza figcaption { position: absolute; left: 0; top: 100%; white-space: nowrap; }
.haut-tomate { position: absolute; left: 4%; top: -4%; width: 46%; z-index: 3; will-change: transform; }
.haut-tomate img { width: 100%; filter: drop-shadow(0 22px 20px rgba(0, 0, 0, .3)); }

.haut-infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 20px 30px; position: relative; }
.haut-infos::before { content: ""; position: absolute; left: var(--marge); right: var(--marge); top: 0; border-top: 1px solid var(--filet-creme); }
.haut-infos dt { font: 500 12px/1.4 var(--texte); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.haut-infos dd { font-size: 15px; line-height: 1.5; }

/* ---------- La carte ---------- */
.carte { background: var(--blu); color: var(--crema); padding-block: var(--section); }
.carte-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.carte-etiquette { background: var(--crema); color: var(--blu); padding: clamp(36px, 4vw, 60px) clamp(22px, 4vw, 60px); outline: 1px solid var(--rosso); outline-offset: -10px; }
.carte-etiquette h2 { font-style: italic; font-size: clamp(36px, 3.4vw, 48px); color: var(--rosso); text-align: center; }
.carte-sous { text-align: center; margin-top: 10px; font-size: 15px; }
.onglets { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; margin: 28px 0 8px; padding-bottom: 14px; border-bottom: 1px solid var(--filet-bleu); }
.onglets button { background: none; border: 0; min-height: 44px; padding: 0 2px; font: 500 13px/1 var(--texte); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; background: linear-gradient(var(--rosso), var(--rosso)) 50% calc(100% - 8px) / 0 2px no-repeat; transition: color .18s ease-out, background-size .3s var(--sortie); }
.onglets button[aria-selected="true"] { color: var(--rosso); background-size: 100% 2px; }
@media (hover: hover) { .onglets button:hover { color: var(--rosso); } }
.famille h3 { font-size: 24px; font-style: italic; color: var(--rosso); margin: 28px 0 6px; }
.famille-note { font-size: 14px; margin: 14px 0 2px; text-align: center; }
.js .famille h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.js .famille[hidden] { display: none; }
.plat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; width: 100%; min-height: 56px; padding: 12px 0; background: none; border: 0; border-bottom: 1px dotted rgba(24, 36, 94, .45); text-align: left; cursor: pointer; transition: color .18s ease-out; }
.plat-nom { grid-column: 1; font-weight: 500; font-size: 17px; transition: transform .3s var(--sortie); }
.plat-detail { grid-column: 1; font-size: 14px; line-height: 1.4; opacity: .85; transition: transform .3s var(--sortie); }
.plat-prix { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 20px/1 var(--titre); white-space: nowrap; }
.plat.actif { color: var(--rosso); }
.plat.actif .plat-nom, .plat.actif .plat-detail { transform: translateX(10px); }
.carte-pied { margin-top: 26px; font-size: 14px; text-align: center; }

.assiette { position: sticky; top: 108px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.assiette-rond { position: relative; width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; }
.assiette-rond::before { content: ""; position: absolute; inset: -14px; border: 1px solid var(--filet-creme); border-radius: 50%; }
.assiette-rond img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 24px 40px rgba(0, 0, 0, .4); }
.assiette figcaption { display: flex; flex-direction: column; gap: 4px; margin: 34px 0 22px; min-height: 68px; }
#assiette-nom { font: 500 italic 28px/1.15 var(--titre); color: var(--giallo); }
#assiette-prix { font-size: 15px; }

/* ---------- Bandeau qui défile ---------- */
.defile { background: var(--giallo); color: var(--blu); overflow: hidden; padding: 16px 0 18px; }
.defile-piste { display: flex; width: max-content; }
.defile p { font: 500 italic clamp(26px, 3vw, 40px)/1.2 var(--titre); white-space: nowrap; }
.defile i { font-style: normal; color: var(--rosso); padding-inline: .35em; }

/* ---------- La sauce : scène au défilement ---------- */
.recette { position: relative; background: var(--blu); color: var(--crema); }
.recette-colle { position: relative; padding-block: var(--section); }
.recette-fonds { display: none; }
.recette-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.recette .repere { color: var(--giallo); }
.recette-etapes { display: grid; gap: 40px; margin-top: 32px; }
.recette-heure { font: 500 clamp(48px, 5vw, 72px)/1 var(--titre); color: var(--giallo); }
.recette-etapes h3 { font-size: var(--t-h2); margin-top: 10px; }
.recette-etapes li > p:not(.recette-heure) { max-width: 40ch; margin-top: 12px; font-size: 18px; line-height: 1.55; }
.recette-etapes .recette-direct { font: 500 italic 20px/1.35 var(--titre); }
.recette-direct:empty { display: none; }
.recette-rond { position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: center; }
.recette-cadran { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.recette-cadran circle { fill: none; }
.cadran-fond { stroke: currentColor; stroke-width: .5; opacity: .45; }
.cadran-plein { stroke: var(--giallo); stroke-width: 2.4; stroke-dasharray: 100; stroke-dashoffset: 0; }
.recette-images { position: absolute; inset: 9%; }
.recette-images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; opacity: 0; }
.recette-images img:last-child { opacity: 1; box-shadow: 0 24px 40px rgba(0, 0, 0, .3); }
.recette-images .recette-tomate { object-fit: contain; border-radius: 0; }
.recette-suite { display: none; }

/* Avec le script et sans réglage « moins d'animations » : la scène reste à l'écran et se joue en 4 temps */
@media (prefers-reduced-motion: no-preference) {
  .js .recette { height: 420vh; }
  .js .recette-colle { position: sticky; top: 0; height: 100svh; padding-block: 68px 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .js .recette-fonds { display: block; position: absolute; inset: 0; }
  .js .recette-fonds span { position: absolute; inset: 0; transform: translateY(101%); transition: transform .8s var(--sortie); }
  .js .recette-fonds span:nth-child(1) { background: var(--blu); transform: none; }
  .js .recette-fonds span:nth-child(2) { background: var(--rosso); }
  .js .recette-fonds span:nth-child(3) { background: var(--giallo); }
  .js .recette-fonds span:nth-child(4) { background: var(--crema); }
  .js .recette[data-etape="1"] .recette-fonds span:nth-child(-n+2),
  .js .recette[data-etape="2"] .recette-fonds span:nth-child(-n+3),
  .js .recette[data-etape="3"] .recette-fonds span { transform: none; }
  .js .recette-grille { position: relative; }
  .js .recette-colle { transition: color .4s ease-out .15s; }
  .js .recette[data-etape="2"] .recette-colle, .js .recette[data-etape="3"] .recette-colle { color: var(--blu); }
  .js .recette[data-etape="2"] .repere, .js .recette[data-etape="3"] .repere,
  .js .recette[data-etape="2"] .recette-heure, .js .recette[data-etape="3"] .recette-heure { color: var(--rosso); }
  .js .recette[data-etape="1"] .repere { color: var(--crema); }
  .js .recette .repere, .js .recette-heure { transition: color .4s ease-out .15s; }
  .js .recette[data-etape="2"] .cadran-plein, .js .recette[data-etape="3"] .cadran-plein { stroke: var(--rosso); }

  .js .recette-etapes { position: relative; display: block; min-height: 300px; margin-top: 28px; }
  .js .recette-etapes li { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(36px); transition: opacity .35s ease-out, transform .6s var(--sortie); pointer-events: none; }
  .js .recette[data-etape="0"] li:nth-child(1), .js .recette[data-etape="1"] li:nth-child(2),
  .js .recette[data-etape="2"] li:nth-child(3), .js .recette[data-etape="3"] li:nth-child(4) { opacity: 1; transform: none; transition-delay: .18s; pointer-events: auto; }
  .js .recette[data-etape="1"] li:nth-child(1), .js .recette[data-etape="2"] li:nth-child(-n+2), .js .recette[data-etape="3"] li:nth-child(-n+3) { transform: translateY(-36px); }

  .js .recette-rond { width: min(100%, 52vh, 480px); }
  .js .recette-images img, .js .recette-images img:last-child { opacity: 0; transform: scale(.6) rotate(-50deg); transition: opacity .35s ease-out, transform .8s var(--rebond); }
  .js .recette[data-etape="0"] .recette-images img:nth-child(1), .js .recette[data-etape="1"] .recette-images img:nth-child(2),
  .js .recette[data-etape="2"] .recette-images img:nth-child(3), .js .recette[data-etape="3"] .recette-images img:nth-child(4) { opacity: 1; transform: none; transition-delay: .12s; }
  .js .recette[data-etape="0"] .recette-images .recette-tomate { transform: rotate(var(--tour, 0deg)); transition: opacity .35s ease-out; }
  .js .recette-suite { display: block; position: absolute; left: 0; right: 0; bottom: 26px; font: 500 13px/1 var(--texte); letter-spacing: .2em; }
}

/* ---------- Ce qui sort de la cuisine ---------- */
.cuisine { background: var(--giallo); color: var(--blu); padding-block: var(--section); overflow: hidden; }
.cuisine-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); align-items: end; }
.cuisine-tete h2 { max-width: 15ch; }
.cuisine-tete p { max-width: 46ch; margin-bottom: 22px; font-size: 18px; line-height: 1.55; }
.cuisine-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.cuisine-grille figure { overflow: visible; }
.cuisine-grille img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cuisine-grille figcaption { margin-top: 10px; font-size: 14px; line-height: 1.4; }
.cuisine-b { margin-top: clamp(32px, 6vw, 96px); }
.cuisine-c { margin-top: clamp(12px, 2vw, 32px); }
.cuisine-d { margin-top: clamp(48px, 9vw, 144px); }

/* ---------- La salle ---------- */
.salle { position: relative; background: var(--blu); }
.salle-photo { display: block; overflow: hidden; }
.salle-photo img { width: 100%; height: min(88vh, 860px); object-fit: cover; }
.salle-cadre { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(20px, 4vw, 56px); pointer-events: none; }
.salle-texte { max-width: 480px; background: var(--crema); color: var(--blu); padding: clamp(28px, 3vw, 44px); pointer-events: auto; }
.salle-texte p { margin-top: 14px; }

/* ---------- Le nom ---------- */
.nom { background: var(--crema); }
.nom-ciel { position: relative; height: min(92vh, 900px); min-height: 520px; overflow: hidden; color: var(--crema); background: var(--blu); }
.nom-ciel picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.3); }
.nom-ciel::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(rgba(16, 24, 66, 0), rgba(16, 24, 66, .72)); pointer-events: none; } /* voile sous le titre posé sur le tableau */
.nom-tomate { position: absolute; right: 12%; top: 16%; width: clamp(200px, 32vw, 460px); z-index: 1; }
.nom-tomate img { width: 100%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .3)); }
.nom-titre { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(32px, 5vw, 72px); }
.nom-titre h2 { font-size: var(--t-h1); max-width: 16ch; }
.nom-titre em { color: var(--giallo); }
.nom-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding-block: var(--section); }
.nom-texte { max-width: 56ch; }
.accroche { font: 500 clamp(22px, 2vw, 28px)/1.35 var(--titre); color: var(--rosso); }
.nom-texte p + p { margin-top: 20px; font-size: 18px; line-height: 1.6; }
.nom-planche { max-width: 300px; justify-self: center; }
.nom-planche img { width: 100%; outline: 1px solid var(--rosso); outline-offset: 8px; }
.nom-planche figcaption { margin-top: 22px; font-size: 13px; line-height: 1.5; }

/* ---------- Réserver ---------- */
.reserver { position: relative; background: var(--rosso); color: var(--crema); padding-block: var(--section); overflow: hidden; }
.reserver::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--filet-creme); pointer-events: none; }
.reserver-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.reserver-intro { position: sticky; top: 120px; }
.reserver-tomate { width: clamp(140px, 16vw, 230px); margin: 0 0 28px -10px; }
.reserver-tomate img { width: 100%; filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .3)); }
.reserver-intro h2 { font-size: var(--t-h1); }
.reserver-intro p { max-width: 38ch; margin-top: 16px; font-size: 18px; line-height: 1.55; }
.resa { position: relative; background: var(--crema); color: var(--blu); padding: clamp(32px, 4vw, 56px) clamp(22px, 4vw, 56px); display: grid; gap: 26px; }
.champ label, .champ legend { display: block; font: 500 13px/1.3 var(--texte); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.champ input[type="date"], .champ input[type="text"], .champ input[type="tel"], .champ input[type="number"] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--blu); border-radius: 0; background: var(--blanc); color: var(--blu); font: 400 16px/1 var(--texte); -webkit-appearance: none; appearance: none; transition: box-shadow .15s ease-out; }
.champ input:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--giallo); }
.champ-aide { margin-top: 8px; font-size: 14px; }
.champ-aide.alerte { color: var(--rosso); font-weight: 500; }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.creneaux { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.creneaux-service { grid-column: 1 / -1; font-size: 14px; margin-top: 4px; }
.creneau { position: relative; display: block; margin: 0; }
.creneau input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.creneau span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--blu); background: var(--blanc); font: 500 15px/1.1 var(--texte); letter-spacing: 0; text-transform: none; transition: background-color .15s ease-out, color .15s ease-out, transform .15s var(--sortie); }
.creneau small { font-size: 11px; font-weight: 400; margin-top: 3px; }
.creneau input:checked + span { background: var(--blu); color: var(--crema); }
.creneau input:focus-visible + span { box-shadow: 0 0 0 3px var(--giallo); }
.creneau input:disabled { cursor: not-allowed; }
.creneau input:disabled + span { border-color: var(--filet-bleu); background: none; color: rgba(24, 36, 94, .62); }
.creneau input:active:not(:disabled) + span { transform: scale(.96); }
@media (hover: hover) { .creneau input:not(:disabled):not(:checked):hover + span { background: var(--giallo); } }
.compteur { display: grid; grid-template-columns: 48px 88px 48px; }
.compteur input[type="number"] { text-align: center; border-inline: 0; -moz-appearance: textfield; }
.compteur input::-webkit-outer-spin-button, .compteur input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.compteur-btn { height: 48px; border: 1px solid var(--blu); border-radius: 0; background: var(--blanc); font-size: 20px; cursor: pointer; transition: background-color .15s ease-out; }
.compteur-btn:disabled { color: rgba(24, 36, 94, .4); cursor: not-allowed; }
@media (hover: hover) { .compteur-btn:not(:disabled):hover { background: var(--giallo); } }
.resa-erreur { color: var(--rosso); font-weight: 500; }
.resa-erreur:empty { display: none; }
.resa-envoyer { justify-self: start; min-height: 52px; padding-inline: 30px; font-size: 16px; }
.resa-ok { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: clamp(32px, 4vw, 56px); background: var(--crema); outline: 1px solid var(--rosso); outline-offset: -10px; }
.resa-ok[hidden] { display: none; }
.resa-ok-titre { font: 500 var(--t-h2)/1.2 var(--titre); color: var(--rosso); }

/* ---------- Questions ---------- */
.questions { background: var(--crema); padding-block: var(--section); }
.questions-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.questions h2 { position: sticky; top: 120px; max-width: 14ch; }
.questions details { border-top: 1px solid var(--filet-bleu); }
.questions details:last-child { border-bottom: 1px solid var(--filet-bleu); }
.questions summary { position: relative; list-style: none; cursor: pointer; padding: 20px 48px 20px 0; font: 500 21px/1.3 var(--titre); transition: color .18s ease-out; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::before, .questions summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--rosso); transition: transform .3s var(--sortie); }
.questions summary::after { transform: rotate(90deg); }
.questions details[open] summary::after { transform: rotate(0deg); }
.questions details[open] summary { color: var(--rosso); }
.questions details p { max-width: 58ch; padding: 0 48px 22px 0; }
@media (hover: hover) { .questions summary:hover { color: var(--rosso); } }

/* ---------- Horaires et accès ---------- */
.trouver { background: var(--blu); color: var(--crema); padding-block: var(--section) clamp(64px, 8vw, 112px); }
.trouver-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.trouver h2 { max-width: 14ch; }
.horaires { margin-top: 32px; border-top: 1px solid var(--filet-creme); }
.horaires > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--filet-creme); }
.horaires dt { font-weight: 500; }
.horaires dd { font-variant-numeric: tabular-nums; }
.adresse { font-style: normal; margin: 28px 0 28px; line-height: 1.7; }
.plan-cadre { position: relative; overflow: hidden; outline: 1px solid var(--giallo); outline-offset: 8px; }
.plan-cadre > img:first-child { width: 100%; }
.plan-repere { position: absolute; left: 47%; top: 44%; width: clamp(54px, 7vw, 92px); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
.trouver-plan figcaption { margin-top: 22px; font-size: 13px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--blu); color: var(--crema); padding-bottom: 40px; }
.pied-haut { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, 1fr); gap: 32px; align-items: end; padding-block: 48px 40px; position: relative; }
.pied-haut::before, .pied-bas::before { content: ""; position: absolute; left: var(--marge); right: var(--marge); top: 0; border-top: 1px solid var(--filet-creme); }
.pied-nom { font: 500 italic clamp(48px, 6vw, 72px)/1 var(--titre); color: var(--giallo); }
.pied-liens { display: grid; gap: 2px; }
.pied-liens a { font-size: 15px; text-decoration: none; padding: 5px 0; }
.pied-coord { font-size: 15px; line-height: 1.7; }
.pied-bas { position: relative; padding-top: 24px; display: grid; gap: 10px; }
.pied-note, .pied-credits { font-size: 13px; line-height: 1.55; max-width: 110ch; }
.pied-credits { opacity: .8; }
@media (hover: hover) { .pied-liens a:hover, .pied-note a:hover { color: var(--giallo); } }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 1023px) {
  .menu a:nth-child(2) { display: none; }
  .carte-grille { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; }
}
@media (max-width: 759px) {
  html { scroll-padding-top: 60px; }
  .entete-cadre { height: 60px; gap: 12px; }
  .marque { font-size: 23px; }
  .marque span { display: none; }
  .menu { display: none; }
  .entete-resa { margin-left: auto; }

  .haut { padding-top: 60px; }
  .haut-grille { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 12px; align-items: start; }
  .haut-phrase { font-size: 17px; }
  .haut-actions .btn { flex: 1 1 auto; }
  .haut-images { justify-self: stretch; width: 100%; aspect-ratio: 100 / 86; margin-top: 8px; }
  .haut-plat { width: 62%; }
  .haut-pizza { width: 40%; bottom: 6%; }
  .haut-tomate { left: 0; top: -2%; width: 44%; }
  .haut-infos { grid-template-columns: 1fr; gap: 16px; padding-block: 20px 34px; margin-top: 28px; }

  .carte-grille { grid-template-columns: 1fr; gap: 28px; }
  .assiette { position: static; order: -1; }
  .assiette-rond { width: min(64vw, 300px); }
  .assiette figcaption { margin: 28px 0 0; min-height: 0; }
  .assiette .btn { display: none; }
  .onglets { gap: 0 20px; }
  .plat-nom { font-size: 16px; }

  .js .recette { height: 380vh; }
  .recette-grille { grid-template-columns: 1fr; gap: 20px; }
  .recette-rond { grid-row: 1; width: min(62vw, 34vh, 300px); justify-self: start; }
  .recette-etapes li > p:not(.recette-heure) { font-size: 17px; }
  .recette-heure { font-size: 48px; }

  .cuisine-tete { grid-template-columns: 1fr; }
  .cuisine-grille { display: flex; gap: 12px; margin-inline: calc(-1 * var(--marge)); padding-inline: var(--marge); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cuisine-grille::-webkit-scrollbar { display: none; }
  .cuisine-grille figure { flex: 0 0 68vw; margin-top: 0; scroll-snap-align: center; }

  .salle-photo img { height: 64vh; }
  .salle-cadre { position: static; padding: 0; }
  .salle-texte { max-width: none; outline-offset: -8px; }

  .nom-ciel { height: 78vh; }
  .nom-tomate { right: 8%; top: 14%; width: 56vw; }
  .nom-grille { grid-template-columns: 1fr; }
  .nom-planche { max-width: 220px; justify-self: start; margin-left: 8px; }

  .reserver-grille, .questions-grille, .trouver-grille { grid-template-columns: 1fr; }
  .reserver-intro, .questions h2 { position: static; }
  .champ-duo { grid-template-columns: 1fr; }
  .creneaux { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .resa-envoyer { justify-self: stretch; }
  .questions summary { font-size: 19px; }
  .trouver-plan { margin-inline: 8px; }
  .pied-haut { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Page « Le mur des plats » : une pièce tapissée de photos carrées ---------- */
.page-mur { background: var(--crema); color: var(--blu); height: 100svh; overflow: hidden; touch-action: none; overscroll-behavior: none; }
.page-mur .entete { position: relative; z-index: 3; }
.mur { position: fixed; inset: 0; z-index: 0; overflow: hidden; perspective: var(--p, 1200px); perspective-origin: 50% 50%; }
.mur::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 72% 68% at 50% 50%, rgba(255, 244, 220, 0) 58%, var(--crema) 100%); } /* fondu des bords vers le fond */
.mur-boite { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; will-change: transform; }
.mur-face { position: absolute; transform-style: preserve-3d; }
.mur-face img { position: absolute; display: block; object-fit: cover; max-width: none; opacity: 0; transition: opacity .9s ease-out; transition-delay: var(--d, 0ms); }
.mur.pret .mur-face img { opacity: 1; }
.js .mur-liste { display: none; }
.mur-liste { list-style: none; margin: 0; padding: 96px var(--marge) 320px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; height: 100%; overflow: auto; }
.mur-liste img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mur-panneau { position: fixed; z-index: 3; left: var(--marge); bottom: clamp(20px, 5vh, 48px); width: min(460px, calc(100% - 2 * var(--marge))); background: var(--rosso); color: var(--crema); padding: 34px; outline: 1px solid var(--filet-creme); outline-offset: -10px; }
.mur-panneau h1 { font-size: var(--t-h1); font-style: italic; color: var(--giallo); }
.mur-panneau p { margin-top: 14px; }
.mur-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 22px; }
@media (max-width: 759px) {
  .mur-panneau { left: 12px; right: 12px; width: auto; bottom: max(12px, env(safe-area-inset-bottom)); padding: 26px 24px; }
  .mur-panneau h1 { font-size: var(--t-h2); }
  .mur-panneau p { font-size: 15px; margin-top: 8px; }
  .mur-detail { display: none; }
  .mur-actions { margin-top: 16px; gap: 4px 20px; }
  .mur-boite { top: 40%; }
  .mur { perspective-origin: 50% 40%; }
  .mur-actions .btn { flex: 1 1 auto; }
}

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Le premier écran : le texte monte, les photos se posent, la tomate tombe et rebondit */
  .js .haut-texte > * { animation: monte .8s var(--sortie) both; }
  .js .haut-texte > :nth-child(1) { animation-delay: .05s; }
  .js .haut-texte > :nth-child(2) { animation-delay: .12s; }
  .js .haut-texte > :nth-child(3) { animation-delay: .2s; }
  .js .haut-texte > :nth-child(4) { animation-delay: .28s; }
  .js .haut-texte > :nth-child(5) { animation-delay: .36s; }
  .js .haut-plat { animation: pose .9s .1s var(--sortie) both; }
  .js .haut-pizza { animation: pose .9s .28s var(--sortie) both; }
  .js .haut-infos > div { animation: monte .8s var(--sortie) both; animation-delay: .5s; }
  .js .haut-infos > div:nth-child(2) { animation-delay: .58s; }
  .js .haut-infos > div:nth-child(3) { animation-delay: .66s; }
  .js .haut-tomate img { animation: tombe 1.25s .45s both; }

  /* Bandeau */
  .defile-piste { animation: defile 38s linear infinite; }

  /* Entrées en cascade : le texte seulement, les photos sont toujours là */
  .js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .8s var(--sortie); transition-delay: var(--d, 0ms); }
  .js [data-r].vu { opacity: 1; transform: none; }

  /* La carte : l'assiette arrive en tournant */
  .assiette-rond img.entre { animation: assiette-entre .7s var(--rebond) both; }
  .assiette-rond img.sort { animation: assiette-sort .3s ease-in both; }
  #assiette-nom.change, #assiette-prix.change { animation: monte .45s var(--sortie) both; }
  .js .famille.entre .plat { animation: monte .5s var(--sortie) both; animation-delay: calc(var(--i, 0) * 45ms); }

  /* La tomate de la réservation arrive en roulant, celle du ciel flotte, le repère tombe sur le plan */
  .js .reserver-tomate { transform: translateX(-70vw) rotate(-560deg); transition: transform 1.5s var(--sortie); }
  .js .reserver-intro.vu .reserver-tomate { transform: none; }
  .nom-tomate img { animation: flotte 7s ease-in-out infinite; }
  .js .plan-repere { opacity: 0; translate: 0 -140px; transition: opacity .25s ease-out, translate .9s var(--rebond); transition-delay: .35s; }
  .js .trouver-plan.vu .plan-repere { opacity: 1; translate: 0 0; }

  .questions details[open] p { animation: monte .4s var(--sortie) both; }

  /* Au défilement : le ciel et la salle reculent, les photos de la cuisine glissent à des vitesses différentes */
  @supports (animation-timeline: view()) {
    .nom-ciel picture img { animation: recule linear both; animation-timeline: view(); animation-range: cover; }
    .salle-photo img { animation: recule linear both; animation-timeline: view(); animation-range: cover; }
    .nom-tomate { animation: glisse-haut linear both; animation-timeline: view(); animation-range: cover; }
    @media (min-width: 760px) {
      .cuisine-a, .cuisine-c { animation: glisse-a linear both; animation-timeline: view(); animation-range: cover; }
      .cuisine-b, .cuisine-d { animation: glisse-b linear both; animation-timeline: view(); animation-range: cover; }
    }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .cuisine-grille img, .haut-plat img, .haut-pizza img { transition: transform .5s var(--sortie); }
  .cuisine-grille figure:hover img { transform: scale(1.03) rotate(-.6deg); }
}
@keyframes monte { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pose { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tombe {
  0% { transform: translateY(-130vh) rotate(-220deg); animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  52% { transform: translateY(0) rotate(0deg) scale(1.06, .92); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  70% { transform: translateY(-9%) rotate(8deg) scale(1); animation-timing-function: cubic-bezier(.5, 0, .8, .6); }
  86% { transform: translateY(0) rotate(12deg) scale(1.03, .97); }
  100% { transform: translateY(0) rotate(12deg); }
}
@keyframes defile { to { transform: translateX(-50%); } }
@keyframes assiette-entre { from { opacity: 0; transform: scale(.55) rotate(-70deg); } to { opacity: 1; transform: none; } }
@keyframes assiette-sort { to { opacity: 0; transform: scale(.85) rotate(40deg); } }
@keyframes flotte { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(-2deg); } }
@keyframes recule { from { transform: scale(1.14) translateY(-3%); } to { transform: scale(1.02) translateY(3%); } }
@keyframes glisse-haut { from { transform: translateY(30%); } to { transform: translateY(-30%); } }
@keyframes glisse-a { from { transform: translateY(36px); } to { transform: translateY(-36px); } }
@keyframes glisse-b { from { transform: translateY(-28px); } to { transform: translateY(28px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
