/* =========================================
   VARIABLES & CONFIGURATION GLOBALE
   ========================================= */
:root {
    --bg-color: #050505;
    --grid-color: rgba(0, 243, 255, 0.05);
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-red: #ff003c;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --glass-bg: rgba(15, 15, 20, 0.6);
    --glass-border: rgba(0, 243, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif; /* Police futuriste */
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* =========================================
   FOND ANIMÉ (LA GRILLE CYBERPUNK)
   ========================================= */
.cyber-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translateY(0); }
    100% { transform: translateY(40px); }
}

/* =========================================
   NAVIGATION NEON
   ========================================= */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 2px;
}

.blink {
    color: var(--neon-blue);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-item:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* =========================================
   SECTION ACCUEIL (HERO)
   ========================================= */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.system-status {
    color: var(--neon-blue);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.glitch-text {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--neon-purple);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.description {
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
    line-height: 1.8;
}

/* BOUTONS CYBERPUNK */
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cyber-btn {
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s all;
    position: relative;
    overflow: hidden;
}

.cyber-btn.primary {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.2), 0 0 10px rgba(0, 243, 255, 0.2);
}

.cyber-btn.primary:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
}

.cyber-btn.secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.cyber-btn.secondary:hover {
    border-color: var(--text-main);
}

/* =========================================
   SECTIONS GLOBALES
   ========================================= */
.section {
    padding: 120px 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2rem;
    color: var(--neon-purple);
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.3);
}

/* =========================================
   CARTES GLASSMORPHISM (COMPÉTENCES)
   ========================================= */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.glass-card h3 {
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: 1px;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* BARRES DE PROGRESSION FUTURISTES */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

/* =========================================
   CARTES PROJETS (DOSSIERS SYSTÈME)
   ========================================= */
.project-card {
    background: rgba(10, 10, 10, 0.8);
    border-left: 4px solid var(--neon-blue);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.project-card.locked {
    border-left-color: var(--neon-red);
}

.project-card:hover {
    background: rgba(20, 20, 25, 1);
}

/* La ligne qui scanne la carte au survol */
.scanner-line {
    position: absolute;
    top: -100%; left: 0; width: 100%; height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    opacity: 0;
    transition: 0.3s;
}

.project-card.locked .scanner-line { background: var(--neon-red); box-shadow: 0 0 15px var(--neon-red); }

.project-card:hover .scanner-line {
    animation: scan 2s linear infinite;
    opacity: 1;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.badge.neon-blue { background: rgba(0, 243, 255, 0.1); color: var(--neon-blue); border: 1px solid var(--neon-blue); }
.badge.neon-red { background: rgba(255, 0, 60, 0.1); color: var(--neon-red); border: 1px solid var(--neon-red); }
.badge.neon-purple { background: rgba(188, 19, 254, 0.1); color: var(--neon-purple); border: 1px solid var(--neon-purple); }

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-card .status {
    font-size: 0.8rem;
    color: var(--neon-blue);
    font-style: italic;
}
.project-card.locked .status { color: var(--neon-red); }

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(5, 5, 5, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    /* =========================================
   AJOUTS POUR LA NOUVELLE STRUCTURE
   ========================================= */
.mb-50 { margin-bottom: 50px; }
.mt-20 { margin-top: 20px; }

.sub-section-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    display: inline-block;
}

.neon-blue-text {
    color: var(--neon-blue);
    font-weight: bold;
    font-size: 1.1rem !important;
}

/* LISTES CYBERPUNK (Pour l'entreprise et la veille) */
.cyber-list {
    list-style: none;
    padding-left: 10px;
}
.cyber-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--text-muted);
}
.cyber-list li::before {
    content: ">>";
    position: absolute;
    left: 0;
    color: var(--neon-purple);
    font-weight: bold;
}
.cyber-list strong {
    color: var(--text-main);
}

/* =========================================
   ANIMATIONS JAVASCRIPT (CLASSES CSS)
   ========================================= */
/* État initial : caché et légèrement décalé vers le bas */
.hidden-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* État final : visible et à sa place (ajouté par le JS) */
.show-scroll {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================
   EFFETS 3D POUR LES LOGOS/ICONES
   ========================================= */
.icon-3d-container {
    perspective: 500px; /* Donne de la profondeur à la zone */
    text-align: center;
    margin-bottom: 25px;
}

.icon-3d {
    display: inline-block;
    font-size: 4rem;
    /* Transformation 3D de base */
    transform: rotateX(15deg) rotateY(-15deg) translateZ(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), text-shadow 0.4s;
    /* Ombre portée pour simuler l'épaisseur */
    text-shadow: 
        1px 1px 0 #222,
        2px 2px 0 #111,
        3px 3px 0 #000,
        10px 10px 20px rgba(0, 0, 0, 0.8);
}

/* L'animation quand on passe la souris dessus (l'icône saute en avant) */
.glass-card:hover .icon-3d {
    transform: rotateX(0deg) rotateY(0deg) translateZ(40px) scale(1.1);
}

/* Les halos de lumière au néon derrière la 3D */
.neon-blue-glow { filter: drop-shadow(0 0 15px var(--neon-blue)); }
.neon-purple-glow { filter: drop-shadow(0 0 15px var(--neon-purple)); }
.neon-red-glow { filter: drop-shadow(0 0 15px var(--neon-red)); }

/* =========================================
   AJUSTEMENTS DE MISE EN PAGE
   ========================================= */
.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px; /* Hauteur des cartes projets vides */
}

.empty-project {
    margin: 0;
    font-size: 2rem;
    color: var(--text-muted);
    letter-spacing: 5px;
    opacity: 0.5;
}

.project-card:hover .empty-project {
    color: var(--neon-red);
    opacity: 1;
    text-shadow: 0 0 10px var(--neon-red);
    transition: 0.3s;
}

/* On s'assure que les cartes projets soient bien rectangulaires */
.project-card {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
}