/* =====================================================================
   LawLvL — Redesign v3 « L'architecture invisible »
   Dark-only assumé (dramaturgie boot + marque terminal).
   Système : accent unique cyan, surfaces 14px, boutons pill,
   easings custom, états initiaux d'animation posés par JS (jamais en CSS,
   la page reste donc lisible sans JavaScript).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg: #08090b;
    --bg-2: #0c0e11;
    --bg-3: #12151a;
    --ink: #e6eaef;
    --ink-2: #a1a9b4;
    --ink-3: #7a828d;           /* textes secondaires : contraste AA (5,1:1 sur --bg) */
    --ink-3-aa: var(--ink-3);   /* ancien nom, conservé pour les règles qui l'emploient */
    --accent: #80b6d8;
    --accent-2: #93c7e6;
    --accent-3: #cde6f5;
    --accent-ink: #0a1016;      /* texte sur fond accent */
    --line: rgba(230, 234, 239, .08);
    --line-2: rgba(230, 234, 239, .14);
    --glow: rgba(160, 205, 232, .11);

    --font: 'Outfit', system-ui, -apple-system, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

    --r-surface: 14px;
    --r-pill: 999px;

    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --ease-io: cubic-bezier(.77, 0, .175, 1);

    --nav-h: 68px;
    --wrap: 1200px;
}

/* ---------- Polices (auto-hébergées : aucun appel à Google) ----------
   Fichiers latin de Google Fonts (licence SIL OFL) : Outfit variable 300-800,
   IBM Plex Mono 300/400/500. Le sous-ensemble latin couvre le français. */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/outfit-latin-var.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;
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/ibm-plex-mono-300-latin.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;
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-mono-400-latin.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;
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/ibm-plex-mono-500-latin.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;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
html.static { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* grille technique de la charte, très discrète */
body::before {
    content: "";
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none;
    background:
        linear-gradient(rgba(230,234,239,.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230,234,239,.024) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
}

main, footer, .nav { position: relative; z-index: 1; }

::selection { background: rgba(128,182,216,.35); color: var(--ink); }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
b { font-weight: 600; color: var(--ink); }
em { font-style: normal; }

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 4px;
}

.accent { color: var(--accent-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }

.skip-link {
    position: fixed; top: -48px; left: 16px; z-index: 300;
    background: var(--accent); color: var(--accent-ink);
    padding: 10px 18px; border-radius: var(--r-pill);
    font-weight: 600; font-size: .9rem;
    transition: top .2s var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

#topSentinel { position: absolute; top: 0; height: 60px; width: 1px; }

/* ---------- Typo générique ---------- */
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }

/* H1 d'en-tête : regroupe le sur-titre et le grand titre, chacun garde son propre style */
.h1-group { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: normal; }
.h1-group > span { display: block; }

h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }

.lead {
    color: var(--ink-2);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    max-width: 56ch;
    margin-top: 18px;
}

.kicker {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 20px;
}

.sec-head { max-width: 720px; margin-bottom: clamp(48px, 7vw, 88px); }

.expert-head {
    max-width: 920px;
    display: grid;
    grid-template-columns: clamp(120px, 15vw, 184px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}
.expert-photo {
    width: 100%; height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--r-surface);
    border: 1px solid var(--line-2);
}

section { padding-block: clamp(88px, 12vw, 150px); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding-inline: 28px;
    border-radius: var(--r-pill);
    font-size: .95rem; font-weight: 600; letter-spacing: .01em;
    white-space: nowrap;
    transition: transform .16s var(--ease-out), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
    will-change: transform;
}
.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
}
.btn-ghost {
    border: 1px solid var(--line-2);
    color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover { background: var(--accent-2); box-shadow: 0 8px 32px -8px var(--glow); }
    .btn-ghost:hover { border-color: rgba(147,199,230,.5); background: rgba(128,182,216,.06); }
}

/* =====================================================================
   BOOT SEQUENCE
   ===================================================================== */
/* masqué par défaut : seul le script du <head> l'active (page lisible sans JS) */
.boot {
    position: fixed; inset: 0; z-index: 200;
    background: #060709;
    display: none; flex-direction: column; justify-content: space-between;
    padding: clamp(20px, 3vw, 36px);
    font-family: var(--mono);
    cursor: pointer;
    clip-path: inset(0 0 0 0);
}
html.js-boot .boot { display: flex; }
.boot.done { display: none; }
html.static .boot { display: none; }

.boot-head, .boot-foot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink-3);
}
.boot-pct { color: var(--accent-2); font-variant-numeric: tabular-nums; }

.boot-center { flex: 1; display: flex; align-items: center; justify-content: center; }
.boot-log {
    font-family: var(--mono);
    font-size: clamp(.72rem, 1.5vw, .88rem);
    line-height: 2.1;
    color: var(--ink-2);
    min-height: 11em;          /* réserve l'espace des 5 lignes : zéro saut */
    min-width: min(560px, 86vw);
    white-space: pre-wrap;
}
.boot-log .ok { color: var(--accent-2); }
.boot-log .dim { color: var(--ink-3); }

.boot-foot { gap: 24px; }
.boot-line {
    flex: 1; height: 1px; background: var(--line);
    position: relative; overflow: hidden;
}
.boot-line i {
    position: absolute; inset: 0;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    display: block;
}
.boot-skip { flex-shrink: 0; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(8, 9, 11, .72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
/* menu ouvert : la nav (et son burger devenu croix) reste au-dessus de l'overlay */
html.menu-open .nav {
    z-index: 130;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
}
.nav-inner {
    max-width: var(--wrap); margin: 0 auto;
    height: var(--nav-h);
    padding-inline: clamp(20px, 4vw, 48px);
    display: flex; align-items: center; gap: 40px;
}
.nav-logo {
    font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em;
    display: inline-flex; align-items: baseline;
}
/* focus clavier sans cadre : simple soulignement cyan */
.nav-logo:focus-visible {
    outline: none;
    text-decoration: underline 2px var(--accent-2);
    text-underline-offset: 6px;
}
/* le nom garde sa casse (LawLvL) même dans les lignes en capitales */
.brand { text-transform: none; }
/* curseur détaché du L final d'au moins la longueur de son pied */
.nav-caret {
    margin-left: .45em;
    color: var(--accent-2);
    animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a {
    font-size: .92rem; font-weight: 400;
    color: var(--ink-2);
    position: relative;
    padding-block: 6px;
    transition: color .2s ease;
}
.nav-links a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--accent-2);
    transform: scaleX(0); transform-origin: left;
    transition: transform .28s var(--ease-out);
}
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover { color: var(--ink); }
    .nav-links a:hover::after { transform: scaleX(1); }
}
.nav-cta { height: 40px; padding-inline: 22px; font-size: .88rem; }

.nav-burger {
    display: none;
    width: 44px; height: 44px;
    margin-left: auto;
    background: none; border: 0; cursor: pointer;
    position: relative; z-index: 130;
}
.nav-burger span {
    position: absolute; left: 10px; right: 10px;
    height: 2px; background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease-io), top .3s var(--ease-io);
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 25px; }
html.menu-open .nav-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
html.menu-open .nav-burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* menu mobile */
.mmenu {
    position: fixed; inset: 0; z-index: 120;
    background: rgba(6, 7, 9, .92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(24px, 8vw, 48px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .35s var(--ease-out), visibility 0s .35s;
}
html.menu-open .mmenu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .35s var(--ease-out);
}
.mmenu-links { display: flex; flex-direction: column; gap: 8px; }
.mmenu-links a {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    font-weight: 600; letter-spacing: -.02em;
    padding-block: 8px;
    opacity: 0; transform: translateY(18px);
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
html.menu-open .mmenu-links a { opacity: 1; transform: none; }
.mmenu-links a:nth-child(1) { transition-delay: .05s; }
.mmenu-links a:nth-child(2) { transition-delay: .1s; }
.mmenu-links a:nth-child(3) { transition-delay: .15s; }
.mmenu-links a:nth-child(4) { transition-delay: .2s; }
.mmenu-links a:nth-child(5) { transition-delay: .25s; }
.mmenu-cta { color: var(--accent-2); }
.mmenu-foot {
    margin-top: 48px;
    font-family: var(--mono); font-size: .8rem;
    color: var(--ink-3);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    min-height: 100dvh;
    display: flex; align-items: center;
    padding-block: calc(var(--nav-h) + 24px) 48px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    /* halo discret derrière le visuel */
    content: "";
    position: absolute; right: -10%; top: 20%;
    width: 55vw; height: 55vw; max-width: 780px; max-height: 780px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
    pointer-events: none;
}
.hero-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: clamp(20px, 4vw, 48px);
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    position: relative; z-index: 2;
}
/* en une colonne, le haut de la pile déborde sur les boutons : le texte reste au-dessus */
.hero-copy { position: relative; z-index: 1; }

.hero-kicker { margin-bottom: 26px; line-height: 1.6; }

.hero-title {
    font-size: clamp(2.5rem, 4.3vw, 4.2rem);
    font-weight: 700;
    line-height: 1.06;
}
.hl { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hl-in { display: inline-block; will-change: transform; }

.hero-sub {
    margin-top: 26px;
    color: var(--ink-2);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 46ch;
}
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ----- Pile isométrique ----- */
.hero-visual {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    gap: 8px;
    user-select: none;
}
.scene {
    width: min(100%, 460px);
    aspect-ratio: 1;
    perspective: 1300px;
    transition: transform .6s var(--ease-out);
}
/* mode « sortie » (écrans larges) : la pile se réduit et glisse à gauche pour
   laisser la couche visée s'afficher à sa droite, à la même taille
   (--sx, --sk, --sd calculés par JS selon la place disponible) */
.hero-visual.is-split .scene {
    transform: translateX(var(--sx, 0px)) scale(var(--sk, 1));
    transition: transform .75s var(--ease-out);
}
/* copie de la couche sortie : même scène que la pile, décalée en 2D
   (un décalage dans la perspective déformerait le losange) */
.scene-card {
    position: absolute; top: 0; left: 0; right: 0;
    margin-inline: auto;
    opacity: 0;
    pointer-events: none;
    transition: transform .6s var(--ease-out), opacity .25s ease .6s;
}
.hero-visual.is-split .scene-card {
    transform: translateX(calc(var(--sx, 0px) + var(--sd, 0px))) scale(var(--sk, 1));
    opacity: 1;
    transition: transform .75s var(--ease-out), opacity .1s ease;
}
.tilt { width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.stack {
    --gap: 44px;
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(57deg) rotateZ(-45deg);
}
/* Couche mise de face au survol : les angles annulent ceux de .stack,
   --spread écarte les voisines, --pop avance la couche vers l'écran.
   Propriétés enregistrées pour que CSS les interpole (et rattrape une
   transition interrompue en cours de route). */
@property --spread { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --pop    { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --rz     { syntax: '<angle>';  inherits: false; initial-value: 0deg; }
@property --rx     { syntax: '<angle>';  inherits: false; initial-value: 0deg; }
@property --s      { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --fade   { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --gi    { syntax: '<number>'; inherits: false; initial-value: 0; }

.plate {
    position: absolute; inset: 16%;
    border-radius: var(--r-surface);
    border: 1px solid rgba(147, 199, 230, .3);
    background-color: rgba(12, 14, 17, 0);
    background-image: linear-gradient(135deg, rgba(128,182,216,.14) 0%, rgba(128,182,216,.03) 60%, rgba(128,182,216,.08) 100%);
    box-shadow: inset 0 0 36px rgba(128,182,216,.06);
    transform:
        translateZ(calc(var(--i) * var(--gap) + var(--spread)))
        rotateZ(var(--rz)) rotateX(var(--rx))
        translateZ(var(--pop)) scale(var(--s));
    filter: opacity(var(--fade));   /* opacity reste libre pour l'intro GSAP */
    /* retour au repos : le texte s'efface d'abord, la couche se replace ensuite */
    transition:
        --spread .75s var(--ease-out), --pop .6s var(--ease-out),
        --rz .6s var(--ease-out), --rx .6s var(--ease-out), --s .6s var(--ease-out),
        --fade .45s ease,
        border-color .45s ease, background-color .45s ease, box-shadow .45s ease;
    display: flex; align-items: center; justify-content: center;
}
.plate-base {
    border-color: rgba(205, 230, 245, .55);
    box-shadow: inset 0 0 36px rgba(128,182,216,.1), 0 0 70px rgba(128,182,216,.18);
}
.plate-tag {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    max-width: 80%;
    text-align: center;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ink);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
}
.plate-tag i {
    font-style: normal;
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .2em;
    color: var(--accent-2);
}

/* survol : les autres couches s'effacent, la couche visée vient de face */
.stack.has-front .plate { --fade: .22; }
.stack.has-front .plate.is-front {
    --fade: 1;
    --rz: 45deg; --rx: -57deg;
    --pop: 130px; --s: .8;
    background-color: rgba(12, 14, 17, .88);
    border-color: rgba(205, 230, 245, .8);
    box-shadow: inset 0 0 40px rgba(128,182,216,.12), 0 0 80px rgba(128,182,216,.25);
    transition:
        --spread .75s var(--ease-out), --pop .75s var(--ease-out),
        --rz .75s var(--ease-out), --rx .75s var(--ease-out), --s .75s var(--ease-out),
        --fade .3s ease,
        border-color .45s ease, background-color .3s ease, box-shadow .45s ease;
}
.plate.is-front .plate-tag {
    opacity: 1;
    transform: none;
    transition: opacity .4s ease .3s, transform .5s var(--ease-out) .3s;
}

/* mode « sortie » : la couche visée s'efface de la pile (sa copie .plate-card
   la remplace), les autres restent lisibles autour de l'emplacement éteint */
.stack.has-front.split .plate { --fade: .6; }
.stack.split .plate.is-out { --fade: 0; }

.plate-card {
    --i: var(--gi);
    background-color: rgba(12, 14, 17, .88);
    border-color: rgba(205, 230, 245, .8);
    box-shadow: inset 0 0 40px rgba(128,182,216,.12), 0 0 80px rgba(128,182,216,.25);
    transition: --gi .45s var(--ease-out);
}
.hero-visual.is-split .plate-card { pointer-events: auto; }

/* nom de la couche sortie, posé droit au centre du losange (position par JS) */
.card-label {
    position: absolute; left: 0; top: 0;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: max-content; max-width: 170px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ink);
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
}
.card-label i {
    font-style: normal;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .2em;
    color: var(--accent-2);
}
.card-label.on { opacity: 1; transition: opacity .35s ease; }

/* emplacement éteint : contour seul, sans lueur */
.plate-ghost {
    position: absolute; inset: 16%;
    border-radius: var(--r-surface);
    border: 1px dashed rgba(205, 230, 245, .45);
    background: rgba(8, 9, 11, .35);
    transform: translateZ(calc(var(--gi) * var(--gap)));
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, --gi .45s var(--ease-out);
}
.stack.has-front.split .plate-ghost {
    opacity: 1;
    transition: opacity .4s ease .12s, --gi .45s var(--ease-out);
}
/* coins des losanges (pointes projetées : zones de survol, extrémités du liseré) */
.cn { position: absolute; width: 1px; height: 1px; }
.cn:nth-of-type(1) { left: 0; top: 0; }
.cn:nth-of-type(2) { right: 0; top: 0; }
.cn:nth-of-type(3) { right: 0; bottom: 0; }
.cn:nth-of-type(4) { left: 0; bottom: 0; }

/* liseré : de la pointe droite de l'emplacement éteint à la pointe gauche de la carte */
.leader {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
    pointer-events: none;
}
.leader line {
    stroke: var(--accent-2);
    stroke-width: 1;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: .75;
    transition: stroke-dashoffset .15s ease;
}
.leader circle {
    fill: var(--accent-3);
    opacity: 0;
    transition: opacity .15s ease;
}
.leader.drawn line { stroke-dashoffset: 0; transition: stroke-dashoffset .45s var(--ease-out); }
.leader.drawn circle { opacity: 1; transition: opacity .3s ease .1s; }

.legend {
    display: flex; flex-direction: column; gap: 2px;
    align-self: flex-start;
    margin-top: -34px;
}
.legend li {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .08em;
    color: var(--ink-3-aa);
    padding: 5px 10px;
    border-radius: 8px;
    cursor: default;
    transition: color .25s ease, background-color .25s ease;
}
.lg-idx { color: var(--ink-3-aa); font-size: .64rem; transition: color .25s ease; }
.legend li.is-hot, .legend li:hover { color: var(--accent-3); background: rgba(128,182,216,.06); }
.legend li.is-hot .lg-idx, .legend li:hover .lg-idx { color: var(--accent-2); }
.legend .lg-base { color: var(--ink-2); }

/* =====================================================================
   MANIFESTO
   ===================================================================== */
.manifesto { padding-block: 0; }
.manifesto-pin {
    min-height: 100vh;
    display: flex; align-items: center;
}
.manifesto-text {
    max-width: 900px;
    margin: 0 auto;
    padding-inline: clamp(20px, 4vw, 48px);
    font-size: clamp(1.55rem, 3.4vw, 2.7rem);
    font-weight: 500;
    line-height: 1.42;
    letter-spacing: -.01em;
    text-align: center;
}
.manifesto-text .w { opacity: .14; transition: opacity .25s ease, color .25s ease; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .w.hot { color: var(--accent-2); }
html.static .manifesto-pin { min-height: 0; padding-block: clamp(88px, 12vw, 150px); }
html.static .manifesto-text .w { opacity: 1; }

/* =====================================================================
   STATS
   ===================================================================== */
.stats { padding-block: clamp(48px, 7vw, 96px); }
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 64px);
}
.stat { border-top: 1px solid var(--line-2); padding-top: 22px; }
.stat-num {
    display: flex; align-items: baseline; gap: 8px;
    font-family: var(--mono);
}
.stat-num b {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--accent-2);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.stat-num i {
    font-style: normal;
    font-size: 1rem;
    color: var(--ink-3);
    letter-spacing: .1em;
}
.stat p { color: var(--ink-2); font-size: .95rem; margin-top: 10px; max-width: 26ch; }

/* =====================================================================
   ENJEUX
   ===================================================================== */
.enjeux-list { display: flex; flex-direction: column; }
.enjeu {
    display: grid;
    grid-template-columns: 90px minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(16px, 3vw, 48px);
    align-items: start;
    padding-block: clamp(28px, 4vw, 44px);
    border-top: 1px solid var(--line);
    transition: background-color .3s ease;
}
.enjeu:last-child { border-bottom: 1px solid var(--line); }
.enjeu-no {
    font-family: var(--mono);
    font-size: .84rem;
    color: var(--ink-3);
    padding-top: 8px;
    transition: color .3s ease;
}
.enjeu h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.enjeu p { color: var(--ink-2); max-width: 52ch; }
@media (hover: hover) and (pointer: fine) {
    .enjeu:hover { background: linear-gradient(90deg, rgba(128,182,216,.045), transparent 70%); }
    .enjeu:hover .enjeu-no { color: var(--accent-2); }
}

/* =====================================================================
   SOLUTIONS
   ===================================================================== */
.solutions { background: linear-gradient(180deg, transparent, rgba(12,14,17,.7) 12%, rgba(12,14,17,.7) 88%, transparent); }
.sol-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
.sol-index {
    position: sticky;
    top: calc(var(--nav-h) + 40px);
    display: flex; flex-direction: column;
    border-left: 1px solid var(--line);
}
.sol-indicator {
    position: absolute; left: -1px; top: 0;
    width: 2px; height: 44px;
    background: var(--accent-2);
    transition: transform .35s var(--ease-out), height .35s var(--ease-out);
}
.sol-index a {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0 12px 22px;
    font-size: .95rem;
    color: var(--ink-3);
    transition: color .25s ease;
    min-height: 44px;
}
.sol-index a i {
    font-style: normal;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .06em;
    transition: color .25s ease;
}
.sol-index a.is-active { color: var(--ink); }
.sol-index a.is-active i { color: var(--accent-2); }
@media (hover: hover) and (pointer: fine) {
    .sol-index a:hover { color: var(--ink); }
}

.sol-panels { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.sol-panel { scroll-margin-top: calc(var(--nav-h) + 48px); }
.sol-panel h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.sol-panel > p { color: var(--ink-2); margin-top: 12px; max-width: 58ch; }
.sol-panel ul {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
}
.sol-panel ul li {
    position: relative;
    padding: 10px 0 10px 22px;
    color: var(--ink-2);
    font-size: .95rem;
    border-top: 1px solid var(--line);
}
.sol-panel ul li::before {
    content: "";
    position: absolute; left: 0; top: 19px;
    width: 10px; height: 1px;
    background: var(--accent);
}
/* puce menant à une page dédiée (LawLvL Design) */
.sol-panel ul li.li-link a {
    display: inline-flex; align-items: baseline; gap: 8px;
    color: var(--ink);
    font-weight: 400;
    text-decoration: underline 1px rgba(147, 199, 230, .45);
    text-underline-offset: 5px;
    transition: color .2s ease, text-decoration-color .2s ease;
}
.sol-panel ul li.li-link a span {
    display: inline-block;          /* sort la flèche du soulignement et permet le glissement */
    color: var(--accent-2);
    transition: transform .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .sol-panel ul li.li-link a:hover { color: var(--accent-3); text-decoration-color: var(--accent-2); }
    .sol-panel ul li.li-link a:hover span { transform: translateX(4px); }
}

/* =====================================================================
   EXPERTISE
   ===================================================================== */
.path {
    position: relative;
    display: flex; flex-direction: column;
    gap: clamp(40px, 6vw, 72px);
    padding-left: clamp(28px, 4vw, 48px);
    margin-top: 8px;
}
.path-line {
    position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 1px; background: var(--line);
}
.path-line i {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    transform: scaleY(0); transform-origin: top;
    display: block;
}
.path-year {
    font-family: var(--mono);
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-2);
}
.path-body { max-width: 640px; }
.path-body h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-top: 10px; }
.path-role { color: var(--ink); font-weight: 500; margin-top: 6px; font-size: .98rem; }
.path-body p:last-child { color: var(--ink-2); margin-top: 10px; }

.why {
    margin-top: clamp(56px, 8vw, 96px);
    border-left: 2px solid var(--accent);
    padding: 6px 0 6px clamp(20px, 3vw, 36px);
    max-width: 760px;
}
.why p {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink);
}
.why em { color: var(--accent-2); font-style: italic; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
.faq-grid .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 40px); }

.faq-list { border-top: 1px solid var(--line-2); }
.q { border-bottom: 1px solid var(--line-2); }
.q summary {
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.02rem;
    transition: color .2s ease;
}
.q summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) {
    .q summary:hover { color: var(--accent-3); }
}
.q-ic { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.q-ic::before, .q-ic::after {
    content: "";
    position: absolute; background: var(--accent-2);
    transition: transform .28s var(--ease-out);
}
.q-ic::before { left: 0; right: 0; top: 6px; height: 2px; }
.q-ic::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.q[open] .q-ic::after { transform: scaleY(0); }
.q .a { overflow: hidden; }
.q .a p {
    color: var(--ink-2);
    padding-bottom: 24px;
    max-width: 60ch;
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact {
    position: relative;
    min-height: 88vh;
    display: flex; align-items: center;
    overflow: hidden;
    text-align: center;
}
.contact-glow {
    position: absolute; left: 50%; bottom: -40%;
    width: 90vw; height: 70vh;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(128,182,216,.13) 0%, transparent 60%);
    pointer-events: none;
}
.contact-inner {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    width: 100%;
}
.contact h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
.contact .lead { margin-inline: auto; margin-top: 22px; }
.contact-mail {
    display: inline-block;
    margin-top: clamp(36px, 5vw, 56px);
    font-size: clamp(1.5rem, 3.6vw, 3rem);
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink);
    position: relative;
    padding-bottom: 8px;
    transition: color .25s ease;
    will-change: transform;
}
.mail-line {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent-2);
    transform: scaleX(.25); transform-origin: left;
    opacity: .5;
    transition: transform .45s var(--ease-out), opacity .3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .contact-mail:hover { color: var(--accent-3); }
    .contact-mail:hover .mail-line { transform: scaleX(1); opacity: 1; }
}
.contact-li {
    margin-top: 26px;
    font-family: var(--mono);
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 4px;
    transition: color .2s ease, border-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .contact-li:hover { color: var(--accent-2); border-color: var(--accent-2); }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    padding-bottom: clamp(40px, 5vw, 64px);
}
.foot-logo { font-weight: 700; font-size: 1.25rem; }
.foot-brand p { color: var(--ink-2); font-size: .92rem; margin-top: 14px; max-width: 34ch; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 {
    font-family: var(--mono);
    font-size: .7rem; font-weight: 500;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 8px;
}
.foot-col a { color: var(--ink-2); font-size: .92rem; transition: color .2s ease; width: fit-content; }
@media (hover: hover) and (pointer: fine) {
    .foot-col a:hover { color: var(--accent-2); }
}
.footer-row {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: var(--ink-3);
    flex-wrap: wrap;
}
.foot-low { font-family: var(--mono); letter-spacing: .1em; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-legal a { color: var(--ink-2); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) {
    .foot-legal a:hover { color: var(--accent-2); }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
    .nav-inner { gap: 28px; }
    .nav-links { gap: 22px; }
}

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding-top: calc(var(--nav-h) + 40px); }
    .hero-visual { flex-direction: row; align-items: center; justify-content: center; gap: 24px; }
    .scene { width: min(58vw, 380px); }
    .legend { margin-top: 0; }
}

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: block; }

    .sol-grid { grid-template-columns: 1fr; gap: 0; }
    .sol-index {
        position: sticky;
        top: var(--nav-h);
        z-index: 40;
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
        border-left: 0;
        border-bottom: 1px solid var(--line);
        background: rgba(8,9,11,.85);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        padding-block: 10px;
        margin-bottom: 48px;
        scrollbar-width: none;
    }
    .sol-index::-webkit-scrollbar { display: none; }
    .sol-indicator { display: none; }
    .sol-index a {
        flex-shrink: 0;
        padding: 8px 16px;
        border: 1px solid var(--line);
        border-radius: var(--r-pill);
        min-height: 0;
        font-size: .85rem;
    }
    .sol-index a.is-active {
        border-color: var(--accent);
        color: var(--accent-2);
        background: rgba(128,182,216,.08);
    }
    .sol-index a i { display: none; }

    .faq-grid { grid-template-columns: 1fr; }
    .faq-grid .sec-head { position: static; margin-bottom: 40px; }
}

@media (max-width: 760px) {
    .kicker { letter-spacing: .15em; font-size: .68rem; }
    .enjeu { grid-template-columns: 48px 1fr; }
    .enjeu p { grid-column: 2; }
    .stats-row { grid-template-columns: 1fr; gap: 28px; }
    .sol-panel ul { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .expert-head { grid-template-columns: 1fr; gap: 24px; }
    .expert-photo { max-width: 140px; }
    .hero-visual { flex-direction: column; }
    .scene { width: min(78vw, 340px); }
    .legend { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
    .legend li { padding: 4px 8px; font-size: .66rem; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .nav-caret { animation: none; }
}

/* --- FAQ : ajouts (titres de question, sources, lien vers la page complète) --- */
.q summary h3 { font: inherit; margin: 0; }
.q .a .src { font-size: .82rem; color: var(--ink-3); padding-bottom: 24px; margin-top: -8px; }
.q .a .src a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.faq-more { margin-top: 32px; }
