/* =========================================================
   KLN TECH — feuille de style du site (direction « Hybrid A/C »)
   Sombre, profond, lumière discrète. Geist auto-hébergée.
   Aucune dépendance externe.
   Points de rupture : 1180 / 1024 / 860 / 640 / 400
   ========================================================= */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #090D0C;
  --bg-2: #0C1210;
  --panel: #0F1714;
  --panel-2: #131D19;
  --console: #0B110F;
  --line: rgba(220, 236, 229, .08);
  --line-2: rgba(220, 236, 229, .14);
  --line-3: rgba(220, 236, 229, .26);
  --ink: #EEF3F0;
  --ink-2: #A9B7B1;
  --ink-3: #87958F;
  --brand: #1E7F5C;
  --accent: #4CC79A;
  --accent-soft: rgba(76, 199, 154, .12);
  --info: #8FB3FF;
  --amber: #E0A84A;
  --error: #FF8A7A;
  --ease: cubic-bezier(.2, .7, .15, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 72px;
  --mbar-h: 0px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
html.menu-open { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #07100C; font-weight: 500; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); padding-left: max(clamp(20px, 4vw, 48px), env(safe-area-inset-left)); padding-right: max(clamp(20px, 4vw, 48px), env(safe-area-inset-right)); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.mono b { color: var(--accent); font-weight: 500; }

/* ===== Boutons ===== */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 9px 0 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font: 500 15px/1.1 var(--font); letter-spacing: -0.005em; white-space: nowrap; transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease), color .3s; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn .orb { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; transition: transform .4s var(--ease); flex: none; }
.btn .orb svg { width: 16px; height: 16px; stroke-width: 2; }
.btn--primary { background: var(--ink); color: #07100C; }
.btn--primary:hover { background: #fff; box-shadow: 0 0 0 6px rgba(76, 199, 154, .1); }
.btn--primary:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); padding: 0 22px; box-shadow: inset 0 0 0 1px var(--line-3); }
.btn--ghost:hover { background: rgba(238, 243, 240, .06); box-shadow: inset 0 0 0 1px rgba(220, 236, 229, .42); }
.btn--sm { min-height: 44px; padding: 0 6px 0 18px; font-size: 14px; gap: 10px; }
.btn--sm .orb { width: 32px; height: 32px; }
.btn--ghost.btn--sm { padding: 0 18px; }
.btn[disabled] { cursor: progress; opacity: .75; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn--primary:hover { transform: translateY(-2px); }
  .btn--primary:hover .orb { transform: rotate(-45deg); }
}

/* ===== Navigation ===== */
.nav { position: sticky; top: 0; z-index: 60; }
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(9, 13, 12, .82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .35s var(--ease); }
.nav.is-scrolled::before, html.menu-open .nav::before { opacity: 1; }
.nav-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); border-radius: 8px; flex: none; }
.logo-h { width: 132px; height: 30px; }
.logo-sub { padding-left: 14px; border-left: 1px solid var(--line-2); font-size: 12.5px; line-height: 1.25; color: var(--ink-3); }
.nav-links { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(238, 243, 240, .02); }
.nav-links a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .25s, background-color .25s; }
.nav-links a:hover { color: var(--ink); background: rgba(238, 243, 240, .06); }
.nav-links a.is-current { color: var(--ink); background: rgba(238, 243, 240, .08); }
.nav-r { display: flex; align-items: center; gap: 14px; }
.nav-tel { display: inline-flex; align-items: center; gap: 8px; padding: 10px 2px; font: 500 13px var(--mono); color: var(--ink-2); text-decoration: none; transition: color .25s; white-space: nowrap; }
.nav-tel i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(76, 199, 154, .15); }
.nav-tel:hover { color: var(--ink); }
.burger { display: none; position: relative; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(238, 243, 240, .03); cursor: pointer; }
.burger-l, .burger-l::before { position: absolute; left: 13px; width: 20px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger-l { top: 18px; }
.burger-l::before { content: ""; left: 0; top: 8px; }
.burger[aria-expanded="true"] .burger-l { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-l::before { top: 0; transform: rotate(-90deg); }

.menu { position: fixed; left: 0; right: 0; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-top: 1px solid var(--line); padding: 20px 0 calc(28px + env(safe-area-inset-bottom)); }
.menu-links a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }
.menu-links a span { font: 500 12px var(--mono); color: var(--accent); letter-spacing: .1em; }
.menu-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.menu-actions .btn { width: 100%; justify-content: space-between; }
.menu-actions .btn--ghost { justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) { animation: menu-in .35s var(--ease); }
  .menu:not([hidden]) .menu-links li { animation: rise-sm .45s var(--ease) both; }
  .menu:not([hidden]) .menu-links li:nth-child(2) { animation-delay: .03s; }
  .menu:not([hidden]) .menu-links li:nth-child(3) { animation-delay: .06s; }
  .menu:not([hidden]) .menu-links li:nth-child(4) { animation-delay: .09s; }
  .menu:not([hidden]) .menu-links li:nth-child(5) { animation-delay: .12s; }
  .menu:not([hidden]) .menu-links li:nth-child(6) { animation-delay: .15s; }
  .menu:not([hidden]) .menu-links li:nth-child(7) { animation-delay: .18s; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 104px); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 65% at 74% 44%, rgba(30, 127, 92, .15), transparent 70%), radial-gradient(40% 50% at 8% 0%, rgba(143, 179, 255, .045), transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 3vw, 56px); align-items: center; min-height: min(680px, calc(100vh - var(--header-h) - 40px)); }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 13.5px; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(238, 243, 240, .03); color: var(--ink); font-weight: 500; }
.pill svg { width: 18px; height: 18px; color: var(--ink); }
.h1 { margin-top: 24px; font-size: clamp(44px, 5.7vw, 84px); line-height: .98; font-weight: 600; letter-spacing: -0.048em; }
.h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.h1 .ln > span { display: inline-block; }
.h1 em { font-style: normal; color: var(--ink-2); font-weight: 400; }
.rotline { margin-top: 26px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 31em; }
.rotline strong { color: var(--ink); font-weight: 500; }
/* Mot animé : le texte réel (« lent, planté, infecté ou bloqué ») reste dans le DOM ; le mot affiché est un
   pseudo-élément (hors DOM, hors copier-coller, hors lecteurs d'écran), activé par le JS seulement. */
.rot-text { color: var(--ink); }
.rot { display: none; }
html.rot-on .rot-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.rot-on .rot { display: inline-block; position: relative; height: 1.5em; overflow: hidden; vertical-align: bottom; padding: 0 .32em; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 500; text-align: left; min-width: 4.6em; }
html.rot-on .rot::before { content: attr(data-word); display: block; height: 1.5em; line-height: 1.5em; white-space: nowrap; transition: transform .32s var(--ease-io), opacity .32s var(--ease-io); }
html.rot-on .rot.is-out::before { transform: translateY(-70%); opacity: 0; }
html.rot-on .rot.is-enter::before { transform: translateY(70%); opacity: 0; transition: none; }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Système vivant */
.sys { position: relative; width: 100%; aspect-ratio: 600 / 560; }
.layer { position: absolute; inset: 0; will-change: transform; transition: transform .9s var(--ease); }
.layer svg { width: 100%; height: 100%; overflow: visible; }
.l1 { transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -6px), 0); }
.l2 { transform: translate3d(calc(var(--px, 0) * 9px), calc(var(--py, 0) * 9px), 0); }
.l3 { transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 14px), 0); }
.sys .orbit { fill: none; stroke: rgba(220, 236, 229, .09); stroke-width: 1; stroke-dasharray: 2 7; }
.sys .o2 { stroke: rgba(220, 236, 229, .065); }
.sys .o3 { stroke-dasharray: 1 12; }
.sys .far { fill: rgba(220, 236, 229, .2); }
.sys .farlink { fill: none; stroke: rgba(220, 236, 229, .05); stroke-width: 1; }
.sys .link { fill: none; stroke: rgba(76, 199, 154, .3); stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sys .link.cross { stroke: rgba(220, 236, 229, .1); }
.sys .pkt { display: none; fill: none; stroke: #9BE3C6; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: .045 .955; stroke-dashoffset: 1; }
.sys .pkt.in { stroke: var(--info); }
.sys .pt { display: none; fill: rgba(220, 236, 229, .5); }
.sys .node rect { fill: #0E1613; stroke: rgba(220, 236, 229, .16); stroke-width: 1; }
.sys .node text { font: 500 12px var(--mono); fill: var(--ink-2); letter-spacing: .03em; }
.sys .node circle { fill: var(--accent); }
.sys .hubtile { fill: #101A16; stroke: rgba(76, 199, 154, .45); stroke-width: 1.2; }
.sys .hubk { fill: var(--ink); }
.sys .hubg { fill: var(--brand); }
.sys .pulse { display: none; fill: none; stroke: var(--accent); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.ui { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(15, 23, 20, .94); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); font-size: 13px; line-height: 1.35; white-space: nowrap; }
.ui .k { display: block; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ui .v { color: var(--ink); font-weight: 500; }
.ui .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.ui .ic svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ui .ic.info { background: rgba(143, 179, 255, .12); }
.ui .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(143, 179, 255, .25); border-top-color: var(--info); }
.ui1 { left: 0; top: 9%; }
.ui2 { right: 0; top: 50%; }
.ui3 { left: 7%; bottom: 3%; }

/* ===== Sections ===== */
.sec { position: relative; padding: clamp(80px, 9vw, 140px) 0; }
.sep { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); overflow: hidden; }
.sep::after { content: ""; position: absolute; top: 0; left: 0; width: 180px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform: translateX(-200px); }
.head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.h2 { margin-top: 18px; font-size: clamp(32px, 4.1vw, 60px); line-height: 1.03; font-weight: 600; letter-spacing: -0.042em; text-wrap: balance; }
.h2 span { color: var(--ink-3); }
.sub { font-size: 17px; color: var(--ink-2); max-width: 31em; justify-self: end; }

/* ===== Services ===== */
.svc { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 20px; align-items: stretch; }
.svc-tabs { display: flex; flex-direction: column; gap: 8px; }
.svc-tab { position: relative; width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; text-align: left; padding: 17px 20px 17px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(238, 243, 240, .015); cursor: pointer; overflow: hidden; transition: background-color .35s var(--ease), border-color .35s var(--ease); -webkit-tap-highlight-color: transparent; }
.svc-tab::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 4px; margin-top: -2px; background: var(--brand); transition: width .4s var(--ease); }
.svc-tab:hover { border-color: var(--line-2); background: rgba(238, 243, 240, .035); }
.svc-tab .ix { grid-row: 1 / 3; font: 500 12px var(--mono); color: var(--ink-3); transition: color .3s, transform .4s var(--ease); }
.svc-tab .nm { font-size: 17.5px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.svc-tab .sh { grid-column: 2; font-size: 13.5px; color: var(--ink-3); line-height: 1.35; }
.svc-tab .led { grid-row: 1 / 3; grid-column: 3; }
.svc-tab .led i { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(220, 236, 229, .2); transition: background-color .3s, box-shadow .3s; }
.svc-tab[aria-selected="true"] { border-color: rgba(76, 199, 154, .38); background: linear-gradient(90deg, rgba(30, 127, 92, .15), rgba(30, 127, 92, .02) 70%); }
.svc-tab[aria-selected="true"]::before { width: 10px; }
.svc-tab[aria-selected="true"] .ix { color: var(--accent); transform: translateX(6px); }
.svc-tab[aria-selected="true"] .led i { background: var(--accent); box-shadow: 0 0 0 4px rgba(76, 199, 154, .16); }
.svc-panels { position: relative; display: grid; }
.svc-panel { grid-area: 1 / 1; position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(120% 80% at 100% 0%, rgba(30, 127, 92, .13), transparent 55%), var(--panel); padding: clamp(24px, 3vw, 40px); }
.ptop { display: flex; align-items: center; gap: 16px; }
.pic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(76, 199, 154, .25); flex: none; }
.pic svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-panel h3 { margin-top: 4px; font-size: clamp(25px, 2.5vw, 34px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
.pcols { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pcols h4 { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pcols li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.pcols .sym li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--amber); }
.pcols .act svg { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pfoot { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.badge svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Expertise ===== */
.ex-pipe { position: relative; margin-bottom: 28px; }
.ex-rail { position: absolute; left: 10%; right: 10%; top: 31px; height: 2px; background: var(--line-2); border-radius: 2px; }
.ex-rail .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 2px; transition: width .8s var(--ease-io); }
.ex-rail .fill::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(76, 199, 154, .15); }
.ex-nodes { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ex-node { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 4px 4px; background: none; border: 0; cursor: pointer; border-radius: 16px; -webkit-tap-highlight-color: transparent; }
.ex-node .c { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); transition: border-color .35s, background-color .35s, transform .45s var(--ease), box-shadow .35s; }
.ex-node .c svg { width: 26px; height: 26px; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.ex-node .l { font-size: 15px; font-weight: 500; color: var(--ink-3); transition: color .3s; text-align: center; line-height: 1.2; }
.ex-node .s { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ex-node:hover .c { border-color: var(--line-3); }
.ex-node.is-done .c { border-color: rgba(76, 199, 154, .35); }
.ex-node.is-done .c svg { stroke: var(--accent); }
.ex-node.is-done .l { color: var(--ink-2); }
.ex-node.is-on .c { background: var(--panel-2); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 0 0 6px rgba(76, 199, 154, .08); }
.ex-node.is-on .c svg { stroke: var(--accent); }
.ex-node.is-on .l { color: var(--ink); }
.ex-node.is-on .s { color: var(--accent); }
.ex-stage { border-radius: 28px; border: 1px solid var(--line-2); background: var(--panel); padding: clamp(22px, 3.2vw, 48px); }
.ex-panels { display: grid; }
.ex-panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.ex-txt h3 { margin-top: 14px; font-size: clamp(27px, 2.9vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; }
.ex-txt > p:last-child { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; max-width: 30em; }
.ex-ctrl { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctrl { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; cursor: pointer; transition: background-color .25s, border-color .25s; }
.ctrl:hover { background: rgba(238, 243, 240, .06); border-color: var(--line-3); }
.ctrl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ex-state { margin-left: 8px; }
.ex-count { margin-left: auto; color: var(--ink-2); }
.ex-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.console { border-radius: 20px; border: 1px solid var(--line-2); background: var(--console); overflow: hidden; }
.console-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.console-h .dots { display: flex; gap: 6px; }
.console-h .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(220, 236, 229, .14); }
.console ul li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.console .lb { color: var(--ink-2); }
.console .vl { font: 500 12px var(--mono); letter-spacing: .04em; text-align: right; }
.dot { position: relative; display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--brand); }
.dot.ok::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dot.run { border: 2px solid rgba(143, 179, 255, .25); border-top-color: var(--info); }
.dot.wait { background: rgba(224, 168, 74, .18); }
.dot.wait::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--amber); }
.dot.info { background: rgba(143, 179, 255, .16); }
.dot.info::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--info); }
.vl.ok { color: var(--accent); } .vl.run { color: var(--info); } .vl.wait { color: var(--amber); } .vl.info { color: var(--ink-2); }
.cbar { padding: 16px 18px 18px; }
.cbar .bar { height: 6px; border-radius: 6px; background: rgba(220, 236, 229, .07); overflow: hidden; }
.cbar .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.cbar .meta { margin-top: 10px; display: flex; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ===== Pourquoi ===== */
.why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.w { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); padding: clamp(22px, 2.6vw, 34px); transition: border-color .4s var(--ease); }
.w:hover { border-color: var(--line-2); }
.w h3 { margin-top: 12px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.w p:not(.mono):not(.big) { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 30em; }
.w5 { grid-column: span 5; grid-row: span 2; display: flex; flex-direction: column; }
.w7 { grid-column: span 7; }
.w4 { grid-column: span 4; }
.w3 { grid-column: span 3; }
.w12 { grid-column: span 12; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 40px; align-items: center; }
.w-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: end; }
.big { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.big .n { font-size: clamp(54px, 5.8vw, 86px); line-height: .9; font-weight: 600; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.big .u { font-size: 14.5px; line-height: 1.3; color: var(--ink-2); }
.w-split .big { margin-top: 0; }
.nums { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 36px; }
.radar { position: relative; margin: 22px auto 0; width: min(100%, 320px); aspect-ratio: 1; }
.radar svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.radar .ring { fill: none; stroke: rgba(220, 236, 229, .1); stroke-width: 1; }
.radar .rd { fill: var(--ink-2); }
.radar .rh { fill: var(--accent); }
.radar .rl { font: 500 9.5px var(--mono); fill: var(--ink-3); letter-spacing: .03em; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(76, 199, 154, .2), rgba(76, 199, 154, 0) 70deg, transparent 360deg); -webkit-mask-image: radial-gradient(circle, #000 69%, transparent 70%); mask-image: radial-gradient(circle, #000 69%, transparent 70%); }
.devis { margin-top: 22px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--console); padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.devis .t { font-weight: 500; }
.devis .st { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.devis .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.devis .ln { grid-column: 1 / 3; height: 6px; border-radius: 4px; background: rgba(220, 236, 229, .06); }
.devis .ln.s { width: 60%; }
.remote { margin-top: 22px; position: relative; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.remote .dev { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--console); }
.remote .dev svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.remote .dev svg.k { width: 22px; height: 22px; color: var(--ink); stroke: none; }
.remote .wire { position: absolute; left: 52px; right: 52px; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, var(--line-3) 0 4px, transparent 4px 9px); }
.remote .wire::after { content: ""; position: absolute; top: -2px; left: 0; width: 26px; height: 5px; border-radius: 4px; background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--console); font: 500 12.5px var(--mono); letter-spacing: .02em; color: var(--ink-2); }

/* ===== Processus ===== */
.proc { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.proc-l { position: sticky; top: calc(var(--header-h) + 40px); }
.proc-intro { margin-top: 20px; color: var(--ink-2); max-width: 27em; font-size: 16.5px; }
.proc-meter { margin-top: 32px; display: flex; align-items: center; gap: 16px; }
.proc-meter .proc-now { color: var(--ink-2); min-width: 9.5em; }
.proc-meter .bar { flex: 1; max-width: 240px; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.proc-meter .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: left; transform: scaleX(1); transition: transform .5s var(--ease); }
.proc-track { position: relative; }
.proc-line { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--line-2); }
.proc-line i { position: absolute; inset: 0; background: linear-gradient(var(--brand), var(--accent)); transform-origin: top; transform: scaleY(1); }
.ps { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; padding-bottom: 64px; transition: opacity .5s var(--ease); }
.ps:last-child { padding-bottom: 0; }
.ps .k { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--accent); font: 500 13px var(--mono); color: var(--accent); transition: border-color .4s, color .4s, box-shadow .4s, background-color .4s; }
.ps h3 { margin-top: 12px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.ps h3 + p { margin-top: 8px; color: var(--ink-2); max-width: 32em; }
.ps .st { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px; }
.ps .st .k2 { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
html.motion .proc-line i { transform: scaleY(0); }
html.motion .proc-meter .bar i { transform: scaleX(0); }
html.motion .ps { opacity: .4; }
html.motion .ps .k { border-color: var(--line-2); color: var(--ink-3); }
html.motion .ps.is-active, html.motion .ps.is-done { opacity: 1; }
html.motion .ps.is-active .k, html.motion .ps.is-done .k { border-color: var(--accent); color: var(--accent); }
html.motion .ps.is-active .k { background: var(--panel-2); box-shadow: 0 0 0 6px rgba(76, 199, 154, .08); }

/* ===== Zone ===== */
.zone { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.zone-intro { margin-top: 22px; color: var(--ink-2); }
.towns { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.towns button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: color .25s, border-color .25s, background-color .25s; -webkit-tap-highlight-color: transparent; }
.towns button:hover, .towns button[aria-pressed="true"] { color: var(--ink); border-color: rgba(76, 199, 154, .5); background: var(--accent-soft); }
.towns li:first-child button { color: var(--ink); border-color: rgba(76, 199, 154, .35); }
.towns button.is-hover { color: var(--ink); border-color: rgba(76, 199, 154, .5); }
.town { cursor: default; }
.zmodes { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zm { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.zm svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.zm strong { display: block; font-weight: 500; }
.zm span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .dept { fill: url(#mapDots); stroke: rgba(220, 236, 229, .16); stroke-width: 1.2; stroke-linejoin: round; }
.map .d49 { stroke: rgba(76, 199, 154, .35); }
.map .dlab { font: 600 64px var(--font); fill: rgba(220, 236, 229, .07); letter-spacing: -.04em; }
.map .zr { fill: none; stroke: rgba(76, 199, 154, .3); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.map .zl { fill: none; stroke: rgba(76, 199, 154, .22); stroke-width: 1.2; stroke-dasharray: 3 5; }
.town circle { fill: var(--bg); stroke: var(--ink-2); stroke-width: 2; transition: stroke .25s, fill .25s; }
.town text { font: 500 20px var(--mono); fill: var(--ink-2); letter-spacing: .02em; transition: fill .25s; }
.town rect { fill: rgba(9, 13, 12, .88); stroke: var(--line-2); stroke-width: 1; transition: stroke .25s, fill .25s; }
.town.home circle { fill: var(--accent); stroke: var(--accent); }
.town.home text { fill: var(--ink); font-weight: 600; }
.town.is-on circle { stroke: var(--accent); fill: var(--accent); }
.town.is-on rect { stroke: var(--accent); fill: #0F1F19; }
.town.is-on text { fill: var(--ink); }

/* ===== FAQ ===== */
.faq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq-more { margin-top: 20px; color: var(--ink-2); }
.faq-more a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; border-radius: 6px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .pm { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .3s, border-color .3s; }
.faq-list .pm::before, .faq-list .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.faq-list .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] .pm { background: var(--ink); border-color: var(--ink); }
.faq-list details[open] .pm::before, .faq-list details[open] .pm::after { background: #07100C; }
.faq-list details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--ink-2); }

/* ===== Conseils (bloc écrit par le générateur /opt/kln-conseils) ===== */
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tip { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 26px 26px 24px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(238, 243, 240, .028), rgba(238, 243, 240, .01)); transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .45s var(--ease); }
.tip:hover { border-color: var(--line-2); background-color: rgba(238, 243, 240, .03); }
.tip:focus-within { border-color: var(--accent); }
.tip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 500 12px/1.4 var(--mono); color: var(--ink-3); }
.tip-cat { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); letter-spacing: .02em; }
.tip h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; overflow-wrap: anywhere; }
.tip h3 a { text-decoration: none; border-radius: 4px; }
.tip h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.tip h3 a:focus-visible { outline: none; }
.tip-desc { color: var(--ink-2); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.tip-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.tip-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); transition: transform .35s var(--ease); }
.tip:hover .tip-go svg, .tip:focus-within .tip-go svg { transform: translateX(4px); }
.tips-empty { padding: 26px; border-radius: 20px; border: 1px dashed var(--line-2); color: var(--ink-2); }
.tips-more { margin-top: 28px; display: flex; justify-content: center; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .tip:hover { transform: translateY(-3px); } }
@media (max-width: 1023px) { .tips { grid-template-columns: minmax(0, 1fr); } .tip-desc { -webkit-line-clamp: 3; line-clamp: 3; } }
@media (max-width: 640px) { .tip { padding: 22px 20px 20px; } .tip h3 { font-size: 18px; } .tips-more .btn { width: 100%; justify-content: center; } }

/* ===== Contact / CTA final ===== */
.final { position: relative; overflow: hidden; padding: clamp(96px, 10vw, 160px) 0 clamp(80px, 9vw, 130px); }
.final::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 55% at 50% 100%, rgba(30, 127, 92, .2), transparent 70%); }
.final-bg { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.final-bg svg { width: 100%; height: 100%; }
.final-bg path { fill: none; stroke: rgba(76, 199, 154, .14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.final-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.q { font-size: clamp(20px, 2.3vw, 30px); color: var(--ink-2); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 14px; }
.q .arr { width: 46px; height: 2px; background: var(--line-3); position: relative; overflow: hidden; }
.q .arr::after { content: ""; position: absolute; inset: 0; background: var(--accent); }
.final h2 { margin-top: 16px; font-size: clamp(46px, 7.2vw, 112px); line-height: .95; font-weight: 600; letter-spacing: -0.055em; }
.final h2 span { color: var(--accent); }
.final .lead { margin-top: 22px; max-width: 34em; font-size: 18px; color: var(--ink-2); }
.final .actions { justify-content: center; }
.direct { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font: 500 14px var(--mono); color: var(--ink-3); }
.direct li { display: inline-flex; align-items: center; gap: 8px; }
.direct a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); text-decoration: none; transition: color .25s; }
.direct a:hover { color: var(--accent); }
.direct svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.qform { margin-top: 56px; width: 100%; max-width: 920px; text-align: left; border-radius: 26px; border: 1px solid var(--line-2); background: var(--panel); padding: clamp(20px, 2.8vw, 34px); scroll-margin-top: calc(var(--header-h) + 16px); }
.qform:focus { outline: none; }
.qform-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.qform-h h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.form-legend { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--ink-2); }
.req { color: var(--accent); }
.input { width: 100%; min-height: 52px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-3); background: rgba(238, 243, 240, .03); color: var(--ink); font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: #75837D; opacity: 1; }
.input:hover { border-color: rgba(220, 236, 229, .38); }
.input:focus { outline: none; border-color: var(--accent); background: rgba(76, 199, 154, .04); box-shadow: 0 0 0 4px rgba(76, 199, 154, .14); }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(255, 138, 122, .12); }
textarea.input { min-height: 120px; resize: vertical; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--ink-2); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); pointer-events: none; }
.select .input { padding-right: 44px; cursor: pointer; }
.select option { background: #111A17; color: var(--ink); }
.hint { font-size: 13px; color: var(--ink-3); }
.err { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--error); }
.err::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--error); color: #1A0C09; font: 700 11px var(--font); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qfoot { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 24px; }
.consent-wrap { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; cursor: pointer; }
.consent a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.privacy { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.err-summary { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 138, 122, .4); background: rgba(255, 138, 122, .07); color: var(--ink); font-size: 14px; }
.err-summary:focus { outline: none; }
.err-summary ul { margin-top: 6px; padding-left: 18px; list-style: disc; color: var(--ink-2); }
.err-summary a { color: var(--ink); }
.notice { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 16px; border: 1px solid rgba(76, 199, 154, .4); background: rgba(30, 127, 92, .12); }
.notice:focus { outline: none; }
.notice-ic { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); flex: none; }
.notice-ic::after { content: ""; position: absolute; left: 13px; top: 8px; width: 8px; height: 15px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.notice-t { font-size: 18px; font-weight: 500; }
.notice-p { margin-top: 6px; color: var(--ink-2); }
.notice-p a { color: var(--ink); }
.notice-actions { margin-top: 16px; }
.notice--error { border-color: rgba(255, 138, 122, .45); background: rgba(255, 138, 122, .07); }
.notice--error .notice-ic { background: var(--error); }
.notice--error .notice-ic::after { content: "!"; left: 0; top: 0; width: 100%; height: 100%; border: 0; transform: none; display: grid; place-items: center; color: #1A0C09; font: 700 18px/36px var(--font); text-align: center; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; }

/* ===== Footer ===== */
.foot { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.slogan { margin-top: 18px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.slogan span { color: var(--accent); }
.foot-desc { margin-top: 12px; font-size: 14px; color: var(--ink-3); max-width: 30em; }
.foot-h { margin-bottom: 14px; font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.foot li { font-size: 14.5px; color: var(--ink-2); }
.foot li a { display: inline-block; padding: 5px 0; text-decoration: none; transition: color .25s; }
.foot li:not(:has(a)) { padding: 5px 0; }
.foot li a:hover { color: var(--ink); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.totop { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.totop:hover { color: var(--ink); }
.totop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Barre mobile ===== */
.mbar { display: none; }

/* =========================================================
   Pages secondaires (légal, conseils, 404)
   ========================================================= */
.page-nav .nav-in { gap: 16px; }
.page-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.page-back:hover { color: var(--ink); }
.page-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-main { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); }
.page-head { max-width: 760px; }
.page-head h1 { margin-top: 16px; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.page-head .lede { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.prose { max-width: 760px; margin-top: clamp(32px, 4vw, 56px); color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; color: var(--ink); font-size: clamp(21px, 2vw, 26px); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose dl.info { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); border-top: 1px solid var(--line); }
.prose dl.info dt, .prose dl.info dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prose dl.info dt { color: var(--ink-3); font-size: 14.5px; }
.prose dl.info dd { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--panel); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); }
.page-cta { max-width: 760px; margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; border-radius: 22px; border: 1px solid var(--line-2); background: radial-gradient(100% 120% at 100% 0%, rgba(30, 127, 92, .14), transparent 60%), var(--panel); }
.page-cta strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.page-cta span { color: var(--ink-2); font-size: 15px; }
.post-list { max-width: 760px; margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 26px 0; text-decoration: none; }
.post-list time { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.post-list h2 { margin-top: 8px; font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; transition: color .25s; }
.post-list p { margin-top: 8px; color: var(--ink-2); }
.post-list a:hover h2 { color: var(--accent); }
.post-meta { margin-top: 14px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.page-foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.page-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13.5px; color: var(--ink-3); }
.page-foot nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.page-foot a { display: inline-block; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
.page-foot a:hover { color: var(--ink); }
.nf { min-height: calc(100vh - var(--header-h) - 90px); display: flex; align-items: center; }
.nf .actions { margin-top: 30px; }

/* =========================================================
   Animations (uniquement si l'utilisateur n'a pas réduit les mouvements)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Entrée du hero */
  .h1 .ln > span { transform: translateY(108%); animation: up 1.05s var(--ease) forwards; }
  .h1 .ln:nth-child(2) > span { animation-delay: .08s; }
  .h1 .ln:nth-child(3) > span { animation-delay: .16s; }
  .h1 .ln:nth-child(4) > span { animation-delay: .24s; }
  .intro { opacity: 0; transform: translateY(14px); animation: fade-up .9s var(--ease) .3s forwards; }
  .intro.d1 { animation-delay: .42s; } .intro.d2 { animation-delay: .54s; } .intro.d3 { animation-delay: .66s; }

  /* Système vivant */
  .sys .link { stroke-dashoffset: 1; animation: draw 1.3s var(--ease-io) forwards; animation-delay: var(--d, 0s); }
  .sys .node { opacity: 0; animation: fade .7s var(--ease) forwards; animation-delay: calc(var(--d, 0s) + .8s); }
  .sys .pkt { display: inline; opacity: 0; animation: travel 4.8s linear infinite; animation-delay: calc(var(--d, 0s) + 1.8s); }
  .sys .pkt.in { animation-direction: reverse; }
  .sys .pt { display: inline; opacity: 0; animation: float var(--t, 10s) linear infinite; animation-delay: var(--d, 0s); }
  .sys .pulse { display: inline; opacity: 0; animation: pulse 5s var(--ease) 1.6s infinite; }
  .sys .pulse.p2 { animation-delay: 4.1s; }
  .ui { opacity: 0; animation: fade-up .8s var(--ease) forwards, bob 7s ease-in-out infinite; }
  .ui1 { animation-delay: 1.6s, 2.4s; }
  .ui2 { animation-delay: 2.2s, 3.4s; }
  .ui3 { animation-delay: 2.8s, 4.4s; }
  .ui .spin { animation: spin 1s linear infinite; }
  .hero.is-off * { animation-play-state: paused !important; }

  /* Détails vivants */
  .sep::after { animation: sweep 9s var(--ease-io) infinite; }
  .dot.run { animation: spin 1s linear infinite; }
  .dot.wait::after, .devis .st i { animation: blink 1.6s ease-in-out infinite; }
  .sweep { animation: spin 7s linear infinite; }
  .remote .wire::after { animation: wire 2.8s var(--ease-io) infinite; }
  .map .zr { animation: pulse2 6s var(--ease) infinite; }
  .map .z2 { animation-delay: 3s; }
  .q .arr::after { transform: translateX(-100%); animation: arr 2.8s var(--ease-io) infinite; }
  .is-paused-anim, .is-paused-anim * { animation-play-state: paused !important; }

  /* Apparition au scroll (activée par le JS) */
  html.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  html.motion .reveal.is-in { opacity: 1; transform: none; }

  /* Changement d'étape / de service */
  .svc-panel.is-enter .ptop, .svc-panel.is-enter .pcols li, .svc-panel.is-enter .pfoot { animation: rise-sm .5s var(--ease) both; }
  .svc-panel.is-enter .pcols li:nth-child(2) { animation-delay: .05s; }
  .svc-panel.is-enter .pcols li:nth-child(3) { animation-delay: .1s; }
  .svc-panel.is-enter .pic svg { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw80 .9s var(--ease-io) .1s forwards; }
  .ex-panel.is-enter .ex-txt { animation: rise-sm .55s var(--ease) both; }
  .ex-panel.is-enter .console { animation: rise-sm .55s var(--ease) .06s both; }
  .ex-panel.is-enter .console li { animation: rise-sm .45s var(--ease) both; }
  .ex-panel.is-enter .console li:nth-child(1) { animation-delay: .12s; }
  .ex-panel.is-enter .console li:nth-child(2) { animation-delay: .2s; }
  .ex-panel.is-enter .console li:nth-child(3) { animation-delay: .28s; }
  .ex-panel.is-enter .console li:nth-child(4) { animation-delay: .36s; }
  .ex-panel.is-enter .cbar .bar i { animation: grow-x .9s var(--ease-io) .2s both; transform-origin: left; }
  .proc-line i { transition: transform .2s linear; }
  .btn .spinner { animation: spin .8s linear infinite; }
}

@keyframes up { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes rise-sm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes draw80 { to { stroke-dashoffset: 0; } }
@keyframes travel { 0% { stroke-dashoffset: 1; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: .045; opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes pulse2 { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes float { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .6; } 85% { opacity: .4; } 100% { transform: translateY(-80px); opacity: 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes sweep { 0% { transform: translateX(-200px); } 55%, 100% { transform: translateX(110vw); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes wire { 0% { left: 0; } 50% { left: calc(100% - 26px); } 100% { left: 0; } }
@keyframes arr { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =========================================================
   Responsive
   ========================================================= */
/* 7 liens dans le menu : le sous-titre du logo laisse sa place avant que le menu ne manque d'espace */
@media (max-width: 1340px) {
  .logo-sub { display: none; }
  .nav-links a { padding: 8px 12px; }
}

@media (max-width: 1180px) {
  .zone { grid-template-columns: minmax(0, 1fr); }
  .map { max-width: 720px; }
  .logo-sub, .nav-tel { display: none; }
  .nav-links a { padding: 8px 10px; font-size: 13.5px; }
}

@media (max-width: 1023px) {
  .nav-main, .nav-cta { display: none; }
  .burger { display: inline-block; }
  .nav-tel { display: inline-flex; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sys { max-width: 600px; margin: 12px auto 0; }
  .head, .ex-panel, .proc, .zone, .faq { grid-template-columns: minmax(0, 1fr); }
  .sub { justify-self: start; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proc-l { position: static; }
  .w5, .w7 { grid-column: span 12; grid-row: auto; }
  .w4, .w3 { grid-column: span 6; }
  .w12 { grid-template-columns: minmax(0, 1fr); }
  .map { max-width: 680px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-tel { display: none; }
  .pcols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .qgrid { grid-template-columns: minmax(0, 1fr); }
  .field.full { grid-column: auto; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; --mbar-h: calc(70px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--mbar-h); }
  .logo-h { width: 116px; height: 26px; }
  .hero { padding-top: 22px; }
  .h1 { font-size: clamp(40px, 12.4vw, 56px); margin-top: 20px; }
  .rotline { font-size: 17px; margin-top: 20px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; justify-content: space-between; }
  .actions .btn--ghost { justify-content: center; }
  .facts { flex-direction: column; gap: 8px; margin-top: 26px; }
  .sys { margin-top: 4px; }
  .sys .node text, .sys .node rect { display: none; }
  .sys .node circle { r: 5; }
  .ui { font-size: 12px; padding: 8px 12px 8px 8px; }
  .ui .ic { width: 26px; height: 26px; }
  .ui2 { display: none; }
  .ui1 { top: 4%; }
  .ui3 { left: auto; right: 0; bottom: 4%; }
  .svc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .svc-tab { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 13px; gap: 4px; border-radius: 14px; align-content: start; }
  .svc-tab .ix { grid-row: auto; }
  .svc-tab .nm { font-size: 15px; }
  .svc-tab .sh, .svc-tab .led { display: none; }
  .svc-tab[aria-selected="true"] .ix { transform: none; }
  .svc-tab::before { top: auto; bottom: 0; left: 12px; margin: 0; height: 3px; }
  .svc-tab[aria-selected="true"]::before { width: 24px; }
  .svc-panel { padding: 22px 18px; border-radius: 20px; }
  .ptop { gap: 14px; }
  .pic { width: 48px; height: 48px; border-radius: 14px; }
  .pic svg { width: 22px; height: 22px; }
  .pfoot .btn { width: 100%; justify-content: space-between; }
  .ex-rail { top: 23px; left: 10%; right: 10%; }
  .ex-node { gap: 8px; padding: 0 0 4px; }
  .ex-node .c { width: 48px; height: 48px; border-radius: 14px; }
  .ex-node .c svg { width: 20px; height: 20px; }
  .ex-node .l { font-size: 11.5px; letter-spacing: -0.01em; }
  .ex-node .s { display: none; }
  .ex-stage { padding: 20px 16px; border-radius: 22px; }
  .console ul li { padding: 12px 14px; font-size: 14px; gap: 10px; }
  .console-h { padding: 12px 14px; }
  .ex-count { margin-left: auto; }
  .ex-state { display: none; }
  .w4, .w3 { grid-column: span 12; }
  .w-split { grid-template-columns: minmax(0, 1fr); }
  .zmodes { grid-template-columns: minmax(0, 1fr); }
  .town text, .town rect, .map .dlab { display: none; }
  .town circle { r: 9; }
  .town.home circle { r: 12; }
  .faq-list summary { font-size: 16.5px; padding: 20px 0; }
  .faq-list details p { padding-right: 0; }
  .final h2 { font-size: clamp(42px, 12.5vw, 64px); }
  .q { font-size: 19px; }
  .qform { margin-top: 40px; border-radius: 20px; }
  .qform-h { flex-direction: column; align-items: flex-start; gap: 6px; }
  .qfoot .btn { width: 100%; justify-content: space-between; }
  .direct { flex-direction: column; align-items: center; gap: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; gap: 8px; padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: rgba(9, 13, 12, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); transition: transform .35s var(--ease); }
  .mbar .btn { min-height: 50px; }
  .mbar .btn--ghost { flex: 0 0 auto; padding: 0 18px; }
  .mbar .btn--primary { flex: 1; justify-content: space-between; padding-left: 18px; }
  html.menu-open .mbar, .mbar.is-hidden { transform: translateY(110%); }
  .page-foot { padding-bottom: calc(28px + var(--mbar-h)); }
  .prose dl.info { grid-template-columns: minmax(0, 1fr); }
  .prose dl.info dt { padding-bottom: 0; border-bottom: 0; }
  .page-cta { padding: 22px 20px; }
  .page-cta .btn { width: 100%; justify-content: space-between; }
}

@media (max-width: 400px) {
  .svc-tab .nm { font-size: 14px; }
  .ex-node .l { font-size: 10.5px; }
  .ex-node .c { width: 44px; height: 44px; }
  .ex-rail { top: 21px; }
  .mbar .btn--ghost { padding: 0 14px; }
  .mbar .btn--primary { font-size: 14px; gap: 8px; }
}

@media (hover: none) { .layer { transform: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .layer { transform: none !important; }
}

@media print {
  .nav, .mbar, .sys, .final-bg, .burger { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Pages secondaires : barre toujours opaque, adaptation mobile */
.page-nav::before { opacity: 1; }
@media (max-width: 640px) {
  .page-nav .btn { display: none; }
  .page-main { padding-top: 40px; }
}

/* ===== Ajustements après QA ===== */
.h2--zone { font-size: clamp(30px, 3.1vw, 46px); }
.map-sel { display: none; margin-top: 14px; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.map-sel i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.map-sel strong { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) {
  .map-sel { display: flex; }
  .devis { grid-template-columns: minmax(0, 1fr); }
  .devis .ln { grid-column: 1; }
  .console-h .mono { font-size: 10.5px; letter-spacing: .08em; }
  .prose th { display: none; }
  .prose td { display: block; padding: 4px 16px; border: 0; }
  .prose td:first-child { padding-top: 14px; font-weight: 500; }
  .prose tr td:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .prose tr:last-child td:last-child { border-bottom: 0; }
  .mbar.is-hero { transform: translateY(110%); }
}
@media (max-width: 400px) {
  .mbar .btn--primary .orb { display: none; }
  .mbar .btn--primary { justify-content: center; padding: 0 14px; }
  .mbar .btn--ghost { padding: 0 14px; gap: 8px; }
}

/* Appareils modestes / mobile : on garde le système vivant, sans les signaux continus */
html.lite .sys .pkt, html.lite .sys .pt { display: none !important; }
@media (max-width: 640px) { .sys .pkt, .sys .pt { display: none !important; } }
.nw { white-space: nowrap; color: inherit !important; }
@media (max-width: 640px) { .sys { width: 90%; margin: 0 auto; } }

/* Compatibilité CSP (aucun style en ligne) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cbar .bar i.p12 { width: 12%; } .cbar .bar i.p38 { width: 38%; } .cbar .bar i.p62 { width: 62%; } .cbar .bar i.p84 { width: 84%; } .cbar .bar i.p100 { width: 100%; }
.crumb { color: inherit; text-decoration: none; }
.crumb:hover { color: var(--ink); }

/* Conseils : « À lire aussi » */
.post-related { max-width: 760px; margin-top: clamp(40px, 5vw, 64px); }
.post-related .post-list { margin-top: 14px; }
.post-related .post-list a { padding: 18px 0; }
.post-list h3 { margin-top: 6px; font-size: clamp(18px, 1.7vw, 21px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; transition: color .25s; }
.post-list a:hover h3 { color: var(--accent); }
