
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 🌿 Styles généraux */
body {
    background: linear-gradient(to bottom, #e6f4e6, #f9f9f9);
    color: #333;
    font-family: Arial, sans-serif;
}

/* Conteneur principal */
.main-container {
    width: 100%;  
    max-width: 2000px;  
    margin: auto; 
    padding: 20px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    background-color: #FFFFFF; 
    border-radius: 0px; 
    padding: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); 
}

/* 🏠 Image du cabinet */
.cabinet-banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}


@media (max-width: 768px) {
    .cabinet-banner img {
        height: 250px; /* Moins haute sur tablette */
    }
}

@media (max-width: 480px) {
    .cabinet-banner img {
        height: 180px; /* Encore plus réduite sur petits mobiles */
    }
}


/* ℹ️ Section principale */
.section-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    width: 90%;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Texte */
.section-text {
    flex: 1;
    padding: 20px;
}

.section-text2 {
    width: 90%;
}

.section-text2 p {
    font-size: 18px;
    line-height: 1.6;
}

.section-title {
    font-size: 28px;
    color: #2C5E2E;
    margin-bottom: 15px;
}

.section-text p {
    font-size: 18px;
    line-height: 1.6;
}

/* Liste */
.section-text ul {
    list-style-type: none;
    padding: 0;
}

.section-text li {
    font-size: 1rem;
    padding: 5px 0;
}

/* 📷 Galerie d'images */
.section-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.section-gallery img {
    flex: 1 1 auto; /* Permet aux images de s'ajuster automatiquement */
    max-width: calc(100% / 3 - 10px); /* Max 3 images par ligne */
    height: auto;
    max-height: 250px; /* Limite la hauteur pour éviter qu'elles ne prennent trop de place */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}



/* 📱 ✅ CORRECTION POUR LES PETITS ÉCRANS */
@media screen and (max-width: 768px) {
    
    .section-text2 {
        width: 100%;
    }

    .section-content {
        flex-direction: column !important; /* Forcer toutes les sections en colonne */
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    

    .section-title {
        font-size: 24px;
    }

    .section-text2 p {
        font-size: 16px;
    }


    .section-text li {
        font-size: 16px;
    }


}



@media screen and (max-width: 480px) {
    .section-image {
        width: 100%; /* Image prend toute la largeur sur petits écrans */
    }

    .section-title {
        font-size: 22px;
    }

    .section-text2 p {
        font-size: 14px;
    }

    .section-text li {
        font-size: 14px;
    }
}



/* ✅ MEILLEUR AFFICHAGE SUR PETITS ÉCRANS */
@media (max-width: 768px) {
    .section-gallery img {
        max-width: calc(100% / 2 - 10px); /* 2 images par ligne sur tablette */
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .section-gallery img {
        max-width: 100%; /* 1 image par ligne sur mobiles */
        max-height: 180px;
    }
}


/* 🚗 Accessibilité */
.accessibilite {
    background: #E3F2E3;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 30px auto;
    width: 80%;
}

.accessibilite h2 {
    color: #2C5E2E;
}

.accessibilite ul {
    list-style-type: none;
    padding: 0;
}

.accessibilite li {
    font-size: 1rem;
    padding: 5px 0;
}

/* 📍 Adresse & Google Maps */
.adresse {
    text-align: center;
    margin-top: 30px;
}

.adresse h3 {
    color: #2C5E2E;
    font-size: 20px;
}

.carte {
    width: 100%; /* Prend presque toute la largeur du conteneur */
    max-width: 800px; /* Augmente la taille max de l'image */
    display: block;
    height: auto;
    margin: 20px auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carte:hover {
    transform: scale(1.1); /* Zoom un peu plus prononcé */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3); /* Effet d'ombre au survol */
}



/* 📱 Ajustement sur mobile */
@media (max-width: 768px) {
    .carte {
        max-width: 100%; /* Prend toute la largeur sur mobile */
    }
}
