:root {
    --bg-deep: #050507;
    --bg-card: rgba(18, 18, 22, 0.65);
    --accent-gold: #d4af37;
    --accent-gold-bright: #f5e08c;
    --gold-glow: rgba(212, 175, 55, 0.25);
    --text-primary: #f8f8fa;
    --text-secondary: #9090a0;
    --glass-border: rgba(212, 175, 55, 0.18);
    --transition-bounce: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(ellipse 80% 80% at 50% -20%, rgba(212, 175, 55, 0.08), transparent 80%),
        radial-gradient(circle at 10% 90%, rgba(30, 25, 45, 0.4), transparent 50%);
}

/* CURSEUR FLÈCHE DE CUPIDON GLOBAL */
.custom-cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    transform: translate(0, 0) rotate(45deg);
    z-index: 99999;
    transition: transform 0.08s ease-out, filter 0.2s ease;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.cupid-arrow-svg {
    width: 100%;
    height: 100%;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4)); }
    100% { filter: drop-shadow(0 0 15px rgba(245, 224, 140, 0.9)); }
}

.cursor-symbol {
    position: absolute;
    top: 5px;  
    left: 30px; 
    transform: rotate(-45deg) scale(0.5);
    color: var(--accent-gold-bright);
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.9);
}

body.hovering .custom-cursor {
    transform: translate(0, 0) rotate(45deg) scale(1.1);
}

body.zoom-ready .custom-cursor {
    transform: translate(0, 0) rotate(45deg) scale(1.2);
    filter: drop-shadow(0 0 18px var(--accent-gold-bright));
}

body.zoom-ready .cursor-plus-sign {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

body.zoomed-cursor .custom-cursor {
    transform: translate(0, 0) rotate(45deg) scale(1.2);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.8));
}

body.zoomed-cursor .cursor-minus-sign {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

/* Header & Gallery styles... */
.header-container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-top: -120px; padding: 0 20px; }
.hero-logo-container { display: flex; justify-content: center; align-items: center; margin-bottom: 15px; width: 100%; }
.hero-custom-logo { max-height: 150px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8)); }
.hero-badge { display: inline-flex; align-items: center; justify-content: center; padding: 10px 25px; border-radius: 40px; background: rgba(212, 175, 55, 0.05); border: 1px solid var(--glass-border); backdrop-filter: blur(20px); box-shadow: 0 0 30px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1); margin: 0 auto; }
.hero-badge span { font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-gold-bright); font-weight: 500; }

.filter-wrapper { position: sticky; top: 20px; z-index: 50; display: flex; justify-content: center; margin: 25px auto 40px; padding: 0 20px; }
.filter-bar { display: inline-flex; gap: 8px; padding: 6px; background: rgba(10, 10, 14, 0.8); border: 1px solid var(--glass-border); border-radius: 50px; backdrop-filter: blur(25px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.filter-btn { background: transparent; border: none; color: var(--text-secondary); padding: 12px 28px; border-radius: 40px; font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: var(--transition-bounce); display: flex; align-items: center; gap: 10px; font-weight: 500; }
.filter-btn:hover { color: var(--text-primary); }
.filter-btn.active { background: linear-gradient(135deg, var(--accent-gold) 0%, #b89228 100%); color: #050507; font-weight: 700; box-shadow: 0 0 25px var(--gold-glow); }

.gallery-container { position: relative; z-index: 2; max-width: 1550px; margin: 0 auto; padding: 0 30px 100px; }
.gallery-masonry { column-count: 3; column-gap: 28px; }
@media (max-width: 1100px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 650px) { .gallery-masonry { column-count: 1; } }

.gallery-item { break-inside: avoid; margin-bottom: 28px; position: relative; border-radius: 18px; overflow: hidden; background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06); transition: var(--transition-bounce); cursor: pointer; }
.gallery-item:hover { transform: translateY(-12px); border-color: var(--accent-gold); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow); }
.gallery-img-wrapper { position: relative; width: 100%; overflow: hidden; }
.gallery-img { width: 100%; height: auto; display: block; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.gallery-item:hover .gallery-img { transform: scale(1.08); }

.item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 5, 7, 0.95) 0%, rgba(5, 5, 7, 0.3) 50%, transparent 100%); opacity: 0; transition: var(--transition-bounce); display: flex; flex-direction: column; justifyContent: flex-end; padding: 30px; }
.gallery-item:hover .item-overlay { opacity: 1; }
.item-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--accent-gold-bright); letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.item-title { font-family: 'Cinzel', serif; font-size: 1.4rem; color: #fff; margin-bottom: 8px; }
.item-action { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.8rem; letter-spacing: 1px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(3, 3, 5, 0.96); backdrop-filter: blur(20px); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; user-select: none; }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-box { position: relative; max-width: 85vw; max-height: 82vh; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.lightbox-box.zoomed { cursor: grab; }
.lightbox-box.zoomed:active { cursor: grabbing; }
.lightbox-img { max-width: 100%; max-height: 72vh; border-radius: 12px; box-shadow: 0 0 80px rgba(0,0,0,0.9), 0 0 40px rgba(212, 175, 55, 0.15); border: 1px solid var(--glass-border); object-fit: contain; transition: transform 0.1s ease-out; transform-origin: center center; pointer-events: none; }
.lightbox-caption { margin-top: 15px; text-align: center; }
.lightbox-caption h3 { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--accent-gold-bright); letter-spacing: 2px; }

.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(18, 18, 22, 0.8); color: var(--accent-gold-bright); border: 1px solid var(--glass-border); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: var(--transition-bounce); z-index: 10005; }
.nav-btn:hover { background: linear-gradient(135deg, var(--accent-gold) 0%, #b89228 100%); color: var(--bg-deep); border-color: var(--accent-gold-bright); transform: translateY(-50%) scale(1.1); box-shadow: 0 0 25px var(--gold-glow); }
.prev-btn { left: 40px; }
.next-btn { right: 40px; }

.lightbox-close { position: absolute; top: 30px; right: 40px; background: rgba(18, 18, 22, 0.8); border: 1px solid var(--glass-border); color: var(--accent-gold-bright); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10005; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: var(--transition-bounce); }
.lightbox-close:hover { background: linear-gradient(135deg, var(--accent-gold) 0%, #b89228 100%); color: var(--bg-deep); transform: rotate(90deg) scale(1.05); }

/* Footer */
footer { position: relative; z-index: 2; padding: 40px 50px; border-top: 1px solid rgba(255, 255, 255, 0.05); background: rgba(5, 5, 7, 0.9); backdrop-filter: blur(10px); font-family: 'Cinzel', serif; }
.footer-content { max-width: 1550px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.footer-left { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.footer-left p { color: var(--text-secondary); font-size: 0.75rem; letter-spacing: 1.5px; }
.footer-left span { color: var(--accent-gold); font-weight: 600; }
.footer-sub { font-size: 0.7rem !important; letter-spacing: 2px; }
.footer-center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-credit-text { font-size: 0.75rem; color: var(--text-secondary); letter-spacing: 2px; text-transform: uppercase; }
.footer-logo-credit { max-height: 25px; width: auto; filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4)); }
.footer-right { display: flex; align-items: center; gap: 25px; }
.footer-link { color: var(--accent-gold-bright); text-decoration: none; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; transition: var(--transition-bounce); }
.footer-link:hover { color: #fff; text-shadow: 0 0 10px var(--accent-gold); }
.footer-socials { display: flex; gap: 15px; }
.footer-socials a { color: var(--accent-gold-bright); font-size: 0.75rem; font-weight: 700; text-decoration: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(18, 18, 22, 0.8); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; transition: var(--transition-bounce); }
.footer-socials a:hover { background: linear-gradient(135deg, var(--accent-gold) 0%, #b89228 100%); color: var(--bg-deep); border-color: var(--accent-gold-bright); transform: translateY(-3px); box-shadow: 0 0 15px var(--gold-glow); }

@media (max-width: 900px) {
    .footer-content { flex-direction: column; text-align: center; }
    .footer-left { align-items: center; text-align: center; }
}

/* Splash Screen */
#intro-splash { position: fixed; inset: 0; background-color: var(--bg-deep); z-index: 999999; display: flex; align-items: center; justify-content: center; opacity: 1; visibility: visible; transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s ease; overflow: hidden; }
#intro-splash.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-content { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 2; animation: zoomInContent 5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes zoomInContent { 0% { transform: scale(0.3); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1.30); opacity: 1; } }
.intro-logo { max-height: 300px; width: auto; margin-bottom: 20px; filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.7)); }
.intro-title { font-family: 'Cinzel', serif; font-size: 2.2rem; color: var(--accent-gold-bright); letter-spacing: 5px; margin-bottom: 8px; text-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
.intro-subtitle { font-size: 0.85rem; color: var(--text-secondary); letter-spacing: 7px; text-transform: uppercase; margin-bottom: 35px; }

.loader-container { width: 280px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.loader-bar-bg { width: 100%; height: 3px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; border: 1px solid var(--glass-border); }
.loader-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-bright)); box-shadow: 0 0 15px var(--accent-gold-bright); transition: width 0.1s linear; }
.loader-percentage { font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--accent-gold-bright); letter-spacing: 2px; }

.sparkles-container { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sparkle { position: absolute; background: var(--accent-gold-bright); border-radius: 50%; box-shadow: 0 0 10px var(--accent-gold), 0 0 20px #fff; animation: floatParticle 4s infinite ease-in-out; }
@keyframes floatParticle { 0% { transform: translateY(0px) scale(0.2); opacity: 0; } 50% { opacity: 0.8; transform: translateY(-60px) scale(1); } 100% { transform: translateY(-120px) scale(0); opacity: 0; } }

/* --- MISE EN PAGE STYLE LIVRE POUR "QUI SUIS-JE" --- */
.about-book-section { position: relative; z-index: 2; max-width: 1300px; margin: 40px auto 80px; padding: 0 30px; }
.about-book-container { background: rgba(18, 18, 22, 0.5); border: 1px solid var(--glass-border); border-radius: 24px; padding: 50px; backdrop-filter: blur(20px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); }
.about-top-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; margin-bottom: 40px; }
.about-text-left { display: flex; flex-direction: column; gap: 20px; }
.about-title { font-family: 'Cinzel', serif; font-size: 2.5rem; color: var(--accent-gold-bright); letter-spacing: 3px; }
.about-divider { width: 60px; height: 2px; background: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold); }
.about-desc { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-secondary); font-size: 1rem; line-height: 1.8; letter-spacing: 0.5px; }

.about-photo-right { display: flex; justify-content: center; }
.book-page-frame { position: relative; width: 100%; max-width: 200px; border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: -15px 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.1); transform: perspective(1000px) rotateY(-3deg); transition: var(--transition-bounce); }
.book-page-frame:hover { transform: perspective(1000px) rotateY(0deg) scale(1.02); border-color: var(--accent-gold); }
.about-img { width: 100%; height: auto; display: block; object-fit: cover; }

.about-bottom-full { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 35px; }

@media (max-width: 900px) {
    .about-top-grid { grid-template-columns: 1fr; }
    .about-book-container { padding: 30px; }
    .book-page-frame { transform: none; max-width: 100%; }
}
