/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

h2, h3 {
    color: #333;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    width: 100%;
}

.header .logo a {
    font-size: 30px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.nav {
    float: right;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    display: inline-block;
    margin-left: 20px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #007bff;
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

section p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* About section */
#about {
    background-color: #fff;
    text-align: center;
    padding: 60px 20px;
}

#about h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

#about p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* Contact section */
#contact {
    background-color: #f1f1f1;
    text-align: center;
    padding: 60px 20px;
}

#contact h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

#contact p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

.contact-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

.contact-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.contact-item h3 {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 1.1rem;
    color: #666;
}

.contact-item a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Services section */
.services {
    background-color: #fff;
}

.services-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1.1rem;
    color: #666;
}

.service-card a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.service-card a:hover {
    background-color: #0056b3;
}

/* Section de conseils */
#conseils {
    background-color: #f4f4f4;
    padding: 50px 0;
}

#conseils .container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#conseils h2 {
    text-align: center;
    font-size: 3rem;
    color: #333;
    margin-bottom: 40px;
}

.faq-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: bold;
}

.faq-item p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-top: 10px;
}

.faq-item ul {
    list-style: inside;
    padding-left: 20px;
    font-size: 1.2rem;
    color: #555;
}

.faq-item ul li {
    margin-bottom: 10px;
}

.faq-item ul li strong {
    font-weight: bold;
}

.faq-item h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: #007bff;
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #conseils .container {
        width: 95%;
        padding: 15px;
    }

    #conseils h2 {
        font-size: 2rem;
    }

    .faq-item h3 {
        font-size: 1.6rem;
    }

    .faq-item p, .faq-item ul li {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    #conseils h2 {
        font-size: 1.6rem;
    }

    .faq-item h3 {
        font-size: 1.4rem;
    }

    .faq-item p, .faq-item ul li {
        font-size: 0.9rem;
    }
}

/* Form sections */
form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

form .form-group {
    margin-bottom: 15px;
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer p {
    font-size: 1.1rem;
    color: #333;
}

.footer a {
    color: #007bff;
    text-decoration: none;
}

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

/* Contact Info */
.contact-info.centered {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    max-width: 600px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info.centered .title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.contact-info.centered .details {
    font-size: 1.2rem;
    color: #555;
}

.contact-info.centered .details .info {
    margin-bottom: 10px;
}
/* Style des boutons */
.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Centrer le titre dans le formulaire */
.form-container h2 {
    text-align: center;  /* Centrer le texte */
    margin: 0 auto;      /* Ajuste les marges pour centrer */
    padding: 20px 0;     /* Ajoute de l'espace autour du titre */
}

/* Centrer les éléments dans .contact-item */
.contact-item {
    text-align: center; /* Centrer le texte */
    margin: 0 auto;     /* Centre le bloc dans son parent */
}
.map-container h2 {
    text-align: center; /* Centre le texte horizontalement */
}
/* Pour les petits écrans (téléphones) */
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    h2 {
        font-size: 1.2rem;
    }

    label, input, select, textarea {
        font-size: 1rem;
    }

    button {
        width: 100%;  /* Le bouton occupe toute la largeur */
        padding: 15px;
    }
}

/* Style de base pour les cartes de service */
.services-cards {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.service-card {
    width: 30%; /* Largeur des cartes par défaut (en PC) */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.service-card h3 {
    margin-bottom: 10px;
}

/* Adaptation pour les petits écrans */
@media screen and (max-width: 768px) {
    .services-cards {
        flex-direction: column; /* Affichage en colonne sur les petits écrans */
        align-items: center; /* Centrer les cartes */
    }

    .service-card {
        width: 80%; /* Prendre 80% de la largeur sur mobile */
        margin-bottom: 20px; /* Espacement entre les cartes */
    }
}
