/*1. CONFIGURATION & VARIABLES */
:root {
    --bg-void: #0a0514;      
    --gold-antique: #d4af37;  
    --gold-light: #f9e5a8;   
    --purple-royal: #240b36; 
    
    --font-title: 'Cinzel', serif;         
    --font-spell: 'Great Vibes', cursive; 
    --font-body: 'Playfair Display', serif; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* FOOTER  */
.magic-footer {
    text-align: center;
    padding: 15px 0;
    width: 100%;
    margin-top: 50px;
 
    margin-bottom: 120px; 
    position: relative;
    z-index: 10;
}

.footer-content p {
    font-family: 'Cinzel', serif; 
    color: #888;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px #000;
}

.goat-signature {
    color: #d4af37; 
    font-weight: bold;
    background: linear-gradient(to right, #d4af37, #f9e5a8, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 3s infinite linear;
}

/*animation de brillance sur le nom */
@keyframes shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.cursor-dot {
    width: 6px; height: 6px; background-color: var(--gold-light);
    position: fixed; border-radius: 50%; z-index: 9999; pointer-events: none;
    transform: translate(-50%, -50%); box-shadow: 0 0 15px var(--gold-light);
}
.cursor-outline {
    width: 40px; height: 40px; border: 1px solid var(--gold-antique);
    position: fixed; border-radius: 50%; z-index: 9999; pointer-events: none;
    transform: translate(-50%, -50%); transition: 0.1s; opacity: 0.5;
}


/* Les Particules Magiques*/
.magic-particle {
    position: fixed; pointer-events: none; width: 8px; height: 8px;
    background: radial-gradient(circle, #fff 10%, var(--gold-light) 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-light), 0 0 20px var(--purple-royal);
    z-index: 9999; animation: fadeAndFall 1s linear forwards;
}
@keyframes fadeAndFall {
    0% { opacity: 1; transform: scale(1) translate(0, 0); }
    100% { opacity: 0; transform: scale(0) translate(0, 50px); }
}

/* 2. FOND ANIMÉ : NUIT ÉTOILÉE DE SORCELLERIE */

/* 1. LE CONTENEUR GLOBAL FIXE */
.magic-bg-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -10;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%); 
    overflow: hidden;
}

/* 2. LES NUAGES MAGIQUES */
.nebula-clouds {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(36, 11, 54, 0.5), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 128, 128, 0.3), transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1), transparent 50%); 
    
    filter: blur(100px);
    opacity: 0.7;
    animation: nebulaPulse 60s infinite alternate ease-in-out;
}

/* 3. GÉNÉRATION DES ÉTOILES */

/* Étoiles lointaines */
.stars-small {
    position: absolute; top: 0; left: 0; width: 1px; height: 1px; background: transparent;
    box-shadow: 
        10vw 20vh #fff, 30vw 80vh #fff, 50vw 10vh #fff, 80vw 50vh #fff, 90vw 90vh #fff,
        15vw 45vh #fff, 60vw 30vh #fff, 25vw 95vh #fff, 75vw 15vh #fff, 40vw 60vh #fff,
        5vw 5vh #fff, 95vw 5vh #fff, 5vw 95vh #fff, 50vw 50vh #fff, 33vw 33vh #fff,
        12vw 22vh #fff, 32vw 82vh #fff, 52vw 12vh #fff, 82vw 52vh #fff, 92vw 92vh #fff;
    opacity: 0.5;
}

/* Étoiles moyennes*/
.stars-medium {
    position: absolute; top: 0; left: 0; width: 2px; height: 2px; background: transparent;
    box-shadow: 
        20vw 30vh #e0d5ce, 40vw 70vh #e0d5ce, 60vw 20vh #e0d5ce, 70vw 80vh #e0d5ce,
        10vw 90vh #e0d5ce, 85vw 40vh #e0d5ce, 55vw 55vh #e0d5ce, 30vw 10vh #e0d5ce;
    opacity: 0.7;
    animation: starDrift 100s linear infinite;
}

/* 4. POUSSIÈRE MAGIQUE */
.magic-dust {
    position: absolute; top: 0; left: 0; width: 3px; height: 3px; background: transparent;
    box-shadow: 
        15vw 25vh var(--gold-antique), 65vw 15vh var(--gold-light), 35vw 85vh var(--gold-antique),
        85vw 65vh var(--gold-light), 50vw 40vh var(--gold-antique), 10vw 60vh var(--gold-light);
    animation: magicTwinkle 8s infinite alternate;
}

/* Constellations */
.astronomy-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(rgba(212, 175, 55, 0.4) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 120px 120px, 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.3;
    z-index: -5;
    mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
    animation: astroPulse 10s infinite alternate;
}

/* Voile sombre */
.dark-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 40%, #0a0514 100%);
    z-index: -1;
    opacity: 0.6; 
}

/* ANIMATIONS D'AMBIANCE */
@keyframes nebulaPulse {
    0% { opacity: 0.6; transform: scale(1) rotate(0deg); filter: blur(100px) hue-rotate(0deg); }
    100% { opacity: 0.8; transform: scale(1.1) rotate(2deg); filter: blur(120px) hue-rotate(15deg); }
}

@keyframes starDrift {
    from { transform: translateY(0px); }
    to { transform: translateY(-200px); }
}


@keyframes magicTwinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.5); }
}

@keyframes astroPulse {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.35; transform: scale(1.02); }
}
/*ÉTOILES FILANTES */
.shooting-star {
    position: absolute;
   
    z-index: -20; 
    top: 50%; left: 50%;
    width: 4px; height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.8);
    opacity: 0; 
}

/* La queue de la comète */
.shooting-star::before {
    content: '';
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 300px; height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}


/* Des cycles longs (35s, 42s...) pour qu'elles ne passent pas souvent */
.shooting-star:nth-child(1) { top: 5%; right: 0; animation: animateShootingStarRare 10s linear infinite; animation-delay: 2s; }
.shooting-star:nth-child(2) { top: 15%; right: 100px; animation: animateShootingStarRare 42s linear infinite; animation-delay: 15s; }
.shooting-star:nth-child(3) { top: 25%; right: -50px; animation: animateShootingStarRare 28s linear infinite; animation-delay: 25s; }
.shooting-star:nth-child(4) { top: 10%; right: 200px; animation: animateShootingStarRare 50s linear infinite; animation-delay: 35s; }

/* --- L'ANIMATION "RARE" --- */
@keyframes animateShootingStarRare {
    0% { transform: rotate(315deg) translateX(0); opacity: 1; }
    5% { opacity: 1; } /* Reste visible pendant la traversée */
    10% { transform: rotate(315deg) translateX(-1500px); opacity: 0; } /* Disparaît après avoir traversé */
    100% { transform: rotate(315deg) translateX(-1500px); opacity: 0; } /* Reste invisible jusqu'au prochain cycle */
}


/* 3. LOADER : GRIMOIRE MAGIQUE*/
#loader-overlay {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: var(--bg-void);
    z-index: 999999;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    perspective: 1500px; overflow: hidden;
    transition: opacity 0.5s ease;
}

.loader-finished { opacity: 0; visibility: hidden; pointer-events: none; }

.book-container {
    position: relative; width: 200px; height: 280px;
    transform-style: preserve-3d;
    animation: floatBook 3s ease-in-out infinite;
}

.book {
    position: relative; width: 100%; height: 100%;
    transform-style: preserve-3d; transform: rotateX(10deg);
}

/* Pages */
.page {
    position: absolute; width: 95%; height: 96%; top: 2%; left: 0;
    background: #fdf6e3; border-radius: 2px 10px 10px 2px;
    transform-origin: left; box-shadow: inset 10px 0 20px rgba(0,0,0,0.1);
}
.page-flip { background: #e6dec8; transform: rotateY(0deg); }

/* Animation Pages */
.page-1 { z-index: 5; animation: flipPage 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.3s; }
.page-2 { z-index: 4; animation: flipPage 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.6s; }
.page-3 { z-index: 3; animation: flipPage 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.9s; }

/* Page Illuminée */
.page-right {
    z-index: 2; left: 2%; display: flex; justify-content: center; align-items: center;
    background: #fdf6e3; animation: lightUpPage 0.6s forwards 1.4s; 
}

.page-content {
    opacity: 0; text-align: center; transform: scale(0);
    animation: revealMagic 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.6s;
}
.page-content i { font-size: 3rem; color: var(--gold-antique); display: block; margin-bottom: 10px; }
.page-content span { font-family: var(--font-title); font-weight: bold; color: #240b36; font-size: 1.5rem; }

/* Couvertures */
.cover {
    position: absolute; width: 100%; height: 100%;
    background: #240b36; border-radius: 5px 15px 15px 5px;
    transform-origin: left; transform-style: preserve-3d;
}
.cover.front {
    z-index: 10; border: 2px solid var(--gold-antique);
    display: flex; justify-content: center; align-items: center;
    transform: rotateY(0deg); animation: openCover 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.1s;
}
.cover.back { z-index: 0; background: #1a0525; }
.cover-design { border: 1px solid rgba(212, 175, 55, 0.3); width: 80%; height: 80%; display: flex; justify-content: center; align-items: center; }
.icon-gold { font-size: 3rem; color: var(--gold-antique); }

.loader-text {
    margin-top: 60px; font-family: var(--font-magic); color: var(--gold-light);
    animation: pulseText 1.5s infinite alternate; transition: opacity 0.2s;
}

/* Zoom Final */
.zoom-into-book { pointer-events: none; }
.zoom-into-book .loader-text { opacity: 0 !important; transform: scale(0.9); transition: all 0.1s ease-out; }
.zoom-into-book .book-container { animation: enterBook 0.8s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards; }

/* Keyframes */
@keyframes floatBook { 0%, 100% { transform: translateY(0) rotateX(10deg); } 50% { transform: translateY(-10px) rotateX(12deg); } }
@keyframes openCover { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(-180deg); } }
@keyframes flipPage { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(-175deg); } }
@keyframes lightUpPage { 0% { background: #fdf6e3; box-shadow: none; } 100% { background: radial-gradient(circle, #fff 10%, #fdf6e3 90%); box-shadow: 0 0 60px 30px rgba(255, 215, 0, 0.6); } }
@keyframes revealMagic { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 10px var(--gold-antique)); } }
@keyframes enterBook { 0% { transform: scale(1) translateZ(0); opacity: 1; } 30% { opacity: 0.9; } 100% { transform: scale(22) translateZ(200px); opacity: 0; } }
@keyframes pulseText { from { opacity: 0.5; } to { opacity: 1; text-shadow: 0 0 20px var(--gold-antique); } }


/*5. LOGO & HEADER & DOCK */
.top-left-logo {
    position: fixed; top: 25px; left: 30px;
    display: flex; align-items: center; text-decoration: none;
    z-index: 100;
    background: rgba(10, 5, 20, 0.6); backdrop-filter: blur(5px);
    padding: 10px 20px; border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2); transition: 0.3s;
}
.top-left-logo img {
    width: 45px; height: 45px; border-radius: 50%;
    border: 2px solid var(--gold-antique); margin-right: 15px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.top-left-logo .logo-text {
    font-family: var(--font-title); color: var(--gold-antique);
    font-weight: bold; font-size: 1.2rem; letter-spacing: 2px;
}
.top-left-logo:hover { border-color: var(--gold-light); box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }

/* Menu Dock */
.arcane-dock {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 1000;
    background: rgba(10, 5, 20, 0.85); backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 50px;
    padding: 0 30px; height: 80px; display: flex; align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dock-list { display: flex; align-items: center; gap: 15px; list-style: none; }
.dock-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; color: #888; position: relative; width: 60px; height: 60px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.dock-icon { font-size: 1.5rem; margin-bottom: 5px; transition: 0.3s; }
.dock-label {
    position: absolute; top: -40px; background: var(--gold-antique); color: var(--bg-void);
    font-family: var(--font-title); font-size: 0.8rem; font-weight: bold;
    padding: 4px 10px; border-radius: 5px; opacity: 0; transform: translateY(10px);
    transition: 0.3s; pointer-events: none; white-space: nowrap;
}
.dock-link:hover { transform: translateY(-15px) scale(1.1); color: var(--gold-light); }
.dock-link:hover .dock-label { opacity: 1; transform: translateY(0); }
.dock-link.active { color: var(--gold-antique); }
.logo-item { margin: 0 20px; }
.dock-logo { font-family: var(--font-spell); font-size: 2rem; color: var(--gold-antique); transform: rotate(-5deg); }


/* 6. PAGE DASHBOARD & ARRIÈRE PLAN */
.main-dashboard {
    min-height: 100vh; display: flex; justify-content: center; align-items: center;
    position: relative; overflow: hidden; padding: 100px 20px;
}

/* Objets d'arrière-plan*/
.background-props.small-props { pointer-events: none; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.magic-prop {
    position: absolute; color: var(--gold-antique); opacity: 0.07;
    font-size: 4rem; filter: blur(1px);
}
.prop-1 { top: 10%; left: 15%; animation: floatProp 8s infinite; }
.prop-2 { bottom: 20%; right: 10%; font-size: 5rem; animation: floatProp 10s infinite reverse; }
.prop-3 { bottom: 5%; left: 25%; animation: floatProp 12s infinite 1s; }
.prop-4 { top: 20%; right: 20%; opacity: 0.05; animation: floatProp 15s infinite; }
.prop-5 { top: 50%; left: 5%; font-size: 3rem; animation: floatProp 9s infinite -2s; }
.prop-6 { top: 60%; right: 5%; font-size: 3.5rem; animation: floatProp 11s infinite reverse -1s; }
.prop-7 { bottom: 30%; left: 50%; font-size: 2.5rem; animation: floatProp 7s infinite 2s; }
.prop-8 { top: 5%; right: 40%; font-size: 4rem; animation: floatProp 13s infinite; }
@keyframes floatProp { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(10deg); } }

/* Les Grands Sorciers*/
.static-wizards-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-wizard {
    position: absolute; width: auto; height: 85vh;
    opacity: 0.15; mix-blend-mode: screen;
    filter: grayscale(100%) brightness(1.5) contrast(1.2);
    transition: transform 0.5s ease;
}
.wizard-left { bottom: -50px; left: -50px; transform: rotate(-5deg); }
.wizard-right { top: -50px; right: -50px; transform: rotate(5deg); }

/* Rubriques centrales */
.dashboard-content { text-align: center; z-index: 2; max-width: 1000px; width: 100%; }
.small-intro { font-family: var(--font-spell); font-size: 2rem; color: var(--gold-light); opacity: 0.7; margin-bottom: 0; text-shadow: 0 0 15px var(--gold-antique); }
.dashboard-title { font-family: var(--font-title); font-size: 3rem; color: white; margin-bottom: 50px; text-shadow: 0 0 20px rgba(189, 0, 255, 0.3); }

.rubrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; padding: 20px; }
.rubric-card {
    text-decoration: none; background: rgba(36, 11, 54, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2); padding: 40px 30px;
    border-radius: 20px; position: relative; overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column; align-items: center;
}
.card-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    opacity: 0; transition: 0.4s;
}
.card-icon { font-size: 3.5rem; color: var(--gold-antique); margin-bottom: 20px; transition: 0.4s; }
.rubric-card h3 { font-family: var(--font-title); color: white; font-size: 1.5rem; margin-bottom: 10px; }
.rubric-card p { font-family: var(--font-body); color: #ccc; font-size: 0.9rem; }
.rubric-card:hover { transform: translateY(-10px); border-color: var(--gold-light); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.rubric-card:hover .card-glow { opacity: 1; transform: scale(1.2); }
.rubric-card:hover .card-icon { transform: scale(1.1); text-shadow: 0 0 15px var(--gold-light); }
.rubric-card.featured { background: rgba(45, 15, 65, 0.7); border-color: var(--gold-antique); transform: scale(1.05); }
.rubric-card.featured:hover { transform: scale(1.1) translateY(-10px); }
.badge {
    position: absolute; top: 15px; right: 15px; background: var(--gold-antique); color: var(--bg-void);
    font-family: var(--font-title); font-size: 0.7rem; font-weight: bold;
    padding: 5px 10px; border-radius: 20px; box-shadow: 0 0 10px var(--gold-antique);
}


/* 7. PAGE ALLOS & STYLE PANIER*/
.allos-container { padding: 100px 20px 120px 20px; max-width: 1200px; margin: 0 auto; text-align: center; }
.page-title { font-family: var(--font-title); font-size: 3rem; color: var(--gold-antique); margin-bottom: 30px; text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
.menu-filters { margin-bottom: 40px; }
.filter-btn { background: transparent; border: 1px solid var(--gold-antique); color: white; padding: 10px 20px; margin: 0 5px; cursor: pointer; font-family: var(--font-title); transition: 0.3s; }
.filter-btn:hover, .filter-btn.active { background: var(--gold-antique); color: var(--bg-void); box-shadow: 0 0 15px var(--gold-antique); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.menu-item { background: rgba(36, 11, 54, 0.6); border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 15px; overflow: hidden; transition: 0.3s; position: relative; display: flex; flex-direction: column; }
.menu-item:hover { transform: translateY(-5px); border-color: var(--gold-light); }
.item-img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid rgba(212, 175, 55, 0.1); }
.item-content { padding: 20px; text-align: left; flex-grow: 1; }
.item-title { font-family: var(--font-title); color: var(--gold-light); font-size: 1.2rem; }
.item-desc { font-size: 0.9rem; color: #ccc; margin: 10px 0; font-style: italic; }
.item-price { font-size: 1.3rem; color: var(--gold-antique); font-weight: bold; float: right; }
.add-btn { width: 100%; padding: 15px; border: none; background: linear-gradient(45deg, var(--purple-royal), #4a1c6e); color: white; font-family: var(--font-title); cursor: pointer; transition: 0.3s; border-top: 1px solid rgba(255,255,255,0.1); }
.add-btn:hover { background: var(--gold-antique); color: var(--bg-void); }

/* Panier */
.cart-trigger { position: fixed; bottom: 30px; right: 30px; width: 70px; height: 70px; background: var(--gold-antique); color: var(--bg-void); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; cursor: pointer; z-index: 2000; box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); transition: 0.3s; }
.cart-trigger:hover { transform: scale(1.1) rotate(10deg); }
.cart-count { position: absolute; top: -5px; right: -5px; background: red; color: white; font-size: 0.8rem; width: 25px; height: 25px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; }

.cart-sidebar { position: fixed; top: 0; right: -400px; width: 350px; height: 100vh; background: #11051b; border-left: 2px solid var(--gold-antique); z-index: 3000; transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0); padding: 20px; display: flex; flex-direction: column; }
.cart-sidebar.open { right: 0; }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2500; display: none; backdrop-filter: blur(3px); }
.cart-overlay.open { display: block; }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.cart-items { flex-grow: 1; overflow-y: auto; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.remove-item { color: red; cursor: pointer; margin-left: 10px; }
.input-group input { width: 100%; padding: 12px; margin-bottom: 10px; background: rgba(255,255,255,0.1); border: 1px solid #444; color: white; border-radius: 5px; }
.checkout-btn { width: 100%; padding: 15px; background: var(--gold-antique); color: var(--bg-void); border: none; font-weight: bold; cursor: pointer; margin-top: 10px; border-radius: 5px; }
.checkout-btn:hover { background: white; }

/* Modal Succès */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 4000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: #1a0525; border: 2px solid var(--gold-antique); padding: 40px; border-radius: 15px; text-align: center; max-width: 400px; width: 90%; box-shadow: 0 0 30px rgba(212, 175, 55, 0.3); transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-icon { margin-bottom: 20px; text-align: center; }
.modal-icon img { max-width: 150px; height: auto; border-radius: 10px; box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); animation: fadeInOwl 0.5s ease-out; }
@keyframes fadeInOwl { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-content h2 { font-family: var(--font-title); color: white; margin-bottom: 10px; }
.modal-content p { color: #ccc; margin-bottom: 20px; }

/*ZONE "COMING SOON" */

/* 1. Le Conteneur Principal */
.locked-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 20px;
}

/* 2. Le Contenu Flouté (Arrière-plan) */
.blurred-content {
    filter: blur(8px) grayscale(60%);
    opacity: 0.4;
    pointer-events: none; 
    user-select: none;
    transition: 0.5s;
}

/* 3. Le Panneau Suspendu (Conteneur) */
.hanging-sign-container {
    position: absolute;
    top: -20px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    
    /* Animation de balancement (Pendule) */
    animation: signSway 4s ease-in-out infinite alternate;
    transform-origin: top center; 
}

/* 4. Les Chaînes (Visuel) */
.chain {
    position: absolute;
    top: -100px;
    width: 4px;
    height: 150px;
    background: repeating-linear-gradient(
        to bottom,
        #555,
        #555 10px,
        #333 10px,
        #333 20px
    ); /* Effet maillons de chaîne */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    z-index: 1;
}
.chain-left { left: 40px; }
.chain-right { right: 40px; }

/* 5. Le Panneau en Bois */
.wooden-sign {
    position: relative;
    margin-top: 130px;
    background: linear-gradient(to bottom right, #3e2723, #251612);
    width: 350px;
    padding: 30px 20px;
    text-align: center;
    border: 4px solid var(--gold-antique);
    border-radius: 10px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.8),
        inset 0 0 50px rgba(0,0,0,0.8);
    z-index: 2;
}


.wooden-sign::before, .wooden-sign::after {
    content: ''; position: absolute; top: 10px; width: 15px; height: 15px;
    background: radial-gradient(circle, var(--gold-light) 20%, var(--gold-antique) 100%);
    border-radius: 50%; box-shadow: 0 2px 5px black;
}
.wooden-sign::before { left: 10px; }
.wooden-sign::after { right: 10px; }

/* 6. Contenu du Panneau */
.sign-content {
    color: var(--gold-light);
    font-family: var(--font-title);
}
.icon-lock {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--gold-antique);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}
.sign-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.sign-content p {
    font-family: var(--font-spell);
    color: #ccc;
    margin-bottom: 20px;
}
.coming-soon-text {
    display: inline-block;
    background: var(--gold-antique);
    color: var(--bg-void);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 0 15px var(--gold-antique);
}

/* 7. Animation de Balancement */
@keyframes signSway {
    0% { transform: translateX(-50%) rotate(-3deg); }
    100% { transform: translateX(-50%) rotate(3deg); }
}

/* Petit ajustement pour Mobile */
@media (max-width: 768px) {
    .wooden-sign { width: 280px; }
}
/*8. VERSION MOBILE (RESPONSIVE)*/
@media (max-width: 768px) {
    /* 1. On cache le curseur baguette */
    .cursor-dot, .cursor-outline { display: none !important; }
    * { cursor: auto; }

    /* 2. LOADER LIVRE */
    .book-container {
        animation: floatBookMobile 3s ease-in-out infinite;
        
        
        margin: 0 auto; 
        left: 0; right: 0;
    }

    /* Le texte de chargement */
    .loader-text {
        font-size: 1rem;
        width: 100%;
        text-align: center; 
        margin-top: 10px;
    }

    
    @keyframes enterBook {
        0% { transform: scale(0.5) translateZ(0); opacity: 1; }
        100% { transform: scale(10) translateZ(50px); opacity: 0; }
    }

    /* 3. LOGO */
    .top-left-logo { 
        padding: 5px 15px; top: 15px; left: 15px; 
        background: rgba(10, 5, 20, 0.8); 
    }
    .top-left-logo .logo-text { display: none; }
    .top-left-logo img { margin-right: 0; width: 40px; height: 40px; }

    /* 4. MENU DOCK */
    .arcane-dock { 
        width: 90%; height: 60px; bottom: 20px; 
        padding: 0 15px; justify-content: space-around; 
    }
    .dock-list { gap: 0; width: 100%; justify-content: space-between; }
    .logo-item { display: none; }
    .dock-link { width: 40px; height: 40px; }
    .dock-icon { font-size: 1.2rem; margin-bottom: 0; }
    
    /* 5. CONTENU PRINCIPAL */
    .main-dashboard { 
        padding: 100px 20px 100px 20px; 
        align-items: flex-start; 
        height: auto; 
        min-height: 100vh; 
    }
    .dashboard-title { font-size: 2rem; margin-top: 20px; text-align: center; width: 100%; }
    .rubrics-grid { grid-template-columns: 1fr; gap: 20px; width: 100%; }
    
    /* Allègement des effets de fond sur mobile */
    .prop-2, .prop-3, .prop-6 { display: none; }
    .bg-wizard { opacity: 0.05; }
    
    
    .cart-trigger {
        bottom: 100px !important; 
        right: 20px;
        width: 60px; height: 60px; font-size: 1.5rem;
    }
}

/* --- ANIMATION SPÉCIALE MOBILE --- */
@keyframes floatBookMobile {
    0%, 100% { 
        
        transform: scale(0.5) translateY(0) rotateX(10deg); 
    } 
    50% { 
        transform: scale(0.5) translateY(-10px) rotateX(12deg); 
    }
}