* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    background-color: white;
    color: #000;

}

body {
    display: flex;
    flex-direction: column;


}

header {
    background-color: white;
    color: black;
    padding: 1.5rem;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    font-size: 10px;
    position: relative;
}

nav ul li {
    margin: 0 1rem;
    position: relative;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
    text-transform: uppercase;
}

nav ul li a.active {
    color: black;
    font-weight: bold;
}

nav ul li a.inactive-menu {
    color: white !important;
    pointer-events: none;
}

.submenu-parent {
    position: relative;
}

nav ul li .submenu-container {
    display: none;
    position: absolute;
    top: 200%; /* Ajuste cette valeur pour descendre les sous-menus */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: max-content; /* Assure que le container de sous-menu prend la largeur nécessaire */
}

nav ul li .submenu {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li .submenu li {
    display: inline-block;
    margin: 0 5px; /* Espace autour du séparateur */
}

nav ul li .submenu li span {
    color: black;
    padding: 0 5px;
}

nav ul li .submenu li a {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    text-transform: uppercase;
}

nav ul li.submenu-open > a {
    font-weight: bold;
}

nav ul li.submenu-open .submenu-container {
    display: flex;
}

.submenu-container {
    display: none;
}


.gallery-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 0;
    padding-top: calc(1.5rem + 2rem); /* Hauteur du header + padding supplémentaire */
    padding-bottom: calc(3rem + 1.5rem); /* Hauteur du footer */
    overflow: auto; /* Permet le défilement */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Carrés de 150px de côté */
    gap: 0; /* Pas d'espace entre les images */
    flex: 1; /* Prend tout l'espace disponible */
    width: 100%;
}

.grid-container a {
    display: block;
    width: 100%;
    padding-bottom: 100%; /* Maintient un ratio 1:1 */
    position: relative;

}

.grid-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* S'assure que les images couvrent tout l'espace sans distorsion */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

#process {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.full-screen-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.full-screen-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .full-screen-image {
        height: 60vh;
    }

    .full-screen-image img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .full-screen-image {
        height: 50vh;
    }

    .full-screen-image img {
        max-width: 100%;
        height: auto;
    }
}

.pdf-viewer {
    margin: 2rem 0;
}

.download-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #0000;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    border: 1px solid black;
}

.download-link:hover {
    background-color: #0000;
    border: 1px solid black;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    overflow: auto;
    padding: 20px;
}

.lightbox:target {
    display: flex;
}

.lightbox .lightbox-content {
    position: relative;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    overflow: auto;
    background: none;
}

.lightbox .lightbox-close-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lightbox .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: white;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.lightbox img {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
}

.lightbox .lightbox-text {
    color: white;
    text-align: justify;
    font-size: 12px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    padding: 20px;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .full-screen-image {
        height: 50vh;
    }

    .full-screen-image img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .full-screen-image {
        height: 50vh;
    }

    .full-screen-image img {
        max-width: 100%;
        height: auto;
    }
}

.cv-container {
    max-width: 100%;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: justify;
}

.cv-container p {
    margin-left: 11%;
    margin-right: 11%;
    margin-top: 4%;
    margin-bottom: 5%;
    line-height: 24px;
    color: #555;
    font-size: 12px;
    text-align: justify;
}

.cv-container h1 {
    font-size: 13px;
}


/* Ajoutez un padding pour le contenu principal */
main {
    margin-top: 80px; /* Correspond à la hauteur du header */
    margin-bottom: 60px; /* Correspond à la hauteur du footer */
    overflow: auto; /* Permet le défilement */
}

/* Conteneur principal pour les images */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3%;


.image-container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 5%;
    margin-bottom: 2%;
}

.centered-image {
    display: block;
  
    max-width: 80%;
    height: auto;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
}

.centered-image2 {
    display: block;
    max-width: 80%;
    height: auto;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0.05, 0.05, 0.05, 0.05);
}

.bordered-text {
    border: 0.5px solid black;
    padding: 10px;
    margin: 5px auto;
    max-width: 60%;
    text-align: center;
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    margin: 10%;
}

main .video-container video {
    max-width: 800px;
    width: 100%; /* Prend toute la largeur disponible, limitée par max-width */
    height: auto;
    display: block;
    margin: 0 auto; /* Centre la vidéo */
    border-radius: 8px; /* Arrondi esthétique */
}

.bordered-text {
    border: 1px solid black;
    padding: 20px;
    max-width: 60%;
    text-align: center;
    display: block; /* Ajouté pour s'assurer que l'élément est traité comme un bloc */
}

.bordered-text2 {
    border: 1px solid black;
    padding: 20px;
    max-width: 80%;
    text-align: center;
    display: block; /* Ajouté pour s'assurer que l'élément est traité comme un bloc */
}

.bordered-text3 {
    border: 1px solid black;
    padding: 20px;
    margin: 90px auto;
    max-width: 80%;
    text-align: center;
    display: block; /* Ajouté pour s'assurer que l'élément est traité comme un bloc */
    margin-bottom: 90px auto;
}

#container {
    width: 100%;
    height: 100vh;
    position: relative;
}


.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery a {
    display: block;
    width: 150px; /* Ajustez la taille de l'image selon vos besoins */
    height: 150px; /* Ajustez la taille de l'image selon vos besoins */
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

 a-scene {
            width: 100%;
            height: 100%;
        }

.links-container {
    display: flex;
    justify-content: start;
    flex-wrap: wrap; /* Pour permettre aux liens de se replier si l'espace est insuffisant */
    margin: 80px 10%;
    padding: 20px 0;
 


}

.links-container2 {
    display: flex;
    justify-content: start;
    flex-wrap: wrap; /* Pour permettre aux liens de se replier si l'espace est insuffisant */
    
    margin-bottom: 10%;
    margin-left: 10%;
    margin-right: 80px 10%;
    padding: 20px 0;
 


}

.links-container a {
    color: #666;
    font-size: 12px;
    font-family: Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

.links-container2 a {
    color: #666;
    font-size: 12px;
    font-family: Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

.links-container a:hover {
    background-color: #0000;
    border-color: black;
}

.links-container2 a:hover {
    background-color: #0000;
    border-color: black;
}

        footer {
            background-color: white;
            text-align: center;
            font-size: 10px;
            padding: 2rem 0;
            width: 100%;
            position: fixed;
            bottom: 0;
            z-index: 1000;
        }

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-item {

    padding: 15px;
  
  
}

.video-item iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.video-item h2 {
    font-size: 1.2rem;
   
}

.video-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}


/* Style de base pour la flèche */
.arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease; /* Animation de rotation */
}

/* Rotation lorsque le sous-menu est ouvert */
.submenu-open .arrow {
    transform: rotate(180deg); /* Fait pivoter la flèche */
}


.has-submenu {
    cursor: pointer;
    position: relative;
    color: black;
}

.has-submenu:hover {
    color: inherit; /* Conserve la couleur par défaut sans changement */
    cursor: pointer;
}

nav .has-submenu:hover {
    color: inherit !important; /* Inutile si la première règle est suffisante */
}

nav ul li.submenu-open > a {
    color: black; /* Assurez que le sous-menu ouvert ne change pas la couleur */
}

nav ul li a:hover ~ .active {
    font-weight: normal !important; /* Enlève le bold temporairement */
}

.has-submenu.active {
    font-weight: bold;
}

.submenu-container {
    display: none; /* Le sous-menu est caché par défaut */
    flex-direction: column;
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px; /* Ajoutez du padding si nécessaire */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Invisible par défaut */
    transform: translateY(10px) scaleY(0); /* Position initiale */
    transform-origin: top;
    transition: transform 0.3s ease, opacity 0.3s ease;

    position: absolute; /* Place le sous-menu par rapport à "Vaguer" */
    top: 100%; /* Place le sous-menu directement sous "Vaguer" */
    left: 50%; /* Centre horizontalement */
    transform: translateX(-50%) translateY(10px) scaleY(0); /* Centre exactement */
    z-index: 1000; /* Assure que le sous-menu apparaît au-dessus */
    width: max-content; /* Ajuste la largeur au contenu */
    text-align: center; /* Centre le texte à l'intérieur */
}
.submenu-open .submenu-container {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) scaleY(1); /* Garde le centrage horizontal */
}



.submenu-parent {
    position: relative; /* Le sous-menu sera centré par rapport à cet élément */
}
.submenu-container ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.submenu-parent:hover .submenu-container {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) scaleY(1); /* Apparition fluide */
}

@media (hover: none) {
    .submenu-parent:hover .submenu-container {
        display: none; /* Désactive le survol sur les appareils tactiles */
    }
}