/* :root {
    --color-primary: #6675ff;
    --color-secondary: #fffdeb;
    --color-sections: #dedff5;
    --color-accent: #7e6551;
    --color-dark: #000f08;
    --color-neutral: #1c1f33;
} */

:root {
    --light-gray: #d0d9e0;
    --dark-blue: #32516f;
    --deep-blue: #1a2538;
    --mid-blue: #485b70;
    --white: #ffffff;
    --blue: #4c7fa9;
    --light-blue: #8fbce1
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: var(--deep-blue);
}
p a {
    color: var(--dark-blue);
}

header, footer {
    background-color: var(--deep-blue);
    color: var(--white);
    text-align: center;
}

header {
    border-bottom: 2px solid var(--dark-blue);
    padding: 0.5em 0;
}

footer {
    padding: 1em 0;
}

nav {
    display: flex;
}

#menu-toggle {
    display: none;
    margin-left: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    position: relative;
    width: 30px; /* Largeur du bouton */
    height: 20px; /* Hauteur totale du bouton, ajustez selon le besoin */
    background: transparent;
    border: none;
    cursor: pointer;
}

#menu-toggle::before, #menu-toggle::after, #menu-toggle div {
    content: ''; /* Le contenu pour ::before et ::after. #menu-toggle lui-même n'a pas besoin de cette propriété. */
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--light-gray);
    transition: all 0.3s ease;
}

#menu-toggle::before {
    top: 0;
    left: 0;
}

#menu-toggle::after {
    bottom: 0;
    left: 0;
}

/* État actif - forme de croix */
#menu-toggle.active::before {
    transform: translateY(9px) rotate(45deg);
}

#menu-toggle.active div {
    transform: scale(0);
}

#menu-toggle.active::after {
    transform: translateY(-9px) rotate(-45deg);
}

#menu-toggle div {
    content: ''; /* Le div interne pour la barre du milieu */
    position: absolute;
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-gray);
}

.large-logo {
    display: none;
    height: 40px;
    margin: auto;
    border-radius: 20px;
}

.small-logo {
    height: 40px;
    margin: auto 20px;
    border-radius: 20px;
}

#nav-links {
    flex-grow: 2;
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

#nav-links li {
    display: block;
    margin: auto 10px;
}

#nav-links li a {
    display: block; /* Important pour étendre la zone cliquable */
    padding: 10px 20px; /* Ajustez selon vos besoins */
    text-decoration: none;
    color: var(--white);
    border-bottom: 2px solid var(--deep-blue);
}

#nav-links li a.active, #nav-links li a:hover, #nav-links li a:active {
    background-color: var(--mid-blue);
    color: var(--white);
    border-bottom: 2px solid var(--light-gray); /* Ajoute un soulignement pour l'élément actif */
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown > a::after {
    content: '▼';
    margin-left: 5px;
    font-size: 0.8em;
}

.dropdown:hover > a::after {
    content: '▲';
}

.dropdown-content {
    display: none;
    position: absolute;
    padding: 0;
    top: 100%; /* Se positionne juste sous l'élément parent */
    background-color: var(--deep-blue); /* Utilise la couleur du thème */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    width: 100%;
    border-radius: 5px; /* Coins arrondis */
    flex-direction: column;
    align-items: stretch;
}

#nav-links .dropdown-content li {
    margin: 0px;
}

.dropdown-content a {
    color: var(--white);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.dropdown:hover .dropdown-content {
    display: flex; /* Affiche le contenu sur le hover */
}

.dropdown-content a:hover {
    background-color: var(--mid-blue); /* Changement de fond au survol */
}

footer {
    font-size: 0.8em;
}

.section {
    margin: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

#intro > img {
    max-width: 550px;
    height: auto;
    margin-right: 50px;
}

.section a {
    text-decoration: none;
}

section p {
    text-align: justify;
}

.section p, .section h2, .section h3, blockquote {
    margin: 10px 0;
}

.service {
    position: relative;
    overflow: hidden; /* Pour contenir le pseudo-élément à l'intérieur du service */
    color: var(--light-gray);
    background-image: linear-gradient(to right, var(--dark-blue), var(--blue)); /* Dégradé initial */
    flex: 1; /* Permet à chaque service de remplir l'espace disponible */
    max-width: 1300px;
    margin: 10px; /* Espacement entre les services */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Ajoute une ombre légère pour un effet de profondeur */
    min-width: 250px; /* Assure que les services ne soient pas trop étroits */
    box-sizing: border-box; /* Inclut padding et border dans la largeur totale */
}

/* .service::after {
    content: '';
    position: absolute;
    left: -110%;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease-in-out;
    z-index: 2;
    box-shadow: 0 0 30px 30px rgba(255, 255, 255, 0.2);
}

.service:hover::after {
    left: 110%;
} */

.service h3 {
    color: var(--white);
}

.service.left {
    margin-right: 10%; /* Pousse le bloc légèrement vers la gauche */
    background-image: linear-gradient(155deg, var(--deep-blue), var(--blue), var(--deep-blue));
    background-size: 200%;
    background-position: left;
    transition: background-position 0.5s;
}

.service.left:hover, .service.left:active {
    background-position: right;
}

.service.right {
    margin-left: 10%; /* Pousse le bloc légèrement vers la droite */
    background-image: linear-gradient(-25deg, var(--deep-blue), var(--blue), var(--deep-blue));
    background-size: 200%;
    background-position: right;
    transition: background-position 0.5s;
}

.service.right:hover, .service.right:active {
    background-position: left;
}

.service.right > h3 {
    text-align: end;
}

.description {
    text-align: justify;
}

#services {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#testimonials {
    flex-direction: column;
    overflow: hidden; /* Cache la barre de défilement */
}

.testimonials-wrapper {
    display: flex;
    overflow-x: auto; /* Active le défilement horizontal */
    -webkit-overflow-scrolling: touch; /* Permet un défilement fluide sur iOS */
    gap: 20px; /* Espacement entre chaque bloc d'avis */
}

.testimonial {
    flex: 0 0 auto; /* Empêche les éléments de s'étendre ou de rétrécir */
    width: 200px; /* Largeur fixe pour chaque bloc d'avis */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: var(--light-gray);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonial blockquote {
    font-style: italic;
    color: #555;
}

.testimonial p {
    margin-top: 10px;
    font-weight: bold;
    color: var(--deep-blue);
    text-align: right;
}

blockquote {
    font-style: italic;
    color: #555;
}

.features {
    display: flex;
    flex: 1 1 0;
    justify-content: center;
    gap: 20px; /* Espacement entre les tuiles */
    flex-wrap: wrap; /* Permet aux tuiles de passer à la ligne sur les petits écrans */
    padding: 20px 0;
}

.feature-item {
    color: var(--white);
    background-image: linear-gradient(155deg, var(--deep-blue), var(--blue), var(--light-blue));
    background-size: 230%;
    background-position: left;
    transition: background-position 0.5s;

    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre le contenu de la tuile verticalement */
    text-align: center;
    padding: 20px;
    border-radius: 20px;
}

.feature-item:hover,
.feature-item:active {
    background-position: right;
}

.feature-header {
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-item h3 {
    color: var(--white);
}

.feature-icon {
    width: 40px;
    height: auto;
}

.descriptive-sections {
    display: flex;
    flex-direction: column;
}

.dual-section, .single-section {
    flex: 1;
    margin: 20px auto;
    padding: 20px;
    max-width: 1100px;
}

.dual-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dual-section .text-content {
    flex: 1; /* Permet au contenu texte d'occuper l'espace disponible */
    margin-right: 20px; /* Espacement entre le texte et l'image */
}

.dual-section .text-content, .image-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.image-content {
    max-width: 50%;
}

.image-content img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px; /* Adaptez selon vos préférences */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre portée pour le contraste */
}

.dual-section h2, .single-section h2 {
    margin-bottom: 15px;
}

.single-section {
    display: flex;
    justify-content: center;
}

.detail {
    margin-bottom: 20px;
}

.detail h3 {
    margin-bottom: 10px;
    color: #333; /* Couleur foncée pour les sous-titres */
}

.detail p, .detail ul {
    margin-left: 20px;
}

.detail ul {
    list-style-type: disc; /* Style de liste pour les avantages */
}

@media (max-width: 1200px) {
    nav {
        flex-wrap: wrap;
    }

    #menu-toggle {
        display: block;
    }

    .small-logo {
        display: none;
    }

    .large-logo-container {
        flex-grow: 4;
        margin-right: 50px; /* Égal à la largeur totale du menu-toggle pour centrer le logo */
        display: flex;
        align-items: center;
    }

    .large-logo {
        display: block;
    }

    #nav-links {
        width: 100vw;
        display: none; /* Cache les liens de navigation par défaut sur les petits écrans */
        flex-direction: column; /* Organise les liens de navigation verticalement */
    }

    #nav-links li {
        display: block;
        text-align: center;
        margin: 10px 0;
    }

    #nav-links li a {
        display: block; /* S'étend pour remplir le conteneur li, rendant tout le bloc cliquable */
        width: 100%; /* Assure que le lien prend toute la largeur de li */
        padding: 10px 0; /* Ajuste le padding pour augmenter la hauteur du lien */
    }

    /* .dropdown-content {
        display: block !important;
    }

    .dropdown > a::after {
        display: none;
    } */

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown-content {
        flex-direction: column;
        position: relative;
        z-index: 1;
        width: 100%;
    }

    .dropdown-content a {
        width: 100%;
        padding: 10px 0;
    }

    .dropdown > .active + .dropdown-content {
        display: flex; /* Affiche le menu déroulant lorsqu'il est actif */
    }

    .service.left {
        margin-right: 10px;
    }
    
    .service.right {
        margin-left: 10px;
    }

    .service.right > h3 {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .section {
        flex-direction: column;
        text-align: center;
    }

    .service {
        flex-basis: 80%; /* Les services prennent plus de place sur petit écran */
    }

    #intro > img {
        max-width: 80%;
    }
}