/* PAGE CV :
   - fond gris clair
   - hauteur minimum de l'écran
   - scroll vertical autorisé */
html, body {
    min-height: 100%;
    height: auto;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #f5f5f5;
    overflow-y: auto;
}
/* TITRES PRINCIPAUX */
h1 {
    font-size: 1.2rem;
    font-weight: 100;
    text-align: center;
}

/* Sous-titre placé sous le nom */
.subtitle {
    font-size: 0.85rem;
    color: #444;
    text-align: center;
    margin-top: -5px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
}

/* TITRES DE SECTIONS */
h2 {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    display: block;
    border: 2px solid #0408f8;
    padding: 6px;
    margin: 10px 0;
    max-width: 100%;
}

/* COLONNE GAUCHE :
   informations personnelles / contact / soft skills */
.left {
    width: 20%;
    border-right: 2px solid #000;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgb(221, 221, 221);
}

.left p {
    margin: 0;
    line-height: 1.3;
}

/* STRUCTURE PRINCIPALE :
   deux colonnes sur desktop */
.layout {
    display: flex;
    width: 100%;
    min-height: auto;
}

/* COLONNE DROITE :
   contenu principal du CV */
.right {
    width: 75%;
    padding: 20px;
}

/* CONTENEUR DU CONTENU PRINCIPAL */
.container-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border-bottom: 2px solid #000;
}

/* SECTIONS DU CV :
   séparation visuelle entre formations, expériences, etc. */
.section1,
.section2,
.section3 {
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
}

/* Dates des expériences/formations */
.date {
    text-align: left;
    font-weight: 600;
    border: none;
    padding: 4px 0;
}

/* Icône info avec infobulle au survol */
.info {
    margin-left: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    position: relative;
}

.info:hover::after {
    content: attr(data-hint);
    position: absolute;
    left: 0;
    top: 120%;
    background: #222;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* RESPONSIVE :
   à partir de 1200px, le CV passe en une seule colonne
   pour rester lisible sur tablette et mobile */
@media (max-width: 1200px) {

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
        font-weight: 600;
    }

    h2 {
        font-size: 1.2rem;
        text-decoration: underline;
        color: #2e05fc;
        border: 2px solid #0408f8;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 10px;
        margin: 10px 0;
        font-weight: 600;
    }

    p, li, a {
        font-size: 1rem;
    }

    /* Passage des colonnes en affichage vertical */
    .layout {
        flex-direction: column;
    }

    /* La colonne gauche prend toute la largeur */
    .left {
        width: 100%;
        border-right: none;
        height: auto;
        padding: 16px;
    }

    /* La colonne droite prend toute la largeur */
    .right {
        width: 100%;
        padding: 20px;
    }

    /* Le contenu utilise toute la largeur disponible */
    .container-right {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 12px;
        border-bottom: 2px solid #000;
        border-top: 2px solid #000;
    }

    .section1,
    .section2,
    .section3 {
        width: 100%;
        padding: 16px;
    }
}