/* =========================================================
   CCS Elec — feuille de style (thème sombre)
   Charte reprise du logo : bleu marine #000D6D + vert #00E698
   Thème : circuit imprimé (pistes, pastilles, sérigraphie, halos)
   ========================================================= */

/* Polices hébergées sur le site (Archivo, IBM Plex Sans, IBM Plex Mono — licence SIL OFL). Sous-ensembles latin et latin-ext. */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(../assets/fonts/archivo-latin-ext-c422bf.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(../assets/fonts/archivo-latin-b92029.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-latin-ext-1da89f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-latin-cf8d2b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-latin-ext-616b92.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-latin-d53d00.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-latin-ext-71c30c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-latin-a68a20.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-latin-ext-71c30c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-latin-a68a20.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-latin-ext-71c30c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-latin-a68a20.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Fonds */
  --bg: #030826;
  --bg-2: #050c33;
  --bg-3: #081243;
  --bg-4: #0c1856;
  --line: rgba(150, 168, 255, .13);
  --line-2: rgba(150, 168, 255, .22);
  --navy-line: #1d2b78;

  /* Verre */
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  --glass-solid: rgba(10, 19, 70, .72);

  /* Texte */
  --text: #eef1fc;
  --text-2: #c9cfee;
  --muted: #98a2cc;
  --dim: #69739f;

  /* Accent « courant » */
  --mint: #00e698;
  --mint-soft: #6ff2c1;
  --mint-ink: #00b377;
  --mint-glow: rgba(0, 230, 152, .45);
  --blue: #2f6bff;
  --copper: #d9a44a;
  --red: #ff3b4e;

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  --radius: 16px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; font-stretch: 108%; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mint); color: var(--bg); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nw { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--mint); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Sérigraphie (sur-titres) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .ref {
  position: relative;
  display: inline-grid; place-items: center;
  min-width: 30px; height: 22px; padding-inline: 6px;
  border: 1px solid currentColor; border-radius: 4px;
  color: var(--mint); letter-spacing: .06em; font-size: .7rem;
  box-shadow: 0 0 14px -4px var(--mint-glow), inset 0 0 8px -4px var(--mint-glow);
}
.eyebrow .ref::after { content: ""; position: absolute; left: -4px; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }

/* ---------- Boutons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  --b: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 22px; border-radius: 999px;
  font: 600 .95rem/1.2 var(--body); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--b);
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--mint); color: var(--bg); --b: var(--mint); box-shadow: 0 8px 30px -10px var(--mint-glow); }
.btn-primary:hover { background: var(--mint-soft); box-shadow: 0 0 34px -4px var(--mint-glow); }
.btn-ghost { color: var(--text); --b: var(--line-2); background: rgba(255, 255, 255, .03); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { --b: var(--mint); color: var(--mint); box-shadow: 0 0 24px -8px var(--mint-glow); }

/* =========================================================
   En-tête
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding-top: env(safe-area-inset-top, 0px);
}
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur l'en-tête
   lui-même casserait le panneau de menu mobile en position fixe. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(3, 8, 38, .82);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint) 30%, transparent 60%);
  background-size: 200% 100%; opacity: .55;
}
@media (prefers-reduced-motion: no-preference) { .site-header::after { animation: bus 7s linear infinite; } }
@keyframes bus { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: auto; height: 46px; filter: drop-shadow(0 0 10px rgba(0, 230, 152, .25)); }
.brand-txt { display: grid; line-height: 1; gap: 5px; }
.wordmark { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.35rem; letter-spacing: .01em; }
.wordmark em { font-style: normal; color: var(--mint); }
.tagline { font: 500 .58rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--muted);
  font-size: .9rem; font-weight: 500; white-space: nowrap; padding: 8px 10px; border-radius: 6px;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  box-shadow: 0 0 8px var(--mint-glow);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.pill {
  font: 600 .62rem/1 var(--mono); letter-spacing: .08em; padding: 4px 6px; border-radius: 5px;
  color: var(--bg); background: var(--mint); box-shadow: 0 0 12px -2px var(--mint-glow);
}
.nav .nav-call { display: none; }

.head-call {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font: 500 .88rem/1 var(--mono); text-decoration: none; color: var(--text);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  padding: 11px 16px; border-radius: 999px; transition: border-color .2s, color .2s, box-shadow .2s;
}
.head-call .ic { width: 16px; height: 16px; color: var(--mint); }
.head-call:hover { border-color: var(--mint); color: var(--mint); box-shadow: 0 0 20px -6px var(--mint-glow); }

.burger { display: none; }

@media (max-width: 1120px) {
  :root { --header-h: 66px; }
  .brand-mark { height: 40px; }
  .burger {
    display: grid; place-content: center; gap: 6px; margin-left: 8px; flex: none;
    width: 46px; height: 46px; border-radius: 10px; cursor: pointer;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2);
  }
  .burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .head-call { margin-left: auto; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 12px max(20px, env(safe-area-inset-left, 0px)) calc(28px + env(safe-area-inset-bottom, 0px));
    background: var(--bg); overflow-y: auto;
    background-image: radial-gradient(600px 300px at 100% 0%, rgba(47, 107, 255, .18), transparent 70%);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav a { font-family: var(--display); font-stretch: 112%; font-size: 1.5rem; font-weight: 500; color: var(--text); padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .nav-call { display: inline-flex; justify-content: center; gap: 10px; margin-top: 24px; border: 0; border-radius: 999px; background: var(--mint); color: var(--bg); font: 600 1rem var(--body); padding: 16px; }
}
@media (max-width: 560px) {
  .head-call span { display: none; }
  .head-call { padding: 0; width: 46px; height: 46px; justify-content: center; }
  .head-call .ic { width: 18px; height: 18px; }
  .tagline { display: none; }
}
body.nav-open { overflow: hidden; }

/* =========================================================
   Circuit imprimé (généré en JS) — styles partagés
   ========================================================= */
.pcb { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* le circuit est généré juste après le premier affichage : il apparaît en fondu */
.js .pcb:not(.drawn) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .pcb { transition: opacity .7s var(--ease); } }
.pcb .tr { fill: none; stroke: #1b2a82; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcb .tr.thin { stroke-width: 1.25; stroke: #17246f; }
.pcb .pad { fill: var(--bg-2); stroke: #2a3b9e; stroke-width: 1.6; }
.pcb .pad.cu { stroke: var(--copper); opacity: .55; }
.pcb .via { fill: #24338f; }
.pcb .chip { fill: #0a1450; stroke: #2a3b9e; stroke-width: 1.5; }
.pcb.paused * { animation-play-state: paused !important; }
.pcb .pulse {
  fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 7 200; stroke-dashoffset: 7;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .pcb .pulse { opacity: 1; animation: current var(--d, 5s) linear var(--delay, 0s) infinite; }
  .pcb .pad.lit { animation: padlit var(--d, 5s) linear var(--delay, 0s) infinite; }
}
@keyframes current { 0% { stroke-dashoffset: 7; } 70%, 100% { stroke-dashoffset: -100; } }
@keyframes padlit {
  0%, 62% { stroke: #2a3b9e; fill: var(--bg-2); }
  70% { stroke: var(--mint); fill: rgba(0, 230, 152, .35); }
  85%, 100% { stroke: #2a3b9e; fill: var(--bg-2); }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 78% 35%, rgba(22, 36, 122, .6), transparent 70%),
    radial-gradient(700px 400px at 10% 110%, rgba(0, 230, 152, .08), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.pcb-hero {
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.5) 35%, #000 65%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.5) 35%, #000 65%);
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), rgba(0, 230, 152, .09), transparent 70%);
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center;
  min-height: min(calc(100svh - var(--header-h) - 96px), 820px);
  padding-block: clamp(56px, 8vw, 110px) clamp(56px, 7vw, 96px);
}
.hero h1 { margin-top: 22px; font-weight: 300; font-stretch: 110%; font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -.02em; }
.hero h1 strong { display: block; font-weight: 800; font-stretch: 125%; color: var(--mint); letter-spacing: -.01em; text-shadow: 0 0 40px rgba(0, 230, 152, .3); }
.hero-lead { margin-top: 24px; max-width: 46ch; color: var(--muted); font-size: 1.08rem; }
.hero .btns { margin-top: 34px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 36px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .9rem; line-height: 1.35; color: var(--muted);
}
.hero-badge b { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--text); }

.hero-card {
  position: relative; margin: 0;
  border-radius: 18px; padding: 10px;
  background: linear-gradient(145deg, rgba(29, 43, 120, .9), rgba(8, 18, 67, .9));
  border: 1px solid #22328a;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 230, 152, .05), 0 0 90px -20px rgba(39, 110, 255, .45);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  will-change: transform;
}
.hero-card img { width: 100%; aspect-ratio: 1200 / 981; object-fit: cover; border-radius: 12px; }
.hero-card figcaption {
  position: absolute; left: 26px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 12px; border-radius: 6px; background: rgba(3, 8, 38, .75); border: 1px solid var(--navy-line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
@media (prefers-reduced-motion: no-preference) { .led { animation: blink 2.4s ease-in-out infinite; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pin { position: absolute; width: 22px; height: 22px; border-color: var(--mint); border-style: solid; border-width: 0; opacity: .8; }
.pin-tl { left: -7px; top: -7px; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 6px; }
.pin-tr { right: -7px; top: -7px; border-right-width: 2px; border-top-width: 2px; border-top-right-radius: 6px; }
.pin-bl { left: -7px; bottom: -7px; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 6px; }
.pin-br { right: -7px; bottom: -7px; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .hero-card { animation: rise 1.1s var(--ease) .2s both; }
}
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
/* le titre principal reste visible dès le premier rendu (mesure LCP de Google) */
@media (prefers-reduced-motion: no-preference) { .hero-copy > h1 { animation-name: riseKeep; } }
@keyframes riseKeep { from { translate: 0 14px; } to { translate: 0 0; } }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; min-height: 0; padding-block: 48px 56px; }
  .hero-card { max-width: 560px; }
  .pcb-hero { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35), #000 80%); mask-image: linear-gradient(180deg, rgba(0,0,0,.35), #000 80%); }
}
@media (max-width: 560px) {
  .hero .btns { flex-direction: column; align-items: stretch; }
  .hero-card figcaption { left: 18px; bottom: 18px; font-size: .64rem; }
}

/* =========================================================
   Atouts + bandeau
   ========================================================= */
.facts { background: var(--bg-2); border-block: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 22px 24px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .ic {
  grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 10px;
  color: var(--mint); background: rgba(0, 230, 152, .07); border: 1px solid rgba(0, 230, 152, .22);
}
.fact-k { font: 500 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact strong { font-family: var(--display); font-stretch: 110%; font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
@media (max-width: 900px) {
  .facts-in { grid-template-columns: 1fr 1fr; padding-inline: 0; }
  .fact { padding: 18px 20px; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .fact { grid-template-columns: 1fr; row-gap: 8px; align-content: start; }
  .fact .ic { grid-row: auto; width: 34px; height: 34px; padding: 7px; }
}

.ticker { background: var(--bg); overflow: hidden; border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; padding-block: 18px; }
.ticker-track li {
  display: inline-flex; align-items: center; gap: 18px; padding-right: 40px;
  font-family: var(--display); font-stretch: 125%; font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.4rem); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
.ticker-track li:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--muted); }
.ticker-track .ic { color: var(--mint); width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track.running { animation: tick 40s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@keyframes tick { to { transform: translateX(-50%); } }

/* =========================================================
   Sections
   ========================================================= */
.sec { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.sec-alt {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(47, 107, 255, .09), transparent 70%),
    radial-gradient(700px 380px at 100% 100%, rgba(0, 230, 152, .05), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
/* trame de pastilles façon PCB */
.sec-alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(120, 140, 255, .13) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.sec-alt > * { position: relative; }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.sec-head h2, .about h2, .zone h2, .contact h2, .cta h2 {
  margin-top: 18px;
  font-weight: 300; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -.02em;
}
h2 strong { font-weight: 800; font-stretch: 118%; letter-spacing: -.01em; color: var(--mint); text-shadow: 0 0 34px rgba(0, 230, 152, .22); }
.sec-head > p { color: var(--muted); max-width: 46ch; justify-self: end; }
@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .sec-head > p { justify-self: start; }
}

.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
}

/* Carte « verre » générique */
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* ---------- Prestations : 2 grandes cartes ---------- */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 500px; border-radius: 18px; text-decoration: none; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line);
}
.duo-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.8) brightness(.9); }
.duo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 8, 38, .97) 0%, rgba(3, 8, 38, .75) 38%, rgba(3, 8, 38, .1) 75%); }
.duo-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 70%, var(--mint) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.duo-card:hover::after, .duo-card:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .duo-card:hover::after, .duo-card:focus-visible::after { animation: spin 3.2s linear infinite; }
  .duo-card:hover img { transform: scale(1.05); filter: saturate(1) brightness(1); }
}
@keyframes spin { to { --ang: 360deg; } }
.duo-cap { padding: 32px; display: grid; gap: 10px; justify-items: start; }
.duo-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; margin-bottom: 6px; background: var(--mint); color: var(--bg); box-shadow: 0 0 30px -6px var(--mint-glow); }
.duo-ico .ic { width: 26px; height: 26px; }
.duo-num { font: 500 .76rem/1 var(--mono); letter-spacing: .14em; color: var(--mint); }
.duo-card h3 { font-weight: 700; font-stretch: 115%; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; }
.duo-card p { color: var(--muted); max-width: 40ch; }
.duo-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: var(--mint); }
.duo-go .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.duo-card:hover .duo-go .ic { transform: translateX(4px); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo-card { min-height: 380px; } .duo-cap { padding: 24px; } }

/* ---------- Présentation ---------- */
.about { overflow: hidden; }
.about-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 80px); }
.about .lead { margin-top: 26px; font-size: 1.14rem; color: var(--text-2); max-width: 42ch; }
.prose { display: grid; gap: 20px; color: var(--muted); max-width: 62ch; }
.prose strong { color: var(--text); font-weight: 600; }
.checks { display: grid; border-top: 1px solid var(--line); }
.checks li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.checks .ic { width: 34px; height: 34px; padding: 7px; border-radius: 9px; color: var(--mint); background: rgba(0, 230, 152, .06); border: 1px solid rgba(0, 230, 152, .2); }

.traces { position: absolute; bottom: -70px; left: -90px; width: 440px; max-width: 70vw; height: auto; pointer-events: none; opacity: .35; transform: rotate(180deg); }
.traces .t path { fill: none; stroke: #22338f; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.traces .p circle { fill: var(--bg-2); stroke: var(--mint); stroke-width: 5; }
@media (prefers-reduced-motion: no-preference) {
  .js .traces.draw .t path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
  .js .traces.draw .t path:nth-child(2n) { transition-delay: .2s; }
  .js .traces.draw .t path:nth-child(3n) { transition-delay: .4s; }
  .js .traces.draw .p circle { opacity: 0; transition: opacity .5s 1.6s; }
  .js .traces.draw.in .t path { stroke-dashoffset: 0; }
  .js .traces.draw.in .p circle { opacity: 1; }
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .traces { display: none; } }

/* ---------- Électricité : rangée ---------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ph {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 18px;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8), 0 0 60px -30px rgba(47, 107, 255, .4);
}
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ph img.contain, .bc-ph img.contain { object-fit: contain; padding: 6%; }
.ph-portrait { aspect-ratio: 4 / 5; max-height: 640px; justify-self: center; width: 100%; }
.ph-portrait img { object-position: 50% 30%; }
.ph-dark { background: radial-gradient(circle at 50% 45%, #101d63, var(--bg) 75%); }
.ph-light { background: #fff; }
@media (prefers-reduced-motion: no-preference) { .row:hover .ph img { transform: scale(1.035); } }

.txt { display: grid; gap: 16px; align-content: center; max-width: 520px; }
.row-tag { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font: 500 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.row-tag .ic { width: 38px; height: 38px; padding: 9px; border-radius: 10px; color: var(--mint); background: rgba(0, 230, 152, .07); border: 1px solid rgba(0, 230, 152, .22); }
.row h3, .bc h3 { font-weight: 600; font-stretch: 112%; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.row .txt > p, .bc-body > p { color: var(--muted); }
.spec { display: grid; margin-top: 4px; border-top: 1px solid var(--line); }
.spec li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line); font-size: .97rem; color: var(--text-2); }
.spec li::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; border: 2px solid var(--mint); background: var(--bg); box-shadow: 0 0 8px -1px var(--mint-glow); }
.spec li::after { content: ""; position: absolute; left: 9px; top: 50%; width: 10px; height: 2px; margin-top: -1px; background: var(--mint); opacity: .45; }
@media (max-width: 820px) { .row { grid-template-columns: 1fr; gap: 26px; } .ph-portrait { aspect-ratio: 4 / 4.2; } }

/* ---------- Domotique : bento ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bc {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: 18px; background: var(--glass); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.bc:hover { border-color: rgba(0, 230, 152, .35); transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 50px -25px var(--mint-glow); }
.bc-ph { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.bc-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
/* visuels produits sur fond noir : on les fond dans le bleu nuit de la carte */
.bc-ph img.fade {
  object-fit: contain; filter: saturate(.9);
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 52%, transparent 100%);
}
@media (prefers-reduced-motion: no-preference) { .bc:hover .bc-ph img { transform: scale(1.04); } }
.bc-body { display: grid; gap: 14px; align-content: start; padding: 26px 28px 28px; }
.bc-go {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 6px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(0, 230, 152, .35);
  color: var(--mint); font-weight: 600; font-size: .92rem; text-decoration: none;
  background: rgba(0, 230, 152, .05); transition: background-color .25s, box-shadow .25s;
}
.bc-go .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.bc-go:hover { background: rgba(0, 230, 152, .12); box-shadow: 0 0 24px -8px var(--mint-glow); }
.bc-go:hover .ic { transform: translateX(3px); }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } }

/* Illustration domotique (SVG) */
.domo-ill { width: 100%; height: 100%; display: block; }
.domo-ill .di-base path { fill: none; stroke: #2a3b9e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.domo-ill .di-base path:nth-child(-n+2) { stroke: var(--mint); stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(0, 230, 152, .45)); }
.domo-ill .di-pulse path { fill: none; stroke: #8dffd6; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 10 200; stroke-dashoffset: 10; opacity: 0; }
.domo-ill .di-chip { fill: var(--bg-4); stroke: var(--mint); stroke-width: 2; }
.domo-ill .di-legs path { stroke: #6d7bc4; stroke-width: 3; stroke-linecap: round; }
.domo-ill .di-lbl { font: 600 14px var(--mono); letter-spacing: .2em; fill: var(--mint); text-anchor: middle; }
.domo-ill .di-node circle, .domo-ill .di-node rect { fill: var(--bg-2); stroke: #8fa0ff; stroke-width: 2; }
.domo-ill .di-node path { fill: none; stroke: #c9d2ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.domo-ill .di-phone rect { fill: var(--bg-4); stroke: #c9d2ff; stroke-width: 2.5; }
.domo-ill .di-phone path, .domo-ill .di-phone circle { fill: none; stroke: #c9d2ff; stroke-width: 2; stroke-linecap: round; }
.domo-ill .di-wave path { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .domo-ill .di-pulse path { opacity: 1; animation: current 3.6s linear infinite; }
  .domo-ill .di-pulse path:nth-child(2) { animation-delay: .7s; }
  .domo-ill .di-pulse path:nth-child(3) { animation-delay: 1.4s; }
  .domo-ill .di-pulse path:nth-child(4) { animation-delay: 2.1s; }
  .domo-ill .di-pulse path:nth-child(5) { animation-delay: 1s; animation-duration: 2.8s; }
  .domo-ill .di-wave path { animation: wave 2.4s ease-in-out infinite; }
  .domo-ill .di-wave path:nth-child(2) { animation-delay: .3s; }
}
@keyframes wave { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
/* compléments : alarme et vidéosurveillance */
.domo-ill .di-cone { fill: rgba(0, 230, 152, .07); stroke: rgba(0, 230, 152, .35); stroke-width: 1.5; stroke-dasharray: 4 6; }
.domo-ill .di-siren .di-blink { fill: #ffb547; stroke: none; }
.domo-ill .di-alert rect { fill: rgba(255, 181, 71, .14); stroke: #ffb547; stroke-width: 2; }
.domo-ill .di-alert path { fill: none; stroke: #ffb547; stroke-width: 3; stroke-linecap: round; }
.domo-ill .di-rec { fill: #ff5a6e; }
.domo-ill .di-live rect { fill: #0a1a5c; stroke: var(--mint); stroke-width: 1.5; }
.domo-ill .di-live path { fill: none; stroke: #c9d2ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.domo-ill .di-live .di-scan { stroke: var(--mint); stroke-width: 1; opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .domo-ill .di-cone-pir { animation: coneScan 3.2s ease-in-out infinite; }
  .domo-ill .di-cone-ext { transform-box: view-box; transform-origin: 52px 196px; animation: camSweep 6s ease-in-out infinite; }
  .domo-ill .di-cone-int { animation: coneScan 4s ease-in-out infinite; }
  .domo-ill .di-blink { animation: blink 1.2s steps(2, jump-none) infinite; }
  .domo-ill .di-alert { animation: wave 1.6s ease-in-out infinite; }
  .domo-ill .di-rec { animation: wave 1.4s ease-in-out infinite; }
  .domo-ill .di-live .di-scan { animation: scan 2.4s linear infinite; }
}
.domo-ill .di-post, .domo-ill .di-motor { fill: var(--bg-2); stroke: #8fa0ff; stroke-width: 2; }
.domo-ill .di-motor { stroke: var(--mint); }
.domo-ill .di-leaf rect { fill: rgba(143, 160, 255, .08); stroke: #c9d2ff; stroke-width: 2; }
.domo-ill .di-leaf path { fill: none; stroke: #c9d2ff; stroke-width: 1.6; }
.domo-ill .di-flash { fill: #ffb547; }
@media (prefers-reduced-motion: no-preference) {
  .domo-ill .di-leaf { animation: gateSlide 7s var(--ease) infinite; }
  .domo-ill .di-flash { animation: blink 1s steps(2, jump-none) infinite; }
}
@keyframes gateSlide { 0%, 12% { translate: 0 0; } 38%, 62% { translate: 104px 0; } 88%, 100% { translate: 0 0; } }
@keyframes coneScan { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes camSweep { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .15; } }
@keyframes scan { 0% { translate: 0 0; } 100% { translate: 0 32px; } }

/* ---------- Méthode : 4 étapes reliées comme des composants sur une carte ----------
   Le bus passe à hauteur des icônes ; les cartes sont opaques, on ne le voit
   que dans les intervalles, entre deux pastilles de soudure. Une impulsion le
   parcourt et « allume » chaque étape à son passage. */
.steps {
  --pad: 24px; --ico: 46px; --gap: 34px;
  --c: calc(1px + var(--pad) + var(--ico) / 2);       /* centre de l'icône dans la carte */
  --col: calc((100% - 3 * var(--gap)) / 4);
  --T: 4.2s;                                            /* période de l'impulsion */
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
}
.steps::before, .steps::after {
  content: ""; position: absolute; z-index: 0; height: 2px;
  top: calc(var(--c) - 1px); left: var(--c); right: calc(var(--col) - var(--c));
}
.steps::before { /* le bus */
  background: linear-gradient(90deg, var(--mint), #3f8bff);
  box-shadow: 0 0 10px var(--mint-glow);
}
.steps::after { /* l'impulsion */
  --x0: calc(var(--c) - 45px);
  --x1: calc(3 * (var(--col) + var(--gap)) + var(--c) - 45px);
  right: auto; width: 90px; left: var(--x0); opacity: 0; height: 4px; top: calc(var(--c) - 2px); border-radius: 4px;
  background: linear-gradient(90deg, transparent, #eafff6 40%, #eafff6 60%, transparent);
  box-shadow: 0 0 16px 2px rgba(0, 230, 152, .6);
}
.step {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px;
  padding: var(--pad) var(--pad) 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #0c1650, #070e3c); /* opaque : masque le bus */
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 40px -30px rgba(0, 0, 0, .9);
  transition: border-color .35s, box-shadow .35s;
}
.step:hover { border-color: rgba(0, 230, 152, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 40px -22px var(--mint-glow); }
/* pastilles de soudure là où le bus entre et sort de la carte */
.step:not(:first-child)::before, .step:not(:last-child)::after {
  content: ""; position: absolute; top: calc(var(--c) - 1px - 5px); width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--mint); box-shadow: 0 0 8px var(--mint-glow);
}
.step:not(:first-child)::before { left: -6px; }
.step:not(:last-child)::after { right: -6px; border-color: #3f8bff; }
.step-n { position: absolute; top: calc(var(--c) - 1px - .37rem); right: var(--pad); font: 500 .74rem/1 var(--mono); letter-spacing: .14em; color: var(--dim); }
.step-ico {
  display: grid; place-items: center; width: var(--ico); height: var(--ico); border-radius: 12px; margin-bottom: 6px;
  background: var(--bg-3); border: 1px solid rgba(0, 230, 152, .45); color: var(--mint);
  box-shadow: 0 0 24px -8px var(--mint-glow);
}
.step h3 { font-weight: 600; font-stretch: 110%; font-size: 1.18rem; line-height: 1.2; }
.step p { color: var(--muted); font-size: .95rem; }
/* ligne d'état en pied de carte, avec sa LED */
.step .step-io {
  display: flex; align-items: center; gap: 10px; margin: auto calc(-1 * var(--pad)) 0; padding: 14px var(--pad);
  border-top: 1px dashed var(--line-2, rgba(255, 255, 255, .12));
  font: 500 .7rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2, var(--muted));
}
.step .step-io::before { content: ""; order: 1; flex: 1; }
.led {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 3px rgba(0, 230, 152, .15), 0 0 10px var(--mint);
}
.step-io .led { order: 2; }

@media (prefers-reduced-motion: no-preference) {
  .js .steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; }
  .js .steps.in::before { transform: scaleX(1); }
  .js .steps.in::after { animation: busPulse var(--T) linear 2s infinite; }
  .js .steps .step { opacity: 0; translate: 0 14px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
  .js .steps.in .step { opacity: 1; translate: 0 0; }
  .js .steps.in .step:nth-child(2) { transition-delay: .35s; }
  .js .steps.in .step:nth-child(3) { transition-delay: .7s; }
  .js .steps.in .step:nth-child(4) { transition-delay: 1.05s; }
  /* LED éteintes, puis allumées une à une au premier passage du courant ; l'icône flashe à chaque passage */
  .js .steps .led { background: #1c2a6e; box-shadow: none; }
  .js .steps.in .led { animation: ledOn .4s var(--ease) forwards; }
  .js .steps.in .step-ico { animation: stepHit var(--T) linear infinite; }
  .js .steps.in .step:nth-child(1) :is(.led, .step-ico) { animation-delay: 2s; }
  .js .steps.in .step:nth-child(2) :is(.led, .step-ico) { animation-delay: calc(2s + var(--T) * .7 / 3); }
  .js .steps.in .step:nth-child(3) :is(.led, .step-ico) { animation-delay: calc(2s + var(--T) * 1.4 / 3); }
  .js .steps.in .step:nth-child(4) :is(.led, .step-ico) { animation-delay: calc(2s + var(--T) * .7); }
}
@keyframes busPulse {
  0% { opacity: 0; left: var(--x0); }
  5% { opacity: 1; }
  66% { opacity: 1; }
  70% { opacity: 0; left: var(--x1); }
  100% { opacity: 0; left: var(--x1); }
}
@keyframes ledOn {
  0% { background: #1c2a6e; box-shadow: none; }
  40% { background: #eafff6; box-shadow: 0 0 0 5px rgba(0, 230, 152, .3), 0 0 18px var(--mint); }
  100% { background: var(--mint); box-shadow: 0 0 0 3px rgba(0, 230, 152, .15), 0 0 10px var(--mint); }
}
@keyframes stepHit {
  0% { border-color: #b8ffe6; box-shadow: 0 0 0 4px rgba(0, 230, 152, .18), 0 0 30px -2px var(--mint-glow); color: #eafff6; }
  18%, 100% { border-color: rgba(0, 230, 152, .45); box-shadow: 0 0 24px -8px var(--mint-glow); color: var(--mint); }
}

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before, .steps::after, .step::before, .step::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  /* en colonne : le bus redescend d'une carte à l'autre */
  .step:not(:last-child)::after {
    display: block; top: 100%; left: calc(var(--c) - 1px); right: auto; width: 2px; height: var(--gap);
    border: 0; border-radius: 0; background: linear-gradient(180deg, var(--mint), #3f8bff); box-shadow: 0 0 8px var(--mint-glow);
  }
}

/* ---------- Galerie ---------- */
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 22vw, 270px);
  grid-template-areas: "a b b" "a c d" "e c f";
}
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; }
.g-d { grid-area: d; } .g-e { grid-area: e; } .g-f { grid-area: f; }
.shot { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 1px solid var(--line); cursor: zoom-in; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: saturate(.9); }
.shot::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(3, 8, 38, .85), transparent 50%); opacity: 0; transition: opacity .4s; }
.shot::after {
  content: ""; position: absolute; inset: 12px; z-index: 1; pointer-events: none;
  background:
    linear-gradient(var(--mint), var(--mint)) left top / 18px 2px, linear-gradient(var(--mint), var(--mint)) left top / 2px 18px,
    linear-gradient(var(--mint), var(--mint)) right top / 18px 2px, linear-gradient(var(--mint), var(--mint)) right top / 2px 18px,
    linear-gradient(var(--mint), var(--mint)) left bottom / 18px 2px, linear-gradient(var(--mint), var(--mint)) left bottom / 2px 18px,
    linear-gradient(var(--mint), var(--mint)) right bottom / 18px 2px, linear-gradient(var(--mint), var(--mint)) right bottom / 2px 18px;
  background-repeat: no-repeat; opacity: 0; transform: scale(1.04); transition: opacity .35s, transform .45s var(--ease);
}
.shot-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; text-align: left; font: 500 .72rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.shot:hover::before, .shot:focus-visible::before { opacity: 1; }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; transform: none; }
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) { .shot:hover img { transform: scale(1.05); filter: saturate(1); } }
@media (hover: none) { .shot::before, .shot-cap { opacity: 1; transform: none; } }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; grid-template-areas: "a b" "a c" "e c" "e d" "f f"; } }

/* ---------- Visionneuse ---------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3, 8, 38, .97); color: var(--text); display: grid; place-items: center; overscroll-behavior: contain; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: transparent; }
.lightbox .lb-img { max-width: min(92vw, 1400px); max-height: 82svh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-cap { position: absolute; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom, 0px)); text-align: center; font: 500 .78rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; background: rgba(12, 24, 86, .8); border: 1px solid var(--line-2); color: var(--text); transition: border-color .2s, color .2s; }
.lb-btn:hover { border-color: var(--mint); color: var(--mint); }
.lb-btn .ic { width: 22px; height: 22px; }
.lb-close { top: max(18px, env(safe-area-inset-top, 0px)); right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -25px; }
.lb-next { right: 18px; top: 50%; margin-top: -25px; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 56px; margin: 0; } }

/* ---------- Bandeau CTA ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(900px 400px at 85% 50%, rgba(22, 36, 122, .7), transparent 70%), var(--bg); border-block: 1px solid var(--line); }
.pcb-cta { z-index: -1; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.2), #000 70%); mask-image: linear-gradient(90deg, rgba(0,0,0,.2), #000 70%); }
.cta-in { padding-block: clamp(80px, 10vw, 130px); display: grid; gap: 22px; justify-items: start; }
.cta h2 { max-width: 17ch; margin-top: 0; }
.cta-in > p:not(.eyebrow) { color: var(--muted); max-width: 48ch; font-size: 1.08rem; }
.cta .btns { margin-top: 8px; }
@media (max-width: 560px) { .cta .btns { flex-direction: column; align-items: stretch; width: 100%; } .cta .btn { white-space: normal; } }

/* ---------- Zone ---------- */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.zone > div > p:last-child { margin-top: 22px; color: var(--muted); max-width: 46ch; }
.towns { display: flex; flex-wrap: wrap; gap: 10px; }
.towns li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 14px; border-radius: 8px; font-size: .95rem; font-weight: 500;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); color: var(--text-2);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s, color .25s;
}
.towns li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--mint); flex: none; }
.towns li:hover { border-color: var(--mint); color: var(--text); transform: translateY(-2px); box-shadow: 0 0 22px -8px var(--mint-glow); }
.towns li.main { background: var(--mint); border-color: var(--mint); color: var(--bg); font-weight: 600; box-shadow: 0 0 26px -6px var(--mint-glow); }
.towns li.main::before { border-color: var(--bg); background: var(--bg); }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; } }

/* ---------- Avis ---------- */
.rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  padding: 26px 30px; margin-bottom: 20px; border-radius: 18px;
  background: radial-gradient(500px 200px at 100% 0%, rgba(0, 230, 152, .14), transparent 70%), var(--glass), var(--bg-3);
  border: 1px solid var(--line-2);
}
.score { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 3.4rem; line-height: 1; }
.score small { font-size: 1.3rem; font-weight: 400; color: var(--muted); }
.rating-meta { display: grid; gap: 2px; }
.rating-meta > span:last-child { color: var(--muted); font-size: .92rem; }
.stars { color: #f2b544; letter-spacing: .14em; font-size: 1.05rem; text-shadow: 0 0 12px rgba(242, 181, 68, .4); }
.rating-link { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font-weight: 600; text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 20px; white-space: nowrap; transition: border-color .2s, box-shadow .2s; }
.rating-link .ic { width: 18px; height: 18px; }
.rating-link:hover { border-color: var(--mint); box-shadow: 0 0 20px -6px var(--mint-glow); }
.quotes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.quote { grid-column: span 2; }
.quote:nth-child(n+4) { grid-column: span 3; }
.quote {
  position: relative; margin: 0; padding: 30px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.quote::before { content: ""; position: absolute; top: -6px; left: 30px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line-2); transition: border-color .3s, background-color .3s, box-shadow .3s; }
.quote:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .8); border-color: var(--line-2); }
.quote:hover::before { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 10px var(--mint-glow); }
.quote blockquote { margin: 0; font-family: var(--display); font-stretch: 104%; font-weight: 400; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.35; }
.quote blockquote::before { content: "«\00a0"; color: var(--mint); font-weight: 700; }
.quote blockquote::after { content: "\00a0»"; color: var(--mint); font-weight: 700; }
.quote figcaption { display: grid; gap: 2px; font-weight: 600; margin-top: auto; padding-top: 8px; }
.quote .job { font: 500 .7rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.quote .src { font-weight: 400; color: var(--muted); font-size: .88rem; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr 1fr; } .quote, .quote:nth-child(n+4) { grid-column: span 1; } .quote:nth-child(3) { grid-column: span 2; } }
@media (max-width: 640px) { .quotes { grid-template-columns: 1fr; } .quote:nth-child(3) { grid-column: auto; } .rating-link { margin-left: 0; } }

.partners { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px 32px; align-items: center; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.partner-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.partner {
  position: relative; display: grid; place-items: center; align-content: center; gap: 7px; min-height: 104px; padding: 20px 12px 16px; text-align: center;
  border-radius: 14px; background: linear-gradient(180deg, #0c1650, #070e3c); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}
.partner::before { content: ""; position: absolute; top: -1px; left: 50%; width: 36px; height: 2px; margin-left: -18px; border-radius: 2px; background: var(--mint); box-shadow: 0 0 10px var(--mint-glow); }
.partner:hover { border-color: rgba(0, 230, 152, .35); box-shadow: 0 0 34px -18px var(--mint-glow); }
.partner-name { font: 800 clamp(1.05rem, 1.6vw, 1.3rem)/1.05 var(--display); font-stretch: 115%; letter-spacing: .02em; color: var(--text); text-wrap: balance; }
.partner-dom { font: 500 .64rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.partner-txt { color: var(--muted); max-width: 62ch; }
.partner-txt strong { color: var(--text); }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } .partner-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact ---------- */
.contact-sec { background: radial-gradient(800px 400px at 0% 100%, rgba(0, 230, 152, .07), transparent 70%), var(--bg); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 72px); }
.phone {
  display: inline-block; margin-top: 28px;
  font-family: var(--display); font-stretch: 125%; font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.9rem); line-height: 1; letter-spacing: -.01em; white-space: nowrap;
  text-decoration: none; font-variant-numeric: tabular-nums; color: var(--text);
  background: linear-gradient(90deg, var(--mint), var(--mint)) left bottom / 0 3px no-repeat;
  padding-bottom: 8px; transition: background-size .45s var(--ease), color .3s, text-shadow .3s;
}
.phone:hover { background-size: 100% 3px; color: var(--mint); text-shadow: 0 0 30px var(--mint-glow); }
.contact .lead { margin-top: 22px; color: var(--muted); max-width: 44ch; }
.lines { margin: 0; display: grid; align-content: start; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line dt { grid-column: 1 / -1; font: 500 .7rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.line dd { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.line dd a { text-decoration: none; }
.line dd a:hover { color: var(--mint); }
.line .act button, .line .act a {
  display: inline-flex; align-items: center; min-height: 36px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); color: var(--text-2); border-radius: 999px; padding: 6px 15px;
  font: 500 .82rem var(--body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s;
}
.line .act button:hover, .line .act a:hover, .line .act button.ok { border-color: var(--mint); color: var(--mint); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; font-variant-numeric: tabular-nums; }
.hours span:nth-child(odd) { color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: #020619; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding-block: 56px 40px; }
.footer-logo { width: 130px; height: auto; }
.footer-cols { display: grid; grid-template-columns: 1.1fr 1.2fr 1.1fr 1fr; gap: 32px; }
.footer-links { display: grid; }
.footer-links a { display: inline-block; padding: 4px 0; }
@media (max-width: 1100px) and (min-width: 861px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-k { font: 500 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.footer-bottom a { display: inline-block; padding: 11px 0; margin-block: -11px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: .82rem; }
@media (max-width: 860px) {
  .footer-in { grid-template-columns: 1fr; gap: 32px; }
  .footer-logo { width: 110px; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .footer-links { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .footer-links a { padding: 10px 0; }
  .site-footer p a { display: inline-block; padding: 8px 0; }
  .footer-bottom { padding-bottom: 96px; }
}

/* ---------- Bouton d'appel flottant (mobile) ---------- */
.fab {
  position: fixed; z-index: 40;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: 10px;
  padding: 15px 22px; border-radius: 999px; text-decoration: none;
  background: var(--mint); color: var(--bg); font-weight: 700;
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, .6), 0 0 0 4px rgba(0, 230, 152, .18);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.fab .ic { width: 20px; height: 20px; }
.fab.show { transform: none; }
@media (max-width: 860px) { .fab { display: inline-flex; } }
@media (prefers-reduced-motion: no-preference) {
  .fab.show::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--mint); animation: ring 2.6s ease-out infinite; }
}
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Liens vers les pages prestations (accueil) ---------- */
.spec a { color: inherit; text-decoration: underline; text-decoration-color: rgba(0, 230, 152, .5); text-underline-offset: 3px; transition: color .2s; }
.spec a:hover { color: var(--mint); }
.bc-more { justify-self: start; color: var(--muted); font-size: .9rem; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: color .2s; }
.bc-more:hover { color: var(--mint); text-decoration-color: var(--mint); }

/* ---------- Pages prestations ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 24px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--mint); }
.crumbs [aria-current] { color: var(--text-2); }
.svc-hero .hero-in { min-height: 0; padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 92px); }
.svc-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.svc-card { max-width: 560px; justify-self: end; width: 100%; }
.svc-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; }
.svc-card .svc-media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 14px; border-radius: 8px;
  font: 500 .74rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: #ffd98a; background: rgba(242, 181, 68, .08); border: 1px solid rgba(242, 181, 68, .4);
}
.status .led { background: #f2b544; box-shadow: 0 0 10px #f2b544; }

.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 6vw, 84px); align-items: start; }
.svc-main { display: grid; gap: clamp(56px, 7vw, 88px); }
.svc-block h2 { margin: 18px 0 22px; font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; }
.svc-block > p { color: var(--text-2); max-width: 68ch; }
.svc-block > * + p { margin-top: 14px; }
.svc-block .spec { max-width: 68ch; margin-top: 18px; }
.svc-block .spec + p { margin-top: 20px; }
.svc-block .spec strong { color: var(--text); font-weight: 600; }
.svc-block a:not(.btn) { color: var(--mint); text-underline-offset: 3px; }
.svc-block .note { margin-top: 22px; padding: 16px 20px; border: 1px solid rgba(0, 230, 152, .22); border-radius: 12px; background: rgba(0, 230, 152, .05); }
.svc-date { margin-top: calc(-1 * clamp(28px, 4vw, 48px)); font: 500 .7rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.faq-a a { color: var(--mint); text-underline-offset: 3px; }
.svc-table { margin-top: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; max-width: 68ch; }
.svc-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.svc-table th, .svc-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.svc-table tr:last-child > * { border-bottom: 0; }
.svc-table thead th { font: 500 .68rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .03); }
.svc-table tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.svc-table td { color: var(--text-2); }
.svc-table td:nth-child(2) { font-family: var(--mono); font-size: .88rem; color: var(--mint); white-space: nowrap; }

.svc-aside {
  position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; padding: 28px;
  border-radius: 18px; background: linear-gradient(180deg, #0c1650, #070e3c); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.svc-aside .footer-k { margin: 0; }
.aside-t { font: 300 1.5rem/1.15 var(--display); font-stretch: 108%; margin-bottom: 6px; }
.aside-t strong { display: block; font-weight: 700; color: var(--mint); }
.svc-aside .btn { justify-content: center; }
.aside-dl { display: grid; gap: 14px; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem; }
.aside-dl dt { font: 500 .66rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.aside-dl dd { margin: 0; color: var(--text-2); }

.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--glass); transition: border-color .3s; }
.faq details[open] { border-color: rgba(0, 230, 152, .3); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; cursor: pointer; list-style: none; font: 600 1.06rem/1.35 var(--display); font-stretch: 106%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--mono); color: var(--mint); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; color: var(--text-2); max-width: 72ch; }

.svc-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.svc-link {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 20px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--glass); text-decoration: none;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.svc-link .ic { grid-row: span 2; width: 42px; height: 42px; padding: 10px; border-radius: 10px; color: var(--mint); background: rgba(0, 230, 152, .07); border: 1px solid rgba(0, 230, 152, .22); }
.svc-link b { font: 600 1.05rem/1.2 var(--display); font-stretch: 108%; }
.svc-link span { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.svc-link:hover { border-color: rgba(0, 230, 152, .35); box-shadow: 0 0 34px -18px var(--mint-glow); transform: translateY(-2px); }
@media (max-width: 960px) {
  .svc-body { grid-template-columns: minmax(0, 1fr); }
  .svc-aside { position: static; }
  .svc-links { grid-template-columns: 1fr 1fr; }
  .svc-card { justify-self: start; }
}
@media (max-width: 600px) {
  .svc-links { grid-template-columns: 1fr; }
  .svc-link { padding: 16px; }
  /* tableau → fiches empilées */
  .svc-table { overflow: visible; }
  .svc-table table, .svc-table tbody { display: block; }
  .svc-table thead { display: none; }
  .svc-table tr { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .svc-table tr:last-child { border-bottom: 0; }
  .svc-table th, .svc-table td { padding: 0; border: 0; }
  .svc-table td:last-child { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
  .svc-aside { padding: 22px; }
  .faq summary { padding: 18px 18px; font-size: 1rem; }
  .faq-a { padding: 0 18px 20px; }
}
.svc-main, .svc-block { min-width: 0; }

.aside-quote { margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.aside-quote .stars { color: #ffc94d; letter-spacing: .1em; font-size: .9rem; }
.aside-quote blockquote { margin: 6px 0 8px; font: 500 1.02rem/1.45 var(--body); color: var(--text); }
.aside-quote figcaption { font-size: .84rem; color: var(--muted); }
.aside-quote figcaption b { color: var(--text-2); font-weight: 600; }
.aside-quote .src { display: block; margin-top: 2px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.aside-obat { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; color: var(--mint); font-weight: 600; font-size: .9rem; text-underline-offset: 3px; }
.fact strong a { text-decoration: none; }
.fact strong a:hover { color: var(--mint); }

/* ---------- Mentions légales ---------- */
.legal { padding-block: clamp(56px, 8vw, 100px); }
.legal h1 { font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; margin: 18px 0 40px; }
.legal h1 strong { font-weight: 800; font-stretch: 118%; color: var(--mint); }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text-2); max-width: 70ch; }
.legal p + p { margin-top: 10px; }
.legal .todo { background: rgba(242, 181, 68, .2); color: #ffd98a; border-radius: 4px; padding: 0 4px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 40px; color: var(--mint); font-weight: 600; text-decoration: none; }

/* =========================================================
   Fil conducteur (piste qui suit le défilement)
   ========================================================= */
.wire { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.wire path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wire .w-base { stroke: #1a2770; stroke-width: 1.5; }
.wire .w-glow { stroke: var(--mint); stroke-width: 8; opacity: .14; }
.wire .w-core { stroke: var(--mint); stroke-width: 2; }
.wire .w-pulse { stroke: #eafff6; stroke-width: 2; stroke-dasharray: 2 38; opacity: 0; }
.wire .w-br-base { stroke: #1a2770; stroke-width: 1.5; }
.wire .w-br { stroke: var(--mint); stroke-width: 2; transition: stroke-dashoffset .55s var(--ease); }
.wire .w-br.on { stroke-dashoffset: 0 !important; }
.wire .w-pad { fill: var(--bg); stroke: #2a3b9e; stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.wire .w-pad.on { fill: var(--mint); stroke: var(--mint); }
.wire .w-dot { fill: #eafff6; }
.wire .w-head.done .w-halo { opacity: 0; }
.wire .w-halo { transition: opacity .4s; }
@media (prefers-reduced-motion: no-preference) {
  .wire .w-pulse { opacity: .9; animation: wireflow 1.1s linear infinite; }
  .wire .w-halo { animation: spark 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes wireflow { to { stroke-dashoffset: -40; } }
@keyframes spark { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* Les contenus passent au-dessus du fil, les fonds de section en dessous */
main > section > .wrap, main > section > .sim, .facts > .wrap, .site-footer > .wrap { position: relative; z-index: 2; }
/* bandeaux pleine largeur (chiffres, défilant) : le fil passe dessous, comme une piste sous un composant */
.facts, .ticker { position: relative; z-index: 2; }

/* Repère de section « alimenté » */
.eyebrow .ref { transition: background-color .4s, box-shadow .4s; }
.eyebrow .ref.powered { background: rgba(0, 230, 152, .14); box-shadow: 0 0 22px -2px var(--mint-glow), inset 0 0 10px -4px var(--mint-glow); }
@media (prefers-reduced-motion: no-preference) {
  .eyebrow .ref.powered::after { animation: pinPulse 2s ease-in-out infinite; }
}
@keyframes pinPulse { 0%, 100% { box-shadow: 0 0 4px currentColor; } 50% { box-shadow: 0 0 12px 2px currentColor; } }
/* Titre de section « mis sous tension » : une piste se trace sous la partie en vert, avec un éclat */
:is(h1, h2) strong {
  background: linear-gradient(90deg, var(--mint), #3f8bff 70%, transparent) no-repeat 0 100% / 0% 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-bottom: .06em;
}
:is(h1, h2).is-lit strong { background-size: 100% 3px; }
.hero h1 strong { width: fit-content; }
@media (prefers-reduced-motion: no-preference) {
  :is(h1, h2) strong { transition: background-size 1.1s var(--ease) .25s; }
  :is(h1, h2).is-lit strong { animation: titleFlash 1.4s var(--ease) .15s; }
}
@keyframes titleFlash {
  0% { text-shadow: 0 0 34px rgba(0, 230, 152, .22); }
  30% { text-shadow: 0 0 18px rgba(0, 230, 152, .85), 0 0 50px rgba(0, 230, 152, .5); color: #b8ffe6; }
  100% { text-shadow: 0 0 34px rgba(0, 230, 152, .22); }
}
.footer-logo { transition: filter .8s var(--ease); }
.footer-logo.powered { filter: drop-shadow(0 0 18px rgba(0, 230, 152, .45)); }
@media print { .wire { display: none; } }

@media print {
  .site-header, .fab, .ticker, .pcb, .lightbox, .sim-sec { display: none !important; }
  body { background: #fff; color: #000; }
}
