/* ==========================================================================
   FORTRESS CMS — LANDING V2
   Monochrome, hi-tech, zéro dépendance, zéro requête externe.
   Le noir et blanc est la seule palette : la « polarité » s'inverse
   (data-pol="dark" / "light") sans jamais introduire de couleur.
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
    --bg: #000;
    --bg-2: #080808;
    --fg: #fff;
    --muted: #8b8b8b;
    --line: rgba(255, 255, 255, .14);
    --line-2: rgba(255, 255, 255, .38);
    --panel: rgba(255, 255, 255, .035);
    --panel-2: rgba(255, 255, 255, .075);
    --grid: rgba(255, 255, 255, .05);
    --inv-bg: #fff;
    --inv-fg: #000;
    --hdr-bg: rgba(0, 0, 0, .8);
    --scroll-thumb: rgba(255, 255, 255, .24);
    --scroll-thumb-hover: rgba(255, 255, 255, .46);
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --wrap: 1440px;
    --gutter: clamp(20px, 4.2vw, 64px);
    --header-h: 64px;
    --ease: cubic-bezier(.16, .84, .24, 1);
    color-scheme: dark;
}

html[data-pol="light"] {
    --bg: #fff;
    --bg-2: #f3f3f3;
    --fg: #000;
    --muted: #5f5f5f;
    --line: rgba(0, 0, 0, .15);
    --line-2: rgba(0, 0, 0, .42);
    --panel: rgba(0, 0, 0, .03);
    --panel-2: rgba(0, 0, 0, .065);
    --grid: rgba(0, 0, 0, .055);
    --inv-bg: #000;
    --inv-fg: #fff;
    --hdr-bg: rgba(255, 255, 255, .82);
    --scroll-thumb: rgba(0, 0, 0, .26);
    --scroll-thumb-hover: rgba(0, 0, 0, .48);
    color-scheme: light;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    transition: background-color .35s var(--ease), color .35s var(--ease);
}

body.nav-open { overflow: hidden; }

::selection { background: var(--fg); color: var(--bg); }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 3px;
}

.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;
}

.skip {
    position: fixed;
    top: 8px; left: 8px;
    z-index: 300;
    padding: .7em 1em;
    background: var(--fg);
    color: var(--bg);
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- Fonds techniques : grille + grain ---------------------------- */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 250;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}
html[data-pol="light"] body::after { opacity: .022; }

/* ---------- Barre de progression ---------------------------------------- */

.progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 210;
    height: 2px;
    background: transparent;
    pointer-events: none;
}
.progress i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* ---------- En-tête ------------------------------------------------------ */

.hdr {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: background-color .25s, border-color .25s, backdrop-filter .25s;
}
.hdr.is-stuck {
    background: var(--hdr-bg);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.hdr-in {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.4vw, 36px);
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    text-decoration: none;
    white-space: nowrap;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border: 1px solid var(--line-2);
    transition: background-color .2s, color .2s;
}
.brand:hover .brand-mark { background: var(--fg); color: var(--bg); }
.brand-mark svg { width: 18px; height: 18px; }
.brand-txt {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.brand-txt b { font-weight: 600; }
.brand-txt span { color: var(--muted); }

.nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
    margin-left: auto;
}
.nav a {
    position: relative;
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    padding: .4em 0;
    transition: color .2s;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); }

.hdr-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.nav + .hdr-tools { margin-left: 0; }

.pol {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    height: 34px;
    padding: 0 .8em;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s;
}
.pol svg { width: 13px; height: 13px; }
.pol:hover { border-color: var(--line-2); background: var(--panel); }

.burger {
    display: none;
    width: 38px; height: 34px;
    border: 1px solid var(--line);
    cursor: pointer;
    place-items: center;
}
.burger i {
    display: block;
    width: 16px; height: 1px;
    background: currentColor;
    position: relative;
    transition: transform .25s, opacity .2s;
}
.burger i::before,
.burger i::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px; height: 1px;
    background: currentColor;
    transition: transform .25s;
}
.burger i::before { top: -5px; }
.burger i::after { top: 5px; }
body.nav-open .burger i { background: transparent; }
body.nav-open .burger i::before { transform: translateY(5px) rotate(45deg); }
body.nav-open .burger i::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Boutons ------------------------------------------------------ */

.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .9em;
    padding: 1.05em 1.5em;
    border: 1px solid var(--line-2);
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--fg);
    cursor: pointer;
    transition: color .22s, border-color .22s, transform .22s var(--ease);
}
.btn .ico { transition: transform .22s var(--ease); font-size: 1em; }
.btn:hover .ico { transform: translate(2px, -2px); }

.btn-solid {
    color: var(--inv-fg);
    border-color: transparent;
}
.btn-solid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--inv-bg);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    transition: opacity .22s;
}
.btn-solid:hover { color: var(--fg); border-color: var(--line-2); }
.btn-solid:hover::before { opacity: 0; }

.btn-line:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-sm { padding: .82em 1.05em; font-size: .6rem; }
.btn-lg { padding: 1.15em 1.8em; font-size: .72rem; }

.linklike {
    padding: 0;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.linklike:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- Structure ---------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
    position: relative;
    z-index: 1;
}

.sec {
    position: relative;
    z-index: 1;
    padding-block: clamp(58px, 8vw, 118px);
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.sec-head {
    display: grid;
    grid-template-columns: minmax(120px, 210px) minmax(0, 1fr);
    gap: 0 clamp(20px, 4vw, 64px);
    margin-bottom: clamp(30px, 4.6vw, 62px);
}
.sec-head .idx {
    font-family: var(--mono);
    font-size: .64rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: .55em;
}
.sec-head .idx b { color: var(--fg); font-weight: 600; }
.sec-head h2 {
    font-family: var(--display);
    font-size: clamp(1.85rem, 3.9vw, 3.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.045em;
    max-width: 20ch;
    text-wrap: balance;
}
.sec-head .lead {
    grid-column: 2;
    margin-top: 1.1rem;
    max-width: 62ch;
    color: var(--muted);
    font-size: clamp(.94rem, 1.05vw, 1.02rem);
}

.note {
    margin-top: clamp(18px, 2.4vw, 28px);
    font-family: var(--mono);
    font-size: .64rem;
    line-height: 1.7;
    letter-spacing: .04em;
    color: var(--muted);
}
.note a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.note a:hover { border-color: var(--fg); }

/* Apparition au scroll */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Héro --------------------------------------------------------- */

.hero {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--header-h) + clamp(34px, 6vw, 86px));
    padding-bottom: clamp(22px, 3.4vw, 44px);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -20%; left: 50%;
    width: min(1100px, 120vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--panel-2), transparent 62%);
    pointer-events: none;
    opacity: .8;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, .72fr);
    align-items: center;
    gap: clamp(28px, 5vw, 76px);
    min-height: min(76svh, 740px);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .8em;
    font-family: var(--mono);
    font-size: .63rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: clamp(18px, 2.4vw, 30px);
}
.hero-tag .dot {
    width: 7px; height: 7px;
    background: var(--fg);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--panel-2);
    animation: pulse 2.6s ease-in-out infinite;
}
.hero-tag .sep { opacity: .4; }

.hero h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.6rem, 7.6vw, 7.4rem);
    line-height: .86;
    letter-spacing: -.055em;
    text-transform: uppercase;
    text-wrap: balance;
}
.hero h1 span { display: block; }

/* Le titre fait trois mots de plus qu'un simple acronyme : il prend sa propre
   échelle pour rester sur deux lignes sans écraser le reste du héros. */
.hero h1 .h1-main {
    font-size: clamp(2.15rem, 5.05vw, 5.15rem);
    line-height: .94;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.hero h1 .outline { color: var(--fg); }
@supports ((-webkit-text-stroke: 1px #000)) {
    .hero h1 .outline {
        color: transparent;
        -webkit-text-stroke: clamp(1px, .16vw, 2px) var(--fg);
    }
}

/* Seconde partie du titre : même niveau sémantique, échelle de lecture. */
.hero h1 .h1-sub {
    margin-top: clamp(14px, 1.8vw, 24px);
    max-width: 30ch;
    font-family: var(--display);
    font-size: clamp(1.02rem, 2.05vw, 1.85rem);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.025em;
    text-transform: none;
    color: var(--fg);
    opacity: .78;
    -webkit-text-stroke: 0;
}

.hero-rot {
    display: flex;
    align-items: baseline;
    gap: .75em;
    margin-top: clamp(20px, 2.6vw, 34px);
    font-family: var(--mono);
    font-size: clamp(.7rem, 1.15vw, .84rem);
    letter-spacing: .12em;
    text-transform: uppercase;
    min-height: 1.4em;
}
.hero-rot .marker { color: var(--muted); }
.hero-rot .caret {
    display: inline-block;
    width: .55em; height: 1.05em;
    background: var(--fg);
    transform: translateY(.16em);
    animation: blink 1.05s steps(1) infinite;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(24px, 3vw, 38px);
}

.hero-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(30px, 4vw, 52px);
    border-top: 1px solid var(--line);
}
.hero-specs div {
    padding-top: 14px;
    padding-right: 10px;
}
.hero-specs b {
    display: block;
    font-family: var(--mono);
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 400;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.hero-specs span {
    display: block;
    margin-top: 4px;
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* HUD visuel — polarité propre, toujours l'inverse de la page.
   Page sombre : panneau clair, trait noir. Page claire : panneau noir, trait blanc. */
.hero-visual { position: relative; }
.hud {
    --hud-bg: #fff;
    --hud-ink: 0, 0, 0;
    --hud-line-strong: rgba(0, 0, 0, .42);
    --hud-panel: rgba(0, 0, 0, .06);
    --hud-muted: #5c5c5c;

    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 620px;
    margin-inline: auto;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 44%, var(--hud-panel), transparent 66%),
        var(--hud-bg);
    color: #000;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color .35s var(--ease), color .35s var(--ease);
}

html[data-pol="light"] .hud {
    --hud-bg: #000;
    --hud-ink: 255, 255, 255;
    --hud-line-strong: rgba(255, 255, 255, .48);
    --hud-panel: rgba(255, 255, 255, .08);
    --hud-muted: #9a9a9a;
    color: #fff;
}

.hud.is-dragging { cursor: grabbing; }

.hud-hint {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: .5em .8em;
    border: 1px solid var(--hud-line-strong);
    background: var(--hud-bg);
    font-family: var(--mono);
    font-size: .54rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--hud-muted);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity .45s var(--ease), transform .45s var(--ease), background-color .35s, color .35s;
}
.hud-hint.is-off {
    opacity: 0;
    transform: translate(-50%, 8px);
}
.hud canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud-scan {
    position: absolute;
    left: 0; right: 0;
    height: 90px;
    background: linear-gradient(to bottom, transparent, var(--hud-panel), transparent);
    animation: scan 6.5s linear infinite;
    pointer-events: none;
}

.hero-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    margin-top: clamp(26px, 4vw, 54px);
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-foot .scroll { display: inline-flex; align-items: center; gap: .7em; color: var(--fg); }
.hero-foot .scroll i {
    display: inline-block;
    width: 1px; height: 16px;
    background: var(--fg);
    animation: drop 2s ease-in-out infinite;
}

/* ---------- Bandeau défilant -------------------------------------------- */

.ticker {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: marquee 42s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-seq {
    display: flex;
    align-items: center;
    flex: none;
}
.ticker-seq span {
    display: inline-flex;
    align-items: center;
    gap: 1.4em;
    padding: .95em 1.4em;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
}
.ticker-seq span::after {
    content: "";
    width: 5px; height: 5px;
    background: var(--fg);
    transform: rotate(45deg);
    opacity: .6;
}
.ticker-seq span:nth-child(3n+1) { color: var(--fg); }

/* ---------- Chiffres ----------------------------------------------------- */

.stats { border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.stats-in {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats-in > div {
    padding: clamp(22px, 3vw, 38px) clamp(14px, 2vw, 28px);
    border-left: 1px solid var(--line);
}
.stats-in > div:first-child { border-left: 0; padding-left: 0; }
.stats-in b {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.8rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
}
.stats-in span {
    display: block;
    margin-top: .6em;
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Démo live ---------------------------------------------------- */

.demo {
    border: 1px solid var(--line);
    background: var(--bg-2);
}
.demo-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}
.demo-dots { display: inline-flex; gap: 5px; flex: none; }
.demo-dots i {
    width: 7px; height: 7px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    display: block;
}
.demo-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
    flex: none;
    padding: .55em .85em;
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid transparent;
    cursor: pointer;
    transition: color .18s, border-color .18s, background-color .18s;
}
.demo-tab:hover { color: var(--fg); border-color: var(--line); }
.demo-tab.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.demo-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tool {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    transition: color .18s, border-color .18s, background-color .18s;
}
.tool:hover { color: var(--fg); border-color: var(--line-2); }
.tool.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tool svg { width: 14px; height: 14px; }
.demo-open {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    margin-left: 6px;
    padding: .5em .7em;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    white-space: nowrap;
    transition: color .18s, border-color .18s;
}
.demo-open:hover { color: var(--fg); border-color: var(--line-2); }

.demo-stage {
    padding: clamp(8px, 1.6vw, 20px);
    background:
        repeating-linear-gradient(45deg, transparent 0 9px, var(--panel) 9px 10px);
}
.demo-canvas {
    width: 100%;
    max-width: 100%;
    height: min(70svh, 660px);
    margin-inline: auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    transition: max-width .45s var(--ease);
}
.demo-canvas[data-device="tablet"] { max-width: 834px; }
.demo-canvas[data-device="mobile"] { max-width: 390px; }
.demo-canvas iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

.demo-caption {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.demo-caption b { color: var(--fg); font-weight: 400; }

/* ---------- Comparatif --------------------------------------------------- */

.cmp-scroll { overflow-x: auto; }
.cmp { min-width: 840px; border-bottom: 1px solid var(--line); }
.cmp-row {
    display: grid;
    grid-template-columns: 1.45fr 1.15fr 1.15fr .85fr .85fr;
    border-top: 1px solid var(--line);
    transition: background-color .18s;
}
.cmp-row:hover { background: var(--panel); }
.cmp-row > div {
    padding: 14px 16px;
    font-size: .82rem;
    line-height: 1.4;
    border-left: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: .6em;
}
.cmp-row > div:first-child { border-left: 0; padding-left: 0; }
.cmp-row.head > div {
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 11px 16px;
    border-left: 0;
    align-items: center;
    min-height: 38px;
}
.cmp-row.head:hover { background: none; }
.cmp-row.head .col-f { color: var(--fg); }
.cmp .col-f {
    background: var(--panel-2);
    border-left: 1px solid var(--line-2) !important;
    border-right: 1px solid var(--line-2);
    font-weight: 600;
}
.cmp-row.head .col-f { border-top: 1px solid var(--line-2); }
.cmp-row > div:first-child { font-weight: 600; }
.mark {
    font-family: var(--mono);
    font-size: .82rem;
    line-height: 1;
    flex: none;
}
.mark.yes { color: var(--fg); }
.mark.part { color: var(--muted); }
.mark.no { color: var(--muted); opacity: .55; }

/* ---------- Génération --------------------------------------------------- */

.gen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.gen article {
    position: relative;
    background: var(--bg);
    padding: clamp(22px, 2.8vw, 40px);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background-color .25s, color .25s;
}
.gen article:hover { background: var(--fg); color: var(--bg); }
.gen .num {
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .2em;
    color: var(--muted);
}
.gen article:hover .num { color: var(--bg); opacity: .6; }
.gen h3 {
    font-family: var(--display);
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.12;
    margin-top: auto;
}
.gen p { font-size: .88rem; line-height: 1.6; opacity: .75; }

/* ---------- Sécurité ----------------------------------------------------- */

.secure {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.secure article {
    position: relative;
    background: var(--bg);
    padding: clamp(20px, 2.4vw, 34px);
    min-height: 230px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background-color .25s, color .25s;
}
.secure article::before,
.secure article::after {
    content: "";
    position: absolute;
    width: 8px; height: 8px;
    border: 1px solid var(--line-2);
    pointer-events: none;
    transition: border-color .25s;
}
.secure article::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.secure article::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.secure article:hover { background: var(--fg); color: var(--bg); }
.secure article:hover::before,
.secure article:hover::after { border-color: var(--bg); }
.secure .num {
    font-family: var(--mono);
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    line-height: 1;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-2);
}
@supports not ((-webkit-text-stroke: 1px #000)) {
    .secure .num { color: var(--muted); }
}
.secure article:hover .num { -webkit-text-stroke-color: var(--bg); opacity: .55; }
.secure h3 {
    font-family: var(--display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-top: auto;
}
.secure p { font-size: .82rem; opacity: .68; line-height: 1.55; }

/* ---------- Modules natifs (bento) -------------------------------------- */

.bento {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    grid-auto-rows: minmax(210px, auto);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.bcard {
    background: var(--bg);
    padding: clamp(20px, 2.4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}
.bcard.wide { grid-row: span 2; }
.bcard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.bcard-tag {
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}
.pill {
    font-family: var(--mono);
    font-size: .52rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .35em .6em;
    border: 1px solid var(--line-2);
}
.pill.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bcard h3 {
    font-family: var(--display);
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -.03em;
}
.bcard p { font-size: .84rem; color: var(--muted); line-height: 1.55; }
.b-visual {
    flex: 1;
    min-height: 118px;
    border: 1px solid var(--line);
    padding: 12px;
    background: var(--bg-2);
    font-family: var(--mono);
    font-size: .62rem;
    line-height: 1.85;
    color: var(--muted);
    overflow: hidden;
    position: relative;
}
.b-visual .ln { display: flex; align-items: center; gap: .5em; white-space: nowrap; }
.b-visual .ln b { color: var(--fg); font-weight: 400; }
.b-visual .cur {
    display: inline-block;
    width: .5em; height: .95em;
    background: var(--fg);
    transform: translateY(.14em);
    animation: blink 1.05s steps(1) infinite;
}
.sk {
    display: block;
    height: 5px;
    background: var(--fg);
    opacity: .16;
}
.sk.dim { opacity: .09; }
.w30 { width: 30%; } .w40 { width: 40%; } .w55 { width: 55%; }
.w65 { width: 65%; } .w75 { width: 75%; } .w90 { width: 90%; }

.wave { display: flex; align-items: flex-end; gap: 3px; height: 46px; margin-top: 8px; }
.wave i {
    display: block;
    flex: 1;
    background: var(--fg);
    opacity: .55;
    animation: wave 1.5s ease-in-out infinite alternate;
}
.wave i:nth-child(3n) { animation-duration: 1.1s; opacity: .85; }
.wave i:nth-child(3n+1) { animation-duration: 1.8s; opacity: .35; }

/* ---------- Thèmes ------------------------------------------------------- */

.themes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.tcard {
    background: var(--bg);
    padding: clamp(14px, 1.6vw, 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background-color .22s;
}
.tcard:hover { background: var(--bg-2); }
.tprev {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    overflow: hidden;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tprev.light { background: #fff; color: #111; }
.tprev.dark { background: #0a0a0a; color: #f2f2f2; border-color: #2a2a2a; }
.tprev .tbar {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--mono);
    font-size: .48rem;
    letter-spacing: .12em;
    opacity: .5;
    margin-bottom: 2px;
}
.tprev .tbar i {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
}
.tprev .tbar b { margin-left: auto; font-weight: 400; text-transform: uppercase; }
.tnav { display: flex; align-items: center; gap: 6px; opacity: .75; }
.tnav .tmark { width: 12px; height: 12px; border: 1px solid currentColor; }
.tnav .tlinks { display: flex; gap: 6px; margin-left: auto; }
.tnav .tlinks i { display: block; width: 14px; height: 1px; background: currentColor; opacity: .5; }
.tline { height: 1px; background: currentColor; opacity: .14; }
.ttext { height: 4px; background: currentColor; opacity: .22; border-radius: 0; }
.ttext.strong { height: 9px; opacity: .8; }
.ttext.thin { opacity: .14; }
.tnum {
    font-family: var(--mono);
    font-size: .52rem;
    letter-spacing: .1em;
    opacity: .5;
}
.trow { display: flex; align-items: center; gap: 8px; }
.trow .grow { flex: 1; }
.tbento { flex: 1; display: grid; grid-template-columns: 1.2fr .8fr; grid-auto-rows: 1fr; gap: 5px; }
.tbento span { border: 1px solid currentColor; opacity: .3; }
.tbento span.fill { background: currentColor; opacity: .75; }
.tbento span.wide { grid-column: span 2; }
.tphoto { flex: 1; display: grid; grid-template-rows: 1.4fr 1fr; gap: 5px; }
.tphoto span { background: currentColor; opacity: .16; }
.tbig {
    font-family: var(--display);
    font-weight: 700;
    line-height: .92;
    letter-spacing: -.05em;
    font-size: 1.35rem;
    margin-top: auto;
}
.tcap { font-family: var(--mono); font-size: .48rem; letter-spacing: .14em; text-transform: uppercase; opacity: .5; }
.tinfo { display: flex; flex-direction: column; gap: 10px; padding-bottom: 4px; }
.tinfo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tinfo h3 {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
}
.tchip {
    font-family: var(--mono);
    font-size: .5rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: .3em .55em;
    white-space: nowrap;
}
.tinfo p { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.tinfo-actions { display: flex; gap: 8px; margin-top: auto; }
.try {
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    padding: .65em .8em;
    cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s;
}
.try:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.try.ghost { color: var(--muted); }

/* ---------- Souveraineté + langues -------------------------------------- */

.sov {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.sov article {
    position: relative;
    background: var(--bg);
    padding: clamp(24px, 3vw, 42px);
    min-height: 230px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    transition: background-color .25s, color .25s;
}
.sov article:hover { background: var(--fg); color: var(--bg); }
.sov .stamp {
    font-family: var(--display);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.06em;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-2);
}
.sov article:hover .stamp { -webkit-text-stroke-color: var(--bg); opacity: .5; }
.sov h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; margin-top: auto; }
.sov p { font-size: .82rem; opacity: .7; line-height: 1.55; }

.langs { border-top: 1px solid var(--line); }
.lang {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: clamp(16px, 2.2vw, 26px) 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: background-color .2s, color .2s, padding .25s var(--ease);
}
.lang:hover { background: var(--fg); color: var(--bg); padding-left: 18px; padding-right: 18px; }
.lang .code {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .2em;
    color: var(--muted);
}
.lang:hover .code { color: var(--bg); opacity: .6; }
.lang strong {
    font-family: var(--display);
    font-size: clamp(1.2rem, 2.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -.03em;
}
.lang .arrow { font-family: var(--mono); font-size: 1rem; }

/* ---------- Installation -------------------------------------------------- */

.install {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr);
    gap: clamp(26px, 4vw, 58px);
    align-items: start;
}
.steps { border-top: 1px solid var(--line); }
.steps li {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.steps .n {
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .16em;
    color: var(--muted);
    padding-top: .3em;
}
.steps h3 { font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: .3em; }
.steps p { font-size: .82rem; color: var(--muted); line-height: 1.55; }

.install-side { position: sticky; top: calc(var(--header-h) + 22px); display: flex; flex-direction: column; gap: 14px; }
.term {
    background: #0a0a0a;
    color: #ededed;
    border: 1px solid #2a2a2a;
    font-family: var(--mono);
    font-size: .72rem;
    line-height: 1.9;
    overflow: hidden;
}
.term-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 12px;
    border-bottom: 1px solid #242424;
}
.term-bar i { width: 6px; height: 6px; border: 1px solid #5a5a5a; border-radius: 50%; }
.term-bar b {
    margin-left: auto;
    font-size: .52rem;
    font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7d7d7d;
}
.term-body { padding: 16px 16px 18px; }
.term-line {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(4px);
}
.term.in .term-line {
    animation: lineIn .32s var(--ease) forwards;
    animation-delay: calc(var(--i) * 140ms + 160ms);
}
.term-line .p { color: #7a7a7a; }
.term-line .ok { color: #fff; font-weight: 600; }
.term-line .dim { color: #8a8a8a; }
.term-line .cur {
    display: inline-block;
    width: .55em; height: .95em;
    background: #fff;
    transform: translateY(.14em);
    animation: blink 1.05s steps(1) infinite;
}
.term.in .term-line .cur { animation-delay: 1.6s; }

.reqs { border: 1px solid var(--line); padding: 16px; }
.reqs p {
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .8em;
}
.reqs li {
    display: flex;
    gap: .7em;
    font-size: .78rem;
    line-height: 1.7;
    color: var(--muted);
}
.reqs li::before { content: "—"; color: var(--fg); flex: none; }
.install-side .btn { width: 100%; }

/* ---------- Bande CTA ----------------------------------------------------- */

.cta {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-block: clamp(70px, 11vw, 150px);
    border-bottom: 1px solid var(--line);
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 25%);
    opacity: .35;
    pointer-events: none;
}
.cta-in { position: relative; z-index: 1; }
.cta .idx {
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: clamp(18px, 2.4vw, 28px);
}
.cta h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3.1rem, 13vw, 12rem);
    line-height: .82;
    letter-spacing: -.06em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: clamp(1px, .18vw, 2px) var(--fg);
}
.cta h2 span { color: var(--fg); }
@supports not ((-webkit-text-stroke: 1px #000)) {
    .cta h2 { color: var(--fg); }
}
.cta-sub {
    max-width: 52ch;
    margin-top: clamp(18px, 2.6vw, 28px);
    color: var(--muted);
    font-size: clamp(.94rem, 1.2vw, 1.04rem);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 40px); }
.cta-meta {
    margin-top: 18px;
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.cta-meta b { color: var(--fg); font-weight: 400; }

/* ---------- Pied de page -------------------------------------------------- */

.ftr { position: relative; z-index: 1; padding-top: clamp(44px, 6vw, 76px); }
.ftr-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .8fr));
    gap: clamp(24px, 4vw, 56px);
    padding-bottom: clamp(32px, 5vw, 60px);
}
.ftr-brand { display: flex; align-items: center; gap: .7em; margin-bottom: 16px; }
.ftr-brand .brand-mark { width: 30px; height: 30px; }
.ftr-grid p { color: var(--muted); font-size: .82rem; max-width: 34ch; line-height: 1.6; }
.ftr-title {
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.ftr-links li { margin-bottom: .55em; }
.ftr-links a {
    font-size: .84rem;
    text-decoration: none;
    color: var(--fg);
    opacity: .78;
    transition: opacity .18s, padding-left .2s var(--ease);
}
.ftr-links a:hover { opacity: 1; padding-left: 5px; }
.ftr-word {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3.4rem, 16.5vw, 15.5rem);
    line-height: .76;
    letter-spacing: -.065em;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-2);
    padding-bottom: .08em;
    overflow: hidden;
    user-select: none;
}
@supports not ((-webkit-text-stroke: 1px #000)) {
    .ftr-word { color: var(--line); }
}
.ftr-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding: 18px 0 24px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.ftr-bottom a { text-decoration: none; border-bottom: 1px solid var(--line); }
.ftr-bottom a:hover { color: var(--fg); border-color: var(--fg); }
.ftr-bottom .sep { opacity: .4; }

/* ---------- HUD fixe ------------------------------------------------------ */

.hud-fixed {
    position: fixed;
    left: 18px;
    bottom: 16px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: .8em;
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    pointer-events: none;
    mix-blend-mode: difference;
}
.hud-fixed b { color: var(--fg); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------- Barre de défilement -------------------------------------------- */

/* Fine, arrondie, sans boutons ni flèches. Le pouce suit la polarité via
   --scroll-thumb, donc il reste lisible en clair comme en sombre.
   WebKit/Blink : pseudo-éléments dédiés. Firefox : propriétés standard. */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
::-webkit-scrollbar-thumb:active { background-color: var(--fg); }
/* Les deux flèches des extrémités : supprimées. */
::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
::-webkit-scrollbar-corner { background: transparent; }

/* Firefox n'expose pas les pseudo-éléments WebKit : on passe par les
   propriétés standard, qui ne dessinent déjà aucune flèche. */
@supports not selector(::-webkit-scrollbar) {
    html,
    .cmp-scroll {
        scrollbar-width: thin;
        scrollbar-color: var(--scroll-thumb) transparent;
    }
}

/* ---------- Animations ---------------------------------------------------- */

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--panel-2); }
    50% { box-shadow: 0 0 0 6px transparent; }
}
@keyframes scan {
    0% { top: -15%; }
    100% { top: 110%; }
}
@keyframes drop {
    0%, 100% { transform: scaleY(.35); opacity: .5; }
    50% { transform: scaleY(1); opacity: 1; }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes wave {
    from { height: 18%; }
    to { height: 100%; }
}
@keyframes lineIn {
    to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 1180px) {
    .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); }
    .cmp { min-width: 780px; }
    .cmp-row { grid-template-columns: 1.3fr 1.1fr 1.1fr .85fr .85fr; }
}

@media (max-width: 980px) {
    :root { --header-h: 58px; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px var(--gutter) 22px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, transform .25s var(--ease), visibility .2s;
        max-height: calc(100svh - var(--header-h));
        overflow-y: auto;
    }
    body.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
    .nav a {
        font-size: .8rem;
        padding: 1em 0;
        border-bottom: 1px solid var(--line);
        color: var(--fg);
    }
    .nav a::after { display: none; }
    .burger { display: grid; margin-left: auto; }
    .hdr-tools { margin-left: auto; }
    .pol span.pol-txt { display: none; }
    .pol { padding: 0 .7em; }

    .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: clamp(28px, 6vw, 48px); }
    .hero-visual { order: 2; max-width: 440px; width: 100%; margin-inline: auto; }
    .hero h1 { font-size: clamp(3rem, 13vw, 6.4rem); }

    .sec-head { grid-template-columns: 1fr; gap: 14px; }
    .sec-head .lead { grid-column: 1; }
    .sec-head .idx { padding-top: 0; }

    .gen { grid-template-columns: 1fr; }
    .gen article { min-height: 0; }
    .secure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .themes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento { grid-template-columns: 1fr; }
    .bcard.wide { grid-row: auto; }
    .install { grid-template-columns: 1fr; }
    .install-side { position: static; }
    .sov { grid-template-columns: 1fr; }
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .hud-fixed { display: none; }
}

@media (max-width: 720px) {
    .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    .hero-specs div { border-top: 1px solid var(--line); padding-block: 12px; }
    .hero-specs div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 14px; }
    .hero-specs div:nth-child(even) { padding-left: 14px; }
    .hero-specs div:nth-child(-n+2) { border-top: 0; }
    .hero h1 { font-size: clamp(2.7rem, 14vw, 5rem); }
    .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-in > div { border-top: 1px solid var(--line); }
    .stats-in > div:nth-child(-n+2) { border-top: 0; }
    .stats-in > div:nth-child(odd) { border-left: 0; padding-left: 0; }
    .stats-in > div:nth-child(even) { padding-left: 18px; }

    .demo-tools { width: 100%; margin-left: 0; flex-wrap: wrap; }
    .demo-open { margin-left: auto; }
    .demo-canvas { height: 62svh; }

    .secure { grid-template-columns: 1fr; }
    .secure article { min-height: 0; }
    .themes-grid { grid-template-columns: 1fr; }
    .ftr-grid { grid-template-columns: 1fr; }
    .lang { grid-template-columns: 52px minmax(0, 1fr) auto; }
    .term { font-size: .66rem; }
}

@media (max-width: 480px) {
    .brand-txt span { display: none; }
    .hdr-tools .btn { display: none; }
    .hero-tag { font-size: .56rem; letter-spacing: .12em; flex-wrap: wrap; }
    .hero-actions .btn { flex: 1 1 100%; }
    .cta h2 { font-size: clamp(2.8rem, 19vw, 5rem); }
    .ftr-word { font-size: clamp(2.6rem, 17vw, 5rem); }
}

/* ---------- Mouvement réduit --------------------------------------------- */

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