/* ==========================================================================
   JONESEVEN — Feuille de style
   Identité : sombre & premium, une couleur signature par pôle.
   ========================================================================== */

/* ---------- Polices hébergées sur le site (aucun appel à Google : plus rapide et conforme RGPD) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-stretch: 100%; font-display: swap; src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
    /* Surfaces */
    --bg: #07080b;
    --bg-2: #0b0d12;
    --surface: #0f1218;
    --surface-2: #151922;
    --line: rgb(var(--tint) / .08);
    --line-2: rgb(var(--tint) / .14);

    /* Texte */
    --text: #eef0f4;
    --text-2: #a9aebb;
    --text-3: #6f7584;

    /* Pôles */
    --web: #8b9bff;
    --repair: #ff8a4c;
    --network: #3ddcb0;
    --accent: var(--web);
    --g1: #a5b1ff; --g2: #6ee7c8; --g3: #ffa774;
    --grad: linear-gradient(100deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 100%);

    /* Teintes utilitaires (inversées en thème clair) */
    --tint: 255 255 255;            /* voiles et bordures translucides */
    --contrast: #ffffff;            /* bouton principal, pastille sélectionnée */
    --on-contrast: #07080b;
    --on-accent: #07080b;           /* texte posé sur une couleur de pôle */
    --shadow-strong: rgba(0, 0, 0, .8);
    --spark: #ffffff;               /* point le plus lumineux des effets */
    --danger: #ff6b6b; --danger-text: #ff8b8b;
    --ok-text: #aef3df; --err-text: #ffc2c2;
    --orb-strength: 1;
    color-scheme: dark;

    /* Typo */
    --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Rythme */
    --radius: 20px;
    --radius-sm: 12px;
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(72px, 10vw, 128px);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 76px;
}

/* ---------- Thème clair ---------- */
:root[data-theme="light"] {
    --bg: #f6f5f1;
    --bg-2: #efede8;
    --surface: #ffffff;
    --surface-2: #fbfaf8;
    --text: #14161c;
    --text-2: #4a505e;
    --text-3: #7b8191;
    --web: #4c5ce6;
    --repair: #dd5e1c;
    --network: #0c9a77;
    --g1: #5464f0; --g2: #0fa47f; --g3: #ec6f2b;
    --tint: 18 20 28;
    --contrast: #14161c;
    --on-contrast: #ffffff;
    --on-accent: #ffffff;
    --shadow-strong: rgba(24, 28, 45, .16);
    --danger: #d23b3b; --danger-text: #b92f2f;
    --ok-text: #0a6b53; --err-text: #a12a2a;
    --orb-strength: .5;
    color-scheme: light;
}


.theme-web { --accent: var(--web); }
.theme-repair { --accent: var(--repair); }
.theme-network { --accent: var(--network); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.65 var(--f-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .8em; letter-spacing: .02em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
/* Dégradé animé : motif qui boucle (début = fin) et défile d'une largeur de motif complète */
.text-gradient {
    background: linear-gradient(100deg, var(--g1) 0%, var(--g2) 33%, var(--g3) 66%, var(--g1) 100%) 0 0 / 200% 100% repeat-x;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    animation: gradient-flow 8s linear infinite;
}
@keyframes gradient-flow { to { background-position: 200% 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Machine à écrire : le fantôme invisible réserve la place, le texte s'écrit par-dessus */
.tw { display: inline-grid; vertical-align: bottom; }
/* Le pseudo-élément réserve la place (non indexé) ; sans JavaScript il sert de texte visible */
.tw::before { content: attr(data-text); content: attr(data-text) / ""; grid-area: 1 / 1; visibility: hidden; }
html:not(.js) .tw::before { visibility: visible; }
.tw__text { grid-area: 1 / 1; }
.tw__text::after { content: ""; display: inline-block; width: .07em; height: .9em; margin-left: .06em; vertical-align: -.08em; border-radius: 2px; background: var(--accent); opacity: 0; }
.tw.is-typing .tw__text::after, .tw.is-done .tw__text::after { opacity: 1; animation: caret 1s steps(1) infinite; }
.tw.is-typing .tw__text::after { animation: none; }
.tw.is-finished .tw__text::after { opacity: 0; transition: opacity .6s; animation: none; }
@keyframes caret { 50% { opacity: 0; } }

/* Effet "électrique" (pôle Réseau) :
   1. chargement éclair : le texte se remplit de gauche à droite comme une barre de progression,
      pendant que le câble se remplit en dessous,
   2. puis en boucle : une impulsion parcourt le câble sous le texte,
      et le connecteur d'arrivée s'illumine. */
.zap {
    --zc: var(--network);
    --cycle: 3.6s;
    position: relative; display: inline-block; padding-bottom: .2em;
    color: var(--text);
    animation: zap-glow var(--cycle) 1.9s infinite;
}
.zap::before { content: attr(data-text); content: attr(data-text) / ""; position: absolute; left: 0; top: 0; color: rgb(var(--tint) / .1); text-shadow: none; pointer-events: none; }
.zap__text { position: relative; animation: zap-load 1.1s .4s both cubic-bezier(.3, 0, .2, 1); }
.zap__fill {
    position: absolute; left: 0; top: -1px; height: 4px; width: 0; border-radius: 4px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--zc) 50%, transparent), var(--zc) 85%, var(--spark));
    box-shadow: 0 0 12px var(--zc);
    animation: zap-progress 1.1s .4s both cubic-bezier(.3, 0, .2, 1), zap-fade .6s 1.6s both;
}
.zap__wire { position: absolute; left: .1em; right: .1em; bottom: 0; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--zc) 22%, transparent); }
.zap__wire::before, .zap__wire::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 2px; background: var(--zc); }
.zap__wire::before { left: -3px; }
.zap__wire::after { right: -3px; animation: zap-hit var(--cycle) 1.9s infinite; }
.zap__track { position: absolute; left: 0; right: 0; top: -14px; bottom: -14px; overflow: hidden; }
.zap__pulse {
    position: absolute; top: 13px; left: -30%; width: 30%; height: 4px; border-radius: 4px; opacity: 0;
    background: linear-gradient(90deg, transparent, var(--zc) 60%, var(--spark));
    box-shadow: 0 0 10px var(--zc), 0 0 22px color-mix(in srgb, var(--zc) 60%, transparent);
    animation: zap-run var(--cycle) 1.9s infinite cubic-bezier(.5, 0, .7, 1);
}
/* Progression "réaliste" : départ très rapide, mini-pause, puis fin d'un trait */
@keyframes zap-load {
    0% { clip-path: inset(-.4em 100% -.4em -.4em); }
    35% { clip-path: inset(-.4em 52% -.4em -.4em); }
    50% { clip-path: inset(-.4em 44% -.4em -.4em); }
    100% { clip-path: inset(-.4em -.4em -.4em -.4em); }
}
@keyframes zap-progress { 0% { width: 0; } 35% { width: 48%; } 50% { width: 56%; } 100% { width: 100%; } }
@keyframes zap-fade { to { opacity: 0; } }
@keyframes zap-glow {
    0%, 31% { text-shadow: 0 0 .35em color-mix(in srgb, var(--zc) 30%, transparent); }
    37% { text-shadow: 0 0 .45em color-mix(in srgb, var(--zc) 75%, transparent), 0 0 1.2em color-mix(in srgb, var(--zc) 40%, transparent); }
    65%, 100% { text-shadow: 0 0 .35em color-mix(in srgb, var(--zc) 30%, transparent); }
}
@keyframes zap-run {
    0% { left: -30%; opacity: 0; } 6% { opacity: 1; }
    42% { left: 100%; opacity: 1; } 46%, 100% { left: 100%; opacity: 0; }
}
@keyframes zap-hit {
    0%, 30% { background: var(--zc); box-shadow: none; }
    33% { background: var(--spark); box-shadow: 0 0 0 4px color-mix(in srgb, var(--zc) 35%, transparent), 0 0 18px var(--zc); }
    52%, 100% { background: var(--zc); box-shadow: none; }
}

/* Titre combiné du pôle Dépannage (séquence pilotée par app.js) */
.js .dx [data-stage] { visibility: hidden; }
.js .dx [data-stage].is-on { visibility: visible; }
/* 2. « réparé » reste orange : c'est le mot qui a été réparé */
.dx__scramble { color: var(--repair); }
/* 3. Lettres de travers qui se remettent en place (C, G et É restent orange ensuite) */
.dx__config { white-space: nowrap; }
.dx__l { display: inline-block; transition: transform .7s cubic-bezier(.3, 1.6, .45, 1), color .7s; }
.dx__l--g { transition-delay: .1s; } .dx__l--r { transition-delay: .2s; } .dx__l--e { transition-delay: .3s; }
.dx__l--c, .dx__l--g, .dx__l--e { color: var(--repair); }
.js .dx__config:not(.is-fixed) .dx__l--r { color: var(--repair); }
.js .dx__config:not(.is-fixed) .dx__l--c { transform: rotate(-28deg) translate(-.03em, .08em); }
.js .dx__config:not(.is-fixed) .dx__l--g { transform: rotate(16deg) translateY(-.06em); }
.js .dx__config:not(.is-fixed) .dx__l--r { transform: translateY(.16em) rotate(-10deg); }
.js .dx__config:not(.is-fixed) .dx__l--e { transform: rotate(180deg); }
.dx__config.is-on, .dx__and.is-on { animation: dx-in .35s ease-out both; }
@keyframes dx-in { from { opacity: 0; } }
/* 4. Écran qui s'allume (réutilise les animations rb-line / rb-open) */
.dx__crt { position: relative; display: inline-block; }
.dx__crt-text { display: block; }
.dx__crt::before {
    content: ""; position: absolute; left: -.1em; right: -.1em; top: 50%; height: 3px; margin-top: -1.5px;
    border-radius: 3px; background: var(--spark); transform: scaleX(0); opacity: 0; pointer-events: none;
    box-shadow: 0 0 6px var(--repair), 0 0 18px var(--repair), 0 0 40px color-mix(in srgb, var(--repair) 60%, transparent);
}
.dx__crt.is-on::before { animation: rb-line .7s both cubic-bezier(.2, .8, .2, 1); }
.dx__crt.is-on .dx__crt-text { animation: rb-open 1s .35s both; }
/* « prêt à servir » souligné : un trait blanc fin se dessine de gauche à droite une fois l'écran allumé */
.dx__ul { background: linear-gradient(var(--text), var(--text)) 0 100% / 100% .04em no-repeat; }
.js .dx__ul { background-size: 0 .04em; }
.dx__crt.is-on .dx__ul { animation: dx-underline .55s .95s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes dx-underline { from { background-size: 0 .04em; } to { background-size: 100% .04em; } }
/* 5. Le point final : un vrai point rond qui sert de voyant.
   Il clignote orange avec un léger halo qui s'étend à chaque clignotement,
   puis passe au vert et "respire" doucement, comme un voyant en veille. */
.dx__dot {
    position: relative; display: inline-block; width: .12em; height: .12em; margin-left: .05em;
    border-radius: 50%; background: currentColor; vertical-align: baseline;
}
.dx__dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.dx__dot.is-on { animation: dx-blink 1.1s both, dx-standby 2.6s 1.1s ease-in-out infinite; }
.dx__dot.is-on::before { animation: dx-ripple .366s 3 ease-out both; }
@keyframes dx-blink {
    0%, 33%, 66% { background: var(--repair); box-shadow: 0 0 .2em var(--repair); }
    17%, 50%, 83% { background: color-mix(in srgb, var(--repair) 28%, var(--bg)); box-shadow: none; }
    100% { background: var(--network); box-shadow: 0 0 .25em var(--network); }
}
@keyframes dx-ripple {
    from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--repair) 45%, transparent); }
    to { box-shadow: 0 0 0 .28em color-mix(in srgb, var(--repair) 0%, transparent); }
}
@keyframes dx-standby {
    0%, 100% { background: var(--network); box-shadow: 0 0 .25em var(--network); }
    50% { background: color-mix(in srgb, var(--network) 35%, var(--bg)); box-shadow: 0 0 .05em color-mix(in srgb, var(--network) 30%, transparent); }
}

/* Effet "check-list" (pôle Dépannage) :
   un mini-terminal déroule les étapes (diagnostic, réparation, tests) avec leur ✓,
   puis laisse place à la phrase. Le texte réserve sa place : rien ne bouge. */
.ck { display: inline-grid; vertical-align: bottom; }
.ck__text, .ck__log { grid-area: 1 / 1; }
.ck__log {
    display: flex; flex-direction: column; justify-content: center; gap: .18em;
    font: 500 .3em/1.2 var(--f-mono); letter-spacing: .02em; color: var(--text-2);
    transition: opacity .3s, transform .3s;
}
.ck__line { display: flex; gap: .7em; white-space: nowrap; animation: ck-line .25s ease-out both; }
.ck__line::before { content: ">"; color: var(--repair); }
.ck__status { color: var(--repair); min-width: 1.5em; }
.ck__status.is-ok { color: var(--network); }
.ck__badge {
    display: inline-grid; place-items: center; width: .62em; height: .62em; margin-left: .18em; vertical-align: .02em;
    border-radius: 50%; background: var(--repair); color: var(--on-accent);
    box-shadow: 0 0 0 .1em color-mix(in srgb, var(--repair) 25%, transparent), 0 0 .5em color-mix(in srgb, var(--repair) 50%, transparent);
}
.ck__badge .icon { width: .42em; height: .42em; stroke-width: 3.2; }
.js .ck__text { opacity: 0; transform: translateY(.15em); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .ck__badge { opacity: 0; transform: scale(0); }
.js .ck.is-done .ck__text { opacity: 1; transform: none; }
.js .ck.is-done .ck__badge { opacity: 1; transform: none; animation: ck-pop .5s .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.ck.is-done .ck__log { opacity: 0; transform: translateY(-.3em); }
@keyframes ck-line { from { opacity: 0; transform: translateY(.4em); } }
@keyframes ck-pop { from { opacity: 0; transform: scale(0) rotate(-30deg); } }

/* Effet "redémarrage" (pôle Dépannage) :
   1. une fine ligne orange traverse l'écran, comme un vieux moniteur qu'on rallume,
   2. l'image s'ouvre depuis le centre et la phrase s'allume en scintillant,
   3. un voyant clignote orange (démarrage) puis passe au vert (système OK). */
.rb { position: relative; display: inline-block; }
.rb::before {
    content: ""; position: absolute; left: -.1em; right: -.1em; top: 50%; height: 3px; margin-top: -1.5px;
    border-radius: 3px; background: var(--spark);
    box-shadow: 0 0 6px var(--repair), 0 0 18px var(--repair), 0 0 40px color-mix(in srgb, var(--repair) 60%, transparent);
    transform: scaleX(0); opacity: 0; pointer-events: none;
    animation: rb-line .7s .35s both cubic-bezier(.2, .8, .2, 1);
}
.rb__text { display: block; animation: rb-open 1s .7s both; }
.rb__led {
    display: inline-block; width: .26em; height: .26em; margin-left: .22em; vertical-align: .1em;
    border-radius: 50%; background: rgb(var(--tint) / .16); opacity: 0;
    animation: rb-led 1.3s 1.55s both;
}
@keyframes rb-line {
    0% { transform: scaleX(0); opacity: 1; }
    45% { transform: scaleX(1); opacity: 1; }
    65% { transform: scaleX(1) scaleY(1); opacity: 1; }
    100% { transform: scaleX(1.02) scaleY(14); opacity: 0; }
}
@keyframes rb-open {
    0% { clip-path: inset(50% -.3em 50% -.3em); filter: brightness(2.4); }
    30% { clip-path: inset(-.3em -.3em -.3em -.3em); filter: brightness(1.8); opacity: 1; }
    40% { opacity: .45; }
    46% { opacity: 1; }
    54% { opacity: .7; filter: brightness(1.3); }
    62%, 99.9% { clip-path: inset(-.3em -.3em -.3em -.3em); opacity: 1; filter: none; }
    100% { clip-path: none; opacity: 1; filter: none; }
}
@keyframes rb-led {
    0% { opacity: 0; }
    8%, 22%, 36%, 50% { opacity: 1; background: var(--repair); box-shadow: 0 0 .3em var(--repair); }
    15%, 29%, 43% { opacity: 1; background: color-mix(in srgb, var(--repair) 25%, var(--bg)); box-shadow: none; }
    70%, 100% { opacity: 1; background: var(--network); box-shadow: 0 0 0 .08em color-mix(in srgb, var(--network) 25%, transparent), 0 0 .45em var(--network); }
}

/* Effet "réparation" (pôle Dépannage) :
   la phrase s'affiche brouillée comme un écran en panne, puis chaque lettre se remet en place.
   La vraie lettre reste dans le flux (transparente) : la mise en page ne bouge jamais. */
.rp__c { position: relative; }
.rp__c.is-scrambled { color: transparent; }
.rp__c.is-scrambled::after {
    content: attr(data-g); content: attr(data-g) / ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    color: color-mix(in srgb, var(--repair) 85%, transparent);
    text-shadow: .04em 0 rgba(255, 60, 90, .45), -.04em 0 rgba(80, 200, 255, .35);
}
.rp__c.is-fixed { animation: rp-fix .45s ease-out; }
@keyframes rp-fix { from { color: var(--repair); text-shadow: 0 0 .4em color-mix(in srgb, var(--repair) 70%, transparent); } }
.rp__check {
    display: inline-grid; place-items: center; width: .62em; height: .62em; margin-left: .18em; vertical-align: .02em;
    border-radius: 50%; background: var(--repair); color: var(--on-accent);
    box-shadow: 0 0 0 .1em color-mix(in srgb, var(--repair) 25%, transparent), 0 0 .5em color-mix(in srgb, var(--repair) 50%, transparent);
}
.rp__check .icon { width: .42em; height: .42em; stroke-width: 3.2; }
.js .rp__check { opacity: 0; transform: scale(0); }
.js .rp.is-done .rp__check { opacity: 1; transform: none; animation: rp-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rp-pop { from { opacity: 0; transform: scale(0) rotate(-30deg); } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
    --h: 48px;
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    height: var(--h); padding: 0 22px;
    border-radius: 999px; border: 1px solid transparent;
    font: 600 15px/1 var(--f-body); letter-spacing: -.005em; white-space: nowrap;
    cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--primary { background: var(--contrast); color: var(--on-contrast); box-shadow: 0 0 0 0 rgb(var(--tint) / .0), 0 10px 30px -10px rgb(var(--tint) / .35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgb(var(--tint) / .08), 0 18px 40px -12px rgb(var(--tint) / .45); }
.btn--ghost { background: rgb(var(--tint) / .03); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgb(var(--tint) / .07); border-color: rgb(var(--tint) / .25); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.link-arrow, .link-inline { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, gap .2s; }
.link-arrow:hover, .link-inline:hover { border-color: var(--accent); gap: .6em; }
.link-arrow .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__brand { position: relative; z-index: 2; margin-right: auto; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 36px; height: 36px; }
.logo__word { font: 800 19px/1 var(--f-display); letter-spacing: .04em; }
.logo__word span { color: var(--text-2); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; }
.nav__link { position: relative; display: block; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .2s, background .2s; }
.nav__link:hover { color: var(--text); background: rgb(var(--tint) / .05); }
.nav__link.is-active { color: var(--text); }
.nav__link::before { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--dot, var(--text)); transform: translateX(-50%) scale(0); transition: transform .25s var(--ease); }
.nav__link.is-active::before { transform: translateX(-50%) scale(1); }
.nav__link { white-space: nowrap; }
.nav__link--home { display: inline-flex; align-items: center; gap: 7px; }
/* Bouton d'allumage : en veille il "respire" en orange ; au survol il s'allume simplement en blanc */
.pw { --pw-on: #fff; overflow: visible; animation: pw-standby 3.2s ease-in-out infinite; }
:root[data-theme="light"] .pw { --pw-on: var(--text); } /* du blanc serait invisible sur fond clair */
.nav__link--home:hover .pw, .nav__link--home:focus-visible .pw { animation: none; transition: color .2s, filter .2s; color: var(--pw-on); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--pw-on) 75%, transparent)) drop-shadow(0 0 9px color-mix(in srgb, var(--pw-on) 35%, transparent)); }
@keyframes pw-standby {
    0%, 100% { color: currentColor; filter: none; }
    50% { color: color-mix(in srgb, var(--repair) 85%, currentColor); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--repair) 50%, transparent)); }
}

/* Écrans moyens : menu plus compact, le bouton Accueil ne montre que son icône (texte gardé pour les lecteurs d'écran) */
@media (min-width: 901px) and (max-width: 1180px) {
    .nav { gap: 16px; }
    .nav__list { gap: 0; }
    .nav__link { padding: 8px 10px; font-size: 14.5px; }
    .nav__home-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.nav__link--home .icon { width: 16px; height: 16px; }
.nav__link--web { --dot: var(--web); }
.nav__link--repair { --dot: var(--repair); }
.nav__link--network { --dot: var(--network); }

.burger { display: none; position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgb(var(--tint) / .03); cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Éléments communs ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--accent { color: var(--accent); }
.eyebrow .mono { font-size: 1em; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(var(--tint) / .03); font-size: 13.5px; color: var(--text-2); margin-bottom: 28px; }
.pill__dot, .live { width: 8px; height: 8px; border-radius: 50%; background: var(--network); box-shadow: 0 0 0 0 rgba(61,220,176,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,220,176,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(61,220,176,0); } }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .5); }
.section--flush { padding-top: 0; }
.section--panel { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__title { font-size: clamp(32px, 4.6vw, 54px); }
.section__lead { margin-top: 20px; color: var(--text-2); font-size: 18px; max-width: 520px; }

/* Fond décoratif (grille + halos) */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
:root[data-theme="light"] .orb { filter: blur(100px) saturate(1.2); }
:root[data-theme="light"] .orb--web, :root[data-theme="light"] .orb--accent { opacity: .2; }
:root[data-theme="light"] .orb--network { opacity: .14; }
:root[data-theme="light"] .orb--repair { opacity: .13; }
:root[data-theme="light"] .cta__glow { opacity: .14; }
.hero__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    opacity: .55;
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 18s ease-in-out infinite alternate; }
.orb--web { width: 520px; height: 520px; background: var(--web); top: -180px; right: 6%; opacity: .32; }
.orb--network { width: 420px; height: 420px; background: var(--network); top: 220px; right: -120px; opacity: .2; animation-delay: -6s; }
.orb--repair { width: 360px; height: 360px; background: var(--repair); bottom: -160px; left: -80px; opacity: .18; animation-delay: -12s; }
.orb--accent { width: 560px; height: 560px; background: var(--accent); top: -240px; right: -60px; opacity: .28; }
@keyframes drift { to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }

/* ---------- Hero accueil ---------- */
.hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 9vw, 112px); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__title { font-size: clamp(44px, 6.4vw, 80px); line-height: .98; letter-spacing: -.035em; font-weight: 800; }
.hero__lead { margin-top: 28px; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--text-2); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14.5px; }
.hero__proof strong { display: block; font: 700 26px/1.1 var(--f-display); color: var(--text); letter-spacing: -.02em; }

.hero__visual { position: relative; }
.console {
    position: relative;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 92%, transparent), color-mix(in srgb, var(--surface) 94%, transparent));
    border: 1px solid var(--line-2); border-radius: 22px;
    box-shadow: 0 40px 80px -30px var(--shadow-strong), 0 0 0 1px rgb(var(--tint) / .02) inset, 0 1px 0 rgb(var(--tint) / .08) inset;
    backdrop-filter: blur(20px);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
    transition: transform .8s var(--ease);
}
.hero__visual:hover .console { transform: perspective(1400px) rotateY(0) rotateX(0); }
.console__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.console__bar > span { width: 11px; height: 11px; border-radius: 50%; background: rgb(var(--tint) / .16); }
.console__bar em { margin-left: auto; font-style: normal; color: var(--text-3); }
.console__body { padding: 22px; display: grid; gap: 12px; }
.console__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.console__label { color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.console__state { display: flex; align-items: center; gap: 10px; font: 700 24px/1.2 var(--f-display); margin-top: 4px; }
.console__score { position: relative; width: 58px; height: 58px; }
.console__score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.console__score circle { fill: none; stroke-width: 3; }
.ring-bg { stroke: var(--line-2); }
.ring { stroke: var(--network); stroke-linecap: round; stroke-dasharray: 98 100; stroke-dashoffset: 98; animation: ring 1.8s .4s var(--ease) forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.console__score span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 16px var(--f-display); }

.stat-row { --c: var(--web); display: grid; grid-template-columns: 40px 1fr 80px auto; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: rgb(var(--tint) / .025); border: 1px solid var(--line); }
.stat-row--repair { --c: var(--repair); }
.stat-row--network { --c: var(--network); }
.stat-row__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.stat-row__txt strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.stat-row__txt small { color: var(--text-3); font-size: 11.5px; }
.stat-row__val { color: var(--c); font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.bars i { flex: 1; border-radius: 2px; background: var(--c); opacity: .85; animation: bar 2.4s ease-in-out infinite; }
.bars i:nth-child(1) { height: 40%; } .bars i:nth-child(2) { height: 65%; animation-delay: -.3s; } .bars i:nth-child(3) { height: 50%; animation-delay: -.6s; } .bars i:nth-child(4) { height: 85%; animation-delay: -.9s; }
.bars i:nth-child(5) { height: 60%; animation-delay: -1.2s; } .bars i:nth-child(6) { height: 95%; animation-delay: -1.5s; } .bars i:nth-child(7) { height: 70%; animation-delay: -1.8s; } .bars i:nth-child(8) { height: 100%; animation-delay: -2.1s; }
@keyframes bar { 50% { transform: scaleY(.6); transform-origin: bottom; } }
.progress { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); animation: fill 2s .6s var(--ease) forwards; }
@keyframes fill { to { width: 100%; } }
.pulse-line svg { width: 100%; height: 22px; }
.pulse-line path { fill: none; stroke: var(--c); stroke-width: 1.8; stroke-dasharray: 160; stroke-dashoffset: 160; animation: dash 2.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -160; } }
.console__foot { display: flex; justify-content: space-between; color: var(--text-3); padding-top: 8px; }
.console__foot span { display: inline-flex; align-items: center; gap: 6px; }
.console__foot .icon { width: 14px; height: 14px; }

.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: color-mix(in srgb, var(--surface-2) 88%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -18px var(--shadow-strong); animation: float 6s ease-in-out infinite; }
.float-card .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgb(var(--tint) / .06); }
.float-card strong { display: block; font-size: 14px; line-height: 1.3; }
.float-card small { color: var(--text-3); font-size: 12.5px; }
.float-card--a { left: -36px; bottom: 56px; color: var(--network); }
.float-card--b { right: -20px; top: -26px; color: var(--web); animation-delay: -3s; }
.float-card strong, .float-card small { color: inherit; }
.float-card strong { color: var(--text); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 50s linear infinite; }
.marquee__track span { font: 600 clamp(18px, 2vw, 24px)/1 var(--f-display); color: var(--text-2); letter-spacing: -.01em; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--text-3); font-size: 14px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pôles ---------- */
.poles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.poles--two { grid-template-columns: repeat(2, 1fr); }
.pole {
    --c: var(--web);
    position: relative; display: flex; flex-direction: column;
    padding: 32px; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    overflow: hidden; isolation: isolate;
    transition: transform .45s var(--ease), border-color .45s;
}
.pole--repair { --c: var(--repair); }
.pole--network { --c: var(--network); }
.pole::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 340px; height: 340px; border-radius: 50%; background: var(--c); filter: blur(80px); opacity: .0; z-index: -1; transition: opacity .5s; }
.pole::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, var(--c), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .35; transition: opacity .45s; pointer-events: none; }
.pole:hover { transform: translateY(-6px); border-color: transparent; }
.pole:hover::before { opacity: .22; }
.pole:hover::after { opacity: 1; }
.pole__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; }
.pole__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.pole__icon .icon { width: 26px; height: 26px; }
.pole__num { color: var(--text-3); font-size: 13px; }
.pole__name { font-size: 28px; margin-bottom: 12px; }
.pole__text { color: var(--text-2); font-size: 16px; }
.pole__list { display: grid; gap: 10px; margin: 26px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.pole__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); }
.pole__list .icon { width: 16px; height: 16px; color: var(--c); }
.pole__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--c); }
.pole__more .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.pole:hover .pole__more .icon { transform: translateX(4px); }
.pole--compact .pole__top { margin-bottom: 28px; }
.pole--compact .pole__text { margin-bottom: 28px; }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font: 800 clamp(38px, 5vw, 60px)/1 var(--f-display); letter-spacing: -.04em; background: linear-gradient(180deg, var(--text), var(--text-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__num small { font-size: .55em; }
.stat__label { color: var(--text-3); font-size: 14.5px; }

/* ---------- Split & valeurs ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.split__aside .link-arrow { margin-top: 32px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.values--wide { grid-template-columns: repeat(4, 1fr); }
.value { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.value:hover { border-color: var(--line-2); background: var(--surface-2); }
.value__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(var(--tint) / .05); border: 1px solid var(--line); color: var(--text); margin-bottom: 22px; }
.value h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.015em; }
.value p { color: var(--text-2); font-size: 15.5px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::after { content: ""; position: absolute; top: 46px; right: -20px; width: 20px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.step:last-child::after { display: none; }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 26px; font-size: 13px; }
.page-home .step__num { color: var(--text); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15.5px; }

/* ---------- Manifeste ---------- */
.manifesto { margin: 0; max-width: 980px; }
.manifesto blockquote { margin: 0; font: 600 clamp(26px, 3.6vw, 44px)/1.2 var(--f-display); letter-spacing: -.025em; }
.manifesto figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; color: var(--text-3); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px); border-radius: 32px; border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 50% 0%, var(--surface-2) 0%, var(--bg-2) 60%); }
.cta__glow { position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: conic-gradient(from 180deg at 50% 50%, var(--web), var(--network), var(--repair), var(--web)); filter: blur(100px); opacity: .22; animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta .eyebrow { justify-content: center; }
.cta__title { font-size: clamp(34px, 5.4vw, 64px); max-width: 860px; margin: 0 auto; }
.cta__text { margin: 22px auto 0; max-width: 560px; color: var(--text-2); font-size: 18px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* ---------- Pages internes ---------- */
.page-hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(56px, 8vw, 96px); }
.page-hero--compact { padding-bottom: clamp(40px, 6vw, 64px); }
.page-hero__row { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.page-hero__title { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.035em; max-width: 900px; }
.page-hero__lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--text-2); max-width: 680px; }
.page-hero__badge { position: relative; width: 240px; height: 240px; display: grid; place-items: center; border-radius: 48px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--surface); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 60%, transparent); }
.page-hero__icon { color: var(--accent); }
.page-hero__icon .icon { width: 88px; height: 88px; stroke-width: 1.2; }
.page-hero__num { position: absolute; right: 22px; bottom: 16px; font: 800 44px/1 var(--f-display); color: color-mix(in srgb, var(--accent) 40%, transparent); }
/* ---------- Plan du site ---------- */
.plan { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 20px; align-items: start; }
.plan__group { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan__title { font: 500 12.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 20px; }
.plan__list { display: grid; gap: 18px; }
.plan__link { display: inline-flex; align-items: center; gap: 8px; font: 600 17px/1.35 var(--f-display); letter-spacing: -.01em; }
.plan__link .icon { width: 16px; height: 16px; color: var(--text-3); transition: transform .25s var(--ease), color .25s; }
.plan__link:hover .icon { transform: translateX(3px); color: var(--accent); }
.plan__sub { display: grid; gap: 6px; margin-top: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.plan__sub a { font-size: 14.5px; color: var(--text-2); }
.plan__sub a:hover { color: var(--text); }
@media (max-width: 900px) { .plan { grid-template-columns: 1fr; } }

.error-page { min-height: 72vh; display: flex; align-items: center; }
.error-page__links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--text-3); margin-bottom: 32px; }
.crumbs a:hover { color: var(--text); }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.offer:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-4px); }
.offer__num { color: var(--accent); margin-bottom: 36px; }
.offer h3 { font-size: 22px; margin-bottom: 12px; }
.offer p { color: var(--text-2); font-size: 15.5px; margin-bottom: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags li { font: 500 12px/1 var(--f-mono); padding: 7px 10px; border-radius: 999px; background: rgb(var(--tint) / .04); border: 1px solid var(--line); color: var(--text-2); }

.stack { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.stack .eyebrow { margin: 0; }
.stack__list { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__list li { padding: 9px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }

.faq { display: grid; gap: 12px; }
.faq__item { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.faq__item[open] { border-color: var(--line-2); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; cursor: pointer; list-style: none; font: 600 18px/1.35 var(--f-display); letter-spacing: -.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .3s var(--ease), background .3s; }
.faq__plus .icon { width: 16px; height: 16px; }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); border-color: transparent; }
.faq__item p { padding: 0 24px 24px; color: var(--text-2); max-width: 640px; }

.prose { display: grid; gap: 20px; font-size: 18px; color: var(--text-2); }
.prose--doc { max-width: 760px; font-size: 16.5px; gap: 14px; }
.prose--doc h2 { font-size: 24px; color: var(--text); margin-top: 24px; }
.prose a { color: var(--text); border-bottom: 1px solid var(--line-2); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.contact__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.contact__card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact__card h2 { font-size: 22px; margin-bottom: 22px; }
.contact__list { display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list small { display: block; font-size: 12.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.contact__list a, .contact__list span { font-weight: 500; word-break: break-word; }
.contact__list a:hover { color: var(--web); }
.contact__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgb(var(--tint) / .05); border: 1px solid var(--line); }
.assurances { display: grid; gap: 12px; padding: 0 8px; }
.assurances li { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: 15px; }
.assurances .icon { width: 18px; height: 18px; color: var(--network); }

.contact__form { padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); }
.form { display: grid; gap: 22px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--text); }
.field__label em { font-style: normal; color: var(--text-3); font-weight: 400; }
.input {
    width: 100%; min-height: 52px; padding: 14px 16px;
    font: 400 16px/1.4 var(--f-body); color: var(--text);
    background: rgb(var(--tint) / .03); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
textarea.input { resize: vertical; min-height: 150px; }
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: rgb(var(--tint) / .22); }
.input:focus { outline: none; border-color: var(--web); background: color-mix(in srgb, var(--web) 6%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--web) 18%, transparent); }
.field--error .input { border-color: var(--danger); }
.field__errors { color: var(--danger-text); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--tint) / .03); font-size: 14.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .2s; }
.chip span:hover { color: var(--text); border-color: rgb(var(--tint) / .25); }
.chip input:checked + span { background: var(--contrast); color: var(--on-contrast); border-color: var(--contrast); }
.chip input:focus-visible + span { outline: 2px solid var(--web); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check__box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1px solid var(--line-2); background: rgb(var(--tint) / .03); transition: all .2s; }
.check__box .icon { width: 14px; height: 14px; opacity: 0; color: var(--on-accent); stroke-width: 2.6; }
.check input:checked + .check__box { background: var(--network); border-color: var(--network); }
.check input:checked + .check__box .icon { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--web); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: var(--text-3); text-align: center; }
.form__note a { color: var(--text-2); text-decoration: underline; }

.alert { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 14px; margin-bottom: 24px; font-size: 15px; }
.alert--success { background: rgba(61,220,176,.1); border: 1px solid rgba(61,220,176,.35); color: var(--ok-text); }
.alert--error { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.35); color: var(--err-text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(56px, 8vw, 88px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__about p { margin-top: 20px; color: var(--text-3); font-size: 15px; max-width: 340px; }
.footer__title { font: 500 12.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 20px; }
.footer__links { display: grid; gap: 12px; font-size: 15px; color: var(--text-2); }
.footer__links a:hover { color: var(--text); }
.footer__contact a, .footer__contact span { display: inline-flex; align-items: flex-start; gap: 10px; overflow-wrap: anywhere; }
.footer__contact .icon { width: 16px; height: 16px; margin-top: .2em; color: var(--text-3); }
.footer__contact .icon--brand { width: 17px; height: 17px; margin-top: .15em; }
.footer__whatsapp:hover { color: #25D366 !important; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }

/* ---------- Sélecteur de langue (en-tête) ---------- */
.lang-switch {
    display: grid; place-items: center; height: 40px; min-width: 40px; padding: 0 10px; flex: none;
    border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2);
    font: 600 13px/1 var(--f-mono); letter-spacing: .06em;
    transition: color .25s, border-color .25s, background .25s;
}
.lang-switch:hover { color: var(--text); border-color: rgb(var(--tint) / .3); background: rgb(var(--tint) / .05); }

/* ---------- Bouton de thème (en-tête, tout à droite) ---------- */
.header__actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; margin-left: -10px; }
.theme-toggle {
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0; flex: none;
    border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer;
    background: transparent; color: var(--text);
    transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.theme-toggle:hover { border-color: rgb(var(--tint) / .3); background: rgb(var(--tint) / .05); }
.theme-toggle:hover .theme-toggle__icon { transform: rotate(-20deg); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle__icon {
    grid-area: 1 / 1; width: 19px; height: 19px;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .5s var(--ease), opacity .3s;
}
.theme-toggle__moon { fill: currentColor; stroke: none; }
/* On affiche l'icône du thème actuel */
:root[data-theme="light"] .theme-toggle__moon, :root:not([data-theme="light"]) .theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(.5) !important; }

/* ---------- Bouton "remonter en haut" (bas droite) ---------- */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer; color: var(--text);
    background: color-mix(in srgb, var(--surface-2) 85%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px -12px var(--shadow-strong);
    opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top.is-visible:hover { transform: translateY(-3px); }
.to-top.is-visible:active { transform: scale(.92); }
body.nav-open .to-top { opacity: 0; pointer-events: none; }
/* Anneau de progression de lecture (couleur du pôle de la page) */
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 1.5; }
.to-top__track { stroke: var(--line-2); }
.to-top__progress { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .15s linear; }
/* Flèche : au survol elle s'envole vers le haut et revient par le bas, en boucle */
.to-top__arrow { position: relative; display: grid; place-items: center; width: 22px; height: 22px; overflow: hidden; }
.to-top__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover .to-top__arrow svg, .to-top:focus-visible .to-top__arrow svg { animation: to-top-fly 1.1s cubic-bezier(.6, 0, .3, 1) infinite; }
.to-top:hover .to-top__progress { stroke-width: 2.5; }
@keyframes to-top-fly {
    0% { transform: translateY(0); opacity: 1; }
    40% { transform: translateY(-130%); opacity: 0; }
    41% { transform: translateY(130%); opacity: 0; }
    80%, 100% { transform: translateY(0); opacity: 1; }
}

/* Transition en cercle (View Transitions) : on désactive le fondu par défaut, app.js anime le cercle */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { max-width: 560px; margin-top: 24px; }
    .console { transform: none; }
    .poles { grid-template-columns: 1fr 1fr; }
    .poles > .pole:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .offers { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .step::after { display: none; }
    .values--wide { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .contact { grid-template-columns: 1fr; }
    .contact__aside { position: static; }
}

@media (max-width: 900px) {
    .burger { display: block; }
    .nav {
        position: fixed; inset: 0; z-index: 1;
        flex-direction: column; justify-content: center; align-items: stretch; gap: 32px;
        padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
        background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(20px);
        opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    }
    .nav.is-open { opacity: 1; visibility: visible; }
    .nav__list { flex-direction: column; gap: 4px; }
    .nav__link { font: 700 32px/1.2 var(--f-display); padding: 12px 0; color: var(--text); letter-spacing: -.02em; }
    .nav__link:hover { background: none; }
    .nav__link::before { left: auto; right: 0; top: 50%; width: 10px; height: 10px; transform: translateY(-50%) scale(0); }
    .nav__link.is-active::before { transform: translateY(-50%) scale(1); }
    .nav__cta { --h: 56px; font-size: 16px; }
    .nav__link--home .icon { display: none; } /* mobile : texte « Accueil » seul, sans icône */
    body.nav-open { overflow: hidden; }
    body.nav-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }

    .split { grid-template-columns: 1fr; }
    .split__aside { position: static; }
    .page-hero__row { grid-template-columns: 1fr; }
    .page-hero__badge { display: none; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .poles, .poles--two, .offers, .steps, .values, .values--wide, .form__row--2 { grid-template-columns: 1fr; }
    .poles > .pole:last-child:nth-child(odd) { grid-column: auto; }
    .pole { padding: 26px; }
    .pole__top { margin-bottom: 32px; }
    .hero__actions .btn, .cta__actions .btn { width: 100%; }
    .float-card { display: none; }
    .stat-row { grid-template-columns: 36px 1fr auto; }
    .stat-row > :nth-child(3) { display: none; }
    .stat-row__icon { width: 36px; height: 36px; }
    .footer__grid { grid-template-columns: 1fr; }
    .stack { padding: 24px; }
    .cta { border-radius: 24px; }
    .cta__actions .btn--ghost { font-size: 14px; }
}
