/* ==========================================================================
   Bob Fleet Service · feuille de styles unique
   Thème clair · bleu marine + orange (logo) · mobile-first

   SOMMAIRE
   1. Tokens (couleurs, typo, espacements, ombres, animation)
   2. Base (reset, liens, focus, utilitaires)
   3. Mise en page (container, sections, titres)
   4. Composants
      4.1 Icônes & boutons      4.6 Coches (.ticks) & liens de carte
      4.2 En-tête & menus       4.7 Comparateur avant/après (.ba)
      4.3 Médias & visuels      4.8 Onglets
      4.4 Vapeur animée         4.9 Formulaire
      4.5 Bandeaux défilants    4.10 Barre d'actions mobile · 4.11 Pied de page
   5. Accueil (hero, services, vapeur, avant/après, offres, étapes, zone, FAQ, devis)
   6. Pages (légales, réalisations, merci, 404)
   7. États d'animation & préférences de mouvement

   Points de rupture : 560 · 640 · 768 · 900 · 960 · 1024 · 1100 · 1180 px
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Marque */
  --navy-950: #050F2C;
  --navy-900: #071739;
  --navy-800: #0B2266;
  --navy-700: #0E2F86;   /* bleu du logo */
  --navy-600: #1A47B8;
  --navy-100: #DDE6F7;
  --navy-50:  #EEF3FC;
  --orange-500: #FF6B0A; /* orange du logo */
  --orange-600: #EE5A00;
  --orange-700: #B84300; /* orange lisible sur blanc (AA) */
  --orange-100: #FFE7D6;
  --orange-50:  #FFF4EC;

  /* Rôles */
  --bg: #FFFFFF;
  --surface: #F5F8FD;
  --surface-2: #EDF2FA;
  --line: #E1E8F3;
  --line-strong: #C9D4E6;
  --text: #0B1A3F;
  --text-muted: #4A5878;
  --text-soft: #6B7896;
  --primary: var(--orange-500);
  --primary-hover: var(--orange-600);
  --on-primary: var(--navy-950);
  --focus: #1A47B8;
  --success: #12805C;
  --error: #C2261B;

  /* Typographie */
  --font-display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-2xl: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);

  /* Espacements */
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(1rem, .6rem + 2vw, 2rem);

  /* Formes & profondeur */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgb(11 34 102 / .06), 0 2px 8px rgb(11 34 102 / .05);
  --shadow: 0 2px 4px rgb(11 34 102 / .04), 0 12px 32px rgb(11 34 102 / .08);
  --shadow-lg: 0 4px 8px rgb(11 34 102 / .05), 0 30px 60px -10px rgb(11 34 102 / .18);
  --shadow-orange: 0 10px 28px -8px rgb(255 107 10 / .55);

  /* Animation */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .18s;
  --dur: .3s;
}


/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* Champ anti-spam invisible (formulaire) */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Information à compléter (surlignée, pages légales) */
.todo { background: var(--orange-100); color: var(--orange-700); padding: .05em .4em; border-radius: 5px; font-weight: 700; }


/* ==========================================================================
   3. MISE EN PAGE
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { position: relative; padding-block: var(--section-y); }
.section-tint { background: var(--surface); }

.section-head { display: grid; justify-items: center; gap: 1rem; text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .section-lead { margin-inline: auto; }
.section-head-left { justify-items: start; text-align: left; margin-inline: 0; }
.section-head-left .section-lead { margin-inline: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange-700);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--primary); }
.kicker-light { color: var(--orange-500); }

.section-title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl);
  line-height: 1.08; letter-spacing: -.015em; color: var(--navy-900); text-wrap: balance;
}
.section-lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; text-wrap: pretty; }
.section-lead a { color: var(--navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange-500); }

/* Mots découpés par le JS pour l'animation des titres */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
.split-word > span { display: inline-block; will-change: transform; }


/* ==========================================================================
   4. COMPOSANTS
   ========================================================================== */

/* ---------- 4.1 Icônes & boutons ---------- */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--btn-h); padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-sm { --btn-h: 42px; padding: 0 1.1rem; }
.btn-lg { --btn-h: 56px; padding: 0 1.75rem; font-size: var(--fs-base); }

.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:hover .icon:last-child { transform: translateX(3px); }

.btn-ghost { background: #fff; color: var(--navy-800); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy-700); background: var(--navy-50); }

.btn-text { color: var(--navy-700); padding-inline: .5rem; }
.btn-text:hover { color: var(--navy-900); }
.btn-text:hover .icon { transform: translateX(-3px); }

/* Pastilles (onglets de pages légales, filtres des réalisations) */
.legal-switch, .filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.legal-switch a, .filter-chips button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: #fff; font-weight: 700; font-size: var(--fs-sm); color: var(--navy-800);
  transition: border-color var(--dur), background-color var(--dur), color var(--dur);
}
.filter-chips button { gap: .45rem; }
.filter-chips button .icon { width: 1.1em; height: 1.1em; }
.legal-switch a:hover, .filter-chips button:hover { border-color: var(--navy-700); }
.legal-switch a[aria-current="page"], .filter-chips button[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* ---------- 4.2 En-tête & menus ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), backdrop-filter var(--dur);
}
.site-header.is-scrolled {
  background: rgb(255 255 255 / .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgb(11 34 102 / .25);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height var(--dur) var(--ease-out); }
.is-scrolled .header-inner { height: 64px; }
.brand { display: block; flex: none; }
.brand-logo { height: 36px; width: auto; }

.main-nav { display: none; margin-inline: auto; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  font-weight: 600; font-size: var(--fs-sm); color: var(--text-muted);
  transition: color var(--dur-fast);
}
.main-nav a::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease-out);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--navy-800); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.header-phone { display: none; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy-800); min-height: 44px; padding-inline: .25rem; }
.header-phone .icon { color: var(--orange-600); }
.header-phone:hover { color: var(--orange-700); }
.header-actions .btn-sm { display: none; }

.menu-toggle {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  color: var(--navy-800); background: #fff; border: 1.5px solid var(--line);
}
.menu-toggle .icon { width: 22px; height: 22px; grid-area: 1 / 1; transition: opacity var(--dur), transform var(--dur) var(--ease-out); }
.menu-toggle .icon-close { opacity: 0; transform: rotate(-90deg); }
.menu-open .menu-toggle .icon-open { opacity: 0; transform: rotate(90deg); }
.menu-open .menu-toggle .icon-close { opacity: 1; transform: none; }

/* z-index -1 : sous la barre d'en-tête, au-dessus de la page (contexte de .site-header) */
.mobile-menu {
  position: fixed; inset: 0; z-index: -1;
  background: #fff; padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.mobile-menu ul { display: grid; gap: .25rem; }
.mobile-menu nav a {
  display: block; padding: .8rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--navy-800);
}
.mobile-menu-cta { display: grid; gap: .75rem; margin-top: 2rem; }
.menu-open { overflow: hidden; }
/* backdrop-filter créerait un bloc conteneur et couperait le menu plein écran */
.menu-open .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }

@media (min-width: 640px) {
  .header-actions .btn-sm { display: inline-flex; }
  .brand-logo { height: 40px; }
}
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }
}
@media (min-width: 1180px) {
  .header-phone { display: inline-flex; }
}

/* ---------- 4.3 Médias & visuels (photo par-dessus un visuel de remplacement) ---------- */
.media { position: relative; overflow: hidden; background: var(--navy-800); isolation: isolate; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 80% 0%, rgb(255 107 10 / .35), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgb(26 71 184 / .9), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-950));
}
.placeholder::after {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgb(255 255 255 / .35) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.placeholder-mark { width: 52%; max-width: 280px; filter: brightness(0) invert(1) drop-shadow(0 20px 40px rgb(0 0 0 / .35)); opacity: .9; }
.placeholder-icon {
  width: 34%; max-width: 160px; aspect-ratio: 1; color: rgb(255 255 255 / .9);
  fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round;
}
.placeholder-clean {
  background:
    radial-gradient(70% 60% at 70% 20%, rgb(255 255 255 / .35), transparent 60%),
    linear-gradient(160deg, #2f62d8, var(--navy-800));
}
.placeholder-dirty {
  background:
    radial-gradient(40% 30% at 30% 30%, rgb(70 50 20 / .55), transparent 70%),
    radial-gradient(35% 25% at 70% 70%, rgb(60 40 15 / .6), transparent 70%),
    radial-gradient(25% 20% at 55% 40%, rgb(90 70 30 / .5), transparent 70%),
    linear-gradient(160deg, #4a4a3a, #22241f);
}
.placeholder-dirty::after { opacity: .5; background-image: radial-gradient(rgb(120 95 55 / .9) 1.5px, transparent 2px); background-size: 9px 13px; -webkit-mask-image: none; mask-image: none; }
.placeholder-dirty .placeholder-icon { color: rgb(200 180 140 / .5); }

/* Grille de fond (hero, en-têtes de pages) */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 60% at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(80% 60% at 70% 30%, #000 10%, transparent 70%);
  opacity: .7;
}

/* ---------- 4.4 Vapeur animée (CSS pur, transform/opacity uniquement) ---------- */
.steam { position: absolute; inset: auto 0 0 0; height: 70%; z-index: 2; pointer-events: none; overflow: hidden; }
.steam span {
  position: absolute; bottom: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / .55), rgb(255 255 255 / .18) 55%, transparent);
  opacity: 0; will-change: transform, opacity;
  animation: steam-rise 9s var(--ease-in-out) infinite;
}
.steam span:nth-child(1) { left: -10%; animation-delay: 0s; }
.steam span:nth-child(2) { left: 25%; animation-delay: 1.8s; width: 45%; }
.steam span:nth-child(3) { left: 55%; animation-delay: 3.6s; }
.steam span:nth-child(4) { left: 10%; animation-delay: 5.4s; width: 40%; }
.steam span:nth-child(5) { left: 60%; animation-delay: 7.2s; width: 50%; }
.steam span:nth-child(6) { left: 35%; animation-delay: 4.5s; width: 60%; }
@keyframes steam-rise {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  20%  { opacity: .9; }
  100% { transform: translate3d(8%, -120%, 0) scale(1.35); opacity: 0; }
}
.steam-wide { height: 100%; opacity: .25; }
.steam-wide span { width: 35%; animation-duration: 12s; }

/* ---------- 4.5 Bandeaux défilants (communes, réseaux sociaux) ---------- */
.marquee {
  overflow: hidden; background: var(--navy-800); color: #fff; padding-block: 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  display: inline-flex; align-items: center; gap: 1.75rem; padding-right: 1.75rem;
  font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.15rem; letter-spacing: .02em; white-space: nowrap;
}
.marquee li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

.marquee-social { background: var(--orange-500); color: var(--navy-950); padding-block: .6rem; }
.marquee-social .marquee-track { animation-duration: 40s; animation-direction: reverse; }
.marquee-social li { font-style: normal; }
.marquee-social li::after { background: var(--navy-950); }
.marquee-social a {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .5rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.15rem;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.marquee-social a span { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .95rem; opacity: .8; }
.marquee-social a .icon { width: 1.3em; height: 1.3em; stroke-width: 2.2; }
.marquee-social a:hover { background: var(--navy-950); color: #fff; }
.marquee-social a:focus-visible { outline-color: var(--navy-950); }

/* ---------- 4.6 Coches (.ticks) & liens de carte ---------- */
.ticks { display: grid; gap: .5rem; color: var(--text-muted); font-size: var(--fs-sm); }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--orange-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B84300' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.ticks-lg { font-size: var(--fs-base); gap: .7rem; }

.card-link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .75rem; min-height: 44px;
  font-weight: 700; color: var(--navy-700); font-size: var(--fs-sm);
}
.card-link .icon { transition: transform var(--dur) var(--ease-out); }
.card-link:hover { color: var(--orange-700); }
.card-link:hover .icon { transform: translateX(4px); }

/* ---------- 4.7 Comparateur avant/après (.ba, piloté par compare.js) ---------- */
.ba {
  --pos: 50%;
  position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba.is-dragging { cursor: grabbing; }
.ba-landscape { aspect-ratio: 4 / 3; }
.ba-layer { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }
/* Empêche le glisser-déposer natif des photos de voler le geste */
.ba img, .ba .placeholder, .ba-tag { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.ba-tag {
  position: absolute; z-index: 3; top: 1rem; left: 1rem; padding: .35rem .8rem; border-radius: 999px;
  background: rgb(5 15 44 / .7); color: #fff; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ba-tag-after { left: auto; right: 1rem; background: var(--orange-500); color: var(--navy-950); }
.ba-handle {
  position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--pos); width: 3px; translate: -50% 0;
  background: #fff; box-shadow: 0 0 18px rgb(0 0 0 / .35); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--navy-800);
  box-shadow: 0 6px 20px rgb(0 0 0 / .25); transition: transform var(--dur) var(--ease-out);
}
.ba-knob .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.ba:hover .ba-knob, .ba.is-dragging .ba-knob { transform: scale(1.08); }
/* Curseur natif invisible : clavier + lecteurs d'écran (la souris/le doigt sont gérés en JS) */
.ba-range {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.ba-range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
@media (max-width: 639px) { .ba { border-radius: var(--radius-lg); } }

/* ---------- 4.8 Onglets ---------- */
.tab-list {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 440px);
  margin: 0 auto 2.5rem; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.tab-list button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); color: var(--text-muted);
  transition: color var(--dur) var(--ease-out);
}
.tab-list button[aria-selected="true"] { color: #fff; }
.tab-indicator {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px;
  background: var(--navy-700); box-shadow: 0 8px 20px -8px rgb(14 47 134 / .7);
  transition: transform .45s var(--ease-out);
}
.tabs[data-active="1"] .tab-indicator { transform: translateX(100%); }

/* ---------- 4.9 Formulaire ---------- */
.form-progress { margin-bottom: 1.75rem; }
.form-progress-bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.form-progress-bar span { display: block; height: 100%; width: 33.33%; border-radius: inherit; background: linear-gradient(90deg, var(--orange-500), var(--orange-600)); transition: width .5s var(--ease-out); }
.form-progress-steps { display: flex; justify-content: space-between; margin-top: .65rem; font-size: var(--fs-xs); font-weight: 700; color: var(--text-soft); }
.form-progress-steps li.is-active { color: var(--navy-800); }
.form-progress-steps li.is-done { color: var(--orange-700); }
.no-js .form-progress { display: none; }

.form-step { display: grid; gap: 1.25rem; }
.js .form-step:not(.is-active) { display: none; }
.no-js .form-step + .form-step { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.form-step legend { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: var(--navy-900); margin-bottom: .5rem; padding: 0; }
.legend-help { margin-top: -1rem; color: var(--text-soft); font-size: var(--fs-sm); }
.legend-help-inline { margin-top: .1rem; display: flex; align-items: flex-start; gap: .5rem; font-size: var(--fs-xs); }
.legend-help-inline .icon { flex: none; width: 1.1em; height: 1.1em; margin-top: .15em; color: var(--orange-600); }

/* Cartes à choix unique (type de bien) */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.choice, .check { position: relative; display: block; cursor: pointer; }
.choice input, .check input, .segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center;
  min-height: 96px; padding: .9rem .5rem; border-radius: var(--radius); border: 1.5px solid var(--line);
  font-weight: 700; font-size: var(--fs-sm); color: var(--navy-800); background: #fff;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.choice span .icon { width: 28px; height: 28px; stroke-width: 1.7; color: var(--navy-600); transition: color var(--dur-fast), transform var(--dur) var(--ease-out); }
.choice:hover span { border-color: var(--navy-100); background: var(--surface); }
.choice input:checked + span { border-color: var(--orange-500); background: var(--orange-50); box-shadow: 0 0 0 3px rgb(255 107 10 / .18); }
.choice input:checked + span .icon { color: var(--orange-600); transform: scale(1.12); }
/* « Autre » prend toute la ligne : 7 options restent équilibrées */
.choice-grid .choice:last-child { grid-column: 1 / -1; }
.choice-grid .choice:last-child span { flex-direction: row; min-height: 64px; }
.choice input:focus-visible + span, .check input:focus-visible + span, .segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Cases à cocher (prestations) */
.check-grid { display: grid; gap: .6rem; }
.check > span {
  display: flex; align-items: center; gap: .75rem; min-height: 52px; height: 100%; padding: .7rem 1rem;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line); font-weight: 600; font-size: var(--fs-sm); color: var(--navy-800);
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.check-txt { display: grid; gap: .1rem; line-height: 1.3; }
.check-txt small { font-weight: 500; font-size: var(--fs-xs); color: var(--text-soft); }
.check > span > .icon { flex: none; }
.check span .icon {
  width: 22px; height: 22px; padding: 3px; border-radius: 6px; border: 1.5px solid var(--line-strong);
  color: transparent; stroke-width: 3.2; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.check:hover span { background: var(--surface); }
.check input:checked + span { border-color: var(--orange-500); background: var(--orange-50); }
.check input:checked + span .icon { background: var(--orange-500); border-color: var(--orange-500); color: var(--navy-950); }

/* Rappel du type choisi en tête de l'étape 2 */
.form-type {
  display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem .7rem .7rem;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
}
.form-type[hidden] { display: none; }
.form-type-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--orange-50); color: var(--orange-600); }
.form-type-icon .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.form-type-text { display: grid; line-height: 1.25; }
.form-type-text small { font-size: var(--fs-xs); color: var(--text-soft); font-weight: 500; }
.form-type-text strong { color: var(--navy-900); font-weight: 700; }
.form-type-edit {
  margin-left: auto; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff;
  font: inherit; font-size: var(--fs-xs); font-weight: 700; color: var(--navy-800); cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.form-type-edit:hover { border-color: var(--orange-500); color: var(--orange-700); }
.form-type-edit:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Sélecteur Particulier / Professionnel */
.segmented { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.segmented-label { font-weight: 700; font-size: var(--fs-sm); color: var(--navy-900); }
.segmented-options { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.segmented label { cursor: pointer; }
.segmented-options span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1rem; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); color: var(--text-muted); transition: background-color var(--dur), color var(--dur), box-shadow var(--dur); }
.segmented input:checked + span { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }

/* Champs texte */
.field-row { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label, .field .label { font-weight: 700; font-size: var(--fs-sm); color: var(--navy-900); }
.optional { font-weight: 500; color: var(--text-soft); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: #fff; font-size: 1rem; /* 16 px : pas de zoom iOS */
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8b97b0; }
.field input:hover, .field textarea:hover { border-color: var(--navy-100); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgb(26 71 184 / .15); }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 4px rgb(194 38 27 / .1); }
.field-error { color: var(--error); font-size: var(--fs-xs); font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }

.form-legal { font-size: var(--fs-xs); color: var(--text-soft); }
.form-legal a { color: var(--navy-700); text-decoration: underline; }
.form-status { padding: .8rem 1rem; border-radius: var(--radius-sm); background: rgb(194 38 27 / .08); color: var(--error); font-size: var(--fs-sm); font-weight: 600; }
.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.no-js .form-nav [data-next], .no-js .form-nav [data-prev] { display: none; }
.btn-submit:disabled { cursor: progress; opacity: .85; }
.btn-submit .btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgb(5 15 44 / .25); border-top-color: var(--navy-950); animation: spin .7s linear infinite; }
.btn-submit.is-loading .btn-spinner { display: block; }
.btn-submit.is-loading .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 560px) {
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .check-grid, .field-row { grid-template-columns: 1fr 1fr; }
  .check-grid .check:last-child:nth-child(odd) { grid-column: 1 / -1; } /* nombre impair : pas de trou */
}

/* ---------- 4.10 Barre d'actions mobile ---------- */
.action-bar {
  position: fixed; z-index: 90; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; padding: .5rem;
  border-radius: 20px; background: rgb(255 255 255 / .92); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgb(11 34 102 / .35);
  transform: translateY(150%); transition: transform .45s var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; border-radius: 14px; font-weight: 700; font-size: var(--fs-sm); }
.action-bar-call { background: var(--navy-50); color: var(--navy-800); }
.action-bar-quote { background: var(--orange-500); color: var(--navy-950); }

/* ---------- 4.11 Pied de page ---------- */
.site-footer { background: var(--surface); padding-top: 4rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { display: grid; gap: 1rem; max-width: 360px; }
.footer-logo { width: 220px; }
.footer-brand p { color: var(--text-muted); font-size: var(--fs-sm); }
.footer-title { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-900); margin-bottom: 1rem; }
.footer-links { display: grid; gap: .25rem; }
.footer-links a, .footer-links span { display: inline-flex; align-items: center; gap: .6rem; min-height: 40px; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500; }
.footer-links .icon { color: var(--orange-600); width: 1.1em; height: 1.1em; }
.footer-links a:hover { color: var(--navy-800); }
/* +76 px en bas sur mobile : place pour la barre d'actions */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.5rem calc(1.5rem + 76px); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-soft); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--navy-800); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-legal-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 768px) {
  .action-bar { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { padding-bottom: 1.5rem; }
}


/* ==========================================================================
   5. ACCUEIL
   ========================================================================== */

/* ---------- 5.1 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 4.5rem));
  padding-bottom: clamp(4rem, 3rem + 4vw, 6.5rem);
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-swoosh { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-swoosh path { fill: none; stroke: var(--orange-500); stroke-width: 3; stroke-linecap: round; opacity: .55; vector-effect: non-scaling-stroke; }

.hero-inner { position: relative; display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
.hero-inner > * { min-width: 0; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs); font-weight: 700; color: var(--navy-800); letter-spacing: .02em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 0 rgb(255 107 10 / .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(255 107 10 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 107 10 / 0); } }

.hero-title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-3xl);
  line-height: 1; letter-spacing: -.025em; color: var(--navy-900); text-wrap: balance;
}
.hero-title .hl { position: relative; color: var(--orange-600); font-style: italic; white-space: nowrap; }
.hero-title .hl::after {
  content: ""; position: absolute; left: 2%; right: -2%; bottom: -.04em; height: .14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 60 2, 140 2, 197 8' fill='none' stroke='%23FF6B0A' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform-origin: left; transform: scaleX(var(--hl, 1));
}

.hero-lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; width: 100%; }
.hero-ctas .btn { flex: 1 1 auto; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: var(--fs-sm); color: var(--text-muted); font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust .icon { color: var(--success); width: 1.05em; height: 1.05em; stroke-width: 2.6; }

.hero-visual { position: relative; padding: 0 0 1.5rem; }
.media-hero { aspect-ratio: 4 / 4.2; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.media-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
  background: linear-gradient(to top, rgb(5 15 44 / .35), transparent 40%);
}

.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem .7rem .7rem; border-radius: 16px;
  background: rgb(255 255 255 / .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); border: 1px solid rgb(255 255 255 / .8);
  font-size: var(--fs-sm); line-height: 1.25;
  animation: bob 6s var(--ease-in-out) infinite; /* « translate » : n'entre pas en conflit avec GSAP (transform) */
}
.float-chip strong { display: block; color: var(--navy-900); font-weight: 700; }
.float-chip small { display: block; color: var(--text-soft); font-size: var(--fs-xs); }
.chip-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--navy-50); color: var(--navy-700); flex: none; }
.chip-icon-orange { background: var(--orange-50); color: var(--orange-600); }
.chip-a { left: -4px; top: 9%; }
.chip-b { right: -10px; top: 64%; animation-delay: -2s; }
.chip-c { left: 6%; bottom: 0; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -8px; } }

.scroll-cue { display: none; }

@media (min-width: 640px) {
  .hero-ctas { width: auto; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .chip-a { left: -18px; }
  .chip-b { right: -36px; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (min-width: 960px) {
  .hero { min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: center; }
  .hero-inner { grid-template-columns: 1.08fr .92fr; }
  .media-hero { aspect-ratio: 4 / 4.6; }
  .chip-a { left: -48px; }
  .chip-b { right: -72px; }
  .chip-c { left: -24px; bottom: 6%; }
  .scroll-cue {
    display: grid; place-items: start center; position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0;
    width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; padding-top: 7px;
  }
  .scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--orange-500); animation: cue 1.8s var(--ease-in-out) infinite; }
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 5.2 Services ---------- */
.services-grid { display: grid; gap: 1rem; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden; isolation: isolate;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.service-card::before { /* halo qui suit la souris (ordinateur) */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(255 107 10 / .09), transparent 45%);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--navy-100); }
.service-card:hover::before { opacity: 1; }
.service-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; color: var(--navy-900); }
.service-sub { margin-top: -.5rem; font-weight: 600; color: var(--orange-700); font-size: var(--fs-sm); }
.service-text { color: var(--text-muted); }
.service-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--navy-50); color: var(--navy-700);
  transition: transform .5s var(--ease-out), background-color var(--dur), color var(--dur);
}
.service-icon .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.service-card:hover .service-icon { background: var(--navy-700); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card-accent { background: linear-gradient(160deg, var(--orange-50), #fff 60%); border-color: var(--orange-100); }
.service-card-accent .service-icon { background: var(--orange-100); color: var(--orange-700); }
.service-card-accent:hover .service-icon { background: var(--orange-500); color: var(--navy-950); }

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 5.3 Pourquoi la vapeur ---------- */
.vapeur-layout { display: grid; gap: 3rem; align-items: start; }
.vapeur-layout > * { min-width: 0; }
.benefits { display: grid; gap: 1rem; }
.benefit {
  display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.benefit h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-900); margin-bottom: .2rem; }
.benefit p { color: var(--text-muted); font-size: var(--fs-sm); }
.benefit-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-700); color: #fff; flex: none; }
.benefit-icon .icon { width: 22px; height: 22px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat {
  position: relative; overflow: hidden;
  display: grid; align-content: space-between; gap: 1.5rem; min-height: 180px;
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--navy-800); color: #fff;
}
.stat::after {
  content: ""; position: absolute; right: -40%; top: -40%; width: 90%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .08);
}
.stat-num { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(2.6rem, 2rem + 2.5vw, 3.75rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .45em; margin-left: .15em; color: var(--orange-500); font-style: normal; }
.stat-label { color: rgb(255 255 255 / .78); font-size: var(--fs-sm); line-height: 1.4; }
.stat-accent { background: var(--orange-500); color: var(--navy-950); }
.stat-accent .stat-num small { color: var(--navy-950); }
.stat-accent .stat-label { color: rgb(5 15 44 / .8); }
.stat-accent::after { border-color: rgb(5 15 44 / .1); }

@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .vapeur-layout { grid-template-columns: 1.25fr .75fr; gap: 4rem; }
  .stats { position: sticky; top: calc(var(--header-h) + 2rem); }
  .stat { min-height: 200px; }
}

/* ---------- 5.4 Avant / après (accueil) ---------- */
.ba-layout { display: grid; gap: 2.5rem; align-items: center; }
.ba-layout > * { min-width: 0; }
.ba-copy { display: grid; gap: 1.5rem; justify-items: start; }
.ba-copy .section-head { margin-bottom: 0; }
@media (min-width: 900px) {
  .ba-layout { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .ba-layout .ba { margin-inline: 0; justify-self: end; }
}

/* ---------- 5.5 Offres Particuliers / Professionnels ---------- */
.offer { display: grid; gap: 2rem; align-items: center; background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--line); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-sm); }
.offer > * { min-width: 0; }
.offer-copy { display: grid; gap: 1.25rem; justify-items: start; }
.offer-copy h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); line-height: 1.2; color: var(--navy-900); }
.offer-copy > p { color: var(--text-muted); }
.offer-media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
@media (min-width: 900px) { .offer { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }

/* ---------- 5.6 Étapes ---------- */
.steps { position: relative; display: grid; gap: 1.25rem; }
.steps-line { display: none; }
.step {
  position: relative; display: grid; gap: .6rem; padding: 1.75rem 1.5rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.step-num { position: absolute; top: 1.25rem; right: 1.5rem; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--navy-50); }
.step-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--orange-500); color: var(--navy-950); box-shadow: 0 0 0 6px var(--orange-50); margin-bottom: .5rem; }
.step-icon .icon { width: 24px; height: 24px; }
.step h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy-900); }
.step p { color: var(--text-muted); font-size: var(--fs-sm); }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps-line { display: block; position: absolute; left: calc(1.5rem + 26px); right: calc(25% - 1.5rem); top: calc(1.75rem + 26px); height: 3px; background: var(--line); border-radius: 3px; z-index: 1; }
  .steps-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange-500), var(--navy-600)); transform-origin: left; transform: scaleX(var(--progress, 1)); }
  .step { background: transparent; border: 0; box-shadow: none; padding: 1.75rem 1.5rem 0; }
  /* Le numéro passe sous l'icône, à l'écart de la ligne de progression */
  .step-icon { order: -1; }
  .step-num { position: static; font-size: .9rem; font-style: normal; letter-spacing: .14em; color: var(--orange-700); }
  .step-num::before { content: "ÉTAPE "; }
}

/* ---------- 5.7 Zone d'intervention ---------- */
.zone-layout { display: grid; gap: 3rem; align-items: center; }
.zone-layout > * { min-width: 0; }
.town-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.town-list li {
  padding: .45rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy-800);
}
.zone-map { position: relative; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 1; }
.zone-map svg { width: 100%; height: 100%; overflow: visible; }
.map-rings circle { fill: none; stroke: var(--navy-600); stroke-opacity: .18; stroke-width: 1.5; stroke-dasharray: 4 6; }
.map-rings .ring-outer { stroke: var(--orange-500); stroke-opacity: .7; stroke-width: 2.5; stroke-dasharray: none; }
.map-ring-labels text { font: 600 15px var(--font-body); fill: var(--text-soft); }
.map-river { fill: none; stroke: #8DB3F2; stroke-width: 5; stroke-linecap: round; opacity: .55; }
.map-sweep { transform-origin: 400px 400px; animation: sweep 7s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.map-towns circle { fill: var(--navy-700); stroke: #fff; stroke-width: 3; }
.map-towns text { font: 600 17px var(--font-body); fill: var(--navy-900); paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
.map-towns .town-major { font-weight: 800; font-size: 22px; }
.home-dot { fill: var(--orange-500); stroke: #fff; stroke-width: 4; }
.home-pulse { fill: var(--orange-500); opacity: .25; transform-origin: center; transform-box: fill-box; animation: home-pulse 2.4s var(--ease-out) infinite; }
@keyframes home-pulse { 0% { transform: scale(.4); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }
.home-label { font: 800 22px var(--font-display); fill: var(--orange-700); paint-order: stroke; stroke: var(--surface); stroke-width: 6px; stroke-linejoin: round; }
@media (max-width: 639px) {
  .map-towns text { font-size: 22px; }
  .map-towns .town-major { font-size: 26px; }
  .map-ring-labels text { font-size: 19px; }
  .home-label { font-size: 28px; }
}
@media (min-width: 960px) { .zone-layout { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }

/* ---------- 5.8 FAQ ---------- */
.faq-layout { display: grid; gap: 2.5rem; align-items: start; }
.faq-layout > * { min-width: 0; }
.faq-list { display: grid; gap: .75rem; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid transparent; transition: background-color var(--dur), border-color var(--dur), box-shadow var(--dur); }
.faq-item[open] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.25rem; min-height: 56px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy-700); flex: none; transition: transform var(--dur) var(--ease-out), background-color var(--dur), color var(--dur); }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--orange-500); color: var(--navy-950); }
.faq-body { padding: 0 1.25rem 1.25rem; color: var(--text-muted); }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 4rem; }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- 5.9 Devis ---------- */
.section-quote { background: var(--navy-900); color: #fff; overflow: hidden; }
.section-quote .section-title { color: #fff; }
.section-quote .section-lead { color: rgb(255 255 255 / .75); }
.quote-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 0% 0%, rgb(26 71 184 / .55), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgb(255 107 10 / .22), transparent 70%);
}
.quote-layout { position: relative; display: grid; gap: 3rem; align-items: start; }
.quote-layout > * { min-width: 0; }
.quote-intro { display: grid; gap: 1.25rem; }
.contact-cards { display: grid; gap: .75rem; margin-top: .5rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border-radius: var(--radius);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1);
  transition: background-color var(--dur), border-color var(--dur), transform var(--dur) var(--ease-out);
}
a.contact-card:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 107 10 / .5); transform: translateX(4px); }
.contact-card > span:last-child { min-width: 0; }
.contact-card small { display: block; color: rgb(255 255 255 / .65); font-size: var(--fs-xs); }
.contact-card strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-500); color: var(--navy-950); flex: none; }

.quote-form {
  position: relative; background: #fff; color: var(--text); border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); box-shadow: 0 40px 80px -20px rgb(0 0 0 / .5);
}
@media (min-width: 1024px) {
  .quote-layout { grid-template-columns: .85fr 1.15fr; gap: 4rem; }
  .quote-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}


/* ==========================================================================
   6. PAGES
   ========================================================================== */

/* ---------- 6.1 En-tête de page (légales, réalisations) ---------- */
.legal-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem)) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem);
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); border-bottom: 1px solid var(--line);
}
.legal-hero .hero-grid { opacity: .5; }
.legal-hero .container { position: relative; display: grid; gap: 1rem; justify-items: start; }
.legal-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; color: var(--navy-900); }
.legal-hero p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 60ch; }
.legal-hero .legal-meta { font-size: var(--fs-sm); color: var(--text-soft); }

/* ---------- 6.2 Pages légales ---------- */
.page-legal .site-header { background: rgb(255 255 255 / .9); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.page-legal .header-actions .btn-ghost { display: none; }
.page-legal .footer-bottom { padding-bottom: 1.5rem; }
@media (min-width: 900px) { .page-legal .header-actions .btn-ghost { display: inline-flex; } }

.legal-body { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) var(--section-y); }
.legal-layout { display: grid; gap: 2rem; align-items: start; }
.legal-toc { display: none; }
.legal-toc p { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-700); margin-bottom: .75rem; }
.legal-toc ol { display: grid; gap: .1rem; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); transition: color var(--dur-fast), border-color var(--dur-fast); }
.legal-toc a:hover { color: var(--navy-800); border-left-color: var(--orange-500); }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 3.5rem; }
  .legal-toc { display: block; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.legal-article { display: grid; gap: 1rem; min-width: 0; }
.legal-section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.legal-section h2 { display: flex; align-items: center; gap: .75rem; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); line-height: 1.2; color: var(--navy-900); margin-bottom: 1rem; }
.legal-num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--navy-50); color: var(--navy-700); font-size: .95rem; font-style: italic; }
.legal-section h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-900); margin: 1.25rem 0 .5rem; }
.legal-section p, .legal-section li { color: var(--text-muted); }
.legal-section p + p, .legal-section p + ul, .legal-section ul + p { margin-top: .75rem; }
.legal-section ul:not(.legal-facts) { display: grid; gap: .5rem; }
.legal-section ul:not(.legal-facts) li { position: relative; padding-left: 1.4rem; }
.legal-section ul:not(.legal-facts) li::before { content: ""; position: absolute; left: .25rem; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); }
.legal-section a { color: var(--navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange-500); overflow-wrap: anywhere; }
.legal-section strong { color: var(--navy-900); }

.legal-facts { display: grid; gap: 0; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.legal-facts li { display: grid; gap: .15rem; padding: .8rem 1rem; background: var(--surface); }
.legal-facts li + li { border-top: 1px solid var(--line); }
.legal-facts span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.legal-facts strong { font-weight: 600; color: var(--navy-900); }
@media (min-width: 640px) { .legal-facts li { grid-template-columns: 200px 1fr; align-items: baseline; gap: 1rem; } }

.legal-callout { padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--navy-50); border-left: 4px solid var(--navy-700); }
.legal-section.legal-callout p { color: var(--navy-900); }
.legal-form { padding: 1.25rem; border-radius: var(--radius); border: 1.5px dashed var(--line-strong); background: var(--surface); font-size: var(--fs-sm); }
.legal-back { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 700; color: var(--navy-700); min-height: 44px; }
.legal-back .icon { transition: transform var(--dur) var(--ease-out); }
.legal-back:hover { color: var(--orange-700); }
.legal-back:hover .icon { transform: translateX(-3px); }

/* ---------- 6.3 Réalisations ---------- */
.real-hero h1 { max-width: 18ch; }
.real-section { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section-y); }
.real-grid { display: grid; gap: 1.5rem; align-items: start; }
.real-card { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.real-card .ba { max-width: none; border-radius: 0; box-shadow: none; }
.real-body { display: grid; gap: .6rem; padding: 1.25rem 1.4rem 1.5rem; }
.real-cat { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-700); }
.real-cat .icon { width: 1.15em; height: 1.15em; }
.real-title { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.2; color: var(--navy-900); }
.real-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin-top: -.3rem; font-size: var(--fs-sm); color: var(--text-soft); }
.real-client { display: inline-flex; align-items: center; padding: .15rem .6rem; border-radius: 999px; background: var(--orange-100); color: var(--orange-700); font-size: var(--fs-xs); font-weight: 700; }
.real-empty { grid-column: 1 / -1; padding: 2rem; border-radius: var(--radius-lg); background: var(--surface); text-align: center; color: var(--text-muted); }
.real-empty a { color: var(--navy-700); font-weight: 700; text-decoration: underline; }
.real-cta {
  display: grid; gap: 1.5rem; align-items: center; margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--navy-50), var(--orange-50)); border: 1px solid var(--line);
}
.real-cta .section-title { margin-bottom: .5rem; }
.real-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 680px) { .real-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .real-cta { grid-template-columns: 1fr auto; } }
@media (min-width: 1100px) { .real-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 6.4 Page de remerciement & 404 ---------- */
.thanks { min-height: 100svh; display: grid; place-items: center; padding: 2rem var(--gutter); background: linear-gradient(180deg, #fff, var(--surface)); text-align: center; }
.thanks-card { display: grid; justify-items: center; gap: 1.25rem; max-width: 560px; }
.thanks-logo { width: 200px; margin-bottom: 1rem; }
.thanks-check { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--orange-500); color: var(--navy-950); box-shadow: 0 0 0 10px var(--orange-50); animation: pop .6s var(--ease-out) both; }
.thanks-check svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .3s var(--ease-out) forwards; }
.thanks .thanks-404 { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: .9; color: var(--orange-500); }
.thanks p { color: var(--text-muted); font-size: var(--fs-lg); }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .5rem; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }


/* ==========================================================================
   7. ÉTATS D'ANIMATION & PRÉFÉRENCES
   `.anim` est posé dans <head> uniquement si GSAP va animer : sans JS,
   ou si le visiteur réduit les animations, tout reste visible.
   ========================================================================== */
.js.anim [data-reveal] { opacity: 0; }
.js.anim .hero [data-hero], .js.anim .hero [data-chip] { opacity: 0; }
.js.anim .hero .hero-title { visibility: hidden; }
.js.anim .media-hero { clip-path: inset(12% 12% 12% 12% round 32px); }
.js.anim .hero-swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .steam, .map-sweep, .home-pulse { display: none; }
  .marquee-track { animation: none; }
  .marquee-social { overflow-x: auto; }
}
