:root {
    --bg-color: #050505;
    --text-color: #ffffff;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    cursor: none !important;
}

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

#canvas-particles {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
}

#content-wrapper {
    position: relative; z-index: 10;
    max-width: 1100px; margin: 0 auto; padding: 0 5%;
}

/* NAVIGATION */
nav { display: flex; justify-content: space-between; align-items: center; height: 100px; }
.logo { font-weight: 800; font-size: 1.2rem; }
.logo span { color: #1345e9; } /* Le bleu uniquement sur le nom */
.nav-links a { margin-left: 2rem; text-decoration: none; color: white; opacity: 0.7; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: #1345e9; }

/* HERO */
.hero { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.profile-img { 
    width: 180px; height: 180px; border-radius: 20px; 
    object-fit: cover; border: 2px solid #1345e9; 
    margin-bottom: 2rem; box-shadow: 0 0 20px rgba(19, 69, 233, 0.3);
}
h1 { font-size: clamp(2rem, 8vw, 4.5rem); margin-bottom: 1rem; }
.subtitle { color: #888; margin-bottom: 2rem; }

/* BOUTON CV */
.btn-primary {
    padding: 1rem 2rem; border: 1px solid #1345e9; color: white;
    text-decoration: none; border-radius: 8px; background: rgba(19, 69, 233, 0.1);
    transition: 0.3s; display: inline-block;
}
.btn-primary:hover { background: #1345e9; transform: translateY(-3px); }

/* SECTIONS */
section { padding: 80px 0; }
h2 { font-size: 2rem; margin-bottom: 3rem; border-left: 4px solid #1345e9; padding-left: 15px; }
.experience-grid { display: grid; gap: 20px; }
.exp-card { 
    background: rgba(255,255,255,0.03); padding: 2rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05); display: flex; gap: 20px;
}
.exp-card .date { color: #1345e9; font-weight: 800; min-width: 100px; }

/* COMPETENCES */
.skills-container { display: flex; flex-direction: column; gap: 15px; }
.skill-item { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 8px; }
.skill-item span { color: #1345e9; font-weight: bold; margin-right: 10px; }

/* CURSEUR ROND */
/* --- 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;
}

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease; }
.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
/* Modification de la carte pour supporter le lien */
.exp-card {
    text-decoration: none; /* Enleve le souligné bleu */
    color: inherit;       /* Garde la couleur blanche du texte */
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Transition fluide pour le zoom */
}

/* Effet Micro-Zoom au survol */
.exp-card:hover {
    background: rgba(19, 69, 233, 0.1); /* Teinte bleutée au survol */
    border-color: #1345e9;
    transform: scale(1.03); /* Le micro-zoom */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Petite flèche à droite de la carte */
.arrow {
    font-size: 1.5rem;
    color: #1345e9;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.exp-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* On s'assure que le texte reste propre dans les liens */
.card-text h3 {
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.exp-card:hover h3 {
    color: #1345e9;
}
/* --- CONFIGURATION THÈME CLAIR --- */
body.light-mode {
    background-color: #f4f4f4 !important; /* Gris très clair ou blanc */
    color: #050505 !important;
}

body.light-mode #canvas-particles {
    filter: invert(1); /* Inverse la couleur des particules (blanc -> noir) */
    opacity: 0.6;      /* Rend les traits un peu plus discrets sur fond clair */
}

body.light-mode .exp-card, 
body.light-mode .column,
body.light-mode .skill-item {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #050505 !important;
}

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

/* Le curseur devient noir en mode clair */
body.light-mode #cursor {
    background-color: #000;
}
/* 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;
}