.slider-container {
    margin-top: 20px;
}

/* Accordéon pour les gîtes */
.gites-accordion {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: nowrap; /* Par défaut, pas de retour à la ligne */
}

.gite-item {
    margin-bottom: 0;
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 32%;
}

@media (max-width: 992px) {
    .gites-accordion {
        flex-wrap: wrap; /* Activer le flex-wrap uniquement pour les écrans ≤ 992px */
        gap: 10px; /* Réduire l'espace entre les éléments */
    }
    
    .gite-item {
        width: 48%; /* Deux éléments par ligne sur tablette */
        margin-bottom: 15px; /* Ajouter un espace entre les lignes */
    }
}

@media (max-width: 768px) {
    .gites-accordion {
        flex-direction: column; /* Affichage en colonne sur mobile */
        gap: 15px;
    }
    
    .gite-item {
        width: 100%; /* Pleine largeur sur mobile */
        margin-bottom: 15px;
    }
    
    .gite-header .image-container {
        height: 180px; /* Images un peu plus grandes sur mobile */
    }
    
    .gite-info h2 {
        font-size: 18px; /* Titre légèrement plus petit */
    }
    
    .gite-info p {
        max-height: none; /* Permettre au texte de s'afficher entièrement */
        -webkit-line-clamp: 4; /* Montrer une ligne de plus sur mobile */
    }
    
    .welcome-text h1 {
        font-size: 24px; /* Titre plus petit sur mobile */
    }
    
    .welcome-text p {
        font-size: 14px; /* Texte plus petit sur mobile */
    }
}

@media (max-width: 576px) {
    .gite-item {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .gite-header .image-container {
        height: 150px; /* Ajuster la hauteur des images pour les petits écrans */
    }
}

.gite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.gite-header {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 0;
    height: 100%;
    position: relative;
}

/* Pour rendre l'image du gîte zoomable au survol */
.gite-header .image-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.gite-header .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gite-header:hover .image-container img {
    transform: scale(1.05);
}

.gite-info {
    padding: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 60%;
}

.gite-info h2 {
    color: #333;
    margin-bottom: 8px;
    font-size: 20px;
}

.gite-info p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.gite-cta {
    background-color: #6BA9C7;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Arial', serif;
    font-size: 13px;
    transition: background-color 0.3s ease;
    position: static;
    margin-top: auto;
}

.gite-cta:hover {
    background-color: #5a98b6;
}

.gite-capacity {
    display: flex;
    align-items: center;
    margin-top: 10px;
    color: #666;
}

.gite-capacity span {
    margin-right: 5px;
}

/* Texte de bienvenue sur le slider */
.welcome-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

.welcome-text h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.welcome-text p {
    font-size: 16px;
}

@media (max-width: 768px) {
    .slider-container {
        display: flex;
        flex-direction: column;
        height: auto !important;
    }

    .slider {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .slider .slide {
        width: 100%;
    }

    .slider .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .welcome-text {
        position: relative;
        top: -30px;
        margin: 0 auto -30px auto;
        width: 92%;
        padding: 18px 20px;
        background-color: #fff;
        text-align: center;
        z-index: 1;
        font-family: 'Helvetica Neue', sans-serif;
        border: 1px solid #eee;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .welcome-text::before {
        content: '';
        width: 40px;
        height: 2px;
        background: #ccc;
        display: block;
        margin: 0 auto 12px auto;
        border-radius: 1px;
    }

    .welcome-text h1 {
        font-size: 1.25rem;
        margin: 0 0 8px 0;
        color: #222;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .welcome-text p {
        font-size: 0.95rem;
        color: #555;
        line-height: 1.5;
        margin: 0;
    }

    .gite-cta {
        margin-top: 20px;
    }
}