/**
 * ========================================
 * 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);
}

/* ========== BARRE DE NAVIGATION STICKY ========== */
.modal-nav-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    gap: 6px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-nav-bar::-webkit-scrollbar {
    display: none;
}

.modal-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.modal-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.12);
}

.modal-nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.modal-nav-item i {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .modal-nav-bar {
        padding: 8px 12px;
        gap: 4px;
    }

    .modal-nav-item {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    .modal-nav-item span {
        display: none;
    }

    .modal-nav-item i {
        font-size: 0.9rem;
    }
}

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

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

.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;
}

/* Style special pour Infos legales */
.action-card.action-card-legal {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.15) 0%, rgba(71, 85, 105, 0.15) 100%);
    border-color: rgba(100, 116, 139, 0.3);
}

.action-card.action-card-legal:hover {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.25) 0%, rgba(71, 85, 105, 0.25) 100%);
    border-color: rgba(100, 116, 139, 0.5);
}

.action-card.action-card-legal .action-icon i {
    color: #94a3b8;
}

/* ========== 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;
}

/* ========== INFOS LEGALES ========== */
.infos-legales-section {
    padding: 25px 40px;
}

.infos-legales-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.infos-legales-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(100, 116, 139, 0.06);
    border: 1px solid rgba(100, 116, 139, 0.1);
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.infos-legales-link:hover {
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.2);
    color: #e2e8f0;
    transform: translateY(-1px);
}

.infos-legales-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(100, 116, 139, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.infos-legales-icon i {
    font-size: 0.85rem;
    color: #64748b;
}

.infos-legales-link:hover .infos-legales-icon {
    background: rgba(100, 116, 139, 0.2);
}

.infos-legales-link:hover .infos-legales-icon i {
    color: #94a3b8;
}

.infos-legales-arrow {
    font-size: 0.7rem;
    margin-left: auto;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.infos-legales-link:hover .infos-legales-arrow {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .infos-legales-section {
        padding: 20px;
    }

    .infos-legales-grid {
        flex-direction: column;
    }

    .infos-legales-link {
        max-width: 100%;
    }
}

/* ========== 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: 11500; /* En-dessous de immersive-gallery-modal (12000) pour eviter conflit */
    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: 12000;
    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;
    }
}

/* ========== FICHE TECHNIQUE GROUPEE (Phase 4) ========== */

.specs-grouped {
    display: grid;
    gap: 18px;
}

.specs-group {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.specs-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--group-color) 12%, transparent), color-mix(in srgb, var(--group-color) 4%, transparent));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.specs-group-header i {
    color: var(--group-color);
    font-size: 1rem;
}

.specs-group-header h4 {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.specs-group-grid {
    padding: 10px 18px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row-label {
    color: #94a3b8;
    font-size: 0.88rem;
}

.spec-row-value {
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 768px) {
    .specs-group-header {
        padding: 12px 14px;
    }

    .specs-group-grid {
        padding: 8px 14px;
    }

    .spec-row {
        padding: 8px 0;
    }
}

/* ========== PPR ENHANCED (Phase 6) ========== */

.ppr-grid-enhanced {
    display: grid;
    gap: 15px;
}

.ppr-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ppr-card-safe {
    display: flex;
    align-items: center;
    gap: 15px;
    border-color: rgba(16, 185, 129, 0.3);
}

.ppr-card-safe .ppr-card-content h4 {
    color: #10b981;
    margin: 0 0 5px;
    font-size: 1.05rem;
}

.ppr-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.ppr-card-header h4 {
    color: #e2e8f0;
    margin: 0;
    font-size: 1rem;
}

.ppr-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ppr-explanation {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.ppr-prescriptions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ppr-prescriptions i {
    color: #64748b;
    margin-top: 2px;
}

.ppr-prescriptions span {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ppr-info-link {
    text-align: center;
    padding-top: 10px;
}

.ppr-info-link a {
    color: #60a5fa;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.ppr-info-link a:hover {
    color: #93bbfc;
    text-decoration: underline;
}

/* ========== ASSAINISSEMENT TYPE TEXTE ========== */

.viabilisation-item-wide {
    grid-column: span 2;
    flex-direction: row;
    justify-content: flex-start;
}

.viabilisation-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.viabilisation-detail span:first-child {
    color: white;
    font-size: 0.9rem;
}

.viabilisation-type {
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    font-style: italic;
}

.viabilisation-item-wide.available .viabilisation-type {
    color: #6ee7b7 !important;
}

.viabilisation-item-wide.unavailable .viabilisation-type {
    color: #fca5a5 !important;
}

/* ========== SECTION PLU (Plan Local d'Urbanisme) ========== */

.plu-section-content {
    background: rgba(129, 140, 248, 0.04);
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: 16px;
    padding: 20px;
}

.plu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.plu-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(129, 140, 248, 0.12);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.plu-card:hover {
    border-color: rgba(129, 140, 248, 0.35);
    transform: translateY(-2px);
}

.plu-card-zone {
    border-color: rgba(129, 140, 248, 0.3);
    background: rgba(129, 140, 248, 0.08);
}

.plu-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(129, 140, 248, 0.15);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1rem;
}

.plu-card-zone .plu-card-icon {
    background: rgba(129, 140, 248, 0.25);
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.plu-card-label {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.plu-card-value {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.plu-card-zone .plu-card-value {
    font-size: 1.2rem;
    color: #a5b4fc;
}

.plu-description {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(129, 140, 248, 0.06);
    border-radius: 10px;
    margin-bottom: 16px;
}

.plu-description i {
    color: #818cf8;
    margin-top: 3px;
    flex-shrink: 0;
}

.plu-description p {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.plu-implantation {
    margin-bottom: 14px;
}

.plu-implantation-title {
    color: #a5b4fc;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plu-implantation-title i {
    font-size: 0.85rem;
}

.plu-implantation-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plu-implantation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(129, 140, 248, 0.08);
}

.plu-implantation-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(129, 140, 248, 0.12);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.plu-implantation-label {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-bottom: 2px;
}

.plu-implantation-value {
    color: #e2e8f0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.plu-pdf-link {
    text-align: center;
    padding-top: 8px;
}

.plu-pdf-link a {
    color: #818cf8;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 8px;
    transition: all 0.2s;
}

.plu-pdf-link a:hover {
    background: rgba(129, 140, 248, 0.18);
    border-color: rgba(129, 140, 248, 0.4);
    color: #a5b4fc;
}

/* PLU Responsive */
@media (max-width: 768px) {
    .plu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .plu-card {
        padding: 12px;
    }

    .plu-section-content {
        padding: 14px;
    }

    .viabilisation-item-wide {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .plu-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== CALCULATRICE FINANCIERE (Phase 1) ========== */

.modal-section.calc-section,
.modal-section.calc-section:nth-child(odd),
.modal-section.calc-section:nth-child(even) {
    background: linear-gradient(145deg, #fdf2f8, #faf5ff);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 27, 141, 0.12);
}

.modal-section.calc-section .section-title {
    color: #1e293b;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #be185d, #FF1B8D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calc-price-display {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 27, 141, 0.08), rgba(255, 27, 141, 0.02));
    border: 1px solid rgba(255, 27, 141, 0.15);
    border-radius: 16px;
}

.calc-price-label {
    display: block;
    font-size: 0.8rem;
    color: #be185d;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.calc-price-value {
    font-size: 2rem;
    font-weight: 900;
    color: #be185d;
}

.calc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.calc-inputs {
    display: grid;
    gap: 18px;
}

.calc-input-group label {
    display: block;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.calc-input-group label span {
    color: #be185d;
}

.calc-input-wrapper {
    position: relative;
}

.calc-input-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.calc-input-wrapper input:focus {
    border-color: #FF1B8D;
    box-shadow: 0 0 0 3px rgba(255, 27, 141, 0.1);
}

.calc-input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 600;
}

.calc-quick-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.calc-quick-btns button {
    padding: 8px 10px;
    background: rgba(255, 27, 141, 0.08);
    border: 1px solid rgba(255, 27, 141, 0.2);
    border-radius: 8px;
    color: #be185d;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.calc-quick-btns button:hover {
    background: rgba(255, 27, 141, 0.15);
}

.calc-slider {
    width: 100%;
    accent-color: #FF1B8D;
    cursor: pointer;
}

.calc-range-labels {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.7rem;
    margin-top: 3px;
}

.calc-results {
    display: grid;
    gap: 12px;
    align-content: start;
}

.calc-result-hero {
    background: linear-gradient(135deg, rgba(255, 27, 141, 0.1), rgba(255, 27, 141, 0.03));
    border: 2px solid rgba(255, 27, 141, 0.25);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
}

.calc-result-hero .calc-result-label {
    color: #be185d;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.calc-result-hero .calc-result-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #be185d;
    line-height: 1;
}

.calc-result-hero .calc-result-sub {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 5px;
}

.calc-result-card {
    background: rgba(255, 27, 141, 0.04);
    border: 1px solid rgba(255, 27, 141, 0.12);
    border-radius: 14px;
    padding: 16px;
}

.calc-result-card .calc-result-label {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.calc-result-card .calc-result-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #be185d;
}

.calc-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 27, 141, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 27, 141, 0.1);
}

.calc-disclaimer i {
    color: #be185d;
    flex-shrink: 0;
}

.calc-disclaimer span {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ========== COURTIER CTA ========== */
.calc-courtier {
    text-align: center;
    margin-top: 20px;
    padding: 24px 20px;
    background: linear-gradient(145deg, #fffbeb, #fef3c7);
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.calc-courtier-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.calc-courtier-icon i {
    font-size: 1.3rem;
    color: #d97706;
}

.calc-courtier-text {
    font-size: 0.95rem;
    color: #44403c;
    font-weight: 500;
    margin: 0 0 16px;
    line-height: 1.5;
}

.calc-courtier-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.calc-courtier-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

/* ========== ESTIMATION CTA ========== */
.calc-estimation {
    text-align: center;
    margin-top: 16px;
    padding: 24px 20px;
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.calc-estimation-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.calc-estimation-icon i {
    font-size: 1.3rem;
    color: #059669;
}

.calc-estimation-text {
    font-size: 0.95rem;
    color: #1e3a2f;
    font-weight: 500;
    margin: 0 0 16px;
    line-height: 1.5;
}

.calc-estimation-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.calc-estimation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* ========== FRAIS DE NOTAIRE ========== */
.calc-notaire-display {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.calc-notaire-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.calc-notaire-item {
    text-align: center;
}

.calc-notaire-item.highlight {
    padding: 12px;
    background: rgba(255, 27, 141, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 27, 141, 0.15);
}

.calc-notaire-label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.calc-notaire-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #2563eb;
}

.calc-notaire-item.highlight .calc-notaire-value {
    color: #be185d;
}

.calc-notaire-rate {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

.calc-notaire-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 10px;
}

.calc-notaire-info i {
    color: #2563eb;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.calc-notaire-info span {
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.4;
}

.calc-result-total {
    border: 1px solid rgba(255, 27, 141, 0.2) !important;
    background: rgba(255, 27, 141, 0.04) !important;
}

@media (max-width: 480px) {
    .calc-notaire-row {
        grid-template-columns: 1fr;
    }
}

/* ========== GUIDE ACHETEUR CTA ========== */
.calc-guide {
    text-align: center;
    margin-top: 16px;
    padding: 24px 20px;
    background: linear-gradient(145deg, #eef2ff, #e0e7ff);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.calc-guide-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.calc-guide-icon i {
    font-size: 1.3rem;
    color: #4f46e5;
}

.calc-guide-text {
    font-size: 0.95rem;
    color: #312e81;
    font-weight: 500;
    margin: 0 0 16px;
    line-height: 1.5;
}

.calc-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.calc-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Calculator fullscreen modal */
.calculator-fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calculator-fullscreen-modal.active {
    opacity: 1;
}

.calculator-fullscreen-content {
    background: #ffffff;
    border-radius: 24px;
    max-width: 950px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 27, 141, 0.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.calculator-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.calculator-close-btn:hover {
    color: #be185d;
}

.calculator-fullscreen-header {
    text-align: center;
    padding: 30px 20px 20px;
    border-bottom: 1px solid rgba(255, 27, 141, 0.1);
}

.calculator-fullscreen-header i {
    color: #be185d;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.calculator-fullscreen-header h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin: 5px 0;
}

.calculator-fullscreen-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.calculator-fullscreen-body {
    padding: 20px;
}

.calculator-fullscreen-body .calc-section {
    border: none;
    background: none;
}

/* ========== PIECES CAROUSEL (Phase 2) ========== */

.pieces-section {
    overflow: hidden;
}

.pieces-carousel-container {
    position: relative;
    padding: 0 40px;
}

.pieces-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 15px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.pieces-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-nav-btn.prev {
    left: 0;
}

.carousel-nav-btn.next {
    right: 0;
}

.piece-card {
    flex: 0 0 240px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
    border: 1px solid rgba(59, 130, 246, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.piece-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.piece-card-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
}

.piece-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.piece-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    color: #60a5fa;
    font-size: 2rem;
}

.piece-photo-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.piece-card-info {
    padding: 14px;
}

.piece-card-title {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.piece-card-title i {
    color: #60a5fa;
    font-size: 0.85rem;
}

.piece-card-surface {
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.piece-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.piece-feature-tag {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Gallery title (for piece galleries) */
.immersive-gallery-title {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.immersive-gallery-title i {
    color: #60a5fa;
}

/* ========== COPROPRIETE SECTION ========== */

.copro-section {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--modal-radius, 16px);
    margin: 20px 40px;
    padding: 30px;
}

.copro-section .section-header {
    margin-bottom: 20px;
}

.copro-section .section-icon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
}

.copro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.copro-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.copro-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
}

.copro-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.copro-card-content {
    flex: 1;
    min-width: 0;
}

.copro-card-label {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.copro-card-value {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 700;
}

.copro-card-sub {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 2px;
}

.copro-card-disclaimer {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 6px;
    font-style: italic;
}

.copro-card-disclaimer i {
    color: #f59e0b;
    font-size: 0.7rem;
}

/* Procedure alert (danger) */
.copro-procedure-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    margin-top: 5px;
}

.copro-procedure-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.copro-procedure-content h4 {
    color: #ef4444;
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 700;
}

.copro-procedure-content p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* No procedure (safe badge) */
.copro-no-procedure {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    margin-top: 5px;
}

.copro-no-procedure span {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Copro badge in header */
.badge-copro {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #a78bfa !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

/* ========== ATOUTS ENRICHIS (Phase 3) ========== */

.atouts-title {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 700;
    margin: 20px 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atouts-title i {
    color: #f59e0b;
}

.atouts-rich-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.atout-rich-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.atout-rich-card:hover {
    transform: scale(1.05);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.atout-rich-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.atout-rich-title {
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}

.atout-rich-badge {
    display: inline-block;
    margin-top: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Atout detail overlay */
.atout-detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.atout-detail-overlay.active {
    opacity: 1;
}

.atout-detail-content {
    background: linear-gradient(135deg, #0a0e27, #1e293b);
    border-radius: 24px;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid rgba(245, 158, 11, 0.25);
    animation: atoutModalIn 0.4s cubic-bezier(0.2, 1, 0.4, 1.1);
}

@keyframes atoutModalIn {
    from { opacity: 0; transform: scale(0.85) translateY(50px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.atout-detail-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.atout-detail-close:hover {
    color: #f59e0b;
}

.atout-detail-body {
    padding: 40px 30px;
    text-align: center;
}

.atout-detail-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.atout-detail-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.atout-detail-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 5px 16px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.atout-detail-description {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.atout-detail-benefits {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    text-align: left;
}

.atout-detail-benefits h4 {
    color: #f59e0b;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 15px;
}

.atout-detail-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.atout-detail-benefits li {
    color: #e2e8f0;
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.atout-detail-benefits li:last-child {
    border-bottom: none;
}

.atout-detail-benefits li i {
    color: #10b981;
    flex-shrink: 0;
}

/* ========== RESPONSIVE - Nouvelles sections ========== */

@media (max-width: 768px) {
    .calc-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .modal-section.calc-section,
    .modal-section.calc-section:nth-child(odd),
    .modal-section.calc-section:nth-child(even) {
        padding: 18px;
    }

    .calc-price-display {
        padding: 12px;
    }

    .calc-price-value {
        font-size: 1.5rem;
    }

    .calc-result-hero {
        padding: 16px;
    }

    .calc-result-hero .calc-result-value {
        font-size: 1.6rem;
    }

    .calc-result-card {
        padding: 12px;
    }

    .calc-courtier,
    .calc-estimation,
    .calc-guide {
        padding: 18px 16px;
    }

    .calc-courtier-btn,
    .calc-estimation-btn,
    .calc-guide-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .calc-notaire-display {
        padding: 12px;
    }

    .pieces-carousel-container {
        padding: 0 30px;
    }

    .piece-card {
        flex: 0 0 200px;
    }

    .piece-card-image {
        height: 110px;
    }

    .atouts-rich-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .atout-rich-card {
        padding: 14px 8px;
    }

    .atout-rich-icon {
        font-size: 1.2rem;
    }

    .atout-rich-title {
        font-size: 0.75rem;
    }

    .atout-detail-content {
        width: 95%;
    }

    .atout-detail-body {
        padding: 30px 20px;
    }

    .calculator-fullscreen-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .ppr-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Copropriete responsive */
    .copro-section {
        margin: 10px 15px;
        padding: 20px;
    }

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

    .copro-card {
        padding: 14px;
    }

    .copro-procedure-alert {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .piece-card {
        flex: 0 0 180px;
    }

    .pieces-carousel-container {
        padding: 0 25px;
    }

    /* Calculatrice petit ecran */
    .modal-section.calc-section,
    .modal-section.calc-section:nth-child(odd),
    .modal-section.calc-section:nth-child(even) {
        padding: 14px;
        border-radius: 14px;
    }

    .calc-price-value {
        font-size: 1.3rem;
    }

    .calc-result-hero .calc-result-value {
        font-size: 1.4rem;
    }

    .calc-result-card .calc-result-value {
        font-size: 1.1rem;
    }

    .calc-input-wrapper input {
        padding: 10px 40px 10px 12px;
        font-size: 0.9rem;
    }

    .calc-quick-btns {
        gap: 6px;
    }

    .calc-quick-btns button {
        padding: 7px 6px;
        font-size: 0.75rem;
    }

    .calc-courtier,
    .calc-estimation,
    .calc-guide {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .calc-courtier-icon,
    .calc-estimation-icon,
    .calc-guide-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .calc-courtier-text,
    .calc-estimation-text,
    .calc-guide-text {
        font-size: 0.88rem;
    }

    .calc-courtier-btn,
    .calc-estimation-btn,
    .calc-guide-btn {
        padding: 10px 16px;
        font-size: 0.82rem;
    }

    .calc-notaire-display {
        padding: 10px;
        border-radius: 10px;
    }

    .calc-notaire-value {
        font-size: 1.1rem;
    }

    .calc-disclaimer {
        padding: 10px 12px;
    }

    .calc-disclaimer span {
        font-size: 0.78rem;
    }

    .calculator-fullscreen-header {
        padding: 20px 16px 16px;
    }

    .calculator-fullscreen-header h2 {
        font-size: 1.2rem;
    }

    .calculator-fullscreen-body {
        padding: 14px;
    }
}
