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

header {
    background-color: #f0f0f0;
    padding: 1rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav li {
    display: inline;
    margin: 0 1rem;
}

nav a {
    text-decoration: none;
    color: #333;
}

.hero {
    background-image: url('images/maison.jpg'); /* Remplacez par le chemin de votre image */
    background-size: cover; /* L'image couvre toute la zone, en s'adaptant */
    background-position: center; /* Centre l'image */
    background-repeat: no-repeat; /* Empêche la répétition de l'image */
    height: 100vh; /* La section prend toute la hauteur de la fenêtre */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
}

.accueil-contenu, .chambres, .services, .contact {
    padding: 2rem;
    text-align: center;
}

.chambres {
    padding: 2rem;
    text-align: center;
}

.chambre {
    display: flex; /* Utilise flexbox pour l'alignement */
    align-items: flex-start; /* Aligne les éléments en haut */
    margin-bottom: 2rem;
}

.chambre-image {
    width: 40%; /* Ajustez la largeur selon vos besoins */
    padding-right: 1rem;
}

.chambre-image img {
    width: 100%;
    height: auto;
    display: block;
}

.chambre-texte {
    width: 60%; /* Ajustez la largeur selon vos besoins */
    text-align: left;
}

.button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
}

footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 1rem;
}

/* Styles pour le formulaire de contact */
.contact form {
    display: inline-block;
    text-align: left;
}

.contact input, .contact textarea {
    width: 300px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

/* ... Autres styles ... */

.services {
    padding: 2rem;
}

.service-alternant {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.service-alternant.inverse {
    flex-direction: row-reverse; /* Inverse l'ordre pour alterner */
}

.service-image {
    flex: 1;
    padding: 1rem;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block; /* Supprime l'espace supplémentaire sous l'image */
}

.service-texte {
    flex: 3;
    padding: 1rem;
    text-align: left; /* Aligne le texte à gauche */
}

/* ... Autres styles ... */

body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    width: 90%; /* Définissez une largeur pour les éléments à centrer */
    margin-left: auto;
    margin-right: auto;
}

.buttonRES {
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.buttonRES.booking {
    background-color: #007bff; /* Couleur de Booking */
}

.buttonRES.booking:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.buttonRES.airbnb {
    background-color: #ff5a5f; /* Couleur de AirBnB */
}

.buttonRES.airbnb:hover {
    background-color: #e63946;
    transform: translateY(-2px);
}

.chambres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.chambre-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chambre-card img {
    width: 100%;
    height: auto;
    display: block;
}

.chambre-card h3 {
    padding: 10px;
    margin-top: 0;
    text-align: center;
    color: #333;
}

.chambre-card p {
    padding: 0 10px 10px;
    color: #555;
}

.chambre-card a {
    display: block;
    background-color: #f0f0f0;
    color: #333;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.chambre-card a:hover {
    background-color: #e0e0e0;
}

.chambre-image-container {
    width: 100%; /* La largeur du conteneur prendra toute la largeur de la carte */
    height: 200px; /* Définissez la hauteur souhaitée pour toutes les images */
    overflow: hidden; /* Cache tout ce qui dépasse du conteneur */
}

.chambre-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit le conteneur en conservant son ratio d'aspect. Elle sera rognée si nécessaire. */
}

.voir-plus {
    text-align: center;
    margin-top: 15px;
}

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

.services h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.services ul {
    list-style: none;
    padding: 0;
}

.services ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.services ul li:last-child {
    border-bottom: none;
}

.presentation {
    background-color: #fff;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- Style pour la galerie d'images --- */
.image-gallery {
    padding: 30px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.image-gallery h2 {
    color: #333;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Quatre colonnes sur les écrans plus grands */
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-item {
    overflow: hidden; /* Pour que les images ne dépassent pas */
    border-radius: 5px;
    cursor: pointer; /* Indique que l'image est cliquable */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out; /* Ajoute une petite animation au survol */
}

.gallery-item img:hover {
    transform: scale(1.05); /* Légère augmentation de la taille au survol */
}

/* --- Style pour la lightbox --- */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent noir */
    display: none; /* Initialement cachée */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Pour être au-dessus de tout le reste */
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Assure que l'image entière est visible */
}

#close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3em;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#close-lightbox:hover {
    opacity: 1;
}

/* --- Responsive pour la galerie --- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Plus de flexibilité sur les petits écrans */
    }
}

/* Nouveau style pour le conteneur de la miniature */
.thumbnail-container {
    width: 100%;
    height: 200px; /* Définissez la hauteur souhaitée pour toutes les miniatures */
    overflow: hidden;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* L'image remplit le conteneur en conservant son ratio d'aspect et est rognée si nécessaire */
    transition: transform 0.3s ease-in-out; /* Ajoute une petite animation au survol */
}

.thumbnail-container img:hover {
    transform: scale(1.05); /* Légère augmentation de la taille au survol */
}

#map {
    width: 600px;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.servicesListe {
    text-align: center;
    padding: 20px;
}

.servicesListe-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

.servicesListe-list dt {
    font-size: 2em;
    margin-bottom: 10px;
}

.servicesListe-list dd {
    font-size: 1.1em;
    margin: 0;
}

.servicesListe-details {
    display: none;
    margin-top: 20px;
}

.servicesListe-details img {
    max-width: 100%;
    height: auto;
}

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


.reviews-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

@media (max-width: 1024px) {
    .reviews-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }
}

.review-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: scale(1.02);
}

.reviewer-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
}

.reviewer-name {
    font-weight: bold;
    margin-bottom: 10px;
}

.reviewer-name a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.reviewer-name a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.review-rating {
    color: #FFC107;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.review-text {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.review-text.expanded {
    max-height: none;
}

.read-more {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

.review-date {
    color: #888;
    font-size: 0.8em;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-dot {
    width: 15px;
    height: 15px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-dot.active {
    background-color: #007bff;
}

.chambres-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Espace entre les chambres */
}

.chambre-card {
    flex: 1; /* Permet aux cartes de prendre un espace égal */
    max-width: 33%; /* Limite la largeur de chaque carte */
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.chambre-card:hover {
    transform: scale(1.05);
}

.chambre-image-container {
    width: 100%;
    height: 250px; /* Hauteur fixe pour les images */
    overflow: hidden;
}

.chambre-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garde les proportions de l'image */
}

.chambre-card h3 {
    padding: 10px;
    text-align: center;
}

.chambre-card p {
    padding: 0 10px 10px;
    text-align: center;
    color: #666;
}

.chambre-card a {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

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

.voir-plus {
    text-align: center;
    margin-top: 20px;
}

.voir-plus a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.voir-plus a:hover {
    background-color: #218838;
}

.contact {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.contact p {
    margin-bottom: 10px;
    color: #555;
}
.contact-container {

    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Permet aux colonnes de s'étirer également */
    margin-bottom: 20px;
    width: 100%; /* Utiliser toute la largeur disponible */
    max-width: 1200px; /* Augmenter la largeur maximale */
    margin: 0 auto; /* Centrer le conteneur */
    gap: 30px; /* Espace entre les colonnes */
}

.contact-info {
    flex: 1; /* Occupe 1 partie de l'espace */
    padding-right: 20px;
}

.contact-map {
    flex: 1; /* Occupe 1 partie de l'espace */
    width: 50%; /* Ou augmentez à 60-70% */
    max-width: 600px; /* Augmentez selon vos besoins */
    height: 400px; /* Augmentez la hauteur */
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info, 
    .contact-map {
        width: 100%;
        max-width: 100%;
    }
}
