/* ============================================================
 * L'Aire Bête — Overlay intérieur pavillon (Session I.2 v1.24.0)
 * Charte : Sarcelle #1A7A6E, Or #D4A017, bois ébène #261610
 * ============================================================ */

.lb-pavillon-interieur {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: grid;
    place-items: center;
    padding: 2rem 1.5rem;
    background:
        radial-gradient( ellipse at center top, rgba( 26, 122, 110, 0.35 ) 0%, rgba( 10, 24, 32, 0.95 ) 70% ),
        #0a1820;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease;
    overflow-y: auto;
    /* Bug UX 2026-05-13 : drag accidentel sur l'image affichait un ghost
       sous le curseur. On désactive la sélection texte sur le container
       pour qu'un drag accidentel ne highlight pas non plus le titre/desc. */
    user-select: none;
    -webkit-user-select: none;
}
.lb-pavillon-interieur.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.lb-pavillon-interieur__inner {
    max-width: 1100px;
    width: 100%;
    text-align: center;
    color: #fff;
}

.lb-pavillon-interieur__title {
    font-family: "Fredoka One", "Open Sans", system-ui, sans-serif;
    color: #D4A017;
    font-size: clamp( 1.6rem, 4vw, 2.4rem );
    letter-spacing: 0.04em;
    margin: 0 0 0.4rem;
    text-shadow: 0 4px 20px rgba( 0, 0, 0, 0.6 );
}

.lb-pavillon-interieur__desc {
    color: rgba( 255, 255, 255, 0.85 );
    font-size: 1rem;
    margin: 0 auto 1.5rem;
    max-width: 720px;
}

.lb-pavillon-interieur__img {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow:
        0 30px 80px rgba( 0, 0, 0, 0.55 ),
        0 0 0 4px rgba( 212, 160, 23, 0.55 );
    background: #1a1a1a;
    /* Bug UX 2026-05-13 : drag natif générait un ghost de l'image sous le
       curseur. Triple garde (CSS user-drag + HTML draggable="false" côté
       template + pointer-events). */
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* ===== Actions placeholder ===== */
.lb-pavillon-interieur__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 0.5rem;
}
.lb-pavillon-interieur__btn {
    background: rgba( 26, 122, 110, 0.85 );
    color: #fff;
    border: 1px solid rgba( 212, 160, 23, 0.6 );
    padding: 0.7rem 1.3rem;
    border-radius: 99px;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 150ms ease, background 200ms ease;
}
.lb-pavillon-interieur__btn:hover:not(:disabled) {
    background: rgba( 26, 122, 110, 1 );
    transform: translateY( -2px );
}
.lb-pavillon-interieur__btn:disabled,
.lb-pavillon-interieur__btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
.lb-pavillon-interieur__btn-coming {
    font-size: 0.72rem;
    margin-left: 0.4rem;
    opacity: 0.7;
    font-style: italic;
}

/* ===== Bouton retour ===== */
.lb-pavillon-interieur__back {
    position: absolute;
    top: max( 1rem, env( safe-area-inset-top ) );
    left: max( 1rem, env( safe-area-inset-left ) );
    z-index: 26;
    background: rgba( 0, 0, 0, 0.65 );
    color: #fff;
    border: 1px solid rgba( 212, 160, 23, 0.55 );
    padding: 0.55rem 1rem;
    border-radius: 99px;
    font-family: "Open Sans", sans-serif;
    font-size: 0.92rem;
    cursor: pointer;
    backdrop-filter: blur( 8px );
    -webkit-backdrop-filter: blur( 8px );
    transition: background 200ms ease, transform 150ms ease;
}
.lb-pavillon-interieur__back:hover {
    background: rgba( 0, 0, 0, 0.85 );
    transform: translateX( -2px );
}

/* ====================================================================
 *  B.2.1 — Sub-view boutique listing dans l'overlay pavillon
 *  Palette warm wood / terracotta / forêt (PAS de gold #D4A017).
 *  Reste dans le même overlay container (background dark teal hérité).
 * ==================================================================== */

.lb-pavillon-shops {
    width: 100%;
    max-width: 1100px;
    color: #F0E8D8;
    text-align: center;
    padding: 1rem 0.5rem 2rem;
}
.lb-pavillon-shops[hidden] { display: none; }

.lb-pavillon-shops__back {
    position: absolute;
    top: max( 1rem, env( safe-area-inset-top ) );
    left: max( 1rem, env( safe-area-inset-left ) );
    z-index: 27;
    background: rgba( 38, 22, 16, 0.85 );
    color: #F0E8D8;
    border: 1px solid rgba( 92, 61, 30, 0.7 );
    padding: 0.55rem 1rem;
    border-radius: 99px;
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
}
.lb-pavillon-shops__back:hover {
    background: rgba( 74, 46, 20, 0.95 );
    transform: translateX( -2px );
}

.lb-pavillon-shops__title {
    font-family: "Fredoka One", "Open Sans", system-ui, sans-serif;
    color: #C97B5A;             /* terracotta, pas gold */
    font-size: clamp( 1.4rem, 3.5vw, 2rem );
    margin: 0 0 0.4rem;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 16px rgba( 0, 0, 0, 0.5 );
}
.lb-pavillon-shops__intro {
    color: rgba( 240, 232, 216, 0.78 );
    font-size: 0.95rem;
    margin: 0 auto 1.8rem;
    max-width: 600px;
    font-style: italic;
}

/* ----- Grid responsive ----- */
.lb-pavillon-shops__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin: 0 auto;
    max-width: 1000px;
}
@media ( min-width: 640px ) {
    .lb-pavillon-shops__grid { grid-template-columns: repeat( 2, 1fr ); }
}
@media ( min-width: 980px ) {
    .lb-pavillon-shops__grid { grid-template-columns: repeat( 3, 1fr ); }
}

/* ----- Empty state ----- */
.lb-pavillon-shops__empty {
    margin: 2rem auto 1rem;
    max-width: 480px;
    padding: 2rem 1.5rem;
    background: rgba( 38, 22, 16, 0.5 );
    border: 1px dashed rgba( 201, 123, 90, 0.45 );
    border-radius: 14px;
}
.lb-pavillon-shops__empty[hidden] { display: none; }
.lb-pavillon-shops__empty-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.6rem;
}
.lb-pavillon-shops__empty-text {
    color: #F0E8D8;
    font-size: 1rem;
    margin: 0 0 0.4rem;
}
.lb-pavillon-shops__empty-sub {
    color: rgba( 240, 232, 216, 0.6 );
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

/* ====================================================================
 *  Shop card — bois ébène + accents terracotta + forêt
 * ==================================================================== */

.lb-shop-card {
    background: linear-gradient(
        145deg,
        rgba( 61, 40, 23, 0.92 ) 0%,
        rgba( 38, 22, 16, 0.95 ) 100%
    );
    border: 1px solid rgba( 92, 61, 30, 0.65 );
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 8px 24px rgba( 0, 0, 0, 0.45 ),
        inset 0 1px 0 rgba( 240, 232, 216, 0.08 );
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    user-select: none;
}
.lb-shop-card:hover {
    transform: translateY( -3px );
    border-color: rgba( 201, 123, 90, 0.7 );  /* terracotta */
    box-shadow:
        0 14px 36px rgba( 0, 0, 0, 0.55 ),
        inset 0 1px 0 rgba( 240, 232, 216, 0.12 );
}

.lb-shop-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.2rem 1.1rem 1rem;
    gap: 0.55rem;
}

.lb-shop-card__thumb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background:
        radial-gradient( circle at 35% 30%, rgba( 240, 232, 216, 0.18 ), rgba( 92, 61, 30, 0.7 ) 70% );
    border: 2px solid rgba( 201, 123, 90, 0.55 );
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    line-height: 1;
    margin: 0 auto 0.4rem;
    /* Pas de drag accidentel sur l'emoji */
    user-select: none;
}

.lb-shop-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
    text-align: center;
}

.lb-shop-card__title {
    font-family: "Fredoka One", "Open Sans", system-ui, sans-serif;
    color: #F0E8D8;
    font-size: 1.05rem;
    margin: 0;
    letter-spacing: 0.01em;
}

.lb-shop-card__desc {
    color: rgba( 240, 232, 216, 0.72 );
    font-size: 0.85rem;
    line-height: 1.35;
    margin: 0 0 0.4rem;
    flex: 1;
}

.lb-shop-card__cta {
    margin-top: auto;
    padding: 0.55rem 0.9rem;
    background: rgba( 62, 139, 92, 0.85 );    /* forêt #3E8B5C */
    border: 1px solid rgba( 62, 139, 92, 1 );
    color: #F0E8D8;
    border-radius: 99px;
    font-family: "Open Sans", sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
}
.lb-shop-card__cta:hover {
    background: #3E8B5C;
    transform: translateY( -1px );
}
.lb-shop-card__cta:focus-visible {
    outline: 2px solid rgba( 201, 123, 90, 0.85 );
    outline-offset: 2px;
}

/* ----- Mobile tweaks ----- */
@media ( max-width: 480px ) {
    .lb-pavillon-shops { padding-top: 3rem; }
    .lb-pavillon-shops__back {
        top: 0.6rem; left: 0.6rem; padding: 0.45rem 0.8rem; font-size: 0.85rem;
    }
    .lb-pavillon-shops__title { font-size: 1.3rem; }
    .lb-shop-card__inner { padding: 1rem 0.9rem; }
    .lb-shop-card__title { font-size: 1rem; }
    .lb-shop-card__cta { min-height: 44px; }
}

/* ====================================================================
 *  B.2.2 — Sub-view boutique-interieur (banner + header + produits)
 *  Palette identique à B.2.1 (terracotta, forêt, ébène, crème).
 * ==================================================================== */

.lb-boutique-interieur {
    width: 100%;
    max-width: 1100px;
    color: #F0E8D8;
    padding: 0 0.5rem 2rem;
    user-select: none;
}
.lb-boutique-interieur[hidden] { display: none; }

.lb-boutique-interieur__back {
    position: absolute;
    top: max( 1rem, env( safe-area-inset-top ) );
    left: max( 1rem, env( safe-area-inset-left ) );
    z-index: 27;
    background: rgba( 38, 22, 16, 0.85 );
    color: #F0E8D8;
    border: 1px solid rgba( 92, 61, 30, 0.7 );
    padding: 0.55rem 1rem;
    border-radius: 99px;
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
}
.lb-boutique-interieur__back:hover {
    background: rgba( 74, 46, 20, 0.95 );
    transform: translateX( -2px );
}

/* ---- Banner ---- */

.lb-boutique-interieur__banner-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 3rem auto 1.2rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba( 0, 0, 0, 0.55 ),
        0 0 0 3px rgba( 92, 61, 30, 0.55 );
}
.lb-boutique-interieur__banner {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    background: #1a1a1a;
}

/* ---- Header ---- */

.lb-boutique-interieur__header {
    text-align: center;
    margin: 0 auto 1.4rem;
    max-width: 720px;
}
.lb-boutique-interieur__icon {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}
.lb-boutique-interieur__title {
    font-family: "Fredoka One", "Open Sans", system-ui, sans-serif;
    color: #C97B5A;        /* terracotta */
    font-size: clamp( 1.6rem, 4vw, 2.2rem );
    margin: 0 0 0.4rem;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 16px rgba( 0, 0, 0, 0.5 );
}
.lb-boutique-interieur__desc {
    color: rgba( 240, 232, 216, 0.85 );
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.45;
}

/* ---- Produits grid ---- */

.lb-boutique-interieur__produits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin: 0 auto;
    max-width: 1000px;
}
@media ( min-width: 640px ) {
    .lb-boutique-interieur__produits-grid { grid-template-columns: repeat( 2, 1fr ); }
}
@media ( min-width: 980px ) {
    .lb-boutique-interieur__produits-grid { grid-template-columns: repeat( 3, 1fr ); }
}
.lb-boutique-interieur__produits-grid[hidden] { display: none; }

.lb-boutique-interieur__produits-empty {
    margin: 1.5rem auto 1rem;
    max-width: 480px;
    padding: 2rem 1.5rem;
    background: rgba( 38, 22, 16, 0.5 );
    border: 1px dashed rgba( 201, 123, 90, 0.45 );
    border-radius: 14px;
    text-align: center;
}
.lb-boutique-interieur__produits-empty[hidden] { display: none; }
.lb-boutique-interieur__empty-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.6rem;
}
.lb-boutique-interieur__empty-text {
    color: #F0E8D8;
    font-size: 1rem;
    margin: 0;
    font-style: italic;
}

/* ---- Produit card ---- */

.lb-produit-card {
    background: linear-gradient(
        145deg,
        rgba( 61, 40, 23, 0.92 ) 0%,
        rgba( 38, 22, 16, 0.95 ) 100%
    );
    border: 1px solid rgba( 92, 61, 30, 0.65 );
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 8px 24px rgba( 0, 0, 0, 0.45 ),
        inset 0 1px 0 rgba( 240, 232, 216, 0.08 );
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.lb-produit-card:hover {
    transform: translateY( -3px );
    border-color: rgba( 201, 123, 90, 0.7 );
    box-shadow:
        0 14px 36px rgba( 0, 0, 0, 0.55 ),
        inset 0 1px 0 rgba( 240, 232, 216, 0.12 );
}

.lb-produit-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lb-produit-card__img-wrap {
    aspect-ratio: 4 / 3;
    width: 100%;
    background: linear-gradient(
        135deg,
        rgba( 74, 46, 20, 0.5 ) 0%,
        rgba( 38, 22, 16, 0.8 ) 100%
    );
    overflow: hidden;
    display: grid;
    place-items: center;
    border-bottom: 1px solid rgba( 92, 61, 30, 0.55 );
}
.lb-produit-card__img-wrap--placeholder {
    font-size: 3rem;
    color: rgba( 201, 123, 90, 0.55 );
}
.lb-produit-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-drag: none;
}

.lb-produit-card__body {
    padding: 1rem 1.05rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.lb-produit-card__title {
    font-family: "Fredoka One", "Open Sans", system-ui, sans-serif;
    color: #F0E8D8;
    font-size: 1.02rem;
    margin: 0;
    letter-spacing: 0.01em;
}

.lb-produit-card__price {
    color: #C97B5A;       /* terracotta */
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    font-family: "Open Sans", sans-serif;
}

.lb-produit-card__desc {
    color: rgba( 240, 232, 216, 0.72 );
    font-size: 0.85rem;
    line-height: 1.35;
    margin: 0 0 0.6rem;
    flex: 1;
}

.lb-produit-card__cta {
    margin-top: auto;
    padding: 0.55rem 0.9rem;
    background: rgba( 62, 139, 92, 0.85 );    /* forêt 3E8B5C */
    border: 1px solid rgba( 62, 139, 92, 1 );
    color: #F0E8D8;
    border-radius: 99px;
    font-family: "Open Sans", sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
}
.lb-produit-card__cta:hover {
    background: #3E8B5C;
    transform: translateY( -1px );
}
.lb-produit-card__cta:focus-visible {
    outline: 2px solid rgba( 201, 123, 90, 0.85 );
    outline-offset: 2px;
}

/* ---- Mobile tweaks B.2.2 ---- */
@media ( max-width: 480px ) {
    .lb-boutique-interieur__back {
        top: 0.6rem; left: 0.6rem; padding: 0.45rem 0.8rem; font-size: 0.85rem;
    }
    .lb-boutique-interieur__banner-wrap { margin-top: 3rem; }
    .lb-boutique-interieur__banner { max-height: 220px; }
    .lb-boutique-interieur__title { font-size: 1.4rem; }
    .lb-produit-card__body { padding: 0.85rem 0.9rem 1rem; }
    .lb-produit-card__title { font-size: 0.98rem; }
    .lb-produit-card__cta { min-height: 44px; }
}

/* ===== Mobile 380px+ ===== */
@media ( max-width: 480px ) {
    .lb-pavillon-interieur { padding: 1rem 0.75rem; }
    .lb-pavillon-interieur__back { top: 0.6rem; left: 0.6rem; padding: 0.45rem 0.8rem; font-size: 0.85rem; }
    .lb-pavillon-interieur__title { font-size: 1.4rem; }
    .lb-pavillon-interieur__img { max-height: 50vh; }
    .lb-pavillon-interieur__actions { flex-direction: column; align-items: stretch; }
    .lb-pavillon-interieur__btn { min-height: 44px; }
}

/* ============================================================
 *  B.3.1 — Scène 3D intérieur boutique (Session B.3.1 v1.28.8)
 *
 *  Charte stricte : terracotta C97B5A · forêt 3E8B5C · ébène 261610
 *  · crème F0E8D8. ZÉRO or, chrome, néon, plastique.
 *
 *  Quand .lb-boutique-interieur porte .is-3d :
 *    - on masque le banner 2D + header + grid produits (B.2.2)
 *    - on révèle la scène 3D plein écran avec un bouton retour overlay
 *    - le hint mouse/Esc apparaît en bas
 * ============================================================ */

.lb-boutique-3d {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    background: #261610;  /* ébène — affiché 1 frame avant que la scène ne render */
}
.lb-boutique-interieur.is-3d .lb-boutique-3d {
    display: block;
}
.lb-boutique-3d__canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #261610;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.lb-boutique-3d__canvas:focus,
.lb-boutique-3d__canvas:active {
    cursor: grabbing;
    outline: none;
}

.lb-boutique-3d__hint {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX( -50% );
    padding: 0.5rem 1rem;
    background: rgba( 38, 22, 16, 0.78 );   /* ébène 261610 */
    color: #F0E8D8;                          /* crème F0E8D8 */
    border: 1px solid rgba( 201, 123, 90, 0.55 ); /* terracotta C97B5A */
    border-radius: 99px;
    font-family: "Open Sans", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    pointer-events: none;
    z-index: 3;
    backdrop-filter: blur( 6px );
    -webkit-backdrop-filter: blur( 6px );
}
.lb-boutique-3d__hint kbd {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    margin: 0 0.15rem;
    background: rgba( 62, 139, 92, 0.35 );  /* forêt 3E8B5C */
    border: 1px solid rgba( 240, 232, 216, 0.35 );
    border-radius: 4px;
    font-family: "Menlo", "Consolas", monospace;
    font-size: 0.78rem;
}

/* Quand la scène 3D est active, le bouton « Retour aux boutiques »
   doit flotter au-dessus du canvas (z-index supérieur). */
.lb-boutique-interieur.is-3d .lb-boutique-interieur__back {
    z-index: 4;
    background: rgba( 38, 22, 16, 0.82 );
    color: #F0E8D8;
    border: 1px solid rgba( 201, 123, 90, 0.65 );
}
.lb-boutique-interieur.is-3d .lb-boutique-interieur__back:hover {
    background: rgba( 38, 22, 16, 0.95 );
    border-color: rgba( 201, 123, 90, 0.95 );
}

/* Mask B.2.2 layout quand 3D est active — preserve DOM pour rétrocompat. */
.lb-boutique-interieur.is-3d .lb-boutique-interieur__banner-wrap,
.lb-boutique-interieur.is-3d .lb-boutique-interieur__header,
.lb-boutique-interieur.is-3d .lb-boutique-interieur__produits-grid,
.lb-boutique-interieur.is-3d .lb-boutique-interieur__produits-empty {
    display: none;
}

/* Mobile tweaks B.3.1 */
@media ( max-width: 480px ) {
    .lb-boutique-3d__hint {
        font-size: 0.78rem;
        padding: 0.4rem 0.8rem;
        bottom: 1rem;
    }
}

/* ============================================================
 *  B.3.1.1 — Menu pause boutique 3D (UX cohérent avec valley)
 *
 *  Le visuel COMPLET vient des classes .lb-univers__menu*
 *  (assets/3d/styles/univers.css) — réutilisation 1:1 pour un
 *  match pixel-perfect avec le menu pause valley. Ici on ajoute
 *  uniquement les surcharges contextuelles minimales pour que
 *  le menu rende correctement par-dessus le canvas 3D et que
 *  ses interactions ne soient pas absorbées par la scène.
 * ============================================================ */
.lb-boutique-3d__menu {
    pointer-events: auto;
}
.lb-boutique-3d .lb-boutique-3d__menu:not( [hidden] ) {
    display: flex;
}
