/* ==========================================================================
   CHARTE MAÎTRE GLOBALE — LA SCRIBE FORGE (SBI-REC TITAN v8)
   Esthétique : Dark Cyber-Industriel, Glassmorphism & Néon Électrique
   Destination : /var/www/lascribeforge.fr/assets/css/style.css
   ========================================================================== */

:root {
    --bg-abyss: #050811;
    --bg-surface: #0a101f;
    --bg-card: rgba(13, 20, 38, 0.72);
    --bg-card-hover: rgba(18, 28, 52, 0.88);
    --bg-code: #03050b;
    --glass-border: rgba(0, 229, 255, 0.18);
    --glass-border-strong: rgba(0, 229, 255, 0.48);
    --neon-cyan: #00e5ff;
    --neon-cyan-dim: rgba(0, 229, 255, 0.12);
    --neon-cyan-glow: rgba(0, 229, 255, 0.32);
    --neon-purple: #9d4edd;
    --neon-purple-dim: rgba(157, 78, 221, 0.14);
    --neon-purple-glow: rgba(157, 78, 221, 0.28);
    --neon-emerald: #10b981;
    --neon-emerald-dim: rgba(16, 185, 129, 0.14);
    --neon-amber: #f59e0b;
    --neon-red: #ef4444;
    --neon-red-dim: rgba(239, 68, 68, 0.12);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-display: 'Space Grotesk', sans-serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --container-max: 1320px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-abyss);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.65;
    font-size: 15.5px;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(0, 229, 255, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 88% 22%, rgba(157, 78, 221, 0.08) 0%, transparent 42%),
        radial-gradient(circle at 50% 85%, rgba(0, 229, 255, 0.05) 0%, transparent 45%),
        linear-gradient(rgba(0, 229, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.024) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px;
    background-attachment: fixed;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    text-shadow: 0 0 12px var(--neon-cyan-glow);
}

code, pre {
    font-family: var(--font-mono);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- NAVIGATION HAUTE (TOPBAR) --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 8, 17, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
}

.topbar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.95rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--neon-cyan);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(157, 78, 221, 0.16));
    box-shadow: 0 0 20px var(--neon-cyan-glow), inset 0 0 10px rgba(0, 229, 255, 0.15);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--neon-cyan);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.brand-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: 0.06em;
    color: #fff;
    text-transform: uppercase;
    display: block;
    line-height: 1.1;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 0.12em;
    display: block;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.65rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan-glow);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--neon-cyan);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    cursor: pointer;
}

/* --- BOUTONS NÉON --- */
.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.16);
}

.btn-neon:hover {
    background: var(--neon-cyan);
    color: var(--bg-abyss);
    box-shadow: 0 0 28px var(--neon-cyan-glow);
    transform: translateY(-1px);
    text-shadow: none;
}

.btn-neon-solid {
    background: var(--neon-cyan);
    color: var(--bg-abyss);
    box-shadow: 0 0 24px var(--neon-cyan-glow);
}

.btn-neon-solid:hover {
    background: #5ceeff;
    box-shadow: 0 0 36px rgba(0, 229, 255, 0.55);
}

.btn-purple {
    border-color: var(--neon-purple);
    background: var(--neon-purple-dim);
    color: #d8b4fe;
    box-shadow: 0 0 18px var(--neon-purple-glow);
}

.btn-purple:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 28px var(--neon-purple-glow);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-ghost:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.06);
}

/* --- BADGES & INDICATEURS --- */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.32);
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-emerald);
    box-shadow: 0 0 10px var(--neon-emerald);
    animation: pulseGlow 2.2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.25); }
}

.section-kicker {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--neon-cyan);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.45rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    margin-bottom: 0.85rem;
}

.section-lead {
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 780px;
    margin-bottom: 2.25rem;
}

/* --- CARTES GLASSMORPHISM --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(0, 229, 255, 0.32);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.glass-card:hover {
    transform: translateY(-3px);
    border-color: var(--glass-border-strong);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 229, 255, 0.08);
}

/* --- HERO ACCUEIL --- */
.hero-section {
    padding: 4.5rem 0 3.5rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.75rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 4vw, 3.35rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 1.15rem 0 1.25rem;
    letter-spacing: -0.02em;
}

.hero-title .neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 28px rgba(0, 229, 255, 0.35);
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.06rem;
    line-height: 1.72;
    margin-bottom: 2rem;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kpi-item strong {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--neon-cyan);
    display: block;
}

.kpi-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- TERMINAL / SIMULATEUR DE PIPELINE --- */
.terminal-window {
    background: var(--bg-code);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 229, 255, 0.12);
}

.terminal-header {
    background: rgba(15, 23, 42, 0.95);
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 1.35rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.65;
}

.sim-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.sim-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.sim-tab.active, .sim-tab:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.1);
}

.sim-box {
    background: rgba(10, 16, 31, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
}

.sim-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.3rem;
}

.code-key { color: #7dd3fc; }
.code-str { color: #6ee7b7; }
.code-num { color: #f472b6; }
.code-warn { color: #fca5a5; }

/* --- GRILLES D'ARCHITECTURE & PILIERS --- */
.page-section {
    padding: 4rem 0;
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.75rem;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.75rem;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--neon-cyan-dim);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-weight: 700;
    display: grid;
    place-items: center;
    margin-bottom: 1.15rem;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.15);
}

.card-icon.purple {
    background: var(--neon-purple-dim);
    border-color: rgba(157, 78, 221, 0.35);
    color: #d8b4fe;
    box-shadow: 0 0 16px var(--neon-purple-glow);
}

.glass-card h3 {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.65rem;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 0;
}

/* --- BLOC RÉGULATION THERMIQUE --- */
.thermal-banner {
    background: linear-gradient(135deg, rgba(13, 20, 38, 0.88), rgba(22, 14, 42, 0.85));
    border: 1px solid rgba(157, 78, 221, 0.38);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2.75rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(157, 78, 221, 0.12);
}

.thermal-meter {
    background: rgba(5, 8, 17, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.meter-bar {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981 0%, #00e5ff 30%, #f59e0b 45%, #ef4444 100%);
    position: relative;
    margin: 1.1rem 0 0.75rem;
}

.meter-marker {
    position: absolute;
    top: -6px;
    left: 30%;
    width: 4px;
    height: 24px;
    background: #fff;
    box-shadow: 0 0 12px #fff, 0 0 20px var(--neon-cyan);
}

/* --- SIMULATEUR TARIFAIRE & GRILLE --- */
.pricing-wrapper {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 2rem;
    align-items: start;
}

.calc-panel {
    background: var(--bg-card);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.1);
}

.pack-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 0.65rem;
    margin: 1.15rem 0 1.5rem;
}

.pack-btn {
    background: rgba(5, 8, 17, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.5rem;
    text-align: center;
    color: var(--text-primary);
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pack-btn strong {
    display: block;
    font-size: 1rem;
    color: #fff;
}

.pack-btn span {
    font-size: 0.7rem;
    color: var(--neon-emerald);
}

.pack-btn.active, .pack-btn:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.12);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
}

.calc-output {
    background: rgba(5, 8, 17, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.35rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}

.calc-row:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
}

.calc-row .val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--neon-cyan);
}

/* --- TABLEAUX --- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 1.35rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(5, 8, 17, 0.55);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

thead {
    background: rgba(0, 229, 255, 0.09);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neon-cyan);
}

th, td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.mono-val {
    font-family: var(--font-mono);
    color: #fff;
    font-weight: 600;
}

.tag-discount {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    background: var(--neon-emerald-dim);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

/* --- ENCARTS & ALERTES --- */
.callout {
    border-radius: var(--radius-md);
    padding: 1.2rem 1.45rem;
    margin: 1.25rem 0;
    border-left: 3px solid var(--neon-cyan);
    background: rgba(0, 229, 255, 0.05);
}

.callout-danger {
    border-left-color: var(--neon-red);
    background: var(--neon-red-dim);
}

.callout-purple {
    border-left-color: var(--neon-purple);
    background: var(--neon-purple-dim);
}

.callout-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    display: block;
    color: #fff;
}

.callout-danger .callout-title { color: #fca5a5; }
.callout-purple .callout-title { color: #d8b4fe; }

/* --- MISE EN PAGE JURIDIQUE (COMPATIBLE legal.html) --- */
.hero-legal {
    max-width: var(--container-max);
    margin: 2.5rem auto 1.5rem;
    padding: 0 2rem;
}

.hero-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.layout-grid {
    max-width: var(--container-max);
    margin: 0 auto 5rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.25rem;
    align-items: start;
}

.toc-sidebar {
    position: sticky;
    top: 92px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-height: calc(100vh - 115px);
    overflow-y: auto;
}

.toc-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.toc-group { margin-bottom: 1.15rem; }

.toc-group-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--neon-purple);
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    display: block;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.toc-list a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border-left: 2px solid transparent;
}

.toc-list a:hover,
.toc-list a.active {
    color: #fff;
    background: rgba(0, 229, 255, 0.08);
    border-left-color: var(--neon-cyan);
    text-shadow: none;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-section {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem;
    scroll-margin-top: 96px;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: #fff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: var(--neon-cyan);
    margin: 1.5rem 0 0.65rem;
}

.legal-section p, .legal-section li {
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

.legal-section ul { margin-left: 1.35rem; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-box {
    background: rgba(5, 8, 17, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
}

.info-box-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-bottom: 0.35rem;
    display: block;
}

/* --- PIED DE PAGE --- */
footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 8, 17, 0.94);
    padding: 3rem 2rem;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.75rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-grid,
    .thermal-banner,
    .pricing-wrapper,
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .toc-sidebar {
        position: static;
        max-height: none;
    }
    .cards-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-links.open {
        display: flex;
    }
    .mobile-toggle {
        display: inline-block;
    }
    .topbar-inner {
        flex-wrap: wrap;
    }
    .kpi-strip {
        grid-template-columns: 1fr;
    }
}

/* --- IMPRESSION PDF PROPRE --- */
@media print {
    body {
        background: #fff !important;
        color: #111 !important;
        font-size: 11pt;
    }
    .topbar, .toc-sidebar, .btn-neon, .mobile-toggle {
        display: none !important;
    }
    .layout-grid {
        display: block;
        padding: 0;
    }
    .hero-card, .legal-section, .glass-card, .info-box, .callout {
        background: #fff !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        color: #111 !important;
        page-break-inside: avoid;
    }
    h1, h2, h3, strong, .mono-val {
        color: #000 !important;
        text-shadow: none !important;
    }
    p, li, td, th {
        color: #222 !important;
    }
}
