@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: #ffffff;
    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: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.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 */
}

/* 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;
}

.logo{
    width: 75px;
    height: auto;
    display: block;
    margin-left: 250px;
}


/*---------------------------- Video preview ----------------------------------*/

.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.0s ease;
}

.sous_img_projects a:hover .preview-video {
    opacity: 1;
    pointer-events: auto;
}

.logo img {
    height: 50px;
}


/*------------------- Site ----------------------------*/


.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 250px;
    max-width: 300px;
}



.project img {
    width: 200px;
    height: auto;
    border-radius: 10px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

input, textarea {
    padding: 10px;
    width: 80%;
    max-width: 400px;
    border: none;
    border-radius: 5px;
}

button {
    background: #f39c12;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    
}

button:hover {
    background: #e67e22;
}


/* Nouveau code pour le défilement des sections */
html, body {
    height: 100%; /* Assure que le corps et le html prennent toute la hauteur */
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    scroll-behavior: smooth;

}

.container {
    height: 100vh; /* Taille de la fenêtre du navigateur */
    overflow-y: scroll; /* Permet le défilement vertical */
    scroll-snap-type: y mandatory; /* Applique le scroll-snap pour un défilement fluide */
    position: relative;
    min-height: 100vh; /* Laissez la section container occuper 100% de l'écran */

    
}

.section {
    height: 100vh; /* Chaque section prend toute la hauteur de l'écran */
    width: 100vw; /* Assurer que la section occupe toute la largeur */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start; /* Force l'alignement de la section au début de la fenêtre */
    flex-direction: column;
    border: none; /* Enlever toute bordure indésirable */
    overflow: hidden; /* Masquer tout contenu excédentaire */
    margin: 0;
    padding: 0;
}

/*------------------------ Sections --------------------------------------*/


#section1 {
    background-color: #ff634700; /* Section 1 */
    z-index: 1;
}

#section2 {
    background-color: #ffffff; /* Section 2 */
    z-index: 1;
}

#section3 {
    background-color: #ffffff; /* Section 3 */
    z-index: 1;
}


#section4 {
    background-color: #ffffff;
    z-index: 1;
}

#section5 {
    background-color: #00000000;
    height: 30%;
    z-index: -11;
    scroll-snap-align: start;

}

#section6 {
    background-color: #2f2f31;
    z-index: 1;
    box-sizing: border-box;
    height: 100vh; 
}


.text {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
}


/*--------------------- Points de navigation sur la droite -----------------------*/


.points-navigation {
    position: fixed;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}


.point {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative; /* Pour positionner le texte à gauche */
    background-color: #bbbbbb;
}



.point:hover {
    background-color: rgb(214, 214, 214);
}

/* Texte au survol - ajusté pour un style similaire à celui du site */
.tooltip {
    visibility: hidden; /* Par défaut, le texte est caché */
    position: absolute;
    right: 120%; /* Positionnement à gauche du point (au-delà du bord droit) */
    top: 50%;
    transform: translateY(-50%); /* Centrer verticalement par rapport au point */
    background-color: rgba(0, 0, 0, 0.7); /* Fond sombre */
    color: white;
    padding: 8px 12px;
    border-radius: 10px; /* Coins arrondis */
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0; /* Transparence par défaut */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3); /* Ombre pour plus de profondeur */
}

/* Lorsque la souris est au-dessus du point, afficher le texte */
.point:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Définition du texte pour chaque point */
#point1 .tooltip {
    content: 'Aller à la section 1';
}

#point2 .tooltip {
    content: 'Aller à la section 2';
}

#point3 .tooltip {
    content: 'Aller à la section 3';
}

.point.active {
    position: relative;
}

.point.active::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #bbbbbb; /* Cercle blanc autour du point actif */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Main container pour les projets */
.main_projects {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Placer les éléments dans le sens du haut vers le bas */
    height: 100%; /* S'assurer que le conteneur occupe toute la hauteur */
    position: relative; /* Nécessaire pour l'alignement absolu du bouton */
}

/* Logos clients */
.clients-logos {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}
.clients-logos img {
    max-height: 125px;
    width: auto;
    opacity: 0.9;
}

/* Container du bouton - ajusté pour le positionner en bas */
.button-container {
    position: absolute;
    bottom: 15px; /* Placer le bouton 20px au-dessus du bas */
    width: 100%; /* Largeur du conteneur pour le bouton */
    display: flex;
    justify-content: center; /* Centrer le bouton horizontalement */
    align-items: center; /* Centrer verticalement si nécessaire */
}

/* Style du bouton */
.btn2 {
    background-color: #F53D23;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 15px; /* Bords arrondis */
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto; /* Largeur automatique */
}

.btn:hover {
    background-color: #e67e22;
}


/*------------------------ Footer ----------------------------------*/



footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    background-color: #1a1919;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    pointer-events: auto;
  }



.footer-content {
    display: flex;
    justify-content: space-between; /* Espacement entre le logo et les textes */
    width: 100%;
}

.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;
}

/* Tablette */
@media (max-width: 1024px) {
    .main_nav { padding: 1em; }
    .sous_nav { margin-right: 0; gap: 10px; }
    .footer-text { width: 100%; justify-content: center; }
    
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 15px;
    }
}

/* --- MENU MOBILE --- */
@media (max-width: 768px) {

    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;
       
        
    }
    
    .burger {
        display: flex;
        color: #f2f2f2;
        transition: color 0.3s ease;
        margin-right: 25px;
    }

    /* 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;
      right: 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;
    }

    html, body {
        scroll-snap-type: none;
        overflow-y: visible;
        height: auto;
    }


    .container {
        height: auto;
        overflow-y: visible;
        scroll-snap-type: none;
    }
    
    /* Appliquer sur toutes les sections */
    .section {
        display: flex;
        flex-direction: column; /* empile le contenu verticalement */
        justify-content: center; /* centre verticalement */
        align-items: center; /* centre horizontalement */
        text-align: center; /* centre le texte à l'intérieur */
        padding: 20px; /* espace autour du contenu */
        
    }

    /* Texte global */
    .text, h1, h2, h3, h4, p {
        text-align: center;
    }
    /* Centrer tous les blocs de texte principaux en mobile */
    body, .container, .section, .txt_containers, .main_projects, .services-container, .service, .button-container, .txt_projects, .text-sousprojets {
        text-align: center;
    }




    /* Images dans les sections et projets */
    img {
        display: block;
        margin: 0 auto; /* centre horizontalement */
    }

    .txt_projects{
        margin: 0 auto; /* centre en horizontal */
        text-align: center;
    }


    .txt_projects h2{
        font-size: 175%;

    }

    /* Vidéo preview responsive */
    .preview-video {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }

    /* Services en colonne */
    .services-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
        padding: 10px;
    }
    
    .service {
        background: #222;
        color: #fff;
        padding: 15px;
        border-radius: 10px;
        width: 90%;
    }

    /* Projets images plus petites */
   

    .project img, .sous_img_projects img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
    }
    .main_projects {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-right: 50px;
        margin-top: 50px;
    }
    
    .sous_img_projects {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;

    }
    
    .sous_img_projects a {
        position: relative;
        display: block;
    }
    
    .preview-video {
        display: none;
    }
    
    .sous_img_projects a:hover .preview-video {
        opacity: 1;
        pointer-events: auto;
    }

    button {
        background: #F53D23;
        color: white;
        padding: 10px 20px;
        border-radius: 15px;
        cursor: pointer;
        margin-left: -50px;
        margin-top: -50px;
        transition: background-color 0.3s ease;
        width: auto;
    }

    .btn2 {
        background-color: #F53D23;
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 15px; /* Bords arrondis */
        cursor: pointer;
        transition: background-color 0.3s ease;
        width: auto; /* Largeur automatique */
        margin-left: 0px;
    }
    

    

    /* Points de navigation masqués sur mobile */
    .points-navigation {
        display: none;
    }

    .clients-logos {
        gap: 16px;
        padding: 0 16px;
    }
    .clients-logos img {
        max-height: 100px;
    }

    
    #section2 {
        background-color: #ACA3FA; /* Section 2 */
        z-index: 1;
        height: 1000px;
    }
    
    #section3 {
        background-color: #ACA3FA; /* Section 3 */
        z-index: 1;
        height: 1500px;
    }
    
    
    #section4 {
        background-color: #5f58a3;
        z-index: 1;
        width: auto;
    }
    
    #section5 {
        background-color: #5f58a3;
        height: 30%;
        z-index: -11;
        scroll-snap-align: start;
    
    }
    
    #section6 {
        background-color: #5f58a3;
        z-index: 1;
        box-sizing: border-box;
        height: 100vh; 
    }
    
    /* 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;
    }
}








  
  /* --- Animation du burger quand actif --- */
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

::-webkit-scrollbar {
    display: none; /* Pour Chrome, Safari, etc. */
}

