/* -------------------------------------------------------------------------- */
/*                                SETTINGS FOR ALL                            */
/* -------------------------------------------------------------------------- */


html {
    scroll-behavior: smooth;
    background-color: rgb(0, 0, 0);
    overflow-x: hidden;
    font-size: clamp(0.875rem, 0.8vw, 1.25rem);


}

.sidebar {
    display: none;
}




body {
    margin: 0;
    padding: 0;
    font-family: "Archivo", serif;
    font-optical-sizing: auto;

    font-style: normal;
    font-variation-settings:
        "wdth" 115;
}



a:link {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

a:visited {
    color: rgb(255, 255, 255);
}

.rubrique_nav {
    /* font-family: 'customfont_calligraphyregular'; */
    font-size: 1.875rem;
    letter-spacing: 0rem;

}

p {
    font-weight: 200;
    font-size: clamp(1.25rem, 0.8vw, 2rem);


}


.visually-hidden {
    position: absolute;
    left: -9999px;
    /* Cache totalement l'élément du visuel mais pas des technologies d’assistance */
}

.titre_rubrique_img {
    width: 500px;
}

/* Réglage de la taille de police en fonction de la taille de l'écran */


/* Exemple pour des éléments spécifiques */
h1 {
    font-size: clamp(1rem, 3vw, 2rem);

}



/* Media Queries pour un contrôle granulaire */
@media (max-width: 768px) {
    html {
        font-size: 12px;
        /* Taille réduite pour les petits écrans */
    }


}

@media (min-width: 1200px) {
    html {
        font-size: 15px;
        /* Taille augmentée pour les grands écrans */
    }
}





/* -------------------------------------------------------------------------- */
/*                                   INDEX                                    */
/* -------------------------------------------------------------------------- */

/* ---------------------------------- BODY ---------------------------------- */

#titre_index {
    width: 600px;
    /* Limite la largeur maximale */
    height: auto;
    /* Maintient les proportions de l'image */
}

.index_body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content {
    cursor: pointer;
}

/* Media Queries pour les très petits écrans */
@media (max-width: 768px) {
    .titre_rubrique_img {
        max-width: 400px;
        /* Réduit la taille sur les écrans plus petits */
    }
}

@media (max-width: 480px) {
    .titre_rubrique_img {
        max-width: 400px;
        /* Réduit encore plus sur les très petits écrans */
    }
}



/* ---------------------------------- FOND ---------------------------------- */

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    /* Met la vidéo en arrière-plan */
    opacity: 0.70;
}

/* Vidéo elle-même */
.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Remplit tout l'espace en gardant le ratio */
    object-position: center;
    /* Centre la vidéo */
}

/* --------------------------------- BOUTON --------------------------------- */

.content {
    position: fixed;
    /* Utiliser fixed pour qu'il reste au milieu peu importe le scroll */
    top: 50%;
    /* Centrage vertical */
    left: 50%;
    /* Centrage horizontal */
    transform: translate(-50%, -50%);
    /* Assure le centrage */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    /* L'image doit rester au-dessus du nav */
    transition: top 1.5s ease;
    /* Transition pour animer la remontée */

}

/* -------------------------------- NAV CACHÉ ------------------------------- */

.index_nav_bar {


    display: flex;
    height: 5rem;

    justify-content: center;
    align-items: center;
    z-index: 1;

}



.index_nav ul {
    list-style: none;
    gap: 3.125rem;
    display: flex;
    margin: 0;
    padding: 0;
}

.index_nav ul li a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 1.5625rem;
    background-color: white;
    font-style: italic;

}

.index_nav ul li a:hover {
    text-decoration: none;
    color: rgb(35, 1, 187);
    font-size: 1.5625rem;
    background-color: white;
    font-style: italic;

}

/* -------------------------------------------------------------------------- */
/*                               HEADER FOR ALL                               */
/* -------------------------------------------------------------------------- */


/* Styles pour l'en-tête */
.header_pc {
    display: flex;
    position: sticky;
    top: 0;
    width: 100%;
    height: 6.25rem;
    justify-content: space-between;
    /* Espace entre l'icône et le menu */
    align-items: center;
    z-index: 1;
    background-color: rgb(26, 26, 26);
}



nav {
    margin-right: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header ul {
    list-style: none;
    display: flex;
    gap: 6.25rem;
    margin: 0;
    padding: 0;
}

header ul li a {
    text-decoration: none;
    color: rgb(236, 236, 236);
    font-size: 1.5625rem;
}

header ul li a:visited {
    text-decoration: none;
    color: rgb(236, 236, 236);
    font-size: 1.5625rem;
}

header ul li a:hover {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 1.5625rem;
    background-color: white;
}


#header_responsive {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    top: 0;
    background-color: rgb(26, 26, 26);
    transform: translateX(-100%);
    transition: transform .35s ease-in-out;

}

#header_responsive.active {
    transform: translateX(0%);
}

#logo_header,
#logo_header_responsive {
    height: 5rem;
    margin: 1.875rem;
    transition: transform .7s ease-in-out;
}

#logo_header_responsive {
    position: fixed;
    z-index: 100;
}

#logo_header:hover,
#logo_header_responsive:hover {
    transform: rotate(360deg);

}



#side_menu {
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    align-self: center;
}

#side_menu ul {
    display: flex;
    flex-direction: column;
}

.fermer {

    color: white;
    font-size: 50px;
    position: fixed;
    top: 0;
    right: 0;
    margin-top: 1rem;
    margin-right: 2rem;
    z-index: 1000;
}

/* ---------------------------- HEADER RESPONSIVE --------------------------- */
@media only screen and (min-width: 768px) {


    #header_responsive,
    #logo_header_responsive {
        display: none;
    }


}

@media only screen and (max-width: 768px) {


    .header_pc {
        display: none;
    }

    h1 {
        margin-top: 5rem;
    }


}




/* -------------------------------------------------------------------------- */
/*                               FOOTER FOR ALL                               */
/* -------------------------------------------------------------------------- */

footer {
    display: flex;

    justify-content: center;
    align-items: center;
    padding: 1.25rem;

    color: white;


}

footer p {
    background-color: rgb(12, 0, 119);
    font-size: 20px;
}



/* -------------------------------------------------------------------------- */
/*                                PAGE ABOUT ME                               */
/* -------------------------------------------------------------------------- */


.about_me_parent_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 3.125rem;
    color: rgb(255, 255, 255);
}

.about_me_child_container {
    display: flex;
    flex-direction: column;


    align-items: center;
    width: 100%;

    padding: 1.25rem;
    margin: 0.625rem;
    gap: 1.25rem;

}

/* Style de base */
.container_photo_description {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    /* Alignement pour que les conteneurs remplissent bien la hauteur */
    background-color: hsla(0 0% 0% / 0.70);
}

#container_photo_perso {
    flex: 1 1 50%;
    /* Occupe 50% de l'espace disponible, s'adapte si nécessaire */
    max-width: 50%;
    /* Limite la largeur à 50% */
    box-sizing: border-box;
    /* Inclut les marges et bordures dans les dimensions */
    overflow: hidden;
    /* Assure que l'image reste dans les limites du conteneur */
}

#container_photo_perso img {
    width: 100%;
    /* Image adaptative à la largeur du conteneur */
    height: 100%;
    /* Prend toute la hauteur du conteneur */
    object-fit: cover;
    /* L'image se crop pour remplir le conteneur sans déformation */
    display: block;
    /* Évite les marges par défaut des images */
}

#presentation,
.description {
    display: flex;
    flex: 1 1 50%;
    /* Occupe 50% de l'espace disponible, s'adapte si nécessaire */
    max-width: 50%;
    /* Limite la largeur à 50% */
    box-sizing: border-box;
    /* Inclut les marges et bordures dans les dimensions */
    padding: 10px;
    /* Espacement autour du contenu */
    font-size: 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container_competences {
    padding: 3.125rem;
    display: flex;
    flex-direction: column;
    gap: 100px;
    align-items: center;
}

.competence {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.container_photo_competence {
    display: flex;
    flex: 1 1 20%;
    /* Occupe 50% de l'espace disponible, s'adapte si nécessaire */
    max-width: 50%;
    /* Limite la largeur à 50% */
    box-sizing: border-box;
    /* Inclut les marges et bordures dans les dimensions */
    overflow: hidden;
    /* Assure que l'image reste dans les limites du conteneur */
    align-items: center;
    justify-content: center;
}

.container_photo_competence img {
    width: 50%;
    /* Image adaptative à la largeur du conteneur */
    object-fit: cover;
    /* L'image se crop pour remplir le conteneur sans déformation */
    display: block;
    /* Évite les marges par défaut des images */

}

/* Style pour les petites fenêtres */

span {
    background-color: white;
    color: black;
    display: inline;
    font-weight: 400;
}




#bouton_CV {

    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.625rem 1.25rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 0.3125rem;
}

#bouton_texte:hover {
    background-color: #0056b3;
}


/* ----------------------------- RESPONSIVE ---------------------------- */

@media (max-width: 768px) {

    #container_photo_perso,
    #presentation {
        flex: 1 1 100%;
        /* Les deux conteneurs prennent toute la largeur */
        max-width: 100%;
        /* Limite la largeur à 100% */
    }

    .container_photo_competence {
        display: none;
    }

    .description {
        max-width: 100%;
    }
}



/* -------------------------------------------------------------------------- */
/*                                PAGE PROJETS                                */
/* -------------------------------------------------------------------------- */




#projects_parent_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: white;
    padding: 3.125rem;



}

#school_projects_container {
    display: flex;
    flex-direction: column;

    text-align: left;
    padding: 2rem;

}

#personnal_projects_container {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;

}

#filter-controls {
    display: flex;
    flex-wrap: wrap;
    /* Permet aux éléments de se réorganiser */
    justify-content: flex-start;
    align-items: center;
}

.filter_button {
    background-color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    margin: 0.625rem;
    border-radius: 0;
    color: rgb(0, 0, 0);
    

    transition: all 0.3s ease;
    font-size: 1.5rem;
    font-family: "Archivo", serif;
    font-optical-sizing: auto;

    font-style: italic;
    font-variation-settings:
        "wdth" 115;
}

@media (max-width: 768px) {
    #filter-controls {
        flex-direction: column;
        /* Les boutons s'affichent en colonne sur petits écrans */
        align-items: flex-start;
        /* Aligne les éléments à gauche */
    }

    .filter_button {
        width: 100%;
        /* Prend toute la largeur disponible pour chaque bouton */
        text-align: left;
        /* Aligne le texte à gauche */
    }
}


.filter_button:hover,
.filter_button:focus {
    outline: none;
}

.filter_button:hover {
    color: blue;
    background-color: white;


}

#titre_rubrique {

    font-weight: 400;
    font-style: normal;
    background-color: white;
    margin: 1.875rem;
    font-size: 3rem;


    color: black;
}



.projects_child_container {
    width: 100%;
    display: flex;
    grid-template-columns: repeat(5, 1fr);
    /* Ajustez la largeur min */
    margin-top: 3.125rem;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
}


form button:hover .card_project {
    transform: scale(1.05);
    transition-duration: 500ms;
}


/* Ajouter une classe pour le bouton de formulaire */
.button_form_project {
    all: unset;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    /* Assurer que le bouton prend la largeur */
}

.card_project {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;


    background-color: rgb(26, 26, 26);
}

form button:hover .card_project,
.projects_child_container a:hover .card_project {
    transform: scale(1.02);
    transition-duration: 100ms;
    box-shadow: 0px 0px 0px 3px rgb(255, 255, 255);


}




.image_container {
    /* Définir la largeur fixe */
    height: 17.5rem;
    /* Définir la hauteur fixe pour que l'image reste carrée */
    overflow: hidden;
}

.img_minia {

    width: 100%;
    max-height: 17.5rem;
    object-fit: cover;

}

.short_description {
    font-size: 1rem;
    font-weight: lighter;
}

.category_description {

    font-size: 1.25rem;
    font-weight: 100;
    padding: 0rem 1.25rem 0rem 1.25rem;
}

.project_text {
    max-width: 90%;
    justify-content: center;
    text-align: left;

}

.nom_project {
    height: 25px;
    font-weight: lighter;
    font-size: 15px;
}



/* -------------------------------------------------------------------------- */
/*                             PAGE DETAIL PROJET                             */
/* -------------------------------------------------------------------------- */


/* Stylisation du bouton */
#bouton_retour {

    display: flex;
    text-align: left;
    justify-content: left;
    color: rgb(255, 255, 255);
    font-style: italic;

}

#bouton_retour:hover {
    color: #040197;
}

#bouton_retour p {
    margin: 0;
    font-size: 2rem;
}

.projects_detail_parent_container {
    color: white;
    display: flex;
    flex-direction: column;
    padding: 3.125rem;

}

/* Style de base pour la disposition */
.projects_detail_child_container {
    display: flex;
    flex-wrap: wrap;
    /* Permet de passer à la ligne si l'espace est insuffisant */
    align-items: stretch;
    /* Aligne les enfants pour remplir la hauteur */
    padding: 3.125rem;

}

.photo_text {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    /* Occupe toute la largeur du conteneur parent */
}

.container_image_detail {
    flex: 1 1 50%;
    /* Prend 50% de la largeur */
    max-width: 50%;
    /* Limite la largeur à 50% */
    box-sizing: border-box;
    /* Inclut les marges et bordures dans les dimensions */
    overflow: hidden;
    /* Coupe les débordements */
    position: relative;
    /* Nécessaire pour le comportement des enfants */
    display: flex;
    justify-content: center;
    /* Centre le contenu horizontalement */
    align-items: center;
    /* Centre le contenu verticalement */
    height: auto;
    max-height: 100vh;
    /* Limite la hauteur maximale à la hauteur de la fenêtre */
}

.container_image_detail img,
.container_image_detail iframe,
.container_image_detail video {
    max-width: 100%;
    /* Empêche les images de dépasser en largeur */
    max-height: 100%;
    /* Empêche les images de dépasser en hauteur */
    object-fit: cover;
    /* Ajuste l'image pour remplir le conteneur avec un crop si nécessaire */
    display: block;
    /* Supprime les espaces blancs autour des éléments inline */
}

.infos_detail {
    flex: 1 1 50%;
    /* Prend 50% de la largeur */
    max-width: 50%;
    /* Limite la largeur à 50% */
    box-sizing: border-box;
    /* Inclut les marges et bordures dans les dimensions */
    padding: 10px;
    /* Ajoute un espace autour du contenu */
}

.titre_projet {
    font-size: 3.125rem;
    margin: 0;
}

.date_projet {
    font-size: 1.25rem;
}

.description_projet {
    font-size: 1.25rem;
    font-weight: lighter;
}

.titre_projet,
.date_projet {
    font-weight: lighter;
    font-style: italic;


}



.used_apps {
    margin-top: 1.875rem;
}

.icons {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.software_icon{
    max-width: 3.300rem;
    height: 3.300rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.img_icon {
    background-color: white;
    padding: 5px;
    border-radius: 15px;
    width: 100%;
}



.additional_photos_container {

    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 3.125rem;

}

.additional_photo {
    max-width: 300px;

}

.additional_photo:hover {
    box-shadow: 0px 0px 0px 3px rgb(255, 255, 255);
}


/* ---------------------------------- POPUP IMAGE ---------------------------------- */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    position: relative;
}

.popup-image {

    max-height: 100vh;
    border-radius: 8px;
}



.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    background-color: none;
}

.close:hover {
    color: red;
}

@media (max-width: 768px) {

    .container_image_detail,
    .infos_detail {
        flex: 1 1 100%;
        /* Les deux conteneurs prennent toute la largeur */
        max-width: 100%;
        /* Limite la largeur à 100% */
    }

    .container_image_detail {
        height: 50vh;
    }

    .projects_detail_child_container {
        
        /* Permet de passer à la ligne si l'espace est insuffisant */
       
        /* Aligne les enfants pour remplir la hauteur */
        padding: 3.125rem 0 0 0;

    
    }

    .popup-image {

        max-width: 50vh;
        border-radius: 8px;
    }

    #bouton_retour {
        margin-top: 5rem;
        display: flex;


    }

    .close {
    
    font-size: 30px;
    }



}



/* -------------------------------------------------------------------------- */
/*                                PAGE CONTACT                                */
/* -------------------------------------------------------------------------- */

#contact_parent_container {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 3.125rem;
    color: white;


}

.infos_contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3.125rem;

}



.contact_links_container {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    max-width: 100%;





}




.social-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.125rem;
    margin-bottom: 3rem;


}

.social_link:link{
    color: #000000;
}

.social_link:visited{
    color: #000000;
}



.container_icon {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;


    padding: 0.3rem 1rem;
    border-radius: 0.9375rem;
    background-color: white;
    gap: 20px;

}

.container_icon p {
    font-weight: 500;
}


.container_icon:hover {
    background-color: rgb(112, 87, 255);

}

.contact-icon {
    max-width: 2.125rem;
    max-height: 2.125rem;
}

.social-links img {
    width: 100%;
    height: auto;
}



.email-link {

    display: block;
    text-align: center;
    font-size: 3rem;
    font-weight: lighter;
    margin: 6.25rem 0 6.25rem 0;
    background-color: white;

}

.reseaux-title {
    font-weight: lighter;
    font-size: 20px;
}

.email-link:link{
    color: #000000;
}

.email-link:hover {
    color: #0056b3;
    background-color: white;
}