/* =====================================================
 * CSS Réserver Logement - Module dédié
 * Extrait de my-style.css pour meilleure organisation
 * ===================================================== */

/* =====================================================
 * SECTION RÉSERVATION
 * ===================================================== */
.reservation-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 20px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.reservation-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.03;
    animation: float 12s ease-in-out infinite;
}

.reservation-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--dynasty-accent), var(--dynasty-luxury-gold));
    border-radius: 50%;
    opacity: 0.02;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
    }
}

.reservation-container {
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.reservation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.reservation-content {
    animation: slideInLeft 0.8s ease-out;
}

.reservation-visual {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reservation-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    margin: 0 0 24px 0;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    position: relative;
}

.reservation-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
    line-height: 1.6;
    font-weight: 500;
}

/* =====================================================
 * GRID DES FONCTIONNALITÉS
 * ===================================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin: 0 0 20px 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
 * BADGE PROMO
 * ===================================================== */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--dynasty-warning), var(--dynasty-luxury-gold));
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 0 0 24px 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* =====================================================
 * BOUTONS D'ACTION
 * ===================================================== */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    border-color: var(--text-primary);
}

/* =====================================================
 * CONTAINER VISUEL
 * ===================================================== */
.visual-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 600px;
}

.main-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
    transform-origin: center center;
    position: absolute;
    top: 0;
    left: 0;
}

.visual-container:hover .main-image {
    transform: scale(1.08) !important;
}

.overlay-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-medium);
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 20px;
    color: var(--dynasty-luxury-gold);
}

.stat-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 18px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--dynasty-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* =====================================================
 * GALERIE D'IMAGES MODAL
 * ===================================================== */
.gallery-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-medium);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
    z-index: 20;
}

.gallery-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-medium);
    border-color: var(--dynasty-accent);
}

.gallery-btn.pulse {
    animation: galleryPulse 0.6s ease-out;
}

@keyframes galleryPulse {
    0% { transform: translateY(-2px) scale(1.05); }
    50% { transform: translateY(-4px) scale(1.1); }
    100% { transform: translateY(-2px) scale(1.05); }
}

.gallery-icon {
    font-size: 16px;
}

.gallery-text {
    white-space: nowrap;
}

.photo-count {
    background: var(--dynasty-accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

/* Modal principal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: var(--blur-heavy);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.gallery-modal-open {
    opacity: 1;
}

.gallery-modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    backdrop-filter: var(--blur-heavy);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gallery-modal-open .gallery-modal-content {
    transform: scale(1);
}

/* Header modal */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--glass-bg-light);
}

.gallery-title h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.gallery-title p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.gallery-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.gallery-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    transform: scale(1.1);
}

/* Container image principale */
.gallery-main-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #000;
    height: 45vh;
    min-height: 300px;
}

.gallery-main-image-container {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Navigation arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: var(--dynasty-primary);
    transition: var(--transition-fast);
    z-index: 10;
    box-shadow: var(--shadow-medium);
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

/* Miniatures */
.gallery-thumbnails {
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
    background: var(--glass-bg-light);
}

.gallery-thumbnails-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
}

.gallery-thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails-container::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

.gallery-thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--dynasty-accent);
    border-radius: 3px;
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    position: relative;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-fast);
}

.gallery-thumbnail:hover {
    border-color: var(--dynasty-accent);
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: var(--dynasty-luxury-gold);
    box-shadow: 0 0 0 1px var(--dynasty-luxury-gold);
}

.gallery-thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 175, 55, 0.2);
}

/* Informations image */
.gallery-info {
    padding: 32px 32px;
    border-top: 1px solid var(--border-color);
    background: var(--glass-bg);
    min-height: 120px;
}

.gallery-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.gallery-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* =====================================================
 * MODAL LÉGALE
 * ===================================================== */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: var(--blur-heavy);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.legal-modal.legal-modal-open {
    opacity: 1;
}

.legal-modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    backdrop-filter: var(--blur-heavy);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.legal-modal-open .legal-modal-content {
    transform: scale(1);
}

/* Header modal légale */
.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--glass-bg-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.legal-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.legal-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.legal-modal-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    transform: scale(1.1);
}

/* Contenu de la modal */
.legal-modal-body {
    padding: 0;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.legal-modal-body::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: var(--dynasty-accent);
    border-radius: 4px;
}

/* Contenu légal */
.legal-content {
    padding: 32px;
    line-height: 1.7;
}

.legal-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 32px 0;
    color: var(--text-primary);
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--dynasty-accent);
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--dynasty-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: var(--text-primary);
}

.legal-section p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    text-align: justify;
}

.legal-section ul,
.legal-section ol {
    margin: 12px 0 12px 24px;
    color: var(--text-secondary);
}

.legal-section li {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-info {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.legal-info p {
    margin: 8px 0;
    font-size: 14px;
}

.legal-info strong {
    color: var(--dynasty-primary);
    font-weight: 600;
}

/* Liens dans le footer */
.legal-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.legal-link:hover {
    color: var(--dynasty-accent);
    text-decoration: underline;
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--dynasty-accent);
    transition: width 0.3s ease;
}

.legal-link:hover::after {
    width: 100%;
}

/* =====================================================
 * RESPONSIVE DESIGN
 * ===================================================== */
@media (max-width: 768px) {
    .reservation-section {
        padding: 60px 20px;
        min-height: auto;
    }

    .reservation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 32px 0;
    }

    .feature-card {
        padding: 24px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }

    .visual-container {
        height: 400px;
    }

    .main-image {
        height: 100%;
    }

    .overlay-card {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 20px;
    }

    .stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Galerie responsive */
    .gallery-btn {
        top: 12px;
        right: 12px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .gallery-text {
        display: none;
    }
    
    .gallery-modal-content {
        width: 98%;
        margin: 1%;
        max-height: 95vh;
    }
    
    .gallery-header {
        padding: 16px 20px;
    }
    
    .gallery-title h3 {
        font-size: 18px;
    }
    
    .gallery-main-container {
        height: 40vh;
        min-height: 250px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .gallery-prev {
        left: 8px;
    }
    
    .gallery-next {
        right: 8px;
    }
    
    .gallery-thumbnails,
    .gallery-info {
        padding: 16px 20px;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 45px;
    }

    /* Modal légale responsive */
    .legal-modal {
        padding: 10px;
    }
    
    .legal-modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .legal-modal-header {
        padding: 20px 24px;
    }
    
    .legal-modal-title {
        font-size: 20px;
    }
    
    .legal-modal-close {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }
    
    .legal-content {
        padding: 24px 20px;
    }
    
    .legal-content h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .legal-section h3 {
        font-size: 18px;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 14px;
    }
    
    .legal-info {
        padding: 16px;
        margin: 12px 0;
    }
}

@media (max-width: 480px) {
    .gallery-thumbnails-container {
        gap: 8px;
    }
    
    .gallery-thumbnail {
        width: 50px;
        height: 38px;
    }
    
    .gallery-info h4 {
        font-size: 16px;
    }
    
    .gallery-info p {
        font-size: 13px;
    }

    .legal-content {
        padding: 20px 16px;
    }
    
    .legal-content h2 {
        font-size: 22px;
    }
    
    .legal-section h3 {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

