/**
 * Styles pour la galerie
 */

.page-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #fff;
    padding: 4rem 0 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    font-family: var(--font-headings);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .page-header {
        padding: 3.5rem 0;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .page-header p {
        font-size: 1.125rem;
        padding: 0 1rem;
    }
}

.gallery-filters {
    padding: 40px 0;
    background: var(--color-bg-light);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--color-text);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.gallery-section {
    padding: 60px 0;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

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

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

.gallery-overlay i {
    font-size: 48px;
    margin-bottom: 10px;
}

.gallery-overlay p {
    font-size: 18px;
    font-weight: 600;
}

.chambres-section {
    padding: 3rem 0 5rem 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.chambres-container-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0 4rem;
}

.chambres-scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2rem 0 3rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 4rem;
}

.chambres-scroll-container::-webkit-scrollbar {
    display: none;
}

.chambres-scroll-container {
    -ms-overflow-style: none;
}

.chambre-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.35s, box-shadow 0.35s;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    width: 320px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    scroll-snap-align: start;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.12), 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(139, 41, 66, 0.1);
}

.chambre-card:hover {
    transform: scale(1.12) translateY(-0.5rem);
    z-index: 10;
    box-shadow: 0 0.75rem 2.5rem rgba(139, 41, 66, 0.2), 0 0.375rem 1.25rem rgba(0, 0, 0, 0.15);
    border-color: rgba(139, 41, 66, 0.3);
}

.chambre-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-light);
    border-radius: 0.75rem 0.75rem 0 0;
}

.chambre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.chambre-card:hover .chambre-image img {
    transform: scale(1.08);
}

.chambre-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0 0 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(139, 41, 66, 0.08);
    flex-grow: 1;
}

.chambre-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.chambre-content h3 {
    font-size: 1.25rem;
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.chambre-badge {
    background: linear-gradient(135deg, var(--color-primary) 0%, #a02d4a 100%);
    color: #fff;
    padding: 0.375rem 0.875rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0.125rem 0.5rem rgba(139, 41, 66, 0.3);
}

.chambre-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.chambre-prix {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-body);
    margin: 0;
}

.chambre-prix small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-left: 0.25rem;
}

.chambre-capacite {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin: 0;
}

.chambre-capacite i {
    color: var(--color-accent);
    font-size: 0.875rem;
}

.chambre-description {
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chambre-equipements {
    margin: 0.25rem 0 0 0;
    display: none;
}

.chambre-card:hover .chambre-equipements {
    display: block;
}

.chambre-equipements h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.chambre-equipements ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
}

.chambre-equipements li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--color-bg-light);
    border-radius: 0.25rem;
    color: var(--color-text-light);
    font-size: 0.6875rem;
}

.chambre-equipements li i {
    color: var(--color-primary);
    font-size: 0.625rem;
}

.chambre-card .btn-primary {
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.chambre-card .btn-primary:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.5rem rgba(139, 41, 66, 0.4);
    background: #a02d4a;
}

/* Boutons de défilement style Netflix */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--color-primary);
    border: 1px solid rgba(139, 41, 66, 0.2);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
}

.chambres-container-wrapper:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0.375rem 1.5rem rgba(139, 41, 66, 0.3);
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-btn-left {
    left: 1rem;
}

.scroll-btn-right {
    right: 1rem;
}

.scroll-btn i {
    font-size: 1.5rem;
    font-weight: 300;
}

.scroll-btn:disabled {
    opacity: 0;
    cursor: not-allowed;
    pointer-events: none;
}

@media screen and (max-width: 1024px) {
    .chambres-container-wrapper {
        padding: 0 3.5rem;
    }

    .chambre-card {
        min-width: 300px;
        width: 300px;
    }

    .chambre-image {
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .chambres-section {
        padding: 2rem 0 4rem 0;
    }

    .chambres-container-wrapper {
        padding: 0 3rem;
    }

    .chambre-card {
        min-width: 280px;
        width: 280px;
    }

    .chambre-card:hover {
        transform: scale(1.1) translateY(-0.25rem);
    }

    .chambre-image {
        height: 380px;
    }

    .chambre-content {
        padding: 1.25rem;
    }

    .chambre-content h3 {
        font-size: 1.125rem;
    }

    .scroll-btn {
        width: 2.75rem;
        height: 2.75rem;
        opacity: 0.8;
    }

    .scroll-btn i {
        font-size: 1.25rem;
    }

    .scroll-btn-left {
        left: 0.75rem;
    }

    .scroll-btn-right {
        right: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .chambres-container-wrapper {
        padding: 0 2.5rem;
    }

    .chambre-card {
        min-width: 260px;
        width: 260px;
    }

    .chambre-image {
        height: 350px;
    }

    .chambre-content {
        padding: 1rem;
    }

    .chambre-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .chambre-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .scroll-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    .scroll-btn i {
        font-size: 1rem;
    }
}

/* ============================================
   STYLES PERSONNALISÉS POUR LIGHTBOX2
   ============================================ */

/* Bouton de fermeture personnalisé - CACHÉ PAR DÉFAUT */
.custom-lightbox-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 41, 66, 0.2) !important;
    border-radius: 50% !important;
    display: none !important; /* CACHÉ PAR DÉFAUT */
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 100001 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    color: var(--color-primary) !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-lightbox-close i {
    font-size: 20px !important;
    color: var(--color-primary) !important;
    transition: all 0.3s ease !important;
}

/* Bouton de fermeture Lightbox - Style personnalisé (pour le bouton par défaut si présent) */
.lb-close,
a.lb-close,
.lb-nav a.lb-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 41, 66, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    font-size: 24px !important;
    color: var(--color-primary) !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Contenu du bouton (le X) */
.lb-close::before,
a.lb-close::before {
    content: '×' !important;
    font-size: 32px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
    color: inherit !important;
    display: block !important;
}

/* Animation d'apparition au chargement */
.lb-dataContainer {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation au survol du bouton de fermeture personnalisé */
.custom-lightbox-close:hover {
    background: var(--color-primary) !important;
    transform: rotate(90deg) scale(1.15) !important;
    box-shadow: 0 6px 25px rgba(139, 41, 66, 0.4) !important;
}

.custom-lightbox-close:hover i {
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* ============================================
   FLÈCHES DE NAVIGATION
   ============================================ */

.custom-lightbox-nav {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(139, 41, 66, 0.2) !important;
    border-radius: 50% !important;
    display: none !important; /* CACHÉ PAR DÉFAUT */
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 100001 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    color: var(--color-primary) !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-lightbox-nav-left {
    left: 20px !important;
}

.custom-lightbox-nav-right {
    right: 20px !important;
}

.custom-lightbox-nav i {
    font-size: 18px !important;
    color: var(--color-primary) !important;
    transition: all 0.3s ease !important;
}

.custom-lightbox-nav:hover {
    background: var(--color-primary) !important;
    transform: translateY(-50%) scale(1.15) !important;
    box-shadow: 0 6px 25px rgba(139, 41, 66, 0.4) !important;
}

.custom-lightbox-nav:hover i {
    color: #fff !important;
    transform: scale(1.1) !important;
}

.custom-lightbox-nav:active {
    transform: translateY(-50%) scale(0.95) !important;
    box-shadow: 0 2px 10px rgba(139, 41, 66, 0.3) !important;
}

.custom-lightbox-nav:focus {
    outline: 3px solid var(--color-primary) !important;
    outline-offset: 3px !important;
}

/* Animation active (clic) pour le bouton personnalisé */
.custom-lightbox-close:active {
    transform: rotate(90deg) scale(0.95) !important;
    box-shadow: 0 2px 10px rgba(139, 41, 66, 0.3) !important;
}

/* Animation au survol du bouton de fermeture */
.lb-close:hover,
a.lb-close:hover,
.lb-nav a.lb-close:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
    transform: rotate(90deg) scale(1.15) !important;
    box-shadow: 0 6px 25px rgba(139, 41, 66, 0.4) !important;
}

/* Animation active (clic) */
.lb-close:active,
a.lb-close:active,
.lb-nav a.lb-close:active {
    transform: rotate(90deg) scale(0.95) !important;
    box-shadow: 0 2px 10px rgba(139, 41, 66, 0.3) !important;
}

/* Focus pour l'accessibilité */
.custom-lightbox-close:focus {
    outline: 3px solid var(--color-primary) !important;
    outline-offset: 3px !important;
}

.lb-close:focus,
a.lb-close:focus,
.lb-nav a.lb-close:focus {
    outline: 3px solid var(--color-primary) !important;
    outline-offset: 3px !important;
}

/* Style du conteneur Lightbox */
.lb-container {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(5px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Conteneur de navigation Lightbox */
.lb-nav {
    position: relative !important;
}

/* S'assurer que tous les boutons de fermeture sont visibles */
.lb-dataContainer .lb-close,
.lb-wrapper .lb-close,
.lb-overlay .lb-close {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Style de l'image dans la lightbox */
.lb-image {
    border: 3px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Centrer le wrapper de l'image */
.lb-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
}

.lb-dataContainer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
}

/* Style du titre dans la lightbox - CACHÉ */
.lb-caption {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
    .custom-lightbox-nav {
        width: 45px !important;
        height: 45px !important;
    }
    
    .custom-lightbox-nav-left {
        left: 15px !important;
    }
    
    .custom-lightbox-nav-right {
        right: 15px !important;
    }
    
    .custom-lightbox-nav i {
        font-size: 16px !important;
    }
    .custom-lightbox-close {
        width: 45px !important;
        height: 45px !important;
        top: 15px !important;
        right: 15px !important;
    }
    
    .custom-lightbox-close i {
        font-size: 18px !important;
    }
    
    .custom-lightbox-close:hover {
        transform: rotate(90deg) scale(1.1) !important;
    }
    
    .lb-close,
    a.lb-close,
    .lb-nav a.lb-close {
        width: 45px !important;
        height: 45px !important;
        top: 15px !important;
        right: 15px !important;
        font-size: 20px !important;
    }
    
    .lb-close::before,
    a.lb-close::before {
        font-size: 28px !important;
    }
    
    .lb-close:hover,
    a.lb-close:hover,
    .lb-nav a.lb-close:hover {
        transform: rotate(90deg) scale(1.1) !important;
    }
}

@media screen and (max-width: 480px) {
    .custom-lightbox-close {
        width: 40px !important;
        height: 40px !important;
        top: 10px !important;
        right: 10px !important;
    }
    
    .custom-lightbox-close i {
        font-size: 16px !important;
    }
    
    .lb-close,
    a.lb-close,
    .lb-nav a.lb-close {
        width: 40px !important;
        height: 40px !important;
        top: 10px !important;
        right: 10px !important;
        font-size: 18px !important;
    }
    
    .lb-close::before,
    a.lb-close::before {
        font-size: 24px !important;
    }
}
