/* ==========================================================================
   ESPRITZ — Design System partagé (multi-pages)
   Chargé sur toutes les pages du site. Une seule source à maintenir.
   ========================================================================== */

body {
    background-color: #050505;
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #050505 70%);
    color: #e5e5e5;
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
}

/* Glassmorphism */
.glass-panel { background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); }
.mobile-menu-overlay { background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(20px); }

/* Animations */
@keyframes floatBubble { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.bubble-anim { animation: floatBubble 6s ease-in-out infinite; }

/* Cartes & Menu */
.bento-card { background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; transition: all 0.3s ease; }
.bento-card:hover { border-color: rgba(217, 119, 6, 0.5); box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.15); transform: translateY(-5px); }
.bento-featured { background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.95)); border: 1px solid rgba(217, 119, 6, 0.3); box-shadow: 0 0 30px rgba(217, 119, 6, 0.05); }
.nav-pill { background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* Effet Diamant */
.jewel-effect { position: relative; overflow: hidden; animation: floatBubble 6s ease-in-out infinite; background: linear-gradient(135deg, rgba(30,30,30,0.9), rgba(10,10,10,0.95)); }
.jewel-effect::before { content: ''; position: absolute; top: 0; left: -150%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); transform: skewX(-25deg); animation: jewelShine 5s infinite; pointer-events: none; }
@keyframes jewelShine { 0% { left: -150%; opacity: 0; } 50% { opacity: 0.5; } 100% { left: 150%; opacity: 0; } }

/* Styles Spécifiques */
.chart-container { position: relative; width: 100%; height: 300px; margin: 0 auto; }
@media (min-width: 768px) { .chart-container { height: 350px; } }
.text-glow { text-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
input[type=range] { -webkit-appearance: none; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%; background: #F59E0B; cursor: pointer; margin-top: -8px; box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; cursor: pointer; background: #333; border-radius: 2px; }

/* CTA OR/DORÉ VIBRANT */
.btn-gold {
    display: inline-block;
    background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
    color: black;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    /* Padding/forme par défaut pour usage direct (surchargeable par utilitaires) */
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-align: center;
}
.btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    background: linear-gradient(90deg, #fbbf24 0%, #b45309 100%);
}

/* Modal Légale */
.modal-overlay { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); }
.modal-content { max-height: 80vh; overflow-y: auto; }
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-thumb { background: #F59E0B; border-radius: 3px; }

/* ==========================================================================
   NAVIGATION MULTI-PAGES (menu + sous-menus + hamburger)
   ========================================================================== */

/* Dropdown Desktop : apparition douce au hover/focus */
.dropdown-menu {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
    z-index: 60;
}
.nav-group:hover .dropdown-menu,
.nav-group:focus-within .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

/* Overlay Mobile */
#mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.is-open { opacity: 1; visibility: visible; }

/* Accordéon Mobile */
.submenu-mobile { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.submenu-mobile.is-open { max-height: 500px; }
.accordion-chevron { transition: transform 0.3s ease; }
.accordion-toggle.is-open .accordion-chevron { transform: rotate(180deg); }
