/**
 * Aux Multiples Merveilles - Style Officiel PrestaShop
 * Façade Parvis Haute Couture & Intérieur 3D Interactif Three.js
 */

:root {
    --amm-bg: #FAF8F5;
    --amm-surface: #FFFFFF;
    --amm-surface-glass: rgba(255, 253, 249, 0.94);
    --amm-bleu-vert: #35676E;
    --amm-bleu-vert-dark: #1E3F45;
    --amm-bleu-vert-light: #E8F1F2;
    --amm-or-luxe: #C5A869;
    --amm-or-luxe-dark: #987B38;
    --amm-or-glow: rgba(197, 168, 105, 0.45);
    --amm-rose-blush: #D98A7A;
    --amm-beige-lin: #F3EDE4;
    --amm-texte-fonce: #1C2E38;
    --amm-texte-moyen: #576874;
    --amm-shadow: 0 16px 40px rgba(18, 36, 42, 0.18);
    --amm-shadow-lg: 0 24px 60px rgba(18, 36, 42, 0.28);
    --amm-radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Verrouillage immersif plein écran sans défilement UNIQUEMENT sur la page d'accueil (showroom 3D) */
html:has(body.page-index),
body.page-index {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: #102126 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Réinitialisation propre et défilement naturel fluide pour toutes les autres pages (CMS légales, Catalogue, Panier...) */
body {
    width: 100%;
    min-height: 100%;
    color: var(--amm-texte-fonce);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

body:not(.page-index),
body.page-cms {
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #FAF8F5 !important;
}

body:not(.page-index) #wrapper,
body:not(.page-index) #content-wrapper,
body:not(.page-index) #main,
body:not(.page-index) #content,
body.page-cms #wrapper,
body.page-cms #content-wrapper,
body.page-cms #main,
body.page-cms #content {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* Masquage garanti des éléments parasites PrestaShop sur la page d'accueil showroom */
body.page-index #header,
body.page-index > header,
body.page-index #notifications,
body.page-index .breadcrumb,
body.page-index #footer,
body.page-index footer,
body.page-index .page-footer,
body.page-index .js-footer,
body.page-index #blockEmailSubscription_displayFooterBefore,
body.page-index .footer-container {
    display: none !important;
}

/* Le module Showroom occupe 100% absolu de la fenêtre */
body.page-index .amm-showroom-module {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    background: #102126 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================================
   BARRE D'EN-TÊTE HAUTE ÉLÉGANCE
   ======================================================== */
.amm-site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(197, 168, 105, 0.35);
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    z-index: 100;
    padding: 0 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    box-shadow: 0 4px 20px rgba(18, 36, 42, 0.08);
    width: 100%;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--amm-or-luxe);
    object-fit: cover;
    background: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(197, 168, 105, 0.25);
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-title-heading {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.brand-title-img {
    height: 22px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.brand-titles span {
    font-size: 0.65rem;
    color: var(--amm-texte-moyen);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Raccourcis Fratries officiels */
.fratries-nav-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fratrie-pill-top {
    background: #FAF8F5;
    border: 1px solid rgba(197, 168, 105, 0.4);
    color: var(--amm-texte-fonce);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fratrie-pill-top:hover, .fratrie-pill-top.active {
    background: var(--amm-bleu-vert);
    color: #FFFFFF;
    border-color: var(--amm-bleu-vert);
    box-shadow: 0 2px 8px rgba(53, 103, 110, 0.3);
}

.header-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-door-toggle {
    background: #FAF8F5;
    border: 1.5px solid var(--amm-or-luxe);
    color: var(--amm-texte-fonce);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.80rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-door-toggle:hover {
    background: var(--amm-bleu-vert);
    color: #FFFFFF;
    border-color: var(--amm-bleu-vert);
}

.cart-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FAF8F5;
    border: 1.5px solid var(--amm-or-luxe);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.80rem;
    font-weight: 700;
    color: var(--amm-texte-fonce);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-indicator:hover {
    background: #FFFFFF;
    box-shadow: 0 3px 12px rgba(197, 168, 105, 0.35);
}

.cart-badge {
    background: var(--amm-bleu-vert);
    color: #FFFFFF;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.70rem;
    font-weight: 800;
}

/* ========================================================
   SCÈNE & CADRE PRINCIPAL (16:9 HAUTE FIDÉLITÉ)
   ======================================================== */
.experience-stage {
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100vh - 52px);
    height: calc(100dvh - 52px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    background: #102126;
}

.experience-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: auto;
    overflow: hidden;
    background: #102126;
    perspective: 1500px;
}

/* ========================================================
   SCÈNE 1 : LE PARVIS (PAGE PRINCIPALE SANCTUARISÉE)
   ======================================================== */
.facade-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
    transform-origin: 50.1% 59.7%;
    background: #102126;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    will-change: transform, opacity;
}

#facadeScene.entered,
.facade-scene.entered {
    opacity: 0 !important;
    transform: scale(2.8) !important;
    pointer-events: none !important;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease 0.45s !important;
}

.parvis-wrapper {
    position: relative;
    height: 100%;
    width: auto;
    aspect-ratio: 1376 / 768;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.facade-background {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    pointer-events: none;
}

/* Portail 3D calé exactement sur la double porte de la façade */
.door-3d-portal {
    position: absolute;
    top: 28.0%;
    left: 50.1%;
    transform: translateX(-50%);
    width: 20.2%;
    height: 63.4%;
    perspective: 1400px;
    cursor: pointer;
    z-index: 28;
    display: flex;
    border-radius: 140px 140px 0 0;
    overflow: visible;
}

.door-leaf {
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(53, 103, 110, 0.15) 100%);
    border: 2px solid rgba(197, 168, 105, 0.75);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.door-leaf-left {
    transform-origin: left center;
    border-right: 1.5px solid rgba(197, 168, 105, 0.85);
    border-radius: 130px 0 0 0;
}

.door-leaf-right {
    transform-origin: right center;
    border-left: 1.5px solid rgba(197, 168, 105, 0.85);
    border-radius: 0 130px 0 0;
}

.door-glass-pane {
    position: absolute;
    inset: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(197, 168, 105, 0.4);
    border-radius: 120px 0 0 0;
    pointer-events: none;
}

.door-leaf-right .door-glass-pane {
    border-radius: 0 120px 0 0;
}

.door-handle-brass {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 17%;
    border: 2.5px solid #C5A869;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.door-leaf-left .door-handle-brass {
    right: 8px;
    border-left: none;
    border-radius: 0 18px 18px 0;
}

.door-leaf-right .door-handle-brass {
    left: 8px;
    border-right: none;
    border-radius: 18px 0 0 18px;
}

@keyframes ammSignPulse {
    0% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(197, 168, 105, 0.6);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 10px 32px rgba(197, 168, 105, 0.85), 0 0 0 14px rgba(197, 168, 105, 0);
        transform: translate(-50%, -50%) scale(1.06);
    }
    100% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(197, 168, 105, 0.6);
        transform: translate(-50%, -50%) scale(1);
    }
}

.door-sign-entrez {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFDF9;
    color: #1C2E38;
    border: 2px solid #C5A869;
    padding: 10px 28px;
    border-radius: 40px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    animation: ammSignPulse 2.4s infinite ease-in-out;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 35;
    user-select: none;
    -webkit-user-select: none;
}

.door-sign-entrez:hover,
.door-sign-entrez:active {
    transform: translate(-50%, -50%) scale(1.12);
    background: #FFFFFF;
    box-shadow: 0 8px 35px rgba(197, 168, 105, 0.95), 0 0 0 6px rgba(197, 168, 105, 0.35);
}

.door-3d-portal.open .door-leaf-left { transform: rotateY(-110deg); }
.door-3d-portal.open .door-leaf-right { transform: rotateY(110deg); }
.door-3d-portal.open .door-sign-entrez { opacity: 0; pointer-events: none; }

.door-light-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 235, 175, 0.45) 0%, rgba(255, 235, 175, 0) 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 26;
}

.door-3d-portal.open ~ .door-light-beam { opacity: 1; }

.door-subtle-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 33, 38, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid var(--amm-or-luxe);
    color: #FFFFFF;
    font-size: 0.80rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 24px;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    z-index: 30;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.door-subtle-hint:hover,
.door-subtle-hint:active {
    background: var(--amm-bleu-vert);
    box-shadow: 0 6px 20px rgba(197, 168, 105, 0.6);
    transform: translateX(-50%) scale(1.05);
}

.door-3d-portal.open ~ .door-subtle-hint,
#facadeScene.entered .door-subtle-hint {
    opacity: 0;
    pointer-events: none;
}

/* ========================================================
   SCÈNE 2 : BOUTIQUE 3D TEMPS RÉEL (LE PROTOTYPE THREE.JS)
   ======================================================== */
canvas#c {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: grab;
    z-index: 10;
}

canvas#c:active {
    cursor: grabbing;
}

/* Réticule central d'aide à la visée (uniquement en intérieur) */
#crosshair {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    pointer-events: none;
    z-index: 32;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

#facadeScene.entered ~ #crosshair {
    display: block;
}

#crosshair.hovered {
    width: 22px;
    height: 22px;
    border-color: var(--amm-or-luxe);
    background: rgba(197, 168, 105, 0.25);
    box-shadow: 0 0 12px var(--amm-or-glow);
}

/* Bannière d'aide discrète haute lisibilité (uniquement en intérieur) */
#hint {
    display: none;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 33, 38, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid var(--amm-or-luxe);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 22px;
    border-radius: 30px;
    pointer-events: none;
    z-index: 34;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

#facadeScene.entered ~ #hint:not(.hidden) {
    display: block;
}

#hint.hidden {
    display: none !important;
}

/* Effet d'onde lors d'un clic sur le parquet */
.click-ripple {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--amm-or-luxe);
    background: rgba(197, 168, 105, 0.25);
    box-shadow: 0 0 16px var(--amm-or-luxe);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
    animation: ripple-anim 0.6s ease-out forwards;
    z-index: 35;
}

@keyframes ripple-anim {
    to {
        transform: translate(-50%, -50%) scale(2.3);
        opacity: 0;
    }
}

/* Mini D-Pad tactile mobile : uniquement à l'intérieur du magasin */
#mobileDpad {
    display: none;
    position: absolute;
    left: 14px;
    bottom: 68px;
    z-index: 45;
    grid-template-columns: repeat(3, 42px);
    grid-template-rows: repeat(2, 42px);
    gap: 5px;
    pointer-events: auto;
}

#facadeScene.entered ~ #mobileDpad {
    display: grid;
}

@media (min-width: 768px) {
    #mobileDpad,
    #facadeScene.entered ~ #mobileDpad {
        display: none !important;
    }
}

.dpad-btn {
    background: rgba(255, 255, 255, 0.88);
    border: 1.5px solid var(--amm-or-luxe);
    border-radius: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.dpad-btn:active {
    background: var(--amm-bleu-vert);
    color: #FFFFFF;
    transform: scale(0.94);
}

/* Barre inférieure HUD de navigation des Rayons */
#botHud {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
    padding: 0 12px;
    padding-bottom: max(0px, env(safe-area-inset-bottom));
}

/* Bouton Infos Légales dans l'en-tête */
.btn-legal-top {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(197, 168, 105, 0.6);
    color: var(--amm-texte-fonce);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.btn-legal-top:hover {
    background: #FAF8F5;
    border-color: var(--amm-or-luxe);
    color: #8C6D2D;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Pied de page légal officiel sur la scène 3D */
.amm-immersive-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 55;
    pointer-events: auto;
    font-size: 0.70rem;
    font-weight: 600;
    color: rgba(28, 46, 56, 0.75);
    background: rgba(250, 248, 245, 0.94);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(197, 168, 105, 0.35);
    padding: 0 12px;
}

.amm-immersive-footer a {
    color: var(--amm-texte-fonce);
    text-decoration: none;
    transition: color 0.2s ease;
}

.amm-immersive-footer a:hover {
    color: var(--amm-or-luxe);
    text-decoration: underline;
}

.amm-footer-sep {
    color: var(--amm-or-luxe);
    font-size: 0.85rem;
}

.aisle-pills-bar {
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(197, 168, 105, 0.5);
    border-radius: 35px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    box-shadow: 0 8px 30px rgba(18, 36, 42, 0.22);
    overflow-x: auto;
    max-width: 96vw;
    scrollbar-width: none;
}

.aisle-pills-bar::-webkit-scrollbar {
    display: none;
}

.aisle-pill {
    background: transparent;
    border: 1px solid transparent;
    color: var(--amm-texte-fonce);
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.aisle-pill i.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.aisle-pill:hover, .aisle-pill.active {
    background: #FFFFFF;
    border-color: var(--amm-or-luxe);
    color: var(--amm-bleu-vert);
    box-shadow: 0 3px 12px rgba(197, 168, 105, 0.35);
    transform: translateY(-1px);
}

/* ========================================================
   INTERFACE IMMERSIVE COMPTOIR CAISSE HAUTE JOAILLERIE
   ======================================================== */
#caisseOverlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 40;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#caisseOverlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.caisse-badge-top {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 33, 38, 0.92);
    backdrop-filter: blur(14px);
    border: 1.5px solid var(--amm-or-luxe);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.caisse-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(16, 33, 38, 0.90);
    backdrop-filter: blur(12px);
    border: 1.5px solid var(--amm-or-luxe);
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.40);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: hotspot-pulse 2.2s infinite ease-in-out;
    white-space: nowrap;
}

.caisse-hotspot::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--amm-or-luxe);
}

.caisse-hotspot:hover {
    background: var(--amm-bleu-vert);
    color: #FFFFFF;
    border-color: #FFFFFF;
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 8px 25px var(--amm-or-glow);
}

/* 1. Carnet de la boutique sur le marbre à gauche */
#emailHotspot {
    left: 14%;
    top: 48%;
}

/* 2. Smartphone sur le marbre */
#phoneHotspot {
    left: 26%;
    top: 55%;
}

/* 3. Terminal CB positionné au milieu */
#tpeHotspot {
    left: 37.5%;
    top: 58%;
}

/* 4. Coffret cadeau à droite */
#giftHotspot {
    left: 75%;
    top: 38%;
}

@keyframes hotspot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(197, 168, 105, 0.6); }
    50% { box-shadow: 0 0 0 10px rgba(197, 168, 105, 0); }
}

#caisseBottomBar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    padding: 7px 14px;
    border-radius: 40px;
    border: 1.5px solid var(--amm-or-luxe);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.caisse-action-btn {
    background: transparent;
    border: none;
    color: var(--amm-texte-fonce);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.caisse-action-btn:hover {
    background: var(--amm-bleu-vert);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.caisse-action-btn.btn-pay {
    background: linear-gradient(135deg, var(--amm-bleu-vert) 0%, var(--amm-bleu-vert-dark) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(53, 103, 110, 0.35);
}

.caisse-action-btn.btn-pay:hover {
    box-shadow: 0 6px 20px rgba(53, 103, 110, 0.55);
}

.caisse-action-btn.btn-reculer {
    border: 1px solid rgba(197, 168, 105, 0.5);
    background: #FAF8F5;
}

/* ========================================================
   PANNEAU LATÉRAL FICHE ARTICLE (STYLE JOAILLERIE)
   ======================================================== */
#productPanel {
    position: fixed;
    top: 60px;
    right: 16px;
    bottom: 74px;
    width: min(390px, calc(100vw - 32px));
    background: var(--amm-surface-glass);
    backdrop-filter: blur(18px);
    border-radius: var(--amm-radius);
    border: 1.5px solid rgba(197, 168, 105, 0.6);
    box-shadow: var(--amm-shadow-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    z-index: 80;
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
}

#productPanel.open {
    transform: translateX(0);
}

.panel-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F3EDE4;
    border: 1px solid var(--amm-or-luxe);
    color: var(--amm-texte-fonce);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.panel-close:hover {
    background: var(--amm-bleu-vert);
    color: #FFFFFF;
    transform: rotate(90deg);
}

.panel-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--amm-bleu-vert-light);
    color: var(--amm-bleu-vert);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border: 1px solid rgba(53, 103, 110, 0.25);
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--amm-bleu-vert-dark);
    line-height: 1.25;
    margin-bottom: 10px;
    padding-right: 28px;
}

.panel-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.panel-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--amm-or-luxe-dark);
}

.panel-oldprice {
    font-size: 0.95rem;
    color: #9AA4AE;
    text-decoration: line-through;
}

.panel-savings {
    background: #FEF3F2;
    color: #B42318;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #FECDCA;
}

.fratrie-selector {
    background: #F8F6F2;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 14px;
    border: 1px solid rgba(197, 168, 105, 0.25);
}

.fratrie-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--amm-texte-moyen);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.fratrie-options {
    display: flex;
    gap: 6px;
}

.fratrie-btn {
    flex: 1;
    padding: 6px 4px;
    border-radius: 8px;
    border: 1.5px solid #D8CFC4;
    background: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--amm-texte-fonce);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.fratrie-btn.active {
    border-color: var(--amm-bleu-vert);
    background: var(--amm-bleu-vert);
    color: #FFFFFF;
}

.panel-desc {
    font-size: 0.85rem;
    color: var(--amm-texte-moyen);
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}

.panel-add-btn {
    background: linear-gradient(135deg, var(--amm-bleu-vert) 0%, var(--amm-bleu-vert-dark) 100%);
    color: #FFFFFF;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(53, 103, 110, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.panel-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(53, 103, 110, 0.5);
}

/* Toast de notification */
#toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translate(-50%, 20px);
    background: rgba(20, 36, 42, 0.95);
    color: #FFFFFF;
    border: 1.5px solid var(--amm-or-luxe);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 90;
}

#toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Modaux Interactifs : Paiement, Conciergerie Téléphone & Carnet Email */
#paymentModal, #phoneModal, #emailModal {
    position: fixed;
    inset: 0;
    background: rgba(16, 33, 38, 0.78);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#paymentModal.open, #phoneModal.open, #emailModal.open {
    opacity: 1;
    pointer-events: auto;
}

.payment-card {
    background: #FFFFFF;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    border: 1.5px solid var(--amm-or-luxe);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#paymentModal.open .payment-card,
#phoneModal.open .payment-card,
#emailModal.open .payment-card {
    transform: scale(1);
}

/* ========================================================
   RESPONSIVE DESIGN (SMARTPHONE & ÉCRANS TACTILES)
   ======================================================== */
@media (max-width: 768px) {
    .amm-site-header {
        height: 48px;
        padding: 0 12px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .brand-title-img {
        height: 18px;
        max-width: 160px;
    }

    .brand-titles span {
        display: none;
    }

    .fratries-nav-bar {
        display: none;
    }

    .btn-door-toggle {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .btn-legal-top {
        padding: 5px 8px;
        font-size: 0.70rem;
    }

    .btn-legal-top .legal-label {
        display: none;
    }

    .amm-immersive-footer {
        height: 20px;
        font-size: 0.58rem;
        gap: 6px;
        padding: 0 6px;
    }

    .cart-indicator {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    #emailHotspot {
        left: 14%;
        top: 50%;
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    #phoneHotspot {
        left: 26%;
        top: 55%;
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    #tpeHotspot {
        left: 37.5%;
        top: 58%;
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    #giftHotspot {
        left: 78%;
        top: 40%;
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    #caisseBottomBar {
        bottom: 74px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 6px 10px;
    }

    .caisse-action-btn {
        font-size: 0.74rem;
        padding: 6px 12px;
    }

    .caisse-badge-top {
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    #productPanel {
        width: calc(100vw - 20px);
        right: 10px;
        top: 54px;
        bottom: 60px;
    }
}
