/* =============================================================================
   SECTIONS
   ========================================================================== */

/* --- 1. HEADER FIXE -------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px -18px rgba(18,41,58,.5);
}
.header__in {
  display: flex;
  align-items: center;
  gap: clamp(.45rem, 1vw, 1rem);
  height: var(--header-h);
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}
.nav { margin-inline: auto; }
.nav__list { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: block;
  padding: .55rem clamp(.48rem, .1rem + .42vw, .95rem);
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: var(--t-nav);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: clamp(.48rem, .1rem + .42vw, .95rem); right: clamp(.48rem, .1rem + .42vw, .95rem); bottom: .3rem;
  height: 2px; border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current='true'] { color: var(--navy-900); }
.nav__link:hover::after, .nav__link[aria-current='true']::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.header__cta { white-space: nowrap; padding-inline: clamp(1rem, .28rem + .5vw, 1.7rem); font-size: var(--t-nav); }
.header__tel {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem clamp(.45rem, .1rem + .38vw, .9rem);
  border-radius: var(--r-pill);
  color: var(--navy-800);
  font-size: var(--t-nav);
  font-weight: 700;
  text-decoration: none;
  /* Le numéro ne doit jamais se couper : sa césure déformait toute la barre. */
  white-space: nowrap;
  transition: background var(--dur) var(--ease-out);
}
.header__tel:hover { background: var(--ice-50); color: var(--navy-900); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.7);
  padding: 0;
  place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--navy-800);
  transition: transform var(--dur) var(--ease-spring), opacity var(--dur-fast);
}
.burger span::before, .burger span::after { content: ''; position: absolute; }
.burger span::before { transform: translateY(-6px); }
.burger span::after  { transform: translateY(6px); }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { transform: rotate(45deg); }
.burger[aria-expanded='true'] span::after  { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  padding: 1rem var(--shell-pad) 1.6rem;
  display: grid;
  gap: .2rem;
  transform: translateY(-14px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease-out);
}
.mobile-menu[data-open='true'] { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a {
  padding: .9rem .4rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu a:last-of-type { border-bottom: 0; }

@media (max-width: 1120px) {
  /* Sous cette largeur, le numéro passe en icône seule : il reste cliquable
     et la barre garde ses libellés de navigation intacts. */
  .header__tel span { display: none; }
  .header__tel { padding-inline: .6rem; }
}
@media (max-width: 980px) {
  .nav, .header__tel, .header__cta { display: none; }
  .burger { display: grid; margin-left: auto; }
}

/* --- Barre d'action mobile fixe -------------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: none;
  gap: .6rem;
  padding: .7rem var(--shell-pad);
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -22px rgba(18,41,58,.65);
}
.mobile-bar .btn { flex: 1; padding-inline: .6rem; }
@media (max-width: 980px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 80px; }
}

/* --- 2. HERO --------------------------------------------------------------- */
.hero {
  position: relative;
  /* Pas de `overflow: hidden` ici : cet élément porte aussi la coquille
     centrée, et il rognerait le débord du visuel au bord de celle-ci.
     Le décor animé est déjà contenu par .hero__media, et body porte
     overflow-x: hidden contre toute barre de défilement horizontale. */
  padding-block: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: center;
}
.hero__title { margin-bottom: .55rem; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(104deg, var(--steel-500), var(--sky-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { font-size: var(--t-lg); color: var(--ink-soft); max-width: 54ch; margin-bottom: 1.5rem; }
.hero .badge--light { margin-bottom: 1.1rem; }

/* Visuel principal + parallaxe douce */
.hero__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--grad-deep);
  box-shadow: var(--sh-lg);
  isolation: isolate;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(190deg, transparent 38%, rgba(9,22,32,.68) 100%);
  pointer-events: none;
}
/* Décor d'attente : flux d'air stylisé, tant qu'aucune photo n'est fournie. */
.hero__media[data-empty='true']::before {
  content: '';
  position: absolute; inset: -20%;
  background:
    radial-gradient(28rem 20rem at 24% 18%, rgba(168,207,224,.36), transparent 62%),
    radial-gradient(24rem 18rem at 78% 74%, rgba(62,123,155,.44), transparent 60%),
    repeating-linear-gradient(118deg, rgba(255,255,255,.055) 0 2px, transparent 2px 26px);
  animation: drift 26s linear infinite;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to   { transform: translate3d(-4%, -3%, 0) rotate(3deg); }
}
.hero__media-note {
  position: absolute; inset: auto 1.3rem 1.3rem;
  z-index: 2;
  color: #EAF4F8;
  font-size: var(--t-sm);
}
.hero__media-note strong { display: block; font-family: var(--font-title); font-size: var(--t-lg); color: #fff; }
.hero__parallax { will-change: transform; transition: transform 120ms linear; }

/* Module « Quel est votre besoin ? » */
.need {
  margin-top: 1.9rem;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 3 / 2; order: -1; }
}

/* --- 3. BANDEAU SAISONNIER / MÉTÉO ----------------------------------------- */
.season { padding-block: 0; margin-top: calc(var(--gap-lg) * -.2); }
.season__card {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  padding: 1.05rem 1.35rem;
  border-radius: var(--r-lg);
  background: linear-gradient(112deg, var(--navy-800), var(--navy-700) 58%, var(--steel-500));
  color: #E9F4F8;
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.season__card::before {
  content: '';
  position: absolute; inset: -60% 55% -60% -10%;
  background: radial-gradient(closest-side, rgba(168,207,224,.30), transparent);
  pointer-events: none;
}
.season__icon {
  flex: none; width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
}
.season__body { flex: 1 1 22rem; position: relative; }
.season__msg { font-family: var(--font-title); font-size: var(--t-xl); color: #fff; line-height: 1.22; margin: 0 0 .2rem; }
.season__sub { font-size: var(--t-sm); color: #C3DDE8; margin: 0; }
.season__actions { display: flex; gap: .55rem; flex-wrap: wrap; position: relative; }
.season__geo {
  background: none; border: 0; padding: 0;
  color: var(--sky-200); font-size: var(--t-xs); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.season__geo:hover { color: #fff; }
.season.is-loading .season__msg { opacity: .55; }
.season[data-tone='heat']  .season__icon { background: rgba(230,160,80,.24); border-color: rgba(230,160,80,.4); }
.season[data-tone='cold']  .season__icon { background: rgba(168,207,224,.26); }
.season[data-tone='urgent'] .season__card { background: linear-gradient(112deg, #7A3B10, #A9541A 56%, var(--ember-500)); }

/* --- 4. SERVICES ----------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(15rem, 27vw, 19rem), 1fr));
  gap: var(--gap-md);
}
.service { display: grid; align-content: start; gap: .85rem; }
.service h3 { margin: 0; }
.service p { font-size: var(--t-sm); color: var(--ink-soft); margin: 0; }
.service__list { list-style: none; padding: 0; margin: .1rem 0 0; display: grid; gap: .35rem; }
.service__list li { display: flex; align-items: flex-start; gap: .5rem; font-size: var(--t-sm); color: var(--ink-soft); margin: 0; }
.service__list svg { flex: none; color: var(--steel-500); margin-top: .35em; }
.service__cta {
  margin-top: .4rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--t-sm); font-weight: 700;
  color: var(--steel-500); text-decoration: none;
}
.service__cta svg { transition: transform var(--dur) var(--ease-spring); }
.service:hover .service__cta svg, .service__cta:hover svg { transform: translateX(4px); }

/* --- 5. DIAGNOSTIC / ESTIMATEUR -------------------------------------------- */
.diag { position: relative; }

.diag__step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.diag__nav .btn--ghost { margin-right: auto; }

/* --- 6. INDICATEURS DE CONFIANCE ------------------------------------------- */
.trust { position: relative; }
.trust__panel {
  padding: clamp(1.8rem, 3.6vw, 3.2rem);
  border-radius: var(--r-xl);
  background: var(--grad-deep);
  color: #E9F4F8;
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.trust__panel::before {
  content: '';
  position: absolute; inset: -40% -10% auto -10%; height: 90%;
  background: radial-gradient(closest-side, rgba(62,123,155,.5), transparent 72%);
  pointer-events: none;
}
.trust__panel h2 { color: #fff; }
.trust__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1.1rem, 2.4vw, 2rem);
}
.stat { position: relative; padding-left: 1.1rem; border-left: 2px solid rgba(168,207,224,.3); }
.stat__value {
  display: flex; align-items: baseline; gap: .1rem;
  font-family: var(--font-title);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__suffix { font-size: .52em; color: var(--sky-200); }
.stat__label { font-size: var(--t-sm); color: #B9D6E3; margin-top: .45rem; }
.stat .todo { background: rgba(255,255,255,.1); border-color: rgba(168,207,224,.42); color: #D8EBF3; }

.trust__certs { position: relative; margin-top: var(--gap-lg); padding-top: var(--gap-md); border-top: 1px solid rgba(255,255,255,.14); }
.trust__certs h3 { color: #fff; font-size: var(--t-lg); margin-bottom: .9rem; }
.cert-list { display: flex; flex-wrap: wrap; gap: .8rem; list-style: none; padding: 0; margin: 0; }
.cert-list li { margin: 0; }
.cert {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.93);
  box-shadow: var(--sh-sm);
  color: var(--navy-800);
  font-size: var(--t-sm); font-weight: 600;
  text-decoration: none;
}
.cert img { height: 26px; width: auto; background: none; }

.why { margin-top: var(--gap-xl); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: var(--gap-md);
}
.why__item { display: grid; gap: .5rem; align-content: start; }
.why__num {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #fff;
  font-size: var(--t-sm); font-weight: 700;
  box-shadow: var(--sh-sm);
}
/* Ces titres étaient des <h4> directement sous un <h2> : un niveau sautait, ce
   qui casse la navigation par titres des lecteurs d'écran. Passés en <h3>, ils
   conservent ici exactement leur taille d'origine. */
.why__item h3 { margin: 0; font-size: var(--t-base); }
.why__item p { margin: 0; font-size: var(--t-sm); color: var(--ink-soft); }

/* --- 7. GALERIE ------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--gap-md); }
.gallery__grid {
  display: grid;
  /* Trois colonnes au maximum : la galerie doit tenir en deux lignes de trois.
     Avec `auto-fill`, la coquille élargie faisait apparaître une quatrième puis
     une cinquième colonne, et les six visuels se réorganisaient en 5 + 1. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-md);
}
/* Seuils relevés sur le comportement automatique précédent, puis figés : il
   basculait à 3 → 2 colonnes sous 821 px, et à 2 → 1 sous 546 px. */
@media (max-width: 820px) { .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 545px) { .gallery__grid { grid-template-columns: minmax(0, 1fr); } }
.work {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.work:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.work[hidden] { display: none; }
.work__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.work:hover .work__media img { transform: scale(1.06); }
.work__open {
  position: absolute; inset: 0;
  border: 0; background: linear-gradient(180deg, transparent 52%, rgba(9,22,32,.55));
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
  display: grid; place-items: end start; padding: 1rem;
  color: #fff; font-size: var(--t-sm); font-weight: 700;
}
.work:hover .work__open, .work__open:focus-visible { opacity: 1; }
.work__tag {
  position: absolute; top: .8rem; left: .8rem;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.92);
  font-size: var(--t-xs); font-weight: 700; color: var(--navy-800);
  backdrop-filter: blur(6px);
}
.work__body { padding: 1.1rem 1.2rem 1.25rem; display: grid; gap: .45rem; align-content: start; }
.work__body h3 { margin: 0; font-size: var(--t-lg); }
.work__where { font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel-500); }
.work__body p { margin: 0; font-size: var(--t-sm); color: var(--ink-soft); }
.work__body .service__cta { margin-top: .3rem; }

/* Comparateur avant / après */
.ba { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); touch-action: pan-y; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 3px; margin-left: -1.5px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(9,22,32,.18), 0 0 22px rgba(9,22,32,.35);
  cursor: ew-resize;
}
.ba__grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  box-shadow: var(--sh-md);
  color: var(--navy-800);
}
.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: none;
}
.ba__range:focus-visible ~ .ba__handle { box-shadow: 0 0 0 3px var(--steel-500); }
.ba__label {
  position: absolute; bottom: .9rem;
  padding: .3rem .8rem; border-radius: var(--r-pill);
  background: rgba(9,22,32,.62); color: #fff;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.ba__label--before { left: .9rem; }
.ba__label--after  { right: .9rem; }

/* --- 8. CARTE ZONE D'INTERVENTION ------------------------------------------ */
.zone__layout {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: var(--gap-md);
  align-items: start;
}
.zone__aside { display: grid; gap: var(--gap-md); }
.zone__legend { display: grid; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.zone__legend li { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: var(--t-sm); color: var(--ink-soft); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.75); }
.dot--today { background: var(--leaf-600); }
.dot--h24   { background: var(--steel-500); }
.dot--h48   { background: var(--sky-200); }
.zone__cities { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; max-height: 13rem; overflow-y: auto; }
.zone__cities li { margin: 0; }
.zone__city {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .8rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  font-size: var(--t-xs); font-weight: 600; color: var(--ink-soft);
}
.zone__map {
  position: sticky;
  top: calc(var(--header-h) + 1.2rem);
  min-height: clamp(22rem, 58vh, 34rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  background: linear-gradient(150deg, var(--ice-50), #fff);
}
.zone__map .leaflet-container { height: 100%; width: 100%; font-family: var(--font-body); }
.zone__mapState {
  position: absolute; inset: 0;
  display: grid; place-items: center; gap: .6rem;
  padding: 1.6rem; text-align: center;
  color: var(--ink-soft); font-size: var(--t-sm);
}
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgba(62,123,155,.25);
  border-top-color: var(--steel-500);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .zone__layout { grid-template-columns: 1fr; } }

/* --- 9. AVIS --------------------------------------------------------------- */
.reviews__head { display: flex; flex-wrap: wrap; gap: 1rem var(--gap-lg); align-items: flex-end; justify-content: space-between; margin-bottom: var(--gap-lg); }
.reviews__score { display: flex; align-items: center; gap: .9rem; }
.reviews__avg { font-family: var(--font-title); font-size: var(--t-2xl); color: var(--navy-900); line-height: 1; }
.reviews__track {
  display: flex; gap: var(--gap-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--shell-pad);
  padding-block: .4rem 1.2rem;
  margin-inline: calc(var(--shell-pad) * -1);
  padding-inline: var(--shell-pad);
  /* Pas de barre de défilement visible : sur un écran large, son curseur
     s'étirait sur presque toute la largeur et se lisait comme une ligne de
     progression posée sous les avis. Le défilement reste entier — flèches
     précédent / suivant, glissement tactile, et flèches du clavier une fois la
     liste atteinte au clavier (elle porte tabindex="0"). */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(23rem, 82vw);
  scroll-snap-align: start;
  display: grid; gap: .9rem; align-content: start;
}
.review__quote {
  font-family: var(--font-quote);
  font-size: var(--t-lg);
  line-height: 1.52;
  color: var(--navy-800);
  margin: 0;
  quotes: '«\00A0' '\00A0»';
}
.review__quote::before { content: open-quote; color: var(--sky-200); }
.review__quote::after  { content: close-quote; color: var(--sky-200); }
.review__author { display: grid; gap: .1rem; font-size: var(--t-sm); }
.review__author strong { color: var(--navy-900); }
.review__author span { color: var(--muted); font-size: var(--t-xs); }
.reviews__controls { display: flex; gap: .5rem; }
.reviews__controls button {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.8); color: var(--navy-800);
  transition: all var(--dur) var(--ease-out);
}
.reviews__controls button:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.reviews__controls button[disabled] { opacity: .35; cursor: not-allowed; }

/* --- 10. FAQ --------------------------------------------------------------- */
.faq__layout { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: var(--gap-lg); align-items: start; }
/* La colonne des réponses suit la largeur de la coquille. Sur un grand écran
   elle dépasserait 1400 px : l'œil perd la ligne suivante en revenant à la
   gauche. La question, elle, occupe toute la largeur du bandeau cliquable. */
.acc__inner > div { max-width: 78ch; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 1.4rem); }
@media (max-width: 900px) { .faq__layout { grid-template-columns: 1fr; } .faq__aside { position: static; } }

/* --- 11. CONVERSION FINALE ------------------------------------------------- */
.final { position: relative; }
.final__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 4.4rem) clamp(1.4rem, 4vw, 3.6rem);
  border-radius: var(--r-xl);
  background: var(--grad-deep);
  color: #E9F4F8;
  box-shadow: var(--sh-lg);
  text-align: center;
}
.final__panel::before {
  content: '';
  position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(62,123,155,.55), transparent 70%);
  pointer-events: none;
}
.final__panel > * { position: relative; }
.final__panel h2 { color: #fff; max-width: 26ch; margin-inline: auto; }
.final__panel p { color: #C3DDE8; font-size: var(--t-lg); max-width: 54ch; margin-inline: auto; }
.final .cta-group { justify-content: center; margin-top: 1.7rem; }
.final__note { font-size: var(--t-sm); color: #9EC3D4; margin-top: 1.1rem; }

/* --- 12. FOOTER ------------------------------------------------------------ */
.footer { background: #0D2130; color: #B9D6E3; padding-block: var(--gap-xl) var(--gap-lg); margin-top: var(--section-y); }
.footer a { color: #DCEEF4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

/* « Gestion des cookies » ouvre un panneau : c'est une commande, pas un lien.
   Passé en <button> pour être correctement annoncé, il reprend exactement
   l'apparence de ses voisins — aucune différence visible. */
.footer__bottom nav button {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #DCEEF4;
  text-decoration: none;
  line-height: inherit;
}
.footer__bottom nav button:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid;
  /* La colonne de contact reçoit une largeur minimale propre : ses lignes
     doivent tenir d'un seul tenant. L'adresse, la plus longue, réclame 329 px ;
     on prévoit 21 rem. Avec `auto-fit` toutes les colonnes partageaient le même
     minimum de 11 rem, d'où l'e-mail et l'adresse coupés en deux. */
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(7rem, .75fr)
    minmax(7rem, .75fr)
    minmax(21rem, 1.05fr);
  gap: var(--gap-lg);
}
.footer h3 { color: #fff; font-size: var(--t-base); margin-bottom: .9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: var(--t-sm); }
.footer li { margin: 0; }
.footer__about p { font-size: var(--t-sm); max-width: 34ch; margin-top: 1rem; }
/* Une coordonnée se lit d'un bloc : un numéro ou une adresse coupés en deux
   se recopient mal et se retiennent moins bien. */
.footer__contact li { display: flex; align-items: flex-start; gap: .55rem; white-space: nowrap; }
.footer__contact svg { flex: none; color: var(--sky-200); margin-top: .3em; }
.footer__social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  transition: all var(--dur) var(--ease-out);
}
.footer__social a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center;
  margin-top: var(--gap-lg); padding-top: var(--gap-md);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--t-xs);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-left: auto; }

/* --- Bandeau cookies / consentement ----------------------------------------
   Barre pleine largeur ancrée en bas de l'écran. Sur un écran large, le texte
   occupe la gauche et les trois boutons la droite : la barre reste basse, la
   page reste lisible derrière, et le choix est au même endroit pour tout le
   monde. En dessous de 980 px, tout s'empile. */
.consent {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 150;
  background: var(--white);
  border-top: 1px solid var(--line);
  /* Ombre projetée vers le haut : la barre se détache du contenu qu'elle
     recouvre sans avoir besoin d'un voile sur toute la page. */
  box-shadow: 0 -10px 30px rgba(18, 41, 58, .10);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(100%);
  opacity: 0; visibility: hidden;
  /* La barre ne dépasse jamais de l'écran : au besoin, son contenu défile.
     Le défilement est posé ici et non sur le détail déplié : Chromium
     interpose dans un <details> une boîte de contenu qui rogne l'intérieur
     sans le rendre défilant. */
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* `visibility` est une propriété discrète : déclarée dans une transition de
     280 ms, elle bascule à mi-parcours. Le panneau restait donc infocusable au
     moment où le script y place le focus, et le clavier continuait de naviguer
     dans le pied de page. On la dissocie par sens : instantanée à l'ouverture,
     différée à la fermeture pour ne pas escamoter le fondu. */
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out),
              visibility 0s linear var(--dur);
}
.consent[data-open='true'] {
  transform: none; opacity: 1; visibility: visible;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out),
              visibility 0s;
}

/* Contenu aligné sur la grille du site, comme l'en-tête et le pied de page. */
.consent__in {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.6rem);
  max-width: var(--shell);
  margin-inline: auto;
  padding: .95rem var(--shell-pad);
}
.consent__txt { flex: 1 1 auto; min-width: 0; }

.consent h3 { font-size: var(--t-base); margin-bottom: .25rem; }
.consent p { font-size: var(--t-sm); color: var(--ink-soft); margin-bottom: 0; }
/* Le détail des services, replié. Un consentement ne vaut que si on sait à quoi
   on consent — mais un bandeau qui déballe tout d'entrée ne se lit pas. Le
   `details` natif règle les deux : fermé par défaut, ouvrable au clavier. */
.consent__detail { margin-top: .15rem; }
.consent__detail > summary {
  display: inline-block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  /* Cible d'au moins 24 px de haut : le seul libellé serait trop bas. */
  padding: .2rem 0;
  list-style: none;
}
.consent__detail > summary::-webkit-details-marker { display: none; }
/* Le soulignement porte sur le libellé seul, pour ne pas barrer le chevron. */
.consent__detail > summary > span { text-decoration: underline; text-underline-offset: 3px; }
/* Ce chevron dit ce que le marqueur natif dirait : cela s'ouvre ici, cela ne
   quitte pas la page — ce qui le distingue du bouton « En savoir plus », qui,
   lui, mène ailleurs. */
.consent__detail > summary::after {
  content: '';
  display: inline-block;
  width: .38em; height: .38em;
  margin-left: .5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-.14em) rotate(45deg);
  transition: transform var(--dur) var(--ease-out);
}
.consent__detail[open] > summary::after { transform: translateY(.1em) rotate(-135deg); }
.consent__detail > summary:hover { color: var(--navy-900); }
.consent__detail[open] > summary { margin-bottom: .4rem; }

/* Les deux services sont nommés un par un. Sur une barre large, ils tiennent
   côte à côte ; sinon ils s'empilent d'eux-mêmes. */
.consent__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: .45rem clamp(1rem, 2.5vw, 2.4rem);
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.consent__liste li { padding-left: .85rem; position: relative; }
.consent__liste li::before {
  content: '';
  position: absolute;
  left: 0; top: .52em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--steel-500, var(--muted));
}
.consent__liste strong { color: var(--navy-900); font-weight: 600; }

/* Les boutons ne se compriment pas : ils sont la raison d'être de la barre. */
.consent .cta-group {
  gap: .45rem;
  flex: 0 0 auto;
  justify-content: flex-end;
}

/* Écrans étroits : tout s'empile, et la barre se place au-dessus de la barre
   d'actions fixe qui occupe déjà le bas. */
@media (max-width: 980px) {
  .consent {
    /* `--mobile-bar-h` est mesuré au chargement par modules/consent.js : la
       hauteur de la barre d'actions dépend du texte de ses boutons. La valeur
       de repli sert le temps que le script s'exécute. */
    bottom: var(--mobile-bar-h, calc(env(safe-area-inset-bottom, 0px) + 78px));
    padding-bottom: 0;
    max-height: calc(100vh - var(--mobile-bar-h, 78px) - 1rem);
    max-height: calc(100dvh - var(--mobile-bar-h, 78px) - 1rem);
  }
  .consent__in {
    display: block;
    padding-block: .9rem 0;
  }
  .consent__txt { margin-bottom: .8rem; }
  /* Collés en bas de la zone de défilement : quelle que soit la hauteur
     d'écran, les trois boutons sont là, à la même place. Le fond opaque masque
     le texte qui défile derrière. */
  .consent .cta-group {
    position: sticky;
    bottom: 0;
    background: var(--white);
    padding-block: .5rem .9rem;
    justify-content: flex-start;
  }
  /* Fondu au-dessus des boutons : une ligne coupée net ressemble à un défaut,
     une ligne qui s'efface dit qu'il y a une suite. Invisible quand le texte
     tient entièrement, le dégradé étant blanc sur blanc. */
  .consent .cta-group::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 100%;
    height: 1.5rem;
    background: linear-gradient(to top, var(--white), rgba(255, 255, 255, 0));
    pointer-events: none;
  }
}

/* --- Pages légales --------------------------------------------------------- */
.legal { max-width: 56rem; }
.legal h2 { font-size: var(--t-xl); margin-top: 2.2rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal dl { display: grid; gap: .5rem; margin: 0 0 1.4rem; }
.legal dt { font-weight: 700; color: var(--navy-800); }
.legal dd { margin: 0 0 .6rem; color: var(--ink-soft); }

/* --- Visuel d'illustration vs chantier documenté --------------------------- */
.work__where--illus { color: var(--muted); font-weight: 600; }
.work__media[data-missing='true'] {
  background:
    radial-gradient(18rem 12rem at 26% 22%, rgba(168,207,224,.55), transparent 62%),
    linear-gradient(150deg, var(--ice-50), #fff);
  display: grid; place-items: center;
}
.work__missing {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--steel-500);
  padding: .45rem .9rem; border-radius: var(--r-pill);
  border: 1px dashed var(--steel-300); background: rgba(255,255,255,.75);
}

/* Visuel de hero absent : le décor animé reprend la main (voir hero__media). */
.hero__media img[data-missing='true'] { display: none; }

/* --- Ajustements de lisibilité --------------------------------------------- */
/* Contraste du texte posé sur le visuel de la hero. */
.hero__media::after {
  background: linear-gradient(190deg, transparent 50%, rgba(9,22,32,.26) 72%, rgba(9,22,32,.80) 100%);
}
.hero__media-note { text-shadow: 0 1px 12px rgba(9,22,32,.55); }
@media (max-width: 900px) {
  .hero__media-note { font-size: var(--t-xs); }
  .hero__media-note strong { font-size: var(--t-base); }
}

/* --- Légende des délais : le rayon sous le libellé ------------------------- */
.zone__legend li { align-items: flex-start; }
.zone__legend strong { display: block; color: var(--navy-800); font-size: var(--t-sm); font-weight: 700; }
.zone__radius { display: block; color: var(--muted); font-size: var(--t-xs); }
.zone__legend .dot { margin-top: .4em; }

/* --- Bandeau déroulant des références --------------------------------------
   La piste est dupliquée puis translatée de -50 % : à l'instant où l'animation
   boucle, le doublon occupe exactement la position de départ de l'original, ce
   qui rend le raccord invisible.
   -------------------------------------------------------------------------- */
.references { padding-block: calc(var(--section-y) * .7); }
.references .section-head { margin-bottom: var(--gap-md); }

.marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  /* Les extrémités s'estompent : le défilement semble venir de plus loin. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.7rem);
  padding-inline: clamp(1.1rem, 2.5vw, 2.25rem);
  flex: none;
}
.is-animated .marquee__track { animation: marquee var(--marquee-duration, 30s) linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Sans animation, le bandeau redevient une rangée que l'on fait défiler. */
.is-static .marquee {
  overflow-x: auto;
  -webkit-mask-image: none;
  mask-image: none;
  scrollbar-width: thin;
}

/* Chaque référence est posée sur une tuile blanche : les logos fournis ont des
   fonds hétérogènes — transparent, blanc, JPEG opaque — et la tuile les fait
   cohabiter sans halo ni rectangle disgracieux. */
.client {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(11rem, 16vw, 13.5rem);
  height: 96px;
  padding: 1rem 1.3rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.client:hover, .client:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: rgba(62,123,155,.3);
}
.client__logo {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.client__name {
  font-family: var(--font-title);
  font-size: clamp(1rem, .92rem + .4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--navy-800);
  text-align: center;
  line-height: 1.2;
  text-wrap: balance;
}

@media (max-width: 560px) {
  .client { width: 10rem; height: 86px; padding: .85rem 1rem; }
  .client__logo { max-height: 48px; }
}

/* Les prestations d'entretien et de dépannage se déclenchent par téléphone :
   le lien affiche le numéro, pas une flèche de navigation. */
.service__cta--tel svg { transform: none; }
.service__cta--tel:hover svg { transform: none; }
.service:hover .service__cta--tel svg { transform: none; }

/* --- Visuel de la hero en débord ---------------------------------------------
   Sur grand écran, le visuel dépasse la coquille pour rejoindre le bord droit
   de la fenêtre. L'image gagne en surface sans que la colonne de texte ait à
   se réduire, et le cadrage devient nettement plus immersif.

   Le calcul ramène la marge négative à la distance entre le bord de contenu de
   la coquille et celui de la fenêtre : la moitié de ce qui dépasse la largeur
   maximale, plus le rembourrage latéral. Sous la largeur de coquille, la
   première part vaut zéro et seul le rembourrage est repris.
   -------------------------------------------------------------------------- */
@media (min-width: 1000px) {
  .hero__media {
    margin-right: calc(((100vw - min(100vw, var(--shell))) / -2) - var(--shell-pad));
    border-radius: var(--r-xl) 0 0 var(--r-xl);
  }
}

/* --- Provenance et date d'un avis ------------------------------------------- */
.review__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem .55rem;
  margin-top: .3rem;
  font-size: var(--t-xs);
  color: var(--muted);
}
.review__badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .5rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.review__badge svg { flex: none; }

/* Mention de provenance des avis, sous la note moyenne. */
.reviews__head [data-reviews-source] {
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.5;
}

/* Le pied de page passe en colonnes explicites : il perd donc le repli
   automatique d'`auto-fit`, qu'il faut redonner à la main. */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(21rem, auto); }
}
@media (max-width: 680px) {
  .footer__grid { grid-template-columns: 1fr; }
}
/* Sous cette largeur, l'adresse ne tient plus sur une ligne quoi qu'on fasse :
   mieux vaut la laisser se replier que provoquer un défilement horizontal. */
@media (max-width: 380px) {
  .footer__contact li { white-space: normal; }
}

/* =============================================================================
   CONSEILLER VIRTUEL
   -----------------------------------------------------------------------------
   Reprend les composants existants : rayon de carte, dégradé de marque, bouton
   pastille. Rien de nouveau dans la charte, seulement un assemblage.

   Le conseiller est entièrement local : il n'appelle aucun service et ne coûte
   rien à faire tourner. Les réponses du visiteur sont des boutons, jamais un
   champ libre — voir modules/chat.js pour le pourquoi.

   Empilement : le lanceur (130) et le panneau (140) passent au-dessus de la
   barre mobile (120) mais restent sous le bandeau de confidentialité (150) —
   un choix de confidentialité doit toujours rester lisible et cliquable.
   ========================================================================== */
.chat__launcher {
  position: fixed;
  z-index: 130;
  right: var(--shell-pad);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.1rem);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .82rem 1.25rem;
  border: 0;
  border-radius: var(--r-pill);
  background-image: linear-gradient(118deg, var(--navy-700) 0%, var(--steel-500) 58%, var(--steel-cta) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 700;
  box-shadow: var(--sh-glow), var(--sh-inset);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out),
              opacity var(--dur) var(--ease-out);
  padding-left: .5rem;
}
.chat__launcher:hover { transform: translateY(-2px); box-shadow: 0 22px 52px -18px rgba(62,123,155,.78), var(--sh-inset); }

/* Le bandeau de confidentialité occupe le même coin et passe au-dessus (150
   contre 130) : il interceptait les clics sur le lanceur, qui était donc
   inatteignable à la première visite — exactement le moment où l'on veut
   pouvoir poser une question. Le lanceur s'efface le temps que le choix de
   confidentialité soit fait, puis revient. */
body.consent-ouvert .chat__launcher { opacity: 0; pointer-events: none; }
.chat__launcher svg { flex: none; }
.chat__launcher[aria-expanded='true'] { opacity: 0; pointer-events: none; }

.chat__panel {
  position: fixed;
  z-index: 140;
  right: var(--shell-pad);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.1rem);
  width: min(25rem, calc(100vw - var(--shell-pad) * 2));
  height: min(38rem, calc(100vh - 5rem));
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: translateY(14px) scale(.98);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  /* `visibility` est discrète : dissociée par sens, sinon le panneau n'est pas
     encore focusable au moment où le script y place le focus. */
  transition: transform var(--dur) var(--ease-spring), opacity var(--dur) var(--ease-out),
              visibility 0s linear var(--dur);
}
.chat__panel[data-open='true'] {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform var(--dur) var(--ease-spring), opacity var(--dur) var(--ease-out),
              visibility 0s;
}

/* --- En-tête ---------------------------------------------------------------- */
.chat__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
  background: var(--grad-deep);
  color: #fff;
}
/* Avatar d'Emma. `img` ou `span` de repli : les deux partagent la même boîte. */
.chat__avatar {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.12);
  color: var(--sky-200);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.35);
}
.chat__launcher-ava {
  width: 30px; height: 30px;
  flex: none;
  border-radius: var(--r-pill);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.55);
  display: grid; place-items: center;
}
.chat__title { margin: 0; font-size: var(--t-base); color: #fff; line-height: 1.2; }
.chat__subtitle { margin: .15rem 0 0; font-size: var(--t-xs); color: var(--sky-100); }
.chat__ident { min-width: 0; }
.chat__reset {
  margin-left: auto;
  flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-pill);
  background: transparent;
  color: #fff;
  transition: background var(--dur) var(--ease-out);
}
.chat__reset:hover { background: rgba(255,255,255,.16); }
.chat__close {
  flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-pill);
  background: transparent;
  color: #fff;
  transition: background var(--dur) var(--ease-out);
}
.chat__close:hover { background: rgba(255,255,255,.16); }

/* --- Conversation ----------------------------------------------------------- */
.chat__log {
  overflow-y: auto;
  /* Garde-fou : même avec six propositions, il reste de quoi lire les deux
     dernières bulles. */
  min-height: 7.5rem;
  padding: 1rem;
  display: grid;
  gap: .6rem;
  align-content: start;
  background: var(--canvas);
  scrollbar-width: thin;
}
.chat__msg { display: flex; }
.chat__msg--user { justify-content: flex-end; }
.chat__bulle {
  margin: 0;
  max-width: 88%;
  padding: .62rem .85rem;
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat__msg--assistant .chat__bulle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: var(--r-xs);
  color: var(--ink);
}
.chat__msg--user .chat__bulle {
  background: var(--navy-800);
  border-bottom-right-radius: var(--r-xs);
  color: #fff;
}

/* Trois points pendant la rédaction. */
.chat__bulle--attente { display: flex; gap: .3rem; padding: .8rem .9rem; }
.chat__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--steel-300);
  animation: chatDot 1.25s var(--ease-out) infinite;
}
.chat__dot:nth-child(2) { animation-delay: .16s; }
.chat__dot:nth-child(3) { animation-delay: .32s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* --- Pied : appel à l'action, saisie, quota --------------------------------- */
.chat__foot {
  display: grid;
  gap: .6rem;
  padding: .8rem 1rem calc(.9rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
  /* Le pied prend la hauteur qu'il lui faut : une proposition cachée derrière
     un défilement que rien n'annonce est une proposition perdue. C'est la
     conversation, au-dessus, qui cède la place — elle, on sait qu'elle défile. */
}
.chat__actions:empty { display: none; }
.chat__cta { width: 100%; }
.chat__cta-ico { display: inline-flex; }

/* Réponses proposées. Empilées plutôt qu'en ligne : les libellés sont des
   phrases, et une rangée qui se replie au hasard se lit mal. */
.chat__choices { display: grid; gap: .4rem; }
.chat__choices:empty { display: none; }
.chat__choice {
  width: 100%;
  text-align: left;
  padding: .58rem .85rem;
  border: 1px solid var(--steel-300);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--navy-800);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.4;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.chat__choice:hover {
  background: var(--ice-50);
  border-color: var(--steel-500);
  transform: translateX(2px);
}

/* Formulaire d'identité. Volontairement sobre : ce n'est pas un champ de
   conversation, ce sont des cases nommées, dont on dit à quoi elles servent. */
.chat__form { display: grid; gap: .5rem; }
.chat__form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
/* Téléphone et e-mail prennent la ligne entière : un champ e-mail à moitié
   large tronque l'adresse sous les yeux de qui la saisit. */
.chat__field--telephone, .chat__field--email { grid-column: 1 / -1; }
.chat__field { margin: 0; display: grid; gap: .18rem; }
.chat__label { font-size: var(--t-xs); color: var(--ink-soft); font-weight: 600; }
.chat__input {
  width: 100%;
  min-width: 0;
  padding: .48rem .65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-sm);
}
.chat__form-err:empty { display: none; }
.chat__form-err { margin: 0; font-size: var(--t-xs); color: #8A4A13; }
.chat__form-note { margin: 0; font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.45; }
.chat__form-ok { width: 100%; }
.chat__form-skip {
  width: 100%;
  padding: .3rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--t-xs);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.chat__form-skip:hover { color: var(--navy-800); }

/* --- Mobile : feuille plein écran ------------------------------------------- */
@media (max-width: 620px) {
  .chat__launcher {
    /* La barre d'actions fixe occupe déjà le bas de l'écran. */
    bottom: calc(env(safe-area-inset-bottom, 0px) + 4.9rem);
    padding: .75rem 1rem;
  }
  .chat__launcher-txt { display: none; }
  .chat__panel {
    right: 0; left: 0; bottom: 0; top: 0;
    width: auto; height: auto;
    border-radius: 0;
    border: 0;
    transform: translateY(2%);
    transform-origin: center;
  }
}

/* Le défilement de la page derrière la feuille plein écran est neutralisé :
   sans cela, un glissement dans la conversation emporte la page entière. */
@media (max-width: 620px) {
  body.chat-ouvert { overflow: hidden; }
}

/* =============================================================================
   TESTEUR DE ZONE — fenêtre d'accueil
   -----------------------------------------------------------------------------
   Au-dessus du bandeau de confidentialité (150) car les deux ne coexistent
   jamais : le testeur attend que le choix de confidentialité soit fait.
   ========================================================================== */
.zonebox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: var(--shell-pad);
  background: rgba(18, 41, 58, .55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  /* `visibility` est discrète : dissociée par sens, sinon le champ n'est pas
     encore focusable au moment où le script le vise. */
  transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.zonebox[data-open='true'] {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur) var(--ease-out), visibility 0s;
}

.zonebox__box {
  position: relative;
  width: min(30rem, 100%);
  max-height: calc(100vh - var(--shell-pad) * 2);
  overflow-y: auto;
  padding: clamp(1.4rem, 3.5vw, 2.1rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  transform: translateY(14px) scale(.98);
  transition: transform var(--dur) var(--ease-spring);
}
.zonebox[data-open='true'] .zonebox__box { transform: none; }

.zonebox__close {
  position: absolute;
  top: .7rem; right: .7rem;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-soft);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.zonebox__close:hover { background: var(--surface-2); color: var(--navy-900); }

.zonebox__eyebrow { margin-bottom: .5rem; }
.zonebox__title { font-size: var(--t-xl); margin: 0 0 .5rem; }
.zonebox__lede { font-size: var(--t-sm); color: var(--ink-soft); margin: 0 0 1.1rem; }

.zonebox__form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.zonebox__input {
  width: 100%;
  min-width: 0;
  padding: .7rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
}
.zonebox__input::placeholder { color: var(--muted); }

.zonebox__result:empty { display: none; }
.zonebox__result {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  gap: .4rem;
  justify-items: start;
}
.zonebox__result[data-etat='couvert'] { background: var(--leaf-50); border-color: rgba(46,125,99,.28); }
/* « Hors secteur » et « saisie non reconnue » partagent le même ton ambre :
   ce n'est pas une erreur, c'est une réponse qui demande un appel. */
.zonebox__result[data-etat='inconnu'],
.zonebox__result[data-etat='loin'] { background: var(--ember-50); border-color: rgba(194,105,31,.26); }
.zonebox__msg { margin: 0; display: flex; align-items: center; gap: .5rem; font-size: var(--t-base); }
.zonebox__msg strong { color: var(--navy-900); }
.zonebox__sub { margin: 0; font-size: var(--t-sm); color: var(--ink-soft); }
/* La note est posée sur un fond teinté, pas sur du blanc : --muted y tombe à
   4,44:1, juste sous le minimum de 4,5:1. Assombri de deux crans, il passe à
   5,0:1 sur le vert comme sur l'ambre. */
.zonebox__note { margin: 0; font-size: var(--t-xs); color: #55697A; }
/* Phrase d'invitation, juste au-dessus du bouton de devis. Même taille que
   --sub : elle prolonge la réponse, elle ne la surcharge pas. */
.zonebox__relance { margin: .1rem 0 0; font-size: var(--t-sm); color: var(--ink-soft); }
/* Le bouton de la réponse prend toute la largeur de l'encart : c'est l'action
   attendue, pas une option glissée en fin de ligne. */
.zonebox__cta { margin-top: .35rem; justify-self: stretch; justify-content: center; }

.zonebox__skip {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: .4rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.zonebox__skip:hover { color: var(--navy-800); }

/* La page ne défile plus derrière la fenêtre. */
body.zonebox-ouverte { overflow: hidden; }

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

/* Écrans courts (petits téléphones, fenêtre réduite) : on resserre le rythme
   vertical pour que la réponse et son bouton tiennent sans défilement. Rien
   n'est retiré, rien ne change de taille — seuls les intervalles se tassent. */
@media (max-height: 700px) {
  .zonebox__box { padding: 1.1rem; }
  .zonebox__eyebrow { margin-bottom: .3rem; }
  .zonebox__title { margin-bottom: .3rem; }
  .zonebox__lede { margin-bottom: .75rem; }
  .zonebox__result { margin-top: .75rem; padding: .75rem .8rem; }
  .zonebox__skip { margin-top: .6rem; }
}

/* Encart de mise en perspective dans les pages de contenu. */
.note-encart {
  margin: 2rem 0;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--steel-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface-2);
  color: var(--ink-soft);
}
.note-encart p { margin: 0; }
