/* ─── V3 HERO GALLERY FULL-BLEED ────────────────────────────────────────── */
.v3-hero-gallery {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Forcer le full-bleed hors du conteneur si nécessaire */
    margin-right: calc(-50vw + 50%);
    height: 85vh;
    background: #000;
    overflow: hidden;
}

@media (min-width: 1600px) {
    .v3-hero-gallery { height: 75vh; max-height: 900px; }
}

.v3-slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.v3-slider-container::-webkit-scrollbar { display: none; }

.v3-slide {
    flex: 0 0 100%; /* L'image prend 100% de la largeur du viewport */
    scroll-snap-align: start;
    height: 100%;
    position: relative;
}

.v3-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nav Flèches */
.v3-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.v3-slider-nav:hover {
    background: var(--accent);
}

.v3-slider-prev { left: 30px; }
.v3-slider-next { right: 30px; }

/* ─── OVERLAY INFO BOX (Premium Style Clone) ────────────────────────────── */
.v3-hero-overlay-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 8%; /* Boîte ancrée à droite */
    width: 450px;
    background: #121b28; /* Opaque Premium Blue */
    color: #fff;
    border-radius: 0; /* Standard Premium */
    z-index: 20;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.v3-overlay-topbar {
    background: #0d131c;
    padding: 15px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
}

.v3-topbar-tag { color: var(--accent); }
.v3-tag-open { color: #cc0000; }

.v3-overlay-content {
    padding: 30px 40px 40px 40px;
}

.v3-overlay-title {
    font-size: 2.2rem;
    font-family: 'Playfair Display', "Times New Roman", serif; /* Serif prestige */
    font-weight: 500;
    margin: 0 0 10px;
    line-height: 1.1;
    color: #fff;
}

.v3-overlay-location {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    font-family: sans-serif;
}

.v3-overlay-price {
    font-size: 2.6rem;
    font-weight: 400; /* Plus élégant */
    color: #fff;
    margin-bottom: 30px;
    font-family: sans-serif;
}

.v3-overlay-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.v3-nav-arrows {
    display: flex;
    gap: 15px;
}

.v3-nav-arrows button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.v3-nav-arrows button:hover {
    background: #fff;
    color: #121b28;
}

.v3-nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.v3-nav-actions button, .v3-nav-actions a {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.v3-nav-actions button:hover, .v3-nav-actions a:hover {
    color: #fff;
}

/* ─── BANDEAU STATS ─────────────────────────────────────────────────────── */
.v3-stats-ribbon {
    background: #f8f8f8; /* Gris très pâle Premium */
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0; /* Réduction drastique du padding */
}

.v3-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v3-stats-left {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.v3-stat-item {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v3-stat-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

.v3-stats-right .mls-id {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .v3-hero-overlay-box {
        position: relative;
        transform: none;
        top: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        padding: 30px 20px;
    }
    .v3-hero-gallery {
        height: 50vh;
    }
    .v3-stats-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ─── V3 PAGE CONTENT (Premium Style) ───────────────────────────────────── */
.v3-content-wrapper {
    background: #ffffff;
    padding: 60px 0;
}

.v3-listing-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.v3-listing-main {
    flex: 1;
    min-width: 0; /* Empêche le débordement Flexbox */
}

.v3-listing-section {
    margin-bottom: 50px;
    background: #fff;
}

.v3-section-title {
    font-family: 'Playfair Display', "Times New Roman", serif;
    font-size: 2rem;
    color: #121b28;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    font-weight: 500;
}

/* Grille tech-sheet V3 Premium */
.v3-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px 40px;
}

.v3-tech-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.v3-tech-label {
    color: #666;
    font-size: 0.95rem;
}

.v3-tech-value {
    font-weight: 600;
    color: #121b28;
    text-align: right;
}

/* Visite Libre V3 */
.v3-open-house-section {
    background: #f8f9fa;
    padding: 30px;
    border-left: 4px solid #121b28;
    border-radius: 4px;
}

.v3-open-house-section .v3-section-title {
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 0;
}

/* Sidebar Contact Form V3 */
.v3-sidebar {
    width: 380px;
}

.v3-contact-box {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: sticky;
    top: 120px;
    border: 1px solid #eaeaea;
}

.v3-contact-box h3 {
    font-family: 'Playfair Display', "Times New Roman", serif;
    font-size: 1.6rem;
    color: #121b28;
    margin-top: 0;
    margin-bottom: 25px;
}

.v3-btn-primary {
    background: #121b28;
    color: #fff;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.v3-btn-primary:hover {
    background: #1a273b;
}

@media (max-width: 900px) {
    .v3-listing-layout { flex-direction: column; }
    .v3-sidebar { width: 100%; }
}
