/* =================================================================
   NEXHOM — Design System v2
   Solutions énergétiques pour l'habitat — électricité, solaire,
   bornes de recharge, pompes à chaleur, batteries.
   Charte : Rouge #E20613 · Noir #12100B · Blanc · Gris
   Polices (brandbook uniquement) : Microgramma D Bold Extended (titres) · Helvetica (corps & UI)
   ================================================================= */

/* ----------  0. Polices de marque (auto-hébergées)  ---------- */
@font-face {
  font-family: "Helvetica Neue Nx"; font-style: normal; font-weight: 300;
  font-display: swap; src: url("../fonts/HelveticaNeue-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Helvetica Neue Nx"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/HelveticaNeue-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Helvetica Neue Nx"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/HelveticaNeue-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Helvetica Neue Nx"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/HelveticaNeue-Bold.woff2") format("woff2");
}
/* Police de titres de marque — Microgramma D Bold Extended (brandbook)
   NB : le glyphe U+00A0 (espace insécable) de ce fichier est erroné (rendu « R »).
   On l'exclut via unicode-range → il retombe sur Helvetica (vraie espace insécable). */
@font-face {
  font-family: "Microgramma D Nx"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/MicrogrammaD-BoldExtended.woff2") format("woff2");
  unicode-range: U+0-9F, U+A1-10FFFF;
}

/* ----------  1. Variables  ---------- */
:root {
  /* Couleurs de marque (brandbook) */
  --red:        #E20613;
  --red-700:    #b3050f;
  --red-900:    #811811;
  --red-050:    #fdeced;
  --black:      #12100B;
  --black-soft: #1c1a14;
  --grey:       #5B5B5B;
  --grey-300:   #D3D3D3;
  --paper:      #ffffff;
  --paper-2:    #f7f6f4;
  --line:       #e8e7e3;

  /* Sémantique */
  --bg: var(--paper);
  --bg-alt: var(--paper-2);
  --text: var(--black);
  --text-soft: #55544f;
  --border: var(--line);
  --accent: var(--red);

  /* Sur fond sombre */
  --ink-inverse: rgba(255,255,255,.84);
  --ink-inverse-soft: rgba(255,255,255,.68);

  /* Typo */
  --font-title:   "Microgramma D Nx", "Helvetica Neue Nx", Arial, sans-serif;
  --font-display: "Helvetica Neue Nx", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue Nx", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --header-h: 78px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(18,16,11,.07), 0 1px 2px rgba(18,16,11,.05);
  --shadow:    0 12px 30px -14px rgba(18,16,11,.22);
  --shadow-lg: 0 26px 60px -22px rgba(18,16,11,.32);
  --shadow-red: 0 14px 34px -14px rgba(226,6,19,.5);
  --shadow-float: 0 40px 90px -42px rgba(18,16,11,.55), 0 18px 44px -30px rgba(18,16,11,.4);

  --transition: .22s cubic-bezier(.4, 0, .2, 1);
  --ease-lux: cubic-bezier(.22, 1, .36, 1);
}

/* ----------  2. Reset & base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Fond racine SOMBRE : l'élastique de défilement iOS (haut/bas) et la zone
   derrière la barre d'état restent fondus dans le design (hero et footer sombres). */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: #0b0a07; }
body {
  font-family: var(--font-body);
  color: var(--text); background: var(--bg);
  line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.nav-locked { overflow: hidden; }

/* Grain global — la texture « qui coûte cher » (unifie tout le site).
   L'accueil a sa propre couche identique (body.home::after) qui prend le dessus. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .045; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.14; font-weight: 700; letter-spacing: .005em; color: var(--black); text-wrap: balance; }
::selection { background: var(--red); color: #fff; }

/* Focus clavier visible et cohérent partout */
:focus-visible { outline: 3px solid rgba(226,6,19,.55); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }

/* Titres « display » en capitales — charte NEXHOM (Microgramma D Bold Extended).
   Le corps d'article (.prose) reste en casse normale pour la lisibilité. */
.hero h1, .page-head h1, .section-title, .card h3, .step h3, .cta-band h2,
.hero__card h3, .info-card h3 {
  text-transform: uppercase; letter-spacing: .012em;
}

/* ----------  3. Layout helpers  ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 28px); }
/* iPhone en paysage (encoche) : les gouttières respectent la safe-area */
@supports (padding: max(0px)) {
  .container { padding-left: max(clamp(18px, 4vw, 28px), env(safe-area-inset-left)); padding-right: max(clamp(18px, 4vw, 28px), env(safe-area-inset-right)); }
}
.container--narrow { max-width: 880px; }
.section { padding: clamp(60px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--black); color: var(--ink-inverse); position: relative; overflow: hidden; }
/* Texture premium (grille de points fins) — remplace le motif bouclier */
.section--dark::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 100% 82% at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 100% 82% at 50% 0%, #000, transparent 78%);
}
.section--dark::after { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; background: radial-gradient(58% 90% at 100% 4%, rgba(226,6,19,.18), transparent 60%); }
.section--dark > .container { position: relative; z-index: 1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: clamp(44px, 6vw, 64px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.center .eyebrow { justify-content: center; }
/* Rouge éclairci pour les petits libellés sur fond noir (contraste AA ≥ 4.5) */
.hero .eyebrow, .page-head .eyebrow, .section--dark .eyebrow { color: #ff4b55; }
.hero .eyebrow::before, .page-head .eyebrow::before, .section--dark .eyebrow::before { background: #ff4b55; }
.section-title { font-size: clamp(1.5rem, 3.1vw, 2.2rem); margin-bottom: 16px; }
.section-lead { font-size: 1.1rem; color: var(--text-soft); max-width: 680px; }
.center .section-lead { margin-inline: auto; }
.text-red { color: var(--red); }

/* ----------  4. Boutons  ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .015em;
  padding: 13px 26px; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition); white-space: nowrap;
  min-height: 46px;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 14px 34px -18px rgba(226,6,19,.55); }
.btn--primary:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: 0 26px 60px -22px rgba(226,6,19,.65); }
/* Brillance qui balaie le bouton au survol */
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease-lux);
}
.btn--primary:hover::after { left: 130%; }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--black-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--black); background: #fff; }
.btn--light { background: #fff; color: var(--black); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: 16px 32px; font-size: 1rem; min-height: 54px; }
.btn--block { width: 100%; }

/* ----------  5. Header / Nav  ---------- */
/* Header GLOBAL transparent au-dessus du bandeau sombre (page-head/hero),
   verre blanc au scroll — même mécanique que l'accueil, généralisée.
   Toutes les pages commencent par un bloc sombre : la barre d'état iPhone
   se fond dedans (theme-color dynamique dans main.js). */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  /* iPhone : le header s'étend sous la barre d'état (encoche) */
  padding-top: env(safe-area-inset-top);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-lux), border-color .4s var(--ease-lux), box-shadow .4s var(--ease-lux);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -22px rgba(18,16,11,.4);
}
/* Deux logos : blanc au-dessus du bandeau sombre, sombre au scroll */
.brand { position: relative; }
.brand__logo { transition: opacity .35s var(--ease-lux); }
.brand__logo--dark { position: absolute; inset: 0; opacity: 0; }
.site-header.is-scrolled .brand__logo--light { opacity: 0; }
.site-header.is-scrolled .brand__logo--dark { opacity: 1; }
/* Sans JavaScript (pas de .is-scrolled possible) : header blanc collant classique */
.no-js .site-header { position: sticky; background: rgba(255,255,255,.94); border-bottom-color: var(--border); }
.no-js .site-header .nav__links > a, .no-js .site-header .has-dropdown > a, .no-js .site-header .nav__phone { color: var(--black); }
.no-js .brand__logo--light { opacity: 0; }
.no-js .brand__logo--dark { opacity: 1; }
/* Liens clairs au-dessus du bandeau sombre */
.site-header:not(.is-scrolled) .nav__links > a,
.site-header:not(.is-scrolled) .has-dropdown > a,
.site-header:not(.is-scrolled) .nav__phone { color: #fff; }
.site-header:not(.is-scrolled) .nav__links > a:hover,
.site-header:not(.is-scrolled) .has-dropdown > a:hover,
.site-header:not(.is-scrolled) .nav__phone:hover { color: #fff; background: rgba(255,255,255,.1); }
.site-header:not(.is-scrolled) .has-dropdown > a::after { border-color: rgba(255,255,255,.85); }
.site-header:not(.is-scrolled) .nav__toggle span { background: #fff; }
.site-header:not(.is-scrolled) .nav__links a.is-active { color: #fff; background: rgba(255,255,255,.14); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; flex-shrink: 0; border-radius: 6px; }
.brand img { height: 34px; width: auto; flex-shrink: 0; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  padding: 9px 14px; border-radius: 9px; color: var(--black); transition: var(--transition);
}
.nav__links a:hover { color: var(--red); background: var(--red-050); }
.nav__links a.is-active { color: var(--red); background: var(--red-050); }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__phone { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--black); display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; transition: var(--transition); }
.nav__phone:hover { color: var(--red); }
.nav__phone svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.nav__toggle { display: none; position: relative; z-index: 102; background: none; border: none; cursor: pointer; padding: 13px 12px; margin-right: -8px; border-radius: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav__toggle span + span { margin-top: 6px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Dropdown services (desktop) */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ""; display: inline-block; margin-left: 7px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; transition: var(--transition); }
.has-dropdown:hover > a::after, .has-dropdown:focus-within > a::after { transform: rotate(225deg) translateY(-1px); opacity: 1; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; min-width: 320px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.dropdown a:hover { background: var(--paper-2); }
.dropdown .ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--red-050); color: var(--red); transition: var(--transition); }
.dropdown a:hover .ico { background: var(--red); color: #fff; }
.dropdown .ico svg { width: 20px; height: 20px; }
.dropdown b { display: block; font-family: var(--font-display); font-size: .92rem; color: var(--black); font-weight: 600; }
.dropdown small { color: var(--text-soft); font-size: .8rem; }

/* ----------  6. Hero  ---------- */
.hero { position: relative; overflow: hidden; background: var(--black); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 54% at 86% 12%, rgba(226,6,19,.34), transparent 62%),
    radial-gradient(ellipse 50% 42% at 8% 92%, rgba(91,91,91,.24), transparent 60%);
}
/* Texture premium (grille de points fins) — remplace le motif bouclier */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.6px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 40%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 40%, #000, transparent 80%);
}
.hero > .container { position: relative; z-index: 2; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 60px); align-items: center; padding: clamp(56px, 8vw, 96px) 0; }
.hero h1 { font-size: clamp(1.65rem, 3.9vw, 2.75rem); color: #fff; margin-bottom: 22px; }
.hero h1 .hl, .page-head h1 .hl { color: var(--red); }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.16rem); color: var(--ink-inverse); max-width: 540px; margin-bottom: 30px; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__badges li {
  display: flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 14px; border-radius: 100px;
}
.hero__badges svg { width: 17px; height: 17px; color: var(--red); flex: none; }

/* Carte formulaire express dans le hero */
.hero__card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); color: var(--black); overflow: hidden;
}
.hero__card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--red-900)); }
.hero__card h3 { font-size: 1.24rem; margin-bottom: 4px; }
.hero__card .sub { color: var(--text-soft); font-size: .92rem; margin-bottom: 20px; }

/* ----------  7. Bandeau confiance  ---------- */
.trust { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 32px; padding: 22px 0; }
.trust__item { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--black); font-size: .92rem; }
.trust__item svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.trust__badge { font-family: var(--font-display); font-weight: 700; letter-spacing: .05em; padding: 6px 14px; border: 2px solid var(--black); color: var(--black); border-radius: 8px; font-size: .82rem; background: #fff; }

/* ----------  8. Grilles & cartes  ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: var(--transition); height: 100%; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: var(--transition); }
.card { transition: transform .4s var(--ease-lux), box-shadow .4s var(--ease-lux), border-color .4s var(--ease-lux); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card__ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--red-050); color: var(--red); margin-bottom: 18px; transition: var(--transition); }
.card:hover .card__ico { background: var(--red); color: #fff; }
.card__ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: .97rem; margin-bottom: 16px; }
.card__link { font-family: var(--font-display); font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.card__link svg { width: 16px; height: 16px; transition: var(--transition); }
.card:hover .card__link svg, .card__link:hover svg { transform: translateX(4px); }

/* Carte sombre (variante noire) */
.card--dark { background: var(--black); color: #fff; border-color: transparent; }
.card--dark .card__ico { background: var(--red); color: #fff; }
.card--dark h3 { color: #fff; }
.card--dark p { color: rgba(255,255,255,.75); }
.card--dark .card__link { color: #fff; }

/* ----------  9. Process / étapes  ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  display: grid; place-items: center; margin-bottom: 16px;
}
.step:first-child .step__num { background: var(--red); border-color: var(--red); }
.step h3 { font-size: .98rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: .95rem; }
.section--dark .step p { color: var(--ink-inverse-soft); }
/* Ligne de liaison entre étapes (desktop) */
.step::after { content: ""; position: absolute; top: 33px; left: 68px; right: -12px; height: 1px; background: rgba(255,255,255,.14); }
.step:last-child::after { display: none; }

/* Sur fond clair (pages internes éventuelles) */
.section:not(.section--dark) .step__num { background: var(--black); border-color: var(--black); }
.section:not(.section--dark) .step:first-child .step__num { background: var(--red); border-color: var(--red); }
.section:not(.section--dark) .step::after { background: var(--border); }

/* ----------  10. Stats  ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats > div { position: relative; }
.stats > div + div::before { content: ""; position: absolute; left: -12px; top: 12%; bottom: 12%; width: 1px; background: var(--border); }
.stat__num { font-family: var(--font-title); text-transform: uppercase; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--red); line-height: 1.1; }
.stat__label { color: var(--text-soft); margin-top: 8px; font-size: .96rem; }
.section--dark .stat__label { color: var(--ink-inverse-soft); }

/* ----------  11. Feature split  ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 60px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { display: grid; gap: 13px; margin: 22px 0 28px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; }
.checklist svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 2px; }

/* Champ checkbox inline */
.field.form__field--checkbox { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.field.form__field--checkbox input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin-top: 4px; accent-color: var(--red); flex: none; }
.field.form__field--checkbox label { font-weight: 400; font-family: var(--font-body); font-size: .9rem; }

/* ----------  12. FAQ accordéon  ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; transition: var(--transition); }
.faq__item.is-open { border-color: rgba(226,6,19,.35); box-shadow: var(--shadow-sm); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 19px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--black); transition: var(--transition); }
.faq__q:hover { color: var(--red); }
.faq__q svg { width: 22px; height: 22px; flex: none; color: var(--red); transition: transform var(--transition); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 22px 20px; color: var(--text-soft); }

/* ----------  13. Témoignages / preuves  ---------- */
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; height: 100%; display: flex; flex-direction: column; transition: var(--transition); }
.testimonial:hover { box-shadow: var(--shadow-float); transform: translateY(-4px); }
.testimonial__stars { font-family: var(--font-display); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 14px; }
.testimonial p { font-size: 1rem; margin-bottom: 18px; flex: 1; }
.testimonial__who { display: flex; align-items: center; gap: 12px; }
.testimonial__av { width: 46px; height: 46px; border-radius: 12px; background: var(--black); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .92rem; }
.testimonial__who b { font-family: var(--font-display); display: block; font-size: .98rem; }
.testimonial__who small { color: var(--text-soft); }

/* ----------  14. CTA bande  ---------- */
.cta-band { background: var(--black); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 60px); text-align: center; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.cta-band::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.6px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 86% 96% at 50% 0%, #000, transparent 72%); mask-image: radial-gradient(ellipse 86% 96% at 50% 0%, #000, transparent 72%); }
.cta-band::after { content:""; position:absolute; inset:0; z-index:0; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(226,6,19,.38), transparent 62%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.35rem, 2.9vw, 2rem); margin-bottom: 14px; }
.cta-band p { color: var(--ink-inverse); font-size: 1.08rem; max-width: 580px; margin: 0 auto 28px; }
.cta-band .hero__cta { justify-content: center; margin-bottom: 0; }

/* ----------  15. Page header (pages internes)  ---------- */
/* Le header fixe passe AU-DESSUS : le padding haut du bandeau le compense */
.page-head { background: var(--nx-ink, #0b0a07); color: #fff; padding: calc(var(--header-h) + env(safe-area-inset-top) + clamp(30px, 4.5vw, 58px)) 0 clamp(50px, 6vw, 84px); position: relative; overflow: hidden; }
/* Filet rouge dégradé en bas du bandeau de page */
.page-head::after, .page-head::before { z-index: 0; }
.page-head { border-bottom: 1px solid rgba(255,255,255,.06); }
.page-head::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.6px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 96% 92% at 50% 0%, #000, transparent 76%); mask-image: radial-gradient(ellipse 96% 92% at 50% 0%, #000, transparent 76%); }
.page-head::after { content:""; position:absolute; inset:0; z-index:0; background: radial-gradient(ellipse 50% 60% at 90% 10%, rgba(226,6,19,.3), transparent 60%); }
.page-head > .container { position: relative; z-index: 1; }
.page-head .eyebrow { color: var(--red); }
.page-head h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.06; letter-spacing: .01em; margin-bottom: 16px; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.page-head h1 .hl { color: var(--red); text-shadow: 0 0 38px rgba(226,6,19,.5); }
.page-head p { color: var(--ink-inverse); font-size: clamp(1.04rem, 1.4vw, 1.16rem); line-height: 1.65; max-width: 680px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86rem; color: rgba(255,255,255,.62); margin-bottom: 22px; }
.breadcrumb a { border-radius: 4px; transition: var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ----------  16. Contenu riche / prose  ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.55rem; margin-top: 1.7em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.4em; }
.prose p, .prose li { color: #43433f; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 4px; background: var(--red-050); }
.prose ul li::after { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 2px; background: var(--red); }
.prose a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--paper-2); font-family: var(--font-display); font-weight: 600; }
.callout { background: var(--red-050); border-left: 4px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; }
.callout strong { color: var(--red-900); }
.callout a { color: var(--red-900); }

/* ----------  17. Blog  ---------- */
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.post-card { transition: transform .4s var(--ease-lux), box-shadow .4s var(--ease-lux); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.post-card__media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.post-card:hover .post-card__media img { transform: scale(1.045); }
.post-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card__cat { font-family: var(--font-display); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 10px; }
.post-card h3 { font-size: 1.12rem; margin-bottom: 10px; line-height: 1.3; }
.post-card h3 a { transition: var(--transition); }
.post-card h3 a:hover { color: var(--red); }
.post-card p { color: var(--text-soft); font-size: .94rem; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .84rem; color: #6c6b65; }

/* ----------  18. Formulaire  ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .88rem; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d9d8d4; border-radius: var(--radius-sm);
  background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 46px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-050); }
.field input::placeholder, .field textarea::placeholder { color: #a5a49e; }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .82rem; color: var(--text-soft); }
.form__note a { color: var(--red); }
.form__success { display: none; background: #eafbef; border: 1px solid #4caf50; color: #1b5e20; padding: 16px 18px; border-radius: var(--radius-sm); }
.form.is-sent .form__success { display: block; }
.form__error { display: none; background: var(--red-050); border: 1px solid var(--red); color: var(--red-900); padding: 16px 18px; border-radius: var(--radius-sm); }
.form.is-error .form__error { display: block; }

.info-card { background: var(--black); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 36px); position: relative; overflow: hidden; }
.info-card::before { content:""; position:absolute; inset:0; pointer-events:none; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.6px), radial-gradient(72% 60% at 100% 0%, rgba(226,6,19,.22), transparent 60%); background-size: 22px 22px, 100% 100%; }
.info-card > * { position: relative; }
.info-card h3 { color: #fff; margin-bottom: 22px; font-size: 1.15rem; }
.info-list { display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--red); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .78rem; }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list b { font-family: var(--font-display); display: block; color: #fff; }
.info-list span, .info-list a { color: var(--ink-inverse-soft); }
.info-list a:hover { color: #fff; }

/* ----------  19. Footer  ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.64); padding: clamp(48px, 7vw, 68px) 0 calc(26px + env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
.site-footer::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.5; background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1.5px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(ellipse 92% 82% at 50% 0%, #000, transparent 82%); mask-image: radial-gradient(ellipse 92% 82% at 50% 0%, #000, transparent 82%); }
.site-footer > .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer .footer-logo { height: 32px; width: auto; margin-bottom: 18px; }
.footer-about { font-size: .95rem; max-width: 330px; margin-bottom: 18px; font-weight: 300; }
.footer-col h4 { color: #fff; font-family: var(--font-display); font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: .95rem; transition: var(--transition); border-radius: 4px; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 3px; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: var(--transition); }
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .86rem; }
.footer-bottom a:hover { color: #fff; }
.footer-cookie-link {
  border: 0; background: rgba(255,255,255,.08); color: #fff; border-radius: 10px;
  padding: 10px 14px; cursor: pointer; font-family: var(--font-display); font-weight: 600;
  font-size: .88rem; transition: var(--transition);
}
.footer-cookie-link:hover { background: var(--red); }

/* ----------  20. Animations au scroll  ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ----------  21. Responsive  ---------- */

/* Tablette large : la nav complète ne tient plus -> menu mobile dès 1080px */
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px clamp(18px, 4vw, 28px) 22px; box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav__links > a { padding: 13px 14px; font-size: 1.02rem; }
  .has-dropdown > a { pointer-events: none; }
  .has-dropdown > a::after { display: none; }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 2px 0 8px 10px; min-width: 0;
  }
  /* Dans le PANNEAU (fond blanc), les liens restent sombres même header transparent */
  .site-header:not(.is-scrolled) .nav__links > a,
  .site-header:not(.is-scrolled) .has-dropdown > a,
  .site-header:not(.is-scrolled) .nav__links .nav__phone { color: var(--black); }
  .site-header:not(.is-scrolled) .nav__links > a:hover { background: var(--red-050); color: var(--red); }
  .site-header:not(.is-scrolled) .nav__links a.is-active { color: var(--red); background: var(--red-050); }

  /* CTA (téléphone + devis) déplacé dans le menu par main.js */
  .nav__links .nav__cta {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border);
  }
  .nav__links .nav__cta .nav__phone { justify-content: center; border: 2px solid var(--border); border-radius: 100px; min-height: 46px; }
  .nav__links .nav__cta .btn { width: 100%; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .stats > div:nth-child(odd)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Badge hero : sur petit écran, le 1er mot (« Installateur »/« certifié ») est masqué
   pour que la pastille tienne sur UNE ligne (« Certifié RGE · Essonne »). */
@media (max-width: 540px) {
  .kick-x { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { height: 26px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__cta .btn, .cta-band .btn { width: 100%; }
  .trust__row { gap: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------  22. Accessibilité & consentement  ---------- */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  transform: translateY(-160%);
  background: var(--black); color: #fff;
  padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--red); }
.split__media picture,
.post-card__media picture { display: block; width: 100%; height: 100%; }
.split__media picture img,
.post-card__media picture img { width: 100%; height: 100%; object-fit: cover; }

/* ----------  Note Google (avis réels — fiche NEXHOM)  ---------- */
.grating { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.grating__stars { display: inline-flex; gap: 2px; color: var(--red); flex: none; }
.grating__stars svg { width: 13px; height: 13px; fill: currentColor; stroke: none; display: block; }
.grating__txt { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
a.grating:hover .grating__txt { text-decoration: underline; text-underline-offset: 3px; }

.cookie-banner {
  position: fixed; z-index: 999; right: 18px; bottom: 18px;
  width: min(420px, calc(100vw - 36px));
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1rem; margin-bottom: 8px; }
.cookie-banner p { color: var(--text-soft); font-size: .92rem; margin-bottom: 16px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__actions .btn { padding: 10px 16px; font-size: .88rem; min-height: 40px; }
