/* ============================================
   PROTOCOLE DE SURVIE — THÈME APOCALYPTIQUE
   Classification: NIVEAU 5
   ============================================ */

:root {
    /* Palette Apocalyptique */
    --bg-bunker: #0a0a0a;
    --bg-panel: #0d0d0d;
    --bg-terminal: #050a05;
    --bg-danger: #1a0505;
    
    --nuke-yellow: #f4d03f;
    --nuke-orange: #e67e22;
    --radiation-green: #00ff41;
    --radiation-green-dim: #00aa2a;
    --danger-red: #e74c3c;
    --danger-red-dim: #922b21;
    --warning-amber: #f39c12;
    --safe-blue: #3498db;
    
    --text-primary: #e8e8e8;
    --text-secondary: #888;
    --text-terminal: #00ff41;
    
    --border-glow: rgba(0, 255, 65, 0.3);
    --border-danger: rgba(231, 76, 60, 0.5);
    
    /* Typography */
    --font-display: 'Orbitron', 'Arial Black', sans-serif;
    --font-terminal: 'Share Tech Mono', 'Courier New', monospace;
    --font-military: 'Russo One', 'Impact', sans-serif;
    
    /* Timing */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-terminal);
    background: var(--bg-bunker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: crosshair;
}

/* ============================================
   EFFETS VISUELS GLOBAUX
   ============================================ */

/* CRT Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanlines-move 0.1s linear infinite;
}

@keyframes scanlines-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(2px); }
}

/* Vignette */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
}

/* Radiation Particles */
.radiation-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--radiation-green);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 8s infinite;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(1);
    }
}

/* Glitch Overlay */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9996;
    opacity: 0;
    background: var(--radiation-green);
    mix-blend-mode: overlay;
    animation: glitch-flash 4s infinite;
}

@keyframes glitch-flash {
    0%, 97%, 100% { opacity: 0; }
    97.5% { opacity: 0.03; }
}

/* ============================================
   COMPTEUR GEIGER
   ============================================ */

.geiger-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-panel);
    border: 1px solid var(--radiation-green-dim);
    padding: 10px 15px;
    z-index: 100;
    font-family: var(--font-terminal);
    min-width: 140px;
}

.geiger-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    margin-bottom: 5px;
}

.geiger-value {
    font-size: 1.1rem;
    color: var(--radiation-green);
    font-weight: bold;
    text-shadow: 0 0 10px var(--radiation-green);
    animation: geiger-pulse 0.5s infinite;
}

@keyframes geiger-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.geiger-bar {
    height: 3px;
    background: #1a1a1a;
    margin-top: 8px;
    overflow: hidden;
}

.geiger-fill {
    height: 100%;
    background: var(--radiation-green);
    width: 60%;
    animation: geiger-fill-pulse 2s infinite;
}

@keyframes geiger-fill-pulse {
    0%, 100% { width: 55%; }
    25% { width: 70%; }
    50% { width: 45%; }
    75% { width: 65%; }
}

/* ============================================
   AUDIO TOGGLE
   ============================================ */

.audio-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-panel);
    border: 1px solid var(--radiation-green-dim);
    color: var(--radiation-green);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-toggle:hover {
    background: var(--radiation-green);
    color: var(--bg-bunker);
}

.audio-toggle.active {
    border-color: var(--radiation-green);
    box-shadow: 0 0 15px var(--border-glow);
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.bunker-container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   ÉCRANS / PAGES
   ============================================ */

.screen {
    display: none;
    opacity: 0;
    min-height: 100vh;
    padding: 80px 20px 100px;
    transition: opacity var(--transition-slow);
}

.screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen.visible {
    opacity: 1;
}

.screen-content {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

/* ============================================
   ÉCRAN 1 — ALERTE NUCLÉAIRE
   ============================================ */

.warning-stripes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--nuke-yellow) 0px,
        var(--nuke-yellow) 20px,
        #000 20px,
        #000 40px
    );
    animation: stripes-scroll 1s linear infinite;
}

@keyframes stripes-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

/* Symbole Nucléaire */
.nuclear-symbol {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    position: relative;
    animation: nuke-rotate 10s linear infinite;
}

@keyframes nuke-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nuclear-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: var(--nuke-yellow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px var(--nuke-yellow);
}

.nuclear-blade {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 60px solid var(--nuke-yellow);
    transform-origin: center 0;
}

.blade-1 { transform: translate(-50%, 0) rotate(0deg); }
.blade-2 { transform: translate(-50%, 0) rotate(120deg); }
.blade-3 { transform: translate(-50%, 0) rotate(240deg); }

/* Titre Emergency */
.title-emergency {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--danger-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--danger-red);
    animation: emergency-pulse 1s infinite;
}

@keyframes emergency-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: #0ff;
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: #f0f;
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0% { transform: translateX(-2px); }
    100% { transform: translateX(2px); }
}

@keyframes glitch-2 {
    0% { transform: translateX(2px); }
    100% { transform: translateX(-2px); }
}

/* Emergency Box */
.emergency-box {
    background: var(--bg-danger);
    border: 2px solid var(--danger-red);
    margin-bottom: 30px;
    overflow: hidden;
}

.emergency-header {
    background: var(--danger-red);
    color: #fff;
    padding: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.emergency-content {
    padding: 25px;
    text-align: left;
    min-height: 120px;
}

.typewriter {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* Blink Effects */
.blink-fast {
    animation: blink-fast 0.5s infinite;
}

@keyframes blink-fast {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.blink-slow {
    animation: blink-slow 2s infinite;
}

@keyframes blink-slow {
    0%, 70% { opacity: 1; }
    71%, 100% { opacity: 0.3; }
}

/* Countdown */
.countdown-container {
    margin-bottom: 40px;
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    margin-bottom: 15px;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.countdown-unit {
    background: var(--bg-panel);
    border: 1px solid var(--danger-red-dim);
    padding: 15px 20px;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--danger-red);
    text-shadow: 0 0 10px var(--danger-red);
}

.countdown-unit small {
    font-size: 0.8rem;
    opacity: 0.6;
}

.countdown-separator {
    font-size: 2rem;
    color: var(--danger-red);
    animation: blink-fast 1s infinite;
}

/* Buttons */
.btn-emergency {
    background: transparent;
    border: 2px solid var(--danger-red);
    color: var(--danger-red);
    padding: 15px 40px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-emergency::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--danger-red);
    transition: left var(--transition-normal);
    z-index: -1;
}

.btn-emergency:hover {
    color: #fff;
    text-shadow: none;
    box-shadow: 0 0 30px var(--danger-red);
}

.btn-emergency:hover::before {
    left: 0;
}

.btn-icon {
    margin-right: 10px;
}

/* ============================================
   ÉCRAN 2 — ANALYSE BIOMÉTRIQUE
   ============================================ */

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #e74c3c; }
.terminal-dot.yellow { background: #f1c40f; }
.terminal-dot.green { background: #2ecc71; }

.terminal-title {
    margin-left: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.title-terminal {
    font-family: var(--font-terminal);
    font-size: 1.5rem;
    color: var(--radiation-green);
    text-align: left;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--radiation-green);
}

/* ============================================
   SCANNER BIOMÉTRIQUE
   ============================================ */

.biometric-screen {
    max-width: 850px;
}

.biometric-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .biometric-container {
        grid-template-columns: 1fr;
    }
}

.biometric-scanner {
    position: relative;
    background: var(--bg-terminal);
    border: 2px solid var(--radiation-green);
    padding: 10px;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.2),
        inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.scan-photo-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #0a0a0a;
}

.scan-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 2s ease;
}

.scan-photo.scanned {
    filter: grayscale(0%) contrast(1.2) saturate(1.1);
}

/* Effets de scan */
.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scan-beam-horizontal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(180deg, 
        transparent, 
        var(--radiation-green), 
        rgba(0, 255, 65, 0.8),
        var(--radiation-green),
        transparent
    );
    box-shadow: 
        0 0 20px var(--radiation-green),
        0 0 40px var(--radiation-green),
        0 0 60px rgba(0, 255, 65, 0.5);
    animation: scan-beam-move 2.5s ease-in-out infinite;
    z-index: 10;
}

@keyframes scan-beam-move {
    0%, 100% { top: 0; opacity: 1; }
    48% { top: calc(100% - 4px); opacity: 1; }
    50% { top: calc(100% - 4px); opacity: 0.5; }
    52% { top: calc(100% - 4px); opacity: 1; }
    100% { top: 0; opacity: 1; }
}

.scan-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: grid-pulse 3s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Coins du scan */
.scan-corners .corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--radiation-green);
    border-style: solid;
    border-width: 0;
}

.corner.tl {
    top: 10px; left: 10px;
    border-top-width: 3px;
    border-left-width: 3px;
    animation: corner-pulse 1.5s infinite;
}

.corner.tr {
    top: 10px; right: 10px;
    border-top-width: 3px;
    border-right-width: 3px;
    animation: corner-pulse 1.5s infinite 0.2s;
}

.corner.bl {
    bottom: 10px; left: 10px;
    border-bottom-width: 3px;
    border-left-width: 3px;
    animation: corner-pulse 1.5s infinite 0.4s;
}

.corner.br {
    bottom: 10px; right: 10px;
    border-bottom-width: 3px;
    border-right-width: 3px;
    animation: corner-pulse 1.5s infinite 0.6s;
}

@keyframes corner-pulse {
    0%, 100% { opacity: 0.5; box-shadow: none; }
    50% { opacity: 1; box-shadow: 0 0 10px var(--radiation-green); }
}

/* Boîtes de détection de visage */
.face-detection-box {
    position: absolute;
    top: 26%;
    left: 10%;
    width: 28%;
    height: 50%;
    border: 2px solid var(--nuke-yellow);
    opacity: 0;
    animation: face-detect 0.5s ease-out 2s forwards;
}

.face-detection-box::before {
    content: 'SUJET 01';
    position: absolute;
    top: -22px;
    left: 0;
    font-size: 0.6rem;
    color: var(--nuke-yellow);
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
}

.face-detection-box::after {
    content: 'ANALYSÉ';
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 0.55rem;
    color: var(--radiation-green);
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    opacity: 0;
    animation: status-appear 0.3s ease-out 3.5s forwards;
}

.face-detection-box.box2 {
    left: auto;
    right: 1%;
    top: 3%;
    width: 34%;
    height: 55%;
    animation-delay: 2.5s;
}

.face-detection-box.box2::before {
    content: 'SUJET 02';
    left: 0;
    right: auto;
}

.face-detection-box.box2::after {
    animation-delay: 4s;
    right: auto;
    left: 0;
}

@keyframes face-detect {
    0% {
        opacity: 0;
        transform: scale(1.3);
    }
    50% {
        opacity: 1;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes status-appear {
    to { opacity: 1; }
}

/* Points d'analyse biométrique */
.bio-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bio-point {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0;
}

.bio-point::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--danger-red);
    border-radius: 50%;
    animation: point-ping 1.5s ease-out infinite;
}

.bio-point::after {
    content: attr(data-label);
    position: absolute;
    top: -8px;
    left: 20px;
    white-space: nowrap;
    font-size: 0.6rem;
    color: var(--danger-red);
    background: rgba(0, 0, 0, 0.9);
    padding: 3px 8px;
    border-left: 2px solid var(--danger-red);
}

/* Points avec label à gauche (pour éviter d'être coupés) */
.bio-point.point-left::after {
    left: auto;
    right: 20px;
    border-left: none;
    border-right: 2px solid var(--danger-red);
}

.bio-point:nth-child(1) { animation: point-appear 0.4s ease-out 3s forwards; }
.bio-point:nth-child(2) { animation: point-appear 0.4s ease-out 3.3s forwards; }
.bio-point:nth-child(3) { animation: point-appear 0.4s ease-out 3.6s forwards; }
.bio-point:nth-child(4) { animation: point-appear 0.4s ease-out 3.9s forwards; }

@keyframes point-appear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes point-ping {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6);
    }
    100% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }
}

/* Données en overlay */
.scan-data-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 20;
}

.scan-data-overlay .data-line {
    font-size: 0.65rem;
    color: var(--radiation-green);
    background: rgba(0, 0, 0, 0.8);
    padding: 3px 8px;
    margin-bottom: 4px;
    opacity: 0;
    transform: translateX(-20px);
}

.data-line:nth-child(1) { animation: data-slide 0.5s ease-out 1.5s forwards; }
.data-line:nth-child(2) { animation: data-slide 0.5s ease-out 1.8s forwards; }

@keyframes data-slide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* HUD du scanner */
.scanner-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 15px;
}

.hud-element {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hud-element .hud-label {
    font-size: 0.55rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.hud-element .hud-value {
    font-size: 0.75rem;
    color: var(--radiation-green);
    font-family: var(--font-terminal);
}

.hud-element .hud-value.status-active {
    color: var(--nuke-yellow);
    animation: blink-slow 2s infinite;
}

.hud-top-left { top: 15px; left: 20px; }
.hud-top-right { top: 15px; right: 20px; text-align: right; }
.hud-bottom-left { bottom: 50px; left: 20px; }
.hud-bottom-right { bottom: 50px; right: 20px; text-align: right; }

/* Console de diagnostic */
.diagnostic-console {
    background: var(--bg-terminal);
    border: 1px solid var(--radiation-green-dim);
    display: flex;
    flex-direction: column;
    max-height: 350px;
}

.console-header {
    background: rgba(0, 255, 65, 0.1);
    padding: 8px 12px;
    font-size: 0.7rem;
    color: var(--radiation-green);
    border-bottom: 1px solid var(--radiation-green-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-output {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 0.7rem;
    color: var(--radiation-green-dim);
    line-height: 1.6;
}

.console-output .log-line {
    margin-bottom: 3px;
    opacity: 0;
    animation: log-appear 0.2s forwards;
}

.console-output .log-line.warning {
    color: var(--warning-amber);
}

.console-output .log-line.error {
    color: var(--danger-red);
}

.console-output .log-line.success {
    color: var(--radiation-green);
}

@keyframes log-appear {
    to { opacity: 1; }
}

/* Résultats biométriques */
.biometric-results {
    background: var(--bg-panel);
    border: 1px solid var(--danger-red-dim);
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.biometric-results.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-header {
    background: rgba(231, 76, 60, 0.2);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--danger-red);
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--danger-red-dim);
}

.result-icon {
    font-size: 1.2rem;
    animation: icon-pulse 1s infinite;
}

@keyframes icon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

@media (max-width: 600px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.result-item {
    opacity: 0;
    transform: translateX(-20px);
}

.result-item.visible {
    animation: result-slide 0.5s ease-out forwards;
}

@keyframes result-slide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.result-bar {
    height: 8px;
    background: #1a1a1a;
    margin-bottom: 6px;
    overflow: hidden;
    border: 1px solid #333;
}

.result-fill {
    height: 100%;
    width: 0%;
    transition: width 1.5s ease-out;
}

.result-fill.critical { background: linear-gradient(90deg, var(--danger-red), #ff6b6b); }
.result-fill.high { background: linear-gradient(90deg, var(--warning-amber), #f5b041); }
.result-fill.depleted { background: linear-gradient(90deg, #8e44ad, #9b59b6); }
.result-fill.low { background: linear-gradient(90deg, var(--radiation-green-dim), var(--radiation-green)); }

.result-value {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.critical-text { color: var(--danger-red); font-weight: bold; }
.high-text { color: var(--warning-amber); font-weight: bold; }
.depleted-text { color: #9b59b6; font-weight: bold; }
.low-text { color: var(--radiation-green); font-weight: bold; }

/* Verdict amélioré */
.verdict-box {
    background: var(--bg-danger);
    border: 1px solid var(--danger-red-dim);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease-out;
}

.verdict-box.visible {
    opacity: 1;
    transform: scale(1);
}

.verdict-icon {
    font-size: 2.5rem;
    animation: verdict-pulse 1s infinite;
}

@keyframes verdict-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.verdict-content {
    flex: 1;
}

.verdict-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--danger-red);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.verdict-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 5px;
}

.verdict-box strong {
    color: var(--danger-red);
}

.btn-terminal {
    background: var(--radiation-green);
    border: none;
    color: var(--bg-bunker);
    padding: 15px 40px;
    font-family: var(--font-terminal);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0;
}

.btn-terminal.visible {
    opacity: 1;
    animation: button-appear 0.5s ease-out;
}

@keyframes button-appear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-terminal:hover {
    box-shadow: 0 0 30px var(--radiation-green);
    transform: translateY(-2px);
}

/* ============================================
   ÉCRAN 3 — MENACES
   ============================================ */

.title-danger {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--nuke-yellow);
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--nuke-yellow);
}

/* Radar */
.threat-radar {
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    position: relative;
    border-radius: 50%;
    background: var(--bg-terminal);
    border: 2px solid var(--radiation-green-dim);
}

.radar-circle {
    position: absolute;
    border: 1px solid var(--radiation-green-dim);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.r1 { width: 33%; height: 33%; }
.r2 { width: 66%; height: 66%; }
.r3 { width: 100%; height: 100%; }

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--radiation-green), transparent);
    transform-origin: left center;
    animation: radar-sweep 3s linear infinite;
}

@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--radiation-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Threat Blips */
.threat-blip {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: blip-pulse 1.5s infinite;
}

@keyframes blip-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.blip-dot {
    width: 10px;
    height: 10px;
    background: var(--danger-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--danger-red);
}

.blip-label {
    font-size: 0.6rem;
    color: var(--danger-red);
    white-space: nowrap;
}

/* Threat Analysis */
.threat-analysis {
    background: var(--bg-panel);
    border-left: 3px solid var(--warning-amber);
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.analysis-line {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.line-prefix {
    color: var(--warning-amber);
    font-weight: bold;
}

.btn-danger {
    background: transparent;
    border: 2px solid var(--warning-amber);
    color: var(--warning-amber);
    padding: 15px 40px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-danger:hover {
    background: var(--warning-amber);
    color: var(--bg-bunker);
    box-shadow: 0 0 30px var(--warning-amber);
}

/* ============================================
   ÉCRAN 4 — STRATÉGIE
   ============================================ */

.title-tactical {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--safe-blue);
    margin-bottom: 30px;
}

.blueprint-container {
    background: var(--bg-panel);
    border: 1px solid var(--safe-blue);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(52, 152, 219, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 152, 219, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.strategy-steps {
    position: relative;
    z-index: 1;
}

.strategy-node {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid var(--safe-blue);
    position: relative;
}

.node-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--safe-blue);
    min-width: 50px;
}

.node-content {
    text-align: left;
}

.node-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.node-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.node-connector {
    position: absolute;
    left: 40px;
    bottom: -15px;
    width: 2px;
    height: 15px;
    background: var(--safe-blue);
}

.strategy-node:last-child .node-connector {
    display: none;
}

/* Protocol Stamp */
.protocol-stamp {
    margin-bottom: 30px;
}

.stamp-border {
    display: inline-block;
    border: 3px solid var(--radiation-green);
    padding: 15px 30px;
    transform: rotate(-5deg);
}

.stamp-text {
    display: block;
    font-family: var(--font-military);
    font-size: 1.5rem;
    color: var(--radiation-green);
    letter-spacing: 0.2em;
}

.stamp-date {
    font-size: 0.7rem;
    color: var(--radiation-green-dim);
}

.btn-tactical {
    background: var(--safe-blue);
    border: none;
    color: #fff;
    padding: 15px 40px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-tactical:hover {
    box-shadow: 0 0 30px var(--safe-blue);
    transform: translateY(-2px);
}

/* ============================================
   ÉCRAN 5 — ÉQUIPEMENT (DRAG & DROP)
   ============================================ */

.equipment-screen {
    max-width: 900px;
}

.title-inventory {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--nuke-yellow);
    margin-bottom: 10px;
}

.inventory-instruction {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.inventory-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

@media (max-width: 700px) {
    .inventory-container {
        grid-template-columns: 1fr;
    }
}

.zone-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-glow);
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.survival-item {
    background: var(--bg-panel);
    border: 1px solid var(--radiation-green-dim);
    padding: 15px 10px;
    cursor: grab;
    transition: all var(--transition-fast);
    position: relative;
}

.survival-item:hover {
    border-color: var(--radiation-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.2);
}

.survival-item.trap {
    border-color: var(--danger-red-dim);
}

.survival-item.trap:hover {
    border-color: var(--danger-red);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.2);
}

.survival-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.item-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.item-name {
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.item-tag {
    font-size: 0.55rem;
    padding: 2px 6px;
    letter-spacing: 0.1em;
}

.item-tag.essential {
    background: var(--radiation-green);
    color: var(--bg-bunker);
}

.item-tag.danger {
    background: var(--danger-red);
    color: #fff;
}

/* Backpack */
.backpack-zone {
    display: flex;
    flex-direction: column;
}

.backpack {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-panel);
    border: 2px dashed var(--radiation-green-dim);
    transition: all var(--transition-fast);
    min-height: 300px;
}

.backpack.drag-over {
    border-color: var(--radiation-green);
    background: rgba(0, 255, 65, 0.05);
    box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.1);
}

.backpack.drag-over-danger {
    border-color: var(--danger-red);
    background: rgba(231, 76, 60, 0.05);
}

.backpack-visual {
    margin-bottom: 20px;
}

.backpack-body {
    width: 80px;
    height: 100px;
    background: #2a2a2a;
    border-radius: 10px 10px 15px 15px;
    position: relative;
    border: 2px solid #444;
}

.backpack-pocket {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 30px;
    background: #333;
    border: 1px solid #444;
    border-radius: 5px;
}

.backpack-straps {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background: #444;
    border-radius: 5px 5px 0 0;
}

/* Backpack Slots */
.backpack-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.slot {
    aspect-ratio: 1;
    background: rgba(0, 255, 65, 0.05);
    border: 1px dashed var(--radiation-green-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
    min-height: 70px;
}

.slot.empty .slot-label {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.slot.filled {
    background: rgba(0, 255, 65, 0.1);
    border-style: solid;
}

.slot.filled .slot-label {
    display: none;
}

.slot .item-in-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.slot .item-in-slot .item-icon {
    font-size: 1.5rem;
    margin: 0;
}

.slot .item-in-slot .item-name {
    font-size: 0.6rem;
    margin: 0;
}

/* Pack Status */
.pack-status {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pack-progress {
    flex: 1;
    height: 6px;
    background: #1a1a1a;
    overflow: hidden;
}

.pack-bar {
    height: 100%;
    background: var(--radiation-green);
    width: 0%;
    transition: width var(--transition-normal);
}

.pack-text {
    font-size: 0.75rem;
    color: var(--radiation-green);
    white-space: nowrap;
}

/* Pack Feedback */
.pack-feedback {
    min-height: 40px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-feedback.error {
    color: var(--danger-red);
    animation: shake 0.5s;
}

.pack-feedback.success {
    color: var(--radiation-green);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Inventory Button */
.btn-inventory {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
    padding: 15px 40px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: not-allowed;
    transition: all var(--transition-fast);
}

.btn-inventory:not(:disabled) {
    border-color: var(--radiation-green);
    color: var(--radiation-green);
    cursor: pointer;
}

.btn-inventory:not(:disabled) .lock-icon {
    display: none;
}

.btn-inventory:not(:disabled):hover {
    background: var(--radiation-green);
    color: var(--bg-bunker);
    box-shadow: 0 0 30px var(--radiation-green);
}

/* ============================================
   ÉCRAN 6 — LOCALISATION
   ============================================ */

.title-location {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--radiation-green);
    margin-bottom: 30px;
}

/* Map Container */
.map-container {
    width: 100%;
    aspect-ratio: 16/10;
    max-height: 350px;
    background: var(--bg-terminal);
    border: 1px solid var(--radiation-green-dim);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.map-grid .grid-line {
    position: absolute;
    background: var(--radiation-green-dim);
    opacity: 0.3;
}

.grid-line.horizontal {
    left: 0;
    right: 0;
    height: 1px;
}

.grid-line.vertical {
    top: 0;
    bottom: 0;
    width: 1px;
}

/* Scan Beam */
.scan-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: scan-beam 3s linear infinite;
}

@keyframes scan-beam {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Location Markers */
.marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transform: translate(-50%, -50%);
}

.marker-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
}

.marker.danger .marker-icon {
    background: var(--danger-red);
    animation: marker-pulse 1.5s infinite;
}

.marker.safe .marker-icon {
    background: var(--radiation-green);
    color: var(--bg-bunker);
    animation: marker-pulse-safe 1s infinite;
}

@keyframes marker-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5); }
    50% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
}

@keyframes marker-pulse-safe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.5); }
    50% { box-shadow: 0 0 0 20px rgba(0, 255, 65, 0); }
}

.marker-label {
    font-size: 0.6rem;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.marker.danger .marker-label { color: var(--danger-red); }
.marker.safe .marker-label { color: var(--radiation-green); }

/* Coordinates */
.coordinates-display {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 20px;
    font-size: 0.75rem;
    color: var(--radiation-green);
    font-family: var(--font-terminal);
}

/* Location Criteria */
.location-criteria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.criteria-check {
    font-size: 0.8rem;
    padding: 5px 12px;
    background: var(--bg-panel);
    border: 1px solid var(--radiation-green-dim);
    color: var(--text-secondary);
    opacity: 0;
    animation: criteria-appear 0.5s forwards;
}

.criteria-check.done {
    color: var(--radiation-green);
    border-color: var(--radiation-green);
}

@keyframes criteria-appear {
    to { opacity: 1; }
}

.criteria-check:nth-child(1) { animation-delay: 0.2s; }
.criteria-check:nth-child(2) { animation-delay: 0.4s; }
.criteria-check:nth-child(3) { animation-delay: 0.6s; }
.criteria-check:nth-child(4) { animation-delay: 0.8s; }
.criteria-check:nth-child(5) { animation-delay: 1s; }

/* Location Status */
.location-status {
    margin-bottom: 25px;
}

.status-scanning {
    font-size: 0.9rem;
    color: var(--radiation-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.scan-dots span {
    animation: dot-blink 1.5s infinite;
}

.scan-dots span:nth-child(2) { animation-delay: 0.3s; }
.scan-dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes dot-blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.btn-location {
    background: var(--radiation-green);
    border: none;
    color: var(--bg-bunker);
    padding: 15px 40px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    animation: button-glow 2s infinite;
}

@keyframes button-glow {
    0%, 100% { box-shadow: 0 0 20px var(--radiation-green); }
    50% { box-shadow: 0 0 40px var(--radiation-green); }
}

.btn-location:hover {
    transform: scale(1.05);
}

/* ============================================
   ÉCRAN 7 — RÉVÉLATION
   ============================================ */

.revelation-screen {
    max-width: 800px;
}

/* Success Burst */
.success-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.burst-ring {
    position: absolute;
    border: 2px solid var(--radiation-green);
    border-radius: 50%;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.burst-ring.r1 {
    width: 100px;
    height: 100px;
    animation: burst 1.5s ease-out 0.5s;
}

.burst-ring.r2 {
    width: 200px;
    height: 200px;
    animation: burst 1.5s ease-out 0.7s;
}

.burst-ring.r3 {
    width: 300px;
    height: 300px;
    animation: burst 1.5s ease-out 0.9s;
}

@keyframes burst {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Mission Badge */
.mission-badge {
    margin-bottom: 30px;
    animation: badge-drop 0.8s ease-out;
}

@keyframes badge-drop {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.badge-outer {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border: 3px solid var(--nuke-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badge-spin 20s linear infinite;
}

@keyframes badge-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-inner {
    width: 80px;
    height: 80px;
    background: var(--nuke-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badge-spin 20s linear infinite reverse;
}

.badge-icon {
    font-size: 2.5rem;
}

.badge-banner {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--nuke-yellow);
    letter-spacing: 0.2em;
}

/* Title Revelation */
.title-revelation {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--radiation-green);
    margin-bottom: 30px;
    text-shadow: 0 0 30px var(--radiation-green);
    animation: title-reveal 1s ease-out 0.5s both;
}

@keyframes title-reveal {
    0% {
        opacity: 0;
        letter-spacing: 0.5em;
    }
    100% {
        opacity: 1;
        letter-spacing: 0.1em;
    }
}

/* Chalet Reveal */
.chalet-reveal {
    margin-bottom: 30px;
    animation: chalet-reveal 1.5s ease-out 1s both;
}

@keyframes chalet-reveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal-frame {
    position: relative;
    padding: 15px;
    background: var(--bg-panel);
    border: 1px solid var(--radiation-green);
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--nuke-yellow);
}

.frame-corner.tl { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.frame-corner.tr { top: -5px; right: -5px; border-left: none; border-bottom: none; }
.frame-corner.bl { bottom: -5px; left: -5px; border-right: none; border-top: none; }
.frame-corner.br { bottom: -5px; right: -5px; border-left: none; border-top: none; }

.chalet-image-container {
    position: relative;
    overflow: hidden;
    background: #111;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chalet-photo {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(20%) contrast(1.1);
    animation: image-flicker 0.1s infinite;
}

@keyframes image-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

.image-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 255, 65, 0.3);
    animation: image-scan 3s linear infinite;
}

@keyframes image-scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.image-glitch {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.location-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    font-size: 0.7rem;
    color: var(--radiation-green);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    animation: features-appear 0.8s ease-out 1.5s both;
}

@keyframes features-appear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--radiation-green-dim);
    padding: 15px 10px;
    transition: all var(--transition-fast);
}

.feature-card:hover {
    border-color: var(--radiation-green);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.feature-name {
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.feature-status {
    font-size: 0.6rem;
    padding: 2px 6px;
    display: inline-block;
}

.feature-status.online {
    background: var(--radiation-green);
    color: var(--bg-bunker);
}

/* Mission Briefing */
.mission-briefing {
    background: var(--bg-panel);
    border: 1px solid var(--nuke-yellow);
    margin-bottom: 25px;
    animation: briefing-appear 0.8s ease-out 2s both;
}

@keyframes briefing-appear {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.briefing-header {
    background: var(--nuke-yellow);
    color: var(--bg-bunker);
    padding: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.briefing-content {
    padding: 20px;
    text-align: left;
}

.briefing-line {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.briefing-line strong {
    color: var(--radiation-green);
}

.briefing-main {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--nuke-yellow);
    font-family: var(--font-display);
    text-align: center;
}

/* Final Status */
.final-status {
    margin-bottom: 30px;
    animation: status-flash 0.5s ease-out 2.5s both;
}

@keyframes status-flash {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.status-large {
    display: inline-block;
    padding: 15px 40px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.1em;
}

.status-large.success {
    background: var(--radiation-green);
    color: var(--bg-bunker);
    box-shadow: 0 0 40px var(--radiation-green);
}

/* Christmas Message */
.christmas-message {
    animation: christmas-appear 1s ease-out 3s both;
}

@keyframes christmas-appear {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.message-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.message-main {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--nuke-yellow);
    margin-bottom: 10px;
    text-shadow: 0 0 30px var(--nuke-yellow);
}

.message-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Signature */
.signature {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    animation: signature-appear 1s ease-out 3.5s both;
}

@keyframes signature-appear {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.signature p {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   INDICATEUR DE PROGRESSION
   ============================================ */

.progress-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.progress-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #333;
    border: 1px solid #444;
    transition: all var(--transition-fast);
}

.dot.active {
    background: var(--radiation-green);
    border-color: var(--radiation-green);
    box-shadow: 0 0 10px var(--radiation-green);
}

.dot.completed {
    background: var(--radiation-green-dim);
    border-color: var(--radiation-green-dim);
}

.progress-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .geiger-counter {
        top: auto;
        bottom: 80px;
        right: 10px;
        padding: 8px 10px;
        min-width: auto;
    }
    
    .audio-toggle {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .title-emergency {
        font-size: 1.5rem;
    }
    
    .countdown-unit {
        padding: 10px 12px;
        font-size: 1.3rem;
    }
    
    .nuclear-symbol {
        width: 100px;
        height: 100px;
    }
    
    .threat-radar {
        width: 250px;
        height: 250px;
    }
    
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .backpack-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .slot {
        min-height: 60px;
    }
    
    .message-main {
        font-size: 1.8rem;
    }
    
    .title-revelation {
        font-size: 1.4rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ANIMATION SATELLITE / GOOGLE EARTH STYLE
   ============================================ */

.satellite-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

.satellite-viewport {
    width: 100%;
    aspect-ratio: 16/10;
    background: #000;
    border: 2px solid var(--radiation-green);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.3),
        inset 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Couches de l'animation */
.sat-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.8s ease, transform 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Couche Espace */
.layer-space {
    background: radial-gradient(ellipse at center, #0a1628 0%, #000 100%);
    opacity: 1;
}

.layer-space .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, #fff 100%, transparent),
        radial-gradient(1px 1px at 30% 40%, #fff 100%, transparent),
        radial-gradient(1px 1px at 50% 10%, #fff 100%, transparent),
        radial-gradient(1px 1px at 70% 60%, #fff 100%, transparent),
        radial-gradient(1px 1px at 90% 30%, #fff 100%, transparent),
        radial-gradient(1px 1px at 15% 70%, #fff 100%, transparent),
        radial-gradient(1px 1px at 45% 80%, #fff 100%, transparent),
        radial-gradient(1px 1px at 85% 85%, #fff 100%, transparent),
        radial-gradient(2px 2px at 25% 15%, rgba(255,255,255,0.8) 100%, transparent),
        radial-gradient(2px 2px at 65% 45%, rgba(255,255,255,0.8) 100%, transparent);
}

.layer-space .earth-glow {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        #4a90c2 0%, 
        #2e5a7e 30%,
        #1a3a52 60%,
        transparent 70%
    );
    box-shadow: 
        0 0 60px rgba(74, 144, 194, 0.5),
        inset -20px -20px 40px rgba(0, 0, 0, 0.4);
    animation: earth-pulse 3s ease-in-out infinite;
}

@keyframes earth-pulse {
    0%, 100% { box-shadow: 0 0 60px rgba(74, 144, 194, 0.5); }
    50% { box-shadow: 0 0 80px rgba(74, 144, 194, 0.7); }
}

/* Couche Europe */
.layer-europe {
    background: linear-gradient(180deg, #1a3a52 0%, #2d5a3d 50%, #1a3a52 100%);
}

.layer-europe .continent-shape {
    width: 80%;
    height: 80%;
    background: 
        radial-gradient(ellipse at 60% 40%, #3d6b4f 0%, #2d4a3d 50%, #1a3a30 100%);
    clip-path: polygon(
        30% 10%, 45% 5%, 60% 8%, 75% 15%, 85% 25%,
        90% 40%, 88% 55%, 80% 70%, 65% 80%, 50% 85%,
        35% 82%, 20% 70%, 15% 55%, 18% 40%, 25% 25%
    );
    position: relative;
}

.layer-europe .cloud-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.3) 0%, transparent 30%),
        radial-gradient(ellipse at 70% 60%, rgba(255,255,255,0.2) 0%, transparent 25%),
        radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.25) 0%, transparent 20%);
    animation: clouds-drift 20s linear infinite;
}

@keyframes clouds-drift {
    0% { transform: translateX(-5%); }
    100% { transform: translateX(5%); }
}

/* Couche France */
.layer-france {
    background: linear-gradient(180deg, #2d5a4d 0%, #3d7a5f 50%, #2d5a4d 100%);
}

.layer-france .france-shape {
    width: 70%;
    height: 75%;
    background: linear-gradient(135deg, #4a8f6a 0%, #3d7a5f 50%, #2d5a4d 100%);
    clip-path: polygon(
        40% 5%, 55% 3%, 70% 8%, 80% 20%, 85% 35%,
        82% 50%, 75% 65%, 60% 80%, 50% 90%, 40% 88%,
        30% 75%, 20% 60%, 15% 45%, 18% 30%, 28% 15%
    );
    position: relative;
}

.layer-france .region-highlight {
    position: absolute;
    top: 25%;
    right: 25%;
    width: 30px;
    height: 30px;
    background: rgba(0, 255, 65, 0.3);
    border-radius: 50%;
    animation: region-pulse 1s ease-in-out infinite;
}

@keyframes region-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

/* Couche Région */
.layer-region {
    background: #2d4a3d;
}

.layer-region .terrain-texture {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, #3d6b4f 25%, transparent 25%),
        linear-gradient(-45deg, #3d6b4f 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #2d5a4d 75%),
        linear-gradient(-45deg, transparent 75%, #2d5a4d 75%);
    background-size: 20px 20px;
    opacity: 0.5;
}

.layer-region .forest-areas {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 40%, #1a4030 0%, transparent 40%),
        radial-gradient(ellipse at 60% 30%, #1a4030 0%, transparent 35%),
        radial-gradient(ellipse at 45% 70%, #1a4030 0%, transparent 45%),
        radial-gradient(ellipse at 70% 60%, #1a4030 0%, transparent 30%);
}

/* Couche Destination (Photo) */
.layer-destination {
    background: #1a1a1a;
}

.layer-destination .chalet-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.1);
}

/* Marqueur de localisation */
.location-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    opacity: 0;
}

.location-marker.visible {
    opacity: 1;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--danger-red);
    border: 3px solid #fff;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px var(--danger-red);
}

.marker-ping {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--danger-red);
    border-radius: 50%;
    animation: marker-ping-anim 1.5s ease-out infinite;
}

.marker-ping.ping-2 {
    animation-delay: 0.5s;
}

@keyframes marker-ping-anim {
    0% {
        width: 16px;
        height: 16px;
        opacity: 1;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* HUD Overlay */
.satellite-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 60;
}

.hud-corner {
    position: absolute;
    font-size: 0.7rem;
    color: var(--radiation-green);
    font-family: var(--font-terminal);
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 0 5px var(--radiation-green);
}

.hud-tl { top: 10px; left: 10px; }
.hud-tr { top: 10px; right: 10px; }
.hud-bl { bottom: 10px; left: 10px; }
.hud-br { bottom: 10px; right: 10px; }

.hud-bracket {
    opacity: 0.5;
}

.hud-coords {
    font-size: 0.65rem;
}

.hud-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.crosshair-h, .crosshair-v {
    position: absolute;
    background: var(--radiation-green);
    opacity: 0.6;
}

.crosshair-h {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.crosshair-v {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
}

.hud-status {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--nuke-yellow);
    letter-spacing: 0.1em;
    animation: status-blink 1s infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Effets de scan */
.sat-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 65, 0.5), 
        transparent
    );
    animation: sat-scan 2s linear infinite;
    z-index: 55;
}

@keyframes sat-scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.sat-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 56;
    opacity: 0.3;
    animation: noise-flicker 0.1s infinite;
}

@keyframes noise-flicker {
    0% { opacity: 0.3; }
    50% { opacity: 0.25; }
    100% { opacity: 0.3; }
}

/* Bouton Skip */
.btn-skip-anim {
    position: absolute;
    bottom: -40px;
    right: 0;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 5px 15px;
    font-family: var(--font-terminal);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0;
    animation: fadeInBtn 1s 2s forwards;
}

@keyframes fadeInBtn {
    to { opacity: 1; }
}

.btn-skip-anim:hover {
    border-color: var(--radiation-green);
    color: var(--radiation-green);
}

.btn-skip-anim.hidden {
    display: none;
}

/* États d'animation des couches */
.layer-space.zoom-out {
    transform: scale(8);
    opacity: 0;
}

.layer-europe.active {
    opacity: 1;
}

.layer-europe.zoom-out {
    transform: scale(10);
    opacity: 0;
}

.layer-france.active {
    opacity: 1;
}

.layer-france.zoom-out {
    transform: scale(12);
    opacity: 0;
}

.layer-region.active {
    opacity: 1;
}

.layer-region.zoom-out {
    transform: scale(15);
    opacity: 0;
}

.layer-destination.active {
    opacity: 1;
    animation: destination-reveal 1s ease-out forwards;
}

@keyframes destination-reveal {
    0% {
        opacity: 0;
        filter: blur(10px) brightness(2);
    }
    50% {
        filter: blur(5px) brightness(1.5);
    }
    100% {
        opacity: 1;
        filter: blur(0) brightness(1);
    }
}

/* Responsive satellite */
@media (max-width: 600px) {
    .satellite-viewport {
        aspect-ratio: 4/3;
    }
    
    .hud-corner {
        font-size: 0.6rem;
    }
    
    .hud-status {
        font-size: 0.65rem;
        bottom: 30px;
    }
    
    .layer-space .earth-glow {
        width: 100px;
        height: 100px;
    }
    
    .btn-skip-anim {
        font-size: 0.6rem;
        padding: 4px 10px;
    }
}

/* ============================================
   PAGE D'AUTHENTIFICATION
   ============================================ */

.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-bunker);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-screen.hidden {
    display: none;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    position: relative;
}

.auth-static-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
    animation: noise-flicker 0.1s infinite;
}

.auth-header {
    margin-bottom: 30px;
}

.auth-warning-bar {
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--nuke-yellow) 0px,
        var(--nuke-yellow) 15px,
        #000 15px,
        #000 30px
    );
    animation: stripes-scroll 1s linear infinite;
    margin-bottom: 15px;
}

.auth-classification {
    text-align: center;
    font-size: 0.75rem;
    color: var(--danger-red);
    letter-spacing: 0.2em;
    padding: 10px;
    border: 1px solid var(--danger-red-dim);
    background: rgba(231, 76, 60, 0.1);
}

.auth-terminal {
    background: var(--bg-terminal);
    border: 2px solid var(--radiation-green-dim);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.terminal-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--radiation-green);
    opacity: 0.5;
    animation: scan-move 3s linear infinite;
}

/* Lock Icon */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.lock-icon-large {
    position: relative;
    width: 60px;
    height: 70px;
}

.lock-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 40px;
    background: var(--radiation-green);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-hole {
    width: 12px;
    height: 12px;
    background: var(--bg-bunker);
    border-radius: 50%;
    position: relative;
}

.lock-hole::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--bg-bunker);
}

.lock-shackle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 35px;
    border: 5px solid var(--radiation-green);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--radiation-green);
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 20px var(--radiation-green);
    letter-spacing: 0.1em;
}

.auth-message {
    margin-bottom: 30px;
    text-align: left;
}

.auth-line {
    font-size: 0.85rem;
    color: var(--radiation-green-dim);
    margin-bottom: 8px;
    opacity: 0;
    animation: line-appear 0.5s forwards;
}

.auth-line:nth-child(1) { animation-delay: 0.3s; }
.auth-line:nth-child(2) { animation-delay: 0.6s; }
.auth-line:nth-child(3) { animation-delay: 0.9s; }

/* Form */
.auth-form {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    text-align: center;
}

.auth-input-container {
    display: flex;
    align-items: center;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--radiation-green-dim);
    padding: 5px 15px;
    margin-bottom: 15px;
}

.input-prefix {
    color: var(--radiation-green);
    font-size: 1.2rem;
    margin-right: 10px;
}

.auth-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--radiation-green);
    font-family: var(--font-terminal);
    font-size: 1.2rem;
    padding: 10px 0;
    outline: none;
    letter-spacing: 0.3em;
}

.auth-input::placeholder {
    color: var(--radiation-green-dim);
    opacity: 0.5;
}

.auth-input.shake {
    animation: input-shake 0.5s;
    border-color: var(--danger-red);
}

@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

.input-cursor {
    width: 10px;
    height: 20px;
    background: var(--radiation-green);
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Error Message */
.auth-error {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--danger-red-dim);
    margin-bottom: 15px;
    animation: shake 0.5s;
}

.auth-error.visible {
    display: flex;
}

.error-icon {
    color: var(--danger-red);
    font-size: 1rem;
}

.error-text {
    color: var(--danger-red);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Submit Button */
.auth-submit {
    width: 100%;
    background: transparent;
    border: 2px solid var(--radiation-green);
    color: var(--radiation-green);
    padding: 15px 30px;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-submit:hover {
    background: var(--radiation-green);
    color: var(--bg-bunker);
    box-shadow: 0 0 30px var(--border-glow);
}

.submit-icon {
    font-size: 1.2rem;
}

/* Footer */
.auth-footer {
    margin-top: 25px;
    text-align: center;
}

.auth-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Decorations */
.auth-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.deco-line {
    position: absolute;
    width: 1px;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--radiation-green-dim),
        transparent
    );
    opacity: 0.3;
}

.deco-line.left {
    left: -50px;
    animation: deco-scroll 10s linear infinite;
}

.deco-line.right {
    right: -50px;
    animation: deco-scroll 10s linear infinite reverse;
}

@keyframes deco-scroll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Success Animation */
.auth-terminal.success {
    animation: auth-success 0.5s ease-out;
}

@keyframes auth-success {
    0% { border-color: var(--radiation-green-dim); }
    50% { border-color: var(--radiation-green); box-shadow: 0 0 30px var(--radiation-green); }
    100% { border-color: var(--radiation-green); }
}

/* Responsive Auth */
@media (max-width: 500px) {
    .auth-terminal {
        padding: 20px;
    }
    
    .auth-title {
        font-size: 1.4rem;
    }
    
    .auth-input {
        font-size: 1rem;
    }
    
    .lock-icon-large {
        width: 50px;
        height: 60px;
    }
    
    .lock-body {
        width: 40px;
        height: 32px;
    }
    
    .lock-shackle {
        width: 24px;
        height: 28px;
    }
}

/* ============================================
   ÉCRAN 4 — ÉNIGME ORDINATEUR
   ============================================ */

.computer-puzzle-screen {
    max-width: 800px;
}

.title-computer {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--radiation-green);
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--radiation-green);
}

.computer-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Cadre de l'ordinateur */
.computer-frame {
    background: #1a1a1a;
    border: 3px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
}

/* Barre supérieure */
.computer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-bottom: 1px solid #333;
}

.topbar-dots {
    display: flex;
    gap: 8px;
}

.topbar-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #e74c3c; }
.dot-yellow { background: #f1c40f; }
.dot-green { background: #2ecc71; }

.topbar-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-terminal);
}

.topbar-time {
    font-size: 0.7rem;
    color: var(--radiation-green);
    font-family: var(--font-terminal);
}

/* Écran de l'ordinateur */
.computer-screen {
    background: linear-gradient(145deg, #0d1a0d 0%, #0a0f0a 100%);
    min-height: 350px;
    position: relative;
}

/* Barre de navigation */
.file-navbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(0, 255, 65, 0.05);
    border-bottom: 1px solid var(--radiation-green-dim);
}

.nav-btn {
    background: var(--bg-panel);
    border: 1px solid var(--radiation-green-dim);
    color: var(--radiation-green);
    padding: 5px 12px;
    font-family: var(--font-terminal);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-btn:hover:not(:disabled) {
    background: var(--radiation-green);
    color: var(--bg-bunker);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-path {
    font-family: var(--font-terminal);
    font-size: 0.8rem;
    color: var(--radiation-green-dim);
}

/* Explorateur de fichiers */
.file-explorer {
    padding: 20px;
    min-height: 280px;
}

.desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
}

.desktop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.desktop-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--radiation-green-dim);
    transform: translateY(-3px);
}

.desktop-item:active {
    transform: scale(0.95);
}

.desktop-item .item-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.desktop-item .item-name {
    font-size: 0.75rem;
    color: var(--text-primary);
    text-align: center;
    word-break: break-word;
}

.desktop-item.folder .item-icon {
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.3));
}

.desktop-item.file .item-icon {
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.3));
}

.desktop-item.secret {
    animation: secret-pulse 2s infinite;
}

@keyframes secret-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 208, 63, 0); }
    50% { box-shadow: 0 0 20px 5px rgba(244, 208, 63, 0.2); }
}

/* Visualiseur de fichier */
.file-viewer {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: var(--bg-panel);
    border: 2px solid var(--radiation-green);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
    animation: viewer-open 0.3s ease-out;
}

@keyframes viewer-open {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.viewer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--radiation-green);
    color: var(--bg-bunker);
}

.viewer-icon { font-size: 1rem; }

.viewer-filename {
    flex: 1;
    font-family: var(--font-terminal);
    font-size: 0.85rem;
    font-weight: bold;
}

.viewer-close {
    background: transparent;
    border: none;
    color: var(--bg-bunker);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    transition: transform var(--transition-fast);
}

.viewer-close:hover {
    transform: scale(1.2);
}

.viewer-content {
    padding: 20px;
    font-family: var(--font-terminal);
    font-size: 0.85rem;
    color: var(--radiation-green);
    line-height: 1.8;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    background: var(--bg-terminal);
}

.viewer-content .highlight {
    color: var(--nuke-yellow);
    font-weight: bold;
    background: rgba(244, 208, 63, 0.1);
    padding: 2px 6px;
}

/* Barre des tâches */
.computer-taskbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-top: 1px solid #333;
}

.taskbar-start {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--bg-panel);
    border: 1px solid #333;
    font-size: 0.75rem;
    color: var(--radiation-green);
}

.start-icon {
    font-size: 1rem;
}

.taskbar-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-item {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.status-item.unlocked {
    color: var(--radiation-green);
}

/* Zone de saisie du code */
.code-entry-box {
    background: var(--bg-panel);
    border: 1px solid var(--nuke-yellow);
    margin-bottom: 20px;
}

.code-entry-header {
    background: rgba(244, 208, 63, 0.1);
    padding: 10px 15px;
    font-size: 0.8rem;
    color: var(--nuke-yellow);
    border-bottom: 1px solid var(--nuke-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-entry-content {
    padding: 20px;
    text-align: center;
}

.code-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.code-input-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.code-input {
    background: var(--bg-terminal);
    border: 2px solid var(--radiation-green-dim);
    color: var(--radiation-green);
    font-family: var(--font-terminal);
    font-size: 1.2rem;
    padding: 10px 20px;
    text-align: center;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    width: 200px;
    outline: none;
    transition: all var(--transition-fast);
}

.code-input:focus {
    border-color: var(--radiation-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.code-submit {
    background: var(--radiation-green);
    border: none;
    color: var(--bg-bunker);
    font-family: var(--font-display);
    font-size: 0.85rem;
    padding: 10px 25px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.code-submit:hover {
    box-shadow: 0 0 20px var(--radiation-green);
    transform: translateY(-2px);
}

.code-error {
    font-size: 0.8rem;
    color: var(--danger-red);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.code-error.visible {
    opacity: 1;
    animation: shake 0.5s;
}

.code-entry-box.success {
    border-color: var(--radiation-green);
}

.code-entry-box.success .code-entry-header {
    background: rgba(0, 255, 65, 0.1);
    color: var(--radiation-green);
    border-color: var(--radiation-green);
}

.code-entry-box.success .code-input {
    border-color: var(--radiation-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* ============================================
   ÉCRAN 7 — ÉNIGME BUNKER / PUZZLE CADRANS
   ============================================ */

.bunker-puzzle-screen {
    max-width: 900px;
}

.title-bunker-lock {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--nuke-yellow);
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--nuke-yellow);
}

.bunker-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.bunker-lock-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    margin-bottom: 25px;
}

@media (max-width: 800px) {
    .bunker-lock-container {
        grid-template-columns: 1fr;
    }
}

/* Porte du bunker */
.bunker-door {
    position: relative;
}

.door-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 4px solid #333;
    border-radius: 10px;
    display: flex;
    overflow: hidden;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.5);
}

.door-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #2a2a2a 100%);
    border: 2px solid #444;
}

.left-panel {
    border-right: 1px solid #333;
    border-radius: 5px 0 0 5px;
}

.right-panel {
    border-left: 1px solid #333;
    border-radius: 0 5px 5px 0;
}

.panel-lines {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.02) 20px,
        rgba(255, 255, 255, 0.02) 21px
    );
}

.panel-rivets {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-rivets span {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #555 0%, #333 100%);
    border-radius: 50%;
    box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.5);
}

/* Mécanisme de verrouillage central */
.lock-mechanism {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
}

.lock-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--radiation-green-dim);
}

.outer-ring {
    width: 100%;
    height: 100%;
    animation: ring-rotate 20s linear infinite;
}

.ring-glow {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--radiation-green);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--radiation-green);
}

@keyframes ring-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.middle-ring {
    width: 80%;
    height: 80%;
    border-color: var(--nuke-yellow);
    opacity: 0.5;
}

.inner-ring {
    width: 60%;
    height: 60%;
    border-color: var(--danger-red);
    opacity: 0.3;
}

/* Cadrans */
.dial-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
}

.dial {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 3px solid var(--radiation-green-dim);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 15px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.dial:hover {
    border-color: var(--radiation-green);
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.dial:active {
    transform: scale(0.95);
}

#dial1 { top: 0; left: 50%; transform: translateX(-50%); }
#dial2 { top: 50%; right: 0; transform: translateY(-50%); }
#dial3 { bottom: 0; left: 50%; transform: translateX(-50%); }
#dial4 { top: 50%; left: 0; transform: translateY(-50%); }

#dial1:hover { transform: translateX(-50%) scale(1.05); }
#dial2:hover { transform: translateY(-50%) scale(1.05); }
#dial3:hover { transform: translateX(-50%) scale(1.05); }
#dial4:hover { transform: translateY(-50%) scale(1.05); }

.dial-symbols {
    font-size: 1.8rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dial-symbols .symbol {
    display: none;
}

.dial-symbols .symbol.active {
    display: block;
}

.dial-indicator {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--nuke-yellow);
}

.dial.correct {
    border-color: var(--radiation-green);
    box-shadow: 0 0 20px var(--radiation-green);
}

.dial.correct .dial-indicator {
    border-top-color: var(--radiation-green);
}

/* Centre du verrou */
.lock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, #2a2a2a 0%, #1a1a1a 100%);
    border: 3px solid var(--danger-red-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.center-icon {
    font-size: 2rem;
    transition: all 0.5s ease;
}

.lock-center.unlocked {
    border-color: var(--radiation-green);
    box-shadow: 0 0 30px var(--radiation-green);
}

.lock-center.unlocked .center-icon {
    transform: scale(1.2);
}

/* Indicateurs */
.lock-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.indicator {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ind-light {
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.indicator.active .ind-light {
    background: var(--radiation-green);
    box-shadow: 0 0 15px var(--radiation-green);
}

/* Panneau d'indices */
.clues-panel {
    background: var(--bg-panel);
    border: 1px solid var(--nuke-yellow);
}

.clues-header {
    background: rgba(244, 208, 63, 0.1);
    padding: 12px 15px;
    font-size: 0.8rem;
    color: var(--nuke-yellow);
    border-bottom: 1px solid var(--nuke-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.clues-content {
    padding: 15px;
}

.clue-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.clue-num {
    color: var(--nuke-yellow);
    font-weight: bold;
    min-width: 20px;
}

.clue-text strong {
    color: var(--radiation-green);
}

.clues-footer {
    padding: 10px 15px;
    border-top: 1px solid #333;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

/* Feedback */
.bunker-feedback {
    padding: 15px 25px;
    background: var(--bg-panel);
    border: 1px solid var(--radiation-green-dim);
    margin-bottom: 20px;
    text-align: center;
}

.feedback-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bunker-feedback.success {
    border-color: var(--radiation-green);
    background: rgba(0, 255, 65, 0.1);
}

.bunker-feedback.success .feedback-text {
    color: var(--radiation-green);
}

.bunker-feedback.error {
    border-color: var(--danger-red);
    background: rgba(231, 76, 60, 0.1);
    animation: shake 0.5s;
}

.bunker-feedback.error .feedback-text {
    color: var(--danger-red);
}

/* Bouton bunker */
.btn-bunker {
    background: var(--nuke-yellow);
    border: none;
    color: var(--bg-bunker);
    padding: 15px 40px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-bunker:hover {
    box-shadow: 0 0 30px var(--nuke-yellow);
    transform: translateY(-2px);
}

/* Animation d'ouverture des portes */
.bunker-door.opening .left-panel {
    animation: door-open-left 1.5s ease-in-out forwards;
}

.bunker-door.opening .right-panel {
    animation: door-open-right 1.5s ease-in-out forwards;
}

@keyframes door-open-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes door-open-right {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}
