/* ==========================================================================
   Page de vente — lin, vert sapin, touches de bordeaux, filets au trait
   ========================================================================== */

:root {
  color-scheme: light;

  /* Fonds : blanc, et un lin très léger pour alterner les sections */
  --bg: #FFFFFF;
  --bg-2: #F7F5F1;
  --paper: #FAF7F2;
  --white: #FFFFFF;
  --shadow-card: 0 0 0 1px rgba(26, 29, 27, .06), 0 1px 2px rgba(26, 29, 27, .04), 0 12px 32px rgba(26, 29, 27, .06);

  /* Encres */
  --ink: #1A1D1B;
  --ink-2: #4E534E;
  --ink-3: #646862;
  --rule: rgba(26, 29, 27, .12);
  --rule-soft: rgba(26, 29, 27, .07);

  /* Marque : le vert sapin, seule couleur de marque */
  --forest: #1F4D3A;
  --forest-2: #173D2E;
  --forest-3: #2B6A50;
  --sage: #B9D3C4;
  --mint: #4FC285;
  --mint-strong: #1E8452;
  --mint-soft: #E2F4E9;
  --brand: #1F4D3A;
  --brand-soft: #E5EEE8;

  /* Bordeaux : les petites touches (surtitres, chiffres, mots mis en avant) */
  --wine: #7B2D3B;
  --wine-2: #8F3A49;
  --wine-deep: #5E1F2C;
  --wine-soft: #F1EBE3;  /* lin neutre sous une touche bordeaux : jamais de rose */

  --violet-soft: #ECECF9;
  --violet-ink: #4646B5;

  /* Verre */
  --glass: linear-gradient(158deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .55));
  --glass-line: rgba(255, 255, 255, .8);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .85);
  --blur: blur(20px) saturate(1.4);

  /* Angles : adoucis, jamais en pilule */
  --r-xs: 6px;
  --r-sm: 8px;
  --r: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;

  --shadow-1: 0 1px 2px rgba(40, 32, 20, .04), 0 10px 28px rgba(40, 32, 20, .06);
  --shadow-2: 0 2px 8px rgba(40, 32, 20, .05), 0 22px 54px rgba(40, 32, 20, .1);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}


h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: var(--r-sm); }

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

svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.glyph { width: 16px; height: 16px; flex: none; fill: currentColor; stroke: none; }

/* Titres : serif éditorial, graisse moyenne, jamais gras */
h1, h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--ink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--r);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  font-family: var(--sans);
  transition: background .2s, box-shadow .2s, color .2s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--forest); color: var(--paper); box-shadow: 0 6px 18px rgba(31, 77, 58, .2); }
.btn-primary:hover { background: var(--forest-2); }

.btn-light { background: var(--paper); color: var(--forest); }
.btn-light:hover { background: #fff; }

.btn-ghost { color: var(--forest); box-shadow: inset 0 0 0 1px rgba(31, 77, 58, .3); }
.btn-ghost:hover { background: rgba(31, 77, 58, .05); box-shadow: inset 0 0 0 1px rgba(31, 77, 58, .5); }

.btn-soft { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.btn-soft:hover { background: var(--bg-2); }

.btn-sm { min-height: 38px; padding: 0 15px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-note { margin-top: 18px; font-size: 13px; display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.cta-note svg.i { width: 15px; height: 15px; color: var(--forest-3); }

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

/* Blanc translucide, logo vert sapin : le style par défaut (pages légales, et accueil une fois défilée) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(26, 29, 27, .08);
  transition: background .3s var(--ease), border-color .3s, transform .35s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }

.brand { display: flex; align-items: center; }
.brand img { display: block; width: auto; height: 32px; }
.brand .logo-light { display: none; }
@media (max-width: 380px) { .brand img { height: 28px; } }

.site-nav { margin-left: auto; display: none; gap: 2px; }
.site-nav a { padding: 8px 13px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: #3F4540; transition: background .2s, color .2s; }
.site-nav a:hover { background: rgba(31, 77, 58, .07); color: var(--forest); }
.site-header .btn-primary, .site-header .btn-soft { min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--forest); color: #FFFFFF; box-shadow: none; }
.site-header .btn-primary:hover, .site-header .btn-soft:hover { background: var(--forest-2); color: #FFFFFF; }
.site-header .btn-primary::after { display: none; }

/* Accueil : posée sur la photo, sans fond, tant qu'on n'a pas commencé à descendre */
body.has-hero .site-header { position: fixed; left: 0; right: 0; }
body.has-hero .site-header:not(.scrolled) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.has-hero .site-header:not(.scrolled) .logo-dark { display: none; }
body.has-hero .site-header:not(.scrolled) .logo-light { display: block; }
body.has-hero .site-header:not(.scrolled) .site-nav a { color: rgba(255, 255, 255, .88); }
body.has-hero .site-header:not(.scrolled) .site-nav a:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
body.has-hero .site-header:not(.scrolled) .btn-primary { background: rgba(255, 255, 255, .12); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
body.has-hero .site-header:not(.scrolled) .btn-primary:hover { background: #FFFFFF; color: var(--forest); }

.header-cta { margin-left: auto; }
.site-nav + .header-cta { margin-left: 0; }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .site-header .wrap { width: min(1260px, 100% - 64px); min-height: 72px; }
  .brand img { height: 38px; }
}

/* Sur téléphone, elle s'efface quand on descend et revient quand on remonte */
@media (max-width: 899px) {
  .site-header .wrap { min-height: 58px; }
  .site-header.tucked { transform: translateY(-100%); }
}

/* ---------- Héros ---------- */

/* Une vraie photo de marché en fond, assombrie de vert sapin pour que le texte reste lisible.
   Photo : Sára Sedlmajerová, Unsplash (licence Unsplash). */
.hero {
  position: relative;
  padding: 56px 0 66px;
  background:
    linear-gradient(180deg, rgba(14, 36, 27, .66) 0%, rgba(14, 36, 27, .84) 55%, rgba(14, 36, 27, .95) 100%),
    url(../images/hero-marche-mobile.jpg) 50% 55% / cover no-repeat,
    var(--forest-2);
  color: #FFFFFF;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(14, 36, 27, .9) 0%, rgba(14, 36, 27, .72) 46%, rgba(14, 36, 27, .25) 100%),
      url(../images/hero-marche.jpg) 50% 55% / cover no-repeat,
      var(--forest-2);
  }
}

.hero > .wrap { position: relative; z-index: 1; }
body.has-hero .hero { padding-top: 114px; }
@media (min-width: 900px) { body.has-hero .hero { padding-top: 156px; } }

/* Invitation d'un parrain (lien ?parrain=CODE) */
.invite-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 34em;
  margin-bottom: 26px;
  padding: 13px 16px;
  border-radius: var(--r);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(40, 32, 20, .06), inset 0 0 0 1px var(--rule-soft);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}
.invite-note[hidden] { display: none; }
.invite-note svg.i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--wine); }
.invite-note b { font-weight: 600; }
.invite-note [data-invite-code] { color: var(--wine); letter-spacing: .08em; }
.hero-grid { display: grid; gap: 44px; align-items: center; }

/* Surtitre : un filet, une petite marque, des capitales espacées. Pas de pastille. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--forest);
}
.eyebrow { align-items: flex-start; }
.eyebrow svg { width: 17px; height: 17px; margin-top: -1px; opacity: .9; }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(37px, 5.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -.022em;
  color: #FFFFFF;
}
.hero h1 em { font-style: italic; color: #F2C9D1; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%; bottom: .02em;
  height: 1.5px;
  background: #F2C9D1;
  opacity: .5;
}

.hero-sub { margin-top: 22px; font-size: clamp(15.5px, 1.8vw, 17px); color: rgba(255, 255, 255, .88); max-width: 32em; }

.hero .cta-row { margin-top: 30px; }
.hero .cta-note { color: rgba(255, 255, 255, .88); }
.hero .cta-note svg.i { color: var(--sage); }
.hero .eyebrow { color: #FFFFFF; }
.hero .eyebrow svg path { fill: #E9D9C4; }
.hero .eyebrow svg rect { fill: #B9D3C4; }
/* Sur la photo, les boutons d'installation passent en blanc */
.hero .btn-primary { background: #FFFFFF; color: var(--forest); box-shadow: none; }
.hero .btn-primary:hover { background: var(--paper); }

/* ---------- Téléphone de démonstration ---------- */

.phone-wrap { display: flex; justify-content: center; padding-bottom: 18px; }

.phone {
  position: relative;
  width: min(286px, 72vw);
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(165deg, #3A3A3D, #111113 72%);
  box-shadow: 0 30px 64px rgba(40, 32, 20, .22), inset 0 0 0 1px rgba(255, 255, 255, .11);
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  z-index: 2;
}

.phone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  /* clip-path : seule découpe qui s'applique aussi au contenu mis à l'échelle */
  clip-path: inset(0 round 36px);
  background: var(--bg);
  aspect-ratio: 375 / 812;
  isolation: isolate;
}
.phone-screen iframe {
  position: absolute;
  top: 0; left: 0;
  width: 375px;
  height: 812px;
  border: 0;
  transform-origin: top left;
  transform: scale(var(--phone-scale, .72));
}

.phone-hint {
  position: absolute;
  left: 50%; bottom: -26px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  background: var(--wine);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(94, 31, 44, .28);
  transition: opacity .5s;
}
.phone-hint svg.i { width: 14px; height: 14px; }
.phone-hint.gone { opacity: 0; pointer-events: none; }

@media (min-width: 900px) {
  .hero { padding: 84px 0 100px; }
  .hero-grid { grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); gap: 56px; }
  .phone { width: min(296px, 100%); }
}

/* ---------- Bandeau de réassurance ---------- */

/* Quatre garanties, discrètes : une petite icône ronde, un titre, une précision */
.assurance { padding: 22px 0; }
.assurance ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.assurance li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.as-ic { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(31, 77, 58, .08); color: var(--forest); }
.as-ic svg.i { width: 16px; height: 16px; }
.assurance b { align-self: end; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.assurance li > span:last-child { align-self: start; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); }
/* Sur un petit téléphone, le titre seul suffit : la bande reste légère */
@media (max-width: 519px) {
  .assurance li > span:last-child { display: none; }
  .assurance b { align-self: center; }
  .as-ic { grid-row: auto; }
}

@media (min-width: 820px) {
  /* Même écart entre les quatre, de bord à bord, et une bande centrée en hauteur */
  .assurance { padding: 26px 0; }
  .assurance ul { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
  .assurance b { font-size: 13.5px; }
  .assurance li > span:last-child { font-size: 12px; }
}

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

section { padding: 96px 0; }
section.tight { padding: 80px 0; }
section.on-white { background: var(--bg-2); }

.section-head { max-width: 640px; margin-bottom: 40px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wine);
}
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--wine); }

h2 { margin-top: 16px; font-size: clamp(29px, 4vw, 42px); line-height: 1.1; }
.section-head p:not(.kicker) { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); max-width: 34em; }

/* ---------- Problèmes : trois colonnes séparées par un filet ---------- */

/* Cartes blanches posées sur la page, bien espacées */
.pain-grid { display: grid; gap: 16px; }
.pain { padding: 28px 26px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-card); text-align: center; }
.pain-mark {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  color: var(--wine);
  margin-bottom: 12px;
}
.pain h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pain p { margin-top: 9px; font-size: 15px; color: var(--ink-2); }
.pain .pain-fix { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--forest); }

@media (min-width: 820px) {
  .pain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pain { padding: 32px 28px; }
}

/* ---------- Fonctions ---------- */

.feature { display: grid; gap: 30px; align-items: center; padding: 38px 0; }
.feature + .feature { border-top: 1px solid var(--rule-soft); }
.feature-num {
  display: block;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--wine);
}
.feature h3 { margin-top: 14px; font-family: var(--display); font-weight: 500; font-size: clamp(23px, 2.9vw, 29px); line-height: 1.16; letter-spacing: -.015em; }
.feature p { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.feature ul { margin-top: 22px; border-top: 1px solid var(--rule-soft); }
.feature li { padding: 11px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; color: var(--ink-2); }

/* La vignette : une scène vert sapin très pâle,
   et l'illustration posée sur une plaque blanche */
.feature-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 20px;
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, #EDF3EF 0%, var(--brand-soft) 55%, #D9E6DE 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 77, 58, .06);
}
.feature-art.chip-top { padding-top: 50px; }
.feature-art.chip-bottom { padding-bottom: 50px; }

/* Deux halos : une lumière blanche d'un côté, une ombre colorée de l'autre */
.feature-art::before,
.feature-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.feature-art::before {
  width: 72%;
  aspect-ratio: 1;
  top: -26%;
  right: -16%;
  background: radial-gradient(circle, rgba(31, 77, 58, .14) 0%, rgba(31, 77, 58, 0) 70%);
  filter: blur(18px);
}
.feature-art::after {
  width: 70%;
  aspect-ratio: 1;
  bottom: -34%;
  left: -18%;
  background: radial-gradient(circle, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 68%);
  filter: blur(10px);
}
/* Côté inversé : les halos changent de coin */
.feature.reverse .feature-art::before { right: auto; left: -16%; top: auto; bottom: -26%; }
.feature.reverse .feature-art::after { left: auto; right: -18%; bottom: auto; top: -36%; }

.art-glass {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 40px rgba(31, 77, 58, .1);
}
.art-glass svg { position: relative; display: block; width: 100%; height: auto; }

/* L'étiquette en verre qui déborde de la plaque */
.art-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  box-shadow: 0 10px 26px rgba(31, 77, 58, .14);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  animation: chip-float 6s ease-in-out infinite;
}
.chip-top .art-chip { top: 26px; }
.chip-bottom .art-chip { bottom: 26px; }
.art-chip.right { right: 22px; }
.art-chip.left { left: 22px; }
.art-chip i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; }
.art-chip svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-chip .ok { background: var(--wine); }
.art-chip .up { background: var(--wine); }
.art-chip .dot { background: var(--wine-soft); }
.art-chip .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); }

@keyframes chip-float { 50% { transform: translateY(-4px); } }

@media (min-width: 900px) {
  .feature { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding: 54px 0; }
  .feature.reverse .feature-text { order: 2; }
  .feature-art { padding: 30px 28px; }
  .feature-art.chip-top { padding-top: 54px; }
  .feature-art.chip-bottom { padding-bottom: 54px; }
  .art-glass { padding: 20px; }
}

/* ---------- Le terrain : la photo seule, avec sa légende ---------- */

.field { padding: 0 0 96px; }
.field .wrap { display: flex; justify-content: center; }
.field .photo { width: min(440px, 100%); }

/* Cadre photo, façon tirage posé sur la table */
.photo {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 24px 56px rgba(26, 29, 27, .12);
}
.photo img, .photo .photo-slot { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #EFEADF; }
.photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 20px 18px;
  background: linear-gradient(to top, rgba(14, 32, 24, .82), transparent);
  font-family: var(--display);
  font-size: 17px;
  font-style: italic;
  line-height: 1.3;
  color: var(--paper);
}
.photo-slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.photo-slot svg.i { width: 26px; height: 26px; }
.photo-slot code { font-size: 12px; background: rgba(26, 29, 27, .05); padding: 2px 6px; border-radius: var(--r-xs); }

/* ---------- Étapes ---------- */

.steps { display: grid; gap: 16px; }
.step { position: relative; padding: 28px 26px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-card); text-align: center; }
.step-num {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  color: var(--wine);
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.step p { margin-top: 9px; font-size: 15px; color: var(--ink-2); }

@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { padding: 30px 28px; }
}

/* ---------- Tarifs ---------- */

.plans { display: grid; gap: 18px; align-items: stretch; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-1);
}

/* La formule conseillée : un filet vert sapin, et le bandeau bordeaux */
.plan.featured {
  border-color: var(--forest);
  box-shadow: 0 0 0 1px var(--forest), var(--shadow-2);
}

.plan-badge {
  position: absolute;
  top: -12px; right: 22px;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  background: var(--wine);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.plan h3 { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .18em; }
.price {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.price-note { margin-top: 8px; font-size: 13px; color: var(--wine-deep); font-weight: 500; }
.plan .sub { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

.plan ul { flex: 1 0 auto; align-content: start; margin: 22px 0 24px; border-top: 1px solid var(--rule-soft); }
.plan li { display: grid; grid-template-columns: 17px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14.5px; color: var(--ink-2); }
.plan li svg.i { width: 17px; height: 17px; margin-top: 3px; color: var(--forest-3); }
.plan li.no { color: var(--ink-3); }
.plan li.no svg.i { color: var(--ink-3); }

.plan-note { margin-top: 11px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* Garanties : une ligne de trois, au filet */
.guarantees {
  margin-top: 34px;
  display: grid;
  border-top: 1px solid var(--rule);
}
.guarantees li { padding: 18px 0; }
.guarantees li + li { border-top: 1px solid var(--rule-soft); }
.guarantees b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.guarantees b svg.i { display: inline-block; vertical-align: -3px; margin-right: 8px; width: 16px; height: 16px; color: var(--forest-3); }
.guarantees span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

.plan-foot { margin-top: 24px; font-size: 13px; color: var(--ink-3); }

@media (min-width: 840px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .plan { padding: 32px 30px 28px; }
  .plan-badge { right: 28px; }
  .guarantees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guarantees li { padding: 20px 26px 20px 0; }
  .guarantees li + li { border-top: 0; border-left: 1px solid var(--rule-soft); padding-left: 26px; }
}

/* ---------- Questions ---------- */

.faq { max-width: 760px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg.i { color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary { color: var(--forest); }
.faq details[open] summary svg.i { transform: rotate(45deg); color: var(--wine); }
.faq .answer { padding: 0 0 22px; font-size: 15px; color: var(--ink-2); max-width: 58em; }
.faq .answer p + p { margin-top: 12px; }

/* ---------- Appel final ---------- */

.final {
  position: relative;
  padding: 58px 28px;
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, #EDF3EF 0%, var(--brand-soft) 60%, #D9E6DE 100%);
  color: var(--ink);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(31, 77, 58, .06);
}
.final::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -220px; top: -300px;
  border-radius: 50%;
  border: 1px solid rgba(123, 45, 59, .09);
  pointer-events: none;
}
.final > * { position: relative; }
.final { display: grid; gap: 40px; align-items: center; }
.final h2 { color: var(--forest); max-width: 13em; }
.final-text p { margin-top: 18px; color: var(--ink-2); max-width: 34em; }
.final .cta-row { margin-top: 30px; }
.final .cta-note { color: var(--ink-2); }
.final .cta-note svg.i { color: var(--forest-3); }

/* Le prochain marché, en verre dépoli, comme dans les vignettes */
.final-visual { position: relative; isolation: isolate; }
.final-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 80%;
  aspect-ratio: 1;
  top: -18%;
  right: -16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 77, 58, .16) 0%, rgba(31, 77, 58, 0) 70%);
  filter: blur(16px);
  pointer-events: none;
}
.countdown-card {
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  box-shadow: 0 22px 50px rgba(31, 77, 58, .14);
}
.cd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cd-label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.cd-when { padding: 4px 10px; border-radius: 8px; background: var(--wine); color: #FFFFFF; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cd-date { margin-top: 12px; font-family: var(--display); font-size: clamp(26px, 3vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -.015em; color: var(--forest); }
.cd-meta { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.cd-progress { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.cd-progress-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.cd-progress-head b { font-weight: 600; color: var(--wine); }
.cd-bar { display: block; margin-top: 8px; height: 5px; border-radius: 3px; background: rgba(31, 77, 58, .1); overflow: hidden; }
.cd-bar i { display: block; width: 35%; height: 100%; border-radius: inherit; background: var(--wine); }
.cd-list { margin-top: 12px; }
.cd-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.cd-list li.done { color: var(--ink-3); text-decoration: line-through; }
.cd-list i { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #C9C0B3; background: var(--white); }
.cd-list li.done i { background: var(--forest); box-shadow: none; }
.cd-list svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Le code QR : seulement sur ordinateur, posé à cheval sur la carte */
.qr-card {
  position: absolute;
  z-index: 2;
  left: -30px;
  bottom: -72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  box-shadow: 0 14px 34px rgba(31, 77, 58, .16);
}
.qr-card[hidden] { display: none; }
.final-visual.has-qr .countdown-card { padding-bottom: 50px; }
.final-visual.has-qr { margin-bottom: 72px; }
.qr-code { width: 96px; height: 96px; padding: 5px; border-radius: 10px; background: #fff; }
.qr-code svg { display: block; width: 100%; height: 100%; }
.qr-card p { margin: 0; }
.qr-card b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.qr-card span { display: block; margin-top: 2px; max-width: 13em; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }

@media (min-width: 720px) { .final { padding: 70px 56px; } }
@media (min-width: 960px) {
  .final { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; padding: 70px 56px 84px; }
}

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

.site-footer { padding: 46px 0 64px; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; gap: 22px; }
.site-footer p, .site-footer a { font-size: 14px; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-legal { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Fenêtre d'installation ---------- */

.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(26, 29, 27, .45); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .25s var(--ease); }
.modal-backdrop.open { opacity: 1; }

.modal {
  position: fixed;
  z-index: 61;
  left: 0; right: 0; bottom: 0;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 26px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 247, 242, .98);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -14px 44px rgba(0, 0, 0, .24);
  transform: translateY(100%);
  transition: transform .38s var(--ease);
}
.modal.open { transform: none; }

.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.modal h2 { font-size: 24px; margin: 0; }
.modal-close { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.modal-close:hover { background: rgba(26, 29, 27, .05); }

.install-steps { display: grid; counter-reset: istep; border-top: 1px solid var(--rule-soft); }
.install-step { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
.install-step::before {
  counter-increment: istep;
  content: counter(istep);
  font-family: var(--display);
  font-size: 15px;
  color: var(--wine);
  line-height: 1.5;
}
.install-step b { display: block; font-weight: 600; }
.install-step span { color: var(--ink-2); font-size: 14px; }
.install-step .key { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--rule); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.install-step .key svg.i { width: 14px; height: 14px; }

.modal-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.modal .btn { margin-top: 22px; }

@media (min-width: 720px) {
  .modal {
    left: 50%;
    bottom: auto;
    top: 50%;
    width: min(520px, calc(100vw - 48px));
    border-radius: var(--r-xl);
    transform: translate(-50%, -46%) scale(.98);
    opacity: 0;
    transition: transform .3s var(--ease), opacity .22s;
  }
  .modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ---------- Pages légales ---------- */

.legal-page { padding: 46px 0 76px; }
.legal-page .wrap { width: min(720px, 100% - 48px); }
.legal-page h1 { font-family: var(--display); font-weight: 500; font-size: clamp(31px, 5vw, 42px); line-height: 1.12; color: var(--ink); margin-bottom: 10px; }
.legal-page .updated { font-size: 13px; color: var(--ink-3); }
.legal-page h2 { font-size: 21px; margin-top: 40px; }
.legal-page h3 { font-size: 16.5px; margin-top: 24px; font-weight: 600; }
.legal-page p, .legal-page li { font-size: 15.5px; color: var(--ink-2); margin-top: 11px; }
.legal-page ul { margin-top: 11px; display: grid; gap: 7px; padding-left: 20px; list-style: disc; }
.legal-page a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.legal-page strong { color: var(--ink); }

.draft-note { margin: 24px 0 34px; padding: 16px 18px; border-left: 2px solid var(--wine); background: rgba(123, 45, 59, .07); color: var(--wine-deep); font-size: 14.5px; }
.todo { background: rgba(123, 45, 59, .12); color: var(--wine-deep); padding: 1px 6px; border-radius: var(--r-xs); font-weight: 600; }


/* ---------- Animations (désactivées si l'appareil demande moins de mouvement) ---------- */

/* 3. Apparition douce des sections */
.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .pain.reveal:nth-child(2), .anim .step.reveal:nth-child(2), .anim .guarantees li.reveal:nth-child(2) { transition-delay: .1s; }
.anim .pain.reveal:nth-child(3), .anim .step.reveal:nth-child(3), .anim .guarantees li.reveal:nth-child(3) { transition-delay: .2s; }
.anim .plan.reveal + .plan.reveal { transition-delay: .12s; }

/* 2. Les illustrations des fonctions prennent vie */
.anim .anim-art .a {
  transform-box: fill-box;
  transition: opacity .55s var(--ease), transform .7s cubic-bezier(.2, .9, .25, 1.15);
  transition-delay: calc(var(--i, 0) * 120ms + 200ms);
}
.anim .anim-art:not(.live) .a { opacity: 0; }
.anim .anim-art:not(.live) .a-left { transform: translateX(-16px); }
.anim .anim-art:not(.live) .a-up { transform: translateY(10px); }
.anim .anim-art:not(.live) .a-pop { transform: scale(.2); }
.anim .anim-art:not(.live) .a-grow { transform: scaleY(0); }
.anim .anim-art:not(.live) .a-bar { transform: scaleX(0); }
.anim .anim-art .a-pop { transform-origin: center; }
.anim .anim-art .a-grow { transform-origin: bottom; transition-duration: .55s, .9s; }
.anim .anim-art .a-bar { transform-origin: left; transition-duration: .55s, 1.2s; transition-delay: .5s; }
.anim .anim-art .art-chip { transition: opacity .5s var(--ease), transform .6s cubic-bezier(.2, .9, .25, 1.2); transition-delay: .9s; }
.anim .anim-art:not(.live) .art-chip { opacity: 0; transform: translateY(8px) scale(.94); }

/* 4. Le bloc final : la barre se remplit, les cases se cochent */
.anim .final-visual .cd-bar i { transition: width 1.4s cubic-bezier(.3, .8, .3, 1) .35s; }
.anim .final-visual:not(.live) .cd-bar i { width: 0; }
.anim .final-visual .cd-list li.done i { transition: transform .45s cubic-bezier(.2, .9, .25, 1.4), background .3s; }
.anim .final-visual .cd-list li.done:nth-child(1) i { transition-delay: .6s; }
.anim .final-visual .cd-list li.done:nth-child(2) i { transition-delay: .85s; }
.anim .final-visual:not(.live) .cd-list li.done i { transform: scale(0); }
.anim .final-visual .countdown-card { transition: transform .8s var(--ease), opacity .8s var(--ease); }
.anim .final-visual:not(.live) .countdown-card { opacity: 0; transform: translateY(20px) rotate(-1deg); }

/* 5. Boutons principaux : reflet au survol, invitation discrète au chargement */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
@media (hover: hover) {
  .btn-primary:hover::after { animation: reflet .8s var(--ease); }
}
@keyframes reflet { to { left: 120%; } }
.anim .hero .cta-row .btn-primary { animation: appel 1.4s ease-out 1.8s 1 both; }
.anim .hero .cta-row .btn-primary + .btn-primary { animation-delay: 2s; }
@keyframes appel {
  0% { box-shadow: 0 6px 18px rgba(31, 77, 58, .2), 0 0 0 0 rgba(31, 77, 58, .35); }
  70% { box-shadow: 0 6px 18px rgba(31, 77, 58, .2), 0 0 0 12px rgba(31, 77, 58, 0); }
  100% { box-shadow: 0 6px 18px rgba(31, 77, 58, .2), 0 0 0 0 rgba(31, 77, 58, 0); }
}


/* ---------- L'avenir : frise en trois temps ---------- */

.road { position: relative; display: grid; gap: 26px; max-width: 640px; }
.road li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: -24px; width: 2px; border-radius: 2px; background: var(--forest); }
.road li:nth-child(2)::before { background: linear-gradient(var(--forest), var(--wine)); }
.anim .road li.reveal:nth-child(2) { transition-delay: .12s; }
.anim .road li.reveal:nth-child(3) { transition-delay: .24s; }
.road li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 18px; align-items: start; }
.road-dot { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 2px var(--forest); }
.road-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--forest); }
.road-done .road-dot { background: var(--forest); }
.road-done .road-dot::after { display: none; }
.road-done .road-dot svg.i { width: 17px; height: 17px; color: var(--paper); stroke-width: 2.4; }
.road-next .road-dot { box-shadow: inset 0 0 0 2px var(--wine); }
.road-next .road-dot::after { background: var(--wine); }
.road small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.road b { display: block; margin-top: 4px; font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.15; color: var(--ink); }
.road p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.road-card { margin-top: -6px; padding: 22px 22px 24px; border-radius: var(--r-lg); background: linear-gradient(152deg, #245842 0%, var(--forest) 50%, #163828 100%); box-shadow: 0 20px 44px rgba(23, 61, 46, .22); }
.road-card .road-tag { display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: 11px; background: var(--wine); color: #FFFFFF; letter-spacing: .06em; }
.road-card b { margin-top: 12px; font-size: 28px; color: var(--paper); }
.road-card p { margin-top: 8px; font-size: 15.5px; color: rgba(250, 247, 242, .82); }
.road-foot { margin-top: 30px; max-width: 640px; font-size: 15px; color: var(--ink-2); }
.road-foot b { color: var(--forest); }
.road-foot span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

@media (min-width: 900px) {
  .road-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); column-gap: 72px; align-items: start; }
  .road-wrap .section-head { grid-row: span 2; position: sticky; top: 110px; }
  .road-foot { grid-column: 2; }
}

/* ---------- Replis ---------- */

@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .modal { background: var(--bg); }
}

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