/* VARIABLES GLOBALES (Cohérence avec Olympe et Desktop) */
:root {
    --neon-cyan: #00f3ff;
    --neon-gold: #FFD700;
    --neon-magenta: #ff00ff;
    --neon-red: #ff003c;
    --bg-dark: #05070a;
    --bg-abyss: #020305;
    --text-main: #8da2b5;
    --text-light: #e0e0e0;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Roboto Mono', monospace;
}

body {
    margin: 0;
    padding: 0;
    /* REMPLACEMENT DU FOND NOIR PAR UN DÉGRADÉ ABYSSAL */
    background: radial-gradient(circle at 50% 50%, #0d1b2a 0%, #000000 100%);
    
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* FOND 3D */
#abyss-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* SÉLECTEUR LANGUE GHOST */
.lang-switcher-ghost {
    position: fixed;
    top: 30px; right: 40px;
    z-index: 1000;
    display: flex; gap: 10px;
}
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    font-family: var(--font-code);
    font-size: 10px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.lang-btn:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
/* GHOST NEON ACTIVE STATE (ALL LANGUAGES) */
.lang-btn.active {
    color: var(--neon-cyan) !important;
    border-color: var(--neon-cyan) !important;
    background: rgba(0, 243, 255, 0.1) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3), inset 0 0 10px rgba(0, 243, 255, 0.05) !important;
    text-shadow: 0 0 8px var(--neon-cyan) !important;
    transform: translateY(-1px);
}

/* BOUTON SOUTIEN GHOST */
.support-btn-ghost {
    position: fixed;
    top: 30px; left: 40px;
    z-index: 1000;
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--neon-gold);
    font-family: var(--font-code);
    font-size: 10px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 2px;
    letter-spacing: 1px;
}
.support-btn-ghost:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    color: #fff;
}
.support-btn-ghost svg {
    width: 12px; height: 12px;
    fill: rgba(255, 215, 0, 0.2);
    stroke: var(--neon-gold);
    transition: all 0.3s ease;
}
.support-btn-ghost:hover svg {
    fill: var(--neon-gold);
}

/* SECTIONS TACTIQUES */
.tactical-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px;
    position: relative;
    opacity: 0; /* Pour GSAP */
}

.section-header { margin-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px;}
.section-tag { font-family: var(--font-code); color: var(--neon-cyan); font-size: 11px; letter-spacing: 2px; display: block; margin-bottom: 10px; opacity: 0.8; }
.section-title { font-family: var(--font-display); color: #fff; font-size: 28px; font-weight: 500; letter-spacing: 2px; margin: 0; }

/* HERO SECTION */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.hero-logo { width: 80px; margin-bottom: 30px; filter: invert(1); opacity: 0.8; }
/* BRANDING HERO (LHDSR VIEW) */
.brand-hero {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 5.5rem;
    letter-spacing: 15px;
    padding-left: 15px; /* Compensation stricte du letter-spacing pour le centrage */
    line-height: 1;
    margin-bottom: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0; 
    animation: fadeSlideUp 1s ease-out forwards 0.5s;
}
.brand-lhdsr {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}
.brand-view {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan), 0 0 30px rgba(0, 243, 255, 0.5);
    line-height: 0.8;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Adaptation Mobile */
@media (max-width: 768px) {
    .brand-hero { font-size: 1.2rem; letter-spacing: 4px; gap: 10px; }
    .support-btn-ghost { top: 20px; left: 20px; padding: 6px 10px; }
    .lang-switcher-ghost { top: 20px; right: 20px; }
}
.neon-ghost-pulse { animation: ghost-breathe 4s infinite ease-in-out; }
@keyframes ghost-breathe {
    0%, 100% { filter: invert(1) drop-shadow(0 0 2px rgba(0,243,255,0.2)); opacity: 0.7; }
    50% { filter: invert(1) drop-shadow(0 0 15px rgba(0,243,255,0.6)); opacity: 1; }
}

.hero-title { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.5rem; 
    font-weight: 400; 
    color: var(--neon-gold); 
    letter-spacing: 12px; 
    padding-left: 12px; 
    margin: 25px auto 40px auto; /* Augmentation de la marge pour laisser respirer le titre VIEW */
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    display: table;
    text-align: center;
}

.hero-subtitle { font-family: var(--font-code); font-size: 14px; color: var(--text-main); max-width: 600px; line-height: 1.6; margin: 0 auto; text-align: center; }
.scroll-indicator { position: absolute; bottom: 40px; font-family: var(--font-code); font-size: 9px; color: #555; letter-spacing: 3px; animation: float 2s infinite ease-in-out; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* BOUTONS GHOST */
.cyber-btn-ghost {
    background: transparent;
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: var(--neon-cyan);
    font-family: var(--font-code); font-weight: bold;
    font-size: 12px; letter-spacing: 2px;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 40px;
}
.cyber-btn-ghost:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0,243,255,0.1);
    letter-spacing: 4px;
}
.cyber-btn-ghost.solid { background: rgba(0,243,255,0.1); margin-top:0; }
.cyber-btn-ghost.solid:hover { background: var(--neon-cyan); color: #000; box-shadow: 0 0 30px rgba(0,243,255,0.4); }

/* BOUTON CYBER-PULSE PREMIUM (LHDSR DROPS) */
.btn-pulse-premium {
    position: relative;
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.1) 0%, rgba(0, 243, 255, 0.1) 100%);
    border: 1px solid var(--neon-magenta);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: 4px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-pulse-premium::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-20deg);
    animation: shine-sweep 4s infinite;
    z-index: -1;
}
.btn-pulse-premium:hover {
    border-color: var(--neon-cyan);
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.2) 0%, rgba(255, 0, 255, 0.2) 100%);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4), inset 0 0 15px rgba(255, 0, 255, 0.2);
    transform: translateY(-2px);
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}
@keyframes shine-sweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* CARTES GHOST (Grille) */
.grid-3-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.ghost-card {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.ghost-card:hover {
    border-color: rgba(0,243,255,0.3);
    background: rgba(0,243,255,0.02);
    transform: translateY(-5px);
}
.ghost-card-icon { font-size: 24px; margin-bottom: 20px; filter: grayscale(1); opacity: 0.5; }
.ghost-card h3 { color: var(--text-light); font-family: var(--font-display); font-size: 14px; letter-spacing: 1px; margin: 0 0 15px 0; }
.ghost-card p { font-size: 13px; line-height: 1.6; margin: 0; }

/* ARCHITECTURE SPLIT (DRONE VS STATION) */
.architecture-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.arch-box {
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 30px;
    transition: border-color 0.3s ease;
}
.arch-box:hover { border-color: var(--neon-cyan); }
.arch-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.arch-header h3 { color: #fff; font-family: var(--font-display); font-size: 16px; letter-spacing: 1px; margin:0; }
.arch-badge { background: rgba(0,243,255,0.1); color: var(--neon-cyan); font-family: var(--font-code); font-size: 9px; padding: 4px 8px; border: 1px solid rgba(0,243,255,0.3); }
.arch-box p { font-size: 14px; line-height: 1.7; color: var(--text-main); margin:0; }

/* ARSENAL LIST */
.arsenal-list { display: flex; flex-direction: column; gap: 20px; }
.arsenal-row {
    display: flex;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 25px;
    align-items: center;
    transition: all 0.3s;
}
.arsenal-row:hover { border-color: rgba(255,215,0,0.3); background: rgba(255,215,0,0.02); }
.arsenal-meta { flex: 0 0 250px; border-right: 1px dashed rgba(255,255,255,0.1); padding-right: 20px; margin-right: 20px; }
.arsenal-meta h4 { color: var(--neon-gold); font-family: var(--font-display); font-size: 14px; letter-spacing: 1px; margin:0 0 5px 0; }
.arsenal-type { color: #666; font-family: var(--font-code); font-size: 10px; text-transform: uppercase; }
.arsenal-desc { flex: 1; font-size: 14px; line-height: 1.6; }

/* ECONOMY BOX */
.economy-box {
    display: flex; align-items: center; gap: 50px;
    background: linear-gradient(90deg, rgba(0,243,255,0.05) 0%, transparent 100%);
    border: 1px solid rgba(0,243,255,0.2);
    padding: 50px;
}
.eco-icon-container { flex: 0 0 100px; }
.lux-hologram { width: 100px; height: 100px; filter: invert(81%) sepia(59%) saturate(4976%) hue-rotate(151deg) brightness(102%) contrast(102%) drop-shadow(0 0 15px rgba(0,243,255,0.5)); animation: float 3s ease-in-out infinite; }
.eco-content h2 { color: #fff; font-family: var(--font-display); font-size: 18px; letter-spacing: 2px; margin: 0 0 20px 0; }

/* WHITELIST FORM (Conteneur conservé pour le bouton Demo Live) */
.whitelist-container {
    max-width: 600px; margin: 0 auto;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* FOOTER */
.landing-footer { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding: 40px 20px; font-family: var(--font-code); font-size: 10px; color: #555; }
.footer-links a { color: #555; text-decoration: none; margin: 0 10px; transition: color 0.2s; }
.footer-links a:hover { color: var(--neon-cyan); }

@media (max-width: 768px) {
    .architecture-split, .arsenal-row, .economy-box { flex-direction: column; }
    .arsenal-meta { border-right: none; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 15px; }
    .hero-title { font-size: 28px; }
}

/* ==========================================================================
   MODULE DEMO (HUD TACTIQUE FIGÉ)
   ========================================================================== */
.demo-ui-frame {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #05070a;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(0, 243, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-screen {
    position: relative;
    width: 100%;
    height: 400px; /* Hauteur fixe robuste pour éviter l'effondrement */
    background: radial-gradient(circle at 50% 40%, #1a1f2e 0%, #000 70%);
    overflow: hidden;
}

/* Faux orateur flouté en fond pour donner l'illusion d'une vidéo */
.demo-silhouette {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 350px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 150px 150px 0 0;
    filter: blur(15px);
    box-shadow: inset 0 20px 50px rgba(0,0,0,0.5);
    pointer-events: none;
}

.demo-scanline {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(0, 243, 255, 0.5);
    box-shadow: 0 0 15px var(--neon-cyan);
    opacity: 0.6; z-index: 5;
    animation: demo-scan 3s linear infinite;
    pointer-events: none;
}

@keyframes demo-scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}

/* --- CARTES D'INTELLIGENCE (TOOLTIPS FIXES) --- */
.demo-intel-card {
    position: absolute;
    background: rgba(10, 15, 20, 0.9);
    border: 1px solid #333;
    padding: 15px;
    font-family: var(--font-code);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    width: 260px;
}

.demo-intel-card.pos-1 {
    top: 40px; right: 40px;
    border-top: 2px solid var(--neon-red);
}

.demo-intel-card.pos-2 {
    bottom: 40px; left: 40px;
    border-top: 2px solid var(--neon-gold);
}

.intel-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: bold; margin-bottom: 8px;
    color: var(--neon-red); letter-spacing: 1px;
}

.pulse-dot {
    width: 6px; height: 6px; border-radius: 50%;
}
.pulse-dot.red { background: var(--neon-red); box-shadow: 0 0 8px var(--neon-red); animation: blink 1s infinite; }
.pulse-dot.gold { background: var(--neon-gold); box-shadow: 0 0 8px var(--neon-gold); animation: blink 1.5s infinite; }

.intel-body {
    font-size: 12px; color: #e0e0e0; line-height: 1.5;
}
.intel-sub {
    display: block; margin-top: 5px; font-size: 10px; color: #888;
}

/* --- LIGNE DE TEMPS ET PSYCHOGRAPHE --- */
.demo-timeline {
    background: #020305;
    padding: 15px 30px;
    border-top: 1px solid #222;
    position: relative;
}

.demo-tension-container {
    height: 40px;
    width: 100%;
    margin-bottom: 5px;
    position: relative;
}

.demo-tension-curve {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.demo-track {
    width: 100%; height: 4px; background: rgba(255,255,255,0.1);
    position: relative; border-radius: 2px; margin-bottom: 10px;
}

.demo-progress {
    height: 100%; width: 60%; background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    position: relative;
}

/* Le curseur (tête de lecture) */
.demo-progress::after {
    content: ''; position: absolute; right: -4px; top: -3px;
    width: 10px; height: 10px; background: #fff; border-radius: 50%;
    box-shadow: 0 0 10px #fff;
}

.demo-marker {
    position: absolute; top: -4px; width: 4px; height: 12px;
    border-radius: 2px; cursor: help;
}
.demo-marker.m-machiavel { background: var(--neon-red); box-shadow: 0 0 8px var(--neon-red); z-index: 2; }
.demo-marker.m-orvel { background: var(--neon-gold); box-shadow: 0 0 8px var(--neon-gold); z-index: 2; }

.demo-time {
    display: flex; justify-content: space-between;
    font-family: var(--font-code); font-size: 10px; color: #666;
}

.demo-caption {
    text-align: center; font-family: var(--font-code); font-size: 10px;
    color: #555; margin-top: 20px; font-style: italic;
}

@media (max-width: 768px) {
    .demo-screen { height: 500px; } /* Plus haut sur mobile pour empiler */
    .demo-intel-card.pos-1 { top: 20px; right: 20px; left: 20px; width: auto; }
    .demo-intel-card.pos-2 { bottom: 20px; right: 20px; left: 20px; width: auto; }
}

/* --- WORKFLOW GRID (MICRO) --- */
.workflow-grid {
    display: grid;
    /* Force 3 colonnes exactes pour les étapes 1, 2, 3 */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

@media (max-width: 900px) {
    .workflow-grid { grid-template-columns: 1fr; }
}

/* --- CORTEX DIDACTIC BOX (MACRO) --- */
.cortex-didactic-box {
    display: flex;
    background: linear-gradient(135deg, rgba(20, 15, 5, 0.9) 0%, rgba(5, 7, 10, 0.95) 100%);
    border: 1px solid var(--neon-gold);
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 30px rgba(255, 215, 0, 0.05);
    overflow: hidden;
    margin-top: 20px;
}

.cd-visual-logic {
    flex: 0 0 300px;
    background: rgba(0,0,0,0.5);
    border-right: 1px dashed rgba(255, 215, 0, 0.3);
    position: relative;
    min-height: 250px;
}

.cd-node {
    position: absolute;
    width: 30px; height: 30px;
    background: #000;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-code); font-size: 10px;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.cd-core-node {
    position: absolute;
    width: 50px; height: 50px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--neon-gold);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    transform: translate(50%, -50%);
    z-index: 2;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: folder-pulse 2s infinite alternate;
}

@keyframes folder-pulse {
    from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
    to { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
}

.cd-lines {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.cd-lines path {
    stroke: rgba(255, 215, 0, 0.4);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    fill: none;
    animation: flow-dash 20s linear infinite;
}

@keyframes flow-dash { to { stroke-dashoffset: -100; } }

.cd-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cd-content h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 20px;
    letter-spacing: 2px;
    margin: 10px 0 20px 0;
}

.cd-content p {
    font-size: 13px;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0 0 15px 0;
}

@media (max-width: 768px) {
    .cortex-didactic-box { flex-direction: column; }
    .cd-visual-logic { height: 200px; border-right: none; border-bottom: 1px dashed rgba(255, 215, 0, 0.3); }
    .cd-content { padding: 25px; }
}

@media (max-width: 768px) {
    .step-line { display: none; } /* On cache les connecteurs sur mobile car ils s'empilent verticalement */
    .demo-tooltip { position: relative; top: auto !important; left: auto !important; right: auto !important; margin: 10px; animation: none; opacity: 1; }
}