/* Police générique pour tout le document */
* {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----- HEADER ----- */
header {
    background-color: #000;
    width: 100%;
    height: 20vh;
    color: #ffffff;
}

/* structure interne du header */
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;     /* un peu de respiration à gauche/droite */
}

/* image */
.photo-cv {
    height: 80%;
    border-radius: 10px;
}

@media screen and (max-width: 768px) {
    /* on masque simplement l’image */
    .photo-cv {
        display: none;
    }

    .header-wrapper h1 {
        text-align: center;
    }
}

h1 {
    text-align: center;
    flex: 1;             /* permet au titre de prendre l'espace central restant */
}

/* ----------- Bouton ---------- */
.btn-contact {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;
    color: #ffffff;
    border: #ffffff solid 3px;
    border-radius: 8px;
    cursor: pointer;
}

/* input masqué */
.modal-toggle {
    display: none;
}

/* modal masqué par défaut */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    height: 100vh;
}

/* contenu du modal */
.modal-content {
    background: #ffffff;
    color: #000000;
    padding: 30px;
    border-radius: 12px;
    min-width: 300px;
    text-align: center;
}

/* bouton de fermeture */
.close-modal {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 16px;
    background: #264D35;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* Afficher le modal lorsque la checkbox est cochée */
.modal-toggle:checked + .modal {
    display: flex;
}

/* ----- MAIN ----- */
main {
    background-color: #ffffff;
}

main section h2 {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}


/* sections (présentation, expepro, formation, competences) */
main .presentation,
main .expepro,
main .formation,
main .competences {
    margin-bottom: 20px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12); 
}

main section {
    width: 98%;
    margin: 0 auto;   /* permet de centrer horizontalement */
}

/* couleur différente mais cohérente */
main .presentation {
    background-color: #2A3B4A;  /* bleu-gris foncé */
}
main .expepro {
    background-color: #3D314C; /* violet foncé/grisé */
}
main .formation {
    background-color: #333C38; /* vert-gris très sombre */
}
main .competences {
    background-color: #403030; /* rouge-brun sombre */
}

/* ----- QUADEF ----- */
main .quadef {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

main .quadef .qualite,
main .quadef .defaut {
    flex: 1;
    padding: 20px;
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
}

/* couleurs imposées */
main .quadef .qualite {
    background-color: #2e7d32; /* vert */
}
main .quadef .defaut {
    background-color: #c62828; /* rouge */
}

/* ----- PASSETEMPS / LANGUE / CONTACT ----- */
main .passetemplanguecontact {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* même style bento box */
main .passetemplanguecontact .passetemps,
main .passetemplanguecontact .langue,
main .passetemplanguecontact .contact {
    flex: 1;
    padding: 20px;
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
}

/* choix de couleurs cohérentes */
main .passetemplanguecontact .passetemps {
    background-color: #37474F; /* bleu ardoise foncé */
}
main .passetemplanguecontact .langue {
    background-color: #455A64; /* gris bleuté foncé */
}
main .passetemplanguecontact .contact {
    background-color: #546E7A; /* gris bleu un peu plus clair */
}

.timeline {
    position: relative;
    list-style: none;
    padding-left: 0;
    margin-left: 110px;                 /* <- augmenté */
}
.timeline::before {
    content: "";
    position: absolute;
    left: -10px;                        /* <- décalé */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.4);
}
.timeline .date {
    position: absolute;
    left: -120px;                       /* <- plus à gauche */
    width: 110px;                       /* <- plus large pour la date */
    text-align: right;
    color: #ffffff;
    font-weight: bold;
}
.timeline li {
    position: relative;
    margin-bottom: 25px;
}

.timeline .content {
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}




.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.skill-cat {
    background-color: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
}

/* responsive : 1 colonne sur mobile */
@media screen and (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}


.lang-list {
    list-style: none;
    text-align: center;
    padding-left: 0;
}


.copy-btn {
    margin-left: 10px;
    padding: 4px 8px;
    font-size: 0.8rem;
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background-color: rgba(255,255,255,0.3);
}


/* ----- FOOTER ----- */

footer {
    background-color: #000;
    color: #ffffff;
    padding: 20px;
}

.footer-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;  /* <-- centre horizontalement, remonte un peu verticalement */
}