/* =====================================================================
   KAGNARD — home.css
   Styles des 12 sections de la page d'accueil.
   Fil conducteur : fond qui se refroidit au scroll (chaud -> froid).
   ===================================================================== */

/* ---------------------------------------------------------------------
   Fond global qui transitionne chaud -> froid au scroll.
   La variable --scroll-cool (0 -> 1) est mise à jour dans main.js.
   --------------------------------------------------------------------- */
:root { --scroll-cool: 0; }
body {
  background:
    linear-gradient(
      180deg,
      hsl(32 90% 97%) 0%,
      hsl(28 80% 95%) 18%,
      hsl(210 60% 97%) 60%,
      hsl(208 70% 96%) 100%
    );
  background-attachment: fixed;
}

/* =====================================================================
   1. HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
  overflow: hidden;
  background: var(--gradient-chaud);
  isolation: isolate;
}
/* Halo de soleil cru en haut */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 90vw;
  max-width: 1100px;
  max-height: 1100px;
  background: radial-gradient(circle, rgba(255, 214, 150, 0.9), rgba(255, 214, 150, 0) 62%);
  z-index: -1;
  pointer-events: none;
}

/* Écran surexposé au chargement (résorbé par hero-godray.js) */
.hero__flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(circle at 50% 42%, #ffffff, #fff7ea 70%);
  pointer-events: none;
}
.hero.is-revealed .hero__flash {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  pointer-events: none;
}

/* God ray doré balayant en diagonale — deux rayons croisés pour une
   ouverture plus cinématographique (v2). Le premier, large et chaud ;
   le second, plus fin/rapide et légèrement décalé pour donner de la
   profondeur, sans alourdir (toujours transform + opacity uniquement). */
.hero__godray {
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 180%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 236, 190, 0.85) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(6px);
  transform: translateX(-120%) rotate(8deg);
  opacity: 0;
}
.hero.is-sweeping .hero__godray {
  animation: godray-sweep 1.2s var(--ease) forwards;
}
.hero__godray--2 {
  top: -60%;
  left: -20%;
  width: 34%;
  height: 220%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(4px);
  transform: translateX(-140%) rotate(-6deg);
}
.hero.is-sweeping .hero__godray--2 {
  animation: godray-sweep-2 1s var(--ease) 0.12s forwards;
}
@keyframes godray-sweep {
  0%   { transform: translateX(-120%) rotate(8deg); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(320%) rotate(8deg); opacity: 0; }
}
@keyframes godray-sweep-2 {
  0%   { transform: translateX(-140%) rotate(-6deg); opacity: 0; }
  35%  { opacity: 0.8; }
  100% { transform: translateX(340%) rotate(-6deg); opacity: 0; }
}

/* Poussière lumineuse discrète : une seule couche, plusieurs points
   "gravés" dans le background-image (statique) — seule sa position/
   opacité globale est animée (transform/opacity), donc compositor-safe. */
.hero__dust {
  position: absolute;
  inset: -10% -10% -30% -10%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 15%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(2px 2px at 80% 45%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 60%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(2px 2px at 50% 80%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 70%, rgba(255, 255, 255, 0.7), transparent 60%);
  will-change: transform, opacity;
}
.hero.is-sweeping .hero__dust {
  animation: dust-in 1.4s var(--ease-out) forwards, dust-drift 16s linear 1.4s infinite;
}
@keyframes dust-in {
  0%   { opacity: 0; transform: translateY(16px); }
  45%  { opacity: 0.7; }
  100% { opacity: 0.5; transform: translateY(0); }
}
@keyframes dust-drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero__content {
  position: relative;
  z-index: 6;
  max-width: 860px;
  isolation: isolate;
}
/* Vignette douce derrière le texte : renforce le contraste quel que soit
   l'endroit du dégradé mesh où retombe le titre, sans créer de pavé dur. */
.hero__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -16% -10% -18%;
  background: radial-gradient(60% 65% at 28% 30%, rgba(255, 255, 255, 0.6), transparent 72%);
  pointer-events: none;
}
/* Contenu masqué avant reveal (apparaît en fondu) */
.hero__content > * {
  opacity: 0;
  transform: translateY(20px);
}
.hero.is-revealed .hero__content > * {
  animation: hero-in 0.8s var(--ease) forwards;
}
.hero.is-revealed .hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero.is-revealed .hero__content > *:nth-child(2) { animation-delay: 0.15s; }
.hero.is-revealed .hero__content > *:nth-child(3) { animation-delay: 0.25s; }
.hero.is-revealed .hero__content > *:nth-child(4) { animation-delay: 0.35s; }
.hero.is-revealed .hero__content > *:nth-child(5) { animation-delay: 0.45s; }
.hero.is-revealed .hero__content > *:nth-child(6) { animation-delay: 0.55s; }
.hero.is-revealed .hero__content > *:nth-child(7) { animation-delay: 0.62s; }
@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-bottom: 1.3rem;
  color: var(--noir);
}
.hero__title-accent {
  color: var(--orange);
  position: relative;
}
.hero__subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--noir);
  max-width: 44ch;
  margin-bottom: 1.6rem;
}
.hero__subtitle strong { color: var(--noir); }

/* Preuve sociale compacte (faits déjà établis ailleurs sur le site) —
   pastilles "glass" avec icône, plus lisibles/soignées qu'une simple
   ligne de texte séparée par des points. */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  margin-bottom: 1.8rem;
}
.hero__proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--noir);
}
.hero__proof-item svg { color: var(--orange); flex-shrink: 0; }
.hero__proof-stars { color: #FFB400; letter-spacing: 1px; font-size: 0.85rem; } /* même teinte que .review-card__stars */

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.4rem;
}

/* ---------- Slider avant / après ---------- */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  border: 3px solid var(--blanc);
  outline: 1px solid var(--gris-bord);
  outline-offset: -1px;
  user-select: none;
  touch-action: pan-y;
}
.ba figure { position: absolute; inset: 0; margin: 0; }
.ba img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
/* Image AVANT : au-dessus, clippée depuis la gauche via clip-path (et non
   en rétrécissant sa largeur) pour que l'image garde EXACTEMENT la même
   taille/cadrage que l'image APRÈS en dessous. L'ancienne technique
   (largeur réduite + img en "width:100vw" pour compenser) désynchronisait
   le cadrage dès que le conteneur .ba était plus étroit que le viewport
   (cas desktop, où .container < 100vw) → décalage visible entre avant/après.
   Sur mobile le conteneur est proche de 100vw, d'où l'absence de symptôme. */
.ba__before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba__before img {
  filter: saturate(1.35) brightness(1.18) contrast(1.05) sepia(0.25) hue-rotate(-12deg);
}
/* Overlay éblouissant sur l'avant */
.ba__before::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 236, 180, 0.5), rgba(255, 170, 90, 0.25));
  mix-blend-mode: screen;
}
.ba__after img {
  /* Traitement "froid" : légèrement tamisé + teinté bleu (simulateur avec film) */
  filter: saturate(0.9) brightness(0.97) contrast(1.02) hue-rotate(8deg);
}
.ba__after::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(77, 163, 255, 0.16), rgba(77, 163, 255, 0.05));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.ba__tag {
  position: absolute;
  bottom: 14px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--blanc);
  z-index: 3;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ba__tag--before { left: 14px; background: rgba(242, 100, 25, 0.85); }
.ba__tag--after { right: 14px; background: rgba(77, 163, 255, 0.85); }

/* Poignée */
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 4px;
  transform: translateX(-50%);
  background: var(--blanc);
  z-index: 4;
  cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.ba__handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--noir);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

/* =====================================================================
   2. BARRE DE RÉASSURANCE
   ===================================================================== */
.reassurance {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  padding-block: 1rem;
}
.reassurance__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: linear-gradient(165deg, var(--encre) 0%, var(--encre-2) 100%);
  color: var(--texte-sur-encre);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-3);
  isolation: isolate;
  overflow: hidden;
}
.reassurance__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  background-size: 180px 180px;
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.reassurance__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: center;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
}
.reassurance__item svg { color: var(--orange-clair); flex-shrink: 0; }
.reassurance__item + .reassurance__item { border-left: 1px solid rgba(255, 255, 255, 0.12); }

/* =====================================================================
   3. BÉNÉFICES
   ===================================================================== */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.benefit-card {
  padding: 2.2rem 2rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: rgba(242, 100, 25, 0.35);
}
.benefit-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--blanc);
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease);
}
.benefit-card:hover .benefit-card__icon { transform: scale(1.08) rotate(-4deg); }
.benefit-card__icon svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit-card__icon--hot { background: linear-gradient(135deg, #F26419, #FF9A4D); }
.benefit-card__icon--uv { background: linear-gradient(135deg, #FFB067, #F26419); }
.benefit-card__icon--cool { background: linear-gradient(135deg, #4DA3FF, #8FC7FF); }
.benefit-card h3 { margin-bottom: 0.6rem; }

/* =====================================================================
   4. PREUVE CHIFFRÉE
   ===================================================================== */
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.proof__item {
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
}
.proof__num {
  display: block;
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1;
  background: var(--gradient-signature);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}
.proof__label {
  display: block;
  margin-top: 0.6rem;
  font-weight: 500;
  color: var(--gris-texte);
}
.proof__foot {
  text-align: center;
  margin-top: 2rem;
  font-size: var(--fs-small);
  color: var(--gris-texte);
}

/* =====================================================================
   5. COMPARATIF FILM vs CLIM — moment "waouh", traitement sombre premium
   (.section--dark posé sur la section dans index.html). La colonne
   Kagnard se détache nettement en orange sur fond encre.
   ===================================================================== */
.compare__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}
.compare__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
  background: var(--encre-2);
  border: 1px solid var(--encre-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.compare__table th,
.compare__table td {
  padding: 1.25rem 1.4rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--encre-border);
}
.compare__table tr:last-child th,
.compare__table tr:last-child td { border-bottom: none; }
.compare__table thead th {
  font-family: var(--font-titre);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--texte-sur-encre);
  background: rgba(255, 255, 255, 0.04);
}
.compare__table tbody th {
  font-weight: 600;
  color: var(--texte-sur-encre);
  width: 26%;
}
.compare__table td { color: var(--texte-sur-encre-muted); }

/* Colonne Kagnard mise en valeur — le point focal du tableau */
.compare__kagnard-col {
  background: linear-gradient(180deg, rgba(242, 100, 25, 0.22), rgba(242, 100, 25, 0.1));
  color: var(--texte-sur-encre) !important;
  font-weight: 600;
  border-left: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
}
.compare__kagnard-col .tick { box-shadow: 0 0 0 4px rgba(31, 157, 107, 0.18); }
.compare__table thead .compare__kagnard-col {
  background: linear-gradient(180deg, rgba(242, 100, 25, 0.32), rgba(242, 100, 25, 0.16));
  border-top: 2px solid var(--orange);
}
.compare__table tbody tr:last-child .compare__kagnard-col { border-bottom: 2px solid var(--orange); }
.compare__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--orange);
  color: var(--blanc);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-orange);
}
.compare__cta { text-align: center; margin-top: 2.4rem; }

/* Section claire juste après le bloc sombre .compare : accueille
   l'infographie (fond blanc) sans le double espacement de deux sections
   empilées — se lit comme la suite directe du tableau. */
.compare-visual { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

/* =====================================================================
   5bis. INFOGRAPHIE "COÛT CLIM vs FILM" — reproduite en code (HTML/CSS/SVG)
   plutôt qu'en image raster : rendu net à toute résolution, texte réel
   (accessible + indexable), couleurs 100% charte. Réutilisée sur la home
   (#comparatif) et la page pilier film-anti-chaleur.html.
   ===================================================================== */
.cost-chart {
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: clamp(1.5rem, 3vw, 2.6rem);
}
.cost-chart__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(1.8rem, 3.5vw, 2.4rem);
}
.cost-chart__title {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  color: var(--noir);
  line-height: 1.32;
  margin-bottom: 0.6rem;
}
.cost-chart__subtitle { color: var(--gris-texte); font-size: 0.96rem; }

/* Défilement horizontal sous ~800px : garde les 10 années lisibles sans
   jamais casser la mise en page (pattern usuel pour une frise chiffrée). */
.cost-chart__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.3rem;
  padding: 0 0.3rem 0.3rem;
}
.cost-chart__body { min-width: 780px; }

.cost-chart__years,
.cost-chart__row,
.cost-chart__timeline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.cost-chart__row { align-items: stretch; margin-top: 0.7rem; }
.cost-chart__spacer { flex: 0 0 172px; }

.cost-chart__years-grid,
.cost-chart__timeline-track { flex: 1 1 auto; }
.cost-chart__years-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  padding-inline: 0.7rem;
}
.cost-chart__years-grid span {
  text-align: center;
  font-family: var(--font-titre);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--texte-muted);
  text-transform: uppercase;
}

/* ---------- Étiquette de ligne (icône + libellé) ---------- */
.cost-chart__tag {
  flex: 0 0 172px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blanc);
}
.cost-chart__row--clim .cost-chart__tag {
  background: linear-gradient(135deg, var(--orange), var(--orange-clair));
  box-shadow: var(--shadow-orange);
}
.cost-chart__row--film .cost-chart__tag {
  background: linear-gradient(135deg, var(--bleu), #2E86DE);
  box-shadow: 0 10px 22px rgba(77, 163, 255, 0.32);
}
.cost-chart__badge { display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Piste (grille à 10 colonnes = 10 ans) ---------- */
.cost-chart__track {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: stretch;
  gap: 0 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
}
.cost-chart__row--clim .cost-chart__track { background: var(--orange-soft); }
.cost-chart__row--film .cost-chart__track { background: var(--bleu-soft); }

.cost-chart__invest {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius-sm);
  text-align: center;
}
.cost-chart__invest span { font-size: 0.66rem; color: var(--gris-texte); font-weight: 600; line-height: 1.2; }
.cost-chart__invest strong { font-family: var(--font-titre); font-size: 0.9rem; color: var(--noir); line-height: 1.2; }
.cost-chart__invest--clim { background: rgba(242, 100, 25, 0.14); border: 1px solid rgba(242, 100, 25, 0.3); }
.cost-chart__invest--film { background: rgba(77, 163, 255, 0.16); border: 1px solid rgba(77, 163, 255, 0.32); }

.cost-chart__coin {
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--blanc);
  font-family: var(--font-titre);
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(242, 100, 25, 0.35);
}

.cost-chart__cumul {
  grid-column: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.35rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--orange-deep), var(--orange));
  color: var(--blanc);
  text-align: center;
}
.cost-chart__cumul span { font-size: 0.6rem; font-weight: 700; line-height: 1.2; }
.cost-chart__trend { color: var(--blanc); flex-shrink: 0; }

.cost-chart__flat {
  grid-column: 2 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bleu), #2E86DE);
  color: var(--blanc);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  box-shadow: 0 10px 24px rgba(77, 163, 255, 0.3);
}

/* ---------- Frise chronologique du bas ---------- */
.cost-chart__timeline { margin-top: 1.1rem; }
.cost-chart__timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  padding-inline: 0.7rem;
}
.cost-chart__timeline-track::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  top: 50%;
  height: 1px;
  background: var(--gris-bord);
}
.cost-chart__dot {
  position: relative;
  justify-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gris-texte);
  opacity: 0.4;
}
.cost-chart__arrow { color: var(--noir); opacity: 0.55; flex-shrink: 0; }

.cost-chart__foot {
  text-align: center;
  margin-top: 1.6rem;
  font-size: var(--fs-small);
  color: var(--texte-muted);
}

@media (max-width: 640px) {
  .cost-chart { padding: 1.4rem 1.1rem; }
}

/* Coche verte "avantage" (réutilisée dans devis) */
.tick {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  vertical-align: -3px;
  border-radius: 50%;
  background: var(--vert-check);
  position: relative;
  flex-shrink: 0;
}
.tick::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid var(--blanc);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* =====================================================================
   6. GAMMES
   ===================================================================== */
.ranges__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.range-card {
  position: relative;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.range-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.range-card__badge {
  position: absolute;
  top: -12px;
  right: 1.4rem;
  padding: 0.32rem 0.85rem;
  background: var(--orange-fonce);
  color: var(--blanc);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: var(--shadow-orange);
}
.range-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bleu);
}
.range-card__name {
  font-size: 1.5rem;
  margin: 0.2rem 0;
}
.range-card__stat {
  font-size: 0.95rem;
  color: var(--gris-texte);
}
.range-card__pct {
  display: inline-block;
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 2rem;
  color: var(--orange);
  margin-right: 0.3rem;
}
.range-card__use {
  font-size: 0.9rem;
  flex-grow: 1;
}
.range-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--noir);
  margin-top: 0.4rem;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.range-card__link:hover { gap: 0.7rem; color: var(--orange-fonce); }
.ranges__note {
  position: relative;
  margin-top: 2.2rem;
  padding: 1.3rem 1.5rem;
  background: var(--bleu-soft);
  border-left: 4px solid var(--bleu);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  overflow: hidden;
  isolation: isolate;
}
.ranges__note::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 92% 0%, rgba(77, 163, 255, 0.16), transparent 55%);
}

/* =====================================================================
   7. COMMENT ÇA MARCHE
   ===================================================================== */
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  counter-reset: step;
}
.step-card {
  position: relative;
  padding: 2.2rem 1.8rem 2rem;
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--orange);
}
.step-card__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.step-card h3 { margin-bottom: 0.5rem; }

/* =====================================================================
   8. CLIM INTERDITE (bloc bleu froid)
   ===================================================================== */
.banned {
  position: relative;
  padding-block: var(--space-section);
  /* Départ marine (identité logo) avant de rejoindre le bleu fraîcheur existant —
     le texte reste positionné sur la portion d'origine, contraste AA inchangé. */
  background: linear-gradient(135deg, var(--marine) 0%, #2E7BD6 40%, #4DA3FF 75%, #7CC0FF 100%);
  overflow: hidden;
  isolation: isolate;
}
.banned::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.25), transparent 45%);
  z-index: -1;
}
.banned__content { max-width: 720px; color: var(--blanc); }
.banned__content h2 { color: var(--blanc); }
.banned__hl { color: #fff; opacity: 0.95; }
.banned__text { color: rgba(255, 255, 255, 0.92); margin: 1.2rem 0 2rem; font-size: 1.1rem; }
.banned__text strong { color: var(--blanc); }
.eyebrow--light { color: var(--blanc); }
.eyebrow--light::before { background: var(--blanc); }

/* =====================================================================
   9. AVIS
   ===================================================================== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.review-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.review-card__stars { color: #FFB400; font-size: 1.1rem; letter-spacing: 2px; }
.review-card blockquote {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--noir);
  flex-grow: 1;
}
.review-card figcaption {
  font-size: 0.88rem;
  color: var(--gris-texte);
  border-top: 1px solid var(--gris-bord);
  padding-top: 0.9rem;
}
.review-card figcaption strong { color: var(--noir); }

/* =====================================================================
   10. FAQ
   ===================================================================== */
.faq__list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq__item {
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--orange);
  transition: transform 0.3s var(--ease);
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 1.4rem 1.3rem; }
.faq__answer p { color: var(--gris-texte); }

/* =====================================================================
   11. DEVIS (bas de parcours = ambiance froide apaisée)
   ===================================================================== */
.devis {
  background: var(--gradient-froid);
  border-top: 1px solid var(--glass-border);
}
.devis__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.devis__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.devis__perks {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.devis__perks li {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--noir);
}

/* ---- Formulaire ---- */
.devis-form { padding: clamp(1.6rem, 3vw, 2.4rem); }
.devis-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
  margin-bottom: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--noir);
}
.req { color: var(--orange-fonce); }
.field input,
.field select,
.field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gris-bord);
  border-radius: var(--radius-sm);
  background: var(--blanc);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
.field textarea { resize: vertical; min-height: 96px; }
.field__hint { font-size: 0.82rem; color: var(--bleu); }
.field__error {
  font-size: 0.82rem;
  color: #D93025;
  min-height: 1em;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #D93025;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12);
}
.devis-form__note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--gris-texte);
  margin-top: 1rem;
}
.devis-form__feedback {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.devis-form__feedback.is-success {
  background: rgba(31, 157, 107, 0.12);
  border: 1px solid var(--vert-check);
  color: #14603f;
}
.devis-form__feedback.is-error {
  background: rgba(217, 48, 37, 0.1);
  border: 1px solid #D93025;
  color: #a01c14;
}
.btn[data-submit].is-loading {
  opacity: 0.8;
  pointer-events: none;
}
.btn[data-submit].is-loading::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  vertical-align: -0.15em;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: kg-spin 0.7s linear infinite;
}
@keyframes kg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn[data-submit].is-loading::before { animation-duration: 2s; }
}

/* ---- Consentement RGPD ---- */
.field--consent { margin-top: 0.2rem; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400 !important;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--gris-texte);
  cursor: pointer;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--orange);
  cursor: pointer;
}
.consent a { color: var(--orange-fonce); text-decoration: underline; }
.field--consent.is-invalid .consent { color: #a01c14; }
.devis-form__feedback a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .benefits__grid,
  .ranges__grid,
  .reviews__grid,
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .devis__inner { grid-template-columns: 1fr; }
  .devis__intro { position: static; }
}

@media (max-width: 760px) {
  .reassurance__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.5rem;
  }
  .reassurance__item + .reassurance__item { border-left: none; }
  .ba { aspect-ratio: 3 / 4; max-height: 520px; }
}

@media (max-width: 560px) {
  .benefits__grid,
  .ranges__grid,
  .reviews__grid,
  .steps__list,
  .proof__grid { grid-template-columns: 1fr; }
  .devis-form__grid { grid-template-columns: 1fr; }
  .reassurance__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .hero-phone-link { width: 100%; justify-content: center; }
}
