/* ------------------------------------- */
/* 1. RÉINITIALISATION ET STYLES DE BASE */
/* ------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* IMPORTANT pour le dimensionnement ! */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9; /* Arrière-plan légèrement gris */
    padding: 20px;
}

.cv-container {
    display: flex; /* Active Flexbox pour les deux colonnes */
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee; /* Ligne séparatrice entre sections */
}

.section:last-child {
    border-bottom: none;
}

h2 {
    color: #007bff; /* Couleur d'accent bleu */
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.4em;
}

ul {
    list-style: none; /* Enlève les puces par défaut */
    padding: 0;
}

li {
    margin-bottom: 5px;
}


/* ------------------------------------- */
/* 2. MISE EN PAGE : COLONNES            */
/* ------------------------------------- */

.left-column {
    flex: 1; /* Prend 1 part de l'espace total */
    background-color: #e6f0ff; /* Arrière-plan plus clair pour la colonne latérale */
    padding: 20px;
    min-width: 300px; /* Assure que la colonne a une taille minimale */
}

.right-column {
    flex: 2; /* Prend 2 parts (deux fois plus large que la colonne de gauche) */
    padding: 20px;
}


/* ------------------------------------- */
/* 3. STYLES SPÉCIFIQUES À LA COLONNE GAUCHE */
/* ------------------------------------- */

.profile-header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Rend la photo ronde */
    object-fit: cover;
    margin-bottom: 10px;
    border: 5px solid #007bff;
}

.name {
    font-size: 2em;
    color: #333;
}

.title-main {
    color: #555;
    font-weight: bold;
}

.contact-info li i {
    margin-right: 10px;
    color: #007bff;
}

.skills ul li {
    padding-left: 20px;
    position: relative;
}

.skills ul li::before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}


/* ------------------------------------- */
/* 4. STYLES SPÉCIFIQUES À LA COLONNE DROITE */
/* ------------------------------------- */

.job-item, .edu-item {
    margin-bottom: 15px;
}

.job-item h3, .edu-item h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.company-info, .school-info {
    font-style: italic;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.job-item ul {
    list-style: disc; /* Remet les puces pour les tâches */
    margin-left: 20px;
}

.profile-summary p {
    text-align: justify;
}

/* ------------------------------------- */
/* 5. RESPONSIVE (pour les petits écrans) */
/* ------------------------------------- */

@media (max-width: 768px) {
    .cv-container {
        flex-direction: column; /* Les colonnes s'empilent sur mobile */
    }

    .left-column {
        min-width: auto;
    }
}