/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo {
    max-width: 150px; /* Ajustez la largeur maximale selon vos besoins */
    height: auto; /* Garde les proportions de l'image */
    margin-bottom: 20px; /* Espacement sous le logo */
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ede5ce;
}

/* Container */
.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

/* Header Styling */
header {
    background-color: #f05a24;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative; /* Pour le menu burger */
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

header p {
    font-size: 1.2rem;
}

/* Menu Burger for Mobile */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

nav ul.nav-list {
    display: flex;
    flex-direction: row;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show burger menu on small screens */
    }

    nav ul.nav-list {
        display: none; /* Hide the nav list by default on small screens */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
        text-align: left;
        padding: 20px 0;
    }

    nav ul.nav-list li {
        margin: 10px 0;
    }

    nav ul.nav-list.active {
        display: flex; /* Show the nav when burger is clicked */
    }
}

/* Services Section */
#services {
    padding: 40px 0;
    background-color: #008db0;
    color: white;
    text-align: center;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-item {
    flex: 1 1 200px;
    margin: 20px;
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s; /* Transition douce */
}

.service-item:hover {
    transform: translateY(-5px); /* Effet d'élévation au survol */
}

.service-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.service-item h3 {
    margin-top: 10px;
    font-size: 1.5rem;
    color: #f05a24;
}

.service-item p {
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
}

/* Zone d'intervention Section */
#about {
    padding: 40px 0;
    background-color: #ede5ce;
    text-align: center;
}

#about h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #008db0;
}

#about p {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
#contact {
    padding: 40px 0;
    background-color: #008db0;
    color: white;
    text-align: center;
}

#contact h2 {
    margin-bottom: 20px;
}

#contact a {
    color: #f05a24;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* Footer Section */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 0.9rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

footer .contact-info {
    text-align: left;
}

footer .contact-info i {
    margin-right: 8px;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .services-list {
        flex-direction: column; /* Colonne sur petits écrans */
        align-items: center; /* Centrer les éléments */
    }

    .service-item {
        width: 80%;
        margin-bottom: 20px;
    }

    header h1 {
        font-size: 2rem; /* Réduction de la taille du texte */
    }

    header p {
        font-size: 1rem;
    }

    footer .footer-content {
        flex-direction: column; /* Colonne sur petits écrans */
    }

    footer .contact-info {
        text-align: center; /* Centrer le texte */
    }
}

@media (max-width: 480px) {
    .service-item {
        width: 100%; /* Pleine largeur sur très petits écrans */
    }

    header h1 {
        font-size: 1.8rem; /* Réduction de la taille */
    }

    header p {
        font-size: 0.9rem; /* Réduction de la taille */
    }

    .service-item h3 {
        font-size: 1.2rem; /* Réduction de la taille */
    }

    .service-item p {
        font-size: 0.9rem; /* Réduction de la taille */
    }

    footer .footer-content {
        flex-direction: column; /* Colonne sur très petits écrans */
    }

    footer .contact-info {
        text-align: center; /* Centrer le texte */
    }
}
