/**
 * ========================================
 * CATALOGUE CLIENT - MODAL STYLES
 * ========================================
 * Styles separes pour le modal immobilier
 * Design moderne et immersif
 * ========================================
 */

/* ========== VARIABLES MODAL - CHARTE GRAPHIQUE AGENCE (Rose/Violet) ========== */
:root {
    --modal-bg: rgba(15, 23, 42, 0.95);
    --modal-content-bg: #ffffff;
    --modal-glass: rgba(255, 27, 141, 0.05);
    --modal-glass-border: rgba(255, 27, 141, 0.15);
    --modal-accent: #FF1B8D;
    --modal-accent-light: #ff4da6;
    --modal-accent-gradient: linear-gradient(135deg, #FF1B8D 0%, #7B2CBF 100%);
    --modal-secondary: #7B2CBF;
    --modal-text: #1f2937;
    --modal-text-light: #ffffff;
    --modal-text-muted: #6b7280;
    --modal-radius: 16px;
    --modal-radius-sm: 12px;
    --modal-shadow: 0 25px 80px rgba(255, 27, 141, 0.2);
    --modal-success: #10b981;
    --modal-warning: #f59e0b;
    --modal-dark-bg: #0F172A;
}

/* ========== MODAL CONTAINER ========== */
.property-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ========== MODAL WRAPPER ========== */
.modal-wrapper {
    position: relative;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    z-index: 10001;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-modal.active .modal-wrapper {
    transform: scale(1) translateY(0);
}

/* ========== MODAL CLOSE BUTTON ========== */
.modal-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ========== NAVIGATION ARROWS ========== */
.modal-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-nav-btn.prev {
    left: 20px;
}

.modal-nav-btn.next {
    right: 20px;
}

.modal-nav-btn:hover {
    background: var(--modal-accent);
    border-color: var(--modal-accent);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

/* ========== MODAL CONTENT ========== */
.modal-content {
    background: var(--modal-content-bg);
    border-radius: var(--modal-radius);
    overflow: hidden;
    max-height: 95vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--modal-accent) transparent;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--modal-accent);
    border-radius: 3px;
}

/* ========== MODAL HEADER - GALLERY HERO ========== */
.modal-gallery-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.modal-gallery-swiper {
    width: 100%;
    height: 100%;
}

.modal-gallery-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.modal-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.5s ease;
}

.modal-gallery-swiper .swiper-slide:hover img {
    transform: scale(1.02);
}

/* Gallery overlay gradient */
.modal-gallery-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--modal-content-bg), transparent);
    pointer-events: none;
    z-index: 10;
}

/* Gallery counter */
.gallery-counter {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-counter i {
    color: var(--modal-accent);
}

/* Gallery expand button */
.gallery-expand-btn {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.gallery-expand-btn:hover {
    background: var(--modal-accent);
    border-color: var(--modal-accent);
}

/* Swiper navigation */
.modal-gallery-swiper .swiper-button-prev,
.modal-gallery-swiper .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.modal-gallery-swiper .swiper-button-prev::after,
.modal-gallery-swiper .swiper-button-next::after {
    font-size: 1.2rem;
}

.modal-gallery-swiper .swiper-button-prev:hover,
.modal-gallery-swiper .swiper-button-next:hover {
    background: var(--modal-accent);
}

/* Swiper pagination */
.modal-gallery-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.modal-gallery-swiper .swiper-pagination-bullet-active {
    background: var(--modal-accent);
    width: 24px;
    border-radius: 4px;
}

/* ========== PROPERTY INFO HEADER ========== */
.modal-property-header {
    position: relative;
    margin-top: -80px;
    z-index: 20;
    padding: 0 40px;
}

.property-header-card {
    background: var(--modal-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--modal-glass-border);
    border-radius: var(--modal-radius);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.property-header-left {
    flex: 1;
    min-width: 300px;
}

.property-badge-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.property-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-type {
    background: linear-gradient(135deg, var(--modal-accent), var(--modal-accent-light));
    color: #000;
}

.badge-status {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.option {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-status.compromis {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.badge-new {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.property-title-modal {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.3;
}

.property-location-modal {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--modal-text-muted);
    font-size: 1rem;
}

.property-location-modal i {
    color: var(--modal-accent);
}

.property-header-right {
    text-align: right;
}

.property-price-modal {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--modal-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.property-ref {
    color: var(--modal-text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ========== QUICK STATS BAR ========== */
.modal-quick-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 40px;
    flex-wrap: wrap;
}

.quick-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quick-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--modal-glass);
    border: 1px solid var(--modal-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--modal-accent);
}

.quick-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.quick-stat-label {
    font-size: 0.8rem;
    color: var(--modal-text-muted);
}

/* ========== SECTION 2 - ACTIONS IMMERSIVES ========== */
.modal-actions-section {
    padding: 20px 40px 40px;
}

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

.action-card {
    position: relative;
    background: var(--modal-glass);
    border: 1px solid var(--modal-glass-border);
    border-radius: var(--modal-radius-sm);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--modal-accent), var(--modal-accent-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card:hover {
    background: rgba(200, 165, 91, 0.1);
    border-color: var(--modal-accent);
    transform: translateY(-5px);
}

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

.action-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--modal-accent), var(--modal-accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #000;
    transition: transform 0.3s ease;
}

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

.action-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.action-subtitle {
    font-size: 0.85rem;
    color: var(--modal-text-muted);
}

.action-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.action-card.disabled:hover {
    transform: none;
    background: var(--modal-glass);
    border-color: var(--modal-glass-border);
}

/* Style spécial pour Video Buzz */
.action-card.video-buzz:not(.disabled) {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.15) 0%, rgba(255, 149, 0, 0.15) 100%);
    border-color: rgba(255, 69, 58, 0.3);
}

.action-card.video-buzz:not(.disabled):hover {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.25) 0%, rgba(255, 149, 0, 0.25) 100%);
    border-color: rgba(255, 69, 58, 0.5);
}

.action-card.video-buzz:not(.disabled) .action-icon i {
    color: #ff6b35;
}

/* Style spécial pour Avant/Après */
.action-card.avant-apres:not(.disabled) {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.15) 0%, rgba(175, 82, 222, 0.15) 100%);
    border-color: rgba(88, 86, 214, 0.3);
}

.action-card.avant-apres:not(.disabled):hover {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.25) 0%, rgba(175, 82, 222, 0.25) 100%);
    border-color: rgba(88, 86, 214, 0.5);
}

.action-card.avant-apres:not(.disabled) .action-icon i {
    color: #af52de;
}

/* ========== SECTION 3 - FICHE TECHNIQUE ========== */
.modal-section {
    padding: 40px;
    border-top: 1px solid var(--modal-glass-border);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.section-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--modal-accent), var(--modal-accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #000;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Fiche technique grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--modal-glass);
    border: 1px solid var(--modal-glass-border);
    border-radius: var(--modal-radius-sm);
    transition: all 0.3s ease;
}

.spec-item:hover {
    border-color: var(--modal-accent);
    background: rgba(200, 165, 91, 0.05);
}

.spec-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(200, 165, 91, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--modal-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.spec-content {
    flex: 1;
}

.spec-label {
    font-size: 0.85rem;
    color: var(--modal-text-muted);
    margin-bottom: 4px;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

/* Equipements */
.equipements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.equipement-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
}

.equipement-tag i {
    font-size: 1rem;
}

/* ========== SECTION LOCALISATION ========== */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--modal-glass);
    border: 1px solid var(--modal-glass-border);
    border-radius: var(--modal-radius-sm);
}

.location-item i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(200, 165, 91, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--modal-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.location-item-content h4 {
    font-size: 0.85rem;
    color: var(--modal-text-muted);
    margin-bottom: 5px;
    font-weight: 400;
}

.location-item-content p {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.location-map {
    border-radius: var(--modal-radius-sm);
    overflow: hidden;
    background: var(--modal-glass);
    border: 1px solid var(--modal-glass-border);
    min-height: 300px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
}

.location-map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--modal-text-muted);
}

.location-map-placeholder i {
    font-size: 3rem;
    color: var(--modal-accent);
}

/* Notice carte (vue generale) */
.location-map-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 27, 141, 0.1);
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--modal-text-muted);
}

.location-map-notice i {
    color: var(--modal-accent);
    font-size: 0.9rem;
}

/* Points d'interet */
.poi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.poi-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--modal-glass);
    border: 1px solid var(--modal-glass-border);
    border-radius: var(--modal-radius-sm);
}

.poi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1rem;
}

.poi-content {
    flex: 1;
}

.poi-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.poi-distance {
    font-size: 0.8rem;
    color: var(--modal-text-muted);
}

/* ========== SECTION DESCRIPTION ========== */
.description-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--modal-text-muted);
}

.description-content p {
    margin-bottom: 15px;
}

/* Atouts */
.atouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.atout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(200, 165, 91, 0.08);
    border: 1px solid rgba(200, 165, 91, 0.2);
    border-radius: var(--modal-radius-sm);
}

.atout-item i {
    color: var(--modal-accent);
    font-size: 1.2rem;
}

.atout-item span {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========== SECTION COMMERCIAL ========== */
.commercial-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: var(--modal-glass);
    border: 1px solid var(--modal-glass-border);
    border-radius: var(--modal-radius);
}

.commercial-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--modal-accent);
    flex-shrink: 0;
}

.commercial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commercial-info {
    flex: 1;
}

.commercial-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.commercial-role {
    font-size: 0.9rem;
    color: var(--modal-accent);
    margin-bottom: 15px;
}

.commercial-contact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.commercial-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(200, 165, 91, 0.1);
    border: 1px solid rgba(200, 165, 91, 0.3);
    border-radius: 30px;
    color: var(--modal-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.commercial-contact a:hover {
    background: var(--modal-accent);
    color: #000;
}

/* Tagline commercial (remplace contact direct) */
.commercial-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(200, 165, 91, 0.15), rgba(200, 165, 91, 0.05));
    border: 1px solid rgba(200, 165, 91, 0.2);
    border-radius: 30px;
    color: var(--modal-accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.commercial-tagline i {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========== CTA FOOTER ========== */
.modal-cta-footer {
    padding: 30px 40px;
    background: linear-gradient(to top, rgba(255, 27, 141, 0.08), transparent);
    border-top: 1px solid var(--modal-glass-border);
    text-align: center;
}

.cta-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: var(--modal-accent-gradient);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(255, 27, 141, 0.3);
}

.cta-main-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 27, 141, 0.4);
}

.cta-main-btn i {
    font-size: 1.4rem;
}

.cta-primary-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.cta-brochure-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #7B2CBF 0%, #9333EA 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(123, 44, 191, 0.3);
}

.cta-brochure-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(123, 44, 191, 0.45);
}

.cta-brochure-btn i {
    font-size: 1.2rem;
}

/* Bouton Fiche Premium - doré avec effet pulsation et lueurs */
.cta-fiche-premium-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #b8860b 0%, #daa520 25%, #ffd700 50%, #daa520 75%, #b8860b 100%);
    background-size: 300% 300%;
    animation: cta-premium-shimmer 3s ease-in-out infinite, cta-premium-pulse 2s ease-in-out infinite;
    border: none;
    border-radius: 50px;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
    box-shadow:
        0 0 25px rgba(255, 215, 0, 0.5),
        0 0 50px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta-fiche-premium-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    animation: cta-premium-shine 4s linear infinite;
    pointer-events: none;
}

@keyframes cta-premium-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes cta-premium-pulse {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(255, 215, 0, 0.5),
            0 0 50px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow:
            0 0 40px rgba(255, 215, 0, 0.7),
            0 0 80px rgba(255, 215, 0, 0.5),
            0 0 120px rgba(255, 215, 0, 0.3);
    }
}

@keyframes cta-premium-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.cta-fiche-premium-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 0 45px rgba(255, 215, 0, 0.8),
        0 0 90px rgba(255, 215, 0, 0.6),
        0 0 140px rgba(255, 215, 0, 0.4);
}

.cta-fiche-premium-btn i {
    font-size: 1.3rem;
    color: #1a1a2e;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.9));
}

/* Legacy - garder pour compatibilité */
.cta-brochure-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #c8a55b 0%, #f0d78c 50%, #c8a55b 100%);
    background-size: 200% 200%;
    animation: shimmer-gold 3s ease-in-out infinite;
    border: none;
    border-radius: 50px;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(200, 165, 91, 0.4);
}

@keyframes shimmer-gold {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-brochure-premium-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(200, 165, 91, 0.6);
}

.cta-brochure-premium-btn i {
    font-size: 1.2rem;
    color: #1a1a2e;
}

.cta-secondary {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cta-secondary-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--modal-glass);
    border: 1px solid var(--modal-glass-border);
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-secondary-btn:hover {
    border-color: var(--modal-accent);
    color: var(--modal-accent);
}

/* ========== VIDEO MODAL ========== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.video-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    z-index: 11001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-wrapper {
    transform: scale(1);
}

.video-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-close:hover {
    background: var(--modal-accent);
}

.video-player {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== FULLSCREEN GALLERY ========== */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12000;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fullscreen-gallery.active {
    opacity: 1;
    visibility: visible;
}

.fs-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 12001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fs-close:hover {
    background: var(--modal-accent);
}

.fs-counter {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 25px;
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    z-index: 12001;
}

.fs-swiper {
    width: 100%;
    height: 100%;
}

.fs-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-swiper .swiper-slide img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
}

.fs-swiper .swiper-button-prev,
.fs-swiper .swiper-button-next {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.fs-swiper .swiper-button-prev::after,
.fs-swiper .swiper-button-next::after {
    font-size: 1.5rem;
}

/* ========== TERRAIN SPECIFIC - BROCHURE ========== */
.terrain-section {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--modal-radius);
    margin: 20px 40px;
    padding: 30px;
}

.terrain-section .section-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.viabilisation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.viabilisation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--modal-radius-sm);
}

.viabilisation-item.available {
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.viabilisation-item.available i {
    color: #10b981;
}

.viabilisation-item.unavailable {
    border: 1px solid rgba(239, 68, 68, 0.3);
    opacity: 0.6;
}

.viabilisation-item.unavailable i {
    color: #ef4444;
}

.viabilisation-item span {
    color: white;
    font-size: 0.9rem;
}

/* PPR Section */
.ppr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ppr-item {
    padding: 20px;
    background: var(--modal-glass);
    border: 1px solid var(--modal-glass-border);
    border-radius: var(--modal-radius-sm);
}

.ppr-item h4 {
    font-size: 0.9rem;
    color: var(--modal-text-muted);
    margin-bottom: 10px;
}

.ppr-level {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ppr-level.low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.ppr-level.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.ppr-level.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ========== LOADING STATE ========== */
.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 20px;
}

.modal-loading .loader-orbital {
    width: 80px;
    height: 80px;
}

.modal-loading p {
    color: var(--modal-text-muted);
    font-size: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .modal-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .modal-nav-btn.prev {
        left: 10px;
    }

    .modal-nav-btn.next {
        right: 10px;
    }

    .modal-gallery-hero {
        height: 400px;
    }

    .property-header-card {
        flex-direction: column;
        text-align: center;
    }

    .property-header-left {
        text-align: center;
    }

    .property-badge-row {
        justify-content: center;
    }

    .property-header-right {
        text-align: center;
    }

    .location-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .modal-wrapper {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-content {
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modal-nav-btn {
        display: none;
    }

    .modal-gallery-hero {
        height: 300px;
    }

    .modal-property-header {
        margin-top: -60px;
        padding: 0 20px;
    }

    .property-header-card {
        padding: 20px;
    }

    .property-title-modal {
        font-size: 1.4rem;
    }

    .property-price-modal {
        font-size: 2rem;
    }

    .modal-quick-stats {
        gap: 20px;
        padding: 20px;
    }

    .quick-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .modal-actions-section,
    .modal-section {
        padding: 20px;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-card {
        padding: 20px;
    }

    .action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .action-title {
        font-size: 0.95rem;
    }

    .action-subtitle {
        display: none;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .commercial-card {
        flex-direction: column;
        text-align: center;
    }

    .commercial-contact {
        justify-content: center;
    }

    .modal-cta-footer {
        padding: 20px;
    }

    .cta-main-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 30px;
        font-size: 1.1rem;
    }

    .cta-primary-actions {
        flex-direction: column;
        gap: 12px;
    }

    .cta-brochure-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 25px;
        font-size: 1rem;
    }

    .cta-secondary {
        flex-direction: column;
    }

    .cta-secondary-btn {
        justify-content: center;
    }

    .gallery-expand-btn,
    .gallery-counter {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .gallery-expand-btn {
        left: 20px;
    }

    .gallery-counter {
        right: 20px;
    }

    .terrain-section {
        margin: 20px;
        padding: 20px;
    }

    .video-wrapper {
        width: 95%;
    }
}

/* ========== AMELIORATIONS LISIBILITE - FOND BLANC ========== */
/* Le modal a un fond blanc, donc le texte doit etre fonce */

/* Titre de section - texte fonce */
.modal-section .section-title {
    color: #1f2937;
}

/* Specs - valeurs et labels fonces */
.spec-value {
    color: #1f2937 !important;
    font-weight: 700;
}

.spec-label {
    color: #6b7280 !important;
}

/* Localisation */
.location-item-content p {
    color: #1f2937 !important;
    font-weight: 700;
}

.location-item-content h4 {
    color: #6b7280 !important;
}

.poi-name {
    color: #1f2937 !important;
}

.poi-distance {
    color: #6b7280 !important;
}

/* Description */
.description-content {
    color: #374151 !important;
}

/* Atouts */
.atout-item span {
    color: #1f2937 !important;
    font-weight: 600;
}

/* Commercial */
.commercial-name {
    color: #1f2937 !important;
}

.commercial-role {
    color: var(--modal-accent);
    font-weight: 600;
}

/* Viabilisation et PPR */
.viabilisation-item span {
    color: #1f2937 !important;
    font-weight: 500;
}

.ppr-item h4 {
    color: #6b7280 !important;
}

/* Actions */
.action-title {
    color: #1f2937 !important;
}

.action-subtitle {
    color: #6b7280 !important;
}

/* Quick stats */
.quick-stat-value {
    color: #1f2937 !important;
}

.quick-stat-label {
    color: #6b7280 !important;
}

/* Fond plus visible pour les sections - alternance legere */
.modal-section:nth-child(odd) {
    background: #f9fafb;
}

.modal-section:nth-child(even) {
    background: #ffffff;
}

/* Ameliorer les labels et valeurs des specs */
.spec-item {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.spec-item:hover {
    background: #e5e7eb;
    border-color: var(--modal-accent);
}

/* Section commercial - meilleur fond */
.commercial-card {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

/* Location items */
.location-item {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

/* POI items */
.poi-item {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

/* Action cards sur fond blanc */
.action-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.action-card:hover {
    background: #f3f4f6;
    border-color: var(--modal-accent);
}

/* Quick stats icons sur fond clair */
.quick-stat-icon {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

/* Footer CTA */
.modal-cta-footer {
    background: linear-gradient(to top, rgba(255, 27, 141, 0.08), #ffffff);
}

.cta-main-btn {
    color: #ffffff;
}

.cta-secondary-btn {
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.cta-secondary-btn:hover {
    background: #e5e7eb;
    color: var(--modal-accent);
    border-color: var(--modal-accent);
}

/* Property header card - garder le style mais ajuster le texte */
.property-title-modal {
    color: #1f2937;
}

.property-location-modal {
    color: #6b7280;
}

.property-ref {
    color: #6b7280;
}

/* Glass effect sur fond blanc */
.property-header-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
    .modal-gallery-hero {
        height: 250px;
    }

    .property-title-modal {
        font-size: 1.2rem;
    }

    .property-price-modal {
        font-size: 1.7rem;
    }

    .quick-stat-icon {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }

    .quick-stat-value {
        font-size: 1rem;
    }

    .actions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .action-card {
        padding: 15px;
    }

    .action-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .atouts-grid {
        grid-template-columns: 1fr;
    }

    .poi-grid {
        grid-template-columns: 1fr;
    }

    .commercial-photo {
        width: 80px;
        height: 80px;
    }

    .commercial-name {
        font-size: 1.1rem;
    }

    .commercial-contact a {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ========== GALERIE IMMERSIVE ========== */
.immersive-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.immersive-gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.immersive-gallery-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.immersive-gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.immersive-gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.immersive-gallery-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    height: calc(100% - 20px);
    overflow: hidden;
}

/* Photo principale */
.immersive-main-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
}

.immersive-main-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.immersive-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.immersive-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.immersive-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.immersive-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Liste des thumbnails */
.immersive-thumbnails {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

.immersive-thumbnails-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.immersive-thumbnails-header i {
    color: var(--modal-accent, #c8a55b);
}

.immersive-thumbnails-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.immersive-thumbnails-list::-webkit-scrollbar {
    width: 6px;
}

.immersive-thumbnails-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.immersive-thumbnails-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.immersive-thumbnails-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.immersive-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    flex-shrink: 0;
}

.immersive-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.immersive-thumb:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.immersive-thumb.active {
    border-color: var(--modal-accent, #c8a55b);
    box-shadow: 0 0 20px rgba(200, 165, 91, 0.4);
}

.thumb-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive pour la galerie */
@media (max-width: 900px) {
    .immersive-gallery-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .immersive-thumbnails {
        max-height: 180px;
    }

    .immersive-thumbnails-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px;
    }

    .immersive-thumb {
        flex-shrink: 0;
        width: 120px;
    }

    .immersive-thumb img {
        height: 80px;
    }
}

@media (max-width: 600px) {
    .immersive-gallery-container {
        padding: 10px;
    }

    .immersive-gallery-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .immersive-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .immersive-thumbnails {
        max-height: 150px;
    }

    .immersive-thumb {
        width: 100px;
    }

    .immersive-thumb img {
        height: 65px;
    }
}

/* ========== MODAL AVANT/APRES ========== */
.avant-apres-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avant-apres-modal.active {
    opacity: 1;
    visibility: visible;
}

.avant-apres-container {
    width: 90%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.avant-apres-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.avant-apres-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.avant-apres-header {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avant-apres-header h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0 0 5px 0;
}

.avant-apres-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.avant-apres-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.avant-apres-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.avant-apres-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avant-apres-image.avant {
    clip-path: inset(0 50% 0 0);
}

.avant-apres-image.apres {
    clip-path: inset(0 0 0 50%);
}

.avant-apres-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
}

.avant-apres-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.avant-apres-divider::after {
    content: '\f0ec';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a1a2e;
    font-size: 1.2rem;
}

.avant-apres-labels {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.avant-apres-label {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .avant-apres-slider {
        height: 350px;
    }

    .avant-apres-divider::before {
        width: 40px;
        height: 40px;
    }
}
