/* Accueil Synkrone — composition autonome (pas un reskin du design system) */
/* Polices : lien async dans le HTML, pas d'@import (bloque le premier rendu). */

:root {
    --pierre: #eef0ea;
    --pierre-2: #e3e6dd;
    --basalte: #1b211e;
    --blanc: #ffffff;
    --mousse: #3f6b52;
    --mousse-fonce: #2e5039;
    --mousse-clair: #e4ece4;
    --ambre: #b8823d;
    --ambre-clair: #f3e7d3;
    --brique: #a8462f;
    --brique-clair: #f5e2dc;
    --ardoise: #5c6a66;
    --ardoise-30: #5c6a6640;
    --ardoise-15: #5c6a661f;
    --hall-bg: var(--pierre);
    --hall-elev: var(--blanc);
    --hall-ink: var(--basalte);
    --hall-mute: var(--ardoise);
    --hall-faint: #7a8884;
    --hall-line: var(--ardoise-15);
    --hall-line-strong: var(--ardoise-30);
    --hall-red: var(--mousse);
    --hall-red-soft: var(--mousse-clair);
    --hall-gold: var(--ambre);
    --hall-elev-2: var(--pierre-2);
    --serif: "Zilla Slab", Georgia, serif;
    --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --pad: clamp(24px, 4vw, 56px);
    --max: 1720px;
    --sk-bg: var(--hall-bg);
    --sk-surface: var(--hall-elev);
    --sk-surface-2: var(--hall-elev-2);
    --sk-text: var(--hall-ink);
    --sk-text-muted: var(--hall-mute);
    --sk-text-faint: var(--hall-faint);
    --sk-border: var(--hall-line);
    --sk-border-strong: var(--hall-line-strong);
    --sk-accent: var(--mousse);
}

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

html {
    color-scheme: light;
    background: var(--hall-bg);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --hall-bg: #1b211e;
    --hall-elev: #232b27;
    --hall-elev-2: #2a332e;
    --hall-ink: #eef0ea;
    --hall-mute: #8fa096;
    --hall-faint: #6d7c76;
    --hall-line: #333e38;
    --hall-line-strong: #3d4a44;
    --hall-red-soft: rgba(107, 157, 126, 0.32);
    --pierre-2: #2a332e;
    --ardoise: #8fa096;
    --ardoise-30: #8fa09666;
    --ardoise-15: #8fa09633;
    --mousse: #6b9d7e;
    --mousse-fonce: #9ecfb0;
    --mousse-clair: rgba(107, 157, 126, 0.28);
    --ambre-clair: rgba(184, 130, 61, 0.22);
    --brique-clair: rgba(168, 70, 47, 0.22);
    --hall-red: #6b9d7e;
}

html[data-theme="dark"] .hero-mosaic,
html[data-theme="dark"] .hero-logo {
    mix-blend-mode: normal;
}

html[data-theme="dark"] .hero-mosaic {
    opacity: 0.18;
}

html[data-theme="dark"] .scene-fade {
    display: none;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--hall-ink);
    background: var(--hall-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select {
    font-family: inherit;
}

a {
    color: inherit;
}

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

::selection {
    background: var(--hall-red);
    color: #fff;
}

.skip {
    position: absolute;
    left: 16px;
    top: 12px;
    z-index: 40;
    padding: 8px 12px;
    background: var(--hall-ink);
    color: var(--hall-bg);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-120%);
}
.skip:focus {
    transform: none;
}

/* ——— Hero ——— */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 72vh;
    min-height: 72dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: end;
    padding: clamp(28px, 6vh, 64px) var(--pad) clamp(36px, 7vh, 72px);
    overflow: hidden;
    --mx: 0.62;
    --my: 0.4;
}

.hero-mosaic {
    position: absolute;
    inset: -60%;
    z-index: 0;
    pointer-events: none;
    background-image: url("/logo/Synk_2B9348.png");
    background-size: 92px 92px;
    background-repeat: repeat;
    transform: rotate(45deg);
    opacity: 0.13;
    mix-blend-mode: multiply;
}

.hero-logo {
    position: absolute;
    right: 7%;
    top: 18%;
    width: min(240px, 28vw);
    height: auto;
    z-index: 4;
    pointer-events: none;
    mix-blend-mode: multiply;
    filter: contrast(1.05);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 12px;
    padding-bottom: 8px;
}

.kicker {
    margin: 0 0 18px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--hall-faint);
}

.kicker .live {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--mousse);
    animation: pulse 2.8s ease-out infinite;
    vertical-align: 1px;
}

.hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3.05rem, 8.6vw, 7.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: var(--hall-ink);
}

.hero h1 .line {
    display: block;
}

.hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--mousse-fonce);
}

.hero h1 .dot {
    display: inline-block;
    width: 0.16em;
    height: 0.16em;
    margin-left: 0.06em;
    margin-bottom: 0.08em;
    background: var(--mousse);
    box-shadow: none;
    vertical-align: 0.12em;
}

.lede {
    margin: 22px 0 0;
    max-width: 54ch;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.5;
    color: var(--hall-mute);
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 4px;
    border: 1px solid var(--hall-line-strong);
    background: transparent;
    color: var(--hall-ink);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
    border-color: var(--hall-ink);
    color: var(--hall-ink);
    background: transparent;
}

.btn-red {
    background: var(--mousse);
    border-color: var(--mousse);
    color: var(--blanc);
}

.btn-red:hover {
    background: var(--mousse-fonce);
    border-color: var(--mousse-fonce);
    color: var(--blanc);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.coords {
    margin: 28px 0 0;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--hall-faint);
}

.coords span + span::before {
    content: " — ";
    margin: 0 8px;
    opacity: 0.55;
}

/* Scene — un seul geste : allée, grille, baies */

.scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.scene-fade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 18% 70%, rgba(27, 33, 30, 0.06), transparent 55%),
        linear-gradient(90deg, var(--hall-bg) 0%, rgba(238, 240, 234, 0.7) 36%, transparent 62%),
        linear-gradient(180deg, rgba(238, 240, 234, 0.4) 0%, transparent 28%, transparent 70%, var(--hall-bg) 100%);
    z-index: 3;
}

.grid-plane {
    position: absolute;
    left: -15%;
    right: -20%;
    bottom: -18%;
    height: 78%;
    background-image:
        linear-gradient(to right, rgba(92, 106, 102, 0.16) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(92, 106, 102, 0.14) 1px, transparent 1px);
    background-size: 52px 52px;
    transform: perspective(820px) rotateX(66deg) translate3d(calc((var(--mx) - 0.5) * -24px), calc((var(--my) - 0.5) * 10px), 0);
    transform-origin: 62% 0%;
    mask-image: radial-gradient(ellipse at 58% 0%, #000 12%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 58% 0%, #000 12%, transparent 72%);
    will-change: transform;
}

.grid-glow {
    position: absolute;
    left: 30%;
    right: -10%;
    bottom: 12%;
    height: 42%;
    background: radial-gradient(ellipse at 70% 0%, rgba(63, 107, 82, 0.18), transparent 62%);
    z-index: 1;
    pointer-events: none;
}

.fiber {
    position: absolute;
    left: 22%;
    right: 8%;
    bottom: 27%;
    height: 2px;
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(63, 107, 82, 0.2) 12%, var(--mousse) 48%, #c5d8c8 52%, var(--mousse) 58%, transparent);
    filter: blur(0.3px);
    transform: perspective(820px) rotateX(66deg) scaleX(1.05);
    transform-origin: 70% 50%;
    opacity: 0.9;
}

.fiber-pulse {
    position: absolute;
    top: -1px;
    left: 0;
    width: 18%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fff, var(--mousse), transparent);
    filter: blur(1px);
    animation: fiberRun 7.5s linear infinite;
}

.cabinets {
    position: absolute;
    right: 6%;
    top: 16%;
    bottom: 22%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    transform: perspective(1100px) rotateY(-32deg) rotateX(7deg) translate3d(calc((var(--mx) - 0.5) * 18px), calc((var(--my) - 0.5) * -8px), 0);
    transform-origin: 80% 80%;
    will-change: transform;
}

.cabinet {
    position: relative;
    flex-shrink: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 18%, transparent 82%, rgba(27, 33, 30, 0.18)),
        repeating-linear-gradient(
            to bottom,
            #2a332e 0 11px,
            #232b27 11px 13px
        );
    border: 1px solid #333e38;
    border-radius: 6px 6px 0 0;
    box-shadow:
        inset 3px 0 0 var(--mousse),
        8px 16px 28px rgba(27, 33, 30, 0.18);
}

.cabinet::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 7px;
    height: 4px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 1px;
}

.cabinet::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hall-red);
    box-shadow: 0 0 8px rgba(63, 107, 82, 0.55);
    animation: led 3.6s ease-in-out infinite;
}

.cabinet.c1 { width: 86px; height: 78%; }
.cabinet.c2 { width: 78px; height: 70%; animation-delay: 0.4s; }
.cabinet.c3 { width: 70px; height: 61%; }
.cabinet.c4 { width: 62px; height: 52%; }
.cabinet.c5 { width: 54px; height: 44%; }

.cabinet.c2::after { animation-delay: 0.7s; background: #6fcb8f; box-shadow: 0 0 8px rgba(111, 203, 143, 0.55); }
.cabinet.c3::after { animation-delay: 1.3s; }
.cabinet.c4::after { animation-delay: 0.2s; background: var(--hall-gold); box-shadow: 0 0 8px var(--hall-gold); }
.cabinet.c5::after { animation-delay: 1.8s; }

.horizon {
    position: absolute;
    left: 20%;
    right: -5%;
    top: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(92, 106, 102, 0.28), transparent);
    z-index: 1;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(63, 107, 82, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(63, 107, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(63, 107, 82, 0); }
}

@keyframes led {
    0%, 100% { opacity: 1; }
    48% { opacity: 1; }
    54% { opacity: 0.35; }
    62% { opacity: 1; }
}

@keyframes fiberRun {
    from { transform: translateX(-40%); opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    to { transform: translateX(620%); opacity: 0; }
}

/* ——— Sections ——— */

.band {
    position: relative;
    padding: clamp(64px, 10vh, 112px) var(--pad);
    border-top: 1px solid var(--hall-line);
}

.band-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.band-head {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 36px;
    align-items: end;
}

.band-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--hall-ink);
}

.band-head p {
    margin: 8px 0 0;
    max-width: 62ch;
    color: var(--hall-mute);
    font-size: 16px;
    line-height: 1.55;
}

.prose {
    margin: 0 0 28px;
    max-width: 68ch;
    color: var(--hall-mute);
    font-size: 1rem;
    line-height: 1.65;
}

.prose p {
    margin: 0 0 12px;
}

.prose p:last-child {
    margin-bottom: 0;
}

.how {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    max-width: none;
}

.how li {
    padding: 16px 18px;
    background: var(--hall-elev);
    border: 1px solid var(--hall-line);
    border-radius: 6px;
    color: var(--hall-mute);
    font-size: 0.98rem;
    line-height: 1.55;
}

.how strong {
    display: block;
    margin-bottom: 4px;
    color: var(--hall-ink);
    font-weight: 600;
}

.plates.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sect-id {
    margin: 0;
    padding-top: 8px;
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--hall-faint);
    border-top: 1px solid var(--hall-line);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* Inventaire */

.plates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--hall-line);
    border: 1px solid var(--hall-line);
}

.plate {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px 24px;
    background: var(--hall-elev);
    text-decoration: none;
    color: inherit;
    min-height: 220px;
    transition: background 0.2s ease;
}

.plate:hover {
    background: var(--hall-elev-2);
}

.plate-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--hall-faint);
}

.plate h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hall-ink);
}

.plate p {
    margin: 0;
    color: var(--hall-mute);
    font-size: 14px;
    flex: 1;
}

.plate .go {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.01em;
    color: var(--mousse-fonce);
    font-weight: 500;
}

/* Bots — unités de baie */

.bay {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hall-line);
}

.u {
    display: grid;
    grid-template-columns: 64px 52px minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--hall-line);
    background: var(--hall-elev);
    transition: background 0.15s ease;
}

.u:last-child {
    border-bottom: 0;
}

.u:hover {
    background: var(--hall-elev-2);
}

.u-id {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--hall-faint);
}

.u img {
    width: 36px;
    height: 36px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid var(--hall-line);
}

.u-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--hall-ink);
}

.u-role {
    margin: 2px 0 0;
    font-size: 15px;
    color: var(--hall-mute);
}

.u-pre {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--hall-ink);
    padding: 6px 10px;
    border: 1px solid var(--hall-line);
    background: var(--hall-elev-2);
}

.u-add,
.u-open {
    font-size: 12px;
    font-weight: 600;
    color: var(--hall-ink);
    text-decoration: none;
    padding: 6px 0 6px 8px;
}

.u-open {
    color: var(--hall-red);
}

.u:hover .u-open {
    color: var(--hall-red);
}

.bay-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-top: 1px solid var(--hall-line);
    background: var(--hall-elev-2);
    font-size: 13px;
    color: var(--hall-mute);
}

.bay-foot a {
    color: var(--mousse-fonce);
    text-decoration: none;
}

/* Accueil — cartes bots verticales */

.bot-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.bot-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 28px 22px 22px;
    background: var(--hall-elev);
    border: 1px solid var(--hall-line);
    border-radius: 6px;
}

.bot-card img {
    width: 56px;
    height: 56px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid var(--hall-line);
}

.bot-card .u-name {
    font-size: 1.35rem;
}

.bot-card-desc {
    margin: 0;
    flex: 1;
    font-size: 16px;
    line-height: 1.55;
    color: var(--hall-mute);
}

.bot-card .u-pre {
    width: fit-content;
    font-size: 16px;
    padding: 8px 12px;
}

.bot-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.bot-card-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    min-height: 44px;
    font-size: 15px;
}

.bay-foot a:hover {
    color: var(--hall-red);
}

/* Minecraft + Vux */

.play-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
}

.world {
    position: relative;
    min-height: 280px;
    padding: 28px;
    border: 1px solid var(--hall-line);
    background:
        linear-gradient(180deg, rgba(63, 107, 82, 0.12), transparent 42%),
        repeating-linear-gradient(
            90deg,
            rgba(92, 106, 102, 0.1) 0 1px,
            transparent 1px 28px
        ),
        var(--hall-elev-2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.world::before {
    content: "";
    position: absolute;
    inset: auto -10% -30% 20%;
    height: 70%;
    background: radial-gradient(circle, rgba(63, 107, 82, 0.16), transparent 60%);
    pointer-events: none;
}

.world h3 {
    margin: 0;
    position: relative;
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hall-ink);
}

.world p {
    margin: 0;
    position: relative;
    color: var(--hall-mute);
    max-width: 36ch;
}

.packs {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--hall-line);
    border: 1px solid var(--hall-line);
}

.pack-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    background: var(--hall-elev);
}

.pack-row h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--hall-ink);
}

.pack-row p {
    margin: 3px 0 0;
    font-size: 14px;
    color: var(--hall-mute);
}

.pack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pack-actions .btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
}

.vux-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border: 1px solid var(--hall-line);
    background: var(--hall-elev);
}

.vux-row strong {
    display: block;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: var(--hall-ink);
}

.vux-row span {
    font-size: 13px;
    color: var(--hall-mute);
}

/* Krone — échelle, pas un tableur */

.ladder {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 28px;
    border-top: 1px solid var(--hall-line);
}

.rung {
    padding: 22px 16px 20px;
    border-right: 1px solid var(--hall-line);
    min-height: 140px;
}

.rung:first-child {
    border-left: 1px solid var(--hall-line);
}

.rung-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.rung-cost {
    display: block;
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--hall-faint);
}

.rung-bar {
    display: block;
    width: 100%;
    height: 2px;
    margin: 16px 0 12px;
    background: currentColor;
    opacity: 0.55;
}

.rung-perk {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--hall-mute);
}

.rung[data-grade="Kronium"] .rung-name { color: #8c6226; }
.rung[data-grade="Synkral"] .rung-name { color: var(--ardoise); }
.rung[data-grade="Kronalloy"] .rung-name { color: var(--ambre); }
.rung[data-grade="Synkronite"] .rung-name { color: var(--mousse-fonce); }
.rung[data-grade="Kronix"] .rung-name { color: var(--brique); }

.krone-split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: start;
}

.recharge h3,
.grades-col h3 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--hall-faint);
}

.recharge p,
.grades-col > p {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--hall-mute);
}

.offer-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.offer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 12px;
    border: 1px solid var(--hall-line);
    background: var(--hall-elev);
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.offer:hover {
    border-color: var(--hall-line-strong);
}

.offer-k {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--hall-gold);
}

.offer-e {
    font-size: 14px;
    color: var(--brique);
}

.offer-r {
    font-size: 13px;
    font-family: var(--mono);
    color: var(--hall-faint);
}

.grade-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grade-card {
    padding: 14px 16px;
    border: 1px solid var(--hall-line);
    background: var(--hall-elev);
}

.grade-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.grade-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--hall-ink);
}

.grade-price {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--hall-gold);
}

.grade-perk {
    margin: 6px 0 12px;
    font-size: 14px;
    color: var(--hall-mute);
    line-height: 1.45;
}

.grade-card[data-grade="Kronium"] { border-color: rgba(140, 98, 38, 0.35); }
.grade-card[data-grade="Kronium"] .grade-name { color: #8c6226; }
.grade-card[data-grade="Synkral"] { border-color: var(--ardoise-30); }
.grade-card[data-grade="Synkral"] .grade-name { color: var(--ardoise); }
.grade-card[data-grade="Kronalloy"] { border-color: rgba(184, 130, 61, 0.4); }
.grade-card[data-grade="Kronalloy"] .grade-name { color: var(--ambre); }
.grade-card[data-grade="Synkronite"] { border-color: rgba(63, 107, 82, 0.4); }
.grade-card[data-grade="Synkronite"] .grade-name { color: var(--mousse-fonce); }
.grade-card[data-grade="Kronix"] { border-color: rgba(168, 70, 47, 0.4); }
.grade-card[data-grade="Kronix"] .grade-name { color: var(--brique); }

.linkish {
    background: none;
    border: 0;
    padding: 0;
    color: var(--hall-mute);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.linkish:hover {
    color: var(--mousse-fonce);
}

/* Journal */

.journal-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--hall-line);
    background: var(--hall-elev);
}

.filter-label {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--hall-faint);
}

.filter-select {
    border: 0;
    background: transparent;
    color: var(--hall-ink);
    font-size: 13px;
    font-weight: 600;
    min-height: 28px;
}

.filter-select option {
    background: var(--hall-elev);
}

.news-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hall-line);
}

.news-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--hall-line);
    background: var(--hall-elev);
}

.news-item:last-child {
    border-bottom: 0;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.news-badge {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--mousse-fonce);
    border: 1px solid var(--ardoise-30);
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--mousse-clair);
}

.news-date {
    font-size: 14px;
    color: var(--hall-faint);
}

.news-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--hall-ink);
}

.news-summary {
    margin: 0;
    font-size: 13px;
    color: var(--hall-mute);
}

.muted {
    margin: 0;
    padding: 20px 18px;
    color: var(--hall-faint);
}

.home-end {
    padding: 28px var(--pad) 48px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--hall-line);
    color: var(--hall-faint);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* Toast / modals */

.toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    max-width: 340px;
    background: var(--hall-elev);
    border: 1px solid var(--ardoise-15);
    border-left: 3px solid var(--mousse);
    color: var(--hall-ink);
    padding: 10px 12px;
    font-size: 12px;
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 40;
}

.toast.visible {
    transform: none;
    opacity: 1;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(27, 33, 30, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    z-index: 45;
}

.modal.open {
    display: flex;
}

.modal-content {
    width: min(760px, 100%);
    background: var(--hall-elev);
    border: 1px solid var(--ardoise-15);
    border-radius: 6px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 85vh;
}

.modal-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid var(--hall-line);
    padding-bottom: 10px;
}

.modal-kicker {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--ardoise);
    margin: 0 0 4px;
}

.modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--hall-ink);
}

.modal-meta {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--hall-mute);
}

.modal-body {
    font-size: 14px;
    color: var(--hall-ink);
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 55vh;
    overflow-y: auto;
}

.table-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.comparison-table th,
.comparison-table td {
    padding: 8px 10px;
    border: 1px solid var(--hall-line);
    text-align: left;
}

.comparison-table th {
    background: var(--hall-elev-2);
    color: var(--hall-ink);
    white-space: nowrap;
}

.comparison-table td.has-perk {
    text-align: center;
    color: var(--mousse);
    font-weight: 700;
}

.comparison-table td.no-perk {
    text-align: center;
    color: var(--hall-faint);
}

.color-kronium { color: #8c6226 !important; }
.color-synkral { color: var(--ardoise) !important; }
.color-kronalloy { color: var(--ambre) !important; }
.color-synkronite { color: var(--mousse-fonce) !important; }
.color-kronix { color: var(--brique) !important; }

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
        align-items: end;
    }

    .cabinets {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 6%;
        height: 34%;
        opacity: 0.55;
        transform: perspective(900px) translateX(-50%) rotateY(-12deg) rotateX(6deg) scale(0.78);
    }

    .hero-logo {
        right: 6%;
        left: auto;
        top: 12%;
        bottom: auto;
        width: min(180px, 30vw);
        transform: none;
        opacity: 0.9;
    }

    .scene-fade {
        background:
            linear-gradient(180deg, rgba(238, 240, 234, 0.2) 0%, rgba(238, 240, 234, 0.55) 42%, var(--hall-bg) 78%),
            linear-gradient(90deg, var(--hall-bg) 0%, rgba(238, 240, 234, 0.5) 40%, transparent 70%);
    }

    .hero-copy {
        padding-bottom: 22vh;
    }

    .band-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .plates,
    .plates.cols-2,
    .play-grid,
    .krone-split,
    .offer-row,
    .ladder,
    .how,
    .bot-cards {
        grid-template-columns: 1fr 1fr;
    }

    .ladder {
        border-left: 1px solid var(--hall-line);
    }

    .rung {
        border-right: 0;
        border-bottom: 1px solid var(--hall-line);
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4px 16px;
        padding: 14px 16px;
    }

    .rung-bar {
        display: none;
    }

    .rung-perk {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .hero {
        padding-top: 24px;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 11vw, 3.2rem);
    }

    .hero-copy {
        padding-bottom: 12px;
    }

    .cabinets,
    .hero-logo {
        display: none;
    }

    .cta .btn {
        flex: 1 1 calc(50% - 10px);
    }

    .cta .btn-red {
        flex-basis: 100%;
    }

    .bot-cards {
        grid-template-columns: 1fr;
    }

    .plates,
    .plates.cols-2,
    .play-grid,
    .krone-split,
    .how,
    .offer-row {
        grid-template-columns: 1fr;
    }

    .band {
        padding-left: 16px;
        padding-right: 16px;
    }

    .u {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .u-id {
        display: none;
    }

    .u-pre {
        grid-column: 2;
        justify-self: start;
    }

    .u-open {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

    .offer-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .kicker .live,
    .cabinet::after,
    .fiber-pulse {
        animation: none;
    }

    .grid-plane,
    .cabinets {
        transform: none;
        will-change: auto;
    }

    .cabinets {
        transform: perspective(1100px) rotateY(-32deg) rotateX(7deg);
    }
}

/* ——— Hero mot unique ——— */
body.home-mosaic {
    --mosaic-opacity: 0;
    --mosaic-tile-size: 88px;
    --mosaic-filter: grayscale(1);
}

.mosaic-layer {
    display: none !important;
}

.hero-word {
    display: grid;
    align-content: end;
    min-height: 72vh;
    min-height: 72dvh;
    position: relative;
    isolation: isolate;
    padding: clamp(48px, 10vh, 96px) var(--pad) 48px;
    max-width: var(--max);
    margin: 0 auto;
}

.hero-word h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 8vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-transform: none;
    color: var(--hall-ink);
    text-align: left;
}

.hero-word .lede {
    margin-top: 16px;
}

.scroll-hint {
    display: inline-block;
    margin-top: 28px;
    font-family: var(--mono);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--ardoise);
    text-decoration: none;
}

.scroll-hint:hover {
    color: var(--mousse-fonce);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.apps-grid .plate {
    min-height: 0;
    padding: 20px 18px;
    gap: 8px;
}

.hub-plate {
    border: 1px solid var(--hall-line-strong);
}

.hub-plate h3 {
    color: var(--mousse-fonce);
}

/* ——— FAQ accueil (même composant que /faq, mêmes tokens) ——— */

.faq {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
    max-width: 68ch;
}

details.faq-item {
    background: var(--hall-elev);
    border: 1px solid var(--hall-line);
    border-radius: 6px;
    padding: 16px 18px;
}

details.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
}

details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: "+";
    float: right;
    font-family: var(--mono);
    color: var(--ardoise);
    font-weight: 400;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item p {
    margin: 12px 0 0;
    color: var(--hall-mute);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ——— Entrée hero + stagger des reveals (mêmes durées que .reveal) ——— */

@keyframes heroRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.hero-copy h1,
.hero-copy .lede,
.hero-copy .cta,
.hero-copy .coords,
.hero-copy .scroll-hint {
    animation: heroRise 0.7s ease both;
}

.hero-copy .lede { animation-delay: 0.08s; }
.hero-copy .cta { animation-delay: 0.16s; }
.hero-copy .coords { animation-delay: 0.24s; }
.hero-copy .scroll-hint { animation-delay: 0.32s; }

.reveal {
    transition-delay: calc(var(--i, 0) * 70ms);
}

/* Flèche CTA façon HiveCloud, currentColor uniquement */

.hero .cta .btn-red::after {
    content: "→";
    display: inline-block;
    transition: transform 0.18s ease;
}

.hero .cta .btn-red:hover::after {
    transform: translateX(4px);
}

/* ——— Mobile : garder un logo discret au lieu d'un hero vide ——— */

@media (max-width: 720px) {
    .cabinets {
        display: none;
    }

    .hero-logo {
        display: block;
        position: absolute;
        right: 6%;
        top: 14%;
        width: 96px;
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy h1,
    .hero-copy .lede,
    .hero-copy .cta,
    .hero-copy .coords,
    .hero-copy .scroll-hint {
        animation: none;
    }

    .hero .cta .btn-red::after {
        transition: none;
    }
}

