/* --- CONFIGURATION ET VARIABLES --- */
:root {
    --line: 2px solid #000;
    --text-black: #1a1a1a;
    --text-white: #ffffff;
    --text-grey: #a8a8a8;
    
    /* Couleurs Pastels */
    --c-profil: rgba(255, 165, 126, 0.6);   
    --c-formation: rgba(126, 180, 255, 0.6); 
    --c-exp: rgba(255, 225, 126, 0.6);      
    --c-skills: rgba(255, 126, 126, 0.6);   
    --c-langues: rgba(126, 255, 188, 0.6);   
    --c-personnel: rgba(255, 126, 223, 0.6);

    --elem-height: 50px;
    --padding-x: 40px;
    --text-size-2: 1.1rem;
    --bg-white: #ffffff;
}

/* --- RESET & BASE --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-black);
    display: flex;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
.identity{
    padding-left:35px;
}
/* --- SIDEBAR (ASIDE) --- */
.sidebar {
    width: 320px;
    height: 100vh;
    position: fixed;
    padding: 35px 0; /* Padding vertical uniquement pour les bords */
    border-right: var(--line);
    display: flex;
    flex-direction: column;
    background-color: black; /* Fond noir forcé */
    
    /* Scrollable */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

/* Scrollbar pour Chrome/Safari */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #333; }

.identity h1 { 
    font-size: 2rem; 
    color: var(--text-white) !important; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    font-weight: 900; 
}

.role { 
    font-size: 0.8rem; 
    color: var(--text-grey) !important; 
    text-transform: uppercase; 
    margin-top: 5px; 
}

/* --- NAVIGATION & BOUTON ACCUEIL --- */
.contact-links { 
    margin: 15px 0; 
    display: flex; 
    flex-direction: column; 
    gap: 5px;
    padding: 0 30px;
}

.contact-links a { 
    font-size: 0.8rem; 
    color: var(--text-grey) !important;
    text-decoration: none; 
    border-bottom: 0.5px solid transparent; 
    width: fit-content; 
    font-weight: 300; 
    transition: all 0.3s;
}

.contact-links a:hover { 
    color: var(--text-white) !important;
    border-bottom: 0.5px solid #ffffff; 
}

/* Le bouton accueil */
.conteneur_Nav {
    width: 100%;
    min-height: var(--elem-height);
    background-color: black;
    transition: background 0.3s;
}

.conteneur_Nav a {
    display: flex;
    align-items: center;
    height: var(--elem-height);
    padding-left: 30px;
    text-decoration: none;
    color: var(--text-white) !important;
    font-size: var(--text-size-2);
    text-transform: uppercase;
}

/* Correction Hover : Fond blanc, texte noir */
.conteneur_Nav:hover {
    background-color: var(--bg-white) !important;
}

.conteneur_Nav:hover a {
    color: black !important;
}

/* --- SECTIONS SIDEBAR (LANGUES, SKILLS...) --- */
.sidebar h2 {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 5px 15px;
    margin: 20px 30px 10px 30px; /* Correction du gap sous langues */
    font-weight: 600;
    color: var(--text-black) !important; /* Texte noir sur étiquette de couleur */
}

.title-langues { background: var(--c-langues); }
.title-skills { background: var(--c-skills); }
.title-personnel { background: var(--c-personnel); }
.title-profil { background: var(--c-profil); }
.title-formation { background: var(--c-formation); }
.title-experience { background: var(--c-exp); }

/* Listes de compétences et langues */
.languages, .sidebar-skills {
    padding: 0 30px;
    margin-bottom: 20px;
}

.languages {  
    color: var(--text-white) !important; 
    font-family: 'Space Mono', monospace; 
    font-size: 0.8rem; 
    line-height: 1.8; 
}

.languages span {  
    color: var(--text-grey) !important; 
    font-weight: bold; 
    margin-right: 8px; 
}

.sidebar-skills {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-skills h4 {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-grey) !important;
    margin-bottom: 3px;
}

.sidebar-skills p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-white) !important;
}

/* --- CONTENU PRINCIPAL (MAIN) --- */
.cv-content {
    margin-left: 280px; /* Aligné sur la largeur sidebar */
    padding: 0 60px 100px 60px;
    width: 100%;
    max-width: 1100px;
}

.section {
    padding: 60px 0 40px 0;
    border-bottom: var(--line);
}

/* Titres sections main */
.section h2 {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 5px 10px;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--text-black) !important;
    
}



/* Grilles et Textes */
.text-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.text-cols p { 
    font-size: 0.95rem; 
    line-height: 1.6; 
    text-align: justify; 
    color: var(--text-black) !important;
}

.list-items { display: flex; flex-direction: column; gap: 30px; }
.item { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; }

.date { 
    font-family: 'Space Mono', monospace; 
    font-size: 0.75rem; 
    color: #888 !important; 
}

.details strong { 
    font-size: 0.95rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    color: var(--text-black) !important;
    display: block;
    margin-bottom: 5px;
}

.details p { 
    font-size: 0.9rem; 
    line-height: 1.5;
    color: #444 !important; 
    margin-bottom: 5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1000px) {
    body { flex-direction: column; }
    .sidebar { 
        position: relative; 
        width: 100%; 
        height: auto; 
        border-right: none; 
        border-bottom: var(--line); 
    }
    .cv-content { margin-left: 0; padding: 40px 20px; }
    .text-cols, .item { grid-template-columns: 1fr; gap: 20px; }
    .date { margin-bottom: 5px; display: block; }
}