/* Gabarit commun des sites vitrines des restos.
   Les couleurs et polices de chaque resto arrivent par les variables posées dans
   <style id="theme"> (voir build.mjs) ; ce fichier n'en contient aucune. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Une valeur que le restaurant doit encore fournir : visible, pour qu'on ne l'oublie pas. */
.a-completer {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  outline: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 4px;
  padding: 0 .3em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--radius-btn);
  font: 600 16px/1 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-commander { background: var(--accent); color: var(--on-accent); }
.btn-commander:hover { background: var(--accent-hover); }
.btn-commander svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }

.eyebrow {
  display: inline-block;
  font: 600 13.5px/1.2 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 16px;
}

/* ---------- Barre de navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
  color: var(--hero-text);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
  color: var(--text);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav-logo { display: flex; align-items: center; height: 100%; margin-right: auto; }
.nav-logo img { height: var(--nav-logo-h); width: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; text-underline-offset: 9px; text-decoration-thickness: 2px; }
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--accent); }
/* Bouton du menu (téléphone) : trois traits qui deviennent une croix. */
.nav-bouton { display: none; }
.nav-bouton-traits, .nav-bouton-traits::before, .nav-bouton-traits::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background-color .2s;
}
.nav-bouton-traits { position: relative; }
.nav-bouton-traits::before, .nav-bouton-traits::after { content: ""; position: absolute; left: 0; }
.nav-bouton-traits::before { transform: translateY(-6px); }
.nav-bouton-traits::after { transform: translateY(6px); }
.nav.is-open .nav-bouton-traits { background: transparent; }
.nav.is-open .nav-bouton-traits::before { transform: rotate(45deg); }
.nav.is-open .nav-bouton-traits::after { transform: rotate(-45deg); }
@media (max-width: 760px) {
  .nav-inner { height: 62px; gap: 10px; }
  .nav .btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .js .nav-bouton {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: inherit; cursor: pointer;
  }
  /* Le menu se déplie sous la barre, en grandes lettres de la DA. */
  .js .nav-menu {
    position: fixed; inset: 62px 0 auto 0;
    padding: 6px 20px 26px;
    background: var(--bg); color: var(--text);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgb(0 0 0 / .25);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .35s;
  }
  .js .nav.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .nav-links { flex-direction: column; gap: 0; }
  .js .nav-links a {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 0;
    border-bottom: 1px solid var(--line); opacity: 1;
    font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case);
    letter-spacing: var(--display-tracking); font-size: 30px; line-height: 1.1;
  }
  .js .nav-links a[aria-current="page"] { text-decoration: none; color: var(--label); }
  .js .nav-links a[aria-current="page"]::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
  .nav.is-open { background: var(--bg); color: var(--text); border-color: var(--line); }
  /* Sans JavaScript : les liens passent sur une deuxième ligne de la barre, qui reste en haut de la page
     (fixée, elle passerait transparente sur le contenu : elle ne prend son fond qu'avec le script). */
  .no-js .nav { position: absolute; }
  .no-js .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 6px; }
  .no-js .nav-menu { order: 3; width: 100%; }
  .no-js .nav-links { gap: 18px; overflow-x: auto; }
}

/* ---------- Accroche ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--hero-text);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus, center); }
/* Le recadrage portrait (téléphone) est déjà cadré sur le sujet : on le centre. */
@media (max-aspect-ratio: 4/5) { .hero-photo.a-portrait img { object-position: center; } }
.js .hero-photo img { transform: scale(1.06); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
.js .is-ready .hero-photo img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / 0) 26%),
    linear-gradient(0deg, rgb(0 0 0 / .86) 0%, rgb(0 0 0 / .5) 42%, rgb(0 0 0 / .08) 72%),
    linear-gradient(90deg, rgb(0 0 0 / .6) 0%, rgb(0 0 0 / .15) 65%);
}
.hero-content { position: relative; z-index: 1; padding: 140px 0 clamp(48px, 8vh, 96px); }
.hero .eyebrow, .hero h1, .hero-text, .hero-puces { text-shadow: 0 2px 22px rgb(0 0 0 / .55), 0 1px 3px rgb(0 0 0 / .35); }
.nav:not(.is-scrolled) .nav-logo img { filter: drop-shadow(0 2px 10px rgb(0 0 0 / .55)); }
.hero .eyebrow { color: var(--hero-label); }
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); max-width: 13ch; }
.hero-text { font-size: clamp(17px, 1.6vw, 20px); max-width: 44ch; margin-top: 22px; opacity: .92; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn-ghost { color: var(--hero-text); }
.hero-puces { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 14.5px; opacity: .88; }
.hero-puces li { display: flex; align-items: center; gap: 8px; }
.hero-puces li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Bandeau défilant ---------- */
.bandeau {
  background: var(--accent); color: var(--on-accent);
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--line);
}
.bandeau-piste { display: inline-flex; animation: defile 38s linear infinite; padding: 15px 0; }
.bandeau span {
  font-family: var(--font-display); font-weight: var(--display-weight);
  text-transform: var(--display-case); letter-spacing: var(--display-tracking);
  font-size: 19px; padding: 0 22px;
}
.bandeau span::after { content: var(--puce, "✦"); margin-left: 44px; opacity: .6; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bandeau-piste { animation: none; } }

/* ---------- Sections ---------- */
section.bloc { padding: clamp(80px, 11vw, 140px) 0; }
section.bloc + section.bloc { padding-top: 0; }
.bloc-alt { background: var(--bg-2); }
section.bloc.bloc-alt, section.bloc + section.bloc.bloc-alt, section.bloc.bloc-alt + section.bloc { padding-top: clamp(80px, 11vw, 140px); }
.titre-bloc { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 56px); }
.titre-bloc h2 { font-size: clamp(36px, 5vw, 64px); max-width: 16ch; }
.titre-bloc p { max-width: 46ch; color: var(--muted); }

/* Lien de renvoi vers une autre page, à la fin d'un bloc. */
.renvoi { margin-top: 36px; }
.renvoi a, .lien-fleche {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: 16px; color: var(--label);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 6px; text-decoration-thickness: 1.5px;
  transition: text-decoration-color .2s;
}
.renvoi a::after, .lien-fleche::after { content: "→"; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.renvoi a:hover, .lien-fleche:hover { text-decoration-color: currentColor; }
.renvoi a:hover::after, .lien-fleche:hover::after { transform: translateX(4px); }

/* ---------- En-tête des pages intérieures ---------- */
.page-tete { position: relative; overflow: hidden; padding: clamp(128px, 16vw, 190px) 0 clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-tete .wrap { position: relative; z-index: 1; }
.page-tete h1 { font-size: clamp(46px, 7.6vw, 112px); max-width: 15ch; }
.page-tete p { margin-top: 22px; max-width: 48ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
/* La puce de la DA, très grande et à peine visible, ancre l'en-tête à droite. */
.page-tete::after {
  content: var(--puce, "✦"); position: absolute; right: -.06em; bottom: -.3em;
  font-size: clamp(220px, 34vw, 480px); line-height: 1; color: var(--accent); opacity: .08; pointer-events: none;
}
.page-tete + .bloc { padding-top: clamp(48px, 7vw, 88px); }

/* ---------- Incontournables ---------- */
.plats-phares { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.phare {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 26px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease;
  min-height: 250px;
}
.bloc-alt .phare { background: var(--bg); }
.phare:hover { transform: translateY(-4px); border-color: var(--accent); }
.phare-badge { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label); margin-bottom: 18px; }
.phare h3 { font-size: 27px; margin-bottom: 10px; }
.phare p { color: var(--muted); font-size: 15.5px; }
.phare-bas { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 22px; gap: 12px; }
.prix { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.phare-lien { margin-left: auto; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--label); }
.phare-lien::after { content: " →"; transition: margin .2s; }
.phare:hover .phare-lien::after { margin-left: 4px; }

/* ---------- La carte ---------- */
.onglets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 36px; padding: 0 20px 4px; }
.onglets::-webkit-scrollbar { display: none; }
.onglet {
  flex: none;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent; color: var(--text);
  font: 500 15px/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.onglet:hover { border-color: var(--muted); }
.onglet[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.no-js .onglets { display: none; }
.categorie + .categorie { margin-top: 56px; }
.js .categorie[hidden] { display: none; }
.categorie-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.categorie-tete h2 { font-size: clamp(28px, 3.2vw, 38px); }
.categorie-tete p { color: var(--muted); font-size: 15px; }
.plats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
@media (max-width: 760px) { .plats { grid-template-columns: 1fr; } }
.plat { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.plat-nom { font-weight: 600; font-size: 17.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.plat-desc { grid-column: 1; color: var(--muted); font-size: 15px; }
.plat .prix { grid-row: 1; grid-column: 2; text-align: right; }
.tag { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag-phare { border-color: var(--accent); color: var(--label); }
.carte-note { margin-top: 32px; color: var(--muted); font-size: 14.5px; }
.carte-provisoire { margin-bottom: 28px; padding: 14px 18px; border-radius: var(--radius); border: 1px dashed var(--accent); font-size: 14.5px; }
.carte-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.carte-cta p { color: var(--muted); font-size: 15px; }

/* ---------- Commander en trois temps ---------- */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: etape; }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; } }
.etape { padding: 30px 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); counter-increment: etape; }
.etape::before {
  content: counter(etape, decimal-leading-zero);
  display: block; margin-bottom: 26px;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 46px; line-height: 1; color: var(--accent);
}
.etape h3 { font-size: 24px; margin-bottom: 8px; }
.etape p { color: var(--muted); font-size: 15.5px; }
.commander-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.commander-cta small { color: var(--muted); font-size: 14px; }

/* ---------- Le lieu ---------- */
.lieu { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .lieu { grid-template-columns: 1fr; } }
.lieu-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.lieu-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .lieu-photo { aspect-ratio: 4 / 3; } }
.lieu-texte p + p { margin-top: 16px; }
.lieu-texte p { color: var(--muted); }
.lieu-texte p:first-of-type { color: var(--text); font-size: clamp(20px, 2vw, 24px); line-height: 1.45; }

/* ---------- Carte de fidélité ---------- */
.fidelite-pastilles { display: grid; grid-template-columns: repeat(5, 22px); gap: 10px; }
.fidelite-pastilles i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); }
.fidelite-pastilles i:nth-child(-n+3) { background: var(--accent); }

/* Page « maison » : le détail. */
.fidelite { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(32px, 6vw, 88px); align-items: end; }
@media (max-width: 860px) { .fidelite { grid-template-columns: 1fr; } }
.fidelite h2 { font-size: clamp(36px, 5vw, 64px); max-width: 14ch; }
.fidelite-corps .fidelite-pastilles { margin-bottom: 22px; }
.fidelite-corps p { color: var(--muted); max-width: 46ch; }
.fidelite-corps .btn { margin-top: 26px; }

/* Accueil : le court renvoi. */
section.bloc.fidelite-renvoi { padding-top: clamp(64px, 8vw, 110px); }
.fidelite-carte {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
}
.fidelite-carte .eyebrow { margin-bottom: 10px; }
.fidelite-carte h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 12px; }
.fidelite-carte p { color: var(--muted); max-width: 52ch; margin-bottom: 18px; }
@media (max-width: 760px) {
  .fidelite-carte { grid-template-columns: 1fr; }
  .fidelite-carte .fidelite-pastilles { grid-row: 1; }
}

/* ---------- Infos pratiques ---------- */
.infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .infos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .infos { grid-template-columns: 1fr; } }
.info { padding: 28px 26px; border-radius: var(--radius); border: 1px solid var(--line); }
.info h2 { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: .14em; font-size: 13.5px; text-transform: uppercase; color: var(--label); margin-bottom: 16px; }
.info p, .info li { font-size: 16px; }
.info .lien { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--label); text-decoration: none; }
.info .lien::after { content: " →"; }
.info .ouverture { display: inline-block; margin-top: 12px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }

/* Les autres comptoirs des halles ORDV (page Infos) */
.voisins-intro { max-width: 62ch; margin-bottom: 24px; }
.voisins { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 0; }
@media (max-width: 960px) { .voisins { grid-template-columns: 1fr 1fr; } }
.voisins a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .2s; }
.voisins a:hover, .voisins a:focus-visible { border-color: var(--label); }
.voisins strong { font-size: 17px; }
.voisins span { font-size: 14px; opacity: .75; }
.horaires { list-style: none; margin: 0; padding: 0; }
.horaires li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.horaires li:last-child { border-bottom: 0; }
.horaires span:last-child { color: var(--muted); text-align: right; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.services li { display: flex; gap: 10px; align-items: baseline; }
.services li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Questions ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 24px 0; font-size: 19px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: .8; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 64ch; }

/* ---------- Scène animée de l'accueil (une par resto : animations/<nom>/) ----------
   Faite des photos, du titre et du logo du resto. Sans JavaScript ou avec « réduire les animations » :
   un écran, la composition finale, fixe. Avec (.est-vive, posé par animations/commun.js) : la section fait
   2,8 écrans et le cadre reste épinglé pendant qu'on descend ; l'animation suit le défilement.
   --bas : marge du bas qui reste libre (sur téléphone, la barre « Commander » est là). */
.scene { position: relative; background: var(--scene-fond, var(--bg)); --bas: 48px; --g: max(20px, (100% - 1180px) / 2); }
.scene-cadre { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.scene.est-vive { height: 280vh; height: 280svh; }
.scene.est-vive .scene-cadre { position: sticky; top: 0; }
@media (max-width: 760px) { .scene { --bas: 104px; } }
.scene-cadre canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Une photo dans son cadre : elle le remplit, et peut zoomer sans en sortir. */
.sc-media { position: absolute; overflow: hidden; }
.sc-media > img, .sc-media > picture, .sc-media > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.est-vive .sc-media > img, .est-vive .sc-media > picture { will-change: transform; }
/* Un grain très fin sur toute la scène : la matière d'un tirage photo. */
.sc-grain {
  position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: var(--grain, .07);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* La légende : surtitre et titre en mots masqués, d'où ils montent. */
.scene-texte { position: absolute; z-index: 6; }
.scene-texte .eyebrow { margin-bottom: 14px; }
.scene-texte h2 { font-size: clamp(34px, 5.4vw, 84px); line-height: 1.02; }
.sc-m { display: inline-block; overflow: hidden; vertical-align: top; padding: .24em .1em .16em 0; margin: -.24em -.1em -.16em 0; }
.sc-m > span { display: inline-block; }
.sc-mots { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 26px; font: 600 12.5px/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; }
.sc-mots span:not(:last-child)::after { content: "·"; margin: 0 .9em; opacity: .6; }
@media (max-width: 760px) {
  .scene-texte h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .sc-mots { margin-top: 16px; font-size: 11.5px; }
}
/* Pendant la scène, les barres fixes passent en fond plein : un flou au-dessus d'un canvas animé coûte cher. */
.scene-en-vue .nav.is-scrolled, .scene-en-vue .barre-mobile { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }

/* ---------- Relance finale ---------- */
.relance { position: relative; overflow: hidden; text-align: center; padding: clamp(90px, 12vw, 150px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.relance-logo { width: min(var(--relance-logo-w, 260px), 70vw); margin: 0 auto 30px; }
.relance h2 { font-size: clamp(38px, 6vw, 80px); max-width: 15ch; margin: 0 auto; }
.relance p { color: var(--muted); max-width: 44ch; margin: 20px auto 0; }
.relance > .wrap { position: relative; }
.relance-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* Fin des pages intérieures : une ligne et le bouton. */
.relance-petite { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.relance-petite .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.relance-petite p {
  max-width: 20ch;
  font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case);
  letter-spacing: var(--display-tracking); font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08;
}

/* ---------- Pied de page ---------- */
.pied { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.pied-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.pied-logo img { height: var(--pied-logo-h, 46px); width: auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--text); }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; font-size: 13.5px; opacity: .8; }

/* ---------- Barre « Commander » fixe sur mobile ---------- */
.barre-mobile { display: none; }
@media (max-width: 760px) {
  .barre-mobile {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transition: transform .3s ease;
  }
  .barre-mobile .btn { width: 100%; }
  .barre-mobile.is-hidden { transform: translateY(110%); }
  body { padding-bottom: 76px; }
}

/* ---------- Révélations au défilement ----------
   Seulement sous .js : sans JavaScript, tout reste visible (leçon du site Shale). */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Pages intérieures : barre de navigation pleine dès le haut ---------- */
.page-interne .nav {
  color: var(--text); border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}

/* Lien d'évitement, visible seulement au clavier. */
.evitement { position: absolute; left: 12px; top: -60px; z-index: 70; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.evitement:focus { top: 12px; }

/* ---------- Page légale ---------- */
.legal { padding: 140px 0 90px; max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 40px; }
.legal h2 { font-size: 26px; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }

/* Les autres plateformes de commande, sous le bouton principal. */
.autres-plateformes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 4px 0; }
.commander-cta .autres-plateformes { margin: 0; }
.autres-plateformes a { line-height: 1.4; }
.autres-plateformes { line-height: 1.4; }
.autres-plateformes a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; margin: 0; }
