/* ============================================
   VARIABLES CSS - Design System Ultra-Pro
   ============================================ */
:root {
    /* Couleurs principales */
    --primary-color: #7d47de;
    --primary-hover: #6535c9;
    --primary-light: #9d6ee7;
    --primary-dark: #5b2fb5;

    /* Couleurs de statut */
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --success-color: #10b981;
    --success-hover: #059669;
    --warning-color: #f59e0b;
    --warning-hover: #d97706;
    --info-color: #3b82f6;
    --info-hover: #2563eb;
    --dev-color: #6366f1;
    --dev-hover: #4f46e5;

    /* Couleurs neutres */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Backgrounds */
    --bg-primary: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16162a;
    --bg-light: #f8f9fa;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography - Optimisé pour la dyslexie */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.75;
    color: var(--gray-100);
    background: var(--bg-primary);
    overflow-x: hidden;
    letter-spacing: 0.015em; /* Meilleure lisibilité pour dyslexiques */
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   TYPOGRAPHY - Optimisé pour l'accessibilité
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8; /* Interligne généreux pour dyslexiques */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* ============================================
   VOLUNTEER BANNER - Bandeau bénévole
   ============================================ */
.volunteer-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); */
    /* background: linear-gradient(135deg, var(--primary-color) 0%, transparent  120%); */
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 999;
}

.volunteer-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.volunteer-banner strong {
    font-weight: 600;
}

.volunteer-banner .separator {
    opacity: 0.6;
    margin: 0 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .volunteer-banner {
        font-size: 13px;
        padding: 10px 15px;
    }

    .volunteer-banner-content {
        flex-direction: column;
        gap: 4px;
    }

    .volunteer-banner .separator {
        display: none;
    }
}

/* ============================================
   GLASSMORPHISM COMPONENTS
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(125, 71, 222, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(125, 71, 222, 0.15);
}

/* ============================================
   BUTTONS - Design System
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn i {
    font-size: 1.2em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(125, 71, 222, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    box-shadow: 0 6px 20px rgba(125, 71, 222, 0.6);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--white);
}

.btn-glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    width: auto;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-sm:hover {
    transform: translateY(-2px);
}

.btn-large, .btn-hero {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
}

/* ============================================
   SITE HEADER - Wrapper sticky
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ============================================
   TOPBAR - Barre supérieure
   ============================================ */
.topbar {
    position: relative;
    z-index: 2; /* Au-dessus de la navbar (z-index: 1) pour que le dropdown passe devant */
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.topbar-container {
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-brand {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-300);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
}

.topbar-brand:hover {
    color: var(--white);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   NAVBAR - Design épuré
   ============================================ */
.navbar {
    position: relative;
    z-index: 1; /* En dessous de la topbar pour que le dropdown des notifications passe devant */
    transition: all var(--transition-base);
    height: 70px;
}

.navbar-glass-bg {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-scrolled .navbar-glass-bg {
    background: rgba(15, 15, 30, 0.95);
}

.navbar-container {
    position: relative;
    height: 100%;
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo complètement à gauche */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 700;
    z-index: 2;
    flex-shrink: 0;
}

.logo-wrapper {
    height: 40px;
    display: flex;
    align-items: center;
}

.logo-wrapper svg {
    height: 100%;
    width: auto;
}

.logo-text {
    font-size: 1.1rem;
    white-space: nowrap;
    display: none;
}

/* Texte logo mobile - visible uniquement sur mobile (quand topbar cachée) */
.logo-text-mobile {
    display: block;
    font-size: 0.95rem;
}

@media (min-width: 1025px) {
    /* Sur desktop, cacher le texte mobile car topbar visible */
    .logo-text-mobile {
        display: none;
    }
}

/* Menu au centre - système adaptatif */
.navbar-menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 var(--spacing-md);
    min-width: 0;
}

/* Actions mobiles - cachées sur desktop */
.navbar-mobile-actions {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--gray-300);
    font-weight: 500;
    /* font-size: 0.9rem; */
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Quand beaucoup de pages, réduire le padding */
/* @media (max-width: 1400px) {
    .navbar-menu {
        gap: 2px;
    }
    .nav-link {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
} */

@media (max-width: 1200px) {
    .nav-link {
        padding: 8px 8px;
        /* font-size: 0.8rem; */
    }
    .logo-text {
        display: none;
    }
}

.nav-link i {
    font-size: 1em;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: var(--glass-bg);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 50%;
}

.nav-link-admin {
    color: var(--danger-color);
}

.nav-link-admin:hover {
    color: var(--white);
    background: rgba(239, 68, 68, 0.15);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-icon {
    font-size: 0.7rem;
    transition: transform var(--transition-base);
    margin-left: 2px;
}

.nav-dropdown:hover .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    min-width: 200px;
    background: rgba(15, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
    background: rgba(125, 71, 222, 0.2);
    color: var(--white);
    padding-left: 24px;
}

/* Menu "Plus" adaptatif */
.nav-more-dropdown .nav-dropdown-menu {
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    right: 0;
    left: auto;
    transform: translateY(5px);
}

.nav-more-dropdown:hover .nav-dropdown-menu {
    transform: translateY(0);
}

.nav-more-parent {
    font-weight: 600;
    color: var(--white) !important;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    margin-bottom: 4px;
    padding-bottom: 10px !important;
}

.nav-more-parent:hover {
    padding-left: 24px !important;
}

.nav-more-subitem {
    padding-left: 28px !important;
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav-more-subitem:hover {
    opacity: 1;
    padding-left: 32px !important;
}

.nav-more-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-more-admin {
    color: var(--danger-color) !important;
}

.nav-more-admin:hover {
    background: rgba(239, 68, 68, 0.15) !important;
}

.nav-more-admin i {
    font-size: 0.9em;
}

/* ============================================
   NOTIFICATION BELL (Cloche de notifications)
   ============================================ */
.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-notification {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gray-300);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
}

.btn-notification:hover {
    background: rgba(125, 71, 222, 0.2);
    border-color: rgba(125, 71, 222, 0.4);
    color: var(--white);
}

.btn-notification i {
    font-size: 1.1rem;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger-color, #ef4444);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid rgba(15, 15, 30, 0.9);
}

.notification-badge:empty {
    display: none;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-height: 450px;
    background: rgba(15, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 1100; /* Au-dessus de la navbar (z-index: 1000) */
    overflow: hidden;
}

.notification-bell.open .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
}

.notification-mark-all {
    background: transparent;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.notification-mark-all:hover {
    background: rgba(125, 71, 222, 0.2);
    color: var(--white);
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.notification-item:hover {
    background: rgba(125, 71, 222, 0.1);
}

.notification-item.unread {
    background: rgba(125, 71, 222, 0.08);
    border-left: 3px solid var(--primary-color, #7d47de);
}

.notification-item.unread:hover {
    background: rgba(125, 71, 222, 0.15);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.notification-icon.invitation_received { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.notification-icon.invitation_accepted { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.notification-icon.invitation_expiring { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.notification-icon.message_received { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.notification-icon.adhesion_activated { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.notification-icon.system { background: rgba(107, 114, 128, 0.2); color: #6b7280; }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content-title {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--white);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-content-message {
    font-size: 0.8rem;
    color: var(--gray-300);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.notification-footer {
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-empty {
    color: var(--gray-300);
    font-size: 0.85rem;
}

.notification-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    color: var(--gray-300);
    font-size: 0.85rem;
}

.notification-loading .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive notifications */
@media (max-width: 768px) {
    .notification-dropdown {
        width: calc(100vw - 20px);
        right: -60px;
    }
}

.nav-hidden {
    display: none !important;
}

/* Actions complètement à droite - Structure 2 étages */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    flex-shrink: 0;
}

.navbar-actions-stacked {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.navbar-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-actions-cta {
    gap: 10px;
}

.navbar-actions-icons {
    gap: 4px;
}

/* Liens utilisateur mobile - cachés sur desktop */
.nav-mobile-user {
    display: none;
}

.nav-link-mobile-only i {
    margin-right: 8px;
}

.nav-link-admin {
    color: var(--danger-color) !important;
}

/* Tous les boutons de la navbar avec taille uniforme */
.navbar-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    height: 36px;
}

.navbar-actions .btn i {
    font-size: 1rem;
}

/* Boutons icônes compacts (2ème ligne) */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-300);
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.btn-icon:hover {
    background: rgba(125, 71, 222, 0.2);
    border-color: rgba(125, 71, 222, 0.4);
    color: var(--white);
}

.btn-icon i {
    font-size: 1rem;
}

.btn-icon-admin {
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-icon-admin:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ff6b6b;
}

/* Bouton Admin - style danger */
.btn-admin {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.btn-admin:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #ff8a8a !important;
}

/* Bouton Adhérer - mis en avant */
.btn-adherer {
    background: linear-gradient(135deg, var(--primary-color), #9d6ee7) !important;
    color: var(--white) !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(125, 71, 222, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

.btn-adherer:hover {
    box-shadow: 0 4px 20px rgba(125, 71, 222, 0.5);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(125, 71, 222, 0.4);
    }
    50% {
        box-shadow: 0 2px 20px rgba(125, 71, 222, 0.55);
    }
}

/* Bouton Mon compte / Connexion */
.navbar-actions .btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-actions .btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Bouton Déconnexion - icône seule */
.navbar-actions .btn-outline {
    padding: 8px 12px;
    width: 40px;
    justify-content: center;
}

/* Burger Menu */
.navbar-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 3;
}

.navbar-burger span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.navbar-burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-burger.active span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar-hidden {
    transform: translateY(-100%);
}

/* Responsive - Tablette et Mobile */
@media (max-width: 1024px) {
    /* Cacher la topbar sur mobile */
    .topbar {
        display: none;
    }

    .navbar-burger {
        display: flex;
    }

    /* Actions mobiles visibles */
    .navbar-mobile-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-right: 12px;
    }

    .navbar-mobile-actions .btn-adherer {
        padding: 8px 16px;
        font-size: 0.85rem;
        height: 40px;
    }

    .navbar-mobile-actions .btn-icon {
        width: 40px;
        height: 40px;
    }

    .navbar-mobile-actions .btn-icon i {
        font-size: 0.9rem;
    }

    /* Cacher le texte du logo sur très petit écran */
    .logo-text-mobile {
        display: none;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 15, 30, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-lg) var(--spacing-md);
        gap: 8px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all var(--transition-base);
    }

    .navbar-menu.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        justify-content: center;
        border-radius: 10px;
    }

    .nav-link i {
        display: none;
    }

    /* Mobile dropdown */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 100%;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 8px;
        margin-top: 8px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 300px;
        padding: 8px 0;
    }

    .nav-dropdown-item {
        text-align: center;
        padding: 12px 16px;
    }

    .nav-dropdown-item:hover {
        padding-left: 16px;
    }

    /* Sur mobile : retour à une disposition en ligne */
    .navbar-actions-stacked {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    /* Cacher la ligne utilisateur (Admin, Compte, Déconnexion) sur mobile */
    .navbar-actions-user {
        display: none;
    }

    /* Cacher Contact et Notifications sur mobile, garder Adhérer */
    .navbar-actions-row .btn-glass,
    .navbar-actions-row .notification-bell {
        display: none;
    }

    /* Garder seulement Adhérer visible */
    .navbar-actions .btn-adherer {
        padding: 8px 16px;
    }

    .navbar-actions .btn-adherer span {
        display: inline;
    }

    /* Afficher les liens utilisateur dans le menu mobile */
    .nav-mobile-user {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 8px;
    }

    .nav-link-mobile-only {
        display: flex !important;
    }

    .nav-link-mobile-only i {
        display: inline-block !important;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .logo-text {
        display: none !important;
    }

    .navbar-actions {
        gap: 8px;
    }
}

/* ============================================
   HERO SECTION - Ultra-Premium
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) 0;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-light), transparent);
    top: 50%;
    right: -10%;
    animation-delay: 5s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-dark), transparent);
    bottom: -20%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.2fr 1fr;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--white), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    line-height: 1.8;
    color: var(--gray-300);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        margin-left: 0;
        margin-right: auto;
    }
}

@media (max-width: 1023px) {
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-stats {
        justify-content: flex-start;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    margin-top: var(--spacing-xs);
}

.stat-divider {
    width: 1px;
    background: var(--glass-border);
}

.hero-visual {
    display: grid;
    gap: var(--spacing-md);
}

.visual-card {
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(125, 71, 222, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.visual-card:hover .card-glow {
    opacity: 1;
}

.visual-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.visual-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.visual-card p {
    color: var(--gray-400);
    margin: 0;
    font-size: var(--font-size-sm);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ============================================
   SECTIONS - Layout général
   ============================================ */
section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-400);
    line-height: 1.8;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: linear-gradient(180deg, transparent, var(--bg-secondary), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.icon-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(125, 71, 222, 0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover .icon-glow {
    opacity: 1;
}

.feature-icon-wrapper i {
    font-size: 1.75rem;
    color: var(--primary-color);
    z-index: 1;
}

.feature-card h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    color: var(--gray-400);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-light);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.feature-link:hover {
    gap: var(--spacing-sm);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    padding: var(--spacing-xl);
}

.testimonial-quote-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.testimonial-quote-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.testimonial-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.author-name {
    font-weight: 700;
    color: var(--white);
}

.author-role {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb-cta-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: -30%;
    left: -10%;
}

.orb-cta-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-light), transparent);
    bottom: -30%;
    right: -10%;
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: var(--spacing-2xl);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    font-size: 2.5rem;
    color: var(--primary-color);
}

.cta-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
}

.cta-text {
    font-size: var(--font-size-xl);
    color: var(--gray-300);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-card {
    padding: var(--spacing-2xl);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    font-size: 2rem;
    color: var(--primary-color);
}

.newsletter-card h3 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.newsletter-card p {
    color: var(--gray-400);
    margin-bottom: var(--spacing-xl);
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.form-group input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--glass-bg-hover);
}

.newsletter-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    margin: 0;
}

/* ============================================
   ALERT SYSTEM - Messages système
   ============================================ */
.alert-container {
    position: fixed;
    top: 100px;
    right: var(--spacing-md);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 400px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateX(100%);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-text {
    flex: 1;
    margin: 0;
    line-height: 1.6;
    font-size: var(--font-size-sm);
    color: var(--white);
}

.alert-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.alert-close:hover {
    color: var(--white);
}

.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: currentColor;
    transition: width 5s linear;
}

.alert-danger {
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-success {
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    border-left: 4px solid var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    border-left: 4px solid var(--info-color);
    color: var(--info-color);
}

.alert-dev {
    border-left: 4px solid var(--dev-color);
    color: var(--dev-color);
}

@media (max-width: 640px) {
    .alert-container {
        right: var(--spacing-sm);
        left: var(--spacing-sm);
        max-width: none;
    }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-section {
    padding: var(--spacing-lg) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.breadcrumb {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-current {
    color: var(--white);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--gray-600);
    font-size: 0.75rem;
}

.page-title-main {
    font-size: var(--font-size-4xl);
    margin: 0;
    color: var(--white);
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity var(--transition-base);
}

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

.containbar {
    display: flex;
    gap: var(--spacing-sm);
}

.circle {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce-loader 0.6s infinite alternate;
}

.circle:nth-child(2) {
    animation-delay: 0.2s;
}

.circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce-loader {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0.5; }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: var(--spacing-xl) 0;
}

.footer-legal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.legal-sections {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    text-align: center;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
}

.legal-links a {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.legal-links a:hover {
    color: var(--primary-color);
}

.legal-copyright p {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .section-title {
        font-size: var(--font-size-3xl);
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .btn-large, .btn-hero {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ACCESSIBILITY - Optimisé pour dyslexiques
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Amélioration de la lisibilité */
p, li, a, button, input, textarea {
    word-spacing: 0.16em;
}

/* Contraste amélioré sur focus */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* ============================================
   MODE FOND CLAIR (Accessibilité Dyslexie)
   ============================================ */
body.light-mode {
    --bg-primary: #f5f5f7;
    --bg-secondary: #e8e8ed;
    --bg-tertiary: #dcdce2;
    --bg-light: #ffffff;

    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-bg-hover: rgba(0, 0, 0, 0.06);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);

    background: var(--bg-primary);
    color: var(--gray-800);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: var(--gray-900);
}

body.light-mode p,
body.light-mode li,
body.light-mode span {
    color: var(--gray-700);
}

body.light-mode .topbar {
    background: rgba(245, 245, 247, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .topbar-brand {
    color: var(--gray-600);
}

body.light-mode .topbar-brand:hover {
    color: var(--gray-900);
}

body.light-mode .navbar-glass-bg {
    background: rgba(245, 245, 247, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .navbar-scrolled .navbar-glass-bg {
    background: rgba(245, 245, 247, 0.98);
}

body.light-mode .nav-link {
    color: var(--gray-600);
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
    color: var(--gray-900);
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .navbar-logo {
    color: var(--gray-900);
}

body.light-mode .navbar-burger span {
    background: var(--gray-800);
}

body.light-mode .btn-glass {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .btn-glass:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(125, 71, 222, 0.2);
}

body.light-mode .hero-subtitle,
body.light-mode .section-subtitle,
body.light-mode .feature-card p,
body.light-mode .testimonial-text {
    color: var(--gray-600);
}

body.light-mode .stat-label,
body.light-mode .author-role {
    color: var(--gray-500);
}

body.light-mode footer {
    background: var(--bg-secondary);
    border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .legal-links a {
    color: var(--gray-600);
}

body.light-mode .legal-copyright p {
    color: var(--gray-500);
}

body.light-mode .breadcrumb-section {
    background: var(--bg-secondary);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .breadcrumb-item {
    color: var(--gray-500);
}

body.light-mode .breadcrumb-current {
    color: var(--gray-900);
}

body.light-mode .page-title-main {
    color: var(--gray-900);
}

body.light-mode .alert {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .alert-text {
    color: var(--gray-800);
}

body.light-mode .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-dropdown-item {
    color: var(--gray-600);
}

body.light-mode .nav-dropdown-item:hover {
    background: rgba(125, 71, 222, 0.1);
    color: var(--gray-900);
}

/* Boutons icônes light mode */
body.light-mode .btn-icon {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--gray-600);
}

body.light-mode .btn-icon:hover {
    background: rgba(125, 71, 222, 0.1);
    color: var(--gray-800);
}

body.light-mode .btn-icon-admin {
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.2);
}

body.light-mode .btn-icon-admin:hover {
    background: rgba(239, 68, 68, 0.1);
}

body.light-mode .btn-admin {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger-color) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

body.light-mode .btn-admin:hover {
    background: rgba(239, 68, 68, 0.18) !important;
}

body.light-mode .notification-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

body.light-mode .notification-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .notification-title {
    color: var(--gray-800);
}

body.light-mode .notification-mark-all {
    color: var(--gray-600);
}

body.light-mode .notification-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .notification-item.unread {
    background: rgba(125, 71, 222, 0.05);
}

body.light-mode .notification-content-title {
    color: var(--gray-800);
}

body.light-mode .notification-content-message {
    color: var(--gray-600);
}

body.light-mode .notification-time {
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .notification-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .notification-empty,
body.light-mode .notification-loading {
    color: var(--gray-600);
}

body.light-mode .notification-badge {
    border-color: rgba(255, 255, 255, 0.9);
}

body.light-mode .custom-select-button {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .custom-select-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .custom-select-option {
    color: var(--gray-800);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .form-group input,
body.light-mode input,
body.light-mode textarea {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .form-group input::placeholder,
body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: var(--gray-500);
}

/* ============================================
   MODE FOND CLAIR - Pages spécifiques
   ============================================ */

/* --- Auth / Connexion / Inscription --- */
body.light-mode .auth-title {
    background: linear-gradient(135deg, var(--gray-900), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .auth-subtitle,
body.light-mode .auth-footer p {
    color: var(--gray-600);
}

body.light-mode .form-label {
    color: var(--gray-700);
}

body.light-mode .form-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--gray-800);
}

body.light-mode .form-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
}

body.light-mode .checkbox-label {
    color: var(--gray-700);
}

body.light-mode .checkbox-custom {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .auth-divider span {
    background: var(--bg-primary);
    color: var(--gray-500);
}

body.light-mode .info-card h3 {
    color: var(--gray-900);
}

body.light-mode .info-card p {
    color: var(--gray-600);
}

body.light-mode .password-toggle {
    color: var(--gray-500);
}

body.light-mode .password-toggle:hover {
    color: var(--primary-color);
}

/* --- Contact --- */
body.light-mode .contact-header h1 {
    background: linear-gradient(135deg, var(--gray-900), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .contact-header p {
    color: var(--gray-600);
}

body.light-mode .main-contacts-section h2,
body.light-mode .regional-section h2 {
    color: var(--gray-900);
}

body.light-mode .main-contact-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .main-contact-card .card-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .main-contact-card .card-title h3 {
    color: var(--gray-900);
}

body.light-mode .contact-info-list li {
    color: var(--gray-600);
}

body.light-mode .contact-person .person-name {
    color: var(--gray-900);
}

body.light-mode .contact-person .person-role {
    color: var(--gray-500);
}

body.light-mode .accordion-item {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .accordion-header {
    color: var(--gray-900);
}

body.light-mode .accordion-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .accordion-header .region-info h3 {
    color: var(--gray-900);
}

body.light-mode .accordion-header .region-info .region-code {
    color: var(--gray-500);
}

body.light-mode .accordion-toggle {
    color: var(--gray-500);
}

body.light-mode .regional-contact {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .regional-contact:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(125, 71, 222, 0.15);
}

body.light-mode .regional-contact .contact-name {
    color: var(--gray-900);
}

body.light-mode .regional-contact .contact-role {
    color: var(--gray-500);
}

body.light-mode .regional-intro {
    background: linear-gradient(135deg, rgba(125, 71, 222, 0.08), rgba(157, 110, 231, 0.05));
}

body.light-mode .regional-intro p {
    color: var(--gray-700);
}

body.light-mode .map-container {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .map-info-panel {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .map-info-placeholder {
    color: var(--gray-500);
}

body.light-mode .map-info-content h3 {
    color: var(--gray-900);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .map-contact {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .map-contact-name {
    color: var(--gray-900);
}

body.light-mode .map-contact-role {
    color: var(--gray-500);
}

body.light-mode .view-toggle {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .view-toggle-btn {
    color: var(--gray-600);
}

body.light-mode .view-toggle-btn:hover {
    color: var(--gray-900);
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .france-map .region {
    fill: rgba(0, 0, 0, 0.05);
    stroke: rgba(0, 0, 0, 0.15);
}

body.light-mode .france-map .region.has-contacts {
    fill: rgba(125, 71, 222, 0.15);
    stroke: rgba(125, 71, 222, 0.4);
}

body.light-mode .map-legend {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .legend-item {
    color: var(--gray-600);
}

body.light-mode .search-input-wrapper input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .search-input-wrapper input::placeholder {
    color: var(--gray-500);
}

body.light-mode .search-input-wrapper i {
    color: var(--gray-500);
}

/* --- Admin --- */
body.light-mode .admin-section {
    background: var(--bg-primary);
}

body.light-mode .admin-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .admin-title {
    color: var(--gray-900);
}

body.light-mode .admin-description {
    color: var(--gray-600);
}

body.light-mode .btn-back {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-700);
}

body.light-mode .btn-back:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .stat-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .stat-value {
    color: var(--gray-900);
}

body.light-mode .stat-label {
    color: var(--gray-600);
}

body.light-mode .admin-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .card-header h2 {
    color: var(--gray-900);
}

body.light-mode .card-description {
    color: var(--gray-600);
}

body.light-mode .card-link {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--gray-800);
}

body.light-mode .card-link:hover {
    background: rgba(125, 71, 222, 0.08);
    border-color: var(--primary-color);
}

body.light-mode .card-link > i:last-child {
    color: var(--gray-500);
}

body.light-mode .recent-activity {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .activity-header h2 {
    color: var(--gray-900);
}

body.light-mode .activity-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .activity-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.light-mode .activity-title {
    color: var(--gray-900);
}

body.light-mode .activity-meta {
    color: var(--gray-600);
}

body.light-mode .activity-action {
    background: rgba(0, 0, 0, 0.03);
    color: var(--gray-500);
}

body.light-mode .no-activity {
    color: var(--gray-500);
}

/* --- Profil --- */
body.light-mode .profile-sidebar {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .profile-name {
    color: var(--gray-900);
}

body.light-mode .profile-contact {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
    color: var(--gray-700);
}

body.light-mode .profile-stats-sidebar {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .stat-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .stat-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.light-mode .stat-content .stat-label {
    color: var(--gray-500);
}

body.light-mode .stat-content .stat-value {
    color: var(--gray-800);
}

body.light-mode .profile-logout {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .section-title {
    color: var(--gray-900);
}

body.light-mode .section-subtitle {
    color: var(--gray-600);
}

body.light-mode .action-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .action-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
}

body.light-mode .action-title {
    color: var(--gray-900);
}

body.light-mode .action-description {
    color: var(--gray-600);
}

/* --- Éléments génériques réutilisés --- */
body.light-mode .text-muted {
    color: var(--gray-500);
}

body.light-mode .no-contacts {
    color: var(--gray-500);
}

body.light-mode .no-contacts i {
    color: var(--gray-400);
}

body.light-mode label {
    color: var(--gray-700);
}

body.light-mode .badge {
    color: inherit;
}

body.light-mode table {
    color: var(--gray-800);
}

body.light-mode th {
    color: var(--gray-700);
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode td {
    color: var(--gray-800);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

/* --- Pages Admin spécifiques (membres, etc.) --- */
body.light-mode .membres-section,
body.light-mode .cotisations-section,
body.light-mode .messages-section,
body.light-mode .parametres-section {
    background: var(--bg-primary);
}

body.light-mode .page-title {
    color: var(--gray-900);
}

body.light-mode .page-description {
    color: var(--gray-600);
}

body.light-mode .stat-box {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .stat-number {
    color: var(--gray-900);
}

body.light-mode .filters-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .search-field input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .search-field i {
    color: var(--gray-500);
}

/* --- Page Adhésion/Activation --- */
body.light-mode .page-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .adhesion-status p {
    color: var(--gray-600);
}

body.light-mode .form-title-section {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .form-description {
    color: var(--gray-600);
}

body.light-mode .tier-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .tier-item.active {
    background: rgba(125, 71, 222, 0.08);
}

body.light-mode .tier-name {
    color: var(--gray-900);
}

body.light-mode .tier-description,
body.light-mode .price-libre {
    color: var(--gray-500);
}

/* --- Éléments communs supplémentaires --- */
body.light-mode .page-card-large {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .benefit-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .benefit-card h3 {
    color: var(--gray-900);
}

body.light-mode .benefit-card p {
    color: var(--gray-600);
}

body.light-mode select {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-900);
}

body.light-mode .modal-body {
    color: var(--gray-700);
}

body.light-mode .modal-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode code {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gray-800);
}

body.light-mode pre {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--gray-800);
}

body.light-mode blockquote {
    border-left-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.02);
    color: var(--gray-700);
}

body.light-mode hr {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode ::selection {
    background: rgba(125, 71, 222, 0.3);
    color: var(--gray-900);
}

/* ============================================
   MODE FOND CLAIR - Pages Admin Complètes
   ============================================ */

/* --- Admin Membres --- */
body.light-mode .table-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .members-table thead th {
    color: var(--gray-600);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .members-table tbody td {
    color: var(--gray-700);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .members-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .member-name {
    color: var(--gray-900);
}

body.light-mode .member-pseudo {
    color: var(--gray-500);
}

body.light-mode .btn-action {
    background: rgba(0, 0, 0, 0.03);
    color: var(--gray-500);
}

body.light-mode .btn-action:hover {
    background: var(--primary-color);
    color: var(--white);
}

body.light-mode .clear-search {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gray-500);
}

body.light-mode .clear-search:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

body.light-mode .table-loading {
    color: var(--gray-500);
}

body.light-mode .empty-state {
    color: var(--gray-500);
}

/* --- Admin Messages --- */
body.light-mode .sidebar-nav {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-item {
    color: var(--gray-600);
}

body.light-mode .nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gray-800);
}

body.light-mode .nav-item.active {
    background: rgba(125, 71, 222, 0.1);
    color: var(--gray-900);
}

body.light-mode .nav-item span {
    color: inherit;
}

body.light-mode .sidebar-filter {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .sidebar-filter h3 {
    color: var(--gray-500);
}

body.light-mode .filter-checkbox span {
    color: var(--gray-700);
}

body.light-mode .messages-main {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .messages-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .messages-header h2 {
    color: var(--gray-900);
}

body.light-mode .search-box input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .search-box input:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

body.light-mode .search-box i {
    color: var(--gray-500);
}

body.light-mode .message-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .message-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .message-item.unread {
    background: rgba(125, 71, 222, 0.05);
}

body.light-mode .message-sender {
    color: var(--gray-900);
}

body.light-mode .message-subject {
    color: var(--gray-800);
}

body.light-mode .message-item.unread .message-subject {
    color: var(--primary-color);
}

body.light-mode .message-preview {
    color: var(--gray-500);
}

body.light-mode .message-date {
    color: var(--gray-500);
}

body.light-mode .empty-messages {
    color: var(--gray-500);
}

body.light-mode .message-meta {
    background: rgba(125, 71, 222, 0.05);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .meta-item strong {
    color: var(--gray-500);
}

body.light-mode .meta-item span {
    color: var(--gray-800);
}

body.light-mode .message-body {
    background: rgba(0, 0, 0, 0.02);
    color: var(--gray-700);
}

/* --- Admin Cotisations / Reports / Trésorerie --- */
body.light-mode .reports-section,
body.light-mode .cotisations-section,
body.light-mode .paiements-section,
body.light-mode .tresorerie-section,
body.light-mode .bilans-section,
body.light-mode .logs-section {
    background: var(--bg-primary);
}

body.light-mode .report-card,
body.light-mode .tresorerie-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .report-card h3 {
    color: var(--gray-900);
}

body.light-mode .report-card p {
    color: var(--gray-600);
}

body.light-mode .tresorerie-value {
    color: var(--gray-900);
}

body.light-mode .tresorerie-label {
    color: var(--gray-600);
}

body.light-mode .bilan-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .bilan-card h3 {
    color: var(--gray-900);
}

body.light-mode .bilan-info {
    color: var(--gray-600);
}

body.light-mode .cotisations-stats .stat-box {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .stat-icon i {
    color: var(--white);
}

/* --- Admin Paramètres --- */
body.light-mode .settings-section {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .section-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .section-header h2 {
    color: var(--gray-900);
}

body.light-mode .section-header p {
    color: var(--gray-600);
}

body.light-mode .setting-field label {
    color: var(--gray-700);
}

body.light-mode .setting-field input,
body.light-mode .setting-field textarea {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .setting-field input:focus,
body.light-mode .setting-field textarea:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
}

body.light-mode .toggle-field {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .toggle-info label {
    color: var(--gray-900);
}

body.light-mode .toggle-info p {
    color: var(--gray-600);
}

body.light-mode .toggle-slider {
    background: rgba(0, 0, 0, 0.1);
}

/* --- Admin Logs --- */
body.light-mode .logs-list .log-item {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .log-action {
    color: var(--gray-900);
}

body.light-mode .log-meta {
    color: var(--gray-500);
}

/* --- Modals Admin --- */
body.light-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

body.light-mode .modal-container {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .modal-header h2 {
    color: var(--gray-900);
}

body.light-mode .modal-close {
    background: rgba(0, 0, 0, 0.03);
    color: var(--gray-500);
}

body.light-mode .modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

body.light-mode .modal-body {
    color: var(--gray-700);
}

body.light-mode .modal-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .form-field label {
    color: var(--gray-700);
}

body.light-mode .form-field input,
body.light-mode .form-field select,
body.light-mode .form-field textarea {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .form-field input:focus,
body.light-mode .form-field select:focus,
body.light-mode .form-field textarea:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary-color);
}

/* --- Member Detail Modal --- */
body.light-mode .member-detail-header h3 {
    color: var(--gray-900);
}

body.light-mode .member-detail-header .member-pseudo {
    color: var(--gray-500);
}

body.light-mode .detail-item {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .detail-label {
    color: var(--gray-500);
}

body.light-mode .detail-value {
    color: var(--gray-800);
}

/* --- Notifications --- */
body.light-mode .notification {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

/* --- Compte Modifier --- */
body.light-mode .page-section {
    background: var(--bg-primary);
}

body.light-mode .page-container .page-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

/* --- Compte Adhésion Activation --- */
body.light-mode .adhesion-status {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
}

body.light-mode .adhesion-status h3 {
    color: var(--gray-900);
}

body.light-mode .adhesion-status p {
    color: var(--gray-600);
}

body.light-mode .tier-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .tier-item:hover {
    border-color: var(--primary-color);
}

body.light-mode .tier-item.active {
    background: rgba(125, 71, 222, 0.08);
    border-color: var(--primary-color);
}

body.light-mode .tier-name {
    color: var(--gray-900);
}

body.light-mode .tier-description {
    color: var(--gray-500);
}

body.light-mode .qty-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-700);
}

body.light-mode .qty-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

body.light-mode .qty-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .donation-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-700);
}

body.light-mode .donation-btn:hover,
body.light-mode .donation-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

body.light-mode .donation-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .donation-currency {
    color: var(--gray-500);
}

body.light-mode .summary-section {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .summary-empty {
    color: var(--gray-500);
}

body.light-mode .summary-item {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .summary-item-name {
    color: var(--gray-700);
}

body.light-mode .summary-item-qty {
    color: var(--gray-500);
}

body.light-mode .summary-item-price {
    color: var(--gray-800);
}

body.light-mode .summary-total {
    border-top-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-900);
}

body.light-mode .conditions-section {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .info-box {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .info-box p {
    color: var(--gray-700);
}

/* --- Validation utilisateur HelloAsso --- */
body.light-mode .alert-user-info {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
}

body.light-mode .alert-user-info strong {
    color: var(--gray-900);
}

body.light-mode .alert-user-info p {
    color: var(--gray-700);
}

body.light-mode .user-info-errors {
    color: var(--gray-700);
}

body.light-mode .user-info-errors li {
    color: var(--gray-700);
}

body.light-mode .user-info-errors li strong {
    color: var(--gray-800);
}

body.light-mode .current-user-info {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .current-user-info h3 {
    color: var(--gray-900);
}

body.light-mode .info-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .info-row.has-error {
    background: rgba(239, 68, 68, 0.05);
}

body.light-mode .info-label {
    color: var(--gray-500);
}

body.light-mode .info-value {
    color: var(--gray-800);
}

body.light-mode .user-info-section {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .user-info-section h3 {
    color: var(--gray-900);
}

body.light-mode .section-description {
    color: var(--gray-600);
}

body.light-mode .section-description a {
    color: var(--primary-color);
}

body.light-mode .user-info-grid {
    background: transparent;
}

body.light-mode .user-info-item {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .user-info-label {
    color: var(--gray-500);
}

body.light-mode .user-info-value {
    color: var(--gray-800);
}

/* --- Boutons secondaires --- */
body.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-700);
}

body.light-mode .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .btn-reset {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

body.light-mode .btn-reset:hover {
    background: rgba(239, 68, 68, 0.15);
}

body.light-mode .btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

body.light-mode .btn-danger:hover {
    background: #ef4444;
    color: var(--white);
}

/* --- Filtres Admin --- */
body.light-mode .filter-group select {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
}

body.light-mode .filter-group select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
}

/* --- Back Link --- */
body.light-mode .back-link {
    color: var(--primary-color);
}

/* --- Sécurité Mot de passe --- */
body.light-mode .security-tips {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
}

body.light-mode .security-tips h3 {
    color: var(--gray-900);
}

body.light-mode .security-tips li {
    color: var(--gray-700);
}

body.light-mode .field-hint {
    color: var(--gray-500);
}

/* --- Admin Adhésions --- */
body.light-mode .adhesions-section {
    background: var(--bg-primary);
}

body.light-mode .adhesion-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .adhesion-card:hover {
    border-color: var(--primary-color);
}

body.light-mode .adhesion-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .member-email {
    color: var(--gray-500);
}

body.light-mode .info-label {
    color: var(--gray-500);
}

body.light-mode .info-value {
    color: var(--gray-800);
}

body.light-mode .adhesion-note {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
}

body.light-mode .adhesion-note p {
    color: var(--gray-700);
}

body.light-mode .btn-view {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-700);
}

body.light-mode .btn-view:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

body.light-mode .info-card {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
}

body.light-mode .info-card h3 {
    color: var(--gray-900);
}

body.light-mode .info-card li {
    color: var(--gray-700);
}

/* --- Admin Contacts --- */
body.light-mode .contacts-section {
    background: var(--bg-primary);
}

body.light-mode .contact-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .contact-card:hover {
    border-color: var(--primary-color);
}

/* --- Admin Export/Maintenance/Sauvegardes --- */
body.light-mode .export-section,
body.light-mode .maintenance-section,
body.light-mode .sauvegardes-section,
body.light-mode .statistiques-section,
body.light-mode .roles-section,
body.light-mode .helloasso-section,
body.light-mode .pages-section,
body.light-mode .test-email-section {
    background: var(--bg-primary);
}

body.light-mode .export-card,
body.light-mode .maintenance-card,
body.light-mode .sauvegarde-card,
body.light-mode .stat-chart-card,
body.light-mode .role-card,
body.light-mode .helloasso-card,
body.light-mode .page-edit-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

/* --- Badges génériques --- */
body.light-mode .badge-warning {
    background: rgba(251, 146, 60, 0.12);
    color: #ea580c;
}

body.light-mode .badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

body.light-mode .badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* --- Éléments de formulaire supplémentaires --- */
body.light-mode .form-group label {
    color: var(--gray-700);
}

body.light-mode .checkbox-label span {
    color: var(--gray-700);
}

body.light-mode .radio-label span {
    color: var(--gray-700);
}

/* --- Scrollbar en mode clair --- */
body.light-mode ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.light-mode ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(125, 71, 222, 0.3);
    border-radius: 4px;
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(125, 71, 222, 0.5);
}

/* --- Pages Confirmation Adhésion --- */
body.light-mode .confirmation-message {
    color: var(--gray-600);
}

body.light-mode .confirmation-details {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .detail-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .detail-label {
    color: var(--gray-500);
}

body.light-mode .detail-value {
    color: var(--gray-800);
}

body.light-mode .unlocked-features {
    background: rgba(125, 71, 222, 0.05);
    border-color: rgba(125, 71, 222, 0.15);
}

body.light-mode .feature-item {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .feature-item span {
    color: var(--gray-700);
}

body.light-mode .reference-box {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .reference-label {
    color: var(--gray-500);
}

body.light-mode .reference-value {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gray-800);
}

/* --- Stat Value générique --- */
body.light-mode .stat-value {
    color: var(--gray-900);
}

/* --- Table Card générique --- */
body.light-mode .table-card th {
    color: var(--gray-600);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .table-card td {
    color: var(--gray-700);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* --- Cacher les effets de fond en mode clair --- */
body.light-mode .hero-bg-effects,
body.light-mode .auth-bg-effects,
body.light-mode .cta-bg-effects,
body.light-mode .gradient-orb,
body.light-mode .orb-1,
body.light-mode .orb-2,
body.light-mode .orb-3 {
    display: none !important;
}

/* --- Hero title en mode clair --- */
body.light-mode .hero-title {
    background: linear-gradient(135deg, var(--gray-900), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Logo en mode clair (SVG blanc -> noir) --- */
body.light-mode .logo-wrapper svg g {
    fill: var(--gray-900);
}

body.light-mode .logo-wrapper svg path {
    fill: var(--gray-900);
}

body.light-mode .logo-text {
    color: var(--gray-900);
}

/* --- Attribution Section (Beneficiaires) --- */
body.light-mode .attribution-section {
    background: rgba(125, 71, 222, 0.05);
    border-color: rgba(125, 71, 222, 0.15);
}

body.light-mode .attribution-section h3 {
    color: var(--gray-900);
}

body.light-mode .attribution-description {
    color: var(--gray-600);
}

body.light-mode .attribution-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .attribution-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(125, 71, 222, 0.3);
}

body.light-mode .attribution-item.is-buyer {
    border-color: var(--primary-color);
    background: rgba(125, 71, 222, 0.08);
}

body.light-mode .attribution-tier-name {
    color: var(--gray-900);
}

body.light-mode .attribution-tier-price {
    color: var(--primary-color);
}

body.light-mode .attribution-option-buyer span {
    color: var(--gray-800);
}

body.light-mode .attribution-email-input {
    background: var(--white);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--gray-900);
}

body.light-mode .attribution-email-input::placeholder {
    color: var(--gray-400);
}

body.light-mode .attribution-email-input:focus {
    border-color: var(--primary-color);
    background: var(--white);
}

body.light-mode .attribution-email-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

body.light-mode .attribution-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

body.light-mode .attribution-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
}

body.light-mode .email-error.checking {
    color: var(--gray-500);
}

body.light-mode .email-error.checking::before {
    border-color: var(--gray-400);
    border-top-color: transparent;
}

/* --- Invitation Page --- */
body.light-mode .page-card-medium {
    background: var(--white);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .invitation-error h1,
body.light-mode .invitation-success h1,
body.light-mode .invitation-auth h1,
body.light-mode .invitation-register h1,
body.light-mode .invitation-accept h1 {
    color: var(--gray-900);
}

body.light-mode .error-message,
body.light-mode .success-message,
body.light-mode .auth-message,
body.light-mode .register-message,
body.light-mode .accept-message {
    color: var(--gray-600);
}

body.light-mode .error-icon {
    background: rgba(239, 68, 68, 0.08);
}

body.light-mode .success-icon {
    background: rgba(34, 197, 94, 0.08);
}

body.light-mode .auth-icon {
    background: rgba(59, 130, 246, 0.08);
}

body.light-mode .register-icon {
    background: rgba(125, 71, 222, 0.08);
}

body.light-mode .accept-icon {
    background: linear-gradient(135deg, rgba(125, 71, 222, 0.1), rgba(168, 85, 247, 0.1));
}

body.light-mode .gift-preview {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .gift-name {
    color: var(--gray-900);
}

body.light-mode .gift-from {
    color: var(--gray-500);
}

body.light-mode .gift-info {
    background: rgba(125, 71, 222, 0.05);
    border-color: rgba(125, 71, 222, 0.15);
}

body.light-mode .gift-info p {
    color: var(--gray-700);
}

body.light-mode .benefits-section {
    background: rgba(125, 71, 222, 0.03);
    border-color: rgba(125, 71, 222, 0.1);
}

body.light-mode .benefits-section h3 {
    color: var(--gray-900);
}

body.light-mode .benefit-item {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .benefit-item span {
    color: var(--gray-700);
}

body.light-mode .info-notice {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
}

body.light-mode .info-notice p {
    color: var(--gray-700);
}

body.light-mode .expiry-notice {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.15);
}

body.light-mode .expiry-notice p {
    color: var(--gray-700);
}

/* ============================================
   WIDGET ACCESSIBILITÉ
   ============================================ */
.accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.accessibility-toggle {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(125, 71, 222, 0.4);
    transition: all var(--transition-base);
}

.accessibility-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(125, 71, 222, 0.5);
}

.accessibility-toggle i {
    font-size: 1.5rem;
    color: var(--white);
}

.accessibility-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    min-width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.accessibility-widget.open .accessibility-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.light-mode .accessibility-panel {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

.accessibility-panel-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--glass-border);
}

body.light-mode .accessibility-panel-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.accessibility-panel-header i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.accessibility-panel-header h4 {
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--white);
}

body.light-mode .accessibility-panel-header h4 {
    color: var(--gray-900);
}

.accessibility-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.accessibility-option-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.accessibility-option-label span:first-child {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--white);
}

body.light-mode .accessibility-option-label span:first-child {
    color: var(--gray-800);
}

.accessibility-option-label span:last-child {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
}

body.light-mode .accessibility-option-label span:last-child {
    color: var(--gray-500);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

body.light-mode .toggle-slider {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--gray-400);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider::before {
    background: var(--white);
    transform: translateX(22px);
}

.toggle-switch input:focus-visible + .toggle-slider {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .accessibility-widget {
        bottom: 15px;
        right: 15px;
    }

    .accessibility-toggle {
        width: 45px;
        height: 45px;
    }

    .accessibility-panel {
        min-width: 260px;
        right: -5px;
    }
}

/* ============================================
   CUSTOM SELECT ELEMENTS - Glassmorphism Design
   ============================================ */

/* Conteneur principal */
.custom-select {
    position: relative;
    width: 100%;
    animation: selectFadeIn 0.3s ease-out;
}

/* Z-index élevé quand ouvert pour passer au-dessus de tout */
.custom-select.open {
    z-index: 99999 !important;
}

/* Bouton de sélection */
.custom-select-button {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 1.25rem;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-xl);
    color: var(--white);
    font-size: var(--font-size-base);
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.015em;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-select-button:hover {
    background: linear-gradient(135deg, var(--glass-bg-hover), var(--glass-bg));
    border-color: rgba(125, 71, 222, 0.5);
    box-shadow: 0 4px 12px rgba(125, 71, 222, 0.15);
    transform: translateY(-1px);
}

.custom-select-button:focus,
.custom-select.open .custom-select-button {
    outline: none;
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--glass-bg-hover), var(--glass-bg));
    box-shadow: 0 0 0 4px rgba(125, 71, 222, 0.15),
                0 8px 16px rgba(125, 71, 222, 0.2);
    transform: translateY(-1px);
}

/* Valeur sélectionnée */
.custom-select-value {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Flèche */
.custom-select-arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: 0.5rem;
}

.custom-select-button:hover .custom-select-arrow {
    color: var(--primary-color);
}

.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Menu déroulant */
.custom-select-dropdown {
    position: fixed;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(125, 71, 222, 0.1);
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 99999 !important;
}

/* Affichage du dropdown quand ouvert (le dropdown n'est plus enfant du container) */
.custom-select-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scrollbar custom pour le dropdown */
.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Options */
.custom-select-option {
    padding: 0.875rem 1.25rem;
    color: var(--white);
    font-weight: 500;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover,
.custom-select-option.focused {
    background: linear-gradient(135deg, rgba(125, 71, 222, 0.2), rgba(125, 71, 222, 0.1));
    padding-left: 1.5rem;
}

.custom-select-option.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-weight: 700;
}

.custom-select-option.selected::before {
    content: '✓ ';
    margin-right: 0.5rem;
    font-weight: 700;
}

.custom-select-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.02);
}

.custom-select-option.disabled:hover {
    background: transparent;
    padding-left: 1.25rem;
}

/* Style compact */
.custom-select.select-sm .custom-select-button {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    font-size: var(--font-size-sm);
    border-width: 1px;
    font-weight: 500;
}

.custom-select.select-sm .custom-select-arrow {
    width: 14px;
    height: 14px;
}

.custom-select.select-sm .custom-select-option {
    padding: 0.625rem 1rem;
    font-size: var(--font-size-sm);
}

/* Style premium */
.custom-select.select-premium .custom-select-button {
    background: linear-gradient(135deg, var(--glass-bg), rgba(125, 71, 222, 0.05));
    border: 2px solid rgba(125, 71, 222, 0.2);
    font-weight: 700;
    padding: 1rem 3rem 1rem 1.5rem;
}

.custom-select.select-premium .custom-select-button:hover {
    border-color: rgba(125, 71, 222, 0.6);
    box-shadow: 0 8px 24px rgba(125, 71, 222, 0.25);
}

.custom-select.select-premium .custom-select-button:focus,
.custom-select.select-premium.open .custom-select-button {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(125, 71, 222, 0.2),
                0 12px 32px rgba(125, 71, 222, 0.3);
}

/* Animation d'apparition */
@keyframes selectFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style pour les selects dans les formulaires */
.form-field .custom-select,
.form-group .custom-select,
.form-input-group .custom-select {
    margin-bottom: 0;
}

/* Animation au survol pour les selects dans les cartes */
.glass-card .custom-select-button,
.feature-card .custom-select-button,
.visual-card .custom-select-button {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.glass-card .custom-select-button:hover,
.feature-card .custom-select-button:hover,
.visual-card .custom-select-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(125, 71, 222, 0.4);
}

/* Bandeau bénévole en mode clair */
body.light-mode .volunteer-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.volunteer-banner-content span {
    color: black !important;
}