@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: #ffffff;
    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;
}

/* Thème clair : texte noir */
.main_nav[data-theme="light"] a {
    color: #111;
}

/* Thème foncé : texte blanc */
.main_nav[data-theme="dark"] a {
    color: #f2f2f2;
}

.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;
}

.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;
}

/*---------------- Team page ----------------*/
.intro {
    margin-top: 60vh; /* se place juste sous la vidéo de fond (60vh) */
    padding: 0 20px;
}
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 16px; /* suit l'intro */
    margin-bottom: 40px; /* footer non fixe */
}

.member-card {
    width: 300px;
    background: transparent; /* pas de cadre */
    border-radius: 0;
    padding: 0;
}

.member-photo img {
    width: 200px; /* taille réduite */
    height: 250px;
    object-fit: cover;
    border-radius: 0; /* pas de cadre arrondi */
    display: block;
    margin: 0 auto 12px auto;
}

.member-info h3 {
    margin: 8px 0 6px 0;
}

.member-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: justify;
}

/* ---- Company description ---- */
.company-description {
    padding: 40px 20px 20px 20px;
}

.company-inner {
    max-width: 900px;
    margin: 0 auto 20px auto;
    text-align: left;
}

.company-inner h2 {
    margin: 0 0 12px 0;
}

.company-inner p {
    margin: 0 0 10px 0;
    line-height: 1.5;
    text-align: justify;
}

.logo{
    width: 75px;
    height: auto;
    display: block;
    margin-left: 250px;
}






/*--------------- Footer ---------------*/

footer {
    position: static; /* dans le flux normal */
    width: 100%;
    background: #1a1919;
    color: white;
    padding: 20px;
    margin-top: 60px;
    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;
}



@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 */
} 