/* Global Reset and Basic Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
}

section {
    padding: 40px 20px;
    margin: 30px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Header Styles */
header {
    background-color: #000080;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px; /* Réduire la taille de l'en-tête avec moins de padding */
    flex-wrap: wrap;
    position: fixed; /* Fixe l'en-tête */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Pour s'assurer qu'il reste au-dessus du contenu */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre portée légère */
}

header .logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 100px; /* Réduire la taille du logo */
    height: auto;
    margin-right: 20px;
}

/* Navigation Styles */
nav ul {
    display: flex;
    gap: 20px; /* Réduire l'espacement entre les éléments du menu */
}

nav ul li a {
    color: white;
    font-weight: 600;
    font-size: 1rem; /* Réduire la taille du texte */
    text-transform: uppercase;
    padding: 5px 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav ul li a:hover {
    color: #4169E1;
    background-color: white;
    border-radius: 5px;
}

/* Menu Burger */
.menu-burger {
    display: none; /* Masqué par défaut sur les grands écrans */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    height: 25px; /* Réduire la taille du menu burger */
    justify-content: space-between;
    width: 25px; /* Réduire la largeur */
    z-index: 10;
}

.menu-burger span {
    height: 4px; /* Réduire la hauteur des barres du menu burger */
    width: 100%;
    background-color: white;
    border-radius: 5px;
}

/* Mobile-specific Styles */
@media screen and (max-width: 768px) {
    .menu-burger {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
        width: 100%;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 10px;
        text-align: center;
    }

    #navbar.open {
        display: flex; /* Affiche le menu quand l'icône burger est cliquée */
    }

    header {
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px; /* Réduire encore plus le padding sur mobile */
    }

    .logo-img {
        margin-right: 0; /* Réduit l'espace entre le logo et le menu burger sur mobile */
    }
}


/* Landing Page */
.landing-page {
    background-color: #4169E1;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.landing-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.landing-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ccc;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ccc;
}

/* Services Section */
#services {
    background-color: #fff;
    border-top: 2px solid #000080;
}

#services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #000080;
}

#services ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

#services ul li {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services ul li:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* About Section */
#a-propos {
    background-color: #f8f8f8;
    padding: 60px 20px;
    text-align: center;
}

#a-propos h2 {
    font-size: 2.8rem;
    color: #000080;
    margin-bottom: 20px;
    font-weight: bold;
}

#a-propos p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#a-propos h3 {
    font-size: 2rem;
    color: #4169E1;
    margin-bottom: 15px;
    font-weight: bold;
}

#a-propos ul {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

#a-propos ul li {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

#a-propos ul li strong {
    color: #4169E1;
}

#a-propos p:last-child {
    margin-bottom: 0;
}

/* Galerie Section */
#galerie {
    background-color: #fff;
    padding: 60px 20px;
}

#galerie h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #000080;
}

#galerie p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.gallery-item {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.1);
}
/* Zoom et effet sur les images de la galerie */
.gallery-item img:hover {
    transform: scale(1.1);
}

/* Styles pour la modale */
.modal {
    display: none; /* Cacher la modale par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond sombre */
    z-index: 1001; /* Placer au-dessus du contenu */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    backdrop-filter: blur(5px); /* Flou derrière l'image */
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    border-radius: 8px;
}

/* Bouton de fermeture de la modale */
.close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 1002; /* S'assurer que le bouton de fermeture est au-dessus */
}

.close-btn:hover {
    color: #ff6f61;
}

/* Responsive : Ajuster l'image de la modale sur les petits écrans */
@media screen and (max-width: 768px) {
    .modal-content {
        max-width: 80%;
    }
}

/* Témoignages Section */
#temoignages {
    background-color: #f8f8f8;
    padding: 60px 20px;
    text-align: center;
}

#temoignages h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #000080;
}

.temoignages-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.temoignage {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.temoignage p {
    font-style: italic;
    color: #555;
}

.temoignage span {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #000080;
}

/* Demande de devis Section */
#demande-devis {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

#demande-devis h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #000080;
}

form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

form label {
    font-size: 1.2rem;
    font-weight: bold;
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1.1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    background-color: #4169E1;
    color: white;
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

form button:hover {
    background-color: #000080;
}

/* Footer Styles */
footer {
    background-color: #000080;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1em;
}

footer p {
    margin: 0;
}

/* WhatsApp Button */
.whatsapp-button {
    background-color: #333;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128c7e;
}

/* Loading Spinner */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Assurez-vous qu'il reste au-dessus du contenu */
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #000080;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Bande Passante Partenaires */
#partenaires {
    background-color: #f8f8f8; /* Couleur de fond claire */
    padding: 40px 20px;
    text-align: center;
}

#partenaires h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #000080;
    font-weight: bold;
}

/* Style pour le conteneur des images défilantes */
.partenaires-carousel {
    display: flex;
    overflow-x: scroll;
    gap: 30px; /* Espacement entre les images */
    scroll-behavior: smooth; /* Défilement fluide */
    padding: 10px 0;
    justify-content: center;
}

/* Style pour chaque image partenaire */
.partenaires-carousel .partenaire-item {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
    object-fit: contain; /* Garantir que les images ne déforment pas */
}

/* Effet de survol (zoom) des images */
.partenaires-carousel .partenaire-item:hover {
    transform: scale(1.1); /* Agrandissement au survol */
}

/* Animation de défilement automatique */
@keyframes defilementAutomatique {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Appliquer l'animation au conteneur */
.partenaires-carousel {
    animation: defilementAutomatique 30s linear infinite; /* Défilement infini */
}
