/*
  Site vitrine de SaveFood. Une seule feuille, aucune ressource externe :
  polices et images sont servies par le site lui-même (voir _headers).

  Direction : éditoriale. Un serif de titrage (Instrument Serif), un texte
  sobre (Inter), l'ivoire et le vert profond du logo, un seul accent
  chartreuse, des filets fins plutôt que des cartes.
*/

@font-face {
  font-family: "Instrument";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("fonts/instrument-serif-italique.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --nuit: #08150d;
  --foret: #0e2416;
  --foret-2: #15331f;
  --vert: #2f6b35;
  --emeraude: #059669;
  --chartreuse: #cfe67a;
  --ambre: #e8a23a;
  --ivoire: #f4f0e7;
  --ivoire-2: #ebe5d8;
  --encre: #141a15;
  --encre-douce: #59615a;
  --sauge: #9fb0a2;
  --filet: rgba(20, 26, 21, 0.14);
  --filet-clair: rgba(244, 240, 231, 0.14);

  --serif: "Instrument", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --cadre: 1240px;
  --gouttiere: clamp(20px, 4.5vw, 56px);
  --doux: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain discret sur toute la page : c'est lui qui ôte l'aspect « aplat
   d'écran » des grands fonds unis. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: url("img/grain.png");
  opacity: 0.5;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-style: italic; }

::selection { background: var(--chartreuse); color: var(--nuit); }

.cadre {
  width: 100%;
  max-width: calc(var(--cadre) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.evitement {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--chartreuse);
  color: var(--nuit);
  font-weight: 600;
  text-decoration: none;
}
.evitement:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--chartreuse);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ───────────── Typographie ───────────── */

.titre-geant {
  font-family: var(--serif);
  font-size: clamp(3.25rem, 9.2vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.titre-geant em { color: var(--chartreuse); }

.titre-section {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.titre-section em { color: var(--vert); }
.titre-section--clair em { color: var(--chartreuse); }

.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.etiquette::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.etiquette--clair { color: var(--sauge); }

/* ───────────── Boutons ───────────── */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.actions--centre { justify-content: center; }

.bouton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font: 500 0.9688rem/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--doux), box-shadow 0.5s var(--doux), transform 0.5s var(--doux);
}
/* Remplissage qui monte au survol. */
.bouton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--doux);
}
.bouton:hover::before { transform: none; }

.bouton--clair { background: var(--ivoire); color: var(--nuit); }
.bouton--clair::before { background: var(--chartreuse); }

.bouton--contour { color: var(--ivoire); box-shadow: inset 0 0 0 1px rgba(244, 240, 231, 0.35); }
.bouton--contour::before { background: var(--ivoire); }
.bouton--contour:hover { color: var(--nuit); }

.bouton--contour-sombre { color: var(--encre); box-shadow: inset 0 0 0 1px var(--filet); }
.bouton--contour-sombre::before { background: var(--encre); }
.bouton--contour-sombre:hover { color: var(--ivoire); }

.bouton--lien {
  min-height: 0;
  padding: 6px 0;
  border-radius: 0;
  color: var(--ivoire);
  overflow: visible;
}
.bouton--lien::before {
  top: auto; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transform: scaleX(1);
  transform-origin: right;
}
.bouton--lien:hover::before { opacity: 1; animation: souligne 0.8s var(--doux); }
.bouton--lien span { transition: transform 0.5s var(--doux); }
.bouton--lien:hover span { transform: translateX(4px); }

.bouton--petit { min-height: 42px; padding: 0 22px; font-size: 0.875rem; }

.bouton--magasin {
  padding: 0 26px 0 22px;
  background: var(--nuit);
  color: var(--ivoire);
  text-align: left;
  cursor: default;
}
.bouton--magasin::before { display: none; }
.bouton--magasin > span { display: flex; flex-direction: column; gap: 4px; font-size: 1.0625rem; font-weight: 500; }
.bouton--magasin small { font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }

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

.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--ivoire);
  transition: background-color 0.5s var(--doux), color 0.5s var(--doux), box-shadow 0.5s var(--doux), transform 0.6s var(--doux);
}
.entete.est-defile {
  background: rgba(8, 21, 13, 0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  box-shadow: 0 1px 0 var(--filet-clair);
}
.entete.est-cache { transform: translateY(-100%); }

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.marque img { width: 34px; border-radius: 9px; }

.menu { display: flex; align-items: center; gap: 40px; }
.menu a:not(.bouton) {
  position: relative;
  text-decoration: none;
  font-size: 0.9063rem;
  color: rgba(244, 240, 231, 0.75);
  transition: color 0.3s;
}
.menu a:not(.bouton):hover { color: var(--ivoire); }

.menu-bouton {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(244, 240, 231, 0.3);
  color: inherit;
  cursor: pointer;
}
.menu-bouton__trait,
.menu-bouton__trait::before {
  position: absolute;
  left: 50%;
  width: 16px; height: 1.5px;
  margin-left: -8px;
  background: currentColor;
  transition: transform 0.4s var(--doux);
}
.menu-bouton__trait { top: calc(50% - 3px); }
.menu-bouton__trait::before { content: ""; left: 0; margin: 0; top: 6px; }
.menu-bouton[aria-expanded="true"] .menu-bouton__trait { transform: translateY(3px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-bouton__trait::before { transform: translateY(-6px) rotate(-90deg); }

/* ───────────── Ouverture ───────────── */

.ouverture {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  padding: 168px 0 0;
  background: var(--nuit);
  color: var(--ivoire);
  text-align: center;
}

.ouverture__fond {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 42% at 50% 78%, rgba(57, 135, 52, 0.42), transparent 72%),
    radial-gradient(30% 30% at 50% 100%, rgba(207, 230, 122, 0.18), transparent 70%);
}
.orbites {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  fill: none;
  stroke: rgba(244, 240, 231, 0.07);
  stroke-width: 1;
}
.orbites circle { animation: respire 9s ease-in-out infinite; transform-origin: 500px 640px; }
.orbites circle:nth-child(2) { animation-delay: -2s; }
.orbites circle:nth-child(3) { animation-delay: -4s; }
.orbites circle:nth-child(4) { animation-delay: -6s; }

.sur-titre {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sauge);
}
.filet { width: 36px; height: 1px; background: currentColor; }

.ouverture .titre-geant { margin: 0 auto; font-size: clamp(3rem, 7.6vw, 8rem); }
.ligne { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ligne > * { display: inline-block; animation: monte-ligne 1.3s var(--doux) both; }
.ligne:nth-child(2) > * { animation-delay: 0.12s; }

.ouverture__chapo {
  max-width: 35rem;
  margin: 36px auto 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  font-weight: 350;
  line-height: 1.6;
  color: rgba(244, 240, 231, 0.72);
}
.ouverture .actions { justify-content: center; margin-top: 44px; }

.ligne-entree { animation: fondu-monte 1.2s var(--doux) both; }
.ouverture__chapo.ligne-entree { animation-delay: 0.35s; }
.actions.ligne-entree { animation-delay: 0.5s; }

.ouverture__scene {
  position: relative;
  height: 470px;
  max-width: 900px;
  margin: 80px auto 0;
  animation: fondu-monte 1.6s 0.6s var(--doux) both;
}

/* Téléphone */
.telephone {
  position: relative;
  border-radius: 50px;
  padding: 11px;
  background: linear-gradient(150deg, #2a332c, #0b100c 60%);
  box-shadow:
    0 80px 120px -40px rgba(0, 0, 0, 0.75),
    0 30px 60px -30px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 3px #0b100c;
}
.telephone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 21px; left: 50%;
  width: 82px; height: 24px;
  margin-left: -41px;
  border-radius: 999px;
  background: #050806;
}
.telephone__ecran {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 40px;
  background: #f8fafc;
  color: #0f172a;
}

.telephone--ouverture {
  width: 320px;
  height: 640px;
  margin: 0 auto;
}

.verre {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(244, 240, 231, 0.1);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(244, 240, 231, 0.16), 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  color: var(--ivoire);
  text-align: left;
  line-height: 1.3;
}
.verre--gauche {
  left: 0; top: 120px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  animation: flotte 8s ease-in-out infinite;
}
.verre--droite {
  right: 0; top: 260px;
  animation: flotte 9s ease-in-out -3s infinite;
}
.verre img { width: 30px; border-radius: 8px; }
.verre__petit { display: block; font-size: 0.6875rem; letter-spacing: 0.06em; color: rgba(244, 240, 231, 0.6); }
.verre__code { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.02em; line-height: 1.05; }
.verre__ligne { font-size: 0.75rem; color: rgba(244, 240, 231, 0.65); }
.verre__titre { display: block; font-family: var(--serif); font-size: 1.375rem; }

/* Écrans de l'appli (reproduisent l'application mobile) */
.ecran { position: absolute; inset: 0; padding: 56px 14px 14px; }

.appli-entete { display: flex; flex-direction: column; padding: 0 6px 12px; line-height: 1.25; }
.appli-entete__petit { font-size: 0.6875rem; color: #64748b; font-weight: 500; }
.appli-entete__lieu { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }

.appli-filtres {
  display: flex;
  gap: 6px;
  padding: 0 4px 12px;
  overflow: hidden;
  font-size: 0.6875rem;
  font-weight: 600;
}
.appli-filtres span {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  color: #475569;
}
.appli-filtres .actif { background: var(--emeraude); color: #fff; box-shadow: none; }

.offre {
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px -14px rgba(15, 23, 42, 0.3);
  text-align: left;
}
.offre__photo { position: relative; height: 84px; overflow: hidden; }
.offre__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.remise {
  position: absolute;
  top: 9px; left: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f59e0b;
  color: #020617;
  font-size: 0.6875rem;
  font-weight: 800;
}
.offre__corps {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 8px;
  padding: 9px 12px 11px;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #64748b;
}
.offre__corps > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offre__corps strong { grid-column: 1 / -1; font-size: 0.875rem; color: #0f172a; font-weight: 700; letter-spacing: -0.01em; }
.offre__prix {
  grid-column: 2; grid-row: 2 / span 2;
  align-self: end;
  text-align: right;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--emeraude);
  line-height: 1.15;
}
.offre__prix s { display: block; font-size: 0.6875rem; font-weight: 500; color: #94a3b8; }

/* ───────────── Manifeste ───────────── */

.manifeste { padding: clamp(110px, 15vw, 200px) 0 clamp(90px, 11vw, 150px); }

.manifeste__texte {
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5.2vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.manifeste__texte em { color: var(--vert); }
/* Les mots s'allument au fil du défilement (site.js découpe le texte). */
.js .manifeste__texte .mot { opacity: 0.16; transition: opacity 0.5s ease; }
.js .manifeste__texte .mot.est-lu { opacity: 1; }

.chiffres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(80px, 10vw, 130px);
  border-top: 1px solid var(--filet);
}
.chiffre { display: flex; flex-direction: column; gap: 10px; padding: 32px 32px 0 0; }
.chiffre + .chiffre { padding-left: 32px; border-left: 1px solid var(--filet); }
.chiffre__valeur { font-family: var(--serif); font-size: clamp(3rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.chiffre__libelle { max-width: 17rem; color: var(--encre-douce); font-size: 0.9688rem; }

/* ───────────── Récit « comment ça marche » ───────────── */

.recit { padding: 0 0 clamp(80px, 10vw, 140px); }
.recit__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.recit__tete { padding-top: clamp(40px, 6vw, 80px); margin-bottom: 8vh; }

.etape {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72vh;
  max-width: 30rem;
  padding: 40px 0;
  border-top: 1px solid var(--filet);
  opacity: 0.3;
  transition: opacity 0.7s var(--doux);
}
.etape.est-active { opacity: 1; }
.etape__num {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--vert);
}
.etape h3 { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 20px; }
.etape p { color: var(--encre-douce); font-size: 1.125rem; max-width: 26rem; }
.etape__mini { display: none; }

.recit__scene {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
}
.recit__scene::before {
  /* Halo derrière le téléphone. */
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ivoire-2) 0%, transparent 68%);
}
.telephone--recit { width: 320px; height: 650px; }

.ecran { opacity: 0; transform: scale(0.97); transition: opacity 0.7s var(--doux), transform 0.9s var(--doux); }
.ecran.est-active, .ouverture .ecran { opacity: 1; transform: none; }

.carte {
  position: relative;
  height: 250px;
  margin: 0 2px 12px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 46%, #fff 46% 52%, transparent 52%) 0 0 / 110px 100%,
    linear-gradient(0deg, transparent 46%, #fff 46% 53%, transparent 53%) 0 0 / 100% 84px,
    linear-gradient(32deg, transparent 48%, rgba(255,255,255,.8) 48% 51%, transparent 51%),
    #e3ead9;
}
.carte__repere {
  position: absolute;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  box-shadow: 0 8px 16px -6px rgba(0,0,0,.4);
}
.carte__repere::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  width: 8px; height: 8px;
  margin-left: -4px;
  background: inherit;
  transform: rotate(45deg);
}
.carte__repere--a { left: 14%; top: 20%; background: var(--emeraude); }
.carte__repere--b { left: 56%; top: 12%; }
.carte__repere--c { left: 44%; top: 62%; }
.carte__moi {
  position: absolute;
  left: 24%; top: 58%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18), inset 0 0 0 3px #fff;
}

.ecran--code { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 70px; }
.ecran__titre-vert { color: var(--emeraude); font-weight: 750; font-size: 1.1875rem; letter-spacing: -0.01em; }
.ecran__qr { width: 130px; height: 130px; margin: 18px 0 14px; border-radius: 14px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.35); }
.ecran__petit { font-size: 0.75rem; color: #64748b; }
.ecran__code { font-size: 1.75rem; font-weight: 800; letter-spacing: 0.06em; }
.ecran__fiche {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f1f5f9;
  text-align: left;
  font-size: 0.75rem;
  color: #64748b;
}
.ecran__fiche strong { font-size: 0.9375rem; color: #0f172a; }
.ecran__fiche b { margin-top: 6px; font-size: 1rem; color: var(--emeraude); }

.ecran--pret { display: flex; flex-direction: column; padding-top: 64px; background: linear-gradient(180deg, #f8fafc, #ecfdf5); }
.notif {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.35);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: left;
  color: #475569;
}
.notif img { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.notif small { display: block; color: #94a3b8; }
.notif b { display: block; color: #0f172a; font-size: 0.875rem; }
.ecran__fait {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}
.ecran__coche {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--emeraude);
  color: #fff;
  box-shadow: 0 0 0 12px rgba(5, 150, 105, 0.12);
}
.ecran__fait strong { font-size: 1.25rem; color: #0f172a; letter-spacing: -0.01em; }

/* ───────────── Bandeau ───────────── */

.bandeau {
  overflow: hidden;
  padding: 34px 0;
  background: var(--foret);
  color: var(--ivoire);
}
.bandeau__piste { display: flex; width: max-content; animation: defile 60s linear infinite; }
.bandeau__texte {
  flex: none;
  padding-right: 0.3em;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.bandeau__texte em { color: var(--chartreuse); }
.bandeau__texte i { font-style: normal; color: rgba(244, 240, 231, 0.3); padding: 0 0.25em; }

/* ───────────── Atouts ───────────── */

.atouts { padding: clamp(110px, 14vw, 190px) 0; }
.atouts__tete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(70px, 9vw, 120px);
}

.prix-barre { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--serif); line-height: 0.9; }
.prix-barre s {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--encre-douce);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ambre);
}
.prix-barre span { font-size: clamp(5rem, 12vw, 10.5rem); letter-spacing: -0.05em; color: var(--vert); }
.prix-barre small { font-size: 0.32em; letter-spacing: 0; margin-left: 0.15em; }

.atouts__liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--filet);
}
.atouts__liste li { padding: 36px 32px 0 0; }
.atouts__liste li + li { padding-left: 32px; border-left: 1px solid var(--filet); }
.icone {
  width: 34px; height: 34px;
  margin-bottom: 40px;
  fill: none;
  stroke: var(--vert);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.atouts__liste h3 { font-family: var(--serif); font-size: 1.875rem; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 14px; }
.atouts__liste p { color: var(--encre-douce); font-size: 0.9688rem; }

/* ───────────── Commerçants ───────────── */

.commercants {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(110px, 14vw, 190px) 0;
  background: var(--nuit);
  color: var(--ivoire);
}
.commercants__fond {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 85% 8%, rgba(232, 162, 58, 0.14), transparent 70%),
    radial-gradient(45% 40% at 10% 55%, rgba(57, 135, 52, 0.22), transparent 70%);
}
.commercants__tete { max-width: 760px; }
.commercants__chapo { max-width: 32rem; margin-top: 32px; font-size: 1.1875rem; font-weight: 350; color: rgba(244, 240, 231, 0.7); }

.calcul {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  margin-top: clamp(70px, 9vw, 110px);
  padding-top: 56px;
  border-top: 1px solid var(--filet-clair);
}
.calcul__reglages { display: flex; flex-direction: column; gap: 40px; }
.curseur { display: block; }
.curseur__libelle {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  color: rgba(244, 240, 231, 0.65);
  font-size: 0.9375rem;
}
.curseur output {
  color: var(--ivoire);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}

input[type="range"] {
  --rempli: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(to right, var(--chartreuse) var(--rempli), rgba(244,240,231,.22) var(--rempli));
}
input[type="range"]::-moz-range-track { height: 1px; background: rgba(244,240,231,.22); }
input[type="range"]::-moz-range-progress { height: 1px; background: var(--chartreuse); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--chartreuse);
  box-shadow: 0 0 0 6px rgba(207, 230, 122, 0.15);
  transition: box-shadow 0.3s;
}
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(207, 230, 122, 0.18); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--chartreuse);
  box-shadow: 0 0 0 6px rgba(207, 230, 122, 0.15);
}

.calcul__resultat { display: flex; flex-direction: column; justify-content: center; }
.calcul__perte { font-size: 0.9375rem; color: rgba(244, 240, 231, 0.6); }
.calcul__perte s { color: var(--ivoire); text-decoration-color: #ff6b5a; text-decoration-thickness: 1.5px; font-variant-numeric: tabular-nums; }
.calcul__libelle { margin-top: 36px; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sauge); }
.calcul__gain {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(3.75rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--chartreuse);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calcul__note { margin-top: 26px; max-width: 26rem; font-size: 0.8125rem; color: rgba(244, 240, 231, 0.45); }

.commercants__corps {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
  margin-top: clamp(100px, 12vw, 160px);
}
.pas { margin: 0; padding: 0; list-style: none; }
.pas li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 20px;
  padding: 32px 0;
  border-top: 1px solid var(--filet-clair);
}
.pas li:last-child { border-bottom: 1px solid var(--filet-clair); }
.pas__num { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ambre); line-height: 1.4; }
.pas h3 { font-family: var(--serif); font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; }
.pas p { max-width: 28rem; margin-top: 10px; color: rgba(244, 240, 231, 0.65); }

.film { margin: 0; justify-self: center; text-align: center; }
.telephone--film { width: min(320px, 76vw); aspect-ratio: 9 / 18.6; }
.telephone--film::before { display: none; }
.telephone--film video { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; background: #07090c; }
.film figcaption { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: rgba(244, 240, 231, 0.6); }

.tarifs { margin-top: clamp(100px, 12vw, 160px); }
.tarifs__tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 50px;
}
.tarifs h3 { font-family: var(--serif); font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; }
.tarifs h3 em { color: var(--chartreuse); }
.tarifs__tete p { max-width: 30rem; color: rgba(244, 240, 231, 0.6); font-size: 0.9688rem; }
.tarifs__grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--filet-clair);
  border-bottom: 1px solid var(--filet-clair);
}
.formule { display: flex; flex-direction: column; gap: 10px; padding: 36px 32px 36px 0; }
.formule + .formule { padding-left: 32px; border-left: 1px solid var(--filet-clair); }
.formule__nom { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sauge); }
.formule__prix { font-family: var(--serif); font-size: clamp(2.75rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.formule__prix small { font-family: var(--sans); font-size: 0.875rem; letter-spacing: 0; color: rgba(244, 240, 231, 0.55); }
.formule__detail { color: rgba(244, 240, 231, 0.7); }
.formule--accent .formule__nom { color: var(--chartreuse); }
.tarifs__pied { margin-top: 20px; font-size: 0.875rem; color: rgba(244, 240, 231, 0.5); }

.commercants__appel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(80px, 10vw, 120px);
}
.commercants__appel p { max-width: 38rem; color: rgba(244, 240, 231, 0.65); }
.commercants__appel a:not(.bouton) { color: var(--chartreuse); text-underline-offset: 3px; }

/* ───────────── Questions ───────────── */

.questions { padding: clamp(110px, 14vw, 190px) 0; }
.questions__grille {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 110px);
}
.questions header { position: sticky; top: 120px; align-self: start; }

.faq { border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary {
  position: relative;
  padding: 30px 60px 30px 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
  transition: color 0.3s;
}
.faq summary:hover { color: var(--vert); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--doux);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { max-width: 38rem; padding: 0 60px 32px 0; color: var(--encre-douce); }
.faq a { color: var(--vert); text-underline-offset: 3px; }

/* ───────────── Final ───────────── */

.final {
  padding: clamp(110px, 14vw, 180px) 0;
  background: var(--ivoire-2);
  text-align: center;
}
.final__contenu { display: flex; flex-direction: column; align-items: center; }
.final__icone {
  width: 120px;
  margin-bottom: 48px;
  border-radius: 26%;
  filter: drop-shadow(0 30px 40px rgba(14, 36, 22, 0.35));
}
.titre-geant--final { max-width: 15ch; font-size: clamp(3.25rem, 8vw, 8rem); }
.titre-geant--final em { color: var(--vert); }
.final__texte { max-width: 30rem; margin: 32px auto 44px; font-size: 1.125rem; color: var(--encre-douce); }

/* ───────────── Pied de page ───────────── */

.pied {
  overflow: hidden;
  padding: 90px 0 32px;
  background: var(--nuit);
  color: rgba(244, 240, 231, 0.6);
  font-size: 0.9375rem;
}
.pied__grille {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.pied__devise { font-family: var(--serif); font-size: 2rem; line-height: 1.05; color: var(--ivoire); }
.pied__devise em { color: var(--chartreuse); }
.pied h2 {
  margin-bottom: 18px;
  color: var(--sauge);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.pied nav, .pied__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pied a { text-decoration: none; transition: color 0.3s; }
.pied a:hover { color: var(--ivoire); }
.pied__marque {
  margin: 80px 0 0;
  font-family: var(--serif);
  font-size: clamp(5rem, 24vw, 22rem);
  line-height: 0.75;
  letter-spacing: -0.05em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 240, 231, 0.22);
  user-select: none;
}
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--filet-clair);
  font-size: 0.8125rem;
  color: rgba(244, 240, 231, 0.4);
}

/* ───────────── Animations ───────────── */

@keyframes monte-ligne { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fondu-monte { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes respire { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.03); opacity: 0.6; } }
@keyframes defile { to { transform: translateX(-50%); } }
@keyframes souligne { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

.js .revele {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--doux), transform 1.1s var(--doux);
}
.js .revele.est-visible { opacity: 1; transform: none; }
.js .atouts__liste .revele:nth-child(2), .js .pas .revele:nth-child(2) { transition-delay: 0.08s; }
.js .atouts__liste .revele:nth-child(3), .js .pas .revele:nth-child(3) { transition-delay: 0.16s; }
.js .atouts__liste .revele:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bandeau__piste { animation: none; }
}

/* ───────────── Adaptations ───────────── */

@media (max-width: 1080px) {
  .atouts__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atouts__liste li:nth-child(3) { padding-left: 0; border-left: 0; }
  .atouts__liste li:nth-child(n + 3) { border-top: 1px solid var(--filet); margin-top: 36px; }
  .pied__grille { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .menu-bouton { display: block; }
  .menu {
    position: fixed;
    inset: 80px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gouttiere) 28px;
    background: var(--nuit);
    box-shadow: 0 1px 0 var(--filet-clair);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.6s var(--doux);
  }
  .menu.est-ouvert { clip-path: inset(0 0 0 0); }
  .menu a:not(.bouton) {
    padding: 16px 0;
    border-bottom: 1px solid var(--filet-clair);
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--ivoire);
  }
  .menu .bouton { margin-top: 24px; }
  .entete.menu-ouvert { background: var(--nuit); }

  /* Le récit devient une suite d'étapes, chacune avec son écran. */
  .recit__grille { grid-template-columns: 1fr; }
  .recit__scene { display: none; }
  .recit__tete { margin-bottom: 20px; }
  .etape { min-height: 0; max-width: none; opacity: 1; padding: 40px 0 56px; }
  .etape__mini {
    display: block;
    position: relative;
    width: 280px;
    height: 520px;
    margin: 40px auto 0;
  }
  .etape__mini .telephone { width: 100%; height: 100%; }

  .calcul, .commercants__corps, .tarifs__tete, .questions__grille { grid-template-columns: 1fr; }
  .questions header { position: static; }
  .chiffres { grid-template-columns: 1fr; }
  .chiffre, .chiffre + .chiffre { padding: 28px 0; border-left: 0; }
  .chiffre + .chiffre { border-top: 1px solid var(--filet); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .ouverture { padding-top: 132px; }
  .ouverture__scene { height: 430px; margin-top: 60px; }
  .telephone--ouverture { width: 270px; height: 560px; }
  .verre { padding: 12px 14px; background: rgba(8, 21, 13, 0.94); }
  .verre--gauche { left: -6px; top: 210px; }
  .verre__code { font-size: 1.5rem; }
  .verre__ligne { display: none; }
  .verre--droite { right: -6px; top: 330px; }
  .verre__titre { font-size: 1.125rem; }
  .ouverture .actions { flex-direction: column; }
  .ouverture .actions .bouton--clair { width: 100%; }
  .atouts__liste { grid-template-columns: 1fr; }
  .atouts__liste li, .atouts__liste li + li { padding: 32px 0 0; border-left: 0; }
  .atouts__liste li + li { margin-top: 32px; border-top: 1px solid var(--filet); }
  .atouts__liste li:nth-child(n + 3) { margin-top: 32px; }
  .prix-barre { align-items: flex-start; }
  .tarifs__grille { grid-template-columns: 1fr; }
  .formule, .formule + .formule { padding: 28px 0; border-left: 0; }
  .formule + .formule { border-top: 1px solid var(--filet-clair); }
  .pas li { grid-template-columns: 44px 1fr; }
  .faq summary { padding-right: 44px; }
  .faq details p { padding-right: 0; }
  .pied__grille { grid-template-columns: 1fr; }
  .actions--centre { flex-direction: column; }
}
