:root {
    --ink: #1A1A1A; --cream: #FBF9F6; --bronze: #84754E;
    --border: #E5E5E5; --muted: #6B6158; --text: #3A3530; --dark: #0D0C0B;
}
html, body { background: var(--cream); }

/* Fixations essentielles pour le CLS (sans casser le responsive) */
#calendar { min-height: 380px; }
#logement-description { min-height: 150px; }
footer { min-height: 400px; }

/* Galerie : Ratios uniquement (pas de hauteur fixe) */
.gal-wrap { position: relative; overflow: hidden; cursor: pointer; background: #E8E5DF; display: block; width: 100%; aspect-ratio: 4/3; }
.md\:col-span-8 .gal-wrap { aspect-ratio: 16/10; }
.gal-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: all 0.3s ease-in-out; display: block; }
.gal-img.loaded { opacity: 1; }
.gal-wrap:has(img[src=""], img[src*="undefined"], img:not([src])) { display: none !important; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1); will-change: transform, opacity; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* HEADER & TYPO (Ton code original intact) */
.detail-header { background: var(--dark); padding: 7rem 4rem 3rem; }
@media (max-width:768px) { .detail-header { padding:6rem 1.5rem 2.5rem; } }
.detail-header-inner { max-width:1400px; margin:0 auto; display:flex; align-items:flex-end; justify-content:space-between; gap:2rem; }
@media (max-width:768px) { .detail-header-inner { flex-direction:column; align-items:flex-start; gap:1.5rem; } }

.bc-dark { font-family:'Cormorant SC',serif; font-size:0.8rem; letter-spacing:.3em; display:flex; align-items:center; gap:.75rem; margin-bottom:1.25rem; }
.bc-dark a { color:rgba(255, 255, 255, 0.527); text-decoration:none; transition:color .2s; }
.bc-dark a:hover { color:var(--bronze); }
.bc-dark-sep { color:rgba(255, 255, 255, 0.336); }
.bc-dark-cur { color:rgba(255,255,255,.55); }

.detail-eyebrow { font-family:'Cormorant SC',serif; font-size:0.6rem; letter-spacing:.35em; color:var(--bronze); display:flex; align-items:center; gap:1rem; margin-bottom:1rem; }
.detail-eyebrow::before { content:''; display:inline-block; width:24px; height:1px; background:var(--bronze); }

.header-nom-display { font-family:'Cormorant Garamond',serif !important; font-weight:300 !important; font-size:clamp(2.5rem,5vw,5rem) !important; line-height:.95 !important; letter-spacing:-.02em !important; color:#fff !important; animation:fadeUp .9s ease .2s both; }
.header-tag-display { font-family:'Cormorant SC',serif !important; font-size:1rem !important; letter-spacing:.25em !important; color:rgba(255, 255, 255, 0.714) !important; font-weight:300 !important; align-self:flex-end; padding-bottom:.5rem; text-transform:none !important; animation:fadeUp .9s ease .4s both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

/* MARQUEE & GALERIE (Code original intact) */
.mq-wrap { background:var(--ink); padding:1rem 0; overflow:hidden; display:flex; }
.mq-track { display:flex; animation:mqAnim 22s linear infinite; white-space:nowrap; }
.mq-item { font-family:'Cormorant SC',serif; font-size:11px; letter-spacing:.3em; color:rgba(255,255,255,.8); padding:0 2.5rem; display:flex; align-items:center; gap:2rem; }
.mq-item::after { content:'◆'; font-size:6px; opacity:.5; }
@keyframes mqAnim { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* LIGHTBOX & TYPO OVERRIDES (Reste de ton code...) */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(13,12,11,0.95); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }

    /* Overlay avec le logo au centre */
    .gal-overlay {
        position: absolute;
        inset: 0;
        background: rgba(13,12,11,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
        z-index: 10;
    }

    /* On utilise ton icône logo (+ effet agrandissement léger) */
    .gal-overlay .logo-container {
        width: 48px; height: 48px;
        color: #fff;
        opacity: 0.8;
        transform: scale(0.9);
        transition: transform 0.6s cubic-bezier(.16,1,.3,1);
    }

    .gal-wrap:hover .gal-img { transform: scale(1.04); filter: brightness(1); }
    .gal-wrap:hover .gal-overlay { opacity: 1; }
    .gal-wrap:hover .gal-overlay .logo-container { transform: scale(1); }

    /* LIGHTBOX (Modale Plein Écran) */
    .lightbox {
        position: fixed; inset: 0; z-index: 9999;
        background: rgba(13,12,11,0.95);
        backdrop-filter: blur(8px);
        display: flex; align-items: center; justify-content: center;
        opacity: 0; pointer-events: none;
        transition: opacity 0.4s ease;
    }
    .lightbox.active { opacity: 1; pointer-events: auto; }
    
    .lightbox-img {
        max-width: 90vw; max-height: 90vh;
        object-fit: contain;
        transform: scale(0.95);
        transition: transform 0.4s ease;
        box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }
    .lightbox.active .lightbox-img { transform: scale(1); }

    .lightbox-close {
        position: absolute; top: 2rem; right: 2rem;
        color: rgba(255,255,255,0.6); background: transparent;
        border: none; cursor: pointer; padding: 1rem;
        transition: color 0.3s ease;
    }
    .lightbox-close:hover { color: #fff; }
    
    .lightbox-nav {
        position: absolute; top: 50%; transform: translateY(-50%);
        color: rgba(255,255,255,0.4); background: transparent;
        border: none; cursor: pointer; padding: 2rem;
        transition: color 0.3s ease;
    }
    .lightbox-nav:hover { color: #fff; }
    .lightbox-prev { left: 2rem; }
    .lightbox-next { right: 2rem; }


    /* TYPOGRAPHY OVERRIDES light */
    .section-label { font-family:'Cormorant SC',serif; font-size:1rem; letter-spacing:.35em; color:var(--bronze); display:flex; align-items:center; gap:1rem; margin-bottom:1.25rem; }
    .section-label::before { content:''; display:inline-block; width:24px; height:1px; background:var(--bronze); }

    #logement-accroche { font-family:'Cormorant Garamond',serif !important; font-weight:300 !important; font-size:clamp(1.7rem,2.8vw,2.2rem) !important; color:var(--ink) !important; line-height:1.2 !important; letter-spacing:-.01em !important; margin-bottom:1.75rem !important; }
    #logement-description { font-family:'Cormorant Garamond',serif !important; font-size:1.2rem !important; font-weight:300 !important; line-height:1.85 !important; color:var(--text) !important; }

    .equip-h { font-family:'Cormorant Garamond',serif; font-weight:300; font-size:1.5rem; color:var(--ink); margin-bottom:1.75rem; }

    /* Équipements injectés par main.js — surcharge */
    #logement-equipements { display:flex !important; flex-direction:column !important; gap:0 !important; }
    #logement-equipements > div { border-bottom:1px solid var(--border) !important; padding:.85rem 0 !important; transition:border-color .3s; }
    #logement-equipements > div:hover { border-color:var(--bronze) !important; }
    #logement-equipements span.text-sm { font-family:'Cormorant Garamond',serif !important; font-size:1.05rem !important; color:var(--text) !important; }
    #logement-equipements .w-10 { width:8px !important; height:8px !important; min-width:8px; background:var(--bronze) !important; border-radius:50% !important; border:none !important; padding:0 !important; }
    #logement-equipements .w-10 svg { display:none !important; }

    /* WIDGET LIGHT */
    .booking-box { background:#fff; border:1px solid var(--border); }

    #logement-prix { font-family:'Cormorant Garamond',serif !important; font-weight:300 !important; font-size:1.3rem !important; color:var(--ink) !important; line-height:1 !important; }

    .vc-container {
        --vc-font-family:'Cormorant Garamond',serif;
        --vc-clr-background:transparent; --vc-clr-border:#E5E5E5;
        --vc-clr-accent:#84754E; --vc-clr-color:#3A3530;
        border:none !important; width:100% !important;
    }
    .vc-day_selected { background-color:#84754E !important; color:#fff !important; }
    /* .vc-day_disabled { opacity:.25 !important; pointer-events:none; } */
    /* =====================================================
        CALENDRIER — DATES INDISPONIBLES (BARRÉES)
    ===================================================== */
    .vc-day_disabled { 
        opacity: 0.6 !important; 
        pointer-events: none; 
        color: #b5aba1 !important; /* Chiffre grisé */
        background-color: rgba(251,249,246, 0.4) !important;
        /* Ligne diagonale élégante façon luxe */
        background-image: linear-gradient(to top left, transparent calc(50% - 1px), #d3cdc6, transparent calc(50% + 1px)) !important;
    }

    /* Booking resume injecté par main.js */
    #booking-resume > div { font-family:'Cormorant Garamond',serif !important; }

    /* CTA sombre avec flèche */
    .cta-book {
        display:flex !important; align-items:center !important; justify-content:space-between !important;
        width:100% !important; background:var(--dark) !important; color:#fff !important;
        text-decoration:none !important; padding:1.25rem 1.5rem !important;
        font-family:'Cormorant SC',serif !important; font-size:11px !important;
        letter-spacing:.3em !important; border-radius:0 !important; text-align:left !important;
        transition:background .3s !important; box-shadow:none !important; font-weight:400 !important;
    }
    .cta-book:hover { background:var(--bronze) !important; }
    .cta-disabled {
        opacity: 0.3 !important;
        pointer-events: none !important;
        cursor: not-allowed !important;
    }
    .cta-arr { width:24px; height:1px; background:currentColor; position:relative; flex-shrink:0; transition:width .3s; display:inline-block; }
    .cta-book:hover .cta-arr { width:36px; }
    .cta-arr::after { content:''; position:absolute; right:0; top:-3px; width:6px; height:6px; border-right:1px solid currentColor; border-top:1px solid currentColor; transform:rotate(45deg); }

    .note-sec { font-family:'Cormorant SC',serif !important; font-size:0.7rem !important; letter-spacing:.2em !important; color:rgba(26,26,26,.3) !important; font-weight:300 !important; }

    /* RETOUR */
    .back-link { display:inline-flex; align-items:center; gap:.75rem; font-family:'Cormorant SC',serif; font-size:0.9rem; letter-spacing:.25em; color:var(--bronze); text-decoration:none; transition:gap .3s,color .3s; }
    .back-link:hover { gap:1.25rem; color:var(--ink); }
    .back-arr { width:24px; height:1px; background:currentColor; position:relative; flex-shrink:0; }
    .back-arr::before { content:''; position:absolute; left:0; top:-3px; width:6px; height:6px; border-left:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg); }

    .desc-line { min-height: 1.5rem; } /* Réserve la place même si le texte est vide */

/* ── BOUTON VOIR PLUS — discret, aligné à droite ──────────── */
.voir-plus-galerie {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.5rem;
    margin-bottom: 2.5rem;
}
.voir-plus-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Cormorant SC', serif;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}
.voir-plus-btn:hover { color: var(--bronze); }