@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-y: scroll;
    overflow-x: hidden;
    padding-right: 15px;
    padding-top: 0; /* Suppression du padding-top */
}





/*------------------------ Header ----------------------------------*/





/* 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;
}

.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;
}


/*------------------------ Texte ----------------------------------*/



.projets-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 3em;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}


.textprojets {
    display: block;
    padding: 4rem 2rem;
    max-width: 1200px; 
    margin: 0 auto;
    
}

.titreprojets {
    font-size: 10em;                                
    margin-bottom: 2rem;
}

.titreprojets h2 {
    font-size: 2.2rem;
    text-align: center;
    margin: 0;
}

.text-sousprojets {
    text-align: justify;
    line-height: 1.6;
}

.projet-description-container {
    flex: 0 0 65%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.text-sousprojets h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: normal;
    text-align: center;
}

.text-sousprojets li {
    list-style-type: none;
    margin-bottom: 1rem;
}

.text-sousprojets p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: justify;
}

.info-box {
    flex: 0 0 30%;
    background-color: #8B5CF6;
    padding: 2em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    border-radius: 8px;
    height: fit-content;
    align-self: flex-start;
}
  
.info-box h4 {
    margin-top: 0;
    font-size: 1.2em;
    margin-bottom: 0.5em;
}
  
.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
  
.info-box li {
    margin-bottom: 1em;
    font-size: 0.95em;
    font-weight: bold;
    color: #ffffff;
}

.info-box h3 {
    margin: 0 0 1.5em 0;
    font-size: 1.1em;
    font-weight: normal;
    color: #ffffff;
}

.all-projects-btn {
    display: inline-block;
    background: white;
    color: #8B5CF6;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.all-projects-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #7C3AED;
}




/*------------------------ Vidéo et image de fond ----------------------------------*/




/* === SECTION VIDEO === */
.video-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    z-index: 10;
    pointer-events: auto;
}

.video-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}


/* === IMAGE DE FOND === */
.background-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 0;

}

.background-image {
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;  /* Largeur de l'écran */
    height: 100vh; /* Hauteur de l'écran */
    z-index: -1;   /* En arrière-plan */
    overflow: hidden;
    pointer-events: none;    /* Pour que l'image ne bloque pas les clics sur le contenu */
    margin-top: 0;
}

.background-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(172, 163, 250, 0.26); /* Filtre violet clair */
    z-index: 1;
}

.background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Couvre toute la zone sans déformation */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}




/*--------------- Section Nous contacter ---------------*/

.contact-section {
    padding: 5rem 0 0 0;
    margin: 0;
    position: relative;
    background: linear-gradient(135deg, rgba(46, 13, 70, 0.9), rgba(159, 97, 216, 0.8), rgba(39, 16, 56, 0.9));
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.3);
    min-height: calc(100vh - 200px);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: normal;
    position: relative;
}

.contact-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ACA3FA, #8B5CF6);
    border-radius: 2px;
}

.contact-header p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-card {
    background: #8B5CF6;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ACA3FA, #8B5CF6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: bold;
}

.contact-card a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.contact-card a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}

.cta-card {
    background: #8B5CF6;
    border: none;
}

.cta-card:hover {
    background: #7C3AED;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cta-button {
    display: inline-block;
    background: rgb(199, 86, 41);
    color: #8B5CF6;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #7C3AED;
}

/*--------------- Navigation flèches ---------------*/

.navigation-arrows {
    padding: 3rem 2rem;
    margin-top: 2rem;
}

.arrow-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.arrow-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.arrow-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.arrow-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.arrow-prev {
    margin-right: auto;
}

.arrow-next {
    margin-left: auto;
    flex-direction: row-reverse;
}

/*--------------- Footer ---------------*/

footer {
    position: relative;
    bottom: 0;
    left: 0; 
    width: 100%;
    background: #1a1919;
    color: white;
    padding: 20px;
    margin-top: 0;
    z-index: 1;
    height: auto;
    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) {

    .video-section {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        z-index: 10;
    }

    * {
        max-width: 100vw;
        box-sizing: border-box;
    }

    html {
        overflow-x: hidden;
        width: 100%;
    }

    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-y: auto;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
       
        
    }
    
    .burger {
        display: flex;
        color: #f2f2f2;
        transition: color 0.3s ease;
        margin-right: -10px;
    }

    /* 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: #ffffff;
    }

    /* Thème foncé : texte blanc */
    .main_nav[data-theme="dark"] a {
        color: #f2f2f2;
    }

    
  
    .sous_nav {
      position: absolute;
      top: 60px;
      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: 0px;
        margin-top: 10px;
    }

    .textprojets {
        margin: 24vh 0 0 0;
        padding: 1.25rem 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .projets-container {
        flex-direction: column;
        gap: 1.5em;
        padding: 0 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .info-box {
        margin-left: 0;
        margin-top: 16px;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    html, body {
        scroll-snap-type: none;
        overflow-y: visible;
        overflow-x: hidden;
        height: auto;
        width: 100%;
        max-width: 100vw;
    }

    /* 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;
        width: 150px;
        height: 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;
    }

    /* Navigation flèches responsive */
    .navigation-arrows {
        padding: 2rem 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .arrow-container {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .arrow-link {
        width: 100%;
        justify-content: center;
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

    .arrow-prev {
        margin-right: 0;
    }

    .arrow-next {
        margin-left: 0;
    }

    /* Section contact responsive */
    .contact-section {
        padding: 3rem 0 0 0;
        margin: 0;
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        min-height: calc(100vh - 150px);
    }

    .contact-header {
        margin-bottom: 2rem;
    }

    .contact-header h2 {
        font-size: 2.2rem;
    }

    .contact-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .contact-container {
        padding: 0 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }

    .contact-icon {
        font-size: 2rem;
    }

    .contact-card h3 {
        font-size: 1.2rem;
    }

    .social-link {
        padding: 0.6rem 0.8rem;
        gap: 0.6rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Masquer la barre de scroll sur mobile */
    ::-webkit-scrollbar {
        display: none;
    }
}

::-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 */
} 