/* =========================================
   BERTHO WEBMASTER - DESIGN SYSTEM V3.1
   Noir. Or. Digital.
   1 fichier CSS pour 7 pages HTML
   Version exacte de ton code inline
   ========================================= */

/* =========================================
   1. DESIGN SYSTEM (Variables)
   ========================================= */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gold: #D4AF37;
    --color-gold-hover: #F2D265;
    
    --bg-primary: var(--color-black);
    --bg-secondary: #0A0A0B;
    --text-primary: var(--color-white);
    --text-secondary: #86868B;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --glass-bg: rgba(10, 10, 10, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 980px;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s var(--ease-out-expo);
    --transition-slow: 0.6s var(--ease-out-expo);
    
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.3);
}

[data-theme="light"] {
    --bg-primary: #F5F5F7;
    --bg-secondary: var(--color-white);
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.1);
}

/* =========================================
   2. BASE & RESET
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { 
    font-family: var(--font-main); 
    background-color: var(--bg-primary); 
    color: var(--text-primary); 
    line-height: 1.3; 
    overflow-x: hidden; 
    transition: background-color var(--transition-slow), color var(--transition-slow); 
}

body::before { 
    content: ""; 
    position: fixed; 
    inset: 0; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"); 
    pointer-events: none; 
    z-index: 9999; 
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
main { padding-top: 72px; min-height: 100vh; }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* FIX I18N ABSOLU */
html[lang="fr"] [data-lang]:not([data-lang="fr"]),
html[lang="en"] [data-lang]:not([data-lang="en"]),
html[lang="ar"] [data-lang]:not([data-lang="ar"]),
html[lang="ln"] [data-lang]:not([data-lang="ln"]),
html[lang="es"] [data-lang]:not([data-lang="es"]) {
    display: none !important;
}

html[dir="rtl"] { text-align: right; }
html[dir="rtl"] .header-inner, html[dir="rtl"] .header-actions { flex-direction: row-reverse; }

/* =========================================
   3. NAVIGATION (Desktop & Mobile)
   ========================================= */
.header-ceo { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 72px; 
    background: var(--glass-bg); 
    backdrop-filter: blur(24px) saturate(180%); 
    -webkit-backdrop-filter: blur(24px) saturate(180%); 
    border-bottom: 1px solid var(--border-color); 
    z-index: 10000; 
    display: flex; 
    align-items: center; 
    transition: var(--transition-fast); 
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.logo-ceo { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); text-decoration: none; letter-spacing: -0.04em; position: relative; z-index: 10001; }
.logo-ceo span { color: var(--color-gold); }

.desktop-nav { display: none; gap: 2.5rem; align-items: center; }
@media(min-width: 950px) { .desktop-nav { display: flex; } }
.nav-link { color: var(--text-primary); text-decoration: none; font-size: 0.95rem; font-weight: 600; position: relative; padding: 0.5rem 0; transition: color var(--transition-fast); }
.nav-link:hover { color: var(--color-gold); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--color-gold); transition: width 0.3s var(--ease-out-expo); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; gap: 1rem; align-items: center; position: relative; z-index: 10001; }
.btn-icon { 
    background: transparent; 
    border: 1px solid var(--border-color); 
    color: var(--text-primary); 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    display: grid; 
    place-items: center; 
    font-size: 0.875rem; 
    font-weight: 600; 
    transition: var(--transition-fast); 
}
.btn-icon:hover { border-color: var(--color-gold); color: var(--color-gold); transform: translateY(-2px); }

.burger-btn { display: grid; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; width: 40px; height: 40px; place-items: center; z-index: 10001; }
.burger-line { width: 24px; height: 2px; background: var(--text-primary); transition: var(--transition-fast); }
@media(min-width: 950px) { .burger-btn { display: none; } }

.burger-btn.active .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.active .burger-line:nth-child(2) { opacity: 0; }
.burger-btn.active .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: var(--glass-bg); 
    backdrop-filter: blur(40px) saturate(200%); 
    -webkit-backdrop-filter: blur(40px) saturate(200%); 
    z-index: 9999; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 2.5rem; 
    opacity: 0; 
    visibility: hidden; 
    transition: var(--transition-slow); 
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav-link { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); text-decoration: none; transform: translateY(20px); opacity: 0; transition: var(--transition-slow); }
.mobile-nav-overlay.active .mobile-nav-link { transform: translateY(0); opacity: 1; }

.lang-dropdown { position: relative; }
.lang-menu { 
    position: absolute; 
    top: calc(100% + 8px); 
    right: 0; 
    background: var(--bg-secondary); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-sm); 
    padding: 0.5rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.25rem; 
    min-width: 140px; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(-10px); 
    transition: var(--transition-fast); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.4); 
}
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu[aria-expanded="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { 
    background: none; 
    border: none; 
    color: var(--text-primary); 
    padding: 0.75rem 1rem; 
    text-align: start; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 0.875rem; 
    font-weight: 500; 
    transition: var(--transition-fast); 
}
.lang-option:hover, .lang-option[aria-selected="true"] { background: rgba(212, 175, 55, 0.1); color: var(--color-gold); }

.whatsapp-float { 
    position: fixed; 
    bottom: 2rem; 
    right: 2rem; 
    width: 64px; 
    height: 64px; 
    background: var(--color-gold); 
    border-radius: 50%; 
    display: grid; 
    place-items: center; 
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3); 
    z-index: 9998; 
    transition: var(--transition-fast); 
}
html[dir="rtl"] .whatsapp-float { right: auto; left: 2rem; }
.whatsapp-float:hover { transform: scale(1.1) rotate(5deg); background: var(--color-gold-hover); }
.whatsapp-float svg { width: 32px; height: 32px; fill: var(--color-black); }

/* =========================================
   4. SECTIONS GLOBALES & BOUTONS
   ========================================= */
.section-padding { padding: 8rem 0; border-top: 1px solid var(--border-color); }
.section-header { margin-bottom: 4rem; text-align: center; }
.section-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 1rem; line-height: 1.1;}
.section-sub { font-size: clamp(1.125rem, 2vw, 1.35rem); color: var(--text-secondary); max-width: 600px; margin: 0 auto; text-wrap: balance; }

.btn-or { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
    background: var(--color-gold); 
    color: var(--color-black); 
    font-size: 1.05rem; 
    font-weight: 700; 
    padding: 1.25rem 2.5rem; 
    border-radius: var(--radius-pill); 
    text-decoration: none; 
    transition: var(--transition-fast); 
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2); 
    border: none;
    cursor: pointer;
}
.btn-or:hover { background: var(--color-gold-hover); transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4); }

.btn-outline { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    background: transparent; 
    border: 1px solid var(--border-color); 
    color: var(--text-primary); 
    font-size: 1rem; 
    font-weight: 600; 
    padding: 1rem 2rem; 
    border-radius: var(--radius-pill); 
    text-decoration: none; 
    transition: var(--transition-fast); 
}
.btn-outline:hover { border-color: var(--color-gold); color: var(--color-gold); background: rgba(212, 175, 55, 0.05); }

/* =========================================
   5. HERO
   ========================================= */
.hero-ceo { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; position: relative; overflow: hidden; border-top: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }

.hero-title { font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 2rem; }
.title-line { display: block; }
.title-line.gold { color: var(--color-gold); }

.hero-sub { font-size: clamp(1.125rem, 2vw, 1.35rem); color: var(--text-secondary); margin-bottom: 3rem; max-width: 480px; line-height: 1.6; text-wrap: balance; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; }
.initials-3d { position: absolute; font-size: clamp(150px, 20vw, 400px); font-weight: 900; color: var(--color-gold); opacity: 0.05; z-index: 1; letter-spacing: -0.05em; user-select: none; }
.hero-photo { position: relative; z-index: 2; width: 100%; max-width: 400px; height: auto; border-radius: var(--radius-lg); filter: grayscale(20%) contrast(110%); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }

/* =========================================
   6. SERVICES TEASER
   ========================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.service-card { 
    background: var(--glass-bg); 
    backdrop-filter: blur(40px); 
    border: 1px solid var(--glass-border); 
    border-radius: var(--radius-lg); 
    padding: 3rem 2rem; 
    transition: var(--transition-slow); 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    text-decoration: none; 
    color: inherit; 
}
.service-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 100px; background: var(--color-gold); filter: blur(80px); opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(212,175,55,0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.service-card:hover::before { opacity: 0.15; }

.service-icon { width: 48px; height: 48px; color: var(--color-gold); margin-bottom: 2rem; }
.service-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.service-desc { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 2rem; flex-grow: 1; }
.service-link { color: var(--color-gold); font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }

/* =========================================
   7. RÉALISATIONS (Carousel)
   ========================================= */
.reals-ceo { background: var(--bg-secondary); overflow: hidden; }
.reals-carousel { display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem 5% 4rem; margin: 0 -5%; scrollbar-width: none; cursor: grab; }
.reals-carousel::-webkit-scrollbar { display: none; }
.reals-carousel:active { cursor: grabbing; }

.real-card { flex: 0 0 380px; scroll-snap-align: start; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2rem; transition: var(--transition-slow); pointer-events: none; }
.real-card:hover { transform: translateY(-8px); border-color: var(--color-gold); }
.real-mockup { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--bg-secondary), rgba(212,175,55,0.05)); border-radius: var(--radius-sm); margin-bottom: 1.5rem; display: grid; place-items: center; overflow: hidden; }
.real-mockup img { width: 85%; height: auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); transition: transform 0.6s var(--ease-out-expo); }
.real-card:hover .real-mockup img { transform: scale(1.05); }
.real-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.real-metric { font-size: 2rem; font-weight: 800; color: var(--color-gold); margin-bottom: 1rem; letter-spacing: -0.02em; }
.real-link { color: var(--color-gold); text-decoration: none; font-weight: 600; pointer-events: auto; display: inline-flex; align-items: center; gap: 0.5rem; }

/* =========================================
   8. TARIFS (Pricing)
   ========================================= */
.currency-switch { display: inline-flex; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-pill); padding: 0.35rem; margin-bottom: 4rem; }
.curr-btn { background: none; border: none; color: var(--text-secondary); padding: 0.75rem 1.5rem; border-radius: var(--radius-pill); font-weight: 600; cursor: pointer; transition: var(--transition-fast); }
.curr-btn.active { background: var(--text-primary); color: var(--bg-primary); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; align-items: center; }
.price-card { background: var(--glass-bg); backdrop-filter: blur(40px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 3rem 2rem; transition: var(--transition-slow); position: relative; display: flex; flex-direction: column; height: 100%; }
.price-card.popular { border-color: var(--color-gold); transform: scale(1.05); background: rgba(20,20,22,0.8); z-index: 2; }
.price-card:hover { transform: translateY(-8px); border-color: rgba(212,175,55,0.4); }
.price-card.popular:hover { transform: scale(1.05) translateY(-8px); }

.badge-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--color-gold); color: var(--color-black); padding: 0.5rem 1.5rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; }
.price-tier { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.price-amount { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.04em; margin-bottom: 0.5rem; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.price-desc { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2rem; min-height: 48px; }

.price-features { list-style: none; margin-bottom: 3rem; flex-grow: 1; }
.price-features li { padding-left: 1.5rem; position: relative; margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.5; }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--color-gold); font-weight: 800; }

.btn-or-full { display: block; width: 100%; text-align: center; background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary); padding: 1.25rem; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; transition: var(--transition-fast); }
.price-card.popular .btn-or-full { background: var(--color-gold); color: var(--color-black); border: none; }
.btn-or-full:hover { background: var(--text-primary); color: var(--bg-primary); }
.price-card.popular .btn-or-full:hover { background: var(--color-gold-hover); transform: scale(1.02); }

/* =========================================
   9. ABOUT TEASER
   ========================================= */
.about-teaser { background: var(--bg-secondary); }
.about-content { background: linear-gradient(145deg, var(--bg-primary), rgba(212, 175, 55, 0.05)); border: 1px solid var(--border-color); border-radius: 32px; padding: 5rem 3rem; text-align: center; }
.about-text { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.3; margin-bottom: 4rem; text-wrap: balance; }
.about-text span { color: var(--color-gold); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.stat-item { padding: 1rem; }
.stat-num { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 900; color: var(--color-gold); line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.04em; }
.stat-label { font-size: 1rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

/* =========================================
   10. FAQ
   ========================================= */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.3s; }
.faq-item.active { border-color: var(--color-gold); }
.faq-question { width: 100%; background: none; border: none; color: var(--text-primary); padding: 1.5rem; font-size: 1.125rem; font-weight: 600; text-align: start; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; transition: transform 0.4s var(--ease-out-expo), background 0.4s; }
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--color-gold); color: var(--color-black); }
.faq-answer { height: 0; overflow: hidden; opacity: 0; transition: height 0.4s var(--ease-out-expo), opacity 0.4s var(--ease-out-expo); }
.faq-answer p { padding: 0 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.6; }

/* =========================================
   11. FOOTER
   ========================================= */
.footer-ceo { background: var(--bg-secondary); border-top: 1px solid var(--border-color); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; padding: 4rem 0; }
.footer-tag { color: var(--text-secondary); margin-top: 0.5rem; font-size: 0.875rem; }
.footer-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;}
.footer-btn { border: 1px solid var(--border-color); color: var(--text-primary); padding: 0.75rem 1.5rem; border-radius: var(--radius-pill); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: var(--transition-fast); }
.footer-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }
.footer-legal { border-top: 1px solid var(--border-color); padding: 1.5rem 0; text-align: center; font-size: 0.75rem; color: var(--text-secondary); }
.legal-link { color: var(--text-secondary); text-decoration: none; margin-inline-start: 1rem; transition: color 0.2s; }
.legal-link:hover { color: var(--color-gold); }

/* Reveal Animations */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { height: auto; order: -1; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; align-items: stretch; }
    .price-card.popular { transform: scale(1); }
    .price-card.popular:hover { transform: scale(1) translateY(-8px); }
    .about-content { padding: 4rem 1.5rem; }
    .footer-grid { flex-direction: column; gap: 2rem; text-align: center; }
}
/* =========================================
   VARIABLES (La palette des émotions)
   ========================================= */
:root {
    /* CLAIR : Douceur, lever de soleil, pureté */
    --glow-core: rgba(212, 175, 55, 0.4); /* Or doux */
    --glow-spread: rgba(255, 223, 0, 0.15); /* Jaune solaire */
    --halo-size: 60px;
    --case-border: rgba(212, 175, 55, 0.2);
}

@media (prefers-color-scheme: dark) {
    /* SOMBRE : Intimité, concert, projecteur dramatique */
    :root {
        --glow-core: rgba(255, 215, 0, 0.6); /* Or intense */
        --glow-spread: rgba(212, 175, 55, 0.1); /* Lueur lointaine */
        --halo-size: 100px;
        --case-border: rgba(255, 215, 0, 0.4);
    }
}

/* =========================================
   LA SCÈNE (Le Théâtre)
   ========================================= */
.hero-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    perspective: 2000px; /* Profondeur cinématographique */
    z-index: 1;
}

/* 1. LA RÉVÉLATION (L'entrée sur scène de MJ) */
.mj-reveal {
    /* On commence en noir & blanc, flou, et plus petit */
    filter: grayscale(100%) blur(5px);
    opacity: 0;
    transform: scale(0.9);
    /* L'animation dure 2.5s : c'est lent, majestueux, ça crée le frisson */
    animation: theEpiphany 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

@keyframes theEpiphany {
    0% { filter: grayscale(100%) blur(10px); opacity: 0; transform: scale(0.85) translateY(30px); }
    50% { opacity: 1; filter: grayscale(50%) blur(2px); }
    100% { filter: grayscale(0%) blur(0); opacity: 1; transform: scale(1) translateY(0); }
}

/* 2. LE PROJECTEUR (L'aura qui fusionne avec le site) */
.celestial-spotlight {
    position: absolute;
    width: 250px;
    height: 350px;
    background: var(--glow-core);
    border-radius: 50%;
    filter: blur(var(--halo-size));
    z-index: -1;
    /* Cette lueur "respire" de manière asynchrone */
    animation: pulseLight 4s ease-in-out infinite alternate;
}

@keyframes pulseLight {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 1; }
}

/* 3. L'ÉCRIN (Le chef-d'œuvre) */
.masterpiece-case {
    position: relative;
    width: 290px;
    height: 390px;
    border-radius: 28px; /* Coins très doux */
    /* Bordure subtile qui accroche la lumière */
    border: 1px solid var(--case-border);
    /* L'ombre dorée qui donne l'impression que l'image est chaude au toucher */
    box-shadow: 
        0 20px 50px -10px var(--glow-core),
        0 0 30px var(--glow-spread),
        inset 0 0 20px rgba(255,255,255,0.1);
    overflow: hidden;
    z-index: 2;
    /* L'animation du battement de cœur */
    animation: goldenBreath 6s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Interaction : quand on s'approche du chef-d'œuvre */
.masterpiece-case:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 60px -15px var(--glow-core),
        0 0 50px var(--glow-spread),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

/* 4. LE VOILE MAGIQUE (L'éclat sur le verre) */
.magic-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 30%
    );
    z-index: 3;
    background-size: 200% 200%;
    /* Passe lentement comme une étoile filante */
    animation: soulGleam 8s infinite linear;
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes soulGleam {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 5. LA PHOTO (Intacte, pure) */
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Zoom microscopique continu pour donner une impression de vie */
    animation: subtleZoom 15s ease-in-out infinite alternate;
}

/* =========================================
   MOUVEMENTS VITAUX (Le battement de cœur)
   ========================================= */
@keyframes goldenBreath {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(0.5deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    75% { transform: translateY(-4px) rotate(-0.5deg); }
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .masterpiece-case { width: 260px; height: 350px; }
}
/* =========================================
   LE CADRAGE MOBILE (POUR LE WAOUH IMMÉDIAT)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. On force la section parent à organiser ses éléments en colonne */
    /* (Assure-toi que la balise <section> ou <div> qui englobe ton texte ET ton image utilise bien flex) */
    .hero-stage {
        /* MAGIE : Ceci propulse l'image tout en haut, avant le texte ! */
        order: -1 !important; 
        
        /* On réduit l'espace autour pour que le texte remonte */
        min-height: 280px !important; 
        margin-bottom: 20px;
        margin-top: 10px;
    }

    /* 2. On transforme le cadre en un "bijou précieux" plus compact */
    /* Ça permet au texte "Ton site. Il vend." d'être visible dès l'ouverture ! */
    .masterpiece-case { 
        width: 190px;  /* Plus fin */
        height: 250px; /* Plus court */
    }

    /* 3. On réduit la taille du halo céleste pour ne pas polluer l'écran mobile */
    .celestial-spotlight {
        width: 180px;
        height: 200px;
    }
}
/* Cache le header sur la 1ère vue uniquement */
body:has(.hero-mj-full) .header,
.hero-mj-full ~ .header { 
  opacity: 0; 
  pointer-events: none;
  transition: opacity 0.3s ease;
}
/* Il réapparaît au scroll */
body.scrolled .header {
  opacity: 1;
  pointer-events: all;
}