/* =========================================================
   Landing Toiture Le Mans — Header / Hero
   ========================================================= */

/* ---------- Typographie (auto-hébergée, 3 graisses) ---------- */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Bleus de marque — Azure Radiance */
  --blue-50:        #eff6ff;
  --blue-100:       #dbebfe;
  --blue-200:       #bfddfe;
  --blue-300:       #93c8fd;
  --blue-400:       #60a9fa;
  --blue-500:       #3785f6;
  --blue-600:       #2569eb;
  --blue-700:       #1d53d8;
  --blue-800:       #1e44af;
  --blue-900:       #1e3d8a;
  --blue-950:       #172754;

  /* Gris de texte & de surface */
  --grey-50:        #f8fafc;
  --grey-100:       #f1f5f9;
  --grey-200:       #e2e8f0;
  --grey-300:       #cad5e2;
  --grey-400:       #90a1b9;
  --grey-500:       #62748e;
  --grey-600:       #45556c;
  --grey-700:       #314158;
  --grey-800:       #1d293d;
  --grey-900:       #0f172b;
  --grey-950:       #020618;

  /* Rôles sémantiques */
  --ink:            var(--grey-900);   /* titres */
  --ink-soft:       var(--grey-600);   /* textes secondaires */
  --ink-muted:      var(--grey-500);   /* mentions, aides */

  --paper:          #ffffff;
  --sand:           var(--grey-50);    /* fond de page */
  --sand-deep:      var(--grey-100);
  --line:           var(--grey-200);

  --brand:          var(--blue-600);   /* couleur de marque */
  --brand-deep:     var(--blue-900);   /* aplats sombres, logo */
  --brand-soft:     var(--blue-50);
  --accent:         var(--blue-600);   /* action — même famille que la marque */
  --accent-dark:    var(--blue-700);
  --accent-light:   var(--blue-500);
  --accent-soft:    var(--blue-50);
  --gold:           #f0a92b;           /* étoiles d'avis (convention) */
  --green:          #1f7a52;           /* signaux "en direct" / validation */

  --radius-lg:      28px;
  --radius-md:      16px;
  --radius-sm:      12px;

  --shadow-card:    0 1px 2px rgba(2,6,24,.04),
                    0 24px 48px -20px rgba(2,6,24,.18),
                    0 8px 20px -12px rgba(2,6,24,.10);
  --shadow-btn:     0 10px 24px -10px rgba(37,105,235,.55);

  --font-display:   'Inter', system-ui, -apple-system, sans-serif;
  --font-body:      'Inter', system-ui, -apple-system, sans-serif;

  --container:      1240px;
  --gutter:         clamp(20px, 4vw, 48px);

  /* Hauteur dont le footer déborde sur la photo du bloc CTA.
     Une seule source de vérité : le bloc CTA réserve cette place, le footer la reprend. */
  --footer-overlap: clamp(72px, 8vw, 116px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
svg { display: block; }

/* État initial avant animation GSAP (posé par JS uniquement) */
.js-anim [data-anim] { opacity: 0; }
.js-anim [data-reveal] { opacity: 0; }

/* ---------- Blocs de section réutilisables ---------- */
.section-head {
  max-width: 46ch;
  margin-inline: auto;
  text-align: center;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.03em;
  color: var(--ink);
}
.section-title em { font-style: normal; color: inherit; }
.section-lead {
  margin-top: 16px;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  color: var(--ink-soft);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(120% 90% at 80% -10%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--sand) 55%, var(--sand-deep) 100%);
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 88px);
}

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid rgba(2,6,24,.07);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 38px; width: auto; }
/* Plus de place dans le footer que dans la nav : le logo peut respirer. */
.footer__brand .brand__logo { height: 52px; }

.nav__actions { display: flex; align-items: center; gap: 20px; }
.nav__note {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
}
.nav__note-icon { width: 16px; height: 16px; color: var(--brand); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; }

.btn--ghost {
  padding: 11px 20px;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(2,6,24,.05);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

.btn--primary {
  padding: 17px 26px;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 55%, var(--accent-dark) 100%);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37,105,235,.65); }
.btn--primary:active { transform: translateY(0); }
.btn--block { width: 100%; }

/* Variantes posées sur photo sombre (bloc CTA final). */
.btn--light {
  padding: 17px 26px;
  font-size: 16.5px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 12px 28px -14px rgba(2,6,24,.7);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(2,6,24,.8); }

.btn--glass {
  padding: 17px 26px;
  font-size: 16.5px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

:where(a, button, input, select):focus-visible {
  outline: 3px solid rgba(37,105,235,.35);
  outline-offset: 2px;
}

/* ---------- Grille du hero ---------- */
/* Zones nommées : en desktop la preuve sociale suit le titre à gauche,
   en mobile l'ordre de lecture est tag/titre/texte, points, preuve sociale,
   puis formulaire (dernier). */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  grid-template-areas:
    "content visual"
    "points  visual"
    "social  visual"
    ".       visual";
  /* La dernière rangée absorbe la hauteur excédentaire de la colonne visuelle :
     sans elle, l'espace se répartirait entre titre, bénéfices et preuve sociale. */
  grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(40px, 5vw, 72px);
  row-gap: 0;
  align-items: start;
  align-content: start;
  padding-block: clamp(24px, 4vw, 48px);
}
.hero__content { grid-area: content; }
.hero__points  { grid-area: points; }
.social        { grid-area: social; }
.hero__visual  { grid-area: visual; }

/* ---------- Colonne texte ---------- */
.hero__tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero__title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.9vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -.032em;
  color: var(--ink);
}
/* Le padding compense la line-height serrée : les accents et jambages
   ne sont pas rognés par le masque de révélation. */
.hero__title .line {
  display: block;
  overflow: hidden;
  padding: .1em 0 .14em;
  margin: -.1em 0 -.14em;
}
.hero__title .line > span { display: block; }
.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
/* Surligneur plutôt que soulignement : évite la lecture "lien hypertexte"
   maintenant que le mot accentué est bleu comme la marque. */
.hero__title em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.06em; right: -.06em; bottom: .06em;
  height: .3em;
  border-radius: 4px;
  background: var(--blue-100);
}

.hero__lead {
  margin-top: 22px;
  max-width: 33ch;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  color: var(--ink-soft);
}
.hero__lead strong { color: var(--ink); font-weight: 600; }

.hero__points {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}
.hero__points svg {
  flex: none;
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

/* ---------- Preuve sociale ---------- */
.social {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.social__avatars { display: flex; }
.avatar {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--a, var(--brand));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 2.5px solid var(--sand);
}
.avatar + .avatar { margin-left: -10px; }

.social__stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}
.social__stars strong { color: var(--ink); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }

.social__count {
  margin-top: 2px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.social__count strong { color: var(--ink); font-weight: 600; }
/* Le chiffre renvoie vers l'avis Google : il doit rester lisible comme du texte. */
.social__count a {
  color: inherit;
  transition: color .16s ease;
}
.social__count a:hover { color: var(--brand); }

/* ---------- Colonne visuelle ---------- */
.hero__visual { position: relative; perspective: 1200px; align-self: start; }

/* ---------- Carte formulaire ---------- */
.card {
  position: relative;
  z-index: 2;
  margin: -72px 16px 0;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-card);
}
.card__head { margin-bottom: 22px; }
.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 1.9vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}
/* ---------- Formulaire ---------- */
.form { display: grid; gap: 16px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: grid; gap: 7px; }
.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--grey-50);
  font-size: 15.5px;
  font-family: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.field textarea { resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-400); }
.field input:hover, .field textarea:hover { border-color: var(--grey-300); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,105,235,.14);
}
.field__hint {
  font-size: 12.5px;
  color: var(--ink-muted);
}
.field__optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.form .btn--primary { margin-top: 6px; }
/* La grille du formulaire espace toutes ses lignes de 16px : on resserre
   juste celle-ci pour obtenir 12px précisément sous le bouton. */
.form .btn--primary + .form__legal { margin-top: 8px; }

.form__legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-muted);
  text-align: left;
}
.form__legal svg { flex: none; width: 15px; height: 15px; color: var(--brand); }

/* Variante centrée : icône et texte sur une ligne, le bloc entier au milieu de la carte. */
.form__legal--center {
  justify-content: center;
  text-align: left;
}

/* =========================================================
   BARRE CTA STICKY
   Reste basse et compacte : une seule ligne, deux CTA à droite,
   réassurance courte à gauche (masquée en dessous de 640px).
   ========================================================= */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  padding: 10px var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(2,6,24,.14);
  transform: translateY(100%);
  transition: transform .35s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-cta__info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.sticky-cta__rating { display: flex; align-items: center; gap: 5px; }
.sticky-cta__rating svg { width: 14px; height: 14px; color: #f5a623; }
.sticky-cta__rating strong { color: var(--ink); font-weight: 600; }
.sticky-cta__rating-count { color: var(--ink-muted); }
.sticky-cta__price {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.sticky-cta__price strong { color: var(--brand); font-weight: 600; }
.sticky-cta__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.sticky-cta .btn { padding: 11px 18px; font-size: 14.5px; white-space: nowrap; }

@media (max-width: 640px) {
  .sticky-cta__info { display: none; }
  .sticky-cta__inner { justify-content: center; }
  .sticky-cta__actions { width: 100%; }
  .sticky-cta .btn { flex: 1; justify-content: center; }
}

/* =========================================================
   3. SIGNES QU'IL EST TEMPS
   ========================================================= */
.signs {
  background:
    radial-gradient(90% 60% at 50% 0%, #ffffff 0%, rgba(255,255,255,0) 70%),
    var(--sand);
}
.signs__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}

.sign {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(2,6,24,.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.sign:hover {
  transform: translateY(-3px);
  border-color: var(--blue-200);
  box-shadow: 0 1px 2px rgba(2,6,24,.04), 0 22px 40px -26px rgba(2,6,24,.35);
}

.sign__title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.02em;
  color: var(--ink);
}
.sign__text {
  margin-top: 9px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
/* La conséquence est ce qui crée l'urgence : on la détache du descriptif. */
.sign__risk {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--brand);
}
.sign__risk::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--blue-200);
}

/* ---------- Encart de relance (fin de section) ---------- */
.cta-bar {
  width: fit-content;
  max-width: 100%;
  margin: 64px auto 0;
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  border-radius: 12px;
  background: var(--brand-soft);
}
.cta-bar__text {
  font-size: 15.5px;
  color: var(--ink);
}
.cta-bar .btn--primary {
  flex: none;
  padding: 14px 22px;
  font-size: 15.5px;
  border-radius: 12px;
  box-shadow: none;
}
.cta-bar .btn--primary:hover { box-shadow: 0 12px 24px -12px rgba(37,105,235,.6); }

/* =========================================================
   NOTRE MÉTHODE EN 4 ÉTAPES
   ========================================================= */
.method { background: var(--paper); }
.method__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}

.method__steps {
  margin-top: clamp(38px, 4.5vw, 60px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  counter-reset: step;
}

.step { position: relative; }
/* Fil pointillé qui relie les pastilles : le process se lit comme une ligne de temps. */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 60px;
  right: calc(clamp(20px, 2.4vw, 32px) * -1 - 12px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-200) 0 7px, transparent 7px 14px);
}
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 8px 18px -10px rgba(37,105,235,.9);
}
.step__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.step__text {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
/* =========================================================
   AVANT / APRÈS
   ========================================================= */
.works {
  background:
    radial-gradient(90% 60% at 50% 0%, #ffffff 0%, rgba(255,255,255,0) 70%),
    var(--sand);
}
.works__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}
.ba__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--sand-deep);
  touch-action: pan-y;      /* le glissement horizontal pilote le curseur */
  user-select: none;
}
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Le clip-path évite d'écraser la photo : elle garde sa taille, seule
   la partie visible change. --pos est écrit par le JS. */
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }

.ba__tag {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba__tag--before {
  left: 12px;
  background: rgba(2,6,24,.62);
  backdrop-filter: blur(6px);
  color: #fff;
}
.ba__tag--after {
  right: 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  color: var(--brand);
}

.ba__line {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(2,6,24,.16);
  pointer-events: none;
}
.ba__handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--brand);
  box-shadow: 0 6px 18px -6px rgba(2,6,24,.55);
  transition: transform .18s ease;
}
.ba__handle svg { width: 22px; height: 22px; }

/* Le range natif reste la vraie commande : clavier, tactile et lecteurs
   d'écran fonctionnent sans code supplémentaire. Il est juste invisible. */
.ba__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}
.ba__range::-webkit-slider-thumb {
  appearance: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: transparent;
  cursor: ew-resize;
}
.ba__range::-moz-range-thumb {
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: ew-resize;
}
.ba__range:focus-visible { outline: 3px solid rgba(37,105,235,.6); outline-offset: -3px; }
.ba__range:focus-visible ~ .ba__line .ba__handle,
.ba__frame:hover .ba__handle { transform: translate(-50%, -50%) scale(1.08); }

/* =========================================================
   TÉMOIGNAGES — colonnes en boucle
   ========================================================= */
.reviews { background: var(--paper); }
.reviews__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}

.reviews__cols {
  margin-top: clamp(36px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  /* Les cartes s'effacent en haut et en bas : le défilement n'a pas de début
     ni de fin visible. */
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.reviews__col {
  height: clamp(520px, 68vh, 720px);
  overflow: hidden;
}

.tmo__track {
  /* flow-root, pas block : sans BFC la marge basse de la dernière carte
     s'échappe du conteneur et le raccord de boucle dérive à chaque cycle. */
  display: flow-root;
  will-change: transform;
  animation: tmo-up var(--tmo-dur, 88s) linear infinite;
}
.reviews__col--down .tmo__track {
  animation-name: tmo-down;
  --tmo-dur: 70s;   /* colonne centrale : un peu plus rapide */
}

/* La translation est de -50 % : elle n'est exacte que si chaque carte porte
   son propre écart (margin-bottom) plutôt qu'un gap de conteneur. */
@keyframes tmo-up {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -50%, 0); }
}
@keyframes tmo-down {
  from { transform: translate3d(0, -50%, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Lecture confortable : le survol met la colonne en pause. Restreint aux
   dispositifs à survol réel (souris) : sur tactile, :hover reste "collé"
   après un tap et bloquerait le défilement définitivement. */
@media (hover: hover) {
  .reviews__col:hover .tmo__track,
  .reviews__col:focus-within .tmo__track { animation-play-state: paused; }
}

.tmo {
  margin-bottom: clamp(16px, 1.8vw, 24px);
  padding: clamp(20px, 2vw, 26px);
  border-radius: var(--radius-md);
  background: var(--sand);
  border: 1px solid var(--line);
}
.tmo__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Pas de photo client : initiales sur fond de couleur, une teinte par avis
   pour éviter que la colonne ne devienne monochrome. */
.tmo__avatar-wrap { position: relative; flex: none; }
.tmo__avatar {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--a, var(--brand));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}
/* Pastille « avis certifié Google » : posée sur le coin de l'avatar. */
.tmo__badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(2,6,24,.3);
}
.tmo__badge svg { width: 14px; height: 14px; }
/* Même pastille, déclinée pour l'avis PagesJaunes (pas de logo officiel embarqué). */
.tmo__badge--pj {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #ff6d00;
}
.tmo__id {
  display: grid;
  gap: 2px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-muted);
}
.tmo__id strong {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.tmo__text {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* =========================================================
   ZONE D'INTERVENTION — carte Leaflet
   ========================================================= */
.zone { background: var(--paper); }
.zone__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}

.zone__map-wrap {
  margin-top: clamp(36px, 4vw, 52px);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--sand-deep);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.zone__map { height: clamp(360px, 46vw, 480px); width: 100%; z-index: 0; background: var(--sand-deep); }

/* Légende posée par-dessus la carte */
.zone__legend {
  position: absolute; left: 16px; bottom: 16px; z-index: 500;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 8px 24px -14px rgba(2, 6, 24, .5);
}
.zone__legend p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-muted); }
.zone__legend p + p { margin-top: 6px; }
.zone__legend strong { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.zone__legend-key {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(37, 105, 235, .18); border: 1.5px solid var(--brand); margin-right: 6px;
}

/* Communes : simple ligne sous la carte */
.zone__communes {
  margin: 20px 0 0; text-align: center;
  font-size: 14px; line-height: 1.6; color: var(--ink-muted);
}
.zone__communes strong { font-weight: 600; color: var(--ink); }

/* Marqueur Le Mans */
.zone__pin { position: relative; width: 18px; height: 18px; }
.zone__pin i {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(2, 6, 24, .45);
}
.zone__pin::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px solid var(--brand);
  animation: zone-pulse 2.4s ease-out infinite;
}
@keyframes zone-pulse {
  0%   { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Habillage Leaflet, version claire alignée sur la charte */
.zone .leaflet-container { font: inherit; background: var(--sand-deep); }
.zone .leaflet-control-zoom { border: none !important; box-shadow: 0 6px 18px -10px rgba(2,6,24,.6); }
.zone .leaflet-control-zoom a {
  background: var(--paper); color: var(--ink); border-color: var(--line);
  width: 32px; height: 32px; line-height: 32px; font-size: 18px;
}
.zone .leaflet-control-zoom a:hover { background: var(--sand); color: var(--brand); }
.zone .leaflet-control-attribution {
  background: rgba(255,255,255,.85); font-size: 10px; color: var(--ink-muted);
}
.zone .leaflet-control-attribution a { color: var(--ink-muted); }
.zone .leaflet-tooltip {
  background: var(--ink); color: #fff; border: none; box-shadow: none;
  font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 6px;
}
.zone .leaflet-tooltip-top:before { border-top-color: var(--ink); }

/* État de repli si Leaflet ne charge pas */
.zone__fallback {
  display: none; height: 100%; min-height: 360px;
  align-items: center; justify-content: center; text-align: center;
  padding: 32px; font-size: 15px; color: var(--ink-muted);
}
.zone__map-wrap.is-fallback .zone__map,
.zone__map-wrap.is-fallback .zone__legend { display: none; }
.zone__map-wrap.is-fallback .zone__fallback { display: flex; }

@media (max-width: 600px) {
  .zone__map { height: clamp(320px, 70vw, 400px); }
  .zone__communes { text-align: left; }
}

/* =========================================================
   FAQ — accordéon
   ========================================================= */
.faq { background: var(--sand); }
.faq__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}

/* Colonne de lecture volontairement plus étroite que la grille du site :
   une réponse se lit sur une seule ligne de regard. */
.faq__list {
  max-width: 760px;
  margin: clamp(36px, 4vw, 52px) auto 0;
  display: grid;
  gap: 12px;
}

.faq__item {
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq__item[open] {
  border-color: var(--blue-200);
  box-shadow: 0 18px 36px -24px rgba(2,6,24,.22);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 2vw, 22px) clamp(20px, 2.2vw, 28px);
  font-size: clamp(15.5px, 1.5vw, 17px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;              /* masque le triangle natif */
  transition: color .18s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--ink); }
.faq__q:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}
.faq__item[open] .faq__q { color: var(--ink); font-weight: 600; }

.faq__chevron {
  flex: none;
  width: 20px; height: 20px;
  color: var(--ink-muted);
  transition: transform .25s ease, color .18s ease;
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); color: var(--brand); }

/* La hauteur est animée par JS : overflow caché pour que le texte ne déborde pas
   pendant la transition. */
.faq__a { overflow: hidden; }
.faq__a p {
  padding: 0 clamp(20px, 2.2vw, 28px) clamp(20px, 2.2vw, 26px);
  font-size: 15px;
  color: var(--ink-soft);
}
.faq__a a {
  color: var(--brand);
  font-weight: 500;
  border-bottom: 1.5px solid var(--blue-200);
}
.faq__a a:hover { border-color: var(--brand); }

/* =========================================================
   BLOC CTA FINAL
   ========================================================= */
.final-cta {
  position: relative;
  isolation: isolate;
  /* Le footer remonte par-dessus : on réserve sa hauteur de débord,
     plus le même retrait qu'en haut pour que le bloc reste optiquement centré. */
  --cta-pad: 160px;
  padding-bottom: calc(var(--footer-overlap) + var(--cta-pad));
  color: #fff;
  background: var(--grey-900);
}
.final-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Voile : garantit la lisibilité du texte quelle que soit la photo. */
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2,6,24,.88) 0%, rgba(2,6,24,.6) 48%, rgba(2,6,24,.28) 100%),
    linear-gradient(180deg, rgba(2,6,24,.5) 0%, rgba(2,6,24,0) 40%);
}

.final-cta__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--cta-pad) var(--gutter) 0;
}

.final-cta__rating {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: rgba(255,255,255,.72);
}
.final-cta__rating strong { color: #fff; font-weight: 600; }

.final-cta__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.final-cta__points {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(20px, 2.6vw, 34px);
}
.final-cta__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
}
.final-cta__points svg { flex: none; width: 18px; height: 18px; color: var(--blue-300); }

.final-cta__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   PAGES LÉGALES (mentions-legales.html, confidentialite.html)
   ========================================================= */
.legal__inner {
  max-width: 72ch;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}
.legal__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
}
.legal h2 {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.legal p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.legal a { color: var(--brand); font-weight: 500; }
.legal a:hover { text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  z-index: 2;
  /* Chevauchement du bloc CTA, comme une feuille posée par-dessus la photo. */
  margin-top: calc(var(--footer-overlap) * -1);
  border-radius: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0 0;
  background: var(--paper);
}
.footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(36px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
  gap: clamp(36px, 5vw, 72px);
}

.footer__brand .brand { margin-bottom: 16px; }
.footer__baseline {
  max-width: 38ch;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.footer__title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer__col ul {
  margin-top: 16px;
  display: grid;
  gap: 11px;
}
.footer__col li { font-size: 14.5px; color: var(--ink-soft); }
.footer__col a {
  color: var(--ink);
  transition: color .16s ease;
}
.footer__col a:hover { color: var(--brand); }

.footer__bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding: 22px var(--gutter) 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-muted);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.footer__legal a { transition: color .16s ease; }
.footer__legal a:hover { color: var(--brand); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "content" "points" "social" "visual";
    grid-template-rows: auto;
    row-gap: clamp(30px, 5vw, 44px);
  }
  .hero__points, .social { margin-top: 0; }
  .social { padding-top: 0; border-top: 0; }
  .hero__lead { max-width: 52ch; }
  .hero__visual { max-width: 620px; }

  .method__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  /* Le fil ne relie plus que les paires : il n'a pas de sens d'une ligne à l'autre. */
  .step:nth-child(2n)::before { display: none; }

  /* Deux colonnes seulement : la troisième déborderait de l'écran. */
  .reviews__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews__col--last { display: none; }

  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__note { display: none; }
  .hero__grid { padding-block: 20px 0; }
  .hero__title { margin-top: 18px; }
  .hero__lead { margin-top: 16px; }
  .card { margin: -48px 8px 0; border-radius: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .social { gap: 14px; }

  .sign__risk { padding-top: 14px; }
  .cta-bar {
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 16px 12px;
    text-align: center;
  }
  .cta-bar .btn--primary { width: 100%; }

  /* Étapes en liste verticale : le fil passe à gauche, sous les pastilles. */
  .method__steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 30px 62px; }
  .step:last-child { padding-bottom: 0; }
  .step:not(:last-child)::before {
    /* Rétablit le fil masqué par la règle « paires » du palier tablette. */
    display: block;
    top: 52px; bottom: 0;
    left: 22px; right: auto;
    width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--blue-200) 0 7px, transparent 7px 14px);
  }
  .step__num { position: absolute; top: 0; left: 0; }
  .step__title { margin-top: 12px; }

  /* Une seule colonne : deux colonnes à 390px donneraient des cartes illisibles. */
  .reviews__cols { grid-template-columns: 1fr; }
  .reviews__col { height: clamp(440px, 62vh, 560px); }
  .reviews__col--down { display: none; }

  /* Sur photo, le dégradé horizontal ne suffit plus : on assombrit à la verticale. */
  .final-cta::after {
    background: linear-gradient(180deg, rgba(2,6,24,.72) 0%, rgba(2,6,24,.86) 100%);
  }
  .final-cta__actions { flex-direction: column; align-items: stretch; }
  .final-cta__actions .btn { width: 100%; }

  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand__logo { height: 32px; }
  .btn--ghost { padding: 10px 15px; font-size: 14px; }
  .btn--ghost svg { width: 16px; height: 16px; }
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js-anim [data-anim],
  .js-anim [data-reveal] { opacity: 1 !important; transform: none !important; }

  /* Les colonnes d'avis deviennent de simples zones défilables à la main. */
  .tmo__track { animation: none !important; transform: none !important; }
  .reviews__col { height: auto; max-height: 620px; overflow-y: auto; }
  .tmo[aria-hidden="true"] { display: none; }
}
