/* Gad'elek · KM All One. TOUTES les couleurs du site sont ici : aucune couleur en dur plus bas.
   Charte du client : son logo est bleu nuit avec un monogramme bleu électrique et du blanc. On garde ces trois tons,
   et on ajoute un seul accent, le jaune « volt » (celui des étiquettes de danger électrique), réservé à l'action.
   Contrastes vérifiés (4.5:1 minimum pour le texte) : voir les notes à droite. */
:root {
  --ink: #04060e;              /* fond : la nuit, tout est éteint */
  --ink-2: #070b1a;            /* sections alternées */
  --ink-3: #0e1530;            /* murs de la maison, champs, cartes */
  --paper: #f1f5ff;            /* texte, 19:1 sur --ink */
  --muted: #9fb0d6;            /* texte secondaire, 9:1 sur --ink, 8:1 sur --ink-3 */
  --line: rgba(140, 170, 255, .13);
  --line-2: rgba(170, 195, 255, .45); /* bords des champs et boutons, 3:1 */
  --bleu: #245cfa;             /* bleu électrique du logo. Texte blanc dessus : 4.8:1 */
  --bleu-2: #7fa4ff;           /* le même, éclairci pour le texte sur fond sombre : 8:1 sur --ink */
  --cyan: #59d8ff;             /* le courant qui passe, 12:1 sur --ink */
  --volt: #e6ff3b;             /* l'action (boutons), 18:1 sur --ink */
  --volt-ink: #04060e;         /* texte posé sur --volt */
  --lampe: #fff3c2;            /* lumière des ampoules */
  --pale: #eef3ff;             /* pales du brasseur (blanches, comme ceux que pose Gad'elek) */
  --pale-2: #a9b8e0;           /* leur ombre près du moteur */
  --acier: #6f7fa8;            /* traits techniques */
  --acier-2: #263154;          /* pièces éteintes */
  --erreur: #ff9a9a;           /* erreurs, 9:1 sur --ink-3 */
  --barre: color-mix(in srgb, var(--ink-3) 94%, transparent);
  --ombre: #000;

  --f-display: 'Syne', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, sans-serif;
  --f-mono: 'Spline Sans Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --nav-h: 68px;
  --bar-h: 84px;
  --r: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 1rem/1.6 var(--f-body); overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--volt); color: var(--volt-ink); }
section:focus { outline: none; } /* focus posé par le menu (main.js « volet ») : pas de cadre autour de toute la section */
.defs { position: absolute; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--volt); color: var(--volt-ink); padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding: clamp(72px, 12vw, 150px) 0; position: relative; }
.section--alt { background: var(--ink-2); }
.eyebrow { display: flex; align-items: center; gap: .7em; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bleu-2); margin: 0 0 1.25rem; }
/* Le voyant de chaque section : éteint, il s'allume quand le courant arrive (classe .vu) */
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--acier-2); flex: none; }
.eyebrow.vu::before, html:not(.js) .eyebrow::before { background: var(--volt); box-shadow: 0 0 12px var(--volt); }
html.js .eyebrow.vu::before { animation: gresille .9s steps(1) both; }
@keyframes gresille { 0% { opacity: .15; } 18% { opacity: 1; } 26% { opacity: .2; } 44% { opacity: 1; } 52% { opacity: .4; } 64%, 100% { opacity: 1; } }
.h2 {
  font: 800 clamp(1.5rem, 7vw, 4.6rem)/.98 var(--f-display);
  letter-spacing: -.035em; text-transform: uppercase; margin: 0 0 1.5rem; text-wrap: balance;
}
.h2--petit { font-size: clamp(1.4rem, 3.6vw, 2.5rem); margin-bottom: 0; }
/* Dans une demi-colonne, le titre se regle sur la colonne : le mot le plus long doit y tenir en entier. */
@media (min-width: 900px) { .devis__intro .h2, .air__texte .h2 { font-size: clamp(1.5rem, 4.2vw, 3.7rem); } }
.h2 em, .hero__title em { font-style: normal; color: var(--bleu-2); }
h3 { font: 700 1.2rem/1.2 var(--f-display); letter-spacing: -.01em; margin: 0 0 .5rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 46ch; margin: 0 0 2rem; }
.petit { font-size: .875rem; color: var(--muted); margin: 1rem 0 0; max-width: 60ch; }
.label { display: block; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.desktop-only { display: none; }
@media (min-width: 900px) { .desktop-only { display: block; } }

/* Au doigt ou à la souris : le bon texte d'indice */
.sur-doigt { display: none; }
@media (hover: none) { .sur-souris { display: none; } .sur-doigt { display: inline; } }

/* ---------- Apparitions (main.js, « apparitions ») ---------- */
html.js .revele { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s var(--ease); }
html.js .revele.vu { opacity: 1; transform: none; }
html.js .eyebrow.revele { transform: none; opacity: 1; } /* le sur-titre ne bouge pas : c'est son voyant qui s'allume */
html.js .revele--cote { transform: translateX(-22px); }
html.js .revele--cote:nth-child(2) { transition-delay: .09s; }
html.js .revele--cote:nth-child(3) { transition-delay: .18s; }
html.js .revele--cote:nth-child(4) { transition-delay: .27s; }
/* Titres : chaque ligne monte de derrière un cache, l'une après l'autre */
.ligne { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ligne > span { display: inline-block; }
html.js .h2 .ligne > span { transform: translate3d(0, 110%, 0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * .11s); }
html.js .h2.vu .ligne > span { transform: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 0 1.5em;
  border-radius: 999px; border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn--volt { background: var(--volt); color: var(--volt-ink); box-shadow: 0 0 0 0 var(--volt); }
.btn--volt:hover { box-shadow: 0 0 34px -6px var(--volt); }
.btn--ghost { border-color: var(--line-2); background: transparent; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn:hover { transform: translateY(-2px); }
.btn > span[aria-hidden] { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover > span[aria-hidden] { transform: translateX(4px); }
.btn:hover > span[aria-hidden]:first-child { transform: translateX(-4px); }
.btn:active { transform: scale(.97); }

/* ---------- Le brasseur d'air (dessin partagé #pales) ---------- */
.pale { fill: var(--pale-fill, url(#g-pale)); stroke: var(--pale-trait, none); stroke-width: 1.5; }
.s-pale-1 { stop-color: var(--pale-2); }
.s-pale-2 { stop-color: var(--pale); }
.pales__moyeu { fill: var(--moyeu-fill, var(--pale)); stroke: var(--pale-2); stroke-width: 2; }
.pales__coeur { fill: var(--coeur-fill, var(--bleu)); }
.brasseur__flou { fill: var(--pale); opacity: var(--flou, 0); } /* le disque flou des pales quand ça tourne vite */

/* ---------- L'ouverture : tout est éteint, le disjoncteur s'enclenche ---------- */
.noir { display: none; }
html.intro .noir {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--ombre); animation: rallume 1s steps(1) 1.15s forwards;
}
.noir__disj { width: clamp(84px, 16vw, 120px); overflow: visible; }
.disj__boite { fill: var(--ink-3); stroke: var(--acier); stroke-width: 3; }
.disj__fente { fill: var(--ombre); }
.disj__levier rect { fill: var(--paper); }
.disj__led { fill: var(--acier-2); }
.disj__eclair { fill: var(--volt); opacity: 0; }
html.intro .disj__levier { animation: enclenche .22s cubic-bezier(.3, 1.6, .5, 1) .8s both; }
html.intro .disj__led { animation: led .01s .95s both; }
html.intro .disj__eclair { animation: led-on .01s .95s both; }
@keyframes enclenche { from { transform: none; } to { transform: translateY(-42px); } }
@keyframes led { to { fill: var(--volt); filter: drop-shadow(0 0 10px var(--volt)); } }
@keyframes led-on { to { opacity: 1; } }
@keyframes rallume { 0% { opacity: 1; } 12% { opacity: .25; } 20% { opacity: 1; } 34% { opacity: .1; } 42% { opacity: .7; } 56% { opacity: .05; } 62%, 100% { opacity: 0; visibility: hidden; } }

/* ---------- Le fil de courant, fixé au bord gauche : il se remplit avec le défilement ---------- */
.rail { position: fixed; top: 0; bottom: 0; left: max(7px, calc(var(--gutter) * .32)); width: 2px; z-index: 40; pointer-events: none; background: var(--line); }
.rail__jus { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(var(--bleu), var(--cyan)); }
.rail__point { position: absolute; left: -4px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 14px 4px var(--cyan); transform: translateY(calc(var(--p, 0) * 100vh)); }
html.intro .rail { opacity: 0; animation: montre .8s var(--ease) 2.5s forwards; }
html:not(.js) .rail { display: none; }

/* ---------- La transition « pales » : un grand brasseur balaie l'écran quand on change de section ---------- */
.volet { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; visibility: hidden; }
.volet svg { position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; max-width: none; --pale-fill: var(--bleu); --moyeu-fill: var(--ink); --coeur-fill: var(--volt); will-change: transform, opacity; }
.volet__fond { fill: var(--ink-3); }
.volet.joue { visibility: visible; }
.volet.joue svg { animation: volet .95s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes volet {
  0% { transform: scale(0) rotate(-120deg); opacity: 1; }
  45% { transform: scale(2.1) rotate(40deg); opacity: 1; }
  60% { transform: scale(2.1) rotate(90deg); opacity: 1; }
  100% { transform: scale(2.1) rotate(200deg); opacity: 0; }
}

/* ---------- En-tête : transparent sur le héros, plein ensuite ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 var(--gutter);
  transition: background-color .45s, box-shadow .45s;
}
html.intro .nav { opacity: 0; transform: translateY(-12px); animation: montre .8s var(--ease) 2.5s forwards; }
@keyframes montre { to { opacity: 1; transform: none; } }
.nav--plein { background: color-mix(in srgb, var(--ink) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font: 800 1.3rem/1 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; }
.nav__brand svg { width: 10px; height: 20px; margin: 0 2px; fill: var(--volt); filter: drop-shadow(0 0 6px var(--volt)); }
.nav__links { display: none; gap: .25rem; }
.nav__links a { text-decoration: none; font-weight: 600; min-height: 44px; padding: 0 .9rem; border-radius: 999px; display: inline-flex; align-items: center; transition: background-color .25s, color .25s; }
.nav__links a:hover { background: var(--line); color: var(--cyan); }
.nav__cta { display: none; min-height: 44px; }
.nav__tel { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); }
.nav__tel svg { width: 20px; height: 20px; fill: currentColor; }
@media (min-width: 900px) { .nav__links, .nav__cta { display: inline-flex; } .nav__tel { display: none; } }

/* ---------- 01 · Héros ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: start; overflow: hidden; isolation: isolate; touch-action: pan-y; }
.hero__fond { position: absolute; inset: 0; z-index: -1; }
.hero__grille {
  position: absolute; inset: 0; opacity: .7;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 72px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 72px 100%;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 55%, var(--ombre) 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 60% 55%, var(--ombre) 20%, transparent 75%);
}
.hero__halo { position: absolute; left: 50%; top: 62%; width: 130vmin; height: 130vmin; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--bleu) 46%, transparent), transparent); }
/* La rotation est posée sur le <svg> entier (main.js) : le navigateur fait tourner une image déjà dessinée, sans la redessiner. */
.hero__brasseur { position: absolute; left: 50%; top: 62%; width: min(128vw, 78svh); aspect-ratio: 1; transform: translate(-50%, -50%); }
.hero__tourne { width: 100%; height: 100%; overflow: visible; }
@media (min-width: 900px) {
  .hero__halo, .hero__brasseur { left: 76%; top: 54%; }
  .hero__brasseur { width: min(52vw, 86svh); }
}
html.intro .hero__brasseur { animation: descend 1.8s var(--ease) 1.45s both; }
@keyframes descend { from { opacity: 0; transform: translate(-50%, -50%) scale(.82); } }
.hero__arcs { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; overflow: visible; }
.arc { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px var(--cyan)) drop-shadow(0 0 14px var(--bleu)); animation: arc .5s steps(1) forwards; }
@keyframes arc { 0% { opacity: 1; } 30% { opacity: .35; } 45% { opacity: 1; } 70% { opacity: .25; } 100% { opacity: 0; } }

.hero__inner { position: relative; width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--nav-h) + clamp(20px, 5vh, 60px)) var(--gutter) 0; }
@media (min-width: 900px) { .hero { align-items: center; } .hero__inner { padding-top: var(--nav-h); padding-bottom: 6vh; } }
/* Syne 800 est très large : sur téléphone, « COURANT » (8,8 em) occupe exactement la largeur utile, bord à bord. */
.hero__title { font: 800 min(calc((100vw - 2 * var(--gutter)) / 8.9), 5.4rem)/.9 var(--f-display); letter-spacing: -.045em; text-transform: uppercase; margin: 0; text-shadow: 0 4px 40px var(--ombre); }
@media (min-width: 900px) { .hero__title { font-size: clamp(4rem, 9.2vw, 9.6rem); } }
@media (min-width: 900px) and (max-height: 760px) { .hero__title { font-size: clamp(3.4rem, 7.4vw, 6.4rem); } }
.hero__title .ligne:nth-child(2) { --i: 1; } .hero__title .ligne:nth-child(3) { --i: 2; }
html.intro .hero__title .ligne > span { animation: monte 1.1s var(--ease) both; animation-delay: calc(1.75s + var(--i, 0) * .11s); }
@keyframes monte { from { transform: translate3d(0, 110%, 0); } }
.hero__title em { text-shadow: 0 0 34px var(--bleu); }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 38ch; margin: 2rem 0; }
.hero__cta.desktop-only { gap: .75rem; }
@media (min-width: 900px) { .hero__cta.desktop-only { display: flex; flex-wrap: wrap; } }
html.intro .hero__inner > :not(.hero__title) { animation: leve 1.1s var(--ease) 2.1s both; }
@keyframes leve { from { opacity: 0; transform: translateY(26px); } }
.hero__indice { position: static; display: block; margin: 1.75rem 0 0; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: opacity .6s; }
.hero.a-joue .hero__indice { opacity: 0; }

/* ---------- Ruban de chantiers : vraies photos qui défilent (70 s), en pause hors écran (main.js « ruban ») ---------- */
.ruban { overflow: hidden; background: var(--ink); border-block: 1px solid var(--line); padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ombre) 7%, var(--ombre) 93%, transparent); mask-image: linear-gradient(90deg, transparent, var(--ombre) 7%, var(--ombre) 93%, transparent); }
.ruban__piste { display: flex; width: max-content; animation: defile 70s linear infinite; }
.ruban:not(.en-vue) .ruban__piste { animation-play-state: paused; }
.ruban img { height: clamp(150px, 21vw, 260px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; margin-right: 12px; }
@keyframes defile { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 02 · La maison (section épinglée, main.js « maison ») ---------- */
.maison { position: relative; height: 460vh; background: var(--ink-2); }
.maison__colle { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(8px, 2vh, 20px); padding: calc(var(--nav-h) + 12px) 0 calc(var(--bar-h) + 12px); overflow: hidden; }
@media (min-width: 900px) { .maison__colle { padding-bottom: 28px; } }
.maison__tete .eyebrow { margin-bottom: .6rem; }
.maison__cadre { position: relative; overflow: hidden; }
.scene { position: absolute; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 1000 / 436; max-width: none; transform: translateX(-50%); will-change: transform; }
.maison__pied { display: grid; gap: 14px; }
.maison__texte { min-height: 8.6rem; transition: opacity .3s, transform .45s var(--ease); }
.maison__texte.change { opacity: 0; transform: translateY(-10px); transition-duration: .18s; }
.maison__compte { font: 500 .8rem/1 var(--f-mono); letter-spacing: .12em; color: var(--muted); margin: 0 0 .5rem; }
.maison__compte b { color: var(--volt); font-weight: 500; }
.maison__titre { font: 800 clamp(1.3rem, 3.4vw, 2.1rem)/1.05 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; margin: 0 0 .4rem; }
.maison__desc { color: var(--muted); margin: 0; max-width: 54ch; }
.maison__barre { height: 2px; background: var(--line); overflow: hidden; }
.maison__barre i { display: block; height: 100%; background: linear-gradient(90deg, var(--bleu), var(--cyan)); transform-origin: left; transform: scaleX(0); }
/* Version calme (« réduire les animations ») : pas d'épinglage, la maison est dessinée toute allumée, les 5 étapes en liste */
.maison.calme { height: auto; }
.maison.calme .maison__colle { position: static; height: auto; display: block; }
.maison.calme .maison__cadre { overflow: visible; margin: 1.5rem 0; }
.maison.calme .scene { position: static; width: 100%; height: auto; transform: none; }
.maison.calme .maison__barre { display: none; }
.maison__liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.25rem; }
.maison__liste b { display: block; font: 700 1.1rem/1.2 var(--f-display); }
.maison__liste span { color: var(--muted); }

/* La maison en coupe. --on0 à --on4 (posés par main.js) allument chaque zone. */
.scene [data-lueur="0"] { --on: var(--on0, 0); } .scene [data-lueur="1"] { --on: var(--on1, 0); } .scene [data-lueur="2"] { --on: var(--on2, 0); }
.scene [data-lueur="3"] { --on: var(--on3, 0); } .scene [data-lueur="4"] { --on: var(--on4, 0); }
.m-etoiles { fill: var(--muted); opacity: calc(.7 - .5 * var(--on4, 0)); }
.m-palmier { fill: none; stroke: var(--acier-2); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.m-toit { fill: var(--ink-3); stroke: var(--line-2); stroke-width: 2; stroke-linejoin: round; }
.m-tole { fill: none; stroke: var(--line); stroke-width: 2; }
.m-mur { fill: var(--ink); }
.m-lueur { fill: url(#g-piece); opacity: var(--on, 0); }
.s-piece-1 { stop-color: var(--lampe); stop-opacity: .3; } .s-piece-0 { stop-color: var(--bleu); stop-opacity: .16; }
.m-cone { fill: url(#g-lampe); opacity: var(--on, 0); }
.s-lampe-1 { stop-color: var(--lampe); stop-opacity: .5; } .s-lampe-0 { stop-color: var(--lampe); stop-opacity: 0; }
.m-cloison { fill: none; stroke: var(--line-2); stroke-width: 2; }
.m-sol { stroke: var(--line-2); stroke-width: 2; }
.m-meuble { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: calc(.2 + .8 * var(--on, 0)); }
.m-fil-fond { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 7; }
.m-fil { fill: none; stroke: var(--cyan); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 5px var(--bleu)); }
.m-appareil > rect:first-child { fill: var(--ink-3); stroke: var(--muted); stroke-width: 2; }
.m-ecran { fill: color-mix(in srgb, var(--cyan) calc(var(--on, 0) * 100%), var(--acier-2)); }
.m-led { fill: color-mix(in srgb, var(--volt) calc(var(--on, 0) * 100%), var(--acier-2)); }
.m-disj rect { fill: var(--acier-2); transition: fill .15s; }
.m-disj rect.on { fill: var(--volt); }
.m-abat { fill: var(--acier); }
.m-ampoule { fill: color-mix(in srgb, var(--lampe) calc(var(--on, 0) * 100%), var(--acier-2)); filter: drop-shadow(0 0 calc(var(--on, 0) * 14px) var(--lampe)); }
.m-tige, .m-moteur { fill: var(--pale-2); }
.m-pales { fill: var(--pale); }
.m-air path { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 14; opacity: var(--air, 0); animation: flux .8s linear infinite; }
@keyframes flux { to { stroke-dashoffset: -24; } }
.m-temp { font: 500 15px/1 var(--f-mono); text-anchor: middle; fill: var(--ink); opacity: var(--on, 0); }
.m-tete { fill: var(--paper); filter: drop-shadow(0 0 8px var(--cyan)) drop-shadow(0 0 18px var(--bleu)); opacity: 0; }

/* ---------- 03 · Services : pas de cartes, des lignes que le courant vient souligner ---------- */
.services { list-style: none; margin: clamp(2rem, 5vw, 4rem) 0 0; padding: 0; display: grid; gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 620px) { .services { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.service { position: relative; padding: 1.5rem 0 2.25rem; }
.service::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); }
.service::after { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--bleu), var(--cyan)); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; box-shadow: 0 0 12px var(--bleu); }
.service.vu::after { transform: scaleX(1); }
html.js .service.revele:nth-child(2n) { transition-delay: .12s; }
@media (min-width: 1100px) { html.js .service.revele:nth-child(3) { transition-delay: .24s; } html.js .service.revele:nth-child(4) { transition-delay: .36s; } }
/* La vraie photo du chantier : dévoilée depuis le centre, légère avance au survol */
.service__photo { margin: 0 0 1.1rem; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--ink-3); }
@media (min-width: 1100px) { .service__photo { aspect-ratio: 4 / 5; } }
.service__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__photo img { transform: scale(1.03); }
.service__photo--brasseur img { object-position: 50% 58%; }
.service__photo--depannage img { object-position: 50% 40%; }
html.js .service .service__photo { clip-path: inset(16% 12% round 14px); transition: clip-path 1.5s var(--ease) .15s; }
html.js .service.vu .service__photo { clip-path: inset(0 round 14px); }
.service__num { font: 500 .75rem/1 var(--f-mono); letter-spacing: .12em; color: var(--bleu-2); }
.service p { color: var(--muted); margin: 0; max-width: 42ch; }
.service h3 { margin: .35rem 0 .4rem; }

/* ---------- Transition entre deux sections : les pales amènent la couleur de la suivante (main.js « souffle ») ---------- */
.souffle { --h: clamp(150px, 27vw, 400px); position: relative; height: var(--h); overflow: hidden; margin-top: calc(-1 * clamp(36px, 7vw, 100px)); }
.souffle svg { position: absolute; left: 50%; top: 100%; width: calc(var(--h) * 1.9); max-width: none; transform: translate(-50%, -50%) rotate(var(--a, 0deg)); will-change: transform; --pale-fill: var(--ink-2); --pale-trait: var(--bleu-2); --moyeu-fill: var(--ink-2); filter: drop-shadow(0 0 22px var(--bleu)); }

/* ---------- 04 · Le brasseur d'air ---------- */
.air__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .air__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.conso { display: grid; gap: .9rem; max-width: 460px; }
.conso__ligne { display: grid; grid-template-columns: 8.5em 1fr 3em; align-items: center; gap: .75rem; font-size: .95rem; }
.conso__ligne b { font: 500 .85rem/1 var(--f-mono); text-align: right; }
.conso__barre { height: 10px; border-radius: 99px; transform-origin: left; transition: transform 1.6s var(--ease) .35s; }
.conso__barre--air { background: var(--volt); box-shadow: 0 0 14px var(--volt); transform: scaleX(.1); }
.conso__barre--clim { background: var(--acier); transform: scaleX(1); }
html.js .conso:not(.vu) .conso__barre { transform: scaleX(0); }
.air__visuel { display: grid; justify-items: center; gap: 1.5rem; }
.air__brasseur { width: min(100%, 520px); overflow: visible; }
.air__tourne, .hero__tourne { will-change: transform; }
.air__ondes circle { fill: none; stroke: var(--cyan); stroke-width: 1.5; opacity: 0; animation: onde var(--onde, 2.4s) linear infinite; }
.air__ondes circle:nth-child(2) { animation-delay: calc(var(--onde, 2.4s) / -3); }
.air__ondes circle:nth-child(3) { animation-delay: calc(var(--onde, 2.4s) / -1.5); }
@keyframes onde { from { transform: scale(.5); opacity: .55; } to { transform: scale(2.8); opacity: 0; } }
[data-v="0"] .air__ondes { display: none; }
.vitesses { display: grid; grid-template-columns: repeat(4, auto); gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink); max-width: 100%; }
.vitesses button { min-height: 44px; padding: 0 clamp(.6rem, 2.6vw, 1.1rem); border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background-color .3s, color .3s; }
.vitesses button:hover { color: var(--cyan); }
.vitesses button[aria-checked="true"] { background: var(--bleu); color: var(--paper); }

/* ---------- 05 · Devis ---------- */
.devis__grid { display: grid; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
@media (min-width: 900px) { .devis__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); } }
.devis { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 3.4vw, 2.25rem); scroll-margin-top: calc(var(--nav-h) + 12px); }
.devis__etapes { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.devis__etapes li { padding-top: .7rem; border-top: 2px solid var(--line); transition: border-color .4s, color .4s; }
.devis__etapes li span { color: var(--bleu-2); margin-right: .3em; }
.devis__etapes li.is-on { border-color: var(--volt); color: var(--paper); }
.devis__etapes li.is-fait { border-color: var(--bleu); }
.devis__pas { border: 0; margin: 0; padding: 0; min-width: 0; }
.devis__pas legend { font: 700 1.3rem/1.2 var(--f-display); padding: 0; margin-bottom: .75rem; }
.devis__pas.entre { animation: pas .5s var(--ease) both; }
.devis__pas.entre-retour { animation: pas-retour .5s var(--ease) both; }
.fiche.entre { animation: pas .5s var(--ease) both; }
@keyframes pas { from { opacity: 0; transform: translateX(22px); } }
@keyframes pas-retour { from { opacity: 0; transform: translateX(-22px); } }
.aide { color: var(--muted); font-size: .9rem; margin: 0 0 .9rem; }
.puces-choix { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.puces-choix label { position: relative; cursor: pointer; }
.puces-choix input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.puces-choix span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: .95rem; transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.puces-choix label:hover span { border-color: var(--cyan); }
.puces-choix input:checked + span { background: var(--bleu); border-color: var(--bleu); color: var(--paper); }
.puces-choix input:focus-visible + span { outline: 2px solid var(--volt); outline-offset: 3px; }
.puces-choix input:active + span { transform: scale(.96); }
.compte { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 1rem; margin-bottom: 1.1rem; border-radius: 14px; background: var(--ink-3); animation: pas .4s var(--ease) both; }
.compte__boutons { display: inline-flex; align-items: center; gap: .25rem; }
.compte__boutons button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; transition: border-color .25s, color .25s, transform .2s; }
.compte__boutons button:hover { border-color: var(--cyan); color: var(--cyan); }
.compte__boutons button:active { transform: scale(.92); }
.compte__boutons button:disabled { opacity: .35; cursor: default; }
.compte__boutons output { min-width: 2.2em; text-align: center; font: 700 1.4rem/1 var(--f-display); }
.plan { display: grid; gap: 1rem; margin-bottom: 1.1rem; align-items: center; }
@media (min-width: 620px) { .plan { grid-template-columns: minmax(0, 300px) 1fr; } }
.plan__dessin { width: 100%; max-width: 340px; }
.plan__dessin rect { fill: var(--ink-3); stroke: var(--line-2); stroke-width: 2; cursor: pointer; transition: fill .25s, stroke .25s; }
.plan__dessin rect:hover { stroke: var(--cyan); }
.plan__dessin rect.on { fill: var(--bleu); stroke: var(--cyan); }
.plan__dehors { stroke-dasharray: 6 5; }
.plan__noms text { font: 500 13px/1 var(--f-mono); fill: var(--paper); text-anchor: middle; pointer-events: none; }
.champs { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 620px) { .champs { grid-template-columns: 1fr 1fr; } .field--large { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field__opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); font-size: 1rem; transition: border-color .25s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 96px; }
.field ::placeholder { color: var(--acier); opacity: 1; }
.field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--erreur); }
.field__err { color: var(--erreur); font-size: .875rem; margin: .35rem 0 0; min-height: 0; }
.field__err:empty { display: none; }
.devis__nav { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.devis__nav .btn--ghost:first-child:not(:only-child) { margin-right: auto; }
.form__note { color: var(--muted); font-size: .8rem; margin: 1.25rem 0 0; }
/* La fiche de demande */
.fiche:focus { outline: none; }
.fiche__ref { font: 500 .8rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.fiche__ref b { color: var(--volt); font-weight: 500; }
.fiche__titre { font: 700 1.4rem/1.2 var(--f-display); margin: 0 0 1.25rem; }
.fiche__lignes { margin: 0 0 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: 0; border-block: 1px dashed var(--line-2); }
.fiche__lignes dt, .fiche__lignes dd { margin: 0; padding: .6rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.fiche__lignes dt:first-of-type, .fiche__lignes dt:first-of-type + dd { border-top: 0; }
.fiche__lignes dt { font: 500 .75rem/1.9 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-right: 1.25rem; }
.fiche .devis__nav { justify-content: flex-start; margin-top: 1.25rem; }
.fiche .devis__nav .btn--ghost { margin-right: 0; }
.fiche__etat { color: var(--cyan); font-size: .9rem; margin: .75rem 0 0; min-height: 1.4em; }

/* ---------- 06 · Contact ---------- */
.contact__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.infos { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.25rem; font-size: 1.1rem; max-width: 34em; }
.infos a { text-decoration-color: var(--bleu-2); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; transition: color .25s; }
.infos a:hover { color: var(--cyan); }
.contact__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
/* Le technicien en route pour les îles : cadre fin bleu décalé, légende sur un voile */
.contact__photo { position: relative; margin: 0 auto; width: min(100%, 420px); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
  box-shadow: 14px 14px 0 -1px var(--ink-2), 14px 14px 0 0 var(--bleu); }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.contact__photo figcaption { position: absolute; inset: auto 0 0; padding: 3rem 1.25rem 1.1rem; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--paper);
  background: linear-gradient(transparent, color-mix(in srgb, var(--ombre) 78%, transparent)); }
@media (max-width: 899px) { .contact__photo { width: min(100% - 14px, 340px); margin-left: 0; } }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; }
.footer__grid { display: grid; gap: .5rem; }
.footer p { margin: 0; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__nom { font: 800 1.2rem/1 var(--f-display); text-transform: uppercase; color: var(--paper); margin-bottom: .5rem !important; }

/* ---------- Barre mobile : Appeler / WhatsApp / Devis ---------- */
.actionbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 6px; padding: 6px; border-radius: 22px;
  background: var(--barre); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .6s var(--ease);
}
html.intro .actionbar:not(.is-visible) { transform: translateY(140%); }
.actionbar a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 56px; border-radius: 16px; text-decoration: none; font-size: .78rem; font-weight: 600; transition: background-color .25s, transform .2s; }
.actionbar a:active { transform: scale(.96); }
.actionbar svg { width: 22px; height: 22px; fill: currentColor; }
.actionbar .is-main { background: var(--volt); color: var(--volt-ink); }
@media (min-width: 900px) { .actionbar { display: none; } }

/* ---------- Page mentions légales ---------- */
.legal { padding: calc(var(--nav-h) + 3rem) 0 4rem; max-width: 70ch; }
.legal h1 { font: 800 clamp(2rem, 6vw, 3.4rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; }
.legal h2 { font: 700 1.2rem/1.2 var(--f-display); margin: 2rem 0 .5rem; }
.legal p { color: var(--muted); }

/* ---------- Réduire les animations : tout s'arrête, tout reste lisible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rail, .volet, .m-tete { display: none; }
}
