@font-face {
    font-family: 'PoliceCustom';
    src: url('ressources/neue-gravica-black.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Styles existants */
body {
    font-family: 'PoliceCustom', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ACA3FA;
    color: white;
    text-align: center;
    height: 100%; /* Occupe toute la hauteur de la page */
    overflow: scroll;
    padding-right: 15px;
    padding-top: 60px; /* Décale le contenu sous le header fixe */
}



.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    z-index: -1;
}

.video-background video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(172, 163, 250, 0.7), rgba(50, 127, 163, 0));
    z-index: 0;
}


/* Header */
/* --- BURGER --- */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1001; /* au-dessus du menu */
  }
  
  .burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 5px;
    transition: all 0.3s ease;
  }

.main_nav {
    padding: 1em 3em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent; /* Fond transparent pour lisibilité */
    z-index: 10;
    position: fixed; /* Normal : le header défile avec la page */
    top: 0; /* Le header ne reste pas collé */
    left: 0;
    width: 100%;
    margin-bottom: 0; /* Pas de marge pour que les sections commencent juste après */
    box-sizing: border-box; /* Inclut les paddings dans la taille totale */
}

/* Transition d'apparition/disparition du header */
.main_nav {
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.main_nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Couleur par défaut (foncée) */
.main_nav a {
    color: #f2f2f2;
    transition: color 0.3s ease;
}



.main_nav h2 {
    font-size: 2.2em;
    margin-left: 2%;
}

.sous_nav {
    font-size: 1em;
    display: flex;
    margin-right: 14%;
}

.sous_nav a {
    list-style: none;
    text-decoration: none;
    color: rgb(242, 242, 242);
    transition: all 0.18s ease-in-out;
}

.sous_nav a:hover {
    color: rgb(184, 184, 184);
    transition: all 0.18s ease-in-out;
}

.sous_nav li {
    margin-left: 1em;
    margin-right: 1em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.txt_projects {
    margin-top: 70px;
}

.img_projects {
    margin-top: 0px;
}

.sous_img_projects {
    display: flex;
    justify-content: center;
    position: relative;
}

.sous_img_projects a {
    position: relative;
    padding: 0.05em;
    display: inline-block;
    margin: 0;
    overflow: hidden;
}

.sous_img_projects img {
    border-radius: 0%;
    width: 100%;
    max-width: 600px;
    height: auto;
    transition: all 0.0s ease-in-out;
    position: relative;
    z-index: 1;
    display: block;
}

.logo{
    width: 75px;
    height: auto;
    display: block;
    margin-left: 250px;
}

.preview-video {
    position: absolute;
    top: 0;
    left: 0.05em;
    width: 99.7%;
    height: 99.7%;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
    object-fit: cover;
    border-radius: 0%;
}

.sous_img_projects a:hover .preview-video {
    opacity: 1;
    pointer-events: auto;
}

.sous_img_projects a:hover img {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}





.textprojets {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 5rem;
    flex-wrap: wrap;
    margin-top: 50vh;
}
  
.titreprojets {
    flex: 1 1 15%;
    font-size: 10em;
    
}
  
.titreprojets h2 {
    font-size: 2.2rem;
    text-align: left;
    margin-left: 50px;
}
  
.text-sousprojets {
    flex: 1 1 65%;
    text-align: justify;
}
  
.text-sousprojets h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: normal;
}
  
.text-sousprojets li {
    list-style-type: none;
    margin-bottom: 1rem;
}
  
.text-sousprojets p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    white-space: normal;
    overflow-wrap: break-word;
}














/*--------------- Footer ---------------*/

footer {
    position: flex;
    bottom: 0;
    left: 0; 
    width: 100%;
    background: #1a1919;
    color: white;
    padding: 20px;
    margin-top: 20px;
    z-index: 0;
    height: 20%;
    border: none;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Espacement entre le logo et les textes */
}

.footer-logo img {
    width: 150px; /* Ajuste la taille de ton logo */
    height: auto;
    margin-left: 300px;
}

.footer-text {
    display: flex;
    width: 50%; /* Laisse 50% pour le logo */
    text-align: right;

}

.footer-text-section {
    width: 100%; /* Chaque section de texte occupe 45% de la largeur disponible */
    margin: 0px; /* Espace entre les sections de texte */
    display: flex;
    flex-direction: column;
}

.footer-text-section h4 {
    margin-bottom: 10px; /* Espacement sous les titres */
    font-size: 1em; /* Taille du titre */
}

.footer-text-section a {
    margin-bottom: 10px; /* Espacement sous chaque paragraphe */

}

.footer-text-section:nth-child(2) {
margin-right: 350px;
}


/* --- MENU MOBILE --- */
@media (max-width: 768px) {


    .burger {
        display: flex;
        color: #f2f2f2;
        transition: color 0.3s ease;
        margin-right: -10px;
    }

    
  
    .sous_nav {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
      }
    
      .sous_nav.show {
        max-height: 400px;
      }
    
      .sous_nav li {
        margin: 20px 0;
      }

    .logo{
        width: 50px;
        height: auto;
        display: block;
        margin-left: -32px;
        margin-top: 10px;
    }

    html, body {
        scroll-snap-type: none;
        overflow-y: visible;
        height: auto;
    }

    /* Footer responsive */
    footer {
        position: relative;
        bottom: auto;
        width: 100%;
        height: auto;
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        align-items: center; /* centre horizontalement le contenu */
        justify-content: flex-start; /* aligne le contenu en haut */
        text-align: center;
    }

    .footer-logo {
        order: -1; /* place le logo en haut */
        margin-bottom: 15px; /* espace entre le logo et le texte */
    }

    .footer-logo img {
        display: block;
        margin: 0 auto;
        
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .footer-text {
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .footer-text-section {
        width: 100%;
        margin: 5px 0;
    }

    .footer-text-section:nth-child(2) {
        margin-right: 0;
    }
}

::-webkit-scrollbar {
    width: 12px; /* Largeur de la barre de scroll */
}

::-webkit-scrollbar-track {
    background: rgb(255, 255, 255); /* Fond de la piste de scroll */
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgb(126, 126, 126); /* Couleur de la barre de scroll */
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(82, 82, 82); /* Couleur au survol */
} 