/* =================================================================
   NEXHOM — Couche premium « page d'accueil »
   Chargée APRÈS style.css. Ne cible que body.home + composants .nx-*.
   Charte stricte : Rouge #E20613 · Noir #12100B · Blanc · Gris ·
   Microgramma D Bold Extended (titres) · Helvetica Neue (corps/UI).
   Le « premium » vient de l'exécution : profondeur, matière, rythme,
   grain, verre, micro-lumières — pas de nouvelle couleur ni police.
   ================================================================= */

/* ----------  0. Jetons de la couche premium  ---------- */
body.home {
  --nx-ease: cubic-bezier(.22, 1, .36, 1);
  --nx-ease-out: cubic-bezier(.16, 1, .3, 1);
  --nx-glass: rgba(255, 255, 255, .06);
  --nx-glass-line: rgba(255, 255, 255, .14);
  --nx-glass-line-2: rgba(255, 255, 255, .28);
  --nx-hair: rgba(18, 16, 11, .09);
  --nx-ink: #0b0a07;               /* noir encore plus profond pour le hero */
  --nx-shadow-float: 0 40px 90px -40px rgba(0, 0, 0, .65), 0 18px 40px -30px rgba(0, 0, 0, .5);
  --nx-shadow-red: 0 24px 60px -22px rgba(226, 6, 19, .55);
  --nx-radius-xl: 26px;
  --nx-radius-2xl: 32px;
  scroll-behavior: smooth;
}

/* Kicker premium (surtitre) réutilisable */
body.home .nx-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 9px 16px 9px 14px; border-radius: 100px;
}
body.home .nx-kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(226, 6, 19, .18); position: relative; flex: none; }
body.home .nx-kicker__dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(226, 6, 19, .5); animation: nx-pulse 2.6s var(--nx-ease) infinite; }
@keyframes nx-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }

/* Kicker sur fond sombre / clair */
body.home .nx-kicker--dark { color: rgba(255, 255, 255, .82); background: var(--nx-glass); border: 1px solid var(--nx-glass-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.home .nx-kicker--light { color: var(--red); background: var(--red-050); border: 1px solid rgba(226, 6, 19, .16); }

/* Titre de section premium */
body.home .nx-h2 {
  font-family: var(--font-title); text-transform: uppercase; font-weight: 700;
  letter-spacing: .01em; line-height: 1.06;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); text-wrap: balance;
}
body.home .nx-lead { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--text-soft); max-width: 620px; line-height: 1.7; }
body.home .nx-eyebrowline { color: var(--red); }

/* Le motif « bouclier » a été remplacé par la texture premium (points) dans style.css :
   le footer partagé la conserve sur l'accueil comme sur le reste du site. */

/* Grain global — la texture qui « coûte cher » (unifie tout le rendu) */
body.home::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .06; 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");
}

/* Barre de progression de lecture (haut de page) */
body.home .nx-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--red), #ff5a63);
  z-index: 200; box-shadow: 0 0 12px rgba(226, 6, 19, .6);
  transition: width .1s linear;
}

/* Révélation enrichie (réutilise l'IntersectionObserver de main.js) */
body.home .reveal { transform: translateY(30px); transition: opacity .7s var(--nx-ease-out), transform .7s var(--nx-ease-out); }
body.home .reveal.is-visible { transform: none; }
body.home .reveal[data-delay="1"] { transition-delay: .09s; }
body.home .reveal[data-delay="2"] { transition-delay: .18s; }
body.home .reveal[data-delay="3"] { transition-delay: .27s; }
body.home .reveal[data-delay="4"] { transition-delay: .36s; }

/* =================================================================
   1. HEADER transparent au-dessus du hero → verre solide au scroll
   ================================================================= */
body.home .site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background .4s var(--nx-ease), border-color .4s var(--nx-ease), backdrop-filter .4s var(--nx-ease);
}
body.home .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 hero, sombre au scroll */
body.home .brand { position: relative; }
body.home .brand__logo { transition: opacity .35s var(--nx-ease); }
body.home .brand__logo--dark { position: absolute; inset: 0; opacity: 0; }
body.home .site-header.is-scrolled .brand__logo--light { opacity: 0; }
body.home .site-header.is-scrolled .brand__logo--dark { opacity: 1; }
/* Liens clairs au-dessus du hero (y compris le déclencheur du menu déroulant) */
body.home .site-header:not(.is-scrolled) .nav__links > a,
body.home .site-header:not(.is-scrolled) .has-dropdown > a,
body.home .site-header:not(.is-scrolled) .nav__phone { color: #fff; }
body.home .site-header:not(.is-scrolled) .nav__links > a:hover,
body.home .site-header:not(.is-scrolled) .has-dropdown > a:hover,
body.home .site-header:not(.is-scrolled) .nav__phone:hover { color: #fff; background: rgba(255, 255, 255, .1); }
body.home .site-header:not(.is-scrolled) .has-dropdown > a::after { border-color: rgba(255, 255, 255, .85); }
body.home .site-header:not(.is-scrolled) .nav__toggle span { background: #fff; }
/* Lien actif : pastille « verre » sur le hero sombre (au lieu du rose pâle) */
body.home .site-header:not(.is-scrolled) .nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, .14); }
/* Le dropdown reste sur fond blanc (lisible) même header transparent */
@media (max-width: 1080px) {
  body.home .site-header:not(.is-scrolled) .nav__links > a,
  body.home .site-header:not(.is-scrolled) .has-dropdown > a,
  body.home .site-header:not(.is-scrolled) .nav__phone { color: var(--black); }
  body.home .site-header:not(.is-scrolled) .nav__links > a:hover { background: var(--red-050); color: var(--red); }
}

/* =================================================================
   2. HERO cinématographique
   ================================================================= */
body.home .nx-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--nx-ink); color: #fff;
  min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--header-h);
}
/* Couche photo traitée (voile sombre + teinte) */
body.home .nx-hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background-image: url("/assets/photos/hero.jpg");
  background-size: cover; background-position: 67% 40%;
  transform: scale(1.05); filter: saturate(1.03) contrast(1.02) brightness(1.04);
  animation: nx-hero-zoom 26s ease-in-out infinite alternate;
}
@keyframes nx-hero-zoom { from { transform: scale(1.06); } to { transform: scale(1.14) translateY(-1.2%); } }
/* Voile épuré : sombre à gauche pour le texte, image nette à droite */
body.home .nx-hero__wash {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(93deg, rgba(11, 10, 7, .96) 4%, rgba(11, 10, 7, .6) 40%, rgba(11, 10, 7, .12) 72%, rgba(11, 10, 7, 0) 100%),
    linear-gradient(0deg, rgba(11, 10, 7, .55) 0%, transparent 34%),
    radial-gradient(52% 42% at 90% 8%, rgba(226, 6, 19, .18), transparent 62%);
}
/* Grille fine + motif de marque + lueur mobile */
body.home .nx-hero__grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 82%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 82%);
}
body.home .nx-hero__glow {
  position: absolute; z-index: -2; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  top: -10%; right: -6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(226, 6, 19, .32), transparent 65%);
  filter: blur(30px);
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform .6s var(--nx-ease-out);
}
/* Seconde lueur froide pour la profondeur (remplace l'ancien motif bouclier) */
body.home .nx-hero__pattern {
  position: absolute; z-index: -2; pointer-events: none;
  left: -8%; bottom: -14%; width: 42vw; height: 42vw; max-width: 560px; max-height: 560px;
  border-radius: 50%; opacity: .5;
  background: radial-gradient(circle, rgba(120, 120, 130, .16), transparent 64%);
  filter: blur(30px);
}

body.home .nx-hero__inner {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 72px);
  align-items: center; padding: clamp(28px, 4.5vw, 56px) 0 clamp(44px, 6vw, 72px);
}
body.home .nx-hero__content { max-width: 620px; }
body.home .nx-hero h1 {
  font-family: var(--font-title); text-transform: uppercase; color: #fff;
  font-size: clamp(2.05rem, 5.4vw, 3.7rem); line-height: 1; letter-spacing: .005em;
  margin: 20px 0 0; text-shadow: 0 2px 40px rgba(0, 0, 0, .35);
}
body.home .nx-hero h1 .nx-outline {
  color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .55);
  paint-order: stroke fill;
}
body.home .nx-hero h1 .nx-red {
  color: var(--red);
  text-shadow: 0 0 42px rgba(226, 6, 19, .55);
}
body.home .nx-hero__lead {
  color: rgba(255, 255, 255, .8); font-weight: 300;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.65;
  max-width: 500px; margin: 22px 0 28px;
}
body.home .nx-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
body.home .nx-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
body.home .nx-hero__trust li { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; color: rgba(255, 255, 255, .74); }
body.home .nx-hero__trust svg { width: 18px; height: 18px; color: var(--red); flex: none; }
body.home .nx-hero__trust li + li { position: relative; padding-left: 22px; }
body.home .nx-hero__trust li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; background: rgba(255, 255, 255, .2); transform: translateY(-50%); }

/* Bouton premium avec halo & brillance */
body.home .nx-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  padding: 16px 30px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .35s var(--nx-ease), box-shadow .35s var(--nx-ease), background .3s var(--nx-ease), border-color .3s var(--nx-ease);
  min-height: 54px; white-space: nowrap; will-change: transform;
}
body.home .nx-btn svg { width: 18px; height: 18px; flex: none; }
body.home .nx-btn--primary { background: var(--red); color: #fff; box-shadow: var(--nx-shadow-red); }
body.home .nx-btn--primary:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: 0 30px 70px -20px rgba(226, 6, 19, .7); }
body.home .nx-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(--nx-ease);
}
body.home .nx-btn--primary:hover::after { left: 130%; }
body.home .nx-btn--glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.home .nx-btn--glass:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); transform: translateY(-2px); }
body.home .nx-btn--dark { background: var(--black); color: #fff; }
body.home .nx-btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
body.home .nx-btn--ghost { background: #fff; color: var(--black); border-color: var(--border); }
body.home .nx-btn--ghost:hover { border-color: var(--black); transform: translateY(-2px); box-shadow: var(--shadow); }
body.home .nx-btn--block { width: 100%; }

/* Carte formulaire — verre premium flottant */
body.home .nx-hero__aside { position: relative; }
body.home .nx-hero__aside::before {
  content: ""; position: absolute; inset: -12% -8% -12% 6%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 6, 19, .28), transparent 68%); filter: blur(24px);
}
body.home .nx-formcard {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), #fff);
  border-radius: var(--nx-radius-xl); padding: clamp(24px, 2.4vw, 34px);
  box-shadow: var(--nx-shadow-float);
  border: 1px solid rgba(255, 255, 255, .7);
}
body.home .nx-formcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(226, 6, 19, .55), rgba(255, 255, 255, 0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
body.home .nx-formcard__head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
body.home .nx-formcard__badge {
  width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--red), var(--red-900)); color: #fff; box-shadow: var(--nx-shadow-red);
}
body.home .nx-formcard__badge svg { width: 24px; height: 24px; }
body.home .nx-formcard h2, body.home .nx-formcard h3 { font-size: 1.18rem; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
body.home .nx-formcard__sub { color: var(--text-soft); font-size: .9rem; margin: 2px 0 20px; }
body.home .nx-formcard .form { gap: 14px; }
body.home .nx-formcard .field input,
body.home .nx-formcard .field select { border-radius: 12px; background: #fbfbfa; }
body.home .nx-formcard .field input:focus,
body.home .nx-formcard .field select:focus { background: #fff; }
body.home .nx-formcard__foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .8rem; color: var(--text-soft); }
body.home .nx-formcard__foot svg { width: 15px; height: 15px; color: #3f9d54; flex: none; }

/* Indicateur de défilement */
body.home .nx-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1;
  font-family: var(--font-display); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
body.home .nx-scroll__mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 12px; position: relative; }
body.home .nx-scroll__mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; border-radius: 2px; background: #fff; transform: translateX(-50%); animation: nx-wheel 1.8s var(--nx-ease) infinite; }
@keyframes nx-wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* =================================================================
   3. MARQUEE certifications
   ================================================================= */
body.home .nx-marquee {
  background: var(--nx-ink); color: rgba(255, 255, 255, .9);
  border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid var(--border);
  overflow: hidden; position: relative;
}
body.home .nx-marquee::before, body.home .nx-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14%; z-index: 2; pointer-events: none;
}
body.home .nx-marquee::before { left: 0; background: linear-gradient(90deg, var(--nx-ink), transparent); }
body.home .nx-marquee::after { right: 0; background: linear-gradient(270deg, var(--nx-ink), transparent); }
body.home .nx-marquee__track { display: flex; width: max-content; animation: nx-marquee 34s linear infinite; }
body.home .nx-marquee:hover .nx-marquee__track { animation-play-state: paused; }
body.home .nx-marquee__group { display: flex; align-items: center; }
body.home .nx-marquee__item {
  display: inline-flex; align-items: center; gap: 12px; padding: 20px 34px;
  font-family: var(--font-title); text-transform: uppercase; letter-spacing: .04em;
  font-size: .92rem; white-space: nowrap;
}
body.home .nx-marquee__item svg { width: 18px; height: 18px; color: var(--red); flex: none; }
body.home .nx-marquee__sep { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
@keyframes nx-marquee { to { transform: translateX(-50%); } }

/* =================================================================
   4. SERVICES — grille bento éditoriale
   ================================================================= */
body.home .nx-section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
body.home .nx-section--alt { background: var(--bg-alt); }
body.home .nx-sec-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px 48px; align-items: end; margin-bottom: 46px; }
body.home .nx-sec-head p { color: var(--text-soft); font-size: 1.04rem; line-height: 1.7; }
body.home .nx-sec-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
body.home .nx-sec-head--center p { margin-inline: auto; }

body.home .nx-bento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(216px, auto); gap: 16px;
}
body.home .nx-tile {
  position: relative; overflow: hidden; border-radius: var(--nx-radius-xl);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; color: #fff; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .08);
  background: var(--nx-ink);
  transition: transform .5s var(--nx-ease), box-shadow .5s var(--nx-ease);
  will-change: transform;
}
body.home .nx-tile:hover { box-shadow: var(--nx-shadow-float); }
body.home .nx-tile__img {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform .8s var(--nx-ease);
}
body.home .nx-tile:hover .nx-tile__img { transform: scale(1.12); }
/* Voile allégé : image nette en haut, dégradé concentré en bas pour le titre */
body.home .nx-tile__scrim {
  position: absolute; inset: 0; z-index: -1; transition: opacity .5s var(--nx-ease);
  background:
    linear-gradient(0deg, rgba(11, 10, 7, .9) 0%, rgba(11, 10, 7, .46) 24%, rgba(11, 10, 7, .04) 56%, rgba(11, 10, 7, 0) 100%),
    radial-gradient(85% 60% at 12% 134%, rgba(226, 6, 19, .22), transparent 60%);
}
body.home .nx-tile:hover .nx-tile__scrim { opacity: .9; }
/* On n'affiche que le titre : descriptions masquées */
body.home .nx-tile__desc { display: none; }
/* Lisibilité du titre par-dessus l'image */
body.home .nx-tile h3 { text-shadow: 0 1px 16px rgba(0, 0, 0, .6); }
body.home .nx-tile__cat { text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
/* Visuel principal : légère remontée de luminosité pour une image plus « propre » */
body.home .nx-tile--feature .nx-tile__img { filter: brightness(1.08) saturate(1.04); }
body.home .nx-tile__cat {
  font-family: var(--font-display); font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .72);
  margin-bottom: 10px; display: inline-flex; align-items: center; gap: 8px;
}
body.home .nx-tile__cat::before { content: ""; width: 18px; height: 2px; background: var(--red); border-radius: 2px; }
body.home .nx-tile h3 {
  font-family: var(--font-title); text-transform: uppercase; color: #fff;
  font-size: 1.16rem; letter-spacing: .01em; line-height: 1.1; margin: 0;
}
body.home .nx-tile__desc { color: rgba(255, 255, 255, .78); font-size: .95rem; line-height: 1.55; margin: 10px 0 0; max-width: 42ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--nx-ease), opacity .4s var(--nx-ease), margin .5s var(--nx-ease); }
body.home .nx-tile:hover .nx-tile__desc, body.home .nx-tile:focus-within .nx-tile__desc { max-height: 6em; opacity: 1; }
body.home .nx-tile__arrow {
  position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .45s var(--nx-ease), background .45s var(--nx-ease), border-color .45s var(--nx-ease);
}
body.home .nx-tile:hover .nx-tile__arrow { background: var(--red); border-color: var(--red); transform: rotate(-45deg) scale(1.05); }
body.home .nx-tile__arrow svg { width: 20px; height: 20px; }

body.home .nx-tile--feature { grid-column: span 2; grid-row: span 2; }
body.home .nx-tile--feature h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
body.home .nx-tile--feature .nx-tile__desc { opacity: 1; max-height: 6em; margin-top: 12px; font-size: 1rem; }

/* Tuile large (2 colonnes) — ex. borne mise en avant */
body.home .nx-tile--wide { grid-column: span 2; }
body.home .nx-tile--wide h3 { font-size: clamp(1.2rem, 1.9vw, 1.55rem); }
body.home .nx-tile--wide .nx-tile__desc { opacity: 1; max-height: 6em; margin-top: 10px; max-width: 46ch; }

/* Mise en avant borne : liseré rouge + badge */
body.home .nx-tile--spotlight { border-color: rgba(226, 6, 19, .55); box-shadow: 0 0 0 1px rgba(226, 6, 19, .25), var(--nx-shadow-float); }
body.home .nx-tile--spotlight .nx-tile__scrim { background:
  linear-gradient(180deg, rgba(11, 10, 7, .1) 0%, rgba(11, 10, 7, .5) 50%, rgba(11, 10, 7, .93) 100%),
  radial-gradient(120% 100% at 15% 120%, rgba(226, 6, 19, .5), transparent 58%); }
body.home .nx-tile__badge {
  position: absolute; top: 20px; left: 26px; z-index: 1;
  font-family: var(--font-display); font-weight: 600; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: var(--red); border-radius: 100px; padding: 6px 13px; box-shadow: var(--nx-shadow-red);
}

/* Tuile CTA « projet global » — sans photo, verre sombre + motif */
body.home .nx-tile--cta {
  grid-column: span 2; grid-row: span 1;
  flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px;
  background: linear-gradient(120deg, #17140d, var(--nx-ink));
}
body.home .nx-tile--cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%); mask-image: linear-gradient(90deg, #000, transparent 72%);
}
body.home .nx-tile--cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 140% at 100% 50%, rgba(226, 6, 19, .35), transparent 60%);
}
body.home .nx-tile--cta .nx-tile__arrow { position: static; }
body.home .nx-tile--cta div { max-width: 60ch; }
body.home .nx-tile--cta h3 { font-size: 1.25rem; }
body.home .nx-tile--cta p { color: rgba(255, 255, 255, .78); margin: 8px 0 0; font-size: .96rem; }

/* =================================================================
   5. SHOWCASE — image + carte statistique flottante
   ================================================================= */
body.home .nx-showcase { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
body.home .nx-showcase__media { position: relative; }
body.home .nx-showcase__frame {
  position: relative; border-radius: var(--nx-radius-2xl); overflow: hidden;
  aspect-ratio: 4 / 3.2; box-shadow: var(--nx-shadow-float);
  border: 1px solid var(--nx-hair);
}
body.home .nx-showcase__frame img { width: 100%; height: 100%; object-fit: cover; }
body.home .nx-showcase__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 7, .28)); }
body.home .nx-showcase__badge {
  position: absolute; z-index: 2; left: -18px; bottom: 30px;
  background: rgba(20, 18, 12, .72); color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--nx-glass-line-2); border-radius: 20px;
  padding: 20px 24px; box-shadow: var(--nx-shadow-float); min-width: 210px;
}
body.home .nx-showcase__badge .n { font-family: var(--font-title); font-size: 2rem; line-height: 1; color: #fff; }
body.home .nx-showcase__badge .n small { color: var(--red); font-size: 1.3rem; }
body.home .nx-showcase__badge .t { color: rgba(255, 255, 255, .75); font-size: .84rem; margin-top: 6px; }
body.home .nx-showcase__badge hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .16); margin: 14px 0; }
body.home .nx-showcase__stamp {
  position: absolute; z-index: 2; right: -14px; top: 26px;
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(150deg, var(--red), var(--red-900)); color: #fff;
  display: grid; place-items: center; text-align: center; box-shadow: var(--nx-shadow-red);
  font-family: var(--font-title); font-size: .62rem; letter-spacing: .1em; line-height: 1.3; padding: 8px;
  animation: nx-spin 22s linear infinite;
}
@keyframes nx-spin { to { transform: rotate(360deg); } }
body.home .nx-showcase__stamp b { font-size: 1.5rem; display: block; }

body.home .nx-checklist { display: grid; gap: 4px; margin: 26px 0 30px; }
body.home .nx-checklist li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--nx-hair); }
body.home .nx-checklist li:last-child { border-bottom: 0; }
body.home .nx-checklist .ck { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--red-050); color: var(--red); transition: var(--transition); }
body.home .nx-checklist li:hover .ck { background: var(--red); color: #fff; transform: rotate(-6deg); }
body.home .nx-checklist svg { width: 17px; height: 17px; }
body.home .nx-checklist b { font-family: var(--font-display); font-weight: 600; display: block; margin-bottom: 2px; }
body.home .nx-checklist span { color: var(--text-soft); font-size: .95rem; line-height: 1.55; }

/* =================================================================
   6. PROCESS — étapes sur fond sombre
   ================================================================= */
body.home .nx-process { background: var(--nx-ink); color: #fff; position: relative; overflow: hidden; }
body.home .nx-process::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 92% 82% at 50% 0%, #000, transparent 74%);
  mask-image: radial-gradient(ellipse 92% 82% at 50% 0%, #000, transparent 74%);
}
body.home .nx-process::after {
  content: ""; position: absolute; top: -20%; left: 50%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(226, 6, 19, .16), transparent 60%);
}
body.home .nx-process > .container { position: relative; z-index: 1; }
body.home .nx-process .nx-h2, body.home .nx-process h3 { color: #fff; }
body.home .nx-process .nx-sec-head p { color: rgba(255, 255, 255, .7); }
body.home .nx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
body.home .nx-step {
  position: relative; padding: 28px 24px 26px; border-radius: 20px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .45s var(--nx-ease), background .45s var(--nx-ease), border-color .45s var(--nx-ease);
}
body.home .nx-step:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .07); border-color: rgba(226, 6, 19, .5); }
body.home .nx-step__n {
  font-family: var(--font-title); font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .32);
  margin-bottom: 18px; transition: -webkit-text-stroke .4s var(--nx-ease), color .4s var(--nx-ease);
}
body.home .nx-step:hover .nx-step__n { color: var(--red); -webkit-text-stroke: 1.4px transparent; }
body.home .nx-step h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 8px; }
body.home .nx-step p { color: rgba(255, 255, 255, .68); font-size: .93rem; line-height: 1.55; margin: 0; }
body.home .nx-step__ic { position: absolute; top: 26px; right: 22px; width: 22px; height: 22px; color: var(--red); opacity: .8; }

/* =================================================================
   7. FIGURES — ruban de chiffres (compteurs honnêtes)
   ================================================================= */
body.home .nx-figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--nx-hair); border-radius: var(--nx-radius-xl); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
body.home .nx-figure { padding: clamp(26px, 3vw, 40px) 28px; position: relative; text-align: center; }
body.home .nx-figure + .nx-figure::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--nx-hair); }
body.home .nx-figure__n { font-family: var(--font-title); text-transform: uppercase; font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1; color: var(--black); letter-spacing: .01em; }
body.home .nx-figure__n .u { color: var(--red); }
body.home .nx-figure__t { color: var(--text-soft); font-size: .92rem; margin-top: 12px; line-height: 1.5; }

/* =================================================================
   8. AIDES — split image traitée + contenu (contenu vérifié conservé)
   ================================================================= */
body.home .nx-aides { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
body.home .nx-aides__media { position: relative; border-radius: var(--nx-radius-2xl); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--nx-shadow-float); border: 1px solid var(--nx-hair); }
body.home .nx-aides__media img { width: 100%; height: 100%; object-fit: cover; }
body.home .nx-aides__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, transparent 40%, rgba(226, 6, 19, .18)); }
body.home .nx-callout {
  margin-top: 26px; display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(140deg, #17140d, var(--nx-ink)); color: #fff;
  border-radius: 18px; padding: 22px 24px; position: relative; overflow: hidden;
}
body.home .nx-callout::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 140% at 100% 0%, rgba(226, 6, 19, .35), transparent 55%); z-index: 0; }
body.home .nx-callout > * { position: relative; z-index: 1; }
body.home .nx-callout .ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--red); color: #fff; }
body.home .nx-callout .ic svg { width: 22px; height: 22px; }
body.home .nx-callout strong { color: #fff; }
body.home .nx-callout p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .98rem; line-height: 1.6; }

/* Visuel « aides » sur-mesure (remplace l'illustration hors charte) */
body.home .nx-aides__media--viz::after { display: none; }
body.home .nx-aidviz {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: linear-gradient(150deg, #17140d, var(--nx-ink));
  color: #fff; padding: clamp(24px, 3.6vw, 40px);
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
body.home .nx-aidviz::before {
  content: ""; position: absolute; z-index: 0; right: -12%; top: -18%;
  width: 65%; height: 65%; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 6, 19, .42), transparent 65%); filter: blur(22px);
}
body.home .nx-aidviz > * { position: relative; z-index: 2; }
body.home .nx-aidviz__euro {
  position: absolute; z-index: 1; right: 4%; bottom: -12%;
  font-family: var(--font-title); font-size: clamp(9rem, 20vw, 15rem); line-height: 1;
  color: rgba(255, 255, 255, .05); pointer-events: none;
}
body.home .nx-aidviz__tag {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  padding: 8px 15px; border-radius: 100px;
}
body.home .nx-aidviz__head b {
  font-family: var(--font-title); text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; display: block; margin-bottom: 6px;
}
body.home .nx-aidviz__head span { color: rgba(255, 255, 255, .7); font-size: .98rem; }
body.home .nx-aidviz__chips { display: flex; flex-wrap: wrap; gap: 10px; }
body.home .nx-aidviz__chips span {
  font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  padding: 9px 14px; border-radius: 10px;
}
body.home .nx-aidviz__chips span:first-child { background: var(--red); border-color: var(--red); box-shadow: var(--nx-shadow-red); }
body.home .nx-aidviz__foot { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .82); font-size: .92rem; margin-top: 2px; }
body.home .nx-aidviz__foot svg { width: 18px; height: 18px; color: var(--red); flex: none; }

/* =================================================================
   9. MÉTHODE — cartes « ce que nous vérifions »
   ================================================================= */
body.home .nx-method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
body.home .nx-mcard {
  position: relative; background: #fff; border: 1px solid var(--nx-hair);
  border-radius: var(--nx-radius-xl); padding: 32px 30px; overflow: hidden;
  transition: transform .45s var(--nx-ease), box-shadow .45s var(--nx-ease), border-color .45s var(--nx-ease);
}
body.home .nx-mcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), transparent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--nx-ease); }
body.home .nx-mcard:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow-float); border-color: transparent; }
body.home .nx-mcard:hover::before { transform: scaleX(1); }
body.home .nx-mcard__n { font-family: var(--font-title); font-size: 1rem; color: var(--red); letter-spacing: .05em; }
body.home .nx-mcard__tag { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
body.home .nx-mcard__row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
body.home .nx-mcard h3 { font-size: 1.12rem; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 10px; }
body.home .nx-mcard p { color: var(--text-soft); font-size: .97rem; line-height: 1.65; margin: 0; }

/* =================================================================
   10. BLOG premium
   ================================================================= */
body.home .nx-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
body.home .nx-post {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--nx-hair); border-radius: var(--nx-radius-xl); overflow: hidden;
  transition: transform .45s var(--nx-ease), box-shadow .45s var(--nx-ease);
}
body.home .nx-post:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow-float); }
body.home .nx-post__media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
body.home .nx-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--nx-ease); }
body.home .nx-post:hover .nx-post__media img { transform: scale(1.06); }
body.home .nx-post__cat { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-display); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(11, 10, 7, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .18); padding: 7px 12px; border-radius: 100px; }
body.home .nx-post__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
body.home .nx-post h3 { font-size: 1.08rem; line-height: 1.3; text-transform: none; letter-spacing: 0; margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; }
body.home .nx-post h3 a { transition: color .3s var(--nx-ease); }
body.home .nx-post:hover h3 a { color: var(--red); }
body.home .nx-post p { color: var(--text-soft); font-size: .94rem; line-height: 1.6; flex: 1; margin: 0; }
body.home .nx-post__meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--nx-hair); font-size: .82rem; color: #6c6b65; }
body.home .nx-post__meta svg { width: 15px; height: 15px; color: var(--red); }

/* =================================================================
   11. CTA final cinématographique
   ================================================================= */
body.home .nx-cta-wrap { padding: clamp(64px, 9vw, 116px) 0; }
body.home .nx-cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--nx-ink); color: #fff; border-radius: var(--nx-radius-2xl);
  padding: clamp(44px, 7vw, 84px) clamp(28px, 5vw, 72px); text-align: center;
  border: 1px solid rgba(255, 255, 255, .08);
}
body.home .nx-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 82% 92% at 50% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 82% 92% at 50% 0%, #000, transparent 72%);
}
body.home .nx-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 50% -10%, rgba(226, 6, 19, .5), transparent 58%); }
body.home .nx-cta h2 { font-family: var(--font-title); text-transform: uppercase; color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.04; letter-spacing: .01em; margin: 16px 0 0; }
body.home .nx-cta p { color: rgba(255, 255, 255, .8); font-size: clamp(1.02rem, 1.4vw, 1.16rem); max-width: 560px; margin: 18px auto 32px; line-height: 1.65; }
body.home .nx-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
body.home .nx-cta__mini { margin-top: 26px; font-size: .86rem; color: rgba(255, 255, 255, .6); display: inline-flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
body.home .nx-cta__mini span { display: inline-flex; align-items: center; gap: 8px; }
body.home .nx-cta__mini svg { width: 16px; height: 16px; color: var(--red); }

/* --- Hero sans formulaire : une seule colonne, contenu à gauche --- */
body.home .nx-hero__inner--solo { grid-template-columns: min(680px, 100%); }

/* --- Section devis (formulaire déplacé hors du hero) --- */
body.home #devis { overflow: hidden; }
body.home .nx-quote { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
body.home .nx-quote__intro { max-width: 560px; }
body.home .nx-quote__contact { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-top: 4px; }
body.home .nx-quote__or { color: var(--text-soft); font-size: .92rem; position: relative; padding-left: 2px; }

/* =================================================================
   12. Responsive
   ================================================================= */
@media (max-width: 1080px) {
  body.home .nx-tile--feature { grid-row: span 2; }
}
@media (max-width: 960px) {
  /* Hero mobile « contenu d'abord » : fond sombre épuré (message + CTA lisibles),
     puis la maison ENTIÈRE dans une carte — l'image n'est plus recadrée. */
  body.home .nx-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 8px); padding-bottom: 28px; }
  body.home .nx-hero > .container { order: 1; }
  body.home .nx-hero__bg {
    order: 2; position: relative; inset: auto; z-index: 0;
    animation: none; transform: none;
    margin: auto clamp(18px, 4vw, 28px) 0;
    aspect-ratio: 16 / 10.5; border-radius: 22px;
    background-size: cover; background-position: 55% 46%;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: var(--nx-shadow-float);
  }
  body.home .nx-hero__wash { display: none; }
  body.home .nx-hero__inner { grid-template-columns: 1fr; padding: 14px 0 26px; }
  body.home .nx-hero__content { max-width: 100%; }
  body.home .nx-hero__aside { max-width: 460px; }
  body.home .nx-scroll { display: none; }
  body.home .nx-sec-head { grid-template-columns: 1fr; }
  body.home .nx-quote { grid-template-columns: 1fr; }
  body.home .nx-showcase, body.home .nx-aides { grid-template-columns: 1fr; }
  body.home .nx-aides__media { order: -1; }
  body.home .nx-bento { grid-template-columns: repeat(2, 1fr); }
  body.home .nx-tile--feature { grid-column: span 2; grid-row: span 2; }
  body.home .nx-tile--cta { grid-column: span 2; flex-direction: column; align-items: flex-start; text-align: left; }
  body.home .nx-steps { grid-template-columns: repeat(2, 1fr); }
  body.home .nx-method { grid-template-columns: 1fr; }
  body.home .nx-posts { grid-template-columns: 1fr; }
  body.home .nx-figures { grid-template-columns: repeat(2, 1fr); }
  body.home .nx-figure:nth-child(3)::before { display: none; }
  body.home .nx-figure:nth-child(1)::after, body.home .nx-figure:nth-child(2)::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 1px; background: var(--nx-hair); }
}
@media (max-width: 620px) {
  /* « votre énergie » doit tenir sur UNE ligne (8vw calibré Microgramma ≈ .89em/car.) */
  body.home .nx-hero h1 { font-size: clamp(1.8rem, 8vw, 2.9rem); }
  body.home .nx-bento { grid-template-columns: 1fr; }
  body.home .nx-tile { min-height: 260px; }
  body.home .nx-tile--feature { grid-column: span 1; grid-row: span 1; min-height: 320px; }
  body.home .nx-tile--wide { grid-column: span 1; }
  body.home .nx-tile--cta { grid-column: span 1; }
  body.home .nx-steps { grid-template-columns: 1fr; }
  body.home .nx-tile__desc { opacity: 1; max-height: 6em; margin-top: 10px; }
  body.home .nx-showcase__badge { left: 12px; bottom: 12px; }
  body.home .nx-showcase__stamp { right: 10px; top: 10px; width: 78px; height: 78px; }
  body.home .nx-hero__cta .nx-btn { width: 100%; }
  body.home .nx-hero__spec { display: none; }
}

/* =================================================================
   14. Sur-mesure : titre cinétique, ligne technique, schéma
   ================================================================= */

/* Verbe rouge animé dans le titre du hero */
body.home .nx-rotword {
  display: inline-block; color: var(--red);
  text-shadow: 0 0 38px rgba(226, 6, 19, .45);
  transition: opacity .34s var(--nx-ease), transform .34s var(--nx-ease);
  will-change: opacity, transform;
}
body.home .nx-rotword.is-out { opacity: 0; transform: translateY(-.24em); }

/* Ligne technique (esprit dossier d'ingénierie) sous le hero */
body.home .nx-hero__spec {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-display); font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}
body.home .nx-hero__spec span { display: inline-flex; align-items: center; gap: 9px; }
body.home .nx-hero__spec span::before { content: ""; width: 6px; height: 6px; border: 1px solid rgba(255, 255, 255, .4); }
body.home .nx-hero__spec span:last-child::before { display: none; }
body.home .nx-hero__spec span:last-child::after { content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

/* Numéro d'index éditorial dans les surtitres */
body.home .nx-kicker__idx { font-variant-numeric: tabular-nums; opacity: .55; margin-right: 2px; }
body.home .nx-kicker__idx::after { content: ""; display: inline-block; width: 16px; height: 1px; background: currentColor; opacity: .5; margin: 0 8px 3px; vertical-align: middle; }

/* --- Schéma « écosystème énergétique » --- */
body.home .nx-flow { background: var(--nx-ink); color: #fff; position: relative; overflow: hidden; }
body.home .nx-flow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 45%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 100% 70% at 50% 45%, #000, transparent 78%);
}
body.home .nx-flow::after {
  content: ""; position: absolute; top: 20%; left: 50%; width: 70vw; height: 40vw; max-width: 900px; max-height: 460px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse, rgba(226, 6, 19, .14), transparent 62%);
}
body.home .nx-flow > .container { position: relative; z-index: 1; }
body.home .nx-flow .nx-h2, body.home .nx-flow h2 { color: #fff; }
body.home .nx-flow .nx-sec-head p { color: rgba(255, 255, 255, .72); }

body.home .nx-diagram { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 52px; }
body.home .nx-node { flex: 0 0 auto; width: 148px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
body.home .nx-node__ic {
  width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; position: relative;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .45s var(--nx-ease), box-shadow .45s var(--nx-ease), border-color .45s var(--nx-ease);
}
body.home .nx-node__ic svg { width: 34px; height: 34px; }
body.home .nx-node--on .nx-node__ic {
  border-color: rgba(226, 6, 19, .55);
  box-shadow: 0 0 34px -8px rgba(226, 6, 19, .6), inset 0 0 22px -10px rgba(226, 6, 19, .6);
  color: #fff;
}
body.home .nx-node--on .nx-node__ic::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid rgba(226, 6, 19, .35); animation: nx-ring 3s var(--nx-ease) infinite;
}
@keyframes nx-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.28); opacity: 0; } }
body.home .nx-node:hover .nx-node__ic { transform: translateY(-4px); border-color: rgba(226, 6, 19, .8); }
body.home .nx-node b { font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: #fff; }
body.home .nx-node small { font-family: var(--font-display); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

body.home .nx-link {
  flex: 1 1 auto; min-width: 22px; height: 2px; margin-top: 37px; position: relative; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
}
body.home .nx-pulse {
  position: absolute; top: 50%; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 14px 2px rgba(226, 6, 19, .8);
  transform: translate(-50%, -50%); animation: nx-flow-move 2.4s cubic-bezier(.5, 0, .5, 1) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes nx-flow-move { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

body.home .nx-flow__note {
  margin-top: 40px; text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .68);
}
body.home .nx-flow__note b { color: #fff; font-weight: 600; }

@media (max-width: 860px) {
  body.home .nx-diagram { flex-direction: column; align-items: flex-start; max-width: 320px; margin-inline: auto; gap: 0; }
  body.home .nx-node { flex-direction: row; align-items: center; width: 100%; text-align: left; gap: 16px; }
  body.home .nx-node__ic { width: 60px; height: 60px; border-radius: 18px; }
  body.home .nx-node__ic svg { width: 28px; height: 28px; }
  body.home .nx-link { width: 2px; height: 34px; min-width: 0; flex: none; margin: 4px 0 4px 29px; }
  body.home .nx-pulse { animation-name: nx-flow-move-v; top: 0; left: 50%; }
  @keyframes nx-flow-move-v { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
}

/* =================================================================
   13. Mouvement réduit
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  body.home .nx-hero__bg,
  body.home .nx-marquee__track,
  body.home .nx-showcase__stamp,
  body.home .nx-kicker__dot::after,
  body.home .nx-scroll__mouse::after,
  body.home .nx-pulse,
  body.home .nx-node--on .nx-node__ic::after { animation: none !important; }
  body.home .nx-pulse { display: none; }
  body.home .nx-rotword { transition: none !important; }
  body.home .nx-hero__bg { transform: scale(1.06); }
  body.home::after { display: none; }
}

/* Overrides responsive placés en fin de fichier (priorité sur la section « sur-mesure ») */
@media (max-width: 620px) {
  body.home .nx-hero__spec { display: none; }
}

/* Pastille hero compacte sur téléphone : une seule ligne garantie
   (texte raccourci via .kick-x dans style.css + espacement resserré) */
@media (max-width: 540px) {
  body.home .nx-hero .nx-kicker { font-size: .72rem; letter-spacing: .12em; gap: 9px; padding: 8px 14px 8px 12px; }
}

/* Note Google dans le hero (fond sombre) et en tête de section claire */
body.home .nx-hero .grating { margin-top: 18px; }
body.home .nx-hero .grating__txt { color: rgba(255, 255, 255, .85); }
body.home .nx-sec-head .grating { margin-top: 16px; }
body.home .nx-sec-head .grating__txt { color: var(--black); }

/* --- Hero adaptatif à la HAUTEUR d'écran : le contenu tient toujours --- */
@media (min-width: 961px) and (max-height: 960px) {
  body.home .nx-hero__inner { padding-top: clamp(20px, 2.5vh, 40px); padding-bottom: clamp(28px, 4vh, 52px); }
  body.home .nx-hero h1 { font-size: clamp(1.85rem, 4.6vw, 3.2rem); margin-top: 16px; }
  body.home .nx-hero__lead { margin: 16px 0 22px; }
  body.home .nx-hero__trust { margin-top: 20px; }
  body.home .nx-hero__spec { margin-top: 18px; padding-top: 12px; }
  body.home .nx-scroll { display: none; }
}
@media (min-width: 961px) and (max-height: 800px) {
  body.home .nx-hero h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
  body.home .nx-hero__lead { font-size: 1rem; line-height: 1.5; margin: 12px 0 18px; }
  body.home .nx-hero__spec { display: none; }
  body.home .nx-hero .nx-kicker { margin-bottom: 0; }
  body.home .nx-hero__trust { margin-top: 16px; }
}
