/**
 * ==============================================================================
 * RÉSIDENCE TOUVALEM - STYLES DE LA PAGE GALERIE (gallery.css)
 * ==============================================================================
 * Styles de la page Galerie photos (/gallery) :
 * - Bannière d'en-tête hero spécifique à la galerie.
 * - Grille photo responsive (CSS Grid) avec proportions optimisées.
 * - Effets de zoom dynamique, overlay sombre et apparition de la légende au survol.
 * - Bouton d'appel à l'action vers les réservations.
 * ==============================================================================
 */

/* Bannière d'en-tête de la galerie */
.gallery-hero-section {
    position: relative;
    padding: 120px 0 70px 0;
    background: linear-gradient(rgba(36, 76, 74, 0.85), rgba(36, 76, 74, 0.95)), url('/images/banner.jpeg') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
}

.gallery-hero-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.gallery-hero-subtitle {
    font-size: 1.15rem;
    color: #EFA836;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Section de la grille de photographies */
.gallery-content-section {
    padding: 80px 0 100px 0;
    background-color: var(--bg-light, #fcfcfc);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Carte individuelle de photo */
.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 290px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    background-color: #e8edea;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
    transform: scale(1.09);
}

/* Voile d'ombrage et légende au survol */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(36, 76, 74, 0.92) 0%, rgba(36, 76, 74, 0.4) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px 22px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-family: var(--font-heading, 'Playfair Display', serif);
    margin: 0;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

/* Section d'appel à l'action inférieure */
.gallery-cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

.gallery-cta-btn {
    padding: 15px 40px;
    font-size: 1.05rem;
    border-radius: 30px;
}

/* Adaptations mobiles & tablettes */
@media (max-width: 768px) {
    .gallery-hero-title {
        font-size: 2.2rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .gallery-item {
        height: 240px;
    }
}
