/* ==========================================================================
   Vitralo — feuille de style unique (landing + pages légales)
   Mobile d'abord (375 px). Desktop à partir de 1024 px.

   1. Police        6. Offre           11. Avis Google      16. Barre fixe
   2. Tokens        7. Stories         12. Étapes           17. Lecteur stories
   3. Base          8. Formulaire      13. FAQ              18. Pages légales
   4. Header        9. Sections        14. Boutons / relance 19. Tablette / desktop
   5. Hero         10. Cartes story    15. Footer
   ========================================================================== */

/* 1. Police --------------------------------------------------------------- */
/* Instrument Sans (SIL Open Font License), auto-hébergée et préchargée.
   font-display: optional => aucun décalage de mise en page au chargement. */
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: optional;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light;

  --surface: #F2F5F6;
  --surface-2: #FFFFFF;
  --ink: #0C1B22;
  --ink-soft: #4A5C64;
  --line: #D8E0E3;
  --accent: #076B5C;
  --accent-press: #05564A;
  --glass: #E4EFEC;          /* teinte de la tranche d'un vitrage */
  --star: #F4B400;
  --star-off: #D5DBDE;
  --ph-bg: #FFF1B8;           /* contenus à remplacer */
  --ph-ink: #5C4400;
  --ph-line: #B58A00;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --gutter: 16px;
  --header-h: 52px;

  /* Bande frittée : trame de points qui se dissout, comme le bord d'un pare-brise */
  --frit:
    radial-gradient(circle, var(--ink) 2.7px, transparent 3.1px) 0 0 / 7px 7px repeat-x,
    radial-gradient(circle, var(--ink) 2px, transparent 2.4px) 3.5px 7px / 7px 7px repeat-x,
    radial-gradient(circle, var(--ink) 1.3px, transparent 1.7px) 0 14px / 7px 7px repeat-x,
    radial-gradient(circle, var(--ink) .7px, transparent 1.1px) 3.5px 21px / 7px 7px repeat-x;

  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.3l6.2 3.7-1.6-7 5.4-4.7-7.2-.6L12 2 9.2 8.7 2 9.3l5.4 4.7-1.6 7z'/%3E%3C/svg%3E");
  --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-story-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.site-header :focus-visible,
.final-cta :focus-visible,
.site-footer :focus-visible,
.offer-band :focus-visible,
.story-viewer :focus-visible { outline-color: #fff; }

html[data-offer="off"] .offer { display: none !important; }

/* Contenu à remplacer par du contenu réel avant mise en ligne */
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  outline: 1px dashed var(--ph-line);
  border-radius: 3px;
  padding: 0 3px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--surface-2);
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }

.meta { display: block; font-size: 13px; color: var(--ink-soft); }

/* 4. Header --------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 3;
  background: var(--ink);
  color: #fff;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 28px;
  background: var(--frit);
  pointer-events: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wordmark {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.site-header__tag { font-size: 13px; color: rgba(255, 255, 255, .72); }

/* 5. Hero ----------------------------------------------------------------- */
.hero__media {
  position: relative;
  isolation: isolate;
  height: 350px;
  height: clamp(320px, 52svh, 440px);
  overflow: hidden;
  background: #1E2E35;
}
.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--focus, 50% 30%);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgba(12, 27, 34, .94) 0%,
    rgba(12, 27, 34, .80) 30%,
    rgba(12, 27, 34, .25) 58%,
    rgba(12, 27, 34, 0) 72%);
}
.rating-pill {
  position: absolute;
  top: 40px;
  left: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.rating-pill .gr-stars { --size: 12px; }
.hero__text {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 18px;
  color: #fff;
}
.hero__title {
  font-size: 28px;
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__title-2 { display: block; color: rgba(255, 255, 255, .86); }
.hero__sub {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .86);
}

/* 6. Offre ---------------------------------------------------------------- */
.offer-band {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--gutter);
  background: var(--accent);
  color: #fff;
}
.offer-band__icon { flex: none; width: 30px; height: 30px; }
.offer-band__amount {
  display: block;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.offer-band__small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .88);
}
.offer-band a { color: #fff; }

/* 7. Stories -------------------------------------------------------------- */
.stories {
  padding: 12px var(--gutter) 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.stories__label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.stories__list {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 62px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.story-bubble__ring {
  display: block;
  width: 62px;
  height: 62px;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), #3DB39E, #9ED9CC, var(--accent));
}
.story-bubble__ring img {
  width: 100%;
  height: 100%;
  border: 2px solid var(--surface-2);
  border-radius: 50%;
  object-fit: cover;
  background: #22343C;
}
.story-bubble__name { font-size: 12px; font-weight: 500; line-height: 1.2; }

/* 8. Formulaire ----------------------------------------------------------- */
.form-zone {
  padding: 20px var(--gutter) 0;
  scroll-margin-top: 12px;
}
.form-zone:focus { outline: none; }
.form-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: 5px solid var(--ink);
  border-radius: var(--radius);
}
.form-card__frit { height: 20px; background: var(--frit); }
.form-card__head { padding: 2px 16px 4px; }
.form-card__title {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.checks li { display: flex; align-items: center; gap: 6px; }
.checks li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  -webkit-mask: var(--check-mask) center / contain no-repeat;
          mask: var(--check-mask) center / contain no-repeat;
}
.tally-slot {
  position: relative;
  min-height: var(--tally-min, 400px);
  padding: 4px 8px 8px;
}
.tally-slot.is-ready { min-height: 0; }
.tally-slot__frame { display: block; width: 100%; border: 0; }
.tally-slot__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}
.tally-slot.is-ready .tally-slot__status { display: none; }
.tally-slot.is-missing .tally-slot__status {
  inset: 12px;
  border: 2px dashed var(--ph-line);
  border-radius: var(--radius-sm);
  background: var(--ph-bg);
  color: var(--ph-ink);
  font-weight: 600;
}
.form-zone__legal {
  margin: 10px 2px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* 9. Sections ------------------------------------------------------------- */
.section { padding: 40px var(--gutter) 0; }
.section__title {
  margin-bottom: 6px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section__lead { font-size: 16px; color: var(--ink-soft); }

/* 10. Cartes story -------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.story-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #22343C;
  cursor: pointer;
}
.story-card img { width: 100%; height: 100%; object-fit: cover; }
.story-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(12, 27, 34, .8);
  color: #fff;
}
.story-card__play svg { width: 26px; height: 26px; margin-left: 3px; }
.story-card__time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(12, 27, 34, .75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.card-grid figcaption { margin-top: 8px; font-size: 15px; line-height: 1.35; }
.card-grid figcaption strong { display: block; font-weight: 600; }

/* 11. Avis Google --------------------------------------------------------- */
.gr {
  margin-top: 16px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.gr-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 16px;
}
.gr-summary__value { font-size: 30px; line-height: 1; font-weight: 600; }
.gr-summary__count { font-size: 14px; color: var(--ink-soft); }
.gr-summary__source {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  width: 100%;
  font-size: 13px;
  color: var(--ink-soft);
}
.gr-summary__source a { font-weight: 600; }
.gr-stars {
  --size: 15px;
  --rating: 5;
  display: inline-block;
  flex: none;
  width: calc(var(--size) * 5);
  height: var(--size);
  background: linear-gradient(90deg,
    var(--star) calc(var(--rating) * 20%),
    var(--star-off) calc(var(--rating) * 20%));
  -webkit-mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x;
          mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x;
}
.gr-stars--lg { --size: 20px; }
.gr-list { margin: 0; padding: 0; list-style: none; }
.gr-review { padding: 16px; border-top: 1px solid var(--line); }
.gr-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.gr-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--avatar, #7A8B93);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.gr-review__author { font-size: 15px; font-weight: 600; line-height: 1.3; }
.gr-review__sub { font-size: 12px; color: var(--ink-soft); }
.gr-review__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.gr-review__text {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.gr-review.is-expanded .gr-review__text { display: block; -webkit-line-clamp: unset; }
.gr-review__more {
  margin-top: 2px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.reviews__note { margin: 10px 2px 0; font-size: 13px; color: var(--ink-soft); }

.offer-conditions {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--glass);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  scroll-margin-top: 16px;
}

/* 12. Étapes -------------------------------------------------------------- */
.steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 20px 44px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--glass);
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 2px;
  left: 14px;
  width: 2px;
  background: var(--accent);
  opacity: .3;
}
.steps__title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.steps__text { margin-top: 2px; font-size: 15px; color: var(--ink-soft); }
.steps__note {
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  font-size: 14px;
  line-height: 1.5;
}

/* 13. FAQ ----------------------------------------------------------------- */
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding-bottom: 16px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.faq__answer p + p { margin-top: 8px; }

/* 14. Boutons / relance --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .btn:active { background: var(--accent-press); }
.btn--block { display: flex; width: 100%; }

.cta-block { margin-top: 20px; }
.cta-block__note { margin-top: 8px; font-size: 13px; text-align: center; color: var(--ink-soft); }

.final-cta {
  position: relative;
  isolation: isolate;
  margin-top: 64px;
  padding: 36px var(--gutter) 32px;
  background: var(--ink);
  color: #fff;
}
.final-cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 28px;
  background: var(--frit);
  transform: scaleY(-1);
}
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .06) 50%, transparent 62%);
  pointer-events: none;
}
.final-cta__title { font-size: 24px; line-height: 1.2; font-weight: 650; }
.final-cta__text { margin: 6px 0 18px; color: rgba(255, 255, 255, .82); }

/* 15. Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.55;
}
.site-footer__inner { max-width: 1248px; margin: 0 auto; }
.site-footer__inner > * + * { margin-top: 8px; }
.site-footer strong { color: #fff; font-weight: 600; }
.site-footer a { color: #fff; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__links a { display: inline-block; padding: 6px 0; }

/* 16. Barre fixe (mobile) ------------------------------------------------- */
.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .22s ease, visibility 0s linear .22s;
}
.sticky-cta.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .22s ease;
}
.sticky-cta__note { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-cta__offer { display: block; font-size: 14px; font-weight: 700; color: var(--accent); }
.sticky-cta__free { display: block; font-size: 12px; color: var(--ink-soft); }
.sticky-cta .btn { flex: none; min-height: 48px; padding: 0 18px; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .sticky-cta, .sticky-cta.is-visible, .faq summary::after { transition: none; }
}

/* 17. Lecteur stories ----------------------------------------------------- */
.story-viewer {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.story-viewer::backdrop { background: rgba(6, 14, 18, .94); }
.story-viewer__frame {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}
.story-viewer__stage { position: absolute; inset: 0; }
.story-viewer__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: #000;
}
.story-viewer__missing {
  position: absolute;
  top: 44%;
  right: 16px;
  left: 16px;
  z-index: 1;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--ph-bg);
  color: var(--ph-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.story-viewer__zone {
  position: absolute;
  top: 72px;
  bottom: 150px;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.story-viewer__zone--prev { left: 0; width: 32%; }
.story-viewer__zone--next { right: 0; width: 68%; }
.story-viewer__bars {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  gap: 4px;
}
.story-viewer__bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
}
.story-viewer__bar i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.story-viewer__top {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  right: 8px;
  z-index: 4;
  display: flex;
  gap: 6px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .icon-sound-on,
.icon-btn[aria-pressed="true"] .icon-sound-off { display: none; }
.icon-btn[aria-pressed="true"] .icon-sound-on { display: block; }
.story-viewer__bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  padding: 48px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent);
}
.story-viewer__caption { margin-bottom: 12px; font-size: 14px; line-height: 1.4; }

/* 18. Pages légales ------------------------------------------------------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
}
.legal__back { display: inline-block; margin-bottom: 20px; font-size: 15px; font-weight: 600; }
.legal h1 { margin-bottom: 8px; font-size: 30px; line-height: 1.15; font-weight: 650; letter-spacing: -0.015em; }
.legal__updated { margin-bottom: 28px; font-size: 14px; color: var(--ink-soft); }
.legal h2 { margin: 32px 0 10px; font-size: 20px; line-height: 1.25; font-weight: 650; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 10px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.legal th, .legal td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { font-weight: 600; }
.legal__table-wrap { overflow-x: auto; }
.legal-footer { padding-top: 36px; }
.legal-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 28px;
  background: var(--frit);
  transform: scaleY(-1);
}

/* 19. Tablette / desktop -------------------------------------------------- */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .layout { max-width: 680px; margin: 0 auto; }
  .hero__media { border-radius: 0 0 14px 14px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 64px; --gutter: 24px; }

  .mobile-only { display: none !important; }
  .site-header__tag { font-size: 14px; }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    column-gap: 56px;
    max-width: 1248px;
    margin: 0 auto;
    padding: 48px var(--gutter) 0;
  }
  .hero { grid-column: 1; grid-row: 1; }
  .layout__rest { grid-column: 1; grid-row: 2; }

  /* Formulaire fixe à côté de toutes les preuves */
  .form-zone {
    position: sticky;
    top: 24px;
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 0;
  }
  .form-zone.is-unstuck { position: static; }

  .hero__media {
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 14px;
  }
  .rating-pill { top: 16px; left: 18px; }
  .hero__text { right: 28px; bottom: 26px; left: 28px; }
  .hero__title { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; }
  .hero__sub { font-size: 18px; }

  .offer-band { margin-top: 12px; padding: 14px 18px; border-radius: var(--radius); }
  .offer-band__amount { font-size: 24px; }

  .stories { padding: 20px 0 0; background: none; border: 0; }
  .stories__list { justify-content: flex-start; gap: 20px; }
  .story-bubble { width: 72px; }
  .story-bubble__ring { width: 72px; height: 72px; }
  .story-bubble__ring img { border-color: var(--surface); }

  .section { padding: 64px 0 0; }
  .section__title { font-size: 30px; line-height: 1.15; }
  .section__lead { font-size: 17px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 240px)); gap: 24px; }

  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .steps li { padding: 44px 0 0; }
  .steps li::before { top: 0; }
  .steps li:not(:last-child)::after { top: 14px; right: -12px; bottom: auto; left: 40px; width: auto; height: 2px; }
  .steps__note { margin-top: 20px; }

  .final-cta, .sticky-cta { display: none; }

  .site-footer { margin-top: 96px; padding-top: 36px; }
  .site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 28px;
    background: var(--frit);
    transform: scaleY(-1);
  }

  .story-viewer__frame {
    width: min(420px, calc(92vh * 9 / 16));
    height: min(92vh, 746px);
    margin-top: 4vh;
    border-radius: 14px;
  }

  .legal { padding-top: 72px; }
  .legal h1 { font-size: 38px; }
}
