/* ============================================================
   CAURI BAR RESTAURANT — « La carte nocturne »
   Vert forêt profond · crème papier · or cauri · basilic
   Display : Fraunces (italique) — Texte : Schibsted Grotesk
   ============================================================ */

:root {
  --vert-nuit:    #0b2214;
  --vert-sombre:  #081a0f;
  --vert-carte:   #133622;
  --vert-basilic: #a4cf3f;
  --vert-basilic-fonce: #5e8a1e;
  --creme:        #f5eedb;
  --creme-2:      #ece1c4;
  --encre:        #13291a;
  --encre-douce:  #3d5343;
  --or:           #d3a63b;
  --or-doux:      #e8c76c;
  --tomate:       #d9542e;
  --tomate-fonce: #b23f1c;
  --wa:           #1fa855;
  --wa-fonce:     #157a3d;
  --wa-sombre:    #0f5c2e;

  --f-display: "Fraunces", "Georgia", serif;
  --f-texte: "Schibsted Grotesk", "Helvetica Neue", sans-serif;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scroll-padding-bottom: 7.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--creme);
  background-color: var(--vert-nuit);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; line-height: 1.05; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

abbr[title] { text-decoration: none; }

.wrap {
  width: min(72rem, 100% - 2.5rem);
  margin-inline: auto;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: none;
  vertical-align: -0.2em;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -4rem; left: 1rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--or);
  color: var(--encre);
  font-weight: 700;
  border-radius: .35rem;
  transition: top .2s;
}
.skip-link:focus { top: .75rem; }

:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
  border-radius: .2rem;
}

::selection { background: var(--vert-basilic); color: var(--encre); }

/* focus lisible sur les fonds clairs */
.carte :focus-visible { outline-color: var(--encre); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 3rem;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-wa {
  background: var(--wa-fonce);
  color: #fff;
  box-shadow: 0 4px 0 var(--vert-sombre);
}
.btn-wa:hover { background: var(--wa-sombre); box-shadow: 0 6px 0 var(--vert-sombre); }

.btn-creme {
  background: var(--creme);
  color: var(--encre);
  box-shadow: 0 4px 0 rgba(8, 26, 15, .65);
}
.btn-creme:hover { background: #fff; }

.btn-petit { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-bloc { justify-content: center; width: 100%; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 26, 15, .9);
  background: color-mix(in srgb, var(--vert-sombre) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 238, 219, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand img { border-radius: 50%; }
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .02em;
  line-height: 1;
}
.brand-name small {
  font-family: var(--f-texte);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--or-doux);
  margin-top: .3rem;
}

.nav-liste {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-liste a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--creme);
  padding-block: .4rem;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-liste a:not(.btn):hover {
  color: var(--vert-basilic);
  border-bottom-color: var(--vert-basilic);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem; height: 2.75rem;
  background: none;
  border: 1px solid rgba(245, 238, 219, .25);
  border-radius: .6rem;
  cursor: pointer;
}
.nav-toggle-barre,
.nav-toggle-barre::before,
.nav-toggle-barre::after {
  position: absolute;
  left: 50%;
  width: 1.25rem; height: 2px;
  background: var(--creme);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
  content: "";
}
.nav-toggle-barre { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle-barre::before { content: ""; left: 0; top: -7px; }
.nav-toggle-barre::after  { content: ""; left: 0; top: 7px; }

[aria-expanded="true"] .nav-toggle-barre { background: transparent; }
[aria-expanded="true"] .nav-toggle-barre::before { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle-barre::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Héro ---------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
  isolation: isolate;
  overflow: hidden;
}

.hero-fond {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(211, 166, 59, .14), transparent 60%),
    radial-gradient(50rem 36rem at -10% 110%, rgba(164, 207, 63, .1), transparent 55%),
    var(--vert-nuit);
}
.hero-fond::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas:
    "lieu scene"
    "titre scene"
    "sous scene"
    "actions scene"
    "prix scene";
  align-content: center;
  align-items: start;
  column-gap: 2rem;
  text-align: left;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-lieu { grid-area: lieu; align-self: center; }
.hero-titre { grid-area: titre; position: relative; z-index: 1; }
.hero-sous { grid-area: sous; }
.hero-actions { grid-area: actions; }
.hero-prix { grid-area: prix; }

.hero-scene {
  grid-area: scene;
  align-self: center;
  position: relative;
  z-index: 0;
  pointer-events: none;
  margin: -1.5rem -2.5rem -1.5rem -4.5rem;
}
.hero-scene svg {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(calc(var(--defil, 0) * 42px));
}

.hero-lieu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--or-doux);
}

.statut {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: .75rem;
  padding: .25rem .75rem;
  font-size: .75rem;
  letter-spacing: .08em;
  white-space: nowrap;
  border-radius: 2rem;
  border: 1px solid currentColor;
}
.statut::before {
  content: "";
  flex: none;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: currentColor;
}
.statut--ouvert { color: var(--vert-basilic); }
.statut--ferme  { color: var(--or-doux); }
.statut[hidden] { display: none; }

.hero-titre {
  margin-block: 1.4rem .5rem;
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 9vw, 5.75rem);
  font-weight: 620;
  letter-spacing: -.015em;
  color: var(--creme);
}
.hero-titre > span, .hero-titre > em { display: block; }
.hero-titre em {
  font-style: italic;
  font-weight: 900;
  white-space: nowrap;
  color: var(--vert-basilic);
  text-shadow: 0 4px 40px rgba(164, 207, 63, .25);
}
.hero-titre .excl { color: var(--or); }

.hero-sous {
  max-width: 32rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(245, 238, 219, .82);
  color: color-mix(in srgb, var(--creme) 82%, transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-prix {
  margin-top: 1.5rem;
  font-size: .95rem;
  color: rgba(245, 238, 219, .7);
  color: color-mix(in srgb, var(--creme) 70%, transparent);
}
.hero-prix strong { color: var(--or-doux); font-weight: 700; }

/* Bandeau défilant */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(245, 238, 219, .12);
  background: var(--vert-sombre);
  padding-block: .8rem;
}
.marquee-piste {
  display: flex;
  align-items: center;
  width: max-content;
  animation: defile 26s linear infinite;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: .06em;
  color: var(--or-doux);
  white-space: nowrap;
}
/* marge par enfant (et non gap) : -50 % retombe exactement sur la période */
.marquee-piste > * { margin-right: 2.5rem; }
.marquee-piste i { font-style: normal; color: var(--vert-basilic); }

.marquee:hover .marquee-piste,
.marquee.en-pause .marquee-piste { animation-play-state: paused; }

.marquee-pause {
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  padding: 0;
  background: var(--vert-nuit);
  color: var(--or-doux);
  border: 1px solid rgba(245, 238, 219, .25);
  border-radius: 50%;
  cursor: pointer;
}
.marquee-pause .ico { width: .9rem; height: .9rem; }
.marquee-pause .ico-lecture { display: none; }
.marquee.en-pause .ico-pause { display: none; }
.marquee.en-pause .ico-lecture { display: block; }

@keyframes defile {
  to { transform: translateX(-50%); }
}

/* ---------- Sections communes ---------- */

.section-tete {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.surtitre {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--tomate-fonce);
  margin-bottom: .75rem;
}
.section-tete h2 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  color: var(--encre);
}
.section-tete--claire h2 { color: var(--creme); }
.section-tete--claire .surtitre { color: var(--vert-basilic); }
.section-note {
  margin-top: .9rem;
  color: var(--encre-douce);
}

/* ---------- La carte (fond crème, bord festonné) ---------- */

.carte {
  position: relative;
  background-color: var(--creme);
  background-image: var(--grain);
  background-blend-mode: multiply;
  color: var(--encre);
  padding-block: clamp(4rem, 9vw, 7rem);
  scroll-margin-top: 4rem;
}
/* feston haut et bas */
.carte::before,
.carte::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.1rem;
  background-image: radial-gradient(circle at 50% 0, var(--creme) 1.05rem, transparent 1.15rem);
  background-size: 2.2rem 2.2rem;
  background-repeat: repeat-x;
}
.carte::before { top: -1.05rem; transform: scaleY(-1); }
.carte::after {
  bottom: -1.35rem;
  height: 1.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,10 L48,15 L96,7 L150,17 L210,9 L264,19 L318,6 L372,14 L430,8 L488,18 L540,10 L600,16 L660,6 L718,15 L780,9 L836,19 L894,7 L950,14 L1010,8 L1064,17 L1122,10 L1180,18 L1236,7 L1290,15 L1348,9 L1400,16 L1440,10 L1440,0 Z' fill='%23f5eedb'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.pizzas {
  max-width: 46rem;
  margin-inline: auto;
  display: grid;
  gap: .4rem;
}

.pizza {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas:
    "photo texte pointille prix"
    "photo texte pointille cmd";
  align-items: center;
  column-gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.25rem;
  transition: background-color .2s ease, transform .2s ease;
}
.pizza:hover { background: rgba(19, 41, 26, .05); }
.pizza + .pizza { border-top: 1px dashed rgba(19, 41, 26, .18); border-radius: 0 0 1.25rem 1.25rem; }

.pizza-medaillon {
  grid-area: photo;
  position: relative;
  width: 86px; height: 86px;
}
.pizza-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--or);
  box-shadow: 0 4px 0 rgba(19, 41, 26, .22);
  transition: transform .25s ease;
}
.medaillon-anneau {
  position: absolute;
  inset: -9px;
  width: calc(100% + 18px); height: calc(100% + 18px);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.pizza:hover .pizza-photo { transform: scale(1.06) rotate(-3deg); }
.pizza:hover .medaillon-anneau { transform: rotate(24deg); }

.pizza-texte { grid-area: texte; }

.pizza-nom {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  letter-spacing: .01em;
}
.pizza-compo {
  margin-top: .25rem;
  font-size: .92rem;
  color: var(--encre-douce);
}

.pointille {
  grid-area: pointille;
  align-self: center;
  width: clamp(1.5rem, 6vw, 4.5rem);
  height: 3px;
  background-image: radial-gradient(circle, rgba(19, 41, 26, .38) 1.2px, transparent 1.5px);
  background-size: 8px 3px;
  background-repeat: repeat-x;
}
.pizza:hover .pointille { animation: pointille-coule .6s linear infinite; }
@keyframes pointille-coule { to { background-position-x: 8px; } }

.pizza-prix {
  grid-area: prix;
  justify-self: end;
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--encre-douce);
  white-space: nowrap;
}
.pizza-prix strong {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--encre);
}

.pizza-cmd {
  grid-area: cmd;
  justify-self: end;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wa-fonce);
  border-bottom: 2px solid currentColor;
  padding-bottom: .1rem;
  transition: color .15s;
}
.pizza-cmd:hover { color: var(--wa-sombre); }

.carte-mention {
  position: relative;
  max-width: 40rem;
  margin: 3rem auto 0;
  padding: 1.2rem 2.4rem;
  text-align: center;
  font-size: .98rem;
  background: var(--creme-2);
  border-radius: 1rem;
  box-shadow: 0 4px 0 rgba(19, 41, 26, .18);
  color: var(--encre-douce);
}
.carte-mention::before,
.carte-mention::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px; height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--creme);
}
.carte-mention::before { left: -11px; }
.carte-mention::after { right: -11px; }
.carte-mention strong { color: var(--encre); }
.carte-mention .ico { color: var(--tomate); margin-right: .3rem; }

/* ---------- Ingrédients ---------- */

.ingredients {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  background:
    radial-gradient(46rem 30rem at 110% 0%, rgba(164, 207, 63, .08), transparent 55%),
    var(--vert-nuit);
  scroll-margin-top: 4rem;
}

.promesses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.promesse {
  position: relative;
  padding: 2rem 1.75rem 1.9rem;
  background: var(--vert-carte);
  border: 1px solid rgba(245, 238, 219, .09);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 5px 0 var(--vert-sombre);
  transition: transform .25s ease, box-shadow .25s ease;
}
.promesse:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--vert-sombre); }
.promesse::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .04;
  pointer-events: none;
}
.promesse-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--or);
  opacity: .85;
  line-height: 1;
}
.promesse h3 {
  margin-top: .9rem;
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--vert-basilic);
}
.promesse p {
  margin-top: .7rem;
  font-size: .96rem;
  color: rgba(245, 238, 219, .78);
  color: color-mix(in srgb, var(--creme) 78%, transparent);
}

/* ---------- Infos pratiques ---------- */

.infos {
  padding-block: 0 clamp(4.5rem, 9vw, 7rem);
  background: var(--vert-nuit);
  scroll-margin-top: 4rem;
}
.infos .section-tete h2 { color: var(--creme); }
.infos .surtitre { color: var(--vert-basilic); }

.infos-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-carte {
  position: relative;
  padding: 1.9rem 1.75rem;
  background: var(--vert-carte);
  border: 1px solid rgba(245, 238, 219, .09);
  border-radius: 1.4rem;
  box-shadow: 0 5px 0 var(--vert-sombre);
  transition: transform .25s ease, box-shadow .25s ease;
}
.info-carte:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--vert-sombre); }
.info-carte h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--or-doux);
  margin-bottom: 1.1rem;
}

.horaires { margin: 0; }
.horaires div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .55rem;
  border-bottom: 1px dashed rgba(245, 238, 219, .15);
}
.horaires dt { font-weight: 600; }
.horaires dd { margin: 0; color: var(--vert-basilic); font-weight: 700; }

.info-note {
  margin-top: .8rem;
  font-size: .88rem;
  color: rgba(245, 238, 219, .65);
  color: color-mix(in srgb, var(--creme) 65%, transparent);
}

.adresse { line-height: 1.7; }

.lien-fleche {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--vert-basilic);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}
.lien-fleche:hover { border-bottom-color: currentColor; }

.contacts { display: grid; gap: .4rem; margin-bottom: 1.4rem; }
.contacts a {
  font-family: var(--f-display);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-decoration: none;
  color: var(--creme);
  transition: color .15s;
}
.contacts a:hover { color: var(--vert-basilic); }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--vert-sombre);
  border-top: 1px solid rgba(245, 238, 219, .08);
  padding-block: 2.5rem 6.5rem;
  text-align: center;
}
.footer-inner { display: grid; gap: 1rem; justify-items: center; }

.footer-marque {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.footer-marque img { border-radius: 50%; }
.footer-marque span {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-marque small {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: .85rem;
  color: var(--or-doux);
}

.footer-infos { font-size: .95rem; color: rgba(245, 238, 219, .75);
  color: color-mix(in srgb, var(--creme) 75%, transparent); }
.footer-infos a { color: var(--creme); text-decoration: none; font-weight: 600; }
.footer-infos a:hover { color: var(--vert-basilic); }

.footer-copie { font-size: .82rem; color: rgba(245, 238, 219, .58);
  color: color-mix(in srgb, var(--creme) 58%, transparent); }

/* ---------- Page 404 ---------- */

.page-404 {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1.2rem;
  padding: 2rem;
}
.page-404 h1 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(4rem, 18vw, 9rem);
  color: var(--vert-basilic);
  line-height: 1;
}
.page-404 p { color: rgba(245, 238, 219, .8); }

/* ---------- Barre mobile ---------- */

.barre-mobile {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(8, 26, 15, .94);
  background: color-mix(in srgb, var(--vert-sombre) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(245, 238, 219, .1);
  display: none;
  transition: transform .3s ease;
}
/* masquée tant que les boutons du héro sont à l'écran */
.barre-mobile.rangee { transform: translateY(110%); }

/* ---------- Animations d'apparition ---------- */

.reveal-load {
  opacity: 0;
  transform: translateY(18px);
  animation: apparait .7s cubic-bezier(.2, .7, .3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes apparait {
  to { opacity: 1; transform: none; }
}

/* Masqué uniquement si JS est actif (la classe .js est posée par main.js) */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}
html.js .reveal.est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .marquee-piste { animation: none; }
  .btn, .pizza-photo { transition: none; }
}


/* ============================================================
   PIZZA-LUNE DE DJIDJOLÉ — scène signature & micro-animations
   ============================================================ */

/* ---- chorégraphie de la scène ---- */

.pizza-lune g, .pizza-lune path, .pizza-lune circle, .pizza-lune use {
  transform-box: fill-box;
}

.pl-pizza {
  transform-origin: center;
  animation: pl-respire 9s ease-in-out infinite alternate;
}
@keyframes pl-respire {
  from { transform: rotate(-1deg); }
  to   { transform: rotate(1deg); }
}

.pl-topping {
  transform-origin: center;
  animation: pl-pop .38s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0s) both;
}
@keyframes pl-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* pose finale = valeurs de base (parfaite aussi sans animation) */
.pl-part {
  transform-origin: center;
  transform: translate(64px, -45px) rotate(8deg);
  animation: pl-tire .62s cubic-bezier(.22, 1, .36, 1) .65s both;
}
@keyframes pl-tire {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(64px, -45px) rotate(8deg); }
}

.pl-fils path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
  animation: pl-fil .62s ease-out .65s both;
}
@keyframes pl-fil {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

.pl-orbite {
  transform-box: view-box;
  transform-origin: 280px 300px;
  animation: pl-orbe 90s linear infinite, pl-sat-in .5s ease-out .9s both;
}
@keyframes pl-orbe { to { transform: rotate(360deg); } }
@keyframes pl-sat-in { from { opacity: 0; } to { opacity: 1; } }

.pl-sat {
  transform-origin: center;
  animation: pl-contre 90s linear infinite;
}
@keyframes pl-contre { to { transform: rotate(-360deg); } }

.pl-vapeur {
  animation: pl-vape 4s ease-in-out var(--d, 0s) infinite alternate;
}
@keyframes pl-vape {
  from { transform: translateY(0); opacity: .14; }
  to   { transform: translateY(-8px); opacity: .05; }
}

.pl-halo { animation: pl-lueur 6s ease-in-out infinite alternate; }
@keyframes pl-lueur {
  from { opacity: .05; }
  to   { opacity: .12; }
}

/* boucles suspendues quand le hero est hors écran (économie batterie) */
.pizza-lune.suspendue .pl-pizza,
.pizza-lune.suspendue .pl-orbite,
.pizza-lune.suspendue .pl-sat,
.pizza-lune.suspendue .pl-vapeur,
.pizza-lune.suspendue .pl-halo { animation-play-state: paused; }

/* ---- pastille « ouvert » : ping périodique ---- */

.statut { position: relative; }
.statut--ouvert::after {
  content: "";
  position: absolute;
  left: .75rem;
  top: 50%;
  width: .5rem; height: .5rem;
  margin-top: -.25rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  animation: statut-ping 4s ease-out .8s infinite;
}
@keyframes statut-ping {
  0%   { transform: scale(1); opacity: .8; }
  22%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ---- WhatsApp : wobble « sonnerie » de l'icône ---- */

.btn-wa:hover .ico,
.btn-wa:focus-visible .ico { animation: wa-wobble .45s ease-out; }
@keyframes wa-wobble {
  0% { transform: rotate(0); } 25% { transform: rotate(-14deg); }
  55% { transform: rotate(10deg); } 80% { transform: rotate(-5deg); }
  100% { transform: rotate(0); }
}
/* salut périodique sur la barre mobile (pas de hover au doigt) */
.barre-mobile .btn-wa .ico { animation: wa-salut 7.5s ease-out 3s infinite; }
@keyframes wa-salut {
  0%, 91%, 100% { transform: rotate(0); }
  93% { transform: rotate(-14deg); }
  95.5% { transform: rotate(10deg); }
  98% { transform: rotate(-5deg); }
}

/* ---- marquee : mini-ingrédients en rotation ---- */

.marquee-ing { font-style: normal; display: inline-flex; }
.marquee-ing svg {
  display: block;
  animation: ing-tourne 12s linear infinite;
}
@keyframes ing-tourne { to { transform: rotate(360deg); } }

/* ---- en-tête de carte : feuilles de basilic ---- */

.h2-feuille {
  width: 2.2rem; height: 1.3rem;
  margin-right: .75rem;
  vertical-align: .35rem;
  transform: rotate(-14deg);
}
.h2-feuille--droite {
  margin-right: 0;
  margin-left: .75rem;
  transform: rotate(14deg) scaleX(-1);
}

/* ---- lien Commander : mini-part au survol ---- */

.pizza-cmd { position: relative; }
.pizza-cmd::before {
  content: "";
  display: inline-block;
  width: 0; height: .8rem;
  margin-right: 0;
  vertical-align: -.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12,22 L3,4 A18,18 0 0 1 21,4 Z' fill='%23d9542e'/%3E%3Cpath d='M2.2,5.8 A19,19 0 0 1 21.8,5.8 L20.4,8.6 A16,16 0 0 0 3.6,8.6 Z' fill='%23d3a63b'/%3E%3Ccircle cx='12' cy='11' r='2.4' fill='%23f5eedb'/%3E%3Ccircle cx='9' cy='15.5' r='1.6' fill='%2313291a'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0);
  transition: width .25s cubic-bezier(.34, 1.56, .64, 1), margin-right .25s, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.pizza-cmd:hover::before,
.pizza-cmd:focus-visible::before {
  width: .85rem;
  margin-right: .35rem;
  transform: scale(1);
}

/* ---- promesses : icône dessinée + numéro en filigrane ---- */

.promesse-icone {
  width: 46px; height: 46px;
  fill: none;
  stroke: var(--or-doux);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.promesse-icone circle[r="1.7"] { fill: var(--or-doux); stroke: none; }
.promesse-icone .trait { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
html.js .promesse .promesse-icone .trait { stroke-dashoffset: 1; }
html.js .promesse.est-visible .promesse-icone .trait {
  animation: icone-dessine .8s ease-out .25s forwards;
}
@keyframes icone-dessine { to { stroke-dashoffset: 0; } }

.promesse-num {
  position: absolute;
  top: .6rem; right: 1.1rem;
  font-size: 5.5rem;
  opacity: .13;
  pointer-events: none;
}

/* ---- horloge-pizza sur minuit ---- */

.horloge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 52px; height: 52px;
}
.horloge line { transform-box: view-box; transform-origin: 28px 28px; }
html.js .est-visible .horloge .aig-h { animation: aig-minuit-h 1s cubic-bezier(.34, 1.56, .64, 1) .3s both; }
html.js .est-visible .horloge .aig-m { animation: aig-minuit-m 1.2s cubic-bezier(.34, 1.56, .64, 1) .3s both; }
@keyframes aig-minuit-h { from { transform: rotate(-150deg); } to { transform: rotate(0); } }
@keyframes aig-minuit-m { from { transform: rotate(160deg); } to { transform: rotate(0); } }

.lune-mini { width: .8em; height: .8em; vertical-align: -.06em; }

/* ---- itinéraire « à 150 m du goudron » ---- */

.itineraire {
  display: block;
  width: 120px; height: 48px;
  margin-bottom: .75rem;
}
html.js .info-carte .iti-trace { stroke-dashoffset: 0; }
html.js .info-carte.est-visible .iti-trace { animation: iti-dessine 1s ease-out .3s both; }
@keyframes iti-dessine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.iti-pin { transform-origin: center; }
html.js .info-carte .iti-pin { transform: scale(1); }
html.js .info-carte.est-visible .iti-pin { animation: pin-pop .45s cubic-bezier(.34, 1.56, .64, 1) 1.1s both; }
@keyframes pin-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---- footer : collier de cauris ---- */

.collier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}
.collier svg {
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.collier svg:hover { transform: rotate(14deg) scale(1.15); }

/* ---- reduced-motion : la scène devient une affiche fixe parfaite ---- */

@media (prefers-reduced-motion: reduce) {
  .pl-pizza, .pl-topping, .pl-part, .pl-fils path, .pl-orbite, .pl-sat,
  .pl-vapeur, .pl-halo,
  .statut--ouvert::after,
  .btn-wa .ico, .barre-mobile .btn-wa .ico,
  .marquee-ing svg,
  .promesse-icone .trait, .horloge line, .iti-trace, .iti-pin,
  .pizza:hover .pointille {
    animation: none;
  }
  html.js .promesse .promesse-icone .trait { stroke-dashoffset: 0; }
  .hero-scene svg { transform: none; }
  .collier svg, .medaillon-anneau { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 56rem) {
  .promesses, .infos-grille { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
}

@media (max-width: 47rem) {
  .nav-toggle { display: block; }
  .nav-liste {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--vert-sombre);
    border-bottom: 1px solid rgba(245, 238, 219, .1);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.ouvert .nav-liste { display: flex; }
  .nav-liste a:not(.btn) { display: block; padding: .9rem .25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(245, 238, 219, .08); }
  .nav-cta { margin-top: 1rem; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: .85rem; font-size: 1rem; }

  .pizza {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "photo texte prix"
      "photo texte cmd";
    column-gap: 1rem;
    padding: 1rem .5rem;
  }
  .pointille { display: none; }
  .pizza-medaillon { width: 68px; height: 68px; }
  .pizza-prix strong { font-size: 1.3rem; }

  .barre-mobile { display: block; }
  .site-footer { padding-bottom: 7.5rem; }

  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { max-width: 22rem; margin-inline: auto; }
}

/* hero : bascule une colonne (la lune se lève derrière le titre) */
@media (max-width: 56rem) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "lieu" "titre" "scene" "sous" "actions" "prix";
    text-align: center;
    justify-items: center;
  }
  .hero-actions { justify-content: center; }
  .hero-sous { margin-inline: auto; }
  .hero-scene {
    width: min(68vw, 310px);
    margin: 0 auto .25rem;
  }
}
