:root {
    --vert1: rgb(25, 178, 20);
    --vert2: rgb(15, 94, 12);

    /* Mode sombre par défaut */
    --white: rgb(251, 251, 251);
    --black1: rgb(2, 2, 2);
    --black2: rgb(29, 28, 28);
}

/* Mode clair */
.light-theme {
    --white: rgb(10, 10, 10);
    --black1: rgb(251, 251, 251);
    --black2: rgb(240, 240, 240);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--white);
    font-family: Verdana, Geneva, Tahoma, sans-serif ;
}
html body {
    display: flex;
    flex-direction: column;
    min-height: 200vh;
    background-color: var(--black1);
    font-size: 2vh;
    touch-action: pan-x pan-y; /* autorise le scroll mais bloque les zooms */
}

/* Loader plein écran */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white; /* tu peux mettre #000 si tu veux fond noir */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

#loader img {
    width: 200px;
    margin-bottom: 20px;
}

/* Conteneur barre de progression */
.progress-container {
    width: 300px;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px auto;
}

/* Barre de progression */
.progress-bar {
    height: 100%;
    width: 0%;
    background: #28a745; /* vert */
    transition: width 0.3s;
}

#progress-text {
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

/* Style pour le header */
header {
    position: fixed; /* Nécessaire pour positionner le bouton hamburger */
    z-index: 3;
    width: 100vw;
    background-color: var(--black1);
    padding: 10px 20px;
    overflow: hidden;  /* Permet d'afficher le menu même si déborde du header */
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid var(--vert2);       /* Bordure verte */
    border-bottom: 2px solid var(--vert2);       /* Bordure verte */
    
}

/* Bouton thème */
#theme-toggle {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--white);
    margin-left: 10px;
    transition: transform 0.3s;
}
#theme-toggle:hover { transform: rotate(40deg); }


/* Style pour le menu de navigation sur grand écran */
nav ul {
    list-style: none;        /* Supprime les puces */
    display: flex;           /* Affiche les éléments en ligne */
    justify-content: right; /* Centre le menu horizontalement */
    height: 50px;
    align-items: center;
    
}

nav ul li {
    margin: 0 10px;          /* Espace entre les items */
    height: 100%;
}

nav a {
    color: var(--white);            
    text-decoration: none;   /* Supprime le soulignement */
    font-size: 15px;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li:hover,
nav ul li.hovered {
    background-color: var(--white);
}

nav ul li:hover a,
nav ul li.hovered a {
    color: var(--vert1);
}

/* Bouton hamburger caché par défaut */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 30000;
}

#logo {
    position: fixed;
    z-index: 4;
    top: -35px;
    left: 5px;
    width: 150px;
    height: auto;
}

.boutton_header{
    align-items: center;
    border-radius: 10px;
    text-align: center;
    width: 130px;
    height: 30px;
}

.boutton_header:hover{
    cursor: pointer;  
}

/* Style pour la section titre */
.titre {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 70vh;
    top: 10px;
    flex-wrap: wrap; /* permet de passer à la ligne si pas assez de place */
    background: transparent;
    overflow: hidden;
    font-size: 70px;

}

.slide_text {
    color:  var(--white);
    position: absolute;
    top: 140px;
    font-weight: bold;
    text-align: center;
    width: 100vw;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

.slide_text.active {
    opacity: 1;
}

#texte_cabinet {
    position: relative;           /* nécessaire pour pouvoir utiliser left */
    color: var(--white);
    font-size: 2vh;
    display: block;        /* affichage du texte normal */
    text-align: center;
    top: 70%;
    opacity: 0;
    transform: scale(0.9); /* légèrement réduit au départ */
    transition: all 1.5s ease-out;
}

/* Quand on ajoute .active */
#texte_cabinet.active {
    opacity: 1;
    transform: scale(1); /* revient à taille normale */
}

.slideshow-container {
    position: absolute;
    width: 100vw;
    height: 90vh;
    top: -50px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    padding-top: 50px;
    transition: opacity 5s ease-in-out;
    z-index: -1;
}

.slide.visible {
    opacity: 1;
    z-index: -1;
    animation: zoom 10s ease-in-out forwards;
}


#title{
    background-color: var(--black2);
}

strong {
    font-weight: bold;
    color: var(--vert2); 
}

.container {
    position: relative;
    top: 14.6vh;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    color: var(--white);
    text-align: center;
    font-weight: bold;
}

section p {
    font-size: 2vh;
    line-height: 1.8;
    margin: 20px 0;
    text-align: justify;
}

.bienvenue {
    display: flex;
    gap: 50px;
    flex-direction: row;
    margin-bottom: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.bienvenue-item{
    width: 40vw;
    height: auto;
}

section ul {
    list-style-type: none;
    padding-left: 0;
    
}

section ul li {
    background-color: var(--black2);
    margin: 10px 0;
    padding: 10px;
    border: 2px solid var(--white);
    text-align: justify;
    font-size: 2vh;
}

#image_logo{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: auto;
    height: 40vh;
    padding-bottom: 50px;
}

#bienvenue{
    border-top: 5px solid var(--vert2);       /* Bordure verte */;
    padding-left: 10px;
    padding-right: 5px;
    padding-top: 20px;

}

.boutton-aller-vers{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 5px solid var(--vert2);       /* Bordure verte */;
    padding-top: 20px;
    padding-bottom: 20px;
}

.boutton-aller-vers a{
    text-decoration: none;
    margin-left: 2rem;
}

.boutton_middle{
    padding: 10px;
    border-radius: 10px;
    align-items: center;
    text-align: center;
    width: 250px;
    height: 30px;
}

.boutton_middle:hover{
    cursor: pointer;
    color: var(--vert1);
    background-color: var(--white);
}

#services{
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-in-out;
    border-top: 5px solid rgb(15, 94, 12);       /* Bordure verte */;
    padding-top: 20px;
    padding-bottom: 20px;
}

#services.visible {
    opacity: 1;
    transform: translateY(0);
}

#services .liste_service{
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    padding-top: 20px;
    padding-bottom: 20px;
}

#services.visible .liste_service {
    opacity: 1;
    transform: translateY(0);
}

/* Optionnel : petit décalage entre les items */
#services.visible .liste_service:nth-child(1) { transition-delay: 0.2s; }
#services.visible .liste_service:nth-child(2) { transition-delay: 0.4s; }
#services.visible .liste_service:nth-child(3) { transition-delay: 0.6s; }

.image_illustration_services{
    position: relative;
    width: 20vw;
    height: auto;
}


#pourquoi{
    border-top: 5px solid rgb(15, 94, 12);       /* Bordure verte */
    padding-top: 20px;
    font-size: 2vh;
}

#kpis {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 10rem;
    margin: 50px 0;
    text-align: center;
}

.kpi{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.kpi h3 {
    font-size: 3rem;
    color: var(--vert1); /* vert */
    margin: 0;
    font-weight: bold;
}

.kpi p {
    font-size: 1.2rem;
    color: var(--white);
}

.nombre{
    display: flex;
    flex-direction: row;
    align-items: center;

}

#testimonials {
    background: var(--black2);
    padding: 50px 20px;
    text-align: center;
}

#testimonials h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--white);
}

.testimonial-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.testimonial {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    font-style: italic;
    font-size: 1.2rem;
}

.testimonial.active {
    display: block;
    opacity: 1;
}

.testimonial h4 {
    margin-top: 15px;
    font-weight: bold;
    color: var(--vert1);
}

footer {
    position: relative;
    display: flex;
    width: 100vw;
    justify-content: space-around;
    align-items: center;
    bottom: 0;
    background-color: black;
    color: white;
    margin-top: auto; /* Cette propriété pousse le footer vers le bas */
    border-top: 5px solid var(--vert2);       /* Bordure verte */
    border-bottom: 5px solid var(--vert2);       /* Bordure verte */
    overflow: hidden;
    flex-wrap: wrap;
}

.footer_menu {
    position: relative;
    display: flex;
    left: 0;
}

.footer_menu ul {
    list-style-type: none;
    justify-content: center;
}

.footer_menu ul li {
    margin: 30px;
}

.footer_center a {
    color: var(--vert2);
    text-decoration: none;
}

.footer_menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.footer_menu ul li a:hover {
    color: rgb(15, 94, 12); 
}

.footer_center {
    position: relative;
    display: block;
    text-align: center;
}

.footer_left p {
    font-size: 15px;
}

.footer_right {
    position: relative;
    right: 10px;
    display: flex;
    flex-direction: column; /* Aligne les éléments en colonne */
    gap: 10px; /* Ajoute de l'espace entre les éléments */
}
.reseaux_sociaux a {
    text-decoration: none; /* Enlève le soulignement des liens */
    /*color: inherit; /* Hérite de la couleur du texte parent */
    color: white; /* Couleur blanche par défaut */
    font-size: 15px; /* Ajuste la taille de la police */
    display: flex;
    align-items: center; /* Aligne l'icône et le texte au centre */
    margin: 20px;
    gap: 10px; /* Espace entre l'icône et le texte */
}

.reseaux_sociaux a:hover {
    color: rgb(15, 94, 12);  /* Change la couleur au survol (par exemple, VERT pour Twitter) */
}

.reseaux_sociaux i {
    color: white;
    font-size: 24px; /* Ajuste la taille de l'icône */
}

/* Media Query pour les petits écrans ----------------------------- */
@media screen and (max-width: 980px) {

    #logo{
        position: fixed;
        z-index: 4;
        top: -20px;
        left: 85vw;
        width: 100px;
        height: auto;
    }

    .slide_text{
        font-size: 30px;
    }

    #texte_cabinet {
        font-size: 2vh;
    }

    .carousel-item {
        width: 100px;
        height: auto;
        border: 3px solid var(--vert1);       /* Bordure verte */
    }

    .footer_image {
        align-content: center;
        align-items: center;
        text-align: center;
        width: 200px;
        height: auto;
    }

    .footer_center {
        width: 200px;
    }

    /* Affichage du bouton hamburger */
    .hamburger {
        display: block;
        position: relative;
        z-index: 30000;
        top: 15px;                 /* Place le coin supérieur du bouton à 50% du header */
        right: 0;              /* 20px du bord droit */
        transform: translateY(-50%); /* Centre verticalement */
        font-size: 28px;
        color: var(--vert2);
        background: none;
        border: none;
    }

    /* Cache le menu initialement */
    nav ul {
        flex-direction: column;   /* Items en colonne */
        height: 0;
        text-align: left;        /* aligne les lignes à gauche */
        margin: 0 auto;          /* centre le bloc horizontalement */
        top: 0;
        right: 0;
        display: none;            /* Menu caché par défaut */
        padding-bottom: 0;
        background-color: transparent;   /* Fond noir pour le menu */
    }

    /* Lorsque la classe active est présente, on affiche le menu */
    nav ul.active {
        display: inline-block;
        height: 150px; /* Assez grand pour contenir tous les éléments */
    }

    nav li {
        margin: 10px 0;
    }

    @media screen and (max-width: 662px) {
        #logo{
            left: 75vw;
        }
    }
}

.actuel{
    color: var(--vert1);
}

#Copyright{
    text-align: center;
    align-items: center;
    font-size: 13px;
}

#Copyright a{
    text-decoration: none;
}