/* Styles de base */
body {
    font-family: "Neue Haas Grotesk", sans-serif;
    cursor: url('assets/images/cursor.cur'), auto;
    
    scrollbar-width: auto;
    scrollbar-color: #000000 rgb(255, 38, 38);

    background-color: #969696; 
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


    
}





header, footer {
    opacity: 0; /* Invisible au départ */
    transition: opacity 0.4s ease, transform 0.4s ease; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre douce */
}

#siteHeader-page, #siteFooter-page {
    opacity: 1; /* Invisible au départ */
    transition: opacity 0.4s ease, transform 0.4s ease; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre douce */
    transform: translateY(0);
}

/* Styles pour la navigation */





header p {
    margin-left: 2vh;    

}

.logo {
    position: absolute;
   
}
#red {
        
    background-color: #ff0000;
}

#yellow {
        
    background-color: #faf221;
}

#grey {
    
    background-color:#969696;
}

#black {
    
    background-color: #000000;
}

#white {
    
    background-color: #ffffffff;
}
@media (max-width: 768px) { /* Ajuste la taille selon tes besoins */
   
   
   
    .message-header {
      display: none; }

        .menu-resp {
       position: relative;
        font-size: 12pt;
         width: 100%;
         height: 3vh; /* Ajuste la hauteur selon tes besoins */
         display: flex;
         align-items: center; /* Centre le contenu en hauteur */
         justify-content: center; /* Centre le contenu horizontalement */
        
     }

    .carte1 {
   
        display: none;
    }
  
 .grid-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 3 colonnes par ligne */
    gap: 2vh; /* Espace entre les items */
    padding: 2vh;
    z-index: 2;
    background-color: #ff0000;
    
}

footer {
    background-color:rgb(255, 255, 255); /* Couleur de fond du pied de page */
    color: #000000; /* Couleur du texte du pied de page */
    position: fixed;
 
    width: 100%;
    height: auto;
    padding: 0px;
    z-index: 1000;
font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600;
    font-style: normal;
    

    bottom: 0;
    
}

header {
    background-color:rgb(0, 0, 0); /* Couleur de fond du pied de page */
    color: #ffffff; /* Couleur du texte du pied de page */
    position: fixed;
 
    width: 100%;
    height: auto;
    padding: 0px;
    z-index: 1000;
font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;


    top: 0;
    
}

header a {
    color: #ffffff;
}
.logo {
    
        display: flex; 
        background-color: #ffffff; 
        width: 100%;
        height: 6vh;
        align-items: center;
        justify-content: center;
        position: relative;
     
    
    
}
.logo img {
    width: 30vh;
    position: fixed;
    top: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Ajustez la hauteur de votre image selon vos besoins */
    padding: 0 10px 0 10px;
   

}



.reseaux-sociaux {
   font-size: 12pt;
    width: 100%;
    height: 3vh; /* Ajuste la hauteur selon tes besoins */
    display: flex;
    align-items: center; /* Centre le contenu en hauteur */
    justify-content: center; /* Centre le contenu horizontalement */
   
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center; /* Centre les éléments verticalement */
    justify-content: center;


   
    
  
}



nav ul li {
    margin: 0 1vh 0 1vh; /* Espacement entre les éléments de navigation */
    

}
.dr {
    display: flex; 
     font-size: 8pt;
    background-color: #000000; 
    width: 100%;
    height: 2vh;
    align-items: center;
    justify-content: center;
 
 }

 .dr p, .dr a {
    color:#ffffff;
 }
 .logo-cracra {
    display: none;
 }


 .video-text-container {
    display: flex;
    flex-direction: column; /* Les éléments s'affichent en colonne (vidéo en haut, texte en bas) */
    align-items: center; /* Centrer horizontalement */
    justify-content: flex-start;
    width: 100%;
    margin: auto;
    background-color: #000000;
}

.video-text-container .yt-responsive {
    width: 90%; /* La vidéo prend 90% de la largeur de l'écran */
    margin-bottom: 2rem; /* Espacement entre la vidéo et le texte */
    order: -1; /* Met la vidéo avant le texte (inverser l'ordre visuel) */
}

.video-text-container .text-container {
    width: 100%; /* Le texte prend toute la largeur disponible */
    padding: 0 2rem; /* Marge de 2rem de chaque côté du texte */
    color: white;
    font-size: .8rem;
    line-height: 1.1;
    box-sizing: border-box; /* S'assure que le padding est pris en compte dans la largeur */
    margin: 0; /* Enlève les marges par défaut */
}

.video-text-container .text-container h1 {
    margin-top: 0; /* Réduit la marge avant le h1 à 0.5vh */
    margin-bottom: 0;
}

.video-text-container .text-container p {
    margin-top: 0; /* Réduit la marge supérieure du p */
    margin-bottom: 4vh; /* Ajoute une marge inférieure de 2vh */
}

.text-container a {
    color: white;
    font-weight: 600;
}

.text-container a:hover {
    color: rgb(255, 0, 0);
}

/* Réduire la hauteur des <br> */
.text-container br {
    line-height: 0.33; /* Divise la hauteur de ligne des <br> par 3 */
}

.grandeimage-carre img, .grandeimage-carre video {
    width: 90%;
    height: auto;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0) rotate(0deg);
    margin: 5vh 0 5vh 0;
    
    
 }

}



  @media (min-width: 768px) { /* Ajuste la taille selon tes besoins */
    header {
        background: rgb(255, 255, 255);
        color: #000000;
        padding: 0px; /* Ajout d'une marge pour le contenu à l'intérieur de l'en-tête */
        display: flex;
        justify-content: space-between; /* Aligne les éléments horizontalement */
        align-items: center; /* Centre les éléments verticalement */
        position: fixed; /* Fixe l'en-tête en haut de la page */
        width: 100%; /* Occupe toute la largeur de l'écran */
       
        z-index: 1000; /* Assure que l'en-tête est au-dessus du reste du contenu */
        font-size: 2vh;
        
        height: 6vh;
        font-family: "neue-haas-grotesk-display", sans-serif;
        font-weight: 600;
        font-style: normal;
        text-transform: uppercase;
       
        top: 0;
        transform: translateY(-100%); /* Caché au-dessus */
       
       
    }

    .logo img {
        width: 30vh;
        position: fixed;
        top: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto; /* Ajustez la hauteur de votre image selon vos besoins */
        padding: 0 10px 0 10px;
       
    
    }

    .logo-cracra img {
        width: auto;
        position: fixed;
        top: auto;
       bottom: .2vh;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 4.8vh; /* Ajustez la hauteur de votre image selon vos besoins */
        padding: 0 10px 0 10px;
       
    
    }

    .logo-cracra :hover{
        transform: scale(1);
        animation: shake-rotate 0.5s infinite;
    
    }
    
    .carte2 {
   
        display: none;
       
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes par ligne */
        gap: 2vh; /* Espace entre les items */
        padding: 2vh;
        z-index: 2;
    }

    

    .grid-container2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 3 colonnes par ligne */
        gap: 2vh; /* Espace entre les items */
        padding: 2vh;
        z-index: 2;
    }

    .grid-container1 {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 3 colonnes par ligne */
        gap: 2vh; /* Espace entre les items */
        padding: 2vh;
        z-index: 2;
    }
    .grid-container4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 3 colonnes par ligne */
        gap: 2vh; /* Espace entre les items */
        padding: 2vh;
        z-index: 2;
    }

    


    footer {
        background-color:rgb(255, 255, 255); /* Couleur de fond du pied de page */
        color: #000000; /* Couleur du texte du pied de page */
        text-align: center;
        position: fixed;
     
        width: 100%;
        height: 5vh;
        padding: 0px;
        display: flex;
        justify-content: space-between; /* Aligne les éléments horizontalement */
        align-items: center; /* Centre les éléments verticalement */
        z-index: 1000;
        font-size: 2vh;
    font-family: "neue-haas-grotesk-display", sans-serif;
        font-weight: 600;
        font-style: normal;
    
        bottom: 0;
        transform: translateY(100%);
        
    }
    
    .dr {
        margin-right: 1rem;
    }
    
    .reseaux-sociaux {
        margin-left: 0rem;
    }
    nav ul {
        list-style: none;
        padding: 0;
        display: flex;
        align-items: right; /* Centre les éléments verticalement */
        margin-right: 0rem;
        right: 0;
    
        
    }
    
    .nav {
        width: 40vw;
       
    
    
    }
    
    nav ul li {
        margin: 0 2vh; /* Espacement entre les éléments de navigation */
    
    }





    .video-text-container {
        display: flex;
        align-items: flex-start; /* Aligner le haut des éléments */
    
        justify-content: space-between;
        width: 100%; /* Ajuste selon tes besoins */
        margin: auto;
        background-color: #000000;
    }
    
    .video-text-container .yt-responsive {
        width: 70%; /* Ajuste la largeur de la vidéo */
        margin-right: 5vh;
    }
    
    .video-text-container .text-container {
        width: 22%; /* Ajuste la largeur du texte */
        color: white;
        font-size: .9rem;
        line-height: 1.1;
        margin: 5vh 0 5vh 5vh  ;
    
    }
    
    
    .video-text-container .text-container h1 {
        margin-top: 0; /* Supprime la marge par défaut du h1 */
        margin-bottom: 0;
    }
    .video-text-container .text-container p {
        margin-top: 0; /* Réduit la marge supérieure du p */
        margin-bottom: 0; /* Optionnel, si tu veux aussi éliminer la marge inférieure du p */
    }
    
    /*.p-info {
        font-weight: 600;
        color: white;
        text-transform: uppercase;
        font-size: .9rem;
    }*/
    
    .text-container  a{
       color: white;
       font-weight: 600;
    }
    
    .text-container a:hover{
        color: rgb(255, 0, 0);
     } 
    
     /*.text-container P {
    
        hyphens: auto;
     
        
     }*/

     .grandeimage-carre img, .grandeimage-carre video {
        width: auto;
        height: 80vh;
        position: relative;
        left: 50%;
        transform: translate(-50%, 0) rotate(0deg);
        margin: 5vh 0 5vh 0;
        
        
     }
    
    
  }

  .image-logo-cracra {
    position: absolute;
   
    width: 100%;
    height: 100%;
  }

.image-logo {
    position: absolute;
    top: 9px;
   
    width: 100%;
    height: 100%;
  }

#Logo2 {
    opacity: 0; /* Image 2 est initialement invisible */
  }
  
  .logo:hover #Logo1 {
    opacity: 0; /* Lorsque le conteneur est survolé, Image 1 devient invisible */
  }
  
  .logo:hover #Logo2 {
    opacity: 1; /* Lorsque le conteneur est survolé, Image 2 devient visible */
  }


a {
    color: #000; /* Couleur des liens */
    text-decoration: none;
}

/* Styles pour les titres */
h1 {
    color: #ffffff; /* Couleur du texte des titres */
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 20pt;
}


.hero {
  margin-top: 0vh;
    position: relative;
    width: 100%;
    height: 130vh;
    overflow: hidden;
    z-index: 0;

    
   }
  .hero video {
    width: auto; /* La vidéo prend toute la largeur de l'écran */
    height: 100%; /* La hauteur s'ajuste automatiquement pour maintenir le rapport d'aspect */
    display: block;
    align-items: center; /* Centre les éléments verticalement */
    position:fixed;
    margin-top: 0rem;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
}



.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: white;
    text-align: center;
    padding: 20px; }


/* Styles pour le pied de page */



::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #ff272700;
    border-left: 0px solid #ff5ce1;

}

::-webkit-scrollbar-thumb {
    background-color:#ff60d7 ;
    border-radius: 10px;
    border: 0px solid #ff6de9;
    border-right: 0;

}




/* Style des items de la grille */
.grid-item {
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer; /* Rendre le conteneur cliquable */
    width: 100%;
    height: 100%;
   
}

.grid-item2 {
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
   
}


/* Images dans les items */
.grid-item img, .grid-item2 img {
    width: 100%;
    height: auto;
   
}

.grid-item video {
    width: 100%;
    height: auto;
   
}


/* Légendes */
.caption {
    position: relative; /* Plus "absolute" car elle est sous l'image */
    left: 0;
    right: 0;
    top: 0;
    padding: 1vh;
    text-align: center;
    z-index: 2; /* Toujours au-dessus des images */
    background: none; /* Aucun fond */
    border: none; /* Aucun contour */
}


/* Style du texte dans la légende */
.caption h3 {
    font-size: 1.6rem;
    margin: 0px 0 0; /* Espacement minimal au-dessus */
    color: #000000; /* Couleur du texte */
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-align: left;
    text-transform: uppercase;
}

.caption p {
    font-size: 0.8rem;
    margin: 0; /* Pas d'espacement */
    color: #000000; /* Gris plus clair pour le sous-texte */
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    text-align: left;
}


.section {
    display: flex;
    

    align-items: center;
    justify-content: center;
}

.viewer {
    position: relative;
    height: auto;
    width: 80%;
    height: auto;
    top: 10vh;

}

.section-fin {
    
    height:5vh;
    position: relative;
}

a:hover {
    color: rgb(255, 0, 0);  /* Changer la couleur */
}

.main-video {
    width: 100%; /* Prend toute la largeur du conteneur */
    height: 100%; /* Prend toute la hauteur du conteneur */
    object-fit: cover; /* La vidéo va remplir le conteneur, recadrée si nécessaire */
}

.video-item {
    position: absolute
}



#workspace {
    position: relative;
    width: 90vw;
    height: 90vh;
    background: #77b4ff;
    overflow: hidden;
    top: 4vh;
    bottom: 4vh;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0); /* Optionnel : ajout d'un effet esthétique */
}

.item {
    position: absolute;
    cursor: grab;
    padding: 10px;
    background: rgba(255, 255, 255, 0);
       width: 20vw;
    height: auto;
}

.item img {
    max-width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    }

#sectioncouleur1 {
    background-color: rgb(255, 255, 0);
}

.carte1 {
    z-index: 1;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 25vw;
    height: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre douce */
}

.carte2 {
    z-index: 1;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 70vw;
    height: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre douce */
}
.yt-responsive {
width: 70%;
margin: 5vh 0 5vh 0  ;
}


.yt-responsive iframe, .yt-responsive img{
    aspect-ratio: 16/9;
}

.header-margin {
    height: 6vh;
    width: 100%;
    position: relative;
    top: 0;
    
}

.title {
    background-color: #ff0000;
    width: 100%;
    height: 10vh;
}

.video-container {
    width: 100%;
    height: auto;
    background-color: #000;
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.bouton-cracra {
    color: #000000; /* Couleur du texte du pied de page */
    text-align: center;
    position: fixed;
 
    width: 15vh;
    height: 15vh;
    padding: 0px;
    display: flex;
  
    z-index: 100;
    font-size: 2vh;
font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600;
    font-style: normal;

    bottom: 8vh;
    left: 3vh;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2)); 
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.7s ease;
    cursor: pointer;
}



.bouton-cracra img {
    width: 100%;
    height: 100%;
}

.bouton-cracra :hover{
   
        transform: scale(1.1);
        animation: shake-rotate 0.5s infinite;
} 

@keyframes shake-rotate {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1) rotate(-5deg); }
    50% { transform: scale(1) rotate(5deg); }
    75% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
  }


  .grid-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transform: scale(0,0);
    background-color: #000000;

  }
  

  .grid-lightbox:target {
    transform: scale(1, 1);

  }

  .lightbox-content {
    height: 80%; 
    max-width: 90%;   position: relative;

  }
  
  .lightbox-content img {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  .close {
    position: absolute;
    width: 2em;
    height: 2em;
    background-color: #ff0000;
    top: -1em;
    right: -1em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .close ::after {
    color: white;
 
  }



 .grandeimage {
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    margin: 0;
 }

 .grandeimage img {
    width: 100%;
    height: auto;
 }

 .grandeimage2 {
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    margin: 0;
 }

 .grandeimage2 img {
    width: 89%;
    height: auto;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0) rotate(0deg);
    
    
 }

 .grandeimage-carre {
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    
 }



 body.dsaa-page {
  margin: 0;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}


 #dsaa-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    max-width: 100vw;
    height: auto;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #dsaa-image-container img {
    max-height: 90vh;
    max-width: 100vw;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
  }
  
  
  .dsaa-click-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    cursor: pointer;
  }
  
  .dsaa-left-zone {
    left: 0;
  }
  
  .dsaa-right-zone {
    right: 0;
  }
  
  .image-wrapper {
    position: relative;
    display: inline-block;
  }
  
  
  

  #genesis {
    display: none; /* caché par défaut */
    position: absolute;
    top: 90.9%;
    left: 52.2%;
    width: 8%;
    height: 6%;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 50%;
    z-index: 2;
    text-indent: -9999px;
  }

  #carrot {
    display: none; /* caché par défaut */
    position: absolute;
    top: 24.3%;
    left: 90.15%;
    width: 8%;
    height: 6%;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 50%;
    z-index: 2;
    text-indent: -9999px;
  }
  
  #train {
    display: none; /* caché par défaut */
    position: absolute;
    top: 53.7%;
    left: 90.15%;
    width: 8%;
    height: 6%;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 50%;
    z-index: 2;
    text-indent: -9999px;
  }
  
  
  
  .image-video {
    display: none; /* cachée par défaut */
    position: absolute;
    top: 70%;      /* position verticale */
    left: 36.5%;     /* position horizontale */
    transform: translate(-50%, -50%); /* centre la vidéo au point défini */
    width: 23%;    /* taille responsive */
    height: auto;
    z-index: 2;
    border-radius: 0px;
    
  }
  
  .image-video2 {
    display: none; /* cachée par défaut */
    position: absolute;
    top: 82.5%;      /* position verticale */
    left: 88.95%;     /* position horizontale */
    transform: translate(-50%, -50%); /* centre la vidéo au point défini */
    width: 17.85%;    /* taille responsive */
    height: auto;
    z-index: 2;
    border-radius: 0px;
  }
  
  body.hello {
    margin: 0;
    padding: 0;
    overflow: hidden; /* empêche le scroll */
    height: 100%;
    width: 100%;
  }
  
  #fullscreen-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* adapte la vidéo à l'écran sans déformation */
    z-index: -1; /* derrière le reste du contenu */
  }
  
  .fullscreen-button-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* au-dessus de la vidéo */
  }
  
  .fullscreen-button {
    padding: .5em 1em;
    font-size: 1.2em;
    background-color: rgb(255, 238, 0);
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 700;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  .fullscreen-button:hover {
    background-color: rgb(255, 0, 0);
    color: #000;
  }
  