/* =================================
   1. VARIABLES & CONFIGURATION
   ================================= */
:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-mono: 'Source Code Pro', monospace;
    
    --color-bg: #f0f2f5;
    --color-text: #1d1d1f;
    --color-text-light: #86868b;
    
    --color-accent: #2563eb;
    --color-accent-rgb: 37, 99, 235;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(37, 99, 235, 0.2);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    padding-top: 100px;
    overflow-x: hidden;
}

/* FOND ANIMÉ (Grille Cyber) */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    animation: panGrid 100s linear infinite;
}

@keyframes panGrid {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

a { 
    text-decoration: none; 
}

section { 
    padding: 5rem 0; 
}
.hero-section { 
    padding-top: 3rem; 
    padding-bottom: 5rem; 
}
.page-title-section { padding-top: 3rem; padding-bottom: 3rem; }

/* =================================
   2. HEADER & NAVIGATION
   ================================= */
.glass-header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    margin: 1.5rem auto;
    width: 90%;
    max-width: 1200px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0.5rem 1.5rem;
}

.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    width: 95%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-family: var(--font-mono);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text) !important;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 5px; left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after { 
    width: 80%; 
}

.nav-link:hover, .nav-link.active { 
    color: var(--color-accent) !important; 
}

/* =================================
   3. CARTES GÉNÉRALES & ÉLÉMENTS UI
   ================================= */
.identity-card, .project-card, .veille-card, .platform-card, .certification-card, .production-card, .info-card, .cyber-dashboard-card, .cyber-clean-card, .doc-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.identity-card::after, .project-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(37, 99, 235, 0.05), transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}
.identity-card:hover::after, .project-card:hover::after { opacity: 1; }

@media (hover: hover) {
    .identity-card:hover, .project-card:hover, .veille-card:hover, .platform-card:hover, .cyber-clean-card:hover, .doc-card:hover, .certification-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }
}

.card-icon, .production-icon, .info-icon i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}
.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 40px; height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s;
}
.section-title:hover::before { width: 100%; }

.hero-image-container {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: var(--shadow-hover);
    animation: morph 8s ease-in-out infinite;
    background-size: cover; 
    background-position: center;
    width: 100%; max-width: 400px; aspect-ratio: 1/1; margin: auto;
}
@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.timeline-item {
    border-left: 2px solid rgba(37, 99, 235, 0.2);
    padding-left: 2rem;
    margin-bottom: 3rem;
    position: relative;
}
.timeline-dot {
    width: 16px; height: 16px;
    background: var(--gradient-primary);
    position: absolute; left: -9px; top: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

.badge {
    background: rgba(37, 99, 235, 0.1) !important;
    color: var(--color-accent) !important;
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.5em 1em;
    border-radius: 50px;
}
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.project-card .card-img-top {
    border-radius: 15px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* =================================
   4. PAGE COMPÉTENCES (UX & RESPONSIVE)
   ================================= */
.pro-skill-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 2rem;
    height: 100%;
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    /* Correction bug mobile : évite le scintillement */
    transform: translateZ(0); 
}

/* En-tête de la carte */
.pro-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pro-icon-box {
    width: 54px;
    height: 54px;
    /* Le fond est maintenant visible par défaut sur mobile pour le contraste */
    background: linear-gradient(135deg, #f0f2f5 0%, #ffffff 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: var(--color-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.4s ease;
    flex-shrink: 0; /* Empêche l'icône de s'écraser sur petit écran */
}

.pro-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    transition: color 0.3s;
    line-height: 1.2;
}

/* --- STYLE DES MENUS DÉROULANTS (ACCORDÉONS) --- */
.skill-accordion {
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.skill-accordion:last-child { border-bottom: none; }

.skill-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem; /* Ajusté pour éviter de toucher les bords sur mobile */
    font-weight: 600;
    color: #4a4a4a;
    border-radius: 12px;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 1rem;
}
.skill-summary::-webkit-details-marker { display: none; }

/* Indicateur "+" */
.skill-summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 400;
    color: #ccc;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
}

.skill-accordion[open] .skill-summary::after {
    transform: rotate(45deg);
    color: var(--color-accent);
}

/* Contenu de la liste */
.skill-content-list {
    padding: 0 0.5rem 1rem 0.5rem;
    margin: 0;
    list-style: none;
    animation: fadeInSlide 0.4s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.skill-content-list li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start; /* Aligne le texte en haut si ça passe sur 2 lignes */
    gap: 10px;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.skill-content-list li::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px; /* Aligné avec le texte */
}

/* Décoration d'arrière-plan */
.bg-icon-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem; /* Plus petit pour éviter de gêner sur mobile */
    color: rgba(37, 99, 235, 0.03);
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.5s ease;
}

/* =============================================
   GESTION SOURIS (PC) VS TACTILE (MOBILE/IPAD)
   ============================================= */

/* Uniquement sur les appareils qui ont une souris (PC) */
@media (hover: hover) {
    .pro-skill-card:hover {
        transform: translateY(-8px) scale(1.02);
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.2);
        border-color: rgba(37, 99, 235, 0.3);
    }
    
    .pro-skill-card:hover .pro-icon-box {
        background: var(--gradient-primary);
        color: #fff;
        transform: rotate(-10deg) scale(1.1);
        box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    }
    
    .pro-skill-card:hover .pro-card-title {
        color: var(--color-accent);
    }

    .skill-summary:hover {
        background-color: rgba(37, 99, 235, 0.04);
        color: var(--color-accent);
        padding-left: 1rem;
    }
    
    .skill-content-list li:hover {
        background: rgba(0,0,0,0.03);
        color: #000;
        transform: translateX(5px);
    }
    
    .pro-skill-card:hover .bg-icon-decoration {
        transform: rotate(0deg) scale(1.1);
    }
}

/* Adaptations spécifiques pour MOBILE et TABLETTE (< 992px) */
@media (max-width: 991px) {
    .pro-skill-card {
        padding: 1.5rem; /* Moins de padding pour gagner de la place */
        margin-bottom: 1rem; /* Espace entre les cartes empilées */
    }
    
    .pro-card-header {
        margin-bottom: 1rem;
    }
    
    .pro-icon-box {
        /* On force la couleur sur mobile car il n'y a pas de survol */
        background: var(--gradient-primary); 
        color: #fff;
        width: 45px; /* Un peu plus petit */
        height: 45px;
        font-size: 1.3rem;
    }
    
    .pro-card-title {
        font-size: 1.15rem; /* Titre adapté */
    }
    
    .skill-summary {
        padding: 0.8rem 0; /* Plus facile à toucher */
        font-size: 0.95rem;
    }
    
    .bg-icon-decoration {
        font-size: 6rem; /* Encore plus discret sur mobile */
    }
}

/* =================================
   5. PAGE CYBERSÉCURITÉ
   ================================= */
/* HUD & Cyber Style */
.cyber-body { 
    background-color: #0a0b10; 
    color: #e0e0e0; 
}
.cyber-title { 
    font-family: 'Source Code Pro', monospace; 
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.8); 
    letter-spacing: 5px; 
    color: #fff;
}
.cyber-subtitle { 
    font-family: 'Source Code Pro', monospace; 
    color: #8892b0; 
}
.typing-effect { 
    border-right: 2px solid #2563eb; 
    animation: blinkCursor 0.8s infinite; 
    padding-right: 5px; 
}

.cyber-hud-card {
    background: rgba(16, 20, 30, 0.8); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px; 
    padding: 0; 
    position: relative; 
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    height: 100%; backdrop-filter: blur(10px);
}
.cyber-hud-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.15); 
}

/* Coins */
.hud-corner { 
    position: absolute; 
    width: 20px; 
    height: 20px; 
    border: 2px solid transparent; 
    transition: all 0.3s ease; 
}
.thm-hud .hud-corner { 
    border-color: #88cc14; 
}

.thm-hud:hover { 
    border-color: #88cc14; 
}

.thm-hud .hud-corner.top-left { 
    top: 0; 
    left: 0; 
    border-right: none; 
    border-bottom: none; 
}

.thm-hud .hud-corner.bottom-right { 
    bottom: 0; 
    right: 0; 
    border-left: none; 
    border-top: none; 
}

.rm-hud .hud-corner { 
    border-color: #ff8c00; 
}

.rm-hud:hover { 
    border-color: #ff8c00; 
}

.rm-hud .hud-corner.top-right { 
    top: 0; 
    right: 0; 
    border-left: none; 
    border-bottom: none; 
}

.rm-hud .hud-corner.bottom-left { 
    bottom: 0; 
    left: 0; 
    border-right: none; 
    border-top: none; 
}

.card-header-cyber { padding: 1.5rem; background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.cyber-icon-box { width: 60px; height: 60px; background: #000; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 10px; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
.thm-glow { border: 1px solid #88cc14; box-shadow: 0 0 10px rgba(136, 204, 20, 0.3); }
.rm-glow { border: 1px solid #ff8c00; box-shadow: 0 0 10px rgba(255, 140, 0, 0.3); }
.card-body-cyber { padding: 2rem; }
.cyber-text { font-family: 'Source Code Pro', monospace; font-size: 0.9rem; color: #a8b2d1; line-height: 1.6; }

.cyber-skills-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skill-pill { font-family: 'Source Code Pro', monospace; font-size: 0.8rem; padding: 0.3rem 0.8rem; border-radius: 4px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; transition: all 0.3s; }
.thm-pill:hover { border-color: #88cc14; color: #88cc14; background: rgba(136, 204, 20, 0.1); }
.rm-pill:hover { border-color: #ff8c00; color: #ff8c00; background: rgba(255, 140, 0, 0.1); }

.thm-custom-stats { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(136, 204, 20, 0.3); padding: 1.5rem; border-radius: 4px; position: relative; background-image: linear-gradient(rgba(136, 204, 20, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(136, 204, 20, 0.03) 1px, transparent 1px); background-size: 20px 20px; }
.thm-stat-row { display: flex; justify-content: space-between; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 1rem; }
.thm-stat-item { display: flex; flex-direction: column; }
.stat-label { font-family: 'Source Code Pro', monospace; font-size: 0.7rem; color: #8892b0; letter-spacing: 1px; }
.stat-value { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.1); }
.text-thm-neon { color: #88cc14 !important; text-shadow: 0 0 10px rgba(136, 204, 20, 0.6); }
.thm-rank-bar { position: relative; }
.thm-rank-bar .progress { overflow: visible; border-radius: 2px; }

.radar-container { height: 240px; background: radial-gradient(circle, rgba(255,140,0,0.05) 0%, rgba(0,0,0,0) 70%); }

.cyber-btn { display: block; text-align: center; padding: 1rem; font-family: 'Source Code Pro', monospace; font-weight: 700; text-decoration: none; text-transform: uppercase; transition: all 0.3s; position: relative; overflow: hidden; }
.thm-btn { background: #88cc14; color: #000; }
.thm-btn:hover { background: #9be01b; color: #000; box-shadow: 0 0 20px rgba(136, 204, 20, 0.4); }
.rm-btn { background: #ff8c00; color: #000; }
.rm-btn:hover { background: #ffaa33; color: #000; box-shadow: 0 0 20px rgba(255, 140, 0, 0.4); }

.terminal-card { background: #1e1e1e; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); font-family: 'Source Code Pro', monospace; overflow: hidden; border: 1px solid #333; }
.terminal-header { background: #2d2d2d; padding: 10px 15px; display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.terminal-title { margin-left: 10px; color: #999; font-size: 0.8rem; }
.terminal-body { padding: 2rem; color: #fff; }
.prompt { color: #4ade80; font-weight: bold; margin-right: 10px; }
.output-text { color: #a8b2d1; display: block; margin-top: 1rem; border-left: 3px solid #4ade80; padding-left: 1rem; }
.cyber-eye { font-size: 5rem; color: #4ade80; animation: pulseEye 3s infinite; text-shadow: 0 0 20px rgba(74, 222, 128, 0.5); }
@keyframes pulseEye { 0% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0.5; transform: scale(1); } }

/* =================================
   6. PAGE PRODUCTIONS (Onglets & Fichiers)
   ================================= */
.nav-pills .nav-link { background-color: #fff; color: var(--color-text); border: 1px solid rgba(0,0,0,0.1); font-weight: 500; transition: all 0.3s ease; }
.nav-pills .nav-link.active { background-color: var(--color-accent); color: #fff; box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3); border-color: var(--color-accent); }

.doc-card { background: #fff; padding: 1.5rem; border-radius: 16px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: all 0.3s ease; }
.doc-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--color-accent); }
.doc-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }

/* =================================
   7. CERTIFICATIONS & LOGOS
   ================================= */
.cert-img-wrapper { height: 100px; display: flex; align-items: center; justify-content: center; }
.cert-logo { max-height: 80px; max-width: 100%; object-fit: contain; transition: transform 0.3s ease; filter: grayscale(100%); opacity: 0.8; }
.certification-card:hover .cert-logo { transform: scale(1.1); filter: grayscale(0%); opacity: 1; }

/* =================================
   8. FORMULAIRES & VEILLE
   ================================= */
.contact-form .form-control { border-radius: 12px; padding: 0.8rem; border: 1px solid #e0e0e0; }
.contact-form .form-control:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); border-color: var(--color-accent); }
.info-card { display: flex; align-items: center; padding: 1.5rem; gap: 1rem; }
.info-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(37, 99, 235, 0.1); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.veille-controls { background: #fff; padding: 1.5rem; border-radius: 20px; margin-bottom: 3rem; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: var(--shadow-soft); }
.veille-card-image { height: 200px; background-size: cover; background-position: center; }
.veille-card-body { padding: 1.5rem; }

/* =================================
   9. CURSEUR
   ================================= */
@media (min-width: 992px) {
    body { cursor: none; }
    .custom-cursor {
        position: fixed; top: 0; left: 0; width: 20px; height: 20px; border: 2px solid var(--color-accent); border-radius: 50%;
        pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background-color 0.3s; mix-blend-mode: difference;
    }
    .custom-cursor.hovered { width: 50px; height: 50px; background-color: rgba(37, 99, 235, 0.2); border-color: transparent; }
}

/* =================================
   FOOTER "GHOST"
   ================================= */
.ghost-footer {
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    border-top: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 -5px 20px rgba(37, 99, 235, 0.1);
    margin-top: 5rem; position: relative; z-index: 10;
}
.footer-id { font-family: var(--font-mono); font-weight: 700; color: var(--color-accent); letter-spacing: -1px; }
.blink { animation: blinkCursor 1s infinite; }
@keyframes blinkCursor { 50% { opacity: 0; } }
.ghost-socials { display: inline-flex; gap: 1.5rem; }
.ghost-btn {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    color: var(--color-text-light); font-size: 1.4rem; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; text-decoration: none;
}
.ghost-btn img { width: 24px; height: 24px; object-fit: contain; filter: grayscale(100%) opacity(0.6); transition: all 0.3s ease; }
.ghost-btn:hover { transform: translateY(-5px) scale(1.2); }
.ghost-btn.linkedin:hover { color: #0077b5; text-shadow: 0 0 15px rgba(0, 119, 181, 0.6); }
.ghost-btn.github:hover { color: #333; text-shadow: 0 0 15px rgba(0, 0, 0, 0.3); }
.ghost-btn.rootme:hover img { filter: grayscale(0%) opacity(1); drop-shadow: 0 0 10px rgba(255, 140, 0, 0.6); }
.ghost-btn.thm:hover img { filter: grayscale(0%) opacity(1); drop-shadow: 0 0 10px rgba(136, 204, 20, 0.6); }
.footer-copy { font-family: var(--font-mono); font-size: 0.8rem; color: rgba(0, 0, 0, 0.4); text-transform: uppercase; }



/* Ajout spécifique Projets */
.project-img-wrapper img {
    transition: transform 0.5s ease;
}
.project-card:hover .project-img-wrapper img {
    transform: scale(1.1);
}
.object-fit-cover {
    object-fit: cover;
}

/* =================================================================
   NOUVEAU STYLE CYBER - "WOW EFFECT"
   ================================================================= */

/* --- FOND ET AMBIANCE --- */
.cyber-mode {
    background-color: #050505;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        linear-gradient(0deg, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2) 50%),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 4px 4px, 40px 40px;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Effet Scanline (Ligne qui descend) */
.scanline {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 5px;
    background: rgba(37, 99, 235, 0.3);
    opacity: 0.4;
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}
@keyframes scanline {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* --- TITRE GLITCH --- */
.glitch-wrapper {
    position: relative;
    display: inline-block;
}
.glitch-text {
    font-family: 'Source Code Pro', monospace;
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px var(--color-accent);
    position: relative;
}
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #050505;
}
.glitch-text::before {
    left: 2px; text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px; text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); transform: skew(0.5deg); }
    5%, 100% { clip: rect(10px, 9999px, 30px, 0); transform: skew(0deg); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(80px, 9999px, 100px, 0); transform: skew(0.5deg); }
    5%, 100% { clip: rect(80px, 9999px, 100px, 0); transform: skew(0deg); }
}

/* --- HUD CONTAINERS --- */
.hud-panel {
    background: rgba(16, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.hud-panel:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
}

/* Coins technologiques */
.tech-corner {
    position: absolute; width: 15px; height: 15px;
    border: 2px solid var(--color-accent);
    transition: all 0.3s ease;
}
.tl { top: -1px; left: -1px; border-bottom: none; border-right: none; }
.tr { top: -1px; right: -1px; border-bottom: none; border-left: none; }
.bl { bottom: -1px; left: -1px; border-top: none; border-right: none; }
.br { bottom: -1px; right: -1px; border-top: none; border-left: none; }

.hud-panel:hover .tech-corner { width: 30px; height: 30px; }

/* --- SECTIONS SPÉCIFIQUES --- */
.cyber-card-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 1.2rem;
    color: var(--color-accent);
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
}

/* Stats TryHackMe & RootMe */
.stat-box {
    background: rgba(0,0,0,0.3);
    border-left: 3px solid;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.2s;
}
.stat-box:hover { transform: translateX(5px); }

.stat-box.thm { border-color: #88cc14; }
.stat-box.rm { border-color: #ff8c00; }

.stat-number { font-size: 1.8rem; font-weight: 700; font-family: 'Poppins', sans-serif; display: block; line-height: 1; }
.stat-label { font-size: 0.7rem; font-family: 'Source Code Pro', monospace; text-transform: uppercase; opacity: 0.7; }

/* Radar Chart Container */
.radar-wrapper {
    position: relative;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    border: 1px dashed rgba(37, 99, 235, 0.2);
}

/* Badges de compétences */
.tech-badge {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    border: 1px solid;
    border-radius: 2px;
    background: rgba(0,0,0,0.2);
}
.tech-badge.def { border-color: #3b82f6; color: #3b82f6; } /* Bleu */
.tech-badge.off { border-color: #ef4444; color: #ef4444; } /* Rouge */
.tech-badge:hover { background: rgba(255,255,255,0.05); }

/* Terminal Upgrade */
.terminal-window {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    font-family: 'Source Code Pro', monospace;
    overflow: hidden;
}
.terminal-bar {
    background: #161b22;
    padding: 8px 15px;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
}
.terminal-btn { width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; }
.btn-close-term { background: #ff5f56; }
.btn-min-term { background: #ffbd2e; }
.btn-max-term { background: #27c93f; }

.terminal-content { padding: 20px; color: #c9d1d9; font-size: 0.9rem; }
.cmd-line { margin-bottom: 10px; }
.prompt-user { color: #58a6ff; } /* Bleu Kali */
.prompt-path { color: #79c0ff; }
.cmd-output { color: #8b949e; margin-left: 0; white-space: pre-wrap; }
.success-msg { color: #3fb950; }

/* Responsive Titles */
@media (max-width: 768px) {
    .glitch-text { font-size: 2.5rem; }
}

/* =========================================================
   NOUVEAU STYLE : NETWORK NODES (Remplacement Radar)
   ========================================================= */

.active-nodes-container {
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    position: relative;
    border-radius: 12px;
    border: 1px dashed rgba(37, 99, 235, 0.1);
}

.node-item {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}
.node-item:hover {
    transform: scale(1.1);
}

.node-circle {
    width: 100px;
    height: 100px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.node-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    z-index: 5;
}

/* Cercles lumineux */
.thm-glow-ring { border: 2px solid #88cc14; }
.rm-glow-ring { border: 2px solid #ff8c00; }

/* Animation de pulse (Onde de choc) */
.node-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    animation: pulseWave 2s infinite;
}

.thm-pulse { border: 2px solid #88cc14; box-shadow: 0 0 20px #88cc14; }
.rm-pulse { border: 2px solid #ff8c00; box-shadow: 0 0 20px #ff8c00; }

@keyframes pulseWave {
    0% { width: 100%; height: 100%; opacity: 0.8; }
    100% { width: 160%; height: 160%; opacity: 0; }
}

/* Ligne de connexion décorative entre les noeuds */
.connection-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.5), transparent);
    position: relative;
}
.connection-line::after {
    content: '';
    position: absolute;
    top: -4px; left: 0;
    width: 10px; height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    animation: travelLine 2s linear infinite;
}

@keyframes travelLine {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* =========================================================
   STYLE DES MODALES CYBER
   ========================================================= */
.cyber-modal {
    background-color: #0d1117;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
.cyber-modal.border-success {
    border: 1px solid #88cc14;
    box-shadow: 0 0 30px rgba(136, 204, 20, 0.2);
}
.cyber-modal.border-warning {
    border: 1px solid #ff8c00;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.2);
}

/* Scrollbar personnalisée dans la modale si besoin */
.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-track {
    background: #0d1117;
}
.modal-body::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

/* =========================================================
   STYLE DES MODALES "PRO" (RECRUTEUR FRIENDLY)
   ========================================================= */
.modal-pro {
    background-color: #1a1b26; /* Fond sombre mat et élégant */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif; /* Police lisible, pas de monospace */
}

/* Header propre */
.modal-pro .modal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
}

/* Corps aéré */
.modal-pro .modal-body {
    padding: 2rem;
}

/* Badges compétences */
.modal-pro .badge {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.modal-pro .badge:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* Barres de progression */
.modal-pro .progress {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05) !important;
}
.modal-pro .progress-bar {
    border-radius: 10px;
}