/* =========================================
   1. CONFIGURATION GÉNÉRALE
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Fira+Code:wght@400;600&display=swap');

:root {
    --accent-primary: #3a86ff; /* Bleu Roi */
    --accent-secondary: #8338ec; /* Violet */
    --text-white: #ffffff;
    --bg-center: #1e293b;
    --bg-edge: #020617;
}

body {
    background: radial-gradient(circle at 50% 50%, var(--bg-center) 0%, var(--bg-edge) 100%);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: 'Fira Code', monospace;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0; /* FORCE LE BODY À COLLER AUX BORDS */
    padding: 0;
    animation: fadeInPage 1s ease-out;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   2. NAVBAR "HORIZON" (CORRIGÉE : COLLÉE EN HAUT)
   ========================================= */
.custom-navbar {
    position: fixed !important;
    top: 0 !important; /* FORCE LE COLLAGE EN HAUT */
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 9999; /* Toujours au-dessus */

    /* Fond sombre transparent + Flou */
    background: rgba(2, 6, 23, 0.95) !important; /* Un peu plus opaque pour bien délimiter */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(58, 134, 255, 0.3);
    margin-top: 0 !important; /* Supprime toute marge parasite */
}

/* Conteneur centré de la navbar */
.custom-navbar > .container {
    max-width: 1400px !important; /* Plus large pour l'effet "Zoomé" */
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #fff !important;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

.nav-link {
    color: #cbd5e1 !important;
    font-size: 0.85rem;
    margin-left: 20px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 10px rgba(58, 134, 255, 0.4);
}

.nav-num {
    color: var(--accent-primary);
    margin-right: 5px;
    font-weight: bold;
}

@media (max-width: 991px) {
    .custom-navbar { padding: 0.8rem 1rem; }
    .navbar-collapse {
        background: var(--bg-edge);
        padding: 1rem;
    }
}

/* =========================================
   3. ARRIÈRE-PLAN : LE CUBE
   ========================================= */
.giant-cube-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vh;
    height: 60vh;
    perspective: 1500px;
    z-index: -1;
    pointer-events: none;
}

.giant-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateMonolith 40s infinite linear;
}

.face {
    position: absolute;
    width: 60vh;
    height: 60vh;
    backface-visibility: visible;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.front, .right, .bottom {
    border-color: rgba(58, 134, 255, 0.6);
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.15), rgba(2, 6, 23, 0.7));
    box-shadow: 0 0 60px rgba(58, 134, 255, 0.15) inset;
}

.back, .left, .top {
    border-color: rgba(131, 56, 236, 0.6);
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.15), rgba(2, 6, 23, 0.7));
    box-shadow: 0 0 60px rgba(131, 56, 236, 0.15) inset;
}

.front  { transform: rotateY(0deg) translateZ(30vh); }
.back   { transform: rotateY(180deg) translateZ(30vh); }
.right  { transform: rotateY(90deg) translateZ(30vh); }
.left   { transform: rotateY(-90deg) translateZ(30vh); }
.top    { transform: rotateX(90deg) translateZ(30vh); }
.bottom { transform: rotateX(-90deg) translateZ(30vh); }

@keyframes rotateMonolith {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg); }
}

/* =========================================
   4. TEXTES & BOUTONS
   ========================================= */
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 5rem;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(58, 134, 255, 0.8);
    background: transparent;
    padding: 0;
    margin-top: 0.5rem;
}

p.text-muted, p.lead, .hero-subtitle + p {
    color: #ffffff !important;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 1px 1px 4px #000000;
}

/* Boutons */
.btn-outline-light {
    border: 2px solid var(--accent-primary);
    color: #ffffff;
    background: rgba(58, 134, 255, 0.2);
    border-radius: 0;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px black;
}
.btn-outline-light:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.6);
}

.btn-dark {
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 0;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px black;
}
.btn-dark:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Transparence globale */
.bg-white, .card, .list-group-item {
    background-color: rgba(2, 6, 23, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-white) !important;
}
.text-primary { color: var(--accent-primary) !important; }

/* --- ÉLÉMENTS DU CV (Timeline & Skills) --- */
.skill-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(58, 134, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(58, 134, 255, 0.15);
}
.skill-icon { font-size: 2.5rem; margin-bottom: 15px; color: var(--accent-primary); }
.skill-title { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff; margin-bottom: 5px; font-size: 1.1rem; }
.skill-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 50px;
    border-left: 2px solid rgba(58, 134, 255, 0.3);
}
.timeline-dot {
    position: absolute; left: -6px; top: 0; width: 10px; height: 100%; background: transparent;
}
.timeline-dot::before {
    content: ''; position: absolute; top: 5px; left: 0; width: 12px; height: 12px;
    background: var(--accent-primary); border-radius: 50%; box-shadow: 0 0 10px var(--accent-primary);
}

.alert-dark {
    /* Fond bleu très sombre et transparent au lieu du gris */
    background-color: rgba(58, 134, 255, 0.1) !important;

    /* Bordure Bleu Roi brillante */
    border: 1px solid var(--accent-primary) !important;

    /* Texte blanc */
    color: var(--text-white) !important;

    /* Petite lueur pour le style */
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.15);
}

/* --- BOITE STYLE "CYBER" (Pour les résultats et le code) --- */
.cyber-box {
    /* Fond bleu nuit presque noir et transparent */
    background-color: rgba(2, 6, 23, 0.85) !important;

    /* Bordure Cyan Néon */
    border: 1px solid #00f3ff !important;

    /* Lueur externe (Glow effect) */
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15) !important;

    /* Texte blanc */
    color: #ffffff !important;

    /* Arrondis et espacement */
    border-radius: 10px !important;
    padding: 1.5rem !important;
    margin-top: 1.5rem;
}

/* --- MODIFICATION MENU CENTRÉ (ACCUEIL) --- */

/* On augmente la taille de la police pour remplir l'espace */
.navbar-nav {
    width: 100%;
    justify-content: center;
}

.nav-link {
    font-size: 1.1rem !important; /* Plus gros (avant c'était 0.85rem) */
    font-weight: 700 !important;   /* Plus gras */
    letter-spacing: 2px !important; /* Plus espacé */
    padding: 10px 15px !important; /* Plus de zone de clic */
}

/* Ajustement des numéros // 01 pour qu'ils suivent la taille */
.nav-num {
    font-size: 1rem;
    margin-right: 8px;
}

/* Sur mobile, on remet une taille normale pour pas que ça déborde */
@media (max-width: 991px) {
    .nav-link {
        font-size: 0.9rem !important;
        text-align: center;
    }
}

/* Effet sur les images zoomables */
.zoomable {
    cursor: pointer; /* Curseur main */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.zoomable:hover {
    transform: scale(1.02); /* Léger zoom au survol */
    filter: brightness(1.1); /* Un peu plus lumineux */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Style inspiré de ta carte "Solution de Monitoring" */
.neon-card {
    background-color: #0d1117; /* Fond sombre (ajuste si besoin) */
    border: 1px solid #a855f7; /* La bordure Violette */
    border-radius: 15px;       /* Coins arrondis */
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15); /* Légère lueur violette */
    padding: 1.5rem;
    color: #ffffff;            /* Texte en blanc */
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet au survol (optionnel, pour faire joli) */
.neon-card:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    border-color: #c084fc;
    transform: translateY(-5px);
}

/* S'assure que tous les textes à l'intérieur sont lisibles */
.neon-card h1, .neon-card h2, .neon-card h3, .neon-card h5, .neon-card li {
    color: #ffffff !important;
}
.neon-card p, .neon-card span, .neon-card i {
    color: #d1d5db; /* Gris clair pour le texte secondaire */
}
/* Exception pour les icônes/titres colorés (primary) */
.neon-card .text-primary {
    color: #0d6efd !important; /* Ou ta couleur bleue personnalisée */
}