/* STYLE GLOBAL */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Style des liens */
a {
    text-decoration: none;
    color: #666;
}
a:hover {
    color: #999;
}

#LinKtree {
    text-decoration: underline; 
}



/* STYLE DU HEADER */
header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

header .profile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

header .profile img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin-right: 20px;
}

header .profile-text h1 {
    margin: 0;
    font-size: 2rem;
}

header .profile-text p {
    margin: 5px 0 0;
    font-size: 1rem;
}

/* HEADER STYLE PRACTICLES JS, PARTICULES QUI BOUGENT */
header {
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
}

.profile {
    position: relative;
    z-index: 1; /* Passe devant les particules */
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 2rem;
}



/* BODY MAIN */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style des sections */
section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #555;
}

/* Style des skills et expériences */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-category, .experience, .formation, .interet, .certification {
    flex: 1 1 300px;
}

.skill-category h3, .experience h3, .formation h3, .interet h3, .certification h3 {
    margin-bottom: 10px;
    color: #555;
}

#postman ul {
    list-style: disc;
    padding-left: 20px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    margin-bottom: 5px;
}

/* Optimisation espace*/
.colonnes-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.colonnes-section section{
    flex: 1 1 45%;
}


/* STYLE DU FOOTER */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}


/* STYLE FONCTIONNALITÉS JS */

/* STYLE ancre */
/* Ancre ramène en haut de la page */
#back-to-top {
    position: fixed; 
    display: none; /* Masqué, apparaît grâce à JS */
    bottom: 20px; 
    right: 0.25em; 
    background-color: #6c757d; 
    color: #ffffff; 
    padding: 10px; 
    border-radius: 50%; 
    cursor: pointer; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre */
    transition: background-color 0.3s; /* Transition pour le changement de couleur */
    text-align: center; 
    text-decoration: none; 
    font-size: 24px; 
    line-height: 24px; 
}


#back-to-top:hover {
    background-color: #495057; 
}

html {
    scroll-behavior: smooth;
}

/* DARK MODE */
/* Bouton jour/nuit */
.mode-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    font-size: 1.5rem;
    padding: 8px 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

body.dark-mode {
    background-color: #121212;
    color: #fff;
}

body.dark-mode header,
body.dark-mode footer {
    background-color: #1f1f1f;
}

body.dark-mode nav ul li a {
    color: #bbb;
}

body.dark-mode section {
    background-color: #1f1f1f;
    color: #fff;
}

body.dark-mode section h2 {
    border-bottom-color: #fff;
}

/* Style du bouton en mode sombre */
body.dark-mode .mode-toggle {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
}

body.dark-mode .mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* LIGHTBOX photo mathias Header*/
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backdrop-filter: blur(8px); /* Compatible avec safari */
    backdrop-filter: blur(8px); /* Pas compatible avec safari */
    background-color: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    transform: scale(1.2); /* Zoom plus fort */
}

/* Lazyload et scroll */
.scroll-reveal {
    opacity: 0; /* Invisible */
    transform: translateY(20px); /* Décalage bas de 20px */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; /* Transition opacité */
}

.scroll-reveal.visible {
    opacity: 1; /* Visible car 1 */
    transform: translateY(0); /* Retourne position de base */
}


/* Animation zoom */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* RESPONSIVE IMPRIMANTE" */
@media print {


    section h2 {
        margin-top: 10px;
        margin-bottom: 0px;
        padding-bottom: 0px;
    }

    /* Masquer bouton nuit/jour et copyright */
    button, #Copyright{
        display: none;
    }

    footer {
        display: none;
    }

    /* Réduire la taille du header */
    .profile {
        gap: 0px;
        padding: 5px;
        margin-bottom: 0px;
    }


    /* Header blanc */
    header {
        background-color: #fff;
        color: #000; /* Couleur noir, sinon ne s'affiche pas */
        padding: 0px;
    }

    body {
        background-color: #fff;
    }

    .print-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .skills {
        gap: 0px;
        margin-bottom: 0px;
    }

    .skill-category {
        margin-bottom: 0px;
    }

    #experiences, #certifications {
        padding-top: 15px;
    }

    #formations{
        padding-right: 15px;
    }

    #aProposMoi{
        padding-right: 15px;
    }


    section {
        margin-bottom: 0px;
        padding: 0px;
        border-radius: 0px;
        box-shadow: none;
    }

    .scroll-reveal {
        opacity: 1; /* Visible */
        transform: translateY(0); /* Retourne position de base */
    }

}


/* RESPONSIVE TEL */
/* Responsive image */
@media (max-width: 600px) {
    .lightbox img {
        width: 90vw;
        height: auto;
        transform: scale(1); /* moins de zoom sur petit écran */
    }
}

/* Responsive telephone */
@media (max-width: 768px) {
    header .profile {
        flex-direction: column;
        text-align: center;
    }

    header .profile img {
        margin-bottom: 20px;
    }

    .colonnes-section {
        display: flex;
        gap: 0px;
        flex-wrap: wrap;
    }
}
