:root {
    --bg-dark: #050505; /* Noir profond identique à l'index */
    --accent-blue: #1345e9;
    --text-main: #ffffff;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    cursor: none !important; /* Pour garder ton curseur personnalisé */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* On réutilise le même z-index pour le canvas des pages stages */
#canvas-particles {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    position: relative;
    z-index: 10;
    padding: 60px 10%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- CARROUSEL --- */
.carousel-container {
    position: relative;
    max-width: 550px;
    height: 700px;
    margin: 40px auto;
    background-color: #000;
    border: 1px solid rgba(19, 69, 233, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(19, 69, 233, 0.15);
}
.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
}

.slide {
    display: none; /* Cache les images par défaut */
    width: 100%;
    height: 100%;
    position: relative;
}

.slide.active {
    display: block; /* Affiche uniquement l'image active */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Évite de déformer les photos */
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--accent-blue);
}

/* --- BOUTONS & CARTES --- */
.certif-card.blue-border {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--accent-blue);
}

.btn-main {
    background: var(--accent-blue);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(19, 69, 233, 0.4);
}
/* --- CORRECTION AFFICHAGE BOUTONS CARROUSEL --- */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(19, 69, 233, 0.4); /* Bleu transparent */
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    z-index: 100; /* Assure d'être au-dessus de l'image */
    cursor: none !important; /* Pour utiliser votre curseur blanc */
    border-radius: 5px;
    transition: 0.3s;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background: var(--accent-blue);
}

/* --- MISE EN PAGE DU TEXTE (MISSIONS ET COMPÉTENCES) --- */
.flex-row {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: space-between;
}

.column {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.task-list {
    list-style: none;
    margin-top: 15px;
}

.task-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

/* Ajout d'une flèche bleue devant chaque mission */
.task-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.back-home {
    margin-top: 60px;
    text-align: center;
}
/* --- CURSEUR DE BASE --- */
#cursor {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, background-color 0.3s ease;
}

/* --- MODE CLAIR --- */
body.light-mode {
    background-color: #f4f4f4 !important;
    color: #050505 !important;
}

body.light-mode #cursor {
    background-color: #000 !important; /* Force le curseur en noir */
}

body.light-mode #canvas-particles {
    filter: invert(1) brightness(0.5); /* Rend les traits noirs */
}

body.light-mode .btn-primary, 
body.light-mode .btn-main {
    color: #000 !important;
    border-color: #1345e9 !important;
}

/* Style du bouton dans la nav */
.theme-nav-btn {
    background: transparent;
    border: 1px solid rgba(19, 69, 233, 0.4);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 15px;
    cursor: none !important;
}

body.light-mode .theme-nav-btn {
    color: #000;
    border-color: #000;
}
/* --- BOUTON DE SWITCH --- */
.theme-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(19, 69, 233, 0.4);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001; /* Au-dessus du curseur */
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
    background: var(--accent-blue);
}

/* --- RÈGLES DU MODE CLAIR --- */
body.light-mode {
    background-color: #f4f4f4 !important;
    color: #050505 !important;
}

/* Inversion des constellations (Blanc -> Noir) */
body.light-mode #canvas-particles {
    filter: invert(1) brightness(0.5);
}

/* Adaptation des éléments en mode clair */
body.light-mode .exp-card, 
body.light-mode .column,
body.light-mode .skill-item {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #050505 !important;
}

body.light-mode .nav-links a,
body.light-mode .subtitle {
    color: #444 !important;
}

body.light-mode #cursor {
    background-color: #000; /* Le curseur devient noir */
}
/* Style du bouton dans la barre de navigation */
.theme-nav-btn {
    background: transparent;
    border: 1px solid rgba(19, 69, 233, 0.4);
    color: white;
    cursor: none !important; /* Pour garder ton curseur personnalisé */
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 15px;
    font-size: 1.2rem;
    transition: 0.3s;
}

.theme-nav-btn:hover {
    background: rgba(19, 69, 233, 0.2);
    border-color: #1345e9;
}

/* On force la couleur de l'icône en mode clair */
body.light-mode .theme-nav-btn {
    color: #000;
    border-color: rgba(0, 0, 0, 0.2);
}
/* Correction de la souris en mode clair */
body.light-mode #cursor {
    background-color: #000 !important;
    mix-blend-mode: normal !important; /* On enlève difference pour mieux voir sur blanc */
}

/* Correction du bouton CV et des liens en mode clair */
body.light-mode .btn-primary, 
body.light-mode .btn-main {
    color: #000 !important; /* Texte noir */
    border-color: #1345e9 !important;
    background: rgba(19, 69, 233, 0.1) !important;
}

body.light-mode .btn-primary:hover {
    background: #1345e9 !important;
    color: #fff !important; /* Texte blanc au survol pour le contraste */
}

/* On s'assure que le canvas ne cache pas le texte */
#canvas-particles {
    pointer-events: none;
}