/* ═══════════════════════════════════════════════════════════
   LOGEMENT DETAIL
════════════════════════════════════════════════════════════ */

/* ── WRAP ────────────────────────────────────────────────── */
.ld-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.ld-breadcrumb-wrap {
    padding: 24px 0 16px;
}

/* ── GALERIE MOSAÏQUE ────────────────────────────────────── */
.ld-galerie {
    height: clamp(360px, 50vw, 580px);
    overflow: hidden;
}

.ld-galerie-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr;
    height: 100%;
    gap: 3px;
}

.ld-galerie-main {
    height: 100%;
}

.ld-galerie-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    height: 100%;
}

.ld-galerie--empty {
    background: var(--paper-warm);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-galerie-empty-text {
    color: var(--ink-muted);
    font-family: var(--sans);
    font-size: 14px;
}

.ld-bg {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.ld-bg--empty {
    background: var(--paper-warm);
}

.ld-zoomable {
    cursor: zoom-in;
}

.ld-bg:hover {
    transform: scale(1.03);
}

.ld-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ld-meta-occupation {
    margin-top: 4px;
    color: var(--red);
    font-weight: 500;
}


/* ── LIGHTBOX ────────────────────────────────────────────── */
.ld-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 8, 7, 0.95);
    align-items: center;
    justify-content: center;
}

.ld-lb.is-open {
    display: flex;
}

.ld-lb-img {
    width: 90vw;
    height: 85vh;
    max-width: 1200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ld-lb-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(251,250,247,0.7);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.ld-lb-close:hover { color: var(--paper); }

.ld-lb-prev,
.ld-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(251,250,247,0.1);
    border: 1px solid rgba(251,250,247,0.15);
    border-radius: 50%;
    color: var(--paper);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.ld-lb-prev:hover,
.ld-lb-next:hover { background: rgba(251,250,247,0.2); }

.ld-lb-prev { left: 20px; }
.ld-lb-next { right: 20px; }

.ld-lb-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--sans);
    font-size: 13px;
    color: rgba(251,250,247,0.5);
}

/* ── EN-TÊTE ─────────────────────────────────────────────── */
.ld-header {
    padding: 40px 0 32px;
}

.ld-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ld-badge {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
}

.ld-quartier {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
}

.ld-title {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.ld-specs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ld-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-soft);
}

.ld-spec svg { color: var(--ink-muted); }

.ld-spec-dot { color: var(--line-strong); font-size: 18px; line-height: 1; }

.ld-divider-full {
    border: none;
    border-top: 1px solid var(--line);
}

/* ── LAYOUT DEUX COLONNES ────────────────────────────────── */
.ld-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 72px;
    padding-top: 52px;
    padding-bottom: 100px;
    align-items: start;
}

/* ── COLONNE PRINCIPALE ──────────────────────────────────── */
.ld-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 40px 0;
}

.ld-section { }

.ld-section-title {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.ld-section-intro {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

.ld-description {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.8;
    color: var(--ink-soft);
    margin: 16px 0 0;
}

/* Services */
.ld-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
}

.ld-service {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ld-service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--paper-warm);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ink-soft);
}

.ld-service-title {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 4px;
}

.ld-service-desc {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.55;
    margin: 0;
}

/* Équipements */
.ld-equipements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.ld-equip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-soft);
}

.ld-equip-item svg { color: var(--red); flex-shrink: 0; }

/* POI */
.ld-poi {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ld-poi-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-soft);
}

.ld-poi-item svg { color: var(--ink-faint); flex-shrink: 0; }

/* ── ASIDE ───────────────────────────────────────────────── */
.ld-aside {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Carte performance */
.ld-perf-card {
    background: var(--paper-warm);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 28px;
}

.ld-perf-label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 20px;
}

.ld-perf-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

.ld-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ld-stat-num {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
}

.ld-stat-name {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-muted);
}

.ld-perf-note {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--ink-faint);
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

/* Carte CTA */
.ld-cta-card {
    background: var(--ink);
    border-radius: 16px;
    padding: 28px;
    color: var(--paper);
}

.ld-cta-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--paper);
    margin: 0 0 10px;
    line-height: 1.2;
}

.ld-cta-text {
    font-family: var(--sans);
    font-size: 13px;
    color: rgba(251,250,247,0.65);
    line-height: 1.6;
    margin: 0 0 22px;
}

.ld-cta-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--red);
    color: #fff;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-sizing: border-box;
}

.ld-cta-btn:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.ld-cta-note {
    font-family: var(--sans);
    font-size: 11px;
    color: rgba(251,250,247,0.4);
    text-align: center;
    margin: 12px 0 0;
}

/* ── AUTRES LOGEMENTS ────────────────────────────────────── */
.ld-autres {
    background: var(--paper-warm);
    padding: 72px 0 80px;
    border-top: 1px solid var(--line);
}

.ld-autres-title {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.ld-autres-title em {
    font-style: italic;
    color: var(--red);
}

.ld-autres-grid {
    grid-template-columns: repeat(3, 1fr);
}

.ld-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ld-card-link:hover .lg-name { color: var(--red); }

.ld-autres-cta {
    margin-top: 48px;
    text-align: center;
}

.btn-outline {
    display: inline-block;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    padding: 13px 32px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .ld-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ld-aside {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 48px;
    }
    .ld-perf-card, .ld-cta-card {
        flex: 1 1 280px;
    }
}

@media (max-width: 768px) {
    .ld-galerie-grid {
        grid-template-columns: 1fr;
    }
    .ld-galerie-side {
        display: none;
    }
    .ld-services-grid {
        grid-template-columns: 1fr;
    }
    .ld-equipements {
        grid-template-columns: 1fr;
    }
    .ld-autres-grid {
        grid-template-columns: 1fr;
    }
    .ld-aside {
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .ld-perf-stats {
        grid-template-columns: 1fr 1fr;
    }
}
