/* ============================================================
   LYAMORS DJ – APPLE-INSPIRED OVERRIDE
   Charger APRÈS main.css
   Style Apple Human Interface Guidelines
   ============================================================ */


/* ============================================================
   1. CORRECTIONS DES VARIABLES GLOBALES
   Style Apple : spring physics, glassmorphism, arrondis modérés
   ============================================================ */

:root {
    /* Transitions - Apple spring physics */
    --trans: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --trans-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --trans-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Polices Apple natives */
    --font-display-safe: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    --font-body-safe: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;

    /* Ombres Apple - très subtiles et douces */
    --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl:  0 16px 48px rgba(0, 0, 0, 0.2);

    /* Radius Apple - arrondis modérés */
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 20px;
}

/* Thème clair : ombres encore plus subtiles */
[data-theme="light"] {
    --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.14);
    --shadow-xl:  0 16px 48px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   2. TYPOGRAPHIE
   Style Apple : SF Pro, tracking précis, hiérarchie claire
   ============================================================ */

h1 {
    font-family: var(--font-display-safe);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-family: var(--font-display-safe);
    font-weight: 600;
    letter-spacing: -0.015em;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
    font-family: var(--font-display-safe);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h4, h5, h6 {
    font-family: var(--font-display-safe);
    font-weight: 600;
    letter-spacing: -0.005em;
}

body,
button,
input,
textarea,
select,
p,
span,
a,
li,
label,
td,
th {
    font-family: var(--font-body-safe);
}


/* ============================================================
   3. HERO SECTION
   Style Apple : glassmorphism, blur, typographie SF Pro
   ============================================================ */

.hero-stat-num {
    text-shadow: none;
    font-size: 2rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    line-height: 1.7;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.hero-badge {
    padding: 8px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-color: var(--clr-border);
    background: rgba(0, 122, 255, 0.1);
    color: var(--clr-primary);
    border-radius: var(--r-lg);
}


/* ============================================================
   4. SECTION HEADERS
   Style Apple : minimaliste, sans décorations excessives
   ============================================================ */

.divider-neon {
    box-shadow: none;
    opacity: 0.3;
    height: 1px;
    width: 60px;
    background: var(--clr-border);
}

.section-tag {
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-color: var(--clr-border);
    background: rgba(0, 122, 255, 0.08);
    color: var(--clr-primary);
    border-radius: var(--r-lg);
}

.section-title {
    letter-spacing: -0.015em;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.section-desc {
    line-height: 1.75;
    opacity: 0.9;
}

.home-approach-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.home-highlights-grid {
    margin-top: var(--space-xl);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
}

.home-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ============================================================
   5. CARDS
   Style Apple : glassmorphism, hover subtil, arrondis modérés
   ============================================================ */

.card {
    box-shadow: var(--shadow-sm);
    border-color: var(--clr-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-primary);
}

.mission-card:hover .mission-icon {
    transform: scale(1.05);
}

/* Cards thème clair */
[data-theme="light"] .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}


/* ============================================================
   6. BOUTONS
   Style Apple : iOS/macOS, spring physics, ombres colorées
   ============================================================ */

.btn-primary {
    background: var(--clr-primary);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    letter-spacing: 0.1px;
    border-radius: var(--r-lg);
    transition: all var(--trans-spring);
}

.btn-primary:hover {
    background: var(--clr-primary-dark);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    border-width: 1.5px;
    font-weight: 600;
    border-radius: var(--r-lg);
    transition: all var(--trans-spring);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Bouton nav */
.btn-nav {
    background: var(--clr-primary);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    letter-spacing: 0.1px;
    border-radius: var(--r-lg);
    transition: all var(--trans-spring);
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* Outline nav hover */
.btn-nav-outline:hover {
    background: rgba(0, 122, 255, 0.08);
    border-color: var(--clr-primary);
    box-shadow: none;
    transform: translateY(-1px);
}

/* Focus visible accessible */
.btn:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 3px;
}


/* ============================================================
   7. NAVIGATION / HEADER
   Style Apple : glassmorphism, blur saturate, transitions fluides
   ============================================================ */

header.site-header {
    border-bottom: 1px solid var(--clr-border);
}

header.site-header.scrolled {
    background: rgba(28, 28, 30, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom-color: var(--clr-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] header.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom-color: var(--clr-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Nav links */
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    transition: all var(--trans-spring);
    padding: 8px 12px;
    border-radius: var(--r-md);
}

.nav-link:hover {
    color: var(--clr-text);
    background: var(--clr-bg-2);
}

.nav-link.active {
    color: var(--clr-primary);
    font-weight: 600;
    background: rgba(0, 122, 255, 0.1);
}

/* Theme toggle */
.theme-toggle:hover {
    transform: scale(1.1);
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-links {
        background: rgba(28, 28, 30, 0.95);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        border-bottom: 1px solid var(--clr-border);
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Burger */
.burger span {
    height: 2px;
    border-radius: 2px;
}


/* ============================================================
   8. FORMS / INPUTS
   Style Apple : iOS inputs, focus ring bleu, arrondis modérés
   ============================================================ */

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
    transition: all var(--trans-spring);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 14px 16px;
    border-radius: var(--r-lg);
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
    border-color: var(--clr-primary);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--clr-text);
    margin-bottom: 8px;
}


/* ============================================================
   9. FOOTER
   Style Apple : minimaliste, social buttons circulaires
   ============================================================ */

.social-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.footer-links a:hover {
    padding-left: 4px;
    color: var(--clr-text);
}

.back-to-top:hover,
#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Back-to-top */
.back-to-top,
#backToTop {
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all var(--trans-spring);
}

/* Footer bottom */
.footer-bottom {
    border-top-color: var(--clr-border);
}

[data-theme="light"] .footer-bottom {
    border-top-color: var(--clr-border);
}

[data-theme="light"] .hero-title,
[data-theme="light"] .mission-card h3,
[data-theme="light"] .event-card h3,
[data-theme="light"] .navbar-brand,
[data-theme="light"] .footer-brand-name,
[data-theme="light"] .footer-title,
[data-theme="light"] .footer-contact li,
[data-theme="light"] .footer-bottom p {
    color: var(--clr-text);
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero-stat-label,
[data-theme="light"] .event-card p,
[data-theme="light"] .event-card-location,
[data-theme="light"] .footer-desc,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-contact a,
[data-theme="light"] .footer-bottom-links a,
[data-theme="light"] nav a,
[data-theme="light"] .nav-link,
[data-theme="light"] .btn-nav-outline {
    color: var(--clr-text-muted);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] nav a:hover,
[data-theme="light"] .footer-links a:hover,
[data-theme="light"] .footer-contact a:hover,
[data-theme="light"] .footer-bottom-links a:hover,
[data-theme="light"] .btn-nav-outline:hover,
[data-theme="light"] .sidebar-link:hover {
    color: var(--clr-text);
}

[data-theme="light"] .btn-nav-outline:hover {
    background: rgba(0, 122, 255, 0.08);
    border-color: var(--clr-primary);
}

[data-theme="light"] .sidebar-link:hover {
    background: var(--clr-bg-2);
}

[data-theme="light"] .footer-widget-card {
    background: var(--clr-bg-2);
}


/* ============================================================
   10. TABLES
   Style Apple : minimaliste, hover subtil
   ============================================================ */

table th {
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: transparent;
    border-bottom-width: 1px;
    padding: 14px 18px;
}

table td {
    font-size: 0.9rem;
    line-height: 1.5;
}

table tr:hover {
    background: var(--clr-bg-2);
}

[data-theme="light"] table tr:hover {
    background: var(--clr-bg-2);
}


/* ============================================================
   11. BADGES
   Style Apple : arrondis modérés, couleurs Apple
   ============================================================ */

.badge {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    font-weight: 600;
    border-radius: var(--r-md);
}


/* ============================================================
   12. DROPDOWNS
   Style Apple : glassmorphism, animation spring
   ============================================================ */

.dropdown-menu {
    box-shadow: var(--shadow-lg);
    border-radius: var(--r-lg);
    border-color: var(--clr-border);
    padding: 6px;
    animation: dropdownSpring 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top left;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@keyframes dropdownSpring {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    border-radius: var(--r-md);
    font-size: 0.9rem;
    padding: 10px 14px;
    transition: all var(--trans-spring);
}

.dropdown-item:hover {
    background: rgba(0, 122, 255, 0.08);
    color: var(--clr-primary);
}

[data-theme="light"] .dropdown-menu {
    border-color: var(--clr-border);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .dropdown-item:hover {
    background: rgba(0, 122, 255, 0.08);
    color: var(--clr-primary);
}


/* ============================================================
   13. SIDEBAR (MEMBER & ADMIN)
   Style Apple : active state subtil, hover discret
   ============================================================ */

.sidebar-link {
    transition: all var(--trans-spring);
    border-radius: var(--r-md);
    font-size: 0.9rem;
    padding: 10px 14px;
}

.sidebar-link:hover {
    background: var(--clr-bg-2);
    color: var(--clr-text);
}

.sidebar-link.active {
    background: rgba(0, 122, 255, 0.1);
    border-left: 2px solid var(--clr-primary);
    padding-left: 18px;
    font-weight: 600;
    color: var(--clr-primary);
}


/* ============================================================
   14. FLASH MESSAGES
   Style Apple : animation spring, design minimaliste
   ============================================================ */

.flash-message {
    animation: flashSpring 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes flashSpring {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ============================================================
   15. SCROLL-REVEAL ANIMATION
   Style Apple : spring physics, très subtil
   ============================================================ */

.animate-on-scroll {
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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


/* ============================================================
   16. PAGE HERO (entêtes internes)
   Style Apple : fond sobre, pas de gradient
   ============================================================ */

.page-hero {
    padding: 80px 0 48px;
    background: var(--clr-bg);
    border-bottom-color: var(--clr-border);
}

[data-theme="light"] .page-hero {
    background: var(--clr-bg);
}


/* ============================================================
   17. FOCUS VISIBLE GLOBAL
   Style Apple : focus ring bleu subtil
   ============================================================ */

:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 3px;
    border-radius: var(--r-md);
}


/* ============================================================
   18. MOBILE — AJUSTEMENTS FINAUX
   ============================================================ */

@media (max-width: 479px) {
    .hero-title {
        font-size: 1.875rem;
        letter-spacing: -0.015em;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: -0.01em;
    }

    .btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .home-approach-grid,
    .home-highlights-grid {
        grid-template-columns: 1fr;
    }

    .home-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .card:hover {
        transform: translateY(-1px);
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .hero-title {
        letter-spacing: -0.018em;
    }

    .home-approach-grid,
    .home-highlights-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .home-highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================
   19. PERFORMANCE — WILL-CHANGE CIBLÉ
   ============================================================ */

.card,
.btn,
.social-btn,
.back-to-top,
#backToTop {
    will-change: transform;
}

.card:not(:hover),
.btn:not(:hover),
.social-btn:not(:hover) {
    will-change: auto;
}


/* ============================================================
   20. SCROLLBAR PERSONNALISÉE (Webkit)
   Style Apple : sobre et discrète
   ============================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(134, 134, 139, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 134, 139, 0.5);
}

[data-theme="light"]::-webkit-scrollbar-thumb {
    background: rgba(134, 134, 139, 0.2);
}

[data-theme="light"]::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 134, 139, 0.4);
}


/* ============================================================
   21. SÉLECTION DE TEXTE
   Style Apple : bleu Apple minimaliste
   ============================================================ */

::selection {
    background: var(--clr-primary);
    color: #ffffff;
}

[data-theme="light"] ::selection {
    background: var(--clr-primary);
    color: #ffffff;
}
