/* ==========================================================================
   Qualithermy — feuille de style du site
   Concept : « eau & flamme ». La dualité froid/chaud du logo devient une
   échelle thermique (bleu → orange) utilisée avec parcimonie. Fond clair et
   aéré, bandeaux marine pour les moments décisifs, orange réservé aux actions.
   Thème clair unique, assumé pour respecter les couleurs du logo.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-display.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-var-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs du logo */
  --navy: #26225f;
  --navy-deep: #18154a;
  --orange: #f6921e;
  --orange-soft: #ffa843;
  --flame: #e8501f;
  --sky: #3ba9e0;
  --blue: #0b72b9;

  /* Neutres (légère dominante bleu-indigo) */
  --bg: #f5f7fb;
  --surface: #ffffff;
  --tint-cool: #eaf4fb;
  --tint-warm: #fef3e6;
  --text: #1e1c3d;
  --muted: #545779;
  --line: #dde2ee;
  --on-dark: #ffffff;
  --on-dark-muted: #c4c6e4;

  --thermal: linear-gradient(90deg, #0b72b9 0%, #3ba9e0 32%, #f6921e 72%, #e8501f 100%);

  /* Typographie */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-2xl: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem);
  --fs-3xl: clamp(2rem, 1.3rem + 3vw, 3.375rem);

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(24, 21, 74, 0.06), 0 8px 24px rgba(24, 21, 74, 0.08);
  --header-h: 76px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
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;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 112%;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--orange-soft); color: var(--navy-deep); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--on-dark); padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--on-dark); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.section { padding-block: clamp(56px, 7vw, 100px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--white { background: var(--surface); }
.section--cool { background: var(--tint-cool); }
.section--warm { background: var(--tint-warm); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--thermal);
}
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lg); margin: 0; }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 62ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--orange); color: var(--navy-deep); }
.btn--primary:hover { background: var(--orange-soft); color: var(--navy-deep); transform: translateY(-1px); }
.btn--dark { background: var(--navy); color: var(--on-dark); }
.btn--dark:hover { background: var(--navy-deep); color: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--on-dark); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: var(--on-dark); color: var(--navy); border-color: var(--on-dark); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: var(--fs-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.phone-number { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }

/* ---------- Bandeau supérieur ---------- */
.topbar { background: var(--navy-deep); color: var(--on-dark-muted); font-size: var(--fs-xs); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 7px; }
.topbar a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--orange-soft); }
.topbar__info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; }

/* ---------- En-tête ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--surface);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 196px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { margin: 0; position: relative; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--navy);
  text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__toggle:hover, .nav__link[aria-current="page"] { background: var(--tint-cool); color: var(--navy); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.nav__toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__sub li { margin: 0; }
.nav__sub a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--text); text-decoration: none; font-weight: 600;
}
.nav__sub a small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.nav__sub a:hover { background: var(--tint-cool); color: var(--navy); }
.nav__sub .icon-chip { width: 36px; height: 36px; }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub, .has-sub.is-open .nav__sub {
  opacity: 1; visibility: visible; transform: none;
}
.has-sub:hover .nav__toggle svg, .has-sub.is-open .nav__toggle svg { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--navy); border-radius: 999px; background: var(--surface);
  color: var(--navy); font: inherit; font-weight: 700; cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 1120px) {
  .header-cta .btn--ghost { display: none; }
}
@media (max-width: 1023px) {
  :root { --header-h: 66px; }
  .brand img { width: 160px; }
  .menu-btn { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    display: none; flex-direction: column; align-items: stretch;
    background: var(--surface); overflow-y: auto;
    padding: 16px var(--gutter-r) calc(110px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.125rem; border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 14px; }
  .nav__sub {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 12px; display: none;
  }
  .has-sub.is-open .nav__sub { display: block; }
  .has-sub:hover .nav__sub { display: none; }
  .has-sub.is-open:hover .nav__sub { display: block; }
  .nav__mobile-cta { display: grid !important; gap: 10px; margin-top: 20px; }
}
.nav__mobile-cta { display: none !important; }
body.menu-open { overflow: hidden; }

/* ---------- Icônes ---------- */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-chip {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--tint-cool); color: var(--blue);
}
.icon-chip--warm { background: var(--tint-warm); color: var(--flame); }
.icon-chip .icon { width: 26px; height: 26px; }
.nav__sub .icon-chip .icon { width: 20px; height: 20px; }

/* ---------- Héros (accueil) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 105% -10%, rgba(59,169,224,.16), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, rgba(246,146,30,.12), transparent 60%),
    var(--bg);
}
.hero .container {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px);
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { background: var(--thermal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero__trust li { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: var(--fs-sm); }
.hero__trust .icon { width: 20px; height: 20px; color: var(--blue); }

/* Héros vidéo : boucle « vapeur froide → lueur chaude » sous un voile marine */
.hero--video { background: #0f1a3f; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0f1a3f url("../video/hero-poster.jpg") center / cover no-repeat; }
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 21, 74, 0.86) 0%, rgba(24, 21, 74, 0.64) 42%, rgba(24, 21, 74, 0.24) 100%),
    linear-gradient(180deg, rgba(24, 21, 74, 0) 70%, rgba(24, 21, 74, 0.45) 100%);
}
.hero--video .eyebrow { color: var(--orange-soft); }
.hero--video h1 { color: var(--on-dark); }
.hero--video h1 .accent { background: linear-gradient(90deg, #7cc8f0 0%, #b5dcf3 30%, #f8a94c 68%, #ff7a45 100%); -webkit-background-clip: text; background-clip: text; }
.hero--video .lead { color: #d8daf0; }
.hero--video .hero__trust li { color: var(--on-dark); }
.hero--video .hero__trust .icon { color: #7cc8f0; }
.hero--video .picker { box-shadow: 0 18px 50px rgba(5, 8, 30, 0.45); border-color: transparent; }
.hero__pause {
  position: absolute; z-index: 2;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(24, 21, 74, 0.55); color: var(--on-dark); cursor: pointer;
  transition: background-color .18s ease;
}
.hero__pause:hover { background: rgba(24, 21, 74, 0.85); }
.hero__pause .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.hero__pause .icon-play { display: none; }
.hero__pause[aria-pressed="true"] .icon-pause { display: none; }
.hero__pause[aria-pressed="true"] .icon-play { display: block; }
@media (max-width: 1023px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(24, 21, 74, 0.86) 0%, rgba(24, 21, 74, 0.78) 55%, rgba(24, 21, 74, 0.6) 100%); }
  .hero__pause { top: 12px; bottom: auto; }
  .hero--video .container { padding-top: 64px; }
}

/* Sélecteur de projet */
.picker {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px);
}
.picker__title { font-size: var(--fs-xl); margin-bottom: 4px; }
.picker__sub { color: var(--muted); margin-bottom: 18px; font-size: var(--fs-sm); }
.picker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.picker__grid li { margin: 0; }
.picker__item {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r);
  color: var(--navy); text-decoration: none; font-weight: 650; line-height: 1.25;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.picker__item .icon-chip { width: 42px; height: 42px; border-radius: 11px; }
.picker__item .icon-chip .icon { width: 22px; height: 22px; }
.picker__item:hover { border-color: var(--orange); background: var(--tint-warm); color: var(--navy); transform: translateY(-1px); }
.picker__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: var(--fs-sm); color: var(--muted);
}
.picker__foot a { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 1.0625rem; }
.picker__foot a:hover { color: var(--blue); }

/* Échelle thermique */
.thermal-scale { background: var(--surface); border-block: 1px solid var(--line); }
.thermal-scale .container { padding-block: 26px 30px; }
.scale__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; }
.scale__head p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.scale__head strong { font-family: var(--font-display); font-stretch: 112%; color: var(--navy); font-size: 1.0625rem; }
.scale { position: relative; padding-top: 4px; }
.scale__bar { height: 10px; border-radius: 999px; background: var(--thermal); }
.scale__ticks { position: relative; height: 14px; margin-top: 4px; }
.scale__ticks span {
  position: absolute; top: 0; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); white-space: nowrap;
}
.scale__ticks span:first-child { transform: none; }
.scale__ticks span:last-child { transform: translateX(-100%); }
.scale__marks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.scale__marks li { margin: 0; border-left: 2px solid var(--line); padding-left: 12px; }
.scale__marks .temp { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 1.0625rem; color: var(--navy); }
.scale__marks .what { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.scale__marks li:nth-child(1) { border-color: #0b72b9; }
.scale__marks li:nth-child(2) { border-color: #3ba9e0; }
.scale__marks li:nth-child(3) { border-color: #9fa66e; }
.scale__marks li:nth-child(4) { border-color: #f6921e; }
.scale__marks li:nth-child(5) { border-color: #e8501f; }

/* ---------- Cartes de services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.cards > li { margin: 0; }
.card {
  display: flex; flex-direction: column; gap: 14px; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; text-decoration: none; color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
a.card:hover { border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card h3 { margin: 0; font-size: 1.3125rem; }
.card p { margin: 0; color: var(--muted); }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); }
.card__more .icon { width: 18px; height: 18px; transition: transform .18s ease; }
a.card:hover .card__more .icon { transform: translateX(3px); }

/* ---------- Arguments ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; list-style: none; margin: 0; padding: 0; }
.features > li { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.features h3 { font-size: 1.25rem; margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }

/* ---------- Chiffres ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.facts > li { margin: 0; padding: 22px 24px; }
.facts > li + li { border-left: 1px solid var(--line); }
.facts .num { display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts .label { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts--2 > li:nth-child(3) { border-left: 0; }
.facts--2 > li:nth-child(n+3) { border-top: 1px solid var(--line); }
.link-icon { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-icon .icon { width: 16px; height: 16px; }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; position: relative; }
.steps > li { margin: 0; counter-increment: step; position: relative; padding-top: 64px; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy); color: var(--on-dark);
  font-family: var(--font-mono); font-weight: 500; font-size: 0.9375rem; z-index: 1;
}
.steps > li::after {
  content: ""; position: absolute; top: 23px; left: 56px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.section--cool .steps > li::after { background: repeating-linear-gradient(90deg, #b9d6ea 0 6px, transparent 6px 12px); }

/* ---------- Bandeau marine ---------- */
.band { background: var(--navy); color: var(--on-dark-muted); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--thermal); }
.band h2, .band h3 { color: var(--on-dark); }
.band .eyebrow { color: var(--orange-soft); }
.band a:not(.btn) { color: var(--on-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: var(--on-dark); font-weight: 600; font-size: var(--fs-sm);
}
.chip--light { background: var(--surface); border-color: var(--line); color: var(--navy); }
a.chip--light { text-decoration: none; }
a.chip--light:hover { border-color: var(--sky); background: var(--tint-cool); }

/* ---------- Avis ---------- */
.rating {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px);
}
.rating__score { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(3rem, 2.4rem + 2.6vw, 4.5rem); color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.rating__score small { font-size: 0.4em; color: var(--muted); font-weight: 700; }
.stars { display: flex; gap: 3px; color: var(--orange); margin-bottom: 6px; }
.stars svg { width: 22px; height: 22px; fill: currentColor; }
.rating p { margin: 0; color: var(--muted); }
.rating p strong { color: var(--navy); }

/* ---------- Zones ---------- */
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.zone { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.zone h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 1.25rem; }
.zone h3 .dept { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-sm); color: var(--blue); font-stretch: 100%; }
.zone ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 16px; }
.zone li { margin: 0 0 6px; break-inside: avoid; font-size: var(--fs-sm); }

.base-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.base-list li { margin: 0; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.base-list strong { display: block; color: var(--navy); }
.base-list span { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-family: var(--font-display); font-stretch: 106%; font-weight: 700; color: var(--navy); font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details[open] { border-color: #bcd7ea; }
.faq .faq__answer { padding: 0 22px 18px; color: var(--muted); }
.faq .faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Appel à l'action final ---------- */
.cta-band .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p:not(.eyebrow) { margin: 0; font-size: var(--fs-lg); }
.cta-band__actions { display: grid; gap: 14px; justify-items: start; }
.cta-phone { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; }
.cta-phone .phone-number { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); color: var(--on-dark); }
.cta-phone small { display: block; font-size: var(--fs-xs); color: var(--on-dark-muted); font-family: var(--font-body); }
.cta-phone .icon-chip { background: rgba(255,255,255,.1); color: var(--orange-soft); }

/* ---------- Pages intérieures ---------- */
.page-hero {
  background:
    radial-gradient(50rem 22rem at 100% 0%, rgba(59,169,224,.14), transparent 62%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 64px); }
.page-hero--simple .container { grid-template-columns: minmax(0, 1fr); }
.page-hero h1 { font-size: clamp(1.875rem, 1.25rem + 2.6vw, 3rem); }
.page-hero .lead { margin-bottom: 26px; }

.breadcrumb { font-size: var(--fs-sm); margin-bottom: 22px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: #9aa0bd; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

.summary-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow);
}
.summary-card h2 { font-size: 1.125rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.summary-card h2::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--thermal); }
.summary-card dl { margin: 0; display: grid; gap: 12px; }
.summary-card dl > div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-card dt { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); font-weight: 500; }
.summary-card dd { margin: 0; color: var(--text); font-size: var(--fs-sm); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; font-size: 1.3125rem; }
.prose ul li::marker { color: var(--orange); }
.prose .note {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--tint-cool); border: 1px solid #c7e1f2; margin: 1.4em 0;
}
.prose .note--warm { background: var(--tint-warm); border-color: #f7d6ad; }
.prose .note .icon { flex: none; color: var(--blue); margin-top: 2px; }
.prose .note--warm .icon { color: var(--flame); }
.prose .note p { margin: 0; }
.updated { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }

.aside-stack { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-cta { background: var(--navy); color: var(--on-dark-muted); border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; }
.aside-cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--thermal); }
.aside-cta h2 { color: var(--on-dark); font-size: 1.375rem; }
.aside-cta p { font-size: var(--fs-sm); }
.aside-cta .btn { width: 100%; }
.aside-cta .cta-phone { margin-top: 16px; }
.aside-cta .cta-phone .phone-number { font-size: 1.5rem; }
.aside-links { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.aside-links h2 { font-size: 1.0625rem; margin-bottom: 10px; }
.aside-links ul { list-style: none; padding: 0; margin: 0; }
.aside-links li { margin: 0; border-top: 1px solid var(--line); }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; color: var(--navy); text-decoration: none; font-weight: 600; }
.aside-links a:hover { color: var(--blue); }
.aside-links .icon { width: 18px; height: 18px; color: var(--blue); }

/* Tableau comparatif */
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 620px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--tint-cool); color: var(--navy); font-family: var(--font-display); font-stretch: 106%; font-weight: 700; }
tbody th { color: var(--navy); font-weight: 700; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.yes { color: #13795b; font-weight: 700; }
.no { color: var(--muted); }

/* Liste à puces avec pictos */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checklist li { margin: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.checklist .icon { width: 22px; height: 22px; color: #13795b; margin-top: 2px; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.related li { margin: 0; }

/* ---------- Formulaire de devis ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.quote-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow); }
.stepper { display: none; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.stepper li { margin: 0; flex: 1; }
.stepper span { display: block; height: 6px; border-radius: 999px; background: var(--line); transition: background .2s ease; }
.stepper small { display: block; margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.stepper li.is-done span, .stepper li.is-current span { background: var(--thermal); }
.stepper li.is-current small { color: var(--navy); }
.form-step { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.form-step legend { font-family: var(--font-display); font-stretch: 112%; font-weight: 750; color: var(--navy); font-size: var(--fs-xl); margin-bottom: 18px; padding: 0; }
.js .stepper { display: flex; }
.js .form-step[data-step]:not(.is-active) { display: none; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 650; color: var(--navy); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c9cfe0; border-radius: var(--r-sm);
  font: inherit; color: var(--text); background: var(--surface);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(59,169,224,.2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--flame); }
.field .error { color: #b3361a; font-size: var(--fs-sm); font-weight: 600; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; align-items: center; gap: 12px; height: 100%; cursor: pointer;
  padding: 12px 14px; border: 1.5px solid #c9cfe0; border-radius: var(--r); font-weight: 650; color: var(--navy);
  transition: border-color .15s ease, background-color .15s ease;
}
.choice label .icon { color: var(--blue); flex: none; }
.choice input:checked + label { border-color: var(--orange); background: var(--tint-warm); box-shadow: inset 0 0 0 1px var(--orange); }
.choice input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 2px; }
.form-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 10px; }
.form-nav .btn[hidden] { display: none; }
.form-legal { font-size: var(--fs-xs); color: var(--muted); margin: 18px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 14px 16px; border-radius: var(--r); background: #fdecea; border: 1px solid #f3b8aa; color: #8a2a12; margin-bottom: 20px; font-weight: 600; }
.form-alert--info { background: var(--tint-cool); border-color: #c7e1f2; color: var(--navy); }

.contact-card { display: grid; gap: 18px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line strong { display: block; color: var(--navy); }
.contact-line span, .contact-line a { color: var(--muted); font-size: var(--fs-sm); }
.contact-line a { color: var(--blue); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); font-size: var(--fs-sm); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--orange-soft); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-block: 56px 40px; }
.footer__brand img { width: 190px; background: #fff; border-radius: 10px; padding: 10px 12px; }
.footer__brand p { margin-top: 16px; }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-soft); margin-bottom: 14px; font-stretch: 100%; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.footer__nap { font-style: normal; display: grid; gap: 10px; }
.footer__renov {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px;
  display: flex; gap: 12px; align-items: center;
}
.footer__renov .icon { color: var(--sky); flex: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: var(--fs-xs); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__bottom li { margin: 0; }

/* ---------- Barre d'action mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(24,21,74,.08);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; font-size: 1rem; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* Champ à compléter par le client (pages légales) */
.todo { background: var(--tint-warm); border: 1px dashed var(--orange); border-radius: 4px; padding: 0 6px; color: var(--navy); font-weight: 600; }

/* ---------- Page 404 / merci ---------- */
.message-page { text-align: left; max-width: 680px; }
.message-page .big { font-family: var(--font-mono); font-size: clamp(3rem, 2rem + 5vw, 5.5rem); line-height: 1; background: var(--thermal); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero .container, .page-hero .container, .content-grid, .form-layout, .split, .cta-band .container { grid-template-columns: minmax(0, 1fr); }
  .cards, .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zones { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .steps > li:nth-child(2)::after { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > li:nth-child(3) { border-left: 0; }
  .facts > li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .aside-stack { position: static; }
  .scale__marks { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
}
@media (max-width: 767px) {
  .topbar__info span:nth-child(2) { display: none; }
  .cards, .related, .features, .base-list, .field-row { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps > li::after { display: none; }
  .scale__marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rating { grid-template-columns: minmax(0, 1fr); }
  .zone ul { columns: 2; }
}
@media (max-width: 480px) {
  .topbar { display: none; }
  .picker__grid, .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > li { border-left: 0 !important; }
  .facts > li + li { border-top: 1px solid var(--line); }
  .btn-row .btn { width: 100%; }
  .scale__ticks span:nth-child(even) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-header, .mobile-bar, .cta-band, .site-footer { display: none !important; }
}
