/*
 * Mise en page commune aux 3 démos.
 * Les couleurs et polices de chaque démo sont en haut de son fichier .html,
 * pas ici : ce fichier-ci, tu n'as normalement pas besoin d'y toucher.
 */

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
/* Mode tournage (?rec) : pas de barre de défilement ni de curseur à l'écran. */
html.is-rec,
html.is-rec body {
  scrollbar-width: none;
  cursor: none;
}
html.is-rec ::-webkit-scrollbar {
  display: none;
}

/* ---------- Le haut de page animé ---------- */
.story {
  position: relative;
  height: calc(var(--len, 5) * 100svh);
  background: var(--bg);
}
.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  color: var(--on-media);
}
.media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Le sujet détouré, au-dessus des titres (effet « titre derrière l'assiette »). */
.media-front {
  z-index: 2;
  pointer-events: none;
}
/* Léger voile en haut pour que le titre reste lisible quelle que soit l'image. */
.veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 38%),
    linear-gradient(to top, color-mix(in srgb, var(--bg) 35%, transparent) 0%, transparent 18%);
}

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px clamp(16px, 4vw, 56px);
  z-index: 3;
}
.brand {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-weight: 500;
}
.links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.links a {
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.2s;
}
.links a:hover {
  opacity: 1;
}
.cta {
  justify-self: end;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid currentColor;
  transition:
    background 0.25s,
    color 0.25s;
}
.cta:hover {
  background: var(--on-media);
  color: var(--bg);
}

.titles {
  position: absolute;
  left: 50%;
  top: clamp(96px, 15svh, 170px);
  transform: translateX(-50%);
  width: min(92vw, 1100px);
  z-index: 2;
  pointer-events: none;
}
.step {
  position: absolute;
  inset: 0 0 auto 0;
  text-align: center;
  opacity: 0;
  will-change: opacity, transform, filter;
}
.step:first-child {
  opacity: 1;
}
.kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.title {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  text-transform: var(--display-case);
  font-size: clamp(2.4rem, 6.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- Titres en 2 parties (classe « split ») ----------
   Capitales puis italique doré, au-dessus de l'assiette. scroll.js règle taille et place. */
.titles.split {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  z-index: 3; /* le titre reste toujours DEVANT l'image, jamais derrière l'assiette */
}
.split .step {
  inset: 0;
}
.split-block {
  position: absolute;
  left: clamp(16px, 5vw, 88px);
  bottom: 55%;
  text-align: left;
}
.split .kicker {
  margin-bottom: 0;
  letter-spacing: 0.26em;
}
.split-line {
  margin: 0;
  font-family: var(--poster, var(--display));
  font-weight: 400;
  text-transform: uppercase;
  font-size: 9vw;
  line-height: 0.86;
  letter-spacing: -0.005em;
  white-space: nowrap;
  will-change: transform;
  padding-top: 0.2em; /* place pour les accents (Ô, É) sous le petit titre */
}
.titles-front.split {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
/* La 2e partie du titre : en italique doré, à la suite de la 1re (scroll.js règle sa place). */
.split-line2 {
  position: absolute;
  left: clamp(16px, 5vw, 88px);
  top: 50%;
  text-align: left;
  text-transform: none;
  font-style: italic;
  color: var(--accent);
  opacity: 0;
}
.split-line2:first-child {
  opacity: 1;
}

/* ---------- Titres « affiche » : 2 lignes, l'assiette passe devant la 2e (classe « poster ») ----------
   scroll.js règle la taille et la hauteur d'après la position de l'assiette à l'écran. */
.titles.poster {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
}
.poster .step {
  inset: 0;
}
.poster-block {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.poster .kicker {
  margin-bottom: 26px;
  letter-spacing: 0.26em;
}
.poster-title {
  margin: 0;
  font-family: var(--poster, var(--display));
  font-weight: 400;
  text-transform: uppercase;
  font-size: 11vw;
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.poster-title span {
  display: block;
  white-space: nowrap;
}

/* ---------- Grands mots devant / derrière le sujet (classe « deep ») ----------
   --it / --ih : haut et hauteur de l'image à l'écran, donnés par scroll.js. */
.titles.deep {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
}
.deep .step {
  inset: 0;
}
.deep-block {
  position: absolute;
  left: 0;
  right: 0;
  /* position de secours : scroll.js pose ensuite le mot sur le bord haut de l'assiette */
  bottom: calc(100% - var(--it, 30vh) - var(--ih, 60vh) * 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.deep-line {
  margin: 0 0 14px;
  max-width: 36ch;
  font-size: 0.95rem;
  opacity: 0.85;
}
.deep-back {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 18vw;
  line-height: 0.8;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.titles-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.deep-front {
  position: absolute;
  right: clamp(16px, 7vw, 120px);
  top: calc(var(--it, 30vh) + var(--ih, 60vh) * 0.68);
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 9vw;
  line-height: 0.8;
  white-space: nowrap;
  color: var(--on-media);
  text-shadow:
    0 2px 6px rgb(0 0 0 / 0.45),
    0 6px 40px rgb(0 0 0 / 0.7);
  opacity: 0;
  will-change: opacity, transform;
}
.deep-front:first-child {
  opacity: 1;
}

/* La liste du menu sur le côté (facultative, voir data-index). */
.course-index {
  --line: 3.4rem;
  position: absolute;
  left: clamp(16px, 4vw, 56px);
  top: calc(80% - var(--line) / 2); /* en bas à gauche : là où l'assiette laisse de la place */
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}
/* Écran pas assez large : la liste passerait sur l'assiette, on la cache. */
@media (max-width: 1100px) {
  .course-index {
    display: none;
  }
}
.course-index li {
  height: var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transform: scale(calc(1 + var(--near, 0) * 0.45));
  transform-origin: left center;
}
.course-index span {
  font-family: var(--body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.footer-bar {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px clamp(16px, 4vw, 56px);
  z-index: 3;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hint {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.4s;
}
.hint-line {
  width: 28px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
  0%,
  100% {
    transform: scaleX(0.3);
  }
  50% {
    transform: scaleX(1);
  }
}
.dots {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dots li {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.3;
  transition:
    width 0.35s ease,
    opacity 0.35s ease;
}
.dots li.is-active {
  width: 22px;
  opacity: 1;
}
.counter {
  margin: 0;
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

/* ---------- Le reste de la page ---------- */
.block {
  padding: clamp(80px, 12vw, 160px) clamp(16px, 6vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.menu {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 34px;
}
.menu-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.menu-name {
  font-family: var(--display);
  font-style: var(--display-style);
  font-size: 1.6rem;
}
.menu-dots {
  flex: 1;
  border-bottom: 1px dotted color-mix(in srgb, var(--ink) 35%, transparent);
  transform: translateY(-6px);
}
.menu-price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about {
  text-align: center;
  max-width: 920px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.about p {
  margin: 28px auto 0;
  max-width: 620px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--muted);
}

.infos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.infos-big {
  margin: 0;
  font-family: var(--display);
  font-style: var(--display-style);
  font-size: 1.7rem;
  line-height: 1.2;
}
.infos-line {
  margin: 0 0 6px;
  line-height: 1.5;
}
.button {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 6vw, 96px);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.foot-brand {
  font-family: var(--display);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1rem;
  color: var(--ink);
}

/* ---------- Page événement : l'essentiel, avis, réservation ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.fact {
  margin: 0;
  font-family: var(--display);
  font-style: var(--display-style);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}
.fact-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.menu-note {
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.menu-course {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.menu-list p.menu-name {
  margin: 0;
  display: block;
  line-height: 1.2;
}
.menu-alt {
  margin: 6px 0 0;
  color: var(--muted);
  font-style: italic;
}
.proof {
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.rating {
  margin: 0 0 40px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stars {
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-right: 10px;
}
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
  max-width: 1000px;
  margin: 0 auto;
}
.quotes blockquote {
  margin: 0;
}
.quotes p {
  margin: 0 0 14px;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.3;
}
.quotes cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
}
.book {
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.book-note {
  margin: 22px auto 0;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}
.book-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
}
.book-gift {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.book-gift a {
  color: var(--accent);
}
.book .infos {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 40px;
  text-align: left;
}

/* Bouton « Réserver » qui reste à l'écran une fois la vidéo passée. */
.book-float {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 10;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.book-float.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  .nav {
    grid-template-columns: 1fr auto;
    padding-top: 18px;
  }
  .links {
    display: none;
  }
  .cta {
    padding: 10px 14px;
    font-size: 0.7rem;
  }
  .titles {
    top: 92px;
  }
  .hint {
    display: none;
  }
  .course-index {
    display: none;
  }
  .footer-bar {
    grid-template-columns: 1fr auto;
  }
  .menu,
  .infos,
  .facts,
  .quotes {
    grid-template-columns: 1fr;
  }
  .facts {
    gap: 20px;
  }
  .book-float {
    left: 16px;
    right: 16px;
    text-align: center;
  }
}

/* ---------- Le mot de PP.stud, en fin de page (pour les restaurateurs) ---------- */
.studio {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px clamp(16px, 6vw, 96px) 90px;
  text-align: center;
  color: var(--on-media);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
/* L'image de fond (le dessert fini), assombrie pour que le texte se lise. */
.studio-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
  z-index: -2;
}
.studio::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 45%, transparent) 28%,
    color-mix(in srgb, var(--bg) 72%, transparent) 50%,
    color-mix(in srgb, var(--bg) 90%, transparent) 68%,
    var(--bg) 100%
  );
}
.studio-inner {
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.studio-label {
  margin: 0 0 26px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.75;
}
.studio-title {
  margin: 0;
  font-family: var(--poster, var(--display));
  font-weight: 400;
  font-size: clamp(3.4rem, 12.5vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.studio-title em {
  font-style: italic;
}
.studio-sub {
  margin: 34px 0 0;
  font-family: var(--poster, var(--display));
  font-style: italic;
  font-size: clamp(1.35rem, 2.7vw, 2.4rem);
  line-height: 1.2;
}
.studio-text {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.8;
}
/* Les 3 bénéfices, sur une seule ligne */
.studio-points {
  margin: 34px 0 0;
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.studio-points i {
  font-style: normal;
  margin: 0 0.9em;
  opacity: 0.6;
}
@media (max-width: 760px) {
  .studio-title {
    font-size: 21vw;
  }
  .studio-points {
    line-height: 2;
  }
  /* un bénéfice par ligne */
  .studio-points i {
    display: block;
    height: 0;
    overflow: hidden;
  }
}
.studio-button {
  margin-top: 40px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--on-media);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease;
}
.studio-button:hover {
  transform: translateY(-2px);
  background: var(--accent);
}
.studio-mail {
  margin-top: 22px;
  font-family: var(--poster, var(--display));
  font-style: italic;
  font-size: 1.15rem;
  color: inherit;
  text-underline-offset: 5px;
  opacity: 0.85;
}
.studio-foot {
  position: absolute;
  left: clamp(16px, 4vw, 56px);
  right: clamp(16px, 4vw, 56px);
  bottom: 24px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}
@media (max-width: 760px) {
  .studio-foot {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- La carte : les 3 assiettes, le prix, un bouton (un seul écran) ---------- */
.carte {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(80px, 8vw, 110px) clamp(16px, 5vw, 80px) clamp(70px, 8vw, 110px);
  text-align: center;
}
.carte-label {
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.carte-title {
  margin: 0;
  font-family: var(--poster, var(--display));
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 6.5vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.carte-plats {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 3vw, 44px);
}
.carte-plats img {
  display: block;
  width: 100%;
  height: auto;
  /* les bords de la photo se fondent dans le fond noir */
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 52%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 52%, #000 62%, transparent 100%);
}
.carte-course {
  margin: 6px 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.carte-name {
  margin: 8px 0 0;
  font-family: var(--poster, var(--display));
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1;
}
.carte-detail {
  margin: 8px 0 0;
  font-family: var(--poster, var(--display));
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
}
.carte-book {
  margin-top: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carte-price {
  margin: 0;
  font-family: var(--poster, var(--display));
  font-size: clamp(3rem, 4.6vw, 4.4rem);
  line-height: 0.9;
}
.carte-price span {
  display: block;
  margin-top: 12px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.carte-button {
  margin-top: 24px;
  padding: 17px 34px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease;
}
.carte-button:hover {
  transform: translateY(-2px);
  background: var(--on-media);
}
.carte-meta {
  margin: 20px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
@media (max-width: 760px) {
  .carte-plats {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .carte-plats img {
    max-width: 440px;
    margin: 0 auto;
  }
}

/* ---------- L'ouverture : grille éditoriale (premier écran) ---------- */
.intro {
  --card: color-mix(in srgb, var(--on-media) 9%, var(--bg));
  --line: color-mix(in srgb, var(--on-media) 14%, transparent);
  min-height: 100svh;
  padding: 0 clamp(12px, 1.6vw, 22px) clamp(12px, 1.6vw, 22px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  grid-template-rows: auto minmax(0, 1.6fr) auto minmax(0, 1fr);
  grid-template-areas:
    'nav nav nav'
    'arch hero hero'
    'band band band'
    'dish midnight count';
  gap: clamp(8px, 1vw, 14px);
  color: var(--on-media);
}
.intro-nav {
  grid-area: nav;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px 6px;
}
.intro-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(14px, 1.5vw, 22px);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  animation: intro-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.intro-tag {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.intro-card-title {
  margin: 10px 0 0;
  font-family: var(--poster, var(--display));
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  line-height: 1.02;
}
.intro-arch {
  grid-area: arch;
  animation-delay: 0.1s;
}
.intro-arch img {
  margin-top: auto;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  max-height: 62%;
  object-fit: cover;
  border-radius: 999px 999px 10px 10px; /* l'arche */
}
.intro-hero {
  grid-area: hero;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  animation: intro-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.intro-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% 60%;
  transform: scale(1.06);
  animation: intro-zoom 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.intro-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(0 0 0 / 0.7) 0%, rgb(0 0 0 / 0.15) 60%, transparent 100%);
}
.intro-hero-text {
  position: absolute;
  left: clamp(16px, 2.4vw, 36px);
  bottom: clamp(16px, 2.4vw, 36px);
  z-index: 1;
}
.intro-label {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.intro-title {
  margin: 0;
  font-family: var(--poster, var(--display));
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5.4vw, 5.6rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.intro-title span {
  color: var(--accent);
}
.intro-band {
  grid-area: band;
  overflow: hidden;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  padding: 11px 0;
  animation: intro-in 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.intro-band-track {
  display: flex;
  width: max-content;
  animation: intro-marquee 28s linear infinite;
}
.intro-band span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 28px;
}
.intro-band span::after {
  content: '✦';
  margin-left: 56px;
  opacity: 0.5;
}
.intro-dish {
  grid-area: dish;
  flex-direction: row;
  gap: 14px;
  animation-delay: 0.35s;
}
.intro-dish > div {
  flex: 1 1 50%;
}
.intro-dish img {
  flex: 1 1 50%;
  min-width: 0;
  object-fit: cover;
  border-radius: 10px;
}
.intro-card:nth-of-type(4) {
  grid-area: midnight;
  animation-delay: 0.45s;
}
.intro-hint {
  margin: auto 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.intro-count {
  grid-area: count;
  animation-delay: 0.55s;
  transition: background 0.3s ease;
}
.intro-count:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--bg));
}
.intro-number {
  margin: auto 0 0;
  font-family: var(--poster, var(--display));
  font-size: clamp(5rem, 9vw, 9rem);
  line-height: 0.8;
}
.intro-count .intro-card-title {
  margin-top: 4px;
  font-style: italic;
}
@keyframes intro-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes intro-zoom {
  from {
    transform: scale(1.18);
  }
}
@keyframes intro-marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 52svh auto auto auto;
    grid-template-areas:
      'nav nav'
      'hero hero'
      'band band'
      'arch count'
      'dish dish';
  }
  .intro-card:nth-of-type(4) {
    display: none;
  }
  .intro-arch img {
    max-height: 160px;
  }
  .intro-dish img {
    max-height: 160px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro-band-track,
  .intro-card,
  .intro-hero,
  .intro-hero img {
    animation: none;
  }
}

/* ---------- Ouverture : l'ovale qui s'ouvre sur la vidéo (data-opening) ---------- */
.story[data-opening] .stage {
  background: var(--paper, #efe9df);
}
.opening-ring {
  position: absolute;
  left: 30%;
  top: 10%;
  width: 40%;
  height: 90%;
  border-radius: 9999px 9999px 0 0; /* une arche */
  background: var(--paper-ring, color-mix(in srgb, var(--paper, #efe9df) 93%, #000));
  pointer-events: none;
}
.opening-brand {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 4; /* devant l'assiette */
  margin: 0;
  transform: translate(-50%, -50%);
  font-family: var(--poster, var(--display));
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 11.5vw, 13rem);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
  color: var(--paper-ink, #1b1916);
  /* un léger halo pour rester lisible quand le texte passe sur l'image */
  text-shadow: var(--paper-halo, 0 0 18px rgb(239 233 223 / 0.55), 0 0 2px rgb(239 233 223 / 0.6));
  pointer-events: none;
}
/* Pendant l'ouverture, le menu et le bas d'écran prennent la couleur du texte du fond. */
.story.is-opening .nav,
.story.is-opening .footer-bar {
  color: var(--paper-ink, #1b1916);
}
.story.is-opening .cta:hover {
  background: var(--paper-ink, #1b1916);
  color: var(--paper, #efe9df);
}
@media (max-width: 760px) {
  .opening-brand {
    font-size: 15vw;
    white-space: normal;
    text-align: center;
    width: 100%;
    line-height: 0.9;
  }
}

/* ===== Le loader (mots qui s'enchaînent avant l'ouverture) ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--paper, #efe9df);
  color: var(--paper-ink, #1b1916);
  transition: opacity 0.9s ease;
}
.loader.is-done {
  opacity: 0;
  pointer-events: none;
}
.is-loading,
.is-loading body {
  overflow: hidden;
}
.loader-label {
  position: absolute;
  top: 2.2rem;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.55;
}
.loader-words {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.24em;
  margin: 0;
  width: 100%;
  font-family: var(--poster, var(--display));
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 10rem);
  line-height: 1.25;
  white-space: nowrap;
}
/* « Votre » reste en place ; seul le mot d'après défile vers le haut. */
.loader-fixed {
  display: block;
  height: 1.25em;
}
.loader-roll {
  position: relative;
  display: block;
  height: 1.25em;
  overflow: hidden;
}
.loader-roll span {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(115%);
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.25, 1);
}
.loader-roll span.is-on {
  transform: none;
}
.loader-roll span.is-off {
  transform: translateY(-115%);
}
.loader-words em {
  font-style: italic;
}
@media (max-width: 760px) {
  .loader-words {
    font-size: 11.5vw;
  }
}

/* ===== Touches dorées (discrètes) =====
   La couleur est --accent, en haut du fichier .html de la démo. */
.gold,
.loader-words em,
.studio-title em {
  color: var(--accent);
}
/* Un filet doré très fin au-dessus du prix et au-dessus du mot de fin. */
.carte-price::before,
.studio-label::before {
  content: '';
  display: block;
  width: 44px;
  height: 1px;
  margin: 0 auto 26px;
  background: var(--accent);
}
/* ===== Lisibilité de Bodoni Moda =====
   Par défaut ses traits fins deviennent presque invisibles. Le réglage « opsz » les épaissit :
   plus le chiffre est petit, plus les traits fins sont épais (de 6 à 96). Sans effet sur les autres polices. */
/* Les grands titres */
.split-line,
.opening-brand,
.carte-title,
.carte-price,
.studio-title,
.loader-words {
  font-variation-settings: 'opsz' 22;
  font-weight: 500;
}
/* Les textes plus petits : traits encore plus solides */
.brand,
.course-index li,
.carte-name,
.carte-detail,
.studio-sub,
.studio-mail {
  font-variation-settings: 'opsz' 10;
  font-weight: 500;
}
/* Le titre de la carte : sur une seule ligne, et les lignes ne se touchent plus s'il passe sur deux. */
.carte-title {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.05;
}
/* Téléphone : les très grands titres un peu plus petits, pour ne jamais toucher les bords. */
@media (max-width: 760px) {
  .studio-title {
    font-size: 16.5vw;
  }
  .opening-brand {
    font-size: 12.5vw;
  }
}

/* ===== Le titre de l'ouverture (variante « lumière ») : plus petit, capitales + italique doré ===== */
.opening-title {
  font-size: clamp(2.4rem, 6.2vw, 6.4rem);
  line-height: 1;
}
.opening-title em {
  text-transform: none;
  font-style: italic;
  color: var(--accent);
}
.opening-kicker {
  display: block;
  margin-bottom: 1.6em;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  font-variation-settings: normal;
  letter-spacing: 0.26em;
  color: var(--accent);
}
@media (max-width: 760px) {
  .opening-title {
    font-size: 12vw;
    white-space: normal;
  }
  .opening-title em {
    display: block;
  }
}

/* ===== La carte : arrivée en douceur, une assiette après l'autre =====
   Chaque élément apparaît en fondu en montant très légèrement (22px).
   Pour ralentir ou accélérer : change les « transition-delay » (en secondes). */
.carte.is-ready .carte-label,
.carte.is-ready .carte-title,
.carte.is-ready .carte-plats li,
.carte.is-ready .carte-book {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.carte.is-ready.is-in .carte-label,
.carte.is-ready.is-in .carte-title,
.carte.is-ready.is-in .carte-plats li,
.carte.is-ready.is-in .carte-book {
  opacity: 1;
  transform: none;
}
.carte.is-in .carte-title {
  transition-delay: 0.1s;
}
.carte.is-in .carte-plats li:nth-child(1) {
  transition-delay: 0.3s; /* l'entrée */
}
.carte.is-in .carte-plats li:nth-child(2) {
  transition-delay: 0.5s; /* le plat */
}
.carte.is-in .carte-plats li:nth-child(3) {
  transition-delay: 0.7s; /* le dessert */
}
.carte.is-in .carte-book {
  transition-delay: 1s; /* le prix et le bouton, en dernier */
}
/* Si la personne a demandé « moins d'animations » sur son appareil : tout est visible tout de suite. */
@media (prefers-reduced-motion: reduce) {
  .carte.is-ready .carte-label,
  .carte.is-ready .carte-title,
  .carte.is-ready .carte-plats li,
  .carte.is-ready .carte-book {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Les bulles dorées du champagne (dessinées par scroll.js) ===== */
.bubbles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* devant le fond, mais DERRIÈRE l'assiette détourée et les titres */
  pointer-events: none;
}
