:root {
    --accent-cesar: #e63946;
    --accent-vn: #00a8cc;
    --accent-gold: #ffcc00;
    --bg: #050505;
    --card-bg: #0a0a0a;
    --text-main: #d1d1d1;
    --text-muted: #666666;
    --border: #1a1a1a;
    --glow-cesar: rgba(230, 57, 70, 0.4);
    --glow-vn: rgba(0, 168, 204, 0.4);
    --glow-gold: rgba(255, 204, 0, 0.4);
}
 
* { 
    cursor: none !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    margin: 0; 
    background-color: var(--bg); 
    color: var(--text-main); 
    font-family: 'Space Grotesk', sans-serif; 
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== FOND ANIMÉ ==================== */
#background-animation { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -2; 
    opacity: 0.08; 
}

.binary-drop { 
    position: absolute; 
    color: var(--accent-gold); 
    font-family: 'VT323'; 
    font-size: 1.2rem;
    animation: fall linear infinite;
    text-shadow: 0 0 10px var(--glow-gold);
}

@keyframes fall { 
    0% { 
        transform: translateY(-100px); 
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(100vh); 
        opacity: 0;
    } 
}

#grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* ==================== CURSEUR TACTIQUE AMÉLIORÉ ==================== */
#cursor-tactical {
    position: fixed; 
    pointer-events: none; 
    z-index: 10000;
    width: 30px; 
    height: 30px;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor-center { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 3px; 
    height: 3px; 
    background: #fff; 
    border-radius: 50%; 
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.cursor-circle { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: 1.5px solid rgba(255, 255, 255, 0.5); 
    border-radius: 50%; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

#cursor-tactical [class^="bracket-"] { 
    position: absolute; 
    width: 6px; 
    height: 6px; 
    border-color: rgba(255,255,255,0.6); 
    border-style: solid; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bracket-top-left { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.bracket-top-right { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.bracket-bottom-left { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.bracket-bottom-right { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* États du curseur */
#cursor-tactical.cesar-zone .cursor-circle, 
#cursor-tactical.cesar-zone [class^="bracket-"] { 
    border-color: var(--accent-cesar);
    filter: drop-shadow(0 0 8px var(--glow-cesar));
}

#cursor-tactical.vn-zone .cursor-circle, 
#cursor-tactical.vn-zone [class^="bracket-"] { 
    border-color: var(--accent-vn);
    filter: drop-shadow(0 0 8px var(--glow-vn));
}

#cursor-tactical.locking { 
    width: 45px; 
    height: 45px;
}

#cursor-tactical.locking .cursor-glow {
    opacity: 1;
}

#cursor-tactical.locking [class^="bracket-"] {
    width: 10px;
    height: 10px;
}

#cursor-tactical.scanning { 
    width: 70px; 
    height: 25px;
}

#cursor-tactical.scanning .cursor-circle {
    animation: scanPulse 1.5s infinite;
}

@keyframes scanPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ==================== NAVIGATION AMÉLIORÉE ==================== */
nav { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding: 25px 40px; 
    gap: 20px; 
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-border-anim {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cesar), var(--accent-vn), var(--accent-gold));
    animation: navBorderSlide 3s infinite;
}

@keyframes navBorderSlide {
    0%, 100% { width: 0%; left: 0%; }
    50% { width: 100%; left: 0%; }
}

nav button { 
    background: transparent; 
    border: 1px solid var(--border); 
    color: var(--text-muted); 
    padding: 12px 24px; 
    font-family: 'Syncopate'; 
    font-size: 9px; 
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

nav button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

nav button:hover::before {
    left: 100%;
}

nav button .btn-icon {
    font-size: 14px;
    transition: transform 0.3s;
}

nav button:hover .btn-icon {
    transform: scale(1.2);
}

nav button.active-home { 
    border-color: #fff; 
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

nav button.active-cesar { 
    border-color: var(--accent-cesar); 
    color: var(--accent-cesar);
    background: rgba(230, 57, 70, 0.1);
    box-shadow: 0 0 20px var(--glow-cesar);
}

nav button.active-vn { 
    border-color: var(--accent-vn); 
    color: var(--accent-vn);
    background: rgba(0, 168, 204, 0.1);
    box-shadow: 0 0 20px var(--glow-vn);
}

nav button.active-search { 
    border-color: var(--accent-gold); 
    color: var(--accent-gold);
    background: rgba(255, 204, 0, 0.1);
    box-shadow: 0 0 20px var(--glow-gold);
}

/* ==================== PAGE ACCUEIL AMÉLIORÉE ==================== */
.home-container { 
    text-align: center; 
    padding: 100px 0;
}

.title-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.glitch-title { 
    font-family: 'Syncopate'; 
    font-size: 5rem; 
    font-weight: 900;
    margin: 0; 
    letter-spacing: -3px; 
    color: #fff;
    position: relative;
    text-transform: uppercase;
    animation: glitchTitle 5s infinite;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-title::before {
    animation: glitchBefore 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
}

.glitch-title::after {
    animation: glitchAfter 2s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
}

@keyframes glitchBefore {
    0%, 100% { 
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
        transform: translate(-2px, -2px);
    }
    25% {
        clip-path: polygon(0 10%, 100% 10%, 100% 60%, 0 60%);
        transform: translate(-5px, 0);
    }
}

@keyframes glitchAfter {
    0%, 100% { 
        clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
        transform: translate(2px, 2px);
    }
    50% {
        clip-path: polygon(0 30%, 100% 30%, 100% 90%, 0 90%);
        transform: translate(3px, 0);
    }
}

@keyframes glitchTitle {
    0%, 90%, 100% { 
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 40px rgba(255, 255, 255, 0.3);
    }
    93% {
        text-shadow: 
            -2px 0 10px var(--accent-cesar),
            2px 0 10px var(--accent-vn),
            0 0 40px rgba(255, 255, 255, 0.5);
    }
}

.title-glow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    box-shadow: 0 0 20px var(--glow-gold);
    animation: titleGlowPulse 2s infinite;
}

@keyframes titleGlowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.sub-status { 
    font-family: 'VT323'; 
    color: var(--text-muted); 
    font-size: 1.6rem; 
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: statusBlink 1.5s infinite;
    box-shadow: 0 0 10px var(--glow-gold);
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.blink-cursor {
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* BARRE DE STATS */
.stats-bar {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin: 60px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.stat-item {
    flex: 1;
    max-width: 300px;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: 'Syncopate';
}

.stat-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cesar), var(--accent-vn));
    border-radius: 3px;
    box-shadow: 0 0 10px var(--glow-vn);
    animation: statFillAnimation 2s ease-out;
}

@keyframes statFillAnimation {
    from { width: 0%; }
}

/* GRILLE ACCUEIL */
.home-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-top: 60px;
    margin-bottom: 80px;
}

.home-card { 
    background: var(--card-bg); 
    padding: 50px 40px; 
    border: 1px solid var(--border); 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
    background-size: 200% 200%;
    transition: all 0.6s;
    opacity: 0;
}

.home-card:hover::before {
    opacity: 1;
    background-position: 100% 100%;
}

.card-cesar:hover { 
    border-color: var(--accent-cesar);
    box-shadow: 
        0 0 30px var(--glow-cesar),
        inset 0 0 50px rgba(230, 57, 70, 0.05);
    transform: translateY(-5px);
}

.card-vn:hover { 
    border-color: var(--accent-vn);
    box-shadow: 
        0 0 30px var(--glow-vn),
        inset 0 0 50px rgba(0, 168, 204, 0.05);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-icon {
    font-size: 2rem;
    opacity: 0.6;
}

.card-status {
    font-family: 'VT323';
    font-size: 0.8rem;
    color: var(--accent-gold);
    padding: 4px 12px;
    border: 1px solid var(--accent-gold);
    border-radius: 2px;
    text-transform: uppercase;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.home-card h2 {
    font-family: 'Orbitron';
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.card-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.meta-tag {
    font-size: 0.65rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'Space Grotesk';
    letter-spacing: 1px;
}

.card-progress {
    margin: 25px 0;
}

.progress-line {
    height: 2px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    animation: progressSlide 2s infinite;
}

.cesar-progress::after {
    background: var(--accent-cesar);
    box-shadow: 0 0 10px var(--glow-cesar);
}

.vn-progress::after {
    background: var(--accent-vn);
    box-shadow: 0 0 10px var(--glow-vn);
}

@keyframes progressSlide {
    0% { left: -50%; }
    100% { left: 100%; }
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'VT323';
    font-size: 1rem;
}

.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.home-card:hover .arrow {
    transform: translateX(5px);
}

/* TERMINAL HINT */
.terminal-hint {
    margin-top: 60px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.terminal-line {
    font-family: 'VT323';
    font-size: 1.4rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt {
    color: var(--accent-gold);
}

.command {
    color: #fff;
}

/* ==================== PAGES DE DOSSIERS ==================== */
.page-header {
    margin-top: 60px;
    margin-bottom: 50px;
}

.page-breadcrumb {
    font-size: 0.7rem;
    font-family: 'Syncopate';
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb-link {
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: var(--accent-gold);
}

.breadcrumb-sep {
    margin: 0 10px;
    color: var(--border);
}

.page-title { 
    font-family: 'Orbitron'; 
    font-size: 4rem; 
    font-weight: 900;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
}

.page-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.neon-red { 
    color: var(--accent-cesar);
    text-shadow: 
        0 0 10px var(--glow-cesar),
        0 0 20px var(--glow-cesar),
        0 0 40px var(--glow-cesar);
}

.neon-blue { 
    color: var(--accent-vn);
    text-shadow: 
        0 0 10px var(--glow-vn),
        0 0 20px var(--glow-vn),
        0 0 40px var(--glow-vn);
}

.neon-white {
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
}

.neon-gold {
    color: var(--accent-gold);
    text-shadow: 
        0 0 10px var(--glow-gold),
        0 0 20px var(--glow-gold),
        0 0 40px var(--glow-gold);
}

.page-subtitle { 
    color: var(--text-muted); 
    font-weight: 500;
    letter-spacing: 6px; 
    margin-bottom: 50px; 
    font-size: 0.85rem;
    font-family: 'Space Grotesk';
    display: flex;
    align-items: center;
    gap: 20px;
}

.glitch-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* GRILLE HÉROS */
.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    margin-bottom: 50px;
}

.photo-box { 
    height: 400px; 
    border: 1px solid var(--border); 
    overflow: hidden; 
    background: #000;
    position: relative;
    border-radius: 4px;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    box-shadow: 0 0 20px var(--glow-gold);
    animation: scanLineMove 3s infinite;
}

@keyframes scanLineMove {
    0% { top: 0%; opacity: 0; }
    10%, 90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.photo-label {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Syncopate';
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    padding: 6px 12px;
    border: 1px solid var(--accent-gold);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.photo-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(1) brightness(0.7);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-box:hover img { 
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

/* CONTENU PRINCIPAL */
.content-main { 
    display: grid; 
    grid-template-columns: 2.2fr 1fr; 
    gap: 50px; 
    margin-top: 40px;
    margin-bottom: 80px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.section-icon {
    font-size: 1.5rem;
}

.section-header h2 {
    font-family: 'Orbitron';
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-left: 3px solid var(--border);
    margin-bottom: 40px;
    line-height: 1.8;
}

.info-card p {
    margin-bottom: 20px;
    color: var(--text-main);
}

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

.info-card b {
    color: #fff;
    font-weight: 600;
}

/* CHRONOLOGIE */
.timeline-section {
    margin: 40px 0;
}

.timeline-section h3 {
    font-family: 'Syncopate';
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item:first-child::before {
    top: 50%;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item:last-child::before {
    height: 50%;
}

.timeline-year {
    font-family: 'Orbitron';
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1rem;
}

.timeline-desc {
    color: var(--text-main);
    line-height: 1.6;
}

/* SPECS TECHNIQUES */
.tech-specs {
    margin: 40px 0;
}

.tech-specs h3 {
    font-family: 'Syncopate';
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spec-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-label {
    font-family: 'Syncopate';
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.spec-value {
    font-family: 'VT323';
    font-size: 1.3rem;
    color: #fff;
}

.status-active {
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--glow-gold);
}

/* PANNEAU LATÉRAL */
.funny-card { 
    background: rgba(255, 204, 0, 0.05); 
    padding: 30px; 
    border: 1px solid var(--accent-gold); 
    border-radius: 4px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.funny-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--glow-gold);
}

.card-mini-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-mini-header span {
    font-size: 1.3rem;
}

.funny-card h3 { 
    color: var(--accent-gold); 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    margin: 0;
    font-family: 'Syncopate';
}

.funny-card p { 
    font-style: italic; 
    color: rgba(255, 204, 0, 0.9); 
    font-size: 0.95rem; 
    margin: 0;
    line-height: 1.6;
    margin-top: 10px;
}

.stats-panel {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 30px;
}

.stats-panel h3 {
    font-family: 'Syncopate';
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.stat-row {
    margin-bottom: 20px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-row > span {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.mini-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cesar), var(--accent-vn));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--glow-vn);
    animation: miniFillAnimation 1.5s ease-out;
}

@keyframes miniFillAnimation {
    from { width: 0%; }
}

.quote-card {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-left: 3px solid var(--accent-gold);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 10px;
}

.quote-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #fff;
}

.quote-author {
    font-family: 'VT323';
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==================== LABORATOIRE AMÉLIORÉ ==================== */
.lab-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-top: 50px;
    margin-bottom: 60px;
}

.lab-module { 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.lab-module:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cesar-mod { 
    border-top: 3px solid var(--accent-cesar);
}

.cesar-mod:hover {
    box-shadow: 0 10px 40px var(--glow-cesar);
}

.vn-mod { 
    border-top: 3px solid var(--accent-vn);
}

.vn-mod:hover {
    box-shadow: 0 10px 40px var(--glow-vn);
}

.module-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-icon {
    font-size: 1.5rem;
}

.module-title h2 {
    font-family: 'Orbitron';
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 0;
}

.module-status {
    font-family: 'VT323';
    font-size: 0.9rem;
    padding: 4px 12px;
    border: 1px solid;
    border-radius: 2px;
}

.status-cesar {
    color: var(--accent-cesar);
    border-color: var(--accent-cesar);
    background: rgba(230, 57, 70, 0.1);
}

.status-vn {
    color: var(--accent-vn);
    border-color: var(--accent-vn);
    background: rgba(0, 168, 204, 0.1);
}

.module-body {
    padding: 30px;
}

textarea { 
    width: 100%; 
    background: #000; 
    border: 1px solid var(--border); 
    color: #fff; 
    padding: 20px; 
    font-family: 'VT323'; 
    font-size: 1.3rem; 
    resize: none; 
    box-sizing: border-box;
    border-radius: 4px;
    min-height: 120px;
    transition: all 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px var(--glow-gold);
}

label { 
    display: block; 
    margin-bottom: 10px; 
    font-size: 0.7rem; 
    color: var(--text-muted); 
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Syncopate';
}

.control-panel {
    margin: 25px 0;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.shift-value {
    font-family: 'VT323';
    font-size: 1.8rem;
    color: var(--accent-cesar);
    text-shadow: 0 0 10px var(--glow-cesar);
}

.slider-container {
    position: relative;
}

.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 3px;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-cesar);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--glow-cesar);
    transition: all 0.3s;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px var(--glow-cesar);
}

.custom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-cesar);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px var(--glow-cesar);
}

.slider-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: 'VT323';
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-box { 
    background: #000; 
    border: 1px solid var(--border); 
    padding: 20px; 
    font-family: 'VT323'; 
    min-height: 80px; 
    margin-top: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: resultScan 3s infinite;
}

@keyframes resultScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.output-prefix {
    font-size: 1.5rem;
    opacity: 0.5;
}

.output-text {
    font-size: 1.3rem;
    flex: 1;
}

.result-cesar { 
    color: var(--accent-cesar);
    border-color: var(--accent-cesar);
}

.result-vn { 
    color: var(--accent-vn);
    border-color: var(--accent-vn);
}

.info-banner {
    background: rgba(255, 204, 0, 0.05);
    border: 1px solid var(--accent-gold);
    padding: 12px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-family: 'VT323';
    font-size: 1rem;
    color: var(--accent-gold);
}

.info-icon {
    font-size: 1.2rem;
}

.binary-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-mini-label {
    font-family: 'Syncopate';
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stat-mini-value {
    font-family: 'VT323';
    font-size: 1.5rem;
    color: var(--accent-vn);
    text-shadow: 0 0 10px var(--glow-vn);
}

.module-footer {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.action-btn {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 12px 20px;
    font-family: 'Syncopate';
    font-size: 0.7rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    border-radius: 4px;
}

.cesar-btn:hover {
    background: rgba(230, 57, 70, 0.1);
    border-color: var(--accent-cesar);
    color: var(--accent-cesar);
    box-shadow: 0 0 20px var(--glow-cesar);
}

.vn-btn:hover {
    background: rgba(0, 168, 204, 0.1);
    border-color: var(--accent-vn);
    color: var(--accent-vn);
    box-shadow: 0 0 20px var(--glow-vn);
}

.lab-info {
    margin-top: 40px;
    margin-bottom: 60px;
}

.info-card-lab {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 4px;
    border-left: 3px solid var(--accent-gold);
}

.info-card-lab h3 {
    font-family: 'Orbitron';
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.info-card-lab p {
    line-height: 1.8;
    color: var(--text-main);
}

/* ==================== PAGE RECHERCHE AMÉLIORÉE ==================== */
.search-box { 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    padding: 50px; 
    margin-top: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.search-header {
    margin-bottom: 20px;
}

.search-hint {
    font-family: 'VT323';
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.search-input-container {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.input-prefix {
    background: #000;
    border: 1px solid var(--border);
    border-right: none;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-family: 'VT323';
    font-size: 1.8rem;
    color: var(--accent-gold);
    border-radius: 4px 0 0 4px;
}

#searchInput {
    flex: 1;
    background: #000;
    border: 1px solid var(--border);
    border-left: none;
    color: var(--accent-gold);
    padding: 20px;
    font-family: 'VT323';
    font-size: 1.5rem;
    outline: none;
    border-radius: 0;
    transition: all 0.3s;
}

#searchInput:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px var(--glow-gold);
}

#searchInput::placeholder {
    color: rgba(255, 204, 0, 0.3);
}

.scan-btn {
    background: var(--accent-gold);
    color: #000;
    border: none;
    font-family: 'Syncopate';
    font-size: 0.8rem;
    padding: 0 40px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.scan-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.scan-btn:hover::before {
    width: 300px;
    height: 300px;
}

.scan-btn:hover { 
    background: #fff;
    box-shadow: 0 0 30px var(--glow-gold);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

.progress-container { 
    margin-top: 40px;
}

.progress-wrapper {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar { 
    height: 100%;
    background: var(--accent-gold); 
    width: 0%; 
    box-shadow: 0 0 20px var(--glow-gold);
    animation: loadBar 2s forwards ease-in-out;
    border-radius: 3px;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.5), transparent);
    animation: glowSlide 1.5s infinite;
}

@keyframes glowSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text { 
    font-family: 'VT323'; 
    color: var(--text-muted); 
    margin-top: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-icon {
    font-size: 1.5rem;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-dots span {
    animation: dotBlink 1.5s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotBlink {
    0%, 60%, 100% { opacity: 0; }
    30% { opacity: 1; }
}

@keyframes loadBar { 
    0% { width: 0%; } 
    100% { width: 100%; } 
}

.results-terminal {
    margin-top: 40px;
    padding: 30px;
    border: 1px solid var(--accent-gold);
    background: rgba(255, 204, 0, 0.03);
    font-family: 'VT323';
    font-size: 1.3rem;
    line-height: 1.8;
    color: #ddd;
    border-radius: 4px;
    position: relative;
}

.results-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    box-shadow: 0 0 20px var(--glow-gold);
}

.results-terminal b { 
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--glow-gold);
}

.search-examples {
    margin-top: 50px;
    margin-bottom: 60px;
}

.search-examples h3 {
    font-family: 'Syncopate';
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.example-tag {
    background: rgba(255, 204, 0, 0.05);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 20px;
    font-family: 'Syncopate';
    font-size: 0.7rem;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s;
}

.example-tag:hover {
    background: rgba(255, 204, 0, 0.1);
    box-shadow: 0 0 20px var(--glow-gold);
    transform: translateY(-2px);
}

/* ==================== GESTION DES PAGES ==================== */
.page { 
    display: none;
}

.page.active { 
    display: block; 
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(20px);
    } 
    to { 
        opacity: 1;
        transform: translateY(0);
    } 
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .content-main {
        grid-template-columns: 1fr;
    }
    
    .lab-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .glitch-title {
        font-size: 3rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .home-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-wrap: wrap;
        padding: 15px 20px;
        gap: 10px;
    }
    
    nav button {
        padding: 10px 15px;
        font-size: 8px;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input-container {
        flex-direction: column;
    }
    
    .input-prefix {
        border-right: 1px solid var(--border);
        border-bottom: none;
        border-radius: 4px 4px 0 0;
    }
    
    #searchInput {
        border-left: 1px solid var(--border);
        border-top: none;
        border-radius: 0;
    }
    
    .scan-btn {
        border-radius: 0 0 4px 4px;
        padding: 20px;
    }
}