 ============================================
   ÉCOLE ALCHIMIQUE MODERNE — Custom Styles
   ============================================ */

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fff;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0D0D0D;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 67, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 67, 0.5);
}

/* --- Keyframes --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(212, 168, 67, 0.2); }
    50% { box-shadow: 0 0 25px rgba(212, 168, 67, 0.4); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 5px rgba(212, 168, 67, 0.3); }
    50% { box-shadow: 0 0 20px rgba(212, 168, 67, 0.6); }
}

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

@keyframes symbolFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.03;
    }
    50% {
        transform: translateY(-40px) rotate(5deg);
        opacity: 0.08;
    }
}

/* --- Smooth Scrolling Fixes --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Nav Link Hover Effect --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4A843;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Navbar scroll effect --- */
.navbar-scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

/* --- Scroll Animations --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Particles Canvas --- */
.hero-particles {
    pointer-events: none;
}

/* --- Alchemical Floating Symbols --- */
.alchemical-symbol {
    position: absolute;
    font-family: 'Cinzel', serif;
    color: rgba(212, 168, 67, 0.04);
    pointer-events: none;
    animation: symbolFloat 12s ease-in-out infinite;
    user-select: none;
}

/* --- Line Clamp Fix --- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Image hover parent fix --- */
article .aspect-\[16\/10\] {
    overflow: hidden;
}

/* --- Focus styles for accessibility --- */
input:focus {
    outline: none;
}

button:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
}

/* --- Mobile floating CTA adjustments --- */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    #floating-cta {
        backdrop-filter: blur(20px);
    }
}

/* --- Modal & Popup Animations --- */
#email-modal.active #modal-content,
#exit-popup.active #exit-popup-content {
    transform: scale(1);
    opacity: 1;
}

/* --- Responsive Typography --- */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
}

/* --- Custom Gold Gradient Text --- */
.gold-gradient {
    background: linear-gradient(135deg, #D4A843, #E8C96A, #D4A843);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Blog card cursor --- */
article[onclick] {
    cursor: pointer;
}

/* --- Last section bottom padding for mobile --- */
section:last-of-type {
    margin-bottom: 0;
}

/* --- Print styles --- */
@media print {
    nav, #floating-cta, #email-modal, #exit-popup, #success-overlay, .hero-particles, #symbols-bg {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
