﻿/* =========================================================
   DSR ELEC — Style inspiré Tesla : achromatique + bleu CTA
   Bleu et jaune repris du logo DSR ELEC
   ========================================================= */
:root {
  --blue: #2b7bd6;
  --blue-hover: #1f63b3;
  --yellow: #f6b91b;
  --white: #ffffff;
  --off-white: #eeeeee;
  --parchment: #e5e3df;
  --border: #cccccc;
  --gray: #8e8e8e;
  --steel: #5c5e62;
  --charcoal: #393c41;
  --onyx: #171a20;
  --black: #000000;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--onyx); color: var(--white); }

/* ---------- Typo ---------- */
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 16px;
}
.section--dark .eyebrow { color: #a2a5ab; }
.display {
  font-size: clamp(44px, 8.5vw, 112px); font-weight: 500; line-height: 1.02;
  letter-spacing: -.035em; color: var(--onyx);
}
.heading-xl {
  font-size: clamp(36px, 6vw, 72px); font-weight: 500; line-height: 1.05;
  letter-spacing: -.03em; color: var(--onyx);
}
.heading-lg {
  font-size: clamp(30px, 4.5vw, 52px); font-weight: 500; line-height: 1.1;
  letter-spacing: -.025em; color: var(--onyx);
}
.lead { font-size: clamp(15px, 1.4vw, 18px); color: var(--steel); max-width: 52ch; margin-top: 16px; }
.section--dark { background: var(--onyx); color: #d0d1d3; }
.section--dark .display,
.section--dark .heading-xl,
.section--dark .heading-lg { color: var(--white); }
.section--dark .lead { color: #a2a5ab; }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; height: 44px; padding: 4px 24px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; letter-spacing: .01em; overflow: hidden; isolation: isolate;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}
.btn--sm { min-width: 0; height: 36px; padding: 4px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary::after { /* reflet qui balaye au survol */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover { background: var(--blue-hover); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost, .btn--ghost-light { border: 1.5px solid currentColor; }
.btn--ghost { color: var(--onyx); }
.btn--ghost-light { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost::before, .btn--ghost-light::before { /* remplissage qui monte */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.btn--ghost::before { background: var(--onyx); }
.btn--ghost-light::before { background: var(--white); }
.btn--ghost:hover { color: var(--white); }
.btn--ghost-light:hover { color: var(--onyx); border-color: var(--white); }
.btn--ghost:hover::before, .btn--ghost-light:hover::before { transform: scaleY(1); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--onyx);
  display: grid; place-content: center; justify-items: center; gap: 24px;
  transition: clip-path 1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader { background: #000; }
.preloader__logo {
  width: clamp(180px, 26vw, 260px); height: auto; opacity: 0; transform: scale(.85);
  animation: logoIn 1s var(--ease) forwards, logoFlicker 1.2s .6s steps(1) forwards;
}
@keyframes logoIn { to { opacity: 1; transform: none; } }
@keyframes logoFlicker { 10% { filter: brightness(1.8); } 15% { filter: brightness(.6); } 20% { filter: brightness(1.5); } 30%,100% { filter: none; } }
.preloader__bar { width: 120px; height: 2px; background: #2c2f36; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--yellow); animation: load 1.3s var(--ease) forwards; transform-origin: left; transform: scaleX(0); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--white); } }
@keyframes load { to { transform: scaleX(1); } }

/* ---------- Curseur ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 999; mix-blend-mode: difference; display: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid #fff; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255,255,255,1); }
@media (pointer: fine) { .cursor { display: block; } }

/* ---------- Progression ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; }
.progress span { display: block; height: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: var(--white);
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 0;
  transition: transform .6s var(--ease), padding .5s var(--ease);
  pointer-events: none;
}
.header.is-hidden { transform: translateY(calc(-100% - 12px)); }
.header__bar {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 20px; max-width: 1320px; margin: 0 auto;
  padding: 8px 8px 8px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  transition: background-color .5s, border-color .5s, box-shadow .5s, padding .5s var(--ease), backdrop-filter .5s;
}
/* après le haut de page : barre flottante en verre sombre */
.header.is-scrolled { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.header.is-scrolled .header__bar {
  background: rgba(11, 12, 15, .82); border-color: rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.7);
}
.header.is-scrolled .header__bar::after { /* fine ligne de progression dans la barre */
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--yellow) var(--progress, 0%), transparent var(--progress, 0%));
  opacity: .8;
}

.logo { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 20px; letter-spacing: .04em; flex: none; }
.logo__elec { color: var(--yellow); font-weight: 700; letter-spacing: .16em; font-size: 15px; }
.logo__bolt { width: 13px; transition: transform .5s var(--ease); }
.logo__bolt path { fill: var(--yellow); }
.logo:hover .logo__bolt { animation: zap .5s steps(2) 2; transform: scale(1.25) rotate(-10deg); }
@keyframes zap { 50% { opacity: .2; } }

.nav { position: relative; display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: var(--r-md); }
.nav__pill { /* surbrillance qui glisse d'un lien à l'autre */
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-sm);
  background: rgba(255,255,255,.12); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav__pill.is-on { opacity: 1; }
.nav__link {
  position: relative; z-index: 1; padding: 8px 14px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.72); border-radius: var(--r-sm); transition: color .3s;
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link::after { /* point jaune sous la section en cours */
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 6px var(--yellow); transform: scale(0); transition: transform .4s var(--ease);
}
.nav__link.is-active::after { transform: scale(1); }

.header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header__actions > * { flex: none; }
.header__actions .btn { width: auto; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.14);
  transition: color .3s, border-color .3s, background-color .3s;
}
.header__phone svg { width: 15px; fill: currentColor; transition: transform .4s var(--ease); }
.header__phone:hover { color: var(--yellow); border-color: rgba(246,185,27,.5); background: rgba(246,185,27,.06); }
.header__phone:hover svg { animation: ring .5s ease-in-out 2; }
@keyframes ring { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }

.burger { display: none; flex: none; width: 40px; height: 40px; position: relative; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.14); }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 19px; right: 16px; } .burger span:nth-child(3) { top: 25px; }
.burger:hover span:nth-child(2) { right: 11px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* Menu mobile plein écran */
.mmenu {
  position: fixed; inset: 0; z-index: 99; background: #0b0c0f; color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  clip-path: circle(0 at calc(100% - 44px) 44px); visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.mmenu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s; }
.mmenu__bolt { position: absolute; right: -8%; bottom: 8%; width: 55vw; max-width: 340px; opacity: .05; pointer-events: none; }
.mmenu__bolt path { fill: var(--yellow); }
.mmenu__nav { display: flex; flex-direction: column; }
.mmenu__link {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid #1a1c21;
  font-size: clamp(26px, 7vw, 40px); font-weight: 600; letter-spacing: -.02em; color: var(--white);
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease), color .3s, padding .4s var(--ease);
}
.mmenu__link em { font-style: normal; font-size: 12px; font-weight: 500; color: #5c5e62; letter-spacing: .1em; }
.mmenu.is-open .mmenu__link { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * 50ms); }
.mmenu__link:hover, .mmenu__link.is-active { color: var(--yellow); padding-left: 8px; }
.mmenu__foot { display: grid; gap: 14px; margin-top: 32px; opacity: 0; transition: opacity .6s .6s; }
.mmenu.is-open .mmenu__foot { opacity: 1; }
.mmenu__mail { color: #a2a5ab; font-size: 14px; text-align: center; }
.mmenu__qualif { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; color: #6b6e75; }
.mmenu__qualif img { width: 28px; height: auto; background: #fff; border-radius: 4px; padding: 3px; }
.header.menu-open .header__bar { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header.menu-open .header__bar::after { display: none; }
@media (min-width: 1181px) { .mmenu { display: none; } }
@media (max-width: 1320px) { .header__phone span { display: none; } .header__phone { width: 36px; padding: 0; justify-content: center; } }
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__bar { justify-content: space-between; }
}
@media (max-width: 520px) { .header__cta { display: none; } }

/* ---------- Reveal & split ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
[data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .char {
  display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
  transition-delay: calc(var(--i) * 28ms);
}
[data-split].is-in .char { transform: none; opacity: 1; }

/* ---------- Structure : chapitres & transitions entre les parties ---------- */
.chapter-sec { position: relative; }
/* en-tête de chapitre : numéro + trait + nom */
.chapter { display: flex; align-items: center; gap: 12px; }
.chapter b { color: var(--yellow); font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.chapter i { display: block; width: 0; height: 1px; background: currentColor; opacity: .5; transition: width 1.1s var(--ease) calc(var(--d, 0s) + .35s); }
.chapter.is-in i { width: 44px; }

/* Sommaire latéral */
.toc {
  position: fixed; right: 20px; top: 50%; z-index: 90; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px; mix-blend-mode: difference;
  opacity: 0; pointer-events: none; transition: opacity .5s;
}
.toc.is-on { opacity: 1; pointer-events: auto; }
.toc__item { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 20px; color: #fff; }
.toc__item span { display: block; width: 14px; height: 2px; border-radius: 1px; background: currentColor; opacity: .35; transition: width .45s var(--ease), opacity .3s; }
.toc__item em { font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .4s var(--ease); }
.toc:hover .toc__item em { opacity: .55; transform: none; }
.toc__item:hover em, .toc__item.is-active em { opacity: 1; transform: none; }
.toc__item:hover span { opacity: .8; width: 22px; }
.toc__item.is-active span { width: 34px; opacity: 1; }
.toc:not(:hover) .toc__item.is-active em { opacity: 0; } /* au repos, seul le trait actif s'allonge */
@media (max-width: 1100px) { .toc { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  text-align: center; overflow: hidden; padding: 120px var(--gutter) 80px;
  background: radial-gradient(ellipse at 50% 120%, #2b2f38 0%, var(--onyx) 60%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid {
  position: absolute; inset: -50% -10% 0; pointer-events: none;
  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;
  transform: perspective(600px) rotateX(60deg) translateY(var(--gy, 0px));
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 70%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 70%);
  animation: gridMove 6s linear infinite;
}
@keyframes gridMove { to { background-position: 0 64px, 0 0; } }
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1100px; will-change: transform, opacity; }
.hero .actions { justify-content: center; }
.hero { --px: 0; --py: 0; padding-top: 128px; padding-bottom: 48px; }

/* halo + grand éclair qui suivent la souris */
.hero__orb {
  position: absolute; left: 50%; top: 42%; width: 70vmin; height: 70vmin; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(246,185,27,.16), rgba(43,123,214,.08) 45%, transparent 70%);
  transform: translate(calc(-50% + var(--px) * 60px), calc(-50% + var(--py) * 40px));
  transition: transform 1.2s var(--ease); animation: orb 7s ease-in-out infinite;
}
@keyframes orb { 50% { opacity: .6; } }
.hero__bolt {
  position: absolute; left: 50%; top: 44%; height: 88vmin; pointer-events: none; overflow: visible;
  transform: translate(calc(-50% + var(--px) * -26px), calc(-50% + var(--py) * -18px)) rotate(8deg);
  transition: transform 1.4s var(--ease);
}
.hero__bolt path {
  fill: rgba(246,185,27,.035); stroke: rgba(246,185,27,.35); stroke-width: .35; stroke-linejoin: round;
  stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 3s 1.4s var(--ease) forwards, boltGlow 4s 4.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(246,185,27,.35));
}
@keyframes boltGlow { 50% { stroke: rgba(246,185,27,.12); } 52% { stroke: rgba(246,185,27,.5); } 54% { stroke: rgba(246,185,27,.2); } }

/* badge qualification */
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 7px 14px 7px 12px;
  border-radius: 999px; border: 1px solid rgba(246,185,27,.3); background: rgba(246,185,27,.06);
  font-size: 13px; color: #d0d1d3; transition: border-color .3s, background-color .3s, opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
.hero__badge strong { color: var(--white); font-weight: 600; }
.hero__badge:hover { border-color: var(--yellow); background: rgba(246,185,27,.12); }
.hero__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.hero__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--yellow); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hero__badge-arrow { color: var(--yellow); transition: transform .4s var(--ease); }
.hero__badge:hover .hero__badge-arrow { transform: translateX(4px); }

/* mot accentué du titre */
.word--accent .char {
  background: linear-gradient(100deg, #fff 0%, var(--yellow) 35%, #ffe28a 50%, var(--yellow) 65%, #fff 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: accentShine 6s 2.5s linear infinite;
}
@keyframes accentShine { to { background-position: -300% 0; } }

/* phrase aux mots qui défilent */
.hero__rotator { margin-top: 20px; font-size: clamp(16px, 1.7vw, 21px); line-height: 1.5; color: #a2a5ab; }
.rotator { display: inline-block; vertical-align: bottom; height: 1.5em; overflow: hidden; transition: width .6s var(--ease); }
.rotator__track { display: flex; flex-direction: column; transition: transform .7s var(--ease); }
.rotator__track span { display: block; width: max-content; height: 1.5em; white-space: nowrap; color: var(--white); font-weight: 600; text-align: left; }

.hero__call svg { width: 16px; fill: currentColor; margin-right: 8px; }
.hero__call:hover svg { animation: ring .5s ease-in-out 2; }

/* preuves de confiance */
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 28px; font-size: 13px; color: #8e9096; }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: rgba(246,185,27,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23f6b91b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* raccourcis services */
.hero__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; margin-top: clamp(40px, 7vh, 72px); }
.hcard {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; overflow: hidden;
  border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .4s, background-color .4s, transform .5s var(--ease), opacity 1s var(--ease) var(--d, 0s);
}
.hcard::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; background: radial-gradient(220px circle at var(--mx) var(--my), rgba(246,185,27,.14), transparent 60%); }
.hcard:hover { border-color: rgba(246,185,27,.45); transform: translateY(-4px); }
.hcard:hover::before { opacity: 1; }
.hcard > * { position: relative; }
.hcard__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: rgba(246,185,27,.1); transition: background-color .4s, transform .5s var(--ease); }
.hcard__icon svg { width: 22px; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hcard:hover .hcard__icon { background: var(--yellow); transform: rotate(-6deg); }
.hcard:hover .hcard__icon svg { stroke: #000; }
.hcard__txt { display: flex; flex-direction: column; min-width: 0; }
.hcard__txt strong { font-size: 15px; font-weight: 600; color: var(--white); }
.hcard__txt em { font-style: normal; font-size: 12.5px; color: #8e9096; }
.hcard__arrow { margin-left: auto; color: #6b6e75; transition: transform .4s var(--ease), color .3s; }
.hcard:hover .hcard__arrow { color: var(--yellow); transform: translateX(4px); }
@media (max-width: 860px) {
  .hero__cards { grid-template-columns: 1fr; gap: 8px; }
  .hcard { padding: 12px 14px; }
}

/* ---------- Showcases (sections produit plein écran) ---------- */
.showcase {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  padding: 120px var(--gutter) 80px; gap: 48px;
}
.showcase--light { background: linear-gradient(180deg, var(--white), var(--off-white)); }
.showcase:nth-of-type(even) .showcase__media { order: 2; }
.showcase__media {
  position: relative; height: min(76vh, 680px); border-radius: var(--r-md);
  display: grid; place-items: center; overflow: hidden;
  background-size: cover; background-position: center;
  will-change: transform;
  clip-path: inset(12% 12% 12% 12% round 8px);
  transition: clip-path 1.4s var(--ease);
}
.showcase.is-in .showcase__media { clip-path: inset(0 0 0 0 round 8px); }
.section--dark .showcase__media { background-color: #1f2228; }
.showcase--light .showcase__media { background-color: #f6f6f6; }
.showcase__media.has-photo .illu { display: none; }
.showcase__media.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.25), transparent 50%); }
.showcase__content { position: relative; z-index: 2; }

.specs { list-style: none; display: flex; gap: 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(128,128,128,.3); flex-wrap: wrap; }
.specs li { display: flex; flex-direction: column; }
.specs strong { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; color: var(--onyx); letter-spacing: -.02em; }
.section--dark .specs strong { color: var(--white); }
.specs span { font-size: 12px; color: var(--gray); }

/* ---------- Illustrations animées ---------- */
.illu { width: 72%; max-height: 90%; transition: transform .8s var(--ease); }
.showcase__media:hover .illu { transform: scale(1.04); }
/* illustrations interactives : pas de zoom au survol (les boutons ne bougent pas sous la souris) */
.showcase__media:hover .illu--ac, .showcase__media:hover .illu--panel, .showcase__media:hover .illu--charger { transform: none; }
.illu text { user-select: none; -webkit-user-select: none; }
.remote__btn, .room__switch, .room__socket, .pm, .illu--charger { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* Borne de recharge + voiture électrique */
.illu--charger { width: auto; height: calc(min(76vh, 680px) * .86); max-width: 96%; max-height: none; cursor: pointer; overflow: visible; }
@media (max-width: 1024px) { .illu--charger { height: calc(56vh * .86); } }
.chg__body { transition: transform .6s var(--ease); }
.illu--charger:hover .chg__body { transform: translateY(-3px); }
.chg__bolt { fill: var(--yellow); filter: drop-shadow(0 0 4px rgba(246,185,27,.8)); }
.chg__kw { fill: #fff; font: 600 15px var(--font); letter-spacing: -.02em; }
.chg__lbl { fill: #6b6e75; font: 500 4.8px var(--font); letter-spacing: .18em; }
.chg__pct { fill: #fff; font: 300 27px var(--font); letter-spacing: -.04em; }
.chg__small { fill: #8e9096; font: 500 6.2px var(--font); }
.chg__bar, .car__bat { fill: var(--yellow); transform-box: fill-box; transform-origin: left; transform: scaleX(var(--p, .64)); transition: transform .4s linear; filter: drop-shadow(0 0 3px rgba(246,185,27,.8)); }
.chg__level { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--p, .64)); transition: transform .4s linear; filter: drop-shadow(0 0 4px var(--yellow)); }
.chg__ring { stroke: var(--yellow); stroke-dasharray: 22 54; transform-box: fill-box; transform-origin: center; animation: spin 1.3s linear infinite; filter: drop-shadow(0 0 4px var(--yellow)); }
.car__underglow { animation: halo 2.4s ease-in-out infinite; transition: opacity .4s; }
.car__reflect { pointer-events: none; }
.chg__status { fill: var(--yellow); filter: drop-shadow(0 0 4px var(--yellow)); animation: halo 2s ease-in-out infinite; }
.illu--charger.is-paused .chg__status { fill: #9aa0a8; filter: none; animation: none; }
.illu--charger.is-full .chg__status { fill: #6fcf7f; filter: drop-shadow(0 0 4px #6fcf7f); animation: none; }
.chg__rfid path { stroke: #6b6e75; }
/* énergie qui circule dans le câble : impulsions lumineuses */
.cable__energy { stroke: var(--yellow); stroke-dasharray: 5 38; stroke-linecap: round; animation: cableFlow 1.1s linear infinite; filter: drop-shadow(0 0 3px var(--yellow)) drop-shadow(0 0 6px rgba(246,185,27,.6)); transition: opacity .4s; }
@keyframes cableFlow { to { stroke-dashoffset: -43; } }
.illu--charger.is-paused .cable__energy, .illu--charger.is-full .cable__energy { opacity: 0; }
.car__plugled { fill: var(--yellow); filter: drop-shadow(0 0 3px var(--yellow)); }

.chg__halo { stroke: var(--yellow); stroke-width: 1.2; opacity: .55; filter: drop-shadow(0 0 8px var(--yellow)); animation: halo 2s ease-in-out infinite; }
@keyframes halo { 50% { opacity: .12; } }
.chg__brand { fill: #a9a9a4; font: 700 5px var(--font); letter-spacing: .32em; }
.chg__sparks circle { fill: var(--yellow); animation: rise 2s ease-out infinite; }
.chg__sparks circle:nth-child(2) { animation-delay: -.5s; } .chg__sparks circle:nth-child(3) { animation-delay: -1s; } .chg__sparks circle:nth-child(4) { animation-delay: -1.5s; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(30px, -18px); opacity: 0; } }
.car { transition: transform .8s var(--ease); }
.illu--charger:hover .car { transform: translateX(-3px); }
.car__head { fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }
.car__tail { fill: #d9473c; filter: drop-shadow(0 0 4px rgba(217,71,60,.8)); }
.car__port { fill: var(--yellow); filter: drop-shadow(0 0 5px var(--yellow)); animation: halo 1.4s ease-in-out infinite; }
/* charge terminée ou en pause */
.illu--charger.is-full .chg__ring, .illu--charger.is-paused .chg__ring { animation: none; stroke-dasharray: none; }
.illu--charger.is-full .chg__ring { stroke: #6fcf7f; filter: drop-shadow(0 0 4px #6fcf7f); }
.illu--charger.is-paused .car__underglow, .illu--charger.is-full .car__underglow { opacity: 0; animation: none; }
.illu--charger.is-paused .chg__ring { opacity: .25; }
.illu--charger.is-paused .illu__flow, .illu--charger.is-full .illu__flow,
.illu--charger.is-paused .chg__sparks, .illu--charger.is-full .chg__sparks { opacity: 0; }
.illu--charger.is-paused .chg__halo, .illu--charger.is-paused .car__port { animation: none; opacity: .2; }
.illu--charger.is-full .car__port { animation: none; fill: #6fcf7f; filter: drop-shadow(0 0 5px #6fcf7f); }
.illu__flow { stroke: var(--yellow); stroke-dasharray: 14 26; animation: flow 1s linear infinite; filter: drop-shadow(0 0 4px var(--yellow)); transition: opacity .4s; }
@keyframes flow { to { stroke-dashoffset: -40; } }

@keyframes blink { 50% { fill: var(--onyx); } }

/* Climatisation réversible */
.illu--ac { --air: var(--blue); width: auto; height: calc(min(76vh, 680px) * .84); max-width: 92%; max-height: none; overflow: visible; --power: .6; }
@media (max-width: 1024px) { .illu--ac { height: calc(56vh * .84); } }
.illu--ac.is-heat { --air: var(--yellow); }
#aGlow stop { stop-color: var(--air); transition: stop-color .15s; }
.ac__glow { animation: acGlow 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes acGlow { 50% { opacity: .55; transform: scale(1.06); } }
.ac__indoor { transition: transform .6s var(--ease); }
.illu--ac:hover .ac__indoor { transform: translateY(-3px); }
.ac__temp { font: 300 34px var(--font); letter-spacing: -.04em; fill: var(--onyx); }
.ac__unit { font: 400 11px var(--font); fill: var(--steel); }
.ac__mode { font: 600 7px var(--font); letter-spacing: .2em; fill: var(--steel); }
.ac__led { fill: var(--air); filter: drop-shadow(0 0 3px var(--air)); transition: fill .15s; }
.ac__icon { fill: none; stroke: var(--air); stroke-width: 1.8; stroke-linecap: round; transition: opacity .15s, transform .6s var(--ease); }
.ac__icon circle { fill: var(--air); stroke: none; }
.ac__icon--heat { opacity: 0; }
.illu--ac.is-heat .ac__icon--cold { opacity: 0; }
.illu--ac.is-heat .ac__icon--heat { opacity: 1; }
.ac__icon--heat path { animation: halo 1.8s ease-in-out infinite; }
.ac__flap { transform-box: fill-box; transform-origin: 50% 0; animation: flap 3.2s var(--ease-in-out) infinite alternate; }
@keyframes flap { from { transform: rotateX(10deg) translateY(0); } to { transform: rotateX(55deg) translateY(2px); } }
.ac__air path { stroke: var(--air); stroke-width: 2.4; stroke-dasharray: 22 16; opacity: calc(.25 + var(--power) * .5); animation: air 1.6s linear infinite; transition: stroke .15s, opacity .25s; }
.illu--ac[data-level="2"] .ac__air path { animation-duration: 1.2s; }
.illu--ac[data-level="3"] .ac__air path { animation-duration: .85s; }
.ac__air path:nth-child(2) { animation-delay: -.3s; } .ac__air path:nth-child(3) { animation-delay: -.7s; stroke-width: 3; opacity: .7; }
.ac__air path:nth-child(4) { animation-delay: -1s; } .ac__air path:nth-child(5) { animation-delay: -.5s; }
@keyframes air { to { stroke-dashoffset: -76; } }
.ac__particles circle { fill: var(--air); opacity: 0; animation: drift 3s linear infinite; transition: fill .15s; }
.ac__particles circle:nth-child(2) { animation-delay: -.5s; } .ac__particles circle:nth-child(3) { animation-delay: -1s; }
.ac__particles circle:nth-child(4) { animation-delay: -1.5s; } .ac__particles circle:nth-child(5) { animation-delay: -2s; }
.ac__particles circle:nth-child(6) { animation-delay: -2.4s; } .ac__particles circle:nth-child(7) { animation-delay: -2.8s; }
@keyframes drift { 0% { transform: translate(0, -10px); opacity: 0; } 20% { opacity: .9; } 100% { transform: translate(8px, 90px); opacity: 0; } }
.illu--ac.is-heat .ac__particles circle { animation-name: warm; filter: drop-shadow(0 0 3px var(--yellow)); }
@keyframes warm { 0% { transform: translate(0, -10px) scale(.6); opacity: 0; } 25% { opacity: .9; } 100% { transform: translate(-6px, 80px) scale(1.4); opacity: 0; } }
.ac__pipeflow { stroke: var(--air); stroke-dasharray: 6 14; animation: flow .9s linear infinite; opacity: .9; transition: stroke .15s; }
.ac__pipeflow--back { opacity: .5; animation-duration: 1.3s; }
.ac__fan { fill: #9aa0a8; transform-box: view-box; transform-origin: 324px 357px; animation: spin .9s linear infinite; }
.ac__brand { font: 700 6px var(--font); letter-spacing: .3em; fill: #a9a9a4; }
.ac__hint { font: 500 10px var(--font); letter-spacing: .06em; fill: var(--steel); }
.illu--ac.is-idle { --air: #9aa0a8; }
.illu--ac.is-idle .ac__air path { opacity: .12; }
.illu--ac.is-idle .ac__particles, .illu--ac.is-idle .ac__pipeflow { opacity: 0; }
.illu--ac.is-idle .ac__fan { animation-duration: 4s; }
.illu--ac.is-idle .ac__glow { opacity: .3; }

/* Télécommande */
.remote { filter: drop-shadow(0 22px 26px rgba(0,0,0,.5)); }
.remote__body { fill: url(#rmBody); stroke: #cfcfca; stroke-width: .8; }
#rmBacklight stop { stop-color: var(--air); transition: stop-color .15s; }
.remote__backlight { transition: opacity .5s; }
.illu--ac.is-off .remote__backlight { opacity: 0; }
.remote__lbl { font: 700 6.4px var(--font); letter-spacing: .16em; fill: var(--air); transition: fill .15s; }
.remote__auto { transition: opacity .15s; }
.remote__auto-bg { fill: var(--air); transition: fill .15s; filter: drop-shadow(0 0 3px var(--air)); }
.remote__auto-txt { font: 800 5.8px var(--font); letter-spacing: .08em; fill: #fff; transition: fill .15s; }
.illu--ac.is-heat .remote__auto-txt { fill: #1a1300; }
.remote__auto.is-hidden { opacity: 0; }
.remote__set { font: 200 38px var(--font); letter-spacing: -.05em; fill: #fff; font-variant-numeric: tabular-nums; }
.remote__deg { font: 500 8px var(--font); fill: #8e9096; }
.remote__room { font: 500 6.2px var(--font); fill: #8e9096; }
.remote__icon { fill: none; stroke: var(--air); stroke-width: 1.4; stroke-linecap: round; opacity: 0; transition: opacity .15s, stroke .15s; }
.remote__icon circle { fill: var(--air); stroke: none; }
.remote__icon.is-on { opacity: 1; }
.remote__fan rect { fill: #34373e; transition: fill .3s; }
.remote__fan rect.is-on { fill: var(--air); }
.illu--ac.is-off .remote__set, .illu--ac.is-off .remote__deg, .illu--ac.is-off .remote__room, .illu--ac.is-off .remote__fan, .illu--ac.is-off .remote__auto { opacity: .15; }

.remote__btn { cursor: pointer; outline: none; transform-box: fill-box; transform-origin: center; transition: transform .14s; }
.remote__btn circle, .remote__btn > path:first-child { fill: url(#rmKey); stroke: #cfcfca; stroke-width: .8; transition: fill .2s, stroke .2s; }
.remote__glyph { fill: none !important; stroke: #2a2d33 !important; stroke-width: 2 !important; stroke-linecap: round; stroke-linejoin: round; }
.remote__btn:hover circle, .remote__btn:hover > path:first-child,
.remote__btn:focus-visible circle, .remote__btn:focus-visible > path:first-child { stroke: var(--yellow); stroke-width: 1.4; fill: #fff8e3; }
.remote__btn.is-pressed { transform: scale(.9); }
.remote__btn--half.is-pressed { transform: scale(.94); }
.remote__btn--power .remote__glyph { stroke: #c48f00 !important; }
.illu--ac.is-off .remote__btn--power .remote__glyph { stroke: #9aa0a8 !important; }
.remote__rocker { fill: #e9e9e5; stroke: #cfcfca; stroke-width: .8; }
.remote__cap { font: 600 4.8px var(--font); letter-spacing: .14em; fill: #8e9096; }
.remote__brand { font: 700 4.4px var(--font); letter-spacing: .3em; fill: #b5b5af; }
/* signal infrarouge envoyé à la clim */
.remote__ir path { fill: none; stroke: var(--air); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.remote.is-sending .remote__ir path { animation: ir .6s ease-out; }
.remote.is-sending .remote__ir path:nth-child(2) { animation-delay: .08s; }
.remote.is-sending .remote__ir path:nth-child(3) { animation-delay: .16s; }
@keyframes ir { 0% { opacity: 0; transform: translateY(4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }

/* clim éteinte */
.illu--ac.is-off { --air: #6b6e75; }
.illu--ac.is-off .ac__air, .illu--ac.is-off .ac__particles, .illu--ac.is-off .ac__pipeflow, .illu--ac.is-off .ac__glow { opacity: 0; }
.illu--ac.is-off .ac__fan, .illu--ac.is-off .ac__flap { animation-play-state: paused; }
.illu--ac.is-off .ac__led { fill: #cfcfca; filter: none; }

/* Tableau électrique résidentiel */
.illu--panel { width: auto; height: calc(min(76vh, 680px) * .92); max-width: 94%; max-height: none; overflow: visible; }
@media (max-width: 1024px) { .illu--panel { height: calc(56vh * .92); } }
.pnl__brand { font: 700 7px var(--font); letter-spacing: .3em; fill: #b9b9b3; }
.pnl__gaine { fill: none; stroke: #8f949b; stroke-width: 11; stroke-linecap: round; }
.pnl__gaine-rib { fill: none; stroke: #6f747b; stroke-width: 11; stroke-dasharray: 1.4 3.2; opacity: .55; }
.pnl__feed { fill: none; stroke: #1b1d21; stroke-width: 13; stroke-linecap: round; }
.pnl__feedflow { fill: none; stroke: var(--yellow); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 8 16; animation: flow .9s linear infinite; filter: drop-shadow(0 0 3px var(--yellow)); }
.pnl__comb { stroke: #b8814a; stroke-width: 2.6; stroke-linecap: round; pointer-events: none; transition: stroke .4s; }
.pnl__comb--n { stroke: #2f6db5; stroke-width: 2; }
.prow.is-dead .pnl__comb--n { stroke: #5f7590; }
.pm__n { font: 800 3.8px var(--font); fill: #2f6db5; pointer-events: none; }
.prow.is-dead .pnl__comb { stroke: #9a8a78; }
.pflow { pointer-events: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 8 22; animation: flow .9s linear infinite; filter: drop-shadow(0 0 3px var(--yellow)); transition: opacity .3s; }
.prow.is-dead .pflow { opacity: 0; }
.prow__led { fill: var(--yellow); filter: drop-shadow(0 0 3px var(--yellow)); transition: fill .3s; }
.prow.is-dead .prow__led { fill: #cfcfca; filter: none; }

.pm { cursor: pointer; outline: none; }
.pm__body { stroke: #c4c4bf; stroke-width: .8; transition: stroke .3s; }
.pm__nose { stroke: #d9d9d4; stroke-width: .6; transition: fill .3s; }
.pm:hover .pm__body { stroke: var(--yellow); stroke-width: 1.4; }
.pm:hover .pm__nose { fill: #fff8e3; }
.pm__blank { fill: #f4f4f1; stroke: #d6d6d1; }
.pm__blank-grip { fill: none; stroke: #e1e1dc; }
.pm__screw { fill: #d9d9d4; stroke: #aeaea8; stroke-width: .6; }
.pm__slotline { stroke: #8e9096; stroke-width: .7; }
.pm__label { font: 700 4.5px var(--font); letter-spacing: .01em; fill: #2a2d33; transition: fill .3s; }
.pm__ico { fill: none; stroke: #4a4e57; stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.pm:hover .pm__ico { stroke: #000; }
.pm.circ-light .pm__ico { stroke: #c48f00; }
.pm.circ-plug .pm__ico { stroke: #2b6fc0; }
.prow__num { font: 800 5.6px var(--font); fill: #8e9096; letter-spacing: .04em; }
.pm:hover .pm__label { fill: #000; }
.pm__rating { font: 800 6.4px var(--font); fill: #2a2d33; letter-spacing: -.01em; }
.pm__tiny { font: 500 3.6px var(--font); fill: #9aa0a8; letter-spacing: .04em; }
.pm__slot { fill: #202226; }
.pm__lever { transform-box: fill-box; transition: transform .3s cubic-bezier(.5, -.6, .5, 1.6); }
.pm.is-off .pm__lever { transform: translateY(100%); }
.pm__flag { fill: var(--yellow); transition: fill .2s; }
.pm.is-off .pm__flag { fill: #b5b8be; }
.prow.is-dead .pm--br .pm__flag { fill: #d8d8d4; }
.pm__test { fill: #e4e4e0; stroke: #aaa9a3; stroke-width: .7; transform-box: fill-box; transform-origin: center; transition: transform .15s; }
.pm.is-pressed .pm__test { transform: scale(.65); fill: var(--yellow); }
.pm__t { font: 700 4.2px var(--font); fill: #6b6e75; pointer-events: none; }
.pm__led { fill: var(--yellow); filter: drop-shadow(0 0 2.5px var(--yellow)); animation: blink 2.4s infinite; }
.prow.is-dead .pm__led, .pm--hc.is-off .pm__led { fill: #cfcfca; filter: none; animation: none; }
.pm__spd { fill: #3f9a4a; transition: fill .3s; }
.pm--spd.is-off .pm__spd, .prow.is-dead .pm__spd { fill: #5a5d63; }

/* Porte fumée */
.pdoor { cursor: pointer; }
.pdoor__frame { fill: #f2f2ef; stroke: #cfcfca; stroke-width: 2; stroke-linejoin: round; }
.pdoor__glass { fill: rgba(24, 27, 33, .38); stroke: rgba(0,0,0,.25); }
.pdoor__shine { fill: #fff; opacity: .08; }
.pdoor__handle { stroke: #9aa0a8; stroke-width: 5; stroke-linecap: round; }
.pdoor__sticker { pointer-events: none; }
.pdoor__danger { font: 900 17px var(--font); letter-spacing: .08em; fill: #111; }
.pdoor__warn { font: 700 10.5px var(--font); fill: #111; }
.pdoor.is-open .pdoor__glass { fill: rgba(24, 27, 33, .7); }

/* Pièce reliée au tableau : suspension, interrupteur, prise, lampadaire */
.room__wire { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.room__flow { fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 16; opacity: 0; animation: flow 1s linear infinite; filter: drop-shadow(0 0 3px var(--yellow)); transition: opacity .4s; }
.room__flow.is-on { opacity: .9; }
.room__cord { stroke: #3a3d44; stroke-width: 2; }
.room__shade { fill: #24272d; stroke: #3a3d44; }
.room__shade--light { fill: #e9e9e5; stroke: #cfcfca; }
.room__bulb { fill: #4a4d55; transition: fill .3s, filter .3s; }
.room__bulb.is-on { fill: #fff2c2; filter: drop-shadow(0 0 8px #ffd970) drop-shadow(0 0 18px var(--yellow)); }
.room__glow { opacity: 0; transition: opacity .45s; pointer-events: none; }
.room__glow.is-on { opacity: 1; animation: flick 5s infinite; }
@keyframes flick { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .85; } 49% { opacity: 1; } }
.room__cone { opacity: 0; transition: opacity .5s; pointer-events: none; mix-blend-mode: screen; }
.room__cone.is-on { opacity: 1; }
.room__switch, .room__socket { cursor: pointer; }
.room__plate { fill: #f4f4f1; stroke: #d3d3ce; transition: stroke .3s; }
.room__switch:hover .room__plate, .room__socket:hover .room__plate { stroke: var(--yellow); stroke-width: 1.6; }
.room__rocker { fill: #fbfbfa; stroke: #d3d3ce; }
.room__rocker-top { fill: #e2e2de; transition: transform .25s var(--ease), fill .25s; transform-box: fill-box; }
.room__switch.is-on .room__rocker-top { transform: translateY(100%); fill: #e9e9e5; }
.room__led { fill: #9aa0a8; transition: fill .3s; }
.room__switch.is-on .room__led { fill: var(--yellow); filter: drop-shadow(0 0 2px var(--yellow)); }
.room__plug { transition: transform .5s var(--ease), opacity .4s; }
.room__plug.is-out { transform: translate(14px, 22px); opacity: .55; }
.room__plugcable { fill: none; stroke: #1c1e23; stroke-width: 4; stroke-linecap: round; }
.room__pole { stroke: #9aa0a8; stroke-width: 3; }
.room__hint { font: 500 8px var(--font); fill: #6b6e75; letter-spacing: .04em; pointer-events: none; }

/* Circuits repérés : ① éclairage (jaune), ② prises (bleu) */
.room__wire { stroke-width: 5; }
.room__flow--light { stroke: var(--yellow); filter: drop-shadow(0 0 3px var(--yellow)); }
.room__flow--plug { stroke: #4a9bf0; filter: drop-shadow(0 0 3px #4a9bf0); }
.circ-badge { stroke: #0f1115; stroke-width: 1.2; }
.circ-badge--light { fill: var(--yellow); }
.circ-badge--plug { fill: #4a9bf0; }
.circ-num { font: 800 6.4px var(--font); fill: #0f1115; pointer-events: none; }
.room__tag .circ-num { font-size: 8px; }
.pm.circ-light .pm__body { stroke: var(--yellow); stroke-width: 1.6; }
.pm.circ-plug .pm__body { stroke: #4a9bf0; stroke-width: 1.6; }
.pm.circ-light .pm__label { fill: #a87a00; font-weight: 700; }
.pm.circ-plug .pm__label { fill: #2b6fc0; font-weight: 700; }
.room__tag { pointer-events: none; }
.room__tag rect { fill: rgba(11,12,15,.85); stroke: rgba(255,255,255,.12); }
.room__tag--light rect { stroke: rgba(246,185,27,.55); }
.room__tag--plug rect { stroke: rgba(74,155,240,.6); }
.room__tag-t1 { font: 700 7.4px var(--font); fill: #fff; }
.room__tag-t2 { font: 500 6.2px var(--font); fill: #a2a5ab; }
.room__plate-in { fill: #fbfbfa; stroke: #e1e1dc; }
.room__rim { fill: #4a4d55; transition: fill .3s; }
.room__rim.is-on { fill: #ffe9a8; filter: drop-shadow(0 0 6px var(--yellow)); }
.room__plugled { fill: #5c5f66; transition: fill .3s; }
.room__plug:not(.is-out) .room__plugled { fill: #4a9bf0; filter: drop-shadow(0 0 2px #4a9bf0); }
.room__fabric { transition: filter .4s; }
.room__lamp:has(.room__bulb.is-on) .room__fabric { filter: brightness(1.12) drop-shadow(0 0 10px rgba(246,185,27,.55)); }

/* Disjoncteur général + compteur */
.pmain { cursor: pointer; outline: none; }
.pmain__box { stroke: #cfcfca; transition: stroke .3s; }
.pmain:hover .pmain__box, .pmain:focus-visible .pmain__box { stroke: var(--yellow); stroke-width: 1.6; }
.pmain__title { font: 700 6px var(--font); letter-spacing: .22em; fill: #8e9096; }
.pmain__screen { fill: #1d2618; stroke: #8f9c3c; stroke-width: 1.4; }
.pmain__kw { font: 600 20px var(--font); fill: #e6f5bf; font-variant-numeric: tabular-nums; filter: drop-shadow(0 0 3px rgba(214,240,140,.5)); }
.pmain__unit { font: 600 7px var(--font); fill: #a9b88a; }
.pmain__bar { fill: #c9e46a; transform-box: fill-box; transform-origin: left; transition: transform .6s var(--ease); }
.pmain__bar.is-high { fill: #ff9f43; }
.pmain__amp { font: 600 6.6px var(--font); fill: #a9b88a; font-variant-numeric: tabular-nums; }
.pmain__amp.is-alert { fill: #ff6b5b; font-weight: 800; animation: blink 1s steps(1) infinite; }
.gtl__dial { cursor: pointer; outline: none; }
.gtl__dial:hover circle, .gtl__dial:focus-visible circle { stroke: var(--yellow); stroke-width: 1.6; }
.gtl__tick { font: 700 4.6px var(--font); fill: #8e9096; pointer-events: none; }
.gtl__needle { stroke: #c8372d; stroke-width: 2.6; stroke-linecap: round; transition: transform .35s var(--ease); }
.gtl__cal { font: 800 7.6px var(--font); fill: #2a2d33; pointer-events: none; }
.pmain.is-tripped .pmain__flag { fill: #ff6b5b; animation: blink .6s steps(1) infinite; }
.pmain__lever { transform-box: fill-box; transition: transform .3s cubic-bezier(.5, -.6, .5, 1.6); }
.pmain.is-off .pmain__lever { transform: translateY(100%); }
#panel.is-master-off .pmain__kw { fill: #6b7a5a; filter: none; }
.pmain__flag { fill: #3f9a4a; transition: fill .2s; }
.pmain.is-off .pmain__flag { fill: #c8372d; }
.gtl__plate { fill: #ecece8; stroke: #d3d3ce; }
.gtl__label { font: 700 5.4px var(--font); letter-spacing: .2em; fill: #6b6e75; }
.gtl__io { font: 700 13px var(--font); fill: #fff; pointer-events: none; }
.gtl__ma { font: 700 9px var(--font); letter-spacing: .06em; fill: #2a2d33; }
.gtl__led { fill: #5c5f66; }
.gtl__led.is-on { fill: #ffcf4a; filter: drop-shadow(0 0 3px #ffcf4a); animation: blink 1.1s steps(1) infinite; }
#panel.is-master-off .pnl__feedflow, #panel.is-master-off .pflow, #panel.is-master-off .room__flow { opacity: 0; }

/* Mode d'emploi du tableau interactif */
.iguide { margin-top: 24px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid rgba(246,185,27,.35); background: rgba(246,185,27,.05); max-width: 520px; }
.iguide__title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.iguide__title .ihint__icon svg { animation: tap 1.6s ease-in-out infinite; }
.iguide__list { list-style: none; display: grid; gap: 2px; }
.iguide__list li {
  position: relative; padding: 7px 10px 7px 22px; border-radius: 6px; font-size: 13px; line-height: 1.4; color: #a2a5ab; cursor: default;
  transition: background-color .25s, color .25s;
}
.iguide__list li::before { content: ""; position: absolute; left: 9px; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
.iguide__list li:hover { background: rgba(255,255,255,.05); color: #d0d1d3; }
.iguide__list b { color: var(--white); font-weight: 600; }
.iguide .dot { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 6px; border-radius: 50%; font-style: normal; font-size: 9px; font-weight: 800; color: #0f1115; vertical-align: 1px; }
.dot--light { background: var(--yellow); }
.dot--plug { background: #4a9bf0; }
/* élément mis en avant sur le dessin */
#panel .is-spot { filter: drop-shadow(0 0 4px var(--yellow)) drop-shadow(0 0 10px rgba(246,185,27,.8)); }

/* ---------- Repères « interactif » ---------- */
.ihint {
  position: absolute; z-index: 5; top: 14px; left: 14px; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 28px);
  padding: 7px 12px 7px 8px; border-radius: 999px; font-size: 12.5px; line-height: 1.3; color: #d0d1d3;
  background: rgba(11, 12, 15, .78); border: 1px solid rgba(246,185,27,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.6); transition: opacity .5s, transform .5s var(--ease);
}
.ihint strong { color: var(--yellow); font-weight: 700; }
.ihint__icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); }
.ihint__icon svg { width: 15px; fill: none; stroke: #111; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: tap 1.6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes tap { 0%, 60%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(2px) scale(.88); } }
.is-used .ihint { opacity: .55; }
.is-used .ihint__icon svg { animation: none; }
/* tableau : la consigne se place au-dessus du dessin, sans rien cacher */
#elec .showcase__media { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
#elec .ihint { position: relative; top: auto; left: auto; right: auto; bottom: auto; flex: none; max-width: calc(100% - 24px); }
#elec .illu--panel { height: calc(min(76vh, 680px) * .82); }
@media (max-width: 1024px) { #elec .illu--panel { height: calc(56vh * .78); } }
.qstage .ihint { top: -6px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 520px) { .ihint { font-size: 11.5px; top: 10px; left: 10px; } }

/* cercles qui pulsent sur les zones cliquables */
.hotspot { fill: none; stroke: var(--yellow); stroke-width: 2; pointer-events: none; transform-box: fill-box; transform-origin: center; animation: hotspot 1.8s ease-out infinite; filter: drop-shadow(0 0 4px var(--yellow)); }
@keyframes hotspot { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.is-used .hotspot { display: none; }
.qcard::after { content: ""; position: absolute; inset: -10px; border-radius: 14px; border: 2px solid var(--yellow); pointer-events: none; animation: cardPing 1.8s ease-out infinite; }
@keyframes cardPing { 0% { opacity: .9; transform: scale(.96); } 80%, 100% { opacity: 0; transform: scale(1.06); } }
.qstage.is-used .qcard::after { display: none; }

/* Infobulle */
.ptip { pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--ease); }
.ptip.is-on { opacity: 1; transform: none; }
.ptip__bg { fill: #111317; stroke: var(--yellow); stroke-width: .8; }
.ptip.is-cut .ptip__bg { stroke: #6b6e75; }
.ptip__name { font: 600 7px var(--font); fill: #fff; }
.ptip__info { font: 500 6px var(--font); fill: var(--yellow); }
.ptip.is-cut .ptip__info { fill: #9aa0a8; }

/* ---------- Stats ---------- */
.stats { padding: clamp(80px, 12vw, 160px) var(--gutter); background: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.stat { border-left: 1px solid var(--border); padding-left: 24px; }
.stat strong { display: block; font-size: clamp(40px, 5.5vw, 72px); font-weight: 500; letter-spacing: -.04em; color: var(--onyx); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--steel); }

/* ---------- Process horizontal ---------- */
.process { position: relative; height: 350vh; background: var(--off-white); }
.process__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 48px; }
.process__head { padding: 0 var(--gutter); }
.process__track { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.step {
  position: relative; width: min(420px, 78vw); min-height: 300px; padding: 32px; border-radius: var(--r-md);
  background: var(--white); display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  transition: transform .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.step:hover { transform: translateY(-8px); background: var(--onyx); color: #c8c9cc; }
.step:hover h3, .step:hover .step__num { color: var(--white); }
.step__num { font-size: 88px; font-weight: 300; letter-spacing: -.05em; line-height: 1; color: var(--border); transition: color .5s; }
.step h3 { font-size: 24px; font-weight: 500; color: var(--onyx); margin-top: auto; transition: color .5s; }
.step p { font-size: 15px; }
.step__line { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.step:hover .step__line { transform: scaleX(1); }
.process__bar { margin: 0 var(--gutter); height: 2px; background: var(--border); }
.process__bar span { display: block; height: 100%; background: var(--onyx); transform-origin: left; transform: scaleX(0); }

/* ---------- Pourquoi nous ---------- */
.why { padding: clamp(80px, 12vw, 160px) var(--gutter); background: var(--white); }
.why__head { max-width: 1200px; margin: 0 auto 48px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; perspective: 1000px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 32px; border-radius: var(--r-md); background: var(--off-white);
  overflow: hidden; transform-style: preserve-3d;
  transition: transform .5s var(--ease), background-color .4s, opacity 1s var(--ease) var(--d, 0s);
}
.card::before { /* spotlight qui suit la souris */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255,255,255,.9), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__icon { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--onyx); display: grid; place-items: center; margin-bottom: 24px; transition: transform .6s var(--ease); }
.card:hover .card__icon { transform: translateZ(40px) rotate(-8deg) scale(1.08); }
.card__icon svg { width: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__icon svg path, .card__icon svg circle { stroke-dasharray: 80; stroke-dashoffset: 0; }
.card:hover .card__icon svg path, .card:hover .card__icon svg circle { animation: redraw 1s var(--ease); }
@keyframes redraw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.card h3 { font-size: 20px; font-weight: 500; color: var(--onyx); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--steel); }

/* ---------- Qualification Qualifelec ---------- */
.qualif {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
  padding: clamp(96px, 12vw, 160px) var(--gutter); min-height: 90vh;
}
.qualif::before { /* halo bleu Qualifelec */
  content: ""; position: absolute; left: 25%; top: 50%; width: 60vw; height: 60vw; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(43,123,214,.18), transparent 70%); pointer-events: none;
}
.qualif__content { position: relative; max-width: 600px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scène : anneau + orbites + carte */
.qstage {
  --rx: 0deg; --ry: 0deg;
  position: relative; justify-self: center; width: clamp(300px, 36vw, 460px); aspect-ratio: 1;
  display: grid; place-items: center; perspective: 1100px;
}
.qring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.qring__line { fill: none; stroke: #2b2e35; stroke-width: 1; stroke-dasharray: 2 5; }
.qring__text { transform-origin: 100px 100px; animation: spin 24s linear infinite; }
.qring__text text { fill: #6b6e75; font: 500 8.6px var(--font); letter-spacing: 2.6px; }
.qstage:hover .qring__text { animation-duration: 8s; }
.qorbit { position: absolute; inset: 1.5%; border-radius: 50%; animation: spin 7s linear infinite; pointer-events: none; }
.qorbit span { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px 3px rgba(246,185,27,.7); }
.qorbit--2 { inset: 9%; animation-duration: 11s; animation-direction: reverse; }
.qorbit--2 span { background: var(--blue); box-shadow: 0 0 12px 3px rgba(43,123,214,.7); }

/* Carte 3D */
.qcard {
  container-type: inline-size;
  position: relative; z-index: 1; width: 62%; aspect-ratio: 3 / 4; padding: 0; cursor: pointer; border-radius: var(--r-md);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.qstage.is-tilting .qcard { transition: transform .1s linear; }
.qcard:focus-visible { outline: 2px solid var(--yellow); outline-offset: 6px; }
.qcard__inner {
  position: absolute; inset: 0; display: block; transform-style: preserve-3d;
  transition: transform 1s var(--ease);
  /* entrée : la carte se retourne en arrivant */
  transform: rotateY(-28deg) rotateX(8deg) scale(.82); opacity: 0;
}
.qstage.is-in .qcard__inner { transform: none; opacity: 1; transition: transform 1.4s var(--ease), opacity .6s; }
.qcard.is-flipped .qcard__inner { transform: rotateY(180deg); }
.qcard__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--r-md); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
}
.qcard__front { background: #fff; gap: 5cqw; padding: 8cqw; }
.qcard__front img { position: relative; width: 62%; height: auto; animation: float 5s ease-in-out infinite; }
/* fiabilité mobile (iPhone notamment) : la face cachée est masquée à mi-retournement,
   pour que le logo animé ne transparaisse jamais au dos de la carte */
.qcard__back { visibility: hidden; }
.qcard.show-back .qcard__front { visibility: hidden; }
.qcard.show-back .qcard__back { visibility: visible; }
.qcard__inner { will-change: transform; -webkit-transform-style: preserve-3d; }
@keyframes float { 50% { translate: 0 -6px; } }
.qcard__rays { /* rayons lumineux qui tournent derrière le logo */
  position: absolute; left: 50%; top: 42%; width: 180%; aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(43,123,214,.10) 0 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 60%); mask-image: radial-gradient(circle, #000 20%, transparent 60%);
  animation: spin 30s linear infinite;
}
.qcard__tag { position: relative; white-space: nowrap; font-size: 5.6cqw; font-weight: 600; letter-spacing: .12em; color: #1f5fae; padding: 1.6cqw 4cqw; border: 1px solid #cfe0f5; border-radius: 4px; }
.qcard__hint { position: absolute; bottom: 4cqw; white-space: nowrap; font-size: 4.2cqw; letter-spacing: .06em; color: #9aa0a8; }
.qcard__back { background: linear-gradient(160deg, #15171c, #0b0c0f); transform: rotateY(180deg); align-items: stretch; justify-content: flex-start; gap: 0; padding: 8cqw 8cqw 5cqw; text-align: left; }
.qcard__title { font-size: 6.6cqw; font-weight: 600; color: var(--white); margin-bottom: 3cqw; padding-bottom: 3cqw; border-bottom: 2px solid var(--yellow); }
.qcard__row { display: flex; flex-direction: column; padding: 2cqw 0; border-bottom: 1px solid #22252b; font-size: 5.2cqw; line-height: 1.3; color: var(--white); }
.qcard__row em { font-style: normal; font-size: 3.6cqw; letter-spacing: .1em; text-transform: uppercase; color: #6b6e75; }
.qcard__back .qcard__hint { position: static; margin-top: auto; text-align: center; color: #6b6e75; }
.qcard__shine { /* reflet holographique qui suit la souris */
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .9;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.75) var(--sx, 40%), rgba(246,185,27,.35) calc(var(--sx, 40%) + 6%), transparent calc(var(--sx, 40%) + 18%));
  animation: sheen 5s 2s ease-in-out infinite;
}
@keyframes sheen { 0%, 70%, 100% { --sx: -20%; } 35% { --sx: 120%; } }
@property --sx { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

/* Indices P1 / P2 / P3 */
.qindices { list-style: none; display: grid; gap: 10px; margin-top: 32px; }
.qindices li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid #262930; border-radius: var(--r-md); background: rgba(255,255,255,.02); transition: border-color .3s, background-color .3s, transform .5s var(--ease), opacity 1s var(--ease) var(--d, 0s); }
.qindices li:hover { border-color: var(--yellow); background: rgba(246,185,27,.05); transform: translateX(8px); }
.qindices b { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--yellow); color: #000; font-weight: 700; font-size: 15px; transition: transform .5s var(--ease); }
.qindices li:hover b { transform: rotate(-8deg) scale(1.08); }
.qindices span { display: flex; flex-direction: column; font-size: 13px; color: #8e9096; }
.qindices strong { font-size: 15px; font-weight: 500; color: var(--white); }
.qmeta { margin-top: 20px; font-size: 12px; line-height: 1.7; color: #6b6e75; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 12vw, 160px) var(--gutter); background: var(--white); }
.faq__inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; max-width: 1200px; margin: 0 auto; }
.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; color: var(--onyx);
  transition: padding .4s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { padding-left: 12px; }
.faq__plus { position: relative; flex: none; width: 16px; height: 16px; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: rotate(0); }
.faq__item[open] .faq__plus::before { transform: rotate(180deg); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 0 24px; color: var(--steel); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(100px, 14vw, 180px) var(--gutter); }
.contact__glow {
  position: absolute; width: 60vw; height: 60vw; left: var(--gx, 70%); top: var(--gy, 40%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 60%); pointer-events: none;
  transition: left .6s var(--ease), top .6s var(--ease);
}
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); max-width: 1200px; margin: 0 auto; }
.contact__list { list-style: none; margin-top: 40px; display: grid; gap: 20px; }
.contact__list li { display: grid; gap: 2px; }
.contact__list span { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--gray); }
.contact__list a, .contact__list p { font-size: 20px; color: var(--white); width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact__list a:hover { background-size: 100% 1px; }

.form { display: grid; gap: 16px; align-content: start; background: #1f2228; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border-radius: var(--r-sm); border: 1px solid #3b3f47; font-size: 13px; color: #c8c9cc; cursor: pointer; transition: all .3s var(--ease); }
.chip span:hover { border-color: #8e8e8e; }
.chip input:checked + span { background: var(--white); color: var(--onyx); border-color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 22px 14px 8px; font: inherit; font-size: 15px; color: var(--white);
  background: #15171c; border: 1px solid #2f323a; border-radius: var(--r-sm); outline: none; resize: vertical;
  transition: border-color .3s, background-color .3s;
}
.field input:focus, .field textarea:focus { border-color: #8e8e8e; background: #121418; }
.field label { position: absolute; left: 14px; top: 15px; font-size: 15px; color: var(--gray); pointer-events: none; transform-origin: left; transition: transform .3s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-9px) scale(.75); color: #c8c9cc; }
.field.is-error input { border-color: #b74134; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form__status { font-size: 14px; min-height: 20px; color: #c8c9cc; }

/* ---------- Footer ---------- */
.footer {
  position: relative; background: #000; color: #8e9096; overflow: hidden;
  padding: clamp(64px, 9vw, 120px) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
}
.footer::before { /* halo jaune qui respire derrière le grand logo */
  content: ""; position: absolute; left: 50%; bottom: -30%; width: 90vw; height: 60vw; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(246,185,27,.12), rgba(43,123,214,.06) 55%, transparent 75%);
  pointer-events: none; animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .45; transform: translateX(-50%) scale(1.08); } }
.footer__top { position: relative; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer__brand img { width: 120px; height: auto; margin: -16px 0 8px -12px; transition: transform .6s var(--ease), filter .6s; }
.footer__brand img:hover { transform: rotate(-4deg) scale(1.06); filter: drop-shadow(0 0 18px rgba(246,185,27,.35)); }
.footer__brand p { font-size: 14px; max-width: 34ch; }
.footer__qualif { display: inline-flex; align-items: center; gap: 14px; margin-top: 20px; padding: 10px 16px 10px 10px; border-radius: var(--r-md); background: #fff; color: var(--charcoal); font-size: 11px; line-height: 1.5; transition: transform .5s var(--ease), box-shadow .5s; }
.footer__qualif img { width: 40px; height: auto; }
.footer__qualif strong { display: block; font-size: 13px; color: #1f5fae; }
.footer__qualif:hover { transform: translateY(-4px); box-shadow: 0 10px 30px -8px rgba(43,123,214,.6); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col h4 { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #5c5e62; margin-bottom: 6px; }
.footer__col a, .footer__row a { position: relative; width: fit-content; color: #c8c9cc; transition: color .3s, transform .4s var(--ease); }
.footer__col a::before { content: "⚡"; position: absolute; left: -18px; font-size: 11px; top: 2px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); }
.footer__col a:hover { color: var(--white); transform: translateX(14px); }
.footer__col a:hover::before { opacity: 1; transform: none; }

/* Circuits */
.circuit { position: relative; display: block; width: 100%; height: clamp(40px, 7vw, 90px); margin: clamp(48px, 7vw, 96px) 0 8px; }
.circuit path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.circuit__lines path { stroke: #1d3f6b; stroke-dasharray: 2400; stroke-dashoffset: 2400; transition: stroke-dashoffset 2.4s var(--ease); }
.circuit__lines path:nth-child(2) { transition-delay: .3s; }
.footer.is-in .circuit__lines path { stroke-dashoffset: 0; }
.circuit__pulses path { stroke: var(--yellow); stroke-width: 3; stroke-dasharray: 60 1400; stroke-dashoffset: 60; filter: drop-shadow(0 0 6px var(--yellow)); opacity: 0; }
.footer.is-in .circuit__pulses path { opacity: 1; animation: pulse 3.2s 1.6s linear infinite; }
.footer.is-in .circuit__pulses path:nth-child(2) { animation-duration: 4.1s; animation-delay: 2.4s; }
@keyframes pulse { to { stroke-dashoffset: -1400; } }
.circuit__nodes circle { fill: #000; stroke: var(--blue); stroke-width: 2.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease); }
.footer.is-in .circuit__nodes circle { transform: scale(1); }
.footer.is-in .circuit__nodes circle:nth-child(n) { transition-delay: calc(1s + var(--n, 0) * .12s); }
.circuit__nodes circle:nth-child(2) { --n: 1; } .circuit__nodes circle:nth-child(3) { --n: 2; }
.circuit__nodes circle:nth-child(4) { --n: 3; } .circuit__nodes circle:nth-child(5) { --n: 4; } .circuit__nodes circle:nth-child(6) { --n: 5; }
.circuit__nodes circle { animation: node 3.2s 2.5s infinite; }
@keyframes node { 0%, 100% { fill: #000; } 8% { fill: var(--yellow); } 20% { fill: #000; } }

/* Grand logo animé */
@property --shine { syntax: "<percentage>"; inherits: true; initial-value: -30%; }
.wordmark {
  --mx: -999px; --my: -999px; --w: 100%;
  position: relative; display: flex; justify-content: center; align-items: center;
  font-size: clamp(64px, 17vw, 270px); font-weight: 800; line-height: .9; letter-spacing: -.03em;
  user-select: none; cursor: default; animation: shine 5s 1.5s ease-in-out infinite;
}
@keyframes shine { 0% { --shine: -30%; } 45%, 100% { --shine: 130%; } }
.wm__l {
  --c: #f2f2f2; --ox: 0px;
  display: inline-block; color: transparent;
  background:
    linear-gradient(100deg, transparent calc(var(--shine) - 6%), rgba(255,255,255,.95) var(--shine), transparent calc(var(--shine) + 6%)),
    radial-gradient(260px circle at var(--mx) var(--my), var(--c), transparent 70%),
    linear-gradient(90deg, var(--c) var(--fill, 0%), #16181c var(--fill, 0%));
  background-size: var(--w) 100%; background-position: var(--ox) 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  transform: translateY(60%) rotate(6deg); opacity: 0;
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease), filter .4s;
}
.wm__l--y { --c: var(--yellow); }
.footer.is-in .wm__l { transform: none; opacity: 1; transition-delay: calc(var(--i, 0) * 70ms + .2s), calc(var(--i, 0) * 70ms + .2s), 0s, 0s; }
.footer.is-in .wm__l:hover { transform: translateY(-6%) scale(1.04); filter: drop-shadow(0 0 24px var(--c)); transition-delay: 0s; transition-duration: .5s; }
.wm__bolt { display: inline-block; width: .42em; margin: 0 .06em; opacity: 0; transform: scale(.4) rotate(-20deg); transition: transform 1s var(--ease) .5s, opacity .6s .5s; }
.wm__bolt svg { width: 100%; overflow: visible; }
.wm__bolt path { fill: var(--yellow); filter: drop-shadow(0 0 14px rgba(246,185,27,.7)); }
.footer.is-in .wm__bolt { opacity: 1; transform: none; }
.footer.is-in .wm__bolt path { animation: flicker 4s 1.6s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 3% { opacity: .25; } 5% { opacity: 1; } 7% { opacity: .4; } 9% { opacity: 1; } }
.wm__bolt:hover path { animation: zap .35s steps(2) 3; }

.footer__row { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: clamp(32px, 5vw, 64px); padding-top: 24px; border-top: 1px solid #1c1e22; font-size: 12px; }
.footer__row nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__row a { color: #8e9096; }
.footer__row a:hover { color: var(--white); }

/* ---------- Thème homogène : un seul fond sombre continu ---------- */
:root { --bg: #0f1115; --surface: rgba(255,255,255,.03); --line: rgba(255,255,255,.08); }
body {
  color: #c8c9cc;
  background:
    radial-gradient(70vw 70vh at 12% 18%, rgba(246,185,27,.055), transparent 60%),
    radial-gradient(70vw 70vh at 88% 82%, rgba(43,123,214,.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* toutes les parties partagent le même fond : plus de coupure visible */
.section--dark, .showcase--light, .process, .why, .faq, .contact, .qualif { background: transparent; }
.hero { background: radial-gradient(ellipse at 50% 120%, rgba(60,66,80,.55) 0%, transparent 60%); }
.display, .heading-xl, .heading-lg { color: var(--white); }
/* rythme régulier : même respiration entre toutes les parties */
.showcase { min-height: auto; padding-block: clamp(72px, 9vw, 128px); }
.why, .faq, .qualif, .contact { padding-block: clamp(72px, 9vw, 128px); min-height: auto; }
.eyebrow { color: #8e9096; }
.lead { color: #a2a5ab; }
.showcase__media, .section--dark .showcase__media, .showcase--light .showcase__media { background-color: rgba(255,255,255,.025); border: 1px solid var(--line); }
.specs { border-top-color: var(--line); }
.specs strong { color: var(--white); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--onyx); border-color: var(--white); }
.ac__hint { fill: #8e9096; }

/* méthode */
.step { background: var(--surface); border: 1px solid var(--line); color: #a2a5ab; transition: transform .5s var(--ease), background-color .5s var(--ease), border-color .5s; }
.step:hover { background: rgba(246,185,27,.05); border-color: rgba(246,185,27,.45); color: #c8c9cc; }
.step__num { color: rgba(255,255,255,.14); }
.step:hover .step__num { color: var(--yellow); }
.step h3 { color: var(--white); }
.process__bar { background: var(--line); }
.process__bar span { background: linear-gradient(90deg, transparent, rgba(246,185,27,.7) 30%, rgba(246,185,27,.7) 70%, transparent); }
.process__bar { background: transparent; }

/* Méthode : section de hauteur normale, étapes qui glissent avec un curseur */
.process { height: auto; }
.process__sticky { position: static; height: auto; overflow: visible; padding-block: clamp(72px, 9vw, 128px); gap: 36px; }
.process__track {
  width: auto; transform: none !important; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 8px;
}
.process__track::-webkit-scrollbar { display: none; }
.process__track::after { content: ""; flex: none; width: 1px; } /* marge en fin de rangée */
.step { scroll-snap-align: start; flex: none; }

.process__slider { display: flex; align-items: center; gap: 14px; margin: 0 var(--gutter); max-width: 720px; }
.process__nav {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--white); font-size: 16px;
  transition: border-color .3s, background-color .3s, color .3s;
}
.process__nav:hover { border-color: var(--yellow); color: var(--yellow); background: rgba(246,185,27,.08); }
#processRange {
  --val: 0%;
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; cursor: pointer; outline: none;
  background: linear-gradient(90deg, var(--yellow) var(--val), rgba(255,255,255,.12) var(--val));
}
#processRange::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 4px solid #0f1115;
  box-shadow: 0 0 0 1px var(--yellow), 0 0 14px rgba(246,185,27,.6); transition: transform .2s;
}
#processRange::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 4px solid #0f1115;
  box-shadow: 0 0 0 1px var(--yellow), 0 0 14px rgba(246,185,27,.6);
}
#processRange:hover::-webkit-slider-thumb, #processRange:focus-visible::-webkit-slider-thumb { transform: scale(1.15); }
#processRange:focus-visible { box-shadow: 0 0 0 3px rgba(246,185,27,.25); }
@media (max-width: 640px) { .step { width: 82vw; } }

/* atouts */
.card { background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, opacity 1s var(--ease) var(--d, 0s); }
.card:hover { border-color: rgba(246,185,27,.4); }
.card::before { background: radial-gradient(360px circle at var(--mx) var(--my), rgba(246,185,27,.12), transparent 50%); }
.card__icon { background: rgba(246,185,27,.1); }
.card__icon svg { stroke: var(--yellow); }
.card h3 { color: var(--white); }
.card p { color: #8e9096; }

/* FAQ */
.faq__list { border-top-color: var(--line); }
.faq__item { border-bottom-color: var(--line); }
.faq__item summary { color: var(--white); }
.faq__item summary:hover { color: var(--yellow); }
.faq__body p { color: #a2a5ab; }

/* contact & bas de page : fondus dans le même fond */
.form { background: var(--surface); border: 1px solid var(--line); }
.footer { background: linear-gradient(180deg, transparent, #000 320px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .showcase, .contact__inner, .faq__inner, .qualif { grid-template-columns: 1fr; }
  .showcase:nth-of-type(even) .showcase__media { order: 0; }
  .showcase__media { height: 56vh; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@keyframes menuIn { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
@media (max-width: 640px) {
  .cards, .form__row { grid-template-columns: 1fr; }
  .btn { min-width: 0; width: 100%; }
  .actions { width: 100%; }
  .specs { gap: 20px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, [data-split] .char { opacity: 1; transform: none; }
  .showcase__media { clip-path: none; }
}
