/* ==========================================================
   DeWillers — feuille de style commune
   ========================================================== */

/* Polices hébergées sur le site : aucun appel à Google (plus rapide, et conforme RGPD) */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
/* Atkinson barre ses zéros (« Ø1 23… ») : les chiffres du texte viennent d'Archivo */
@font-face {
  font-family: "DW Chiffres";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0030-0039;
}

:root {
  /* Couleurs */
  --mist: #F4F5F3;          /* fond général */
  --white: #FFFFFF;         /* le blanc de l'unité */
  --petrol: #1C2430;        /* anthracite : texte et boutons */
  --petrol-soft: #4A5361;   /* texte secondaire */
  --frost: #E4ECF1;         /* zones actives, sélections */
  --souffle: #43A8D6;       /* le flux d'air (décor uniquement, jamais pour du texte) */
  --souffle-ink: #1D6891;   /* liens et focus sur fond clair */
  --heat: #F07A3F;          /* la chaleur, avant la clim */
  --heat-ink: #B44E1B;
  --line: #D9DEE2;
  --noyer: #3A2A21;         /* brun foncé : bandeau de l'en-tête et pied de page */
  --card-line: #E1E4E1;     /* filet des cartes, à la place des ombres */
  --lin: #F4EEE7;           /* texte sur le brun */
  --lin-soft: #CDBFB2;      /* texte secondaire sur le brun */
  --error: #B42318;
  --error-bg: #FDECEA;

  /* Typographie */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DW Chiffres", "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --text-sm: 1rem;
  --text-base: 1.1875rem;
  --text-lg: clamp(1.1875rem, 1.05rem + .45vw, 1.375rem);
  --h3: 1.5rem;
  --h2: clamp(2.25rem, 1.6rem + 2.2vw, 3.625rem);
  --display: clamp(3rem, 1.1rem + 7.4vw, 7.5rem);

  /* Formes et rythme */
  --radius-panel: 36px;
  --radius-tile: 22px;
  --radius-field: 14px;
  --header-h: 76px;
  --promo-h: 46px;          /* hauteur de la banderole promo de l'accueil, sur une ligne (66 px sur téléphone) */
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--petrol);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }

a { color: var(--souffle-ink); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:not([class]):hover { color: var(--petrol); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--souffle-ink); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * clamp(16px, 3.5vw, 80px), 1900px); margin-inline: auto; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px;
  background: var(--petrol); color: #fff;
  border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-primary { background: var(--petrol); color: #fff; box-shadow: 0 12px 26px -14px rgb(28 36 48 / .6); }
.btn-primary:hover { background: #313C4C; color: #fff; }
.btn-arrow { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.btn-ghost:hover { background: var(--white); color: var(--petrol); }

.btn-light { background: var(--frost); color: var(--petrol); }
.btn-light:hover { background: var(--white); color: var(--petrol); }

.btn-sm { min-height: 48px; padding: 0 22px; font-size: 1.0625rem; white-space: nowrap; }
.btn-block { width: 100%; }

/* ---------- Lien téléphone ---------- */

.phone-link { display: inline-flex; align-items: center; gap: 12px; color: var(--petrol); text-decoration: none; }
.phone-link svg {
  flex: none;
  width: 46px; height: 46px;
  padding: 11px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 16px -8px rgb(18 50 63 / .4);
  fill: none;
  stroke: var(--petrol);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone-link strong {
  display: block;
  font-family: var(--font-ui);
  font-stretch: 100%;
  font-weight: 750;
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: nowrap;
}
.phone-link small { display: block; font-size: .9375rem; color: var(--petrol-soft); }
.phone-link:hover strong { color: var(--souffle-ink); }
.phone-link.is-light { color: #fff; }
.phone-link.is-light svg { background: rgb(255 255 255 / .12); box-shadow: none; stroke: #fff; }
.phone-link.is-light small { color: rgb(255 255 255 / .75); }
.phone-link.is-light:hover strong { color: var(--frost); }
.phone-link.is-large strong { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }

/* ---------- Logo (chrome rétro) ---------- */

.logo { display: inline-flex; flex: none; padding: 6px 0; border-radius: 8px; }
.logo img { width: auto; height: 28px; }
.is-overlay .logo img { height: clamp(26px, 1.9vw, 40px); }
.site-footer .logo img { height: 34px; }

/* ---------- Banderole promo (accueil) ---------- */

.promo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 28px;
  min-height: var(--promo-h);
  padding: 8px var(--gutter);
  background: var(--souffle-ink);
  color: var(--white);
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.promo-bar strong { font-size: 1.125rem; font-weight: 800; }
.promo-bar del { color: rgb(255 255 255 / .85); text-decoration-thickness: 2px; }
.promo-tag { padding: 2px 12px; border-radius: 999px; background: var(--white); color: var(--souffle-ink); font-size: .875rem; font-weight: 800; }
.promo-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.promo-bar:hover .btn-arrow { transform: translateX(3px); }
.promo-bar:focus-visible { outline-color: var(--white); outline-offset: -6px; }
/* L'en-tête fixe de l'accueil démarre sous la banderole, puis remonte avec elle (voir initHeader) */
.promo-bar + .site-header.is-overlay { top: var(--promo-h); }
/* Sans animation, le hero tient sous la banderole : la barre des atouts reste dans le premier écran.
   La photo commence sous l'en-tête brun, calée en haut : le haut du climatiseur n'est jamais caché. */
@media (min-width: 1101px) {
  html:not(.scroll-hero) .promo-bar ~ main .hero-sticky { height: calc(100svh - var(--promo-h)); min-height: calc(620px - var(--promo-h)); }
  html:not(.scroll-hero) .hero-media { top: calc(var(--header-h) + 18px); }
  html:not(.scroll-hero) .hero-photo { object-position: 72% 0%; }
  /* Animé aussi : sur un écran plus large que la vidéo, on rogne le bas, jamais le haut du climatiseur */
  .scroll-hero .hero-photo { object-position: 72% 0%; }
  /* Fenêtre basse : le titre ne prend jamais la place du bouton et du téléphone, au-dessus de la barre des atouts */
  html:not(.scroll-hero) .hero-title { font-size: clamp(2.75rem, min(5vw, 46vh - 14.5rem), 6.5rem); }
}
@media (min-width: 1101px) and (max-height: 50em) {
  html:not(.scroll-hero) .hero-lead { margin-top: 14px; }
  html:not(.scroll-hero) .hero-actions { margin-top: 20px; gap: 14px; }
}
/* Écran de portable assez bas : le téléphone passe à côté du bouton devis, au-dessus de la barre des atouts */
@media (min-width: 1101px) and (max-height: 53.75em) {
  html:not(.scroll-hero) .hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: clamp(24px, 2.4vw, 40px); }
  html:not(.scroll-hero) .phone-link.is-hero small { text-shadow: 0 0 8px rgb(250 250 248 / .9); }
}
@media (max-width: 68.6875em) {
  .promo-cta { display: none; }
}
@media (max-width: 860px) {
  .promo-tag { display: none; }
}
@media (max-width: 699px) {
  :root { --promo-h: 66px; }
  .promo-bar { gap: 2px 20px; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--noyer);
  transition: background-color .3s;
}

/* Accueil : l'en-tête est posé sur le hero, brun en arrivant. Sur ordinateur, il s'efface pendant
   l'animation pour laisser toute la vidéo visible (is-clear, voir initHeader), puis redevient brun. */
.site-header.is-overlay {
  position: fixed;
  left: 0;
  right: 0;
  transition: none;
}
/* Pendant la vidéo, il devient un verre brun : la vidéo se devine dessous, le logo chrome reste lisible.
   Il redevient brun plein d'un coup dès que la scène remonte. */
.site-header.is-overlay.is-clear {
  background: rgb(58 42 33 / .9);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  transition: background-color .4s;
}
.site-header.is-overlay:not(.is-clear) .main-nav a { transition: background-size .3s var(--ease-out); }
/* Sur le brun : textes clairs, bouton devis clair et contour de focus clair. Sur la vidéo, ils restent foncés. */
.site-header :focus-visible,
.flow-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--lin); }
.site-header .btn-header { background: var(--lin); color: var(--noyer); box-shadow: none; }
.site-header .btn-header:hover { background: var(--white); color: var(--noyer); }
.is-overlay .header-inner { min-height: calc(var(--header-h) + 18px); transition: min-height .3s var(--ease-out); }
.is-overlay.is-scrolled .header-inner { min-height: var(--header-h); }
/* En haut de l'accueil, le hero montre déjà le téléphone et le bouton devis : l'en-tête ne garde que
   le logo et le menu (calé à droite). Il reprend le téléphone quand celui du hero est replié ou caché
   (show-phone), et le bouton devis quand celui du hero est caché, ou presque (show-devis, voir initHeader).
   Chacun disparaît d'un coup dès que son double du hero revient : jamais deux à la fois. */
.is-overlay .main-nav { margin-left: auto; margin-right: 0; transition: margin-right .5s var(--ease-out); }
.js .site-header.is-overlay .header-actions {
  max-width: 0;
  padding-inline: 14px; /* place pour l'ombre des pastilles, coupée seulement sur les côtés */
  margin-inline: -14px;
  gap: 0;
  opacity: 0;
  overflow-x: clip;
  overflow-y: visible;
  transition: max-width .55s var(--ease-out), opacity .35s ease;
}
.js .site-header.is-overlay .header-actions > * { flex-shrink: 0; }
.js .site-header.is-overlay:is(.show-phone, .show-devis) .header-actions { max-width: 720px; opacity: 1; transition: max-width .55s var(--ease-out), opacity .45s ease .12s; }
.js .site-header.is-overlay:is(.show-phone, .show-devis) .main-nav { margin-right: clamp(8px, 2vw, 40px); }
.js .site-header.is-overlay .header-phone { opacity: 0; visibility: hidden; transition: opacity 0s, visibility 0s, box-shadow .2s; }
/* Le téléphone de l'en-tête attend que celui du hero ait fini de s'effacer (0,4 s) avant d'apparaître */
.js .site-header.is-overlay.show-phone .header-phone { opacity: 1; visibility: visible; transition: opacity .45s ease .42s, visibility 0s, box-shadow .2s; }
/* Le bouton devis reste replié tant que show-devis n'est pas là : il ne clignote jamais */
.js .site-header.is-overlay .btn-header {
  max-width: 0;
  margin-left: 0;
  padding-inline: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width .55s var(--ease-out), margin .55s var(--ease-out), padding .55s var(--ease-out), opacity 0s, background-color .2s, color .2s, transform .2s var(--ease-out);
}
.js .site-header.is-overlay.show-devis .btn-header {
  max-width: 400px;
  margin-left: 16px;
  padding-inline: clamp(22px, 2vw, 38px);
  opacity: 1;
  transition: max-width .55s var(--ease-out), margin .55s var(--ease-out), padding .55s var(--ease-out), opacity .45s ease .12s, background-color .2s, color .2s, transform .2s var(--ease-out);
}
.nav-extra { display: none; }
@media (min-width: 1760px) { .nav-extra { display: inline; } }

.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.main-nav { display: flex; gap: clamp(20px, 2.2vw, 44px); margin-inline: auto; }
.main-nav a {
  padding: 8px 0;
  color: var(--lin);
  font-weight: 500;
  font-size: clamp(1rem, .82rem + .3vw, 1.25rem);
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(var(--souffle), var(--souffle)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease-out), color .4s;
}
.main-nav a:hover { background-size: 100% 2px; color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: clamp(8px, .6vw, 12px) clamp(20px, 1.6vw, 30px) clamp(8px, .6vw, 12px) clamp(16px, 1.2vw, 24px);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 8px 24px -14px rgb(28 36 48 / .45);
  color: var(--petrol);
  text-decoration: none;
  transition: box-shadow .2s;
}
.header-phone:hover { box-shadow: 0 10px 28px -10px rgb(28 36 48 / .55); }
.header-phone svg {
  flex: none;
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-phone strong { display: block; font-family: var(--font-ui); font-weight: 650; font-size: clamp(1rem, .8rem + .3vw, 1.25rem); line-height: 1.15; white-space: nowrap; }
.header-phone small { display: block; font-size: clamp(.8125rem, .7rem + .15vw, .9375rem); line-height: 1.25; color: var(--petrol-soft); white-space: nowrap; }
.btn-header { min-height: clamp(50px, 3.3vw, 66px); padding: 0 clamp(22px, 2vw, 38px); font-size: clamp(1rem, .82rem + .3vw, 1.25rem); white-space: nowrap; }

/* Portables : la pastille téléphone se réduit à son icône pour laisser la place au menu */
@media (max-width: 1400px) {
  .header-phone { padding: 0; background: none; box-shadow: none; }
  .header-phone svg { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--white); box-shadow: 0 8px 22px -12px rgb(28 36 48 / .5); }
  .header-phone-text { display: none; }
}

@media (max-width: 1240px) {
  .main-nav { display: none; }
  .header-actions, .js .site-header.is-overlay .header-actions { margin-left: auto; }
}
.label-short { display: none; }

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 10px; }
  .header-phone { padding: 0; background: none; box-shadow: none; }
  .header-phone svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--white); box-shadow: 0 6px 18px -10px rgb(28 36 48 / .5); }
  .header-phone-text { display: none; }
  .btn-header { min-height: 48px; padding: 0 16px; }
  .js .site-header.is-overlay.show-devis .btn-header { margin-left: 10px; padding-inline: 16px; }
  .btn-header .btn-arrow { display: none; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .logo img, .is-overlay .logo img { height: 18px; }
}
/* Petit écran ou texte agrandi : le logo rétrécit plutôt que de pousser le bouton devis hors de l'écran */
.site-header .logo { flex: 0 1 auto; min-width: 0; }
.site-header .logo img { max-width: 100%; object-fit: contain; object-position: left center; }
@media (max-width: 345px) {
  .header-phone { display: none; }
}
@media (max-width: 389px) {
  .logo img, .is-overlay .logo img { height: 15px; }
  .js .site-header.is-overlay.show-devis .btn-header { margin-left: 8px; padding-inline: 12px; }
}

/* ==========================================================
   Accueil — le hero
   ========================================================== */

/* Le hero est une piste de défilement : la scène reste à l'écran pendant que la vidéo avance
   au rythme du scroll (assets/js/main.js, initHero). La classe scroll-hero est posée sur <html>
   dès le <head> quand les animations sont permises, pour que la page ne change pas de hauteur au chargement. */
.hero { --bar-h: clamp(96px, 10vh, 120px); position: relative; overflow-anchor: none; }
.scroll-hero .hero { height: 320vh; }

.hero-sticky {
  position: sticky;
  top: 0;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 620px;
  padding: calc(var(--header-h) + clamp(32px, 6vh, 72px)) 0 calc(var(--bar-h) + clamp(28px, 5vh, 56px));
}

.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #ECEAE5; }
.hero-photo, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: 72% 50%; }
.hero-canvas { opacity: 0; transition: opacity .5s ease; }
.hero.is-ready .hero-canvas { opacity: 1; }

/* Voile clair à gauche pour le texte, comme une brume de lumière */
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 80% at 0% 30%, rgb(250 250 248 / .7) 0%, rgb(250 250 248 / 0) 70%),
    linear-gradient(90deg, rgb(250 250 248 / .86) 0%, rgb(250 250 248 / .74) 24%, rgb(250 250 248 / .4) 40%, rgb(250 250 248 / 0) 56%),
    linear-gradient(180deg, rgb(250 250 248 / .5) 0%, rgb(250 250 248 / 0) 18%);
}

/* Le texte : centré en hauteur, sans jamais remonter sous l'en-tête quand l'écran est bas */
.hero-inner { position: relative; margin-block: auto; }
.hero-text { max-width: 61.25rem; padding-left: clamp(0px, 2.4vw, 48px); }
.hero-eyebrow {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #4A5260;
}
.hero-title {
  margin-top: clamp(16px, 2.4vh, 26px);
  font-size: clamp(2.75rem, 5vw, 6.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--petrol);
}
.hero-lead {
  max-width: 36ch;
  margin-top: clamp(18px, 3vh, 30px);
  font-size: clamp(1.1875rem, 1rem + .55vw, 1.5rem);
  line-height: 1.42;
  color: #2B313A;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 3vh, 30px);
  margin-top: clamp(26px, 4vh, 40px);
}
.btn-hero { min-height: clamp(58px, 3.6vw, 72px); padding: 0 clamp(26px, 2vw, 40px) 0 clamp(30px, 2.5vw, 50px); gap: clamp(14px, 2vw, 40px); font-size: clamp(1.0625rem, .7rem + .55vw, 1.5rem); }
.phone-link.is-hero { gap: 18px; }
.phone-link.is-hero svg { width: 62px; height: 62px; padding: 18px; stroke-width: 2.2; box-shadow: 0 10px 26px -14px rgb(28 36 48 / .5); }
.phone-link.is-hero strong { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 650; }
.phone-link.is-hero small { font-size: 1rem; color: #3A414C; }

/* Sur ordinateur, dès que la vidéo démarre, le texte se resserre sur l'essentiel :
   le titre, le bouton devis et les atouts restent, le reste se replie en douceur (initHero). */
.hero-title, .hero-actions { transition: margin .8s var(--ease-out), gap .8s var(--ease-out); }
.hero-extra { max-height: 12em; transition: max-height .8s var(--ease-out), margin .8s var(--ease-out), opacity .5s ease .2s, filter .5s ease .2s; }
.hero-eyebrow, .hero-lead { overflow: hidden; }
.hero.is-compact .hero-extra {
  max-height: 0;
  margin-block: 0;
  opacity: 0;
  filter: blur(4px);
  overflow: hidden;
  visibility: hidden;
  transition: max-height .8s var(--ease-out), margin .8s var(--ease-out), opacity .4s ease, filter .4s ease, visibility 0s .8s;
}
.hero.is-compact .hero-title { margin-top: 0; }
.hero.is-compact .hero-actions { gap: 0; }

/* La bande des atouts, posée en bas de la photo */
.hero-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgb(34 30 26 / .42), rgb(28 25 22 / .62));
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  color: #fff;
}
.hero-bar-inner { display: flex; align-items: center; min-height: var(--bar-h); }
.hero-bar-list { display: flex; align-items: center; }
.hero-bar-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(18px, 2vw, 34px);
  border-left: 1px solid rgb(255 255 255 / .38);
}
.hero-bar-list li:first-child { padding-left: 0; border-left: 0; }
/* Au fil du défilement, la bande monte puis les atouts apparaissent un par un, en fondu très doux (initHero) */
.hero-bar { transition: transform .9s var(--ease-out), opacity .7s ease; }
.scroll-hero .hero-bar { opacity: 0; transform: translateY(100%); }
.scroll-hero .hero.has-bar .hero-bar { opacity: 1; transform: none; }
/* Un atout pas encore apparu est aussi invisible pour la souris et le clavier */
.scroll-hero .hero-bar-list li, .scroll-hero .hero-discover {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(6px);
  visibility: hidden;
  transition: opacity 1.4s ease, transform 1.6s cubic-bezier(.22, .61, .36, 1), filter 1.4s ease, visibility 0s 1.4s;
}
.scroll-hero .hero-bar-list li.is-shown, .scroll-hero .hero-discover.is-shown {
  --d: calc(var(--k) * .08s);
  opacity: 1;
  transform: none;
  filter: none;
  visibility: visible;
  transition: opacity 1.4s ease var(--d), transform 1.6s cubic-bezier(.22, .61, .36, 1) var(--d), filter 1.4s ease var(--d), visibility 0s var(--d);
}
.hero-bar-list svg { flex: none; width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-bar-list strong { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.hero-bar-list small { display: block; font-size: .9375rem; line-height: 1.3; color: rgb(255 255 255 / .86); }

.hero-discover {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-left: clamp(32px, 7vw, 140px);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero-mouse { width: 22px; height: 33px; fill: none; stroke: #fff; stroke-width: 1.6; }
.hero-wheel { stroke-linecap: round; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(6px); opacity: 0; } 100% { opacity: 0; } }
.hero-chevron { width: 18px; height: 9px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1180px) {
  .hero-discover { display: none; }
}

@media (max-width: 1100px) {
  /* La bande photo reste sous l'en-tête pendant que le texte défile dessous */
  .scroll-hero .hero { height: auto; }
  .hero-sticky { position: static; display: block; height: auto; min-height: 0; overflow: visible; padding: var(--header-h) 0 48px; }
  /* La bande ne prend jamais plus de 56 % de la hauteur de l'écran (tablette ou téléphone en paysage),
     et elle arrête les touchers : les liens qui passent dessous ne sont pas cliquables par erreur. */
  .hero-media { position: relative; inset: auto; z-index: 2; height: min(max(320px, 72vw), 56svh, 600px); pointer-events: auto; }
  .scroll-hero .hero-media { position: sticky; top: var(--header-h); }
  .hero-inner, .hero-bar { z-index: 1; }
  /* Calé vers le haut : sur une tablette à l'horizontale, le climatiseur reste dans la bande jusqu'à la fin */
  .hero-photo { object-position: 74% 15%; }
  .hero-eyebrow { font-size: .9375rem; letter-spacing: .1em; }
  .hero-veil { background: linear-gradient(180deg, rgb(250 250 248 / .55) 0%, rgb(250 250 248 / 0) 22%, rgb(250 250 248 / 0) 70%, var(--mist) 100%); }
  .hero-inner { margin-top: 4px; }
  .hero-text { padding-left: 0; }
  .hero-bar { position: relative; margin: 36px clamp(16px, 4vw, 40px) 0; border-radius: 24px; background: var(--petrol); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .scroll-hero .hero-bar { transform: translateY(16px); }
  .hero-bar-inner { width: auto; padding: 22px; }
  .hero-bar-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; width: 100%; }
  .hero-bar-list li { padding: 0; border: 0; gap: 12px; }
  .hero-bar-list svg { width: 32px; height: 32px; }
}
@media (max-width: 699px) {
  .hero-photo { object-position: 50% 50%; } /* images téléphone déjà recadrées sur le climatiseur */
}
/* Téléphone tenu à l'horizontale : la bande vidéo reste basse, le titre qui passe dessous a la place d'être lu */
@media (max-width: 1100px) and (max-height: 500px) {
  .hero-media { height: max(150px, 38svh); }
  .hero-photo { object-position: 50% 12%; }
}
/* Trop basse pour suivre l'avancée de la caméra, la bande garde alors l'image d'attente (initHero n'y charge rien) */
@media (max-height: 500px) and (pointer: coarse) {
  .hero-canvas { display: none; }
}
@media (max-width: 480px) {
  .btn-hero { min-height: 58px; padding: 0 22px 0 26px; gap: 12px; font-size: 1.0625rem; }
  .phone-link.is-hero svg { width: 54px; height: 54px; padding: 15px; }
}

/* ==========================================================
   Sections de l'accueil
   ========================================================== */

.section { padding-block: clamp(80px, 11vw, 150px); }
.section + .section { padding-top: 0; }
/* Une bande blanche sépare le parcours des sections voisines */
.section.is-band { padding-top: clamp(80px, 11vw, 150px); background: var(--white); }
.is-band + .section { padding-top: clamp(80px, 11vw, 150px); }


/* ---------- Une climatisation adaptée : la tête de section ---------- */

/* Le titre à gauche, les textes à droite, sur les deux colonnes des cartes :
   le texte part du bord de la seconde carte */
.rooms-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px); /* la gouttière des cartes */
  align-items: start;
}
.rooms-head h2 { max-width: 8em; text-wrap: wrap; } /* trois lignes, sans « à » en bout de ligne */
.rooms-intro { padding-top: 3px; } /* cale les capitales du texte sur celles du titre */
.rooms-intro p { font-size: var(--text-lg); color: var(--petrol-soft); }
.rooms-intro .range-title { margin-top: clamp(32px, 3vw, 40px); }

/* ---------- Deux puissances ---------- */

.range-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; }
.range-lead { max-width: 60ch; margin-top: 12px; font-size: var(--text-lg); color: var(--petrol-soft); }
.range-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(32px, 3.6vw, 52px); }
@media (min-width: 1061px) {
  .rooms-intro .range-title { font-size: clamp(1.5rem, 1.2rem + .7vw, 1.875rem); } /* une ligne dans la colonne, sur ordinateur seulement */
}
.model {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(330px, 26.5vw, 410px);
  border: 1px solid var(--card-line);
  border-radius: 28px;
  background: var(--white);
}
.model-text { position: relative; z-index: 1; max-width: 56%; padding: clamp(28px, 3vw, 44px) 0 clamp(28px, 3vw, 44px) clamp(26px, 3vw, 46px); }
.model-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--petrol-soft);
  font-size: 1rem;
  font-weight: 600;
}
.model-tag svg { width: 22px; height: 22px; fill: none; stroke: var(--souffle-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.model-power {
  margin-top: clamp(18px, 2vw, 28px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 1.6rem + 3vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.model-surface { margin-top: 18px; font-weight: 700; font-size: clamp(1.0625rem, .95rem + .3vw, 1.25rem); }
.model-surface::after {
  content: "";
  display: block;
  width: 76px;
  height: 1px;
  margin: clamp(20px, 2vw, 30px) 0;
  background: #C0C6C9;
}
.model-use { font-size: clamp(1.0625rem, .95rem + .3vw, 1.25rem); line-height: 1.55; color: #2B313A; }
.model-illu {
  position: absolute;
  top: clamp(12px, 1.4vw, 22px);
  bottom: clamp(12px, 1.4vw, 22px);
  right: clamp(10px, 1.4vw, 22px);
  width: 47%;
  height: calc(100% - 2 * clamp(12px, 1.4vw, 22px));
  object-fit: contain;
  object-position: center;
  transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.22, .61, .36, 1);
}
.js .model .model-illu { opacity: 0; transform: translateY(14px); }
.js .model.is-in .model-illu { opacity: 1; transform: none; }
.model + .model .model-illu { transition-delay: .25s; }

.range-note {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  margin-top: clamp(22px, 2.6vw, 34px);
}
.range-note::before, .range-note::after { content: ""; height: 1px; background: #D9DEE2; }
.range-note p { display: flex; align-items: center; gap: 16px; max-width: 76ch; font-size: var(--text-sm); line-height: 1.55; color: var(--petrol-soft); }
.range-note svg { flex: none; width: 30px; height: 30px; fill: none; stroke: #3A414C; stroke-width: 1.5; }

.range-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.range-features li { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; }
.range-features svg {
  grid-row: span 2;
  width: 32px; height: 32px;
  margin-top: 1px;
  fill: none;
  stroke: var(--souffle-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.range-features h4 {
  margin: 0;
  padding-top: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
}
.range-features p { margin-top: 4px; color: var(--petrol-soft); }

@media (max-width: 1060px) {
  /* Cartes empilées : la tête s'empile aussi, sur la mesure de lecture habituelle */
  .rooms-head { grid-template-columns: minmax(0, 44rem); }
  .rooms-head h2 { max-width: none; text-wrap: balance; }
  .rooms-intro { padding-top: 0; margin-top: 16px; }
  .range-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .range-features { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .model { flex-direction: column; align-items: stretch; min-height: 0; }
  .model-text { max-width: none; padding: 26px 24px 0; }
  .model-illu { position: static; align-self: center; width: min(100%, 340px); height: auto; margin: 8px 0 18px; }
  .range-note { grid-template-columns: 1fr; }
  .range-note::before, .range-note::after { display: none; }
}

/* ---------- Comment ça marche ---------- */

.steps-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 40px;
}
.steps-intro h2,
.steps-intro p { grid-column: 1; }
.steps-intro p { max-width: 46ch; margin-top: 16px; font-size: var(--text-lg); color: var(--petrol-soft); }
.steps-intro .btn { grid-column: 2; grid-row: 1 / span 2; }

/* Sans animation (ou sur un écran trop bas) : les 5 étapes côte à côte */
.steps-stage { margin-top: clamp(40px, 5vw, 64px); }
.steps-rail { display: none; }
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 32px clamp(20px, 2vw, 32px);
}
@media (min-width: 1100px) {
  .steps-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--souffle-ink);
}
.step-who {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--petrol);
}
.step-who::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--souffle); }
.step-who.is-you::before { background: var(--petrol); }
.step-icon { display: none; }
.step-body h3 { font-size: 1.3125rem; }
.step-body p:last-child { max-width: 52ch; margin-top: 8px; color: var(--petrol-soft); }

/* Carrousel : le bloc reste au milieu de l'écran et, au fil du défilement, chaque étape laisse sa
   place à la suivante, de la 1 à la 5 (main.js mesure sa hauteur dans --carousel-h) */
@supports (overflow: clip) and (height: 1svh) {
  @media screen and (min-height: 560px) {
    .scroll-steps .steps-stage { height: calc(var(--carousel-h, 440px) + 150vh); }
    .scroll-steps .steps-carousel {
      position: sticky;
      top: max(calc(var(--header-h) + 16px), calc(50svh + var(--header-h) / 2 - var(--carousel-h, 440px) / 2));
    }

    .scroll-steps .steps-rail {
      --dot: 56px;
      position: relative;
      display: flex;
      justify-content: space-between;
      margin-bottom: clamp(24px, 3vw, 40px);
    }
    .scroll-steps .steps-track,
    .scroll-steps .steps-fill {
      position: absolute;
      top: 50%;
      left: calc(var(--dot) / 2);
      right: calc(var(--dot) / 2);
      height: 4px;
      margin-top: -2px;
      border-radius: 4px;
    }
    .scroll-steps .steps-track { background: var(--line); }
    .scroll-steps .steps-fill {
      background: linear-gradient(90deg, var(--souffle), var(--souffle-ink));
      transform: scaleX(0);
      transform-origin: left;
    }
    .scroll-steps .steps-dot {
      position: relative;
      display: grid;
      place-items: center;
      width: var(--dot); height: var(--dot);
      padding: 0;
      border: 2px solid var(--line);
      border-radius: 50%;
      background: var(--white);
      font-family: var(--font-ui);
      font-stretch: 118%;
      font-weight: 800;
      font-size: 1.375rem;
      color: var(--petrol-soft);
      cursor: pointer;
      transition: background-color .4s var(--ease-out), border-color .4s, color .4s, box-shadow .4s, transform .4s var(--ease-out);
    }
    .scroll-steps .steps-dot:hover { border-color: var(--petrol); }
    .scroll-steps .steps-dot.is-reached { background: var(--petrol); border-color: var(--petrol); color: #fff; }
    .scroll-steps .steps-dot[aria-current] { transform: scale(1.08); box-shadow: 0 0 0 6px var(--frost); }

    /* Une seule étape à la fois dans le cadre : la bande des 5 étapes glisse vers la gauche,
       chaque étape poussant la précédente (--step : rang de l'étape affichée, posé par main.js) */
    .scroll-steps .steps-window {
      overflow: clip;
      border-radius: 28px;
      background: var(--mist);
    }
    .scroll-steps .steps-list {
      display: flex;
      gap: 0;
      transform: translateX(calc(var(--step, 0) * -100%));
    }
    .scroll-steps .steps-list.is-live { transition: transform .7s var(--ease-out); }
    .scroll-steps .step {
      flex: 0 0 100%;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      column-gap: clamp(28px, 5vw, 72px);
      padding: clamp(28px, 4vw, 56px);
      opacity: .25;
      transition: opacity .7s var(--ease-out);
    }
    .scroll-steps .step.is-active { opacity: 1; }
    /* Le numéro est déjà sur le rail : la carte montre le geste de l'étape, en pictogramme à droite */
    .scroll-steps .step-num { display: none; }
    .scroll-steps .step-icon {
      display: block;
      grid-column: 2; grid-row: 1;
      width: clamp(88px, 4rem + 4vw, 136px); height: auto;
      margin-right: clamp(0px, 2vw, 32px);
      fill: none;
      stroke: var(--souffle-ink);
      stroke-width: 1.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .scroll-steps .step-body { grid-column: 1; grid-row: 1; }
    .scroll-steps .step-body h3 { font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.375rem); }
    .scroll-steps .step-body p:last-child { margin-top: 12px; font-size: var(--text-lg); }
  }
  @media screen and (min-height: 560px) and (max-width: 640px) {
    .scroll-steps .steps-rail { --dot: 44px; }
    .scroll-steps .steps-dot { font-size: 1.125rem; }
    .scroll-steps .step { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; padding: 24px 22px 28px; }
    .scroll-steps .step-icon { grid-column: 1; width: 64px; margin: 0 0 18px; }
    .scroll-steps .step-body { grid-row: 2; }
    .scroll-steps .step-body h3 { font-size: 1.5rem; }
  }
}

@media (max-width: 860px) {
  .steps-intro { grid-template-columns: minmax(0, 1fr); }
  .steps-intro .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 28px; }
}

@keyframes result-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Pourquoi DeWillers ---------- */

.why-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px clamp(40px, 6vw, 96px);
  align-items: end;
}
.why-body h2 { max-width: 9em; }
.why-lead { max-width: 30ch; margin-top: 18px; font-size: var(--text-lg); color: var(--petrol-soft); }
.why-photo { overflow: hidden; border-radius: 28px; background: var(--frost); aspect-ratio: 3 / 2; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px clamp(24px, 3vw, 44px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
}
.why-list svg {
  width: 36px; height: 36px;
  fill: none;
  stroke: var(--souffle-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-list h3 { margin-top: 18px; font-size: 1.3125rem; }
.why-list p { margin-top: 8px; color: var(--petrol-soft); }

@media (max-width: 1100px) {
  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .why-top { grid-template-columns: 1fr; align-items: start; }
  .why-body h2 { max-width: none; }
}
@media (max-width: 560px) {
  .why-list { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Questions fréquentes ---------- */

.faq { padding-top: 0; }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 7vw, 120px);
}
.faq-intro p { margin-top: 20px; color: var(--petrol-soft); max-width: 30ch; }
.faq-intro a { font-weight: 700; white-space: nowrap; }

.faq-list { border-top: 2px solid var(--petrol); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--souffle-ink); }
.faq-icon {
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--frost);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2.5px;
  margin: -1.25px 0 0 -7px;
  border-radius: 2px;
  background: var(--petrol);
  transition: transform .3s var(--ease-out);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { overflow: hidden; }
.faq-answer p { padding-bottom: 26px; max-width: 60ch; color: var(--petrol-soft); }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
}

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

.cta-final { padding-bottom: clamp(56px, 8vw, 100px); }
.cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  border-radius: var(--radius-panel);
  background: var(--petrol);
  color: #fff;
}
.cta-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(36px, 6vw, 80px);
}
.cta-panel h2 { max-width: 16ch; }
.cta-photo { position: relative; min-height: 340px; }
.cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.cta-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--petrol) 0%, rgb(18 50 63 / 0) 38%);
}
@media (max-width: 860px) {
  .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .cta-photo { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .cta-photo::after { background: linear-gradient(0deg, var(--petrol) 0%, rgb(18 50 63 / 0) 45%); }
  .cta-text { padding-top: 8px; }
}
.cta-lead { max-width: 32ch; font-size: var(--text-lg); color: rgb(255 255 255 / .82); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.cta-note { font-size: var(--text-sm); color: rgb(255 255 255 / .75); }

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

.site-footer { padding: 56px 0 40px; background: var(--noyer); color: var(--lin-soft); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin-top: 14px; max-width: 30ch; font-size: var(--text-sm); }
.footer-nav, .footer-contact { display: grid; gap: 10px; align-content: start; font-size: var(--text-sm); }
.footer-nav a, .footer-contact a { color: var(--lin); font-weight: 600; text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgb(244 238 231 / .16);
  font-size: .9375rem;
}
.footer-legal a { color: var(--lin-soft); }
.footer-legal a:hover { color: var(--lin); }

/* Téléphone (aussi à l'horizontale) et tablette : des liens assez hauts pour le doigt */
@media (max-width: 1100px) {
  .footer-nav, .footer-contact { gap: 0; }
  .footer-nav a, .footer-contact a { padding-block: 10px; }
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ==========================================================
   Parcours : demande de devis et devis signé
   ========================================================== */

.flow-body { background: var(--mist); }

.flow-header { background: var(--noyer); }
.flow-header .header-inner { justify-content: space-between; min-height: 70px; }
.flow-help { font-size: var(--text-sm); color: var(--lin-soft); text-align: right; }
.flow-help a { display: inline-block; padding-block: 12px; margin-block: -12px; font-weight: 700; color: var(--lin); white-space: nowrap; }
.flow-help a:hover { color: var(--white); }

.flow {
  width: min(100% - 2 * var(--gutter), 720px);
  margin-inline: auto;
  padding: clamp(28px, 5vh, 56px) 0 96px;
}

.flow-top { display: flex; align-items: center; gap: 20px; min-height: 52px; margin-bottom: 28px; }

.flow-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 16px 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--petrol);
  cursor: pointer;
}
.flow-back:hover { background: var(--white); }
.flow-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.flow-progress { flex: 1; }
.flow-progress-text { font-size: var(--text-sm); font-weight: 700; color: var(--petrol-soft); }
.flow-progress-track { height: 8px; margin-top: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.flow-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--souffle), var(--petrol));
  transition: width .6s var(--ease-out);
}

.q-step.is-entering { animation: step-in .5s var(--ease-out) backwards; }
.q-step.is-entering[data-dir="back"] { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(36px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-36px); } }
/* Sur téléphone, le glissement reste dans la marge : la page ne déborde pas sur le côté */
@media (max-width: 640px) {
  @keyframes step-in { from { opacity: 0; transform: translateX(12px); } }
  @keyframes step-in-back { from { opacity: 0; transform: translateX(-12px); } }
}

.q-title {
  font-size: clamp(1.875rem, 1.35rem + 2vw, 2.75rem);
  line-height: 1.12;
}
.q-title:focus { outline: none; }
.q-hint { margin-top: 14px; color: var(--petrol-soft); font-size: var(--text-lg); max-width: 46ch; }
.q-hint strong[data-fill] { overflow-wrap: anywhere; }

/* Choix en tuiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles-list { grid-template-columns: 1fr; gap: 10px; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 168px;
  padding: 22px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-tile);
  background: var(--white);
  font-weight: 700;
  font-size: var(--text-base);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .25s var(--ease-out);
}
.tile input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.tile:hover { border-color: var(--souffle-ink); }
.tile:active { transform: scale(.985); }
.tile:has(input:checked) { border-color: var(--petrol); background: var(--frost); }
.tile:has(input:focus-visible) { outline: 3px solid var(--souffle-ink); outline-offset: 3px; }

.tile-icon {
  width: 64px; height: 64px;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-num {
  font-family: var(--font-ui);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
}
.tile-check {
  position: absolute;
  top: 12px; right: 12px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--petrol);
  transform: scale(0);
  transition: transform .3s var(--ease-out);
}
.tile-check svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tile:has(input:checked) .tile-check { transform: scale(1); }

.tiles-list .tile {
  flex-direction: row;
  justify-content: flex-start;
  min-height: 70px;
  padding: 16px 64px 16px 24px;
  text-align: left;
}
.tiles-list .tile-check { top: 50%; right: 18px; margin-top: -15px; }
.tile-lines { display: grid; gap: 2px; }
.tile-sub { font-weight: 400; font-size: var(--text-sm); color: var(--petrol-soft); }

.surface-rooms { margin-top: 30px; }
.surface-rooms .tiles { margin-top: 0; }
.surface-row { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); }
.surface-row:first-child { border-top: 0; padding-top: 0; }
/* La pièce oubliée est signalée en rouge */
.surface-row.is-missing legend { color: var(--error); }
.surface-row.is-missing .chip { border-color: var(--error); }
.surface-more { margin-top: 6px; }

@media (max-width: 620px) {
  .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 140px; }
}

/* Champs */
.fields { display: grid; gap: 22px; margin-top: 34px; }
.field { display: grid; gap: 8px; }
.field-label { font-weight: 700; font-size: 1.0625rem; }
.field-optional { font-weight: 400; color: var(--petrol-soft); }
.field-hint { font-size: var(--text-sm); color: var(--petrol-soft); }

.input {
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--white);
  font-size: 1.25rem;
  transition: border-color .2s, box-shadow .2s;
}
.input:hover { border-color: #9DBBBF; }
.input:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 4px rgb(47 176 198 / .25); }
.input[aria-invalid="true"] { border-color: var(--error); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.45; }
.input-cp { max-width: 220px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

.field-error, .q-error {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--error-bg);
  color: var(--error);
  font-weight: 700;
  font-size: var(--text-sm);
}
.field-error[hidden], .q-error[hidden] { display: none; }
.q-error { margin-top: 18px; }

/* Petits choix (pastilles) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip:hover { border-color: var(--souffle-ink); }
.chip:has(input:checked) { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--souffle-ink); outline-offset: 3px; }

.commune { margin-top: 4px; }
.commune:empty { display: none; }
.commune-status { color: var(--petrol-soft); font-size: var(--text-sm); }
.commune-found {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--frost);
  font-weight: 700;
}
.commune-found svg { width: 20px; height: 20px; fill: none; stroke: var(--petrol); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.privacy-note { font-size: var(--text-sm); color: var(--petrol-soft); }

.flow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }

/* Récapitulatif */
.recap {
  margin-top: 30px;
  border-radius: var(--radius-tile);
  background: var(--white);
  border: 2px solid var(--line);
}
.recap-row {
  display: grid;
  gap: 2px;
  padding: 16px 14px 16px 22px;
  border-top: 1px solid var(--line);
}
.recap-row:first-child { border-top: 0; }
.recap-row dt { font-size: var(--text-sm); color: var(--petrol-soft); }
.recap-row dd { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.recap-value { font-weight: 700; white-space: pre-line; overflow-wrap: anywhere; }
.recap-edit {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--souffle-ink);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.recap-edit:hover { background: var(--mist); color: var(--petrol); }
/* Sur téléphone, « Modifier » passe dessous quand la réponse est longue : elle garde toute la largeur */
@media (max-width: 480px) {
  .recap-row dd { flex-wrap: wrap; row-gap: 0; }
  .recap-edit { margin-left: auto; }
}

/* Confirmation */
.success { text-align: center; padding-top: clamp(8px, 4vh, 40px); }
.success .q-title { margin-top: 26px; }
.success .q-hint { margin-inline: auto; }
.success-mark { width: 132px; height: 132px; margin-inline: auto; overflow: visible; }
.success-ring { fill: var(--frost); stroke: var(--souffle-ink); stroke-width: 4; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.success-tick { fill: none; stroke: var(--petrol); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.success-wave { fill: none; stroke: var(--souffle); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-entering .success-ring { animation: draw .8s var(--ease-out) .1s forwards; }
.is-entering .success-tick { animation: draw .5s var(--ease-out) .65s forwards; }
.is-entering .success-wave { animation: wave 1.6s var(--ease-out) .7s; }
.is-entering .success-wave + .success-wave { animation-delay: 1s; }
.success-static .success-ring, .success-static .success-tick { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wave { 0% { opacity: .8; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.6); } }

.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
  text-align: center;
  counter-reset: none;
}
.journey li { position: relative; display: grid; justify-items: center; gap: 10px; font-size: var(--text-sm); font-weight: 700; color: var(--petrol-soft); }
.journey li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(-50% + 30px);
  right: calc(50% + 30px);
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.journey li:first-child::before { display: none; }
.journey li.is-done::before, .journey li.is-next::before { background: var(--souffle-ink); }
.journey-dot {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.125rem;
}
.journey-dot svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.journey li.is-done { color: var(--petrol); }
.journey li.is-done .journey-dot { background: var(--petrol); border-color: var(--petrol); }
.journey li.is-next { color: var(--petrol); }
.journey li.is-next .journey-dot { border-color: var(--petrol); background: var(--frost); color: var(--petrol); }

.success .flow-actions { justify-content: center; margin-top: 48px; }

@media (max-width: 560px) {
  .journey { grid-template-columns: 1fr; gap: 0; text-align: left; justify-items: start; }
  .journey li { grid-template-columns: 46px 1fr; align-items: center; justify-items: start; gap: 16px; padding-bottom: 18px; }
  .journey li::before { top: -18px; left: 21.5px; right: auto; width: 3px; height: 18px; }
  .journey li:first-child::before { display: none; }
}

/* ---------- Envoi du devis signé ---------- */

.upload { display: grid; gap: 14px; margin-top: 34px; }
.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 24px;
  border: 2.5px dashed #9DBBBF;
  border-radius: var(--radius-tile);
  background: var(--white);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--petrol); background: var(--frost); }
.dropzone:has(input:focus-visible) { outline: 3px solid var(--souffle-ink); outline-offset: 3px; }
.dropzone svg { width: 56px; height: 56px; margin-bottom: 6px; fill: none; stroke: var(--petrol); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dropzone-title { font-weight: 700; font-size: 1.25rem; }
.dropzone-sub { font-size: var(--text-sm); color: var(--petrol-soft); }

.camera-btn, .only-touch { display: none; }
@media (pointer: coarse) {
  .only-pointer { display: none; }
  .only-touch { display: inline; }
  .camera-btn { display: inline-flex; }
  .camera-btn:has(input:focus-visible) { outline: 3px solid var(--souffle-ink); outline-offset: 3px; }
}

.file-list { display: grid; gap: 10px; }
.file-list:empty { display: none; }
.file-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 10px 10px 10px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  animation: result-in .35s var(--ease-out);
}
.file-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--frost); }
.file-thumb-pdf { display: grid; place-items: center; font-family: var(--font-ui); font-weight: 800; font-size: .875rem; color: var(--petrol); }
/* Le nom s'affiche en entier, sur plusieurs lignes au besoin : la fin (« signé.pdf ») reste visible */
.file-name { overflow-wrap: anywhere; text-wrap: wrap; font-weight: 700; }
.file-size { font-size: .9375rem; color: var(--petrol-soft); }
.file-remove {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--error);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.file-remove:hover { background: var(--error-bg); }
/* Téléphone : le nom prend toute la largeur à côté de la vignette, « Retirer » passe dessous */
@media (max-width: 480px) {
  .file-item { grid-template-columns: 56px minmax(0, 1fr); }
  .file-thumb { grid-row: 1 / span 2; }
  .file-remove { grid-column: 2; justify-self: start; margin: -6px 0 0 -14px; }
}

.form-section { margin-top: 44px; }
.form-section > h2 { font-size: 1.5rem; margin-bottom: 4px; }

.alt-contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--petrol-soft); font-size: var(--text-sm); }

/* ---------- Téléphone ---------- */

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .section + .section { padding-top: 0; }

  /* Haut de page */
  .hero-sticky { padding-bottom: 8px; }
  .hero-title { font-size: clamp(2.375rem, 10.4vw, 3rem); }
  .hero-actions { align-items: stretch; }
  .btn-hero { justify-content: space-between; width: 100%; }
  .hero-bar { margin: 28px 16px 0; }
  .hero-bar-inner { padding: 20px 18px; }
  .hero-bar-list { gap: 18px 10px; align-items: start; }
  .hero-bar-list li { align-items: flex-start; }
  .hero-bar-list svg { width: 28px; height: 28px; margin-top: 2px; }
  .hero-bar-list strong { font-size: 1rem; }
  .hero-bar-list small { font-size: .9375rem; }

  /* Boutons pleine largeur, plus faciles à toucher */
  .steps-intro .btn, .flow-actions .btn, .cta-actions .btn { width: 100%; }

  /* Pourquoi DeWillers */
  .why-list { margin-top: 32px; }

  /* Parlons-en */
  .cta-air { display: none; }
  .cta-text { padding: 8px 22px 30px; gap: 18px; }
  .phone-link.is-large strong { font-size: clamp(1.25rem, 8vw, 1.875rem); }
  .phone-link.is-large small { font-size: .9375rem; }
  .cta-actions { flex-direction: column; align-items: stretch; text-align: center; }

  /* Questions */
  .faq-item summary { padding: 20px 0; font-size: 1.125rem; }

  /* Parcours devis */
  .flow { padding-top: 20px; }
  .flow-top { margin-bottom: 20px; }
  .surface-row { padding: 20px 0 4px; border-top: 1px solid var(--line); }
  .surface-row:first-child { border-top: 0; padding-top: 0; }
  .surface-row legend { float: left; width: 100%; margin-bottom: 10px; }
  .surface-row .chips { clear: both; }
}

/* ---------- Impression ----------
   Le navigateur n'imprime pas les fonds : les textes clairs sur fond foncé passent en foncé, l'en-tête
   s'imprime une seule fois (sans ses boutons), la bande vidéo et les photos décoratives ne s'impriment pas. */

@media print {
  .skip-link, .main-nav, .header-actions, .promo-cta, .hero-media, .hero-discover, .cta-air, .cta-photo { display: none !important; }
  .site-header, .site-header.is-overlay { position: static !important; top: auto !important; }
  .promo-bar { color: var(--petrol); border-bottom: 1px solid var(--line); }
  .promo-bar del { color: var(--petrol-soft); }
  .promo-tag { border: 1px solid currentColor; }
  .scroll-hero .hero { height: auto; }
  .hero-sticky { position: static; display: block; height: auto; min-height: 0; padding: 24px 0; overflow: visible; }
  .hero-bar, .scroll-hero .hero-bar { position: static; margin: 32px 0 0; opacity: 1; transform: none; color: var(--petrol); }
  .scroll-hero .hero-bar-list li { opacity: 1; visibility: visible; transform: none; filter: none; }
  .hero-bar-list svg { stroke: currentColor; }
  .hero-bar-list small { color: var(--petrol-soft); }
  .hero.is-compact .hero-extra { max-height: none; opacity: 1; filter: none; visibility: visible; }
  .hero.is-compact .hero-title { margin-top: 16px; }
  .hero.is-compact .hero-lead { margin-top: 18px; }
  .hero.is-compact .hero-actions { gap: 20px; }
  .cta-panel { border: 2px solid var(--line); color: var(--petrol); }
  .cta-lead, .cta-note, .phone-link.is-light, .phone-link.is-light small { color: var(--petrol); }
  .phone-link.is-light svg { stroke: var(--petrol); }
  .site-footer { color: var(--petrol-soft); }
  .footer-nav a, .footer-contact a, .footer-legal a { color: var(--petrol); }
  .btn-primary, .btn-light { color: var(--petrol); border-color: currentColor; box-shadow: none; }
  .step, .model, .why-list li, .cta-panel { break-inside: avoid; }
  /* Les dessins des deux puissances apparaissent à l'écran en arrivant dessus : à l'impression, toujours */
  .js .model .model-illu { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Réduire les animations ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* Animé, sur ordinateur : à l'arrivée, l'en-tête brun ne descend jamais sur le haut du climatiseur
   (qui est à 46 px + 6,98 % de la largeur quand la vidéo est calée sur la largeur) : 4 px d'écart au moins */
@media (min-width: 1101px) {
  .scroll-hero .is-overlay:not(.is-scrolled) .header-inner { min-height: calc(var(--header-h) + clamp(0px, 6.98vw - 80px, 18px)); }
}

/* Sans animation, fenêtre basse pour la taille du texte (texte agrandi dans le navigateur ; à 16 px, 520 px de haut au plus) :
   les marges se resserrent, puis le hero s'allonge, plutôt que de glisser le bouton devis ou le téléphone sous la barre */
@media (min-width: 1101px) and (max-height: 32.5em) {
  html:not(.scroll-hero) .promo-bar ~ main .hero-sticky {
    height: auto;
    min-height: max(calc(100svh - var(--promo-h)), calc(620px - var(--promo-h)));
    padding-top: calc(var(--header-h) + 30px);
    padding-bottom: calc(var(--bar-h) + 12px);
  }
}

/* ---------- Assistant des clients (« Une question ? », assets/js/aide.js) ----------
   Un bouton discret en bas à droite, qui ne s'ouvre jamais seul. Sur l'accueil, il attend la fin
   de la tête de page. */
.aide-open {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  border: 2px solid var(--petrol); border-radius: 999px; background: var(--white); color: var(--petrol);
  font-family: var(--font-ui); font-size: 1.0625rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 30px -16px rgb(28 36 48 / .55);
  transition: opacity .3s, transform .3s var(--ease-out), visibility 0s;
}
.aide-open:hover { background: var(--frost); }
.aide-open svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.aide-open.is-away { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
@media (max-width: 640px) {
  .aide-open { right: 14px; bottom: 14px; min-height: 48px; padding: 0 16px 0 13px; font-size: 1rem; }
  body:has(.aide-open) .site-footer { padding-bottom: 72px; }
  .flow-body:has(.aide-open) .flow { padding-bottom: 120px; }
}
.aide {
  width: min(100%, 520px); max-width: 100%; height: min(84vh, 680px); max-height: 100%;
  margin: auto auto 0; padding: 0; border: 0; border-radius: 18px 18px 0 0;
  background: var(--mist); color: var(--petrol); box-shadow: 0 -18px 50px -24px rgb(28 36 48 / .55);
}
.aide[open] { display: flex; flex-direction: column; }
.aide::backdrop { background: rgb(28 36 48 / .45); }
@media (min-width: 700px) { .aide { margin: auto 24px 24px auto; border-radius: 18px; } }
.aide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 18px; background: var(--noyer); color: var(--lin); border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.aide-title { font-family: var(--font-ui); font-size: 1.1875rem; font-weight: 700; }
.aide-sub { margin-top: 2px; color: var(--lin-soft); font-size: .9375rem; }
.aide-sub a { color: var(--lin); font-weight: 700; white-space: nowrap; }
.aide-close { flex: none; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid rgb(244 238 231 / .4); border-radius: 999px; background: none; color: var(--lin); font-family: var(--font-ui); font-weight: 700; cursor: pointer; }
.aide-head :focus-visible { outline-color: var(--lin); }
.aide-log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow-y: auto; }
.aide-msg { max-width: 90%; padding: 12px 16px; border-radius: 16px; font-size: 1.0625rem; line-height: 1.5; white-space: pre-line; }
.aide-msg.is-bot { align-self: flex-start; border: 1px solid var(--line); border-top-left-radius: 4px; background: var(--white); }
.aide-msg.is-me { align-self: flex-end; border-top-right-radius: 4px; background: var(--petrol); color: var(--white); }
.aide-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; white-space: normal; }
.aide-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--petrol); border-radius: 999px; color: var(--petrol); font-family: var(--font-ui); font-weight: 700; text-decoration: none; }
.aide-link:hover { background: var(--frost); color: var(--petrol); }
.aide-suggest { display: flex; gap: 8px; padding: 12px 18px; overflow-x: auto; border-top: 1px solid var(--line); background: var(--white); scrollbar-width: thin; }
.aide-suggest button { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--mist); color: var(--petrol); font-family: var(--font-ui); font-size: .9375rem; font-weight: 600; cursor: pointer; }
.aide-suggest button:hover { border-color: var(--petrol); }
.aide-form { display: flex; gap: 8px; padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--white); }
.aide-form .input { flex: 1; min-width: 0; min-height: 50px; }
.aide-form .btn { flex: none; min-height: 50px; padding: 0 20px; }
@media (prefers-reduced-motion: reduce) { .aide-open { transition: none; } }
@media print { .aide-open, .aide { display: none !important; } }

/* Demande de devis : ancien climatiseur à enlever */
.ancien-choices { margin-top: 30px; }
.ancien-choices .tiles { margin-top: 0; }
