/* Variables CSS - Couleurs classiques (Mode clair) - Updated: Bleu foncé du mode sombre appliqué */
:root {
    --primary-blue: #2d7acc;
    --dark-blue: #2d7acc;
    --light-blue: #e6f2ff;
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #333333;
    --text-gray: #666666;
    --border-gray: #dddddd;
    --orange: #ff6600;
    
    --bg-primary: #fafbfc;
    --bg-secondary: #f0f4f8;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e1e8ed;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 20px rgba(45, 122, 204, 0.3);
    
    --gradient-primary: linear-gradient(135deg, #2d7acc 0%, #2d7acc 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 252, 0.9) 100%);
    --gradient-stat: linear-gradient(135deg, #2d7acc 0%, #2d7acc 50%, #2d7acc 100%);
    --gradient-bg: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 25%, #e6f2ff 50%, #f0f4f8 75%, #fafbfc 100%);
    --gradient-bg-subtle: radial-gradient(circle at 20% 30%, rgba(45, 122, 204, 0.03) 0%, transparent 50%),
                          radial-gradient(circle at 80% 70%, rgba(255, 102, 0, 0.03) 0%, transparent 50%),
                          linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
}

/* Mode sombre */
[data-theme="dark"] {
    --primary-blue: #2d7acc;
    --dark-blue: #2d7acc;
    --light-blue: #1a1a2e;
    --white: #1e1e2e;
    --gray: #2a2a3e;
    --dark-gray: #e0e0e0;
    --text-gray: #b0b0b0;
    --border-gray: #3a3a4e;
    --orange: #ff8844;
    
    --bg-primary: #1a1a2e;
    --bg-secondary: #252538;
    --bg-card: #2a2a3e;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a4e;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(45, 122, 204, 0.3);
    
    --gradient-primary: linear-gradient(135deg, #2d7acc 0%, #2d7acc 100%);
    --gradient-card: linear-gradient(135deg, rgba(42, 42, 62, 0.95) 0%, rgba(37, 37, 56, 0.9) 100%);
    --gradient-stat: linear-gradient(135deg, #2d7acc 0%, #2d7acc 50%, #2d7acc 100%);
    --gradient-bg: linear-gradient(135deg, #1a1a2e 0%, #252538 25%, #1e1e2e 50%, #252538 75%, #1a1a2e 100%);
    --gradient-bg-subtle: radial-gradient(circle at 20% 30%, rgba(45, 122, 204, 0.05) 0%, transparent 50%),
                          radial-gradient(circle at 80% 70%, rgba(255, 136, 68, 0.05) 0%, transparent 50%),
                          linear-gradient(135deg, #1a1a2e 0%, #252538 100%);
}

[data-theme="dark"] body::before {
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(45, 122, 204, 0.1) 1px, transparent 0);
    opacity: 0.2;
}

[data-theme="dark"] body::after {
    background: 
        radial-gradient(circle at 15% 20%, rgba(45, 122, 204, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 136, 68, 0.08) 0%, transparent 40%);
}

/* Styles pour les cases de code (6 chiffres) */
.code-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(45, 122, 204, 0.1);
    transform: scale(1.05);
}

.code-input:invalid {
    border-color: #ff4444;
}

[data-theme="dark"] .code-input {
    background: var(--bg-card);
    border-color: var(--border-gray);
    color: var(--text-primary);
}

[data-theme="dark"] .code-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(45, 122, 204, 0.2);
}

/* Animations d'erreur pour les codes de vérification */
.shake-animation {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.error-pulse {
    animation: errorPulse 0.6s ease-in-out;
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

@keyframes errorPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.error-shake {
    animation: errorShake 0.5s ease-in-out;
    border-color: #dc3545 !important;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px) rotate(-2deg);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px) rotate(2deg);
    }
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    scroll-padding-top: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--gradient-bg-subtle);
    background-attachment: fixed;
    min-height: auto;
    height: auto;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
    opacity: 0;
    animation: pageFadeIn 0.6s ease forwards;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    padding-top: 0;
    padding-bottom: 0;
    scroll-padding-top: 0;
}

/* Permettre le défilement sur la page de connexion pour les petits écrans */
body.login-page {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    height: auto;
}

body.login-page.don-page,
body.login-page.actions-page,
body.login-page.evenements-page,
body.login-page.benevoles-page {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    height: auto;
}

/* Forcer le header à être fixe par rapport à la fenêtre */
html .main-header,
body .main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Forcer tous les enfants du header à rester en place */
.main-header * {
    position: relative !important;
    transform: translate3d(0, 0, 0) !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(45, 122, 204, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 15% 20%, rgba(45, 122, 204, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 102, 0, 0.05) 0%, transparent 40%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(2%, 2%) scale(1.05);
    }
}

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

/* Page de connexion */
.login-page {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

/* Optimisation mobile : background-attachment scroll pour meilleures performances */
@media (max-width: 768px) {
    .login-page {
        background-attachment: scroll;
    }
}

.login-page.don-page,
.login-page.actions-page,
.login-page.evenements-page,
.login-page.benevoles-page {
    max-height: none;
    height: auto;
    padding: 2rem 0;
    justify-content: flex-start;
}

.login-header-logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 80px;
    min-width: 280px;
    order: 0;
}

.login-header-logo img {
    max-height: 80px;
    max-width: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Gestion du logo selon le thème sur la page de login */
.login-page .logo-light {
    display: block !important;
}

.login-page .logo-dark {
    display: none !important;
}

/* Le thème est appliqué sur html, pas sur body */
[data-theme="dark"] .login-page .logo-light {
    display: none !important;
}

[data-theme="dark"] .login-page .logo-dark {
    display: block !important;
}

.login-header-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-selector {
    position: relative;
    top: 0;
    right: 0;
}

.language-selector select {
    padding: 10px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 20px;
    background: var(--white);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.language-selector select:hover {
    border-color: var(--primary-blue);
}

[data-theme="dark"] .language-selector select {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: #ffffff;
}

[data-theme="dark"] .language-selector select option {
    background: var(--bg-secondary);
    color: #ffffff;
}

/* Bouton de thème sur la page de connexion */
.login-page .btn-theme-toggle {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.login-page .btn-theme-toggle:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-md);
}

.login-page .btn-theme-toggle .theme-icon {
    transition: transform 0.3s ease;
}

.login-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 1;
}

.login-box {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-gray);
    position: relative;
    display: flex;
    flex-direction: column;
}

.login-box form {
    order: 2;
}

.login-box h1 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    order: 1;
}

.login-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    order: 1;
    height: 80px;
}

.login-logo-container img {
    max-height: 80px;
    max-width: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.form-group {
    margin-bottom: 24px;
}

/* Style pour le champ ID plus petit */
.form-group-small {
    max-width: 200px;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

/* Style pour les champs désactivés en lecture seule dans le formulaire de coordonnées */
#email:disabled,
#email[readonly],
#contact_id:disabled,
#contact_id[readonly],
#identite_complete:disabled,
#identite_complete[readonly] {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

[data-theme="dark"] #email:disabled,
[data-theme="dark"] #email[readonly],
[data-theme="dark"] #contact_id:disabled,
[data-theme="dark"] #contact_id[readonly],
[data-theme="dark"] #identite_complete:disabled,
[data-theme="dark"] #identite_complete[readonly] {
    background-color: #2a2a3e;
    color: #666;
    opacity: 0.6;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 252, 0.9) 100%);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) inset;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.95) 0%, rgba(37, 37, 56, 0.9) 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) inset;
    color: #ffffff !important;
}

[data-theme="dark"] .form-group select option {
    background: var(--bg-secondary) !important;
    color: #ffffff !important;
    padding: 10px;
}

.form-group {
    position: relative;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.address-suggestions.active {
    display: block;
}

.address-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

.address-suggestion-item:hover {
    background-color: var(--light-blue);
}

.address-suggestion-item.selected {
    background-color: var(--primary-blue);
    color: var(--white);
}

.address-suggestion-item .address-main {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.address-suggestion-item .address-details {
    font-size: 12px;
    color: var(--text-secondary);
}

.address-suggestion-item.selected .address-main,
.address-suggestion-item.selected .address-details {
    color: var(--white);
}

[data-theme="dark"] .address-suggestions {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .address-suggestion-item:hover {
    background-color: rgba(45, 122, 204, 0.2);
}

[data-theme="dark"] .address-suggestion-item.selected {
    background-color: #2d7acc;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 
        0 0 0 3px rgba(45, 122, 204, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.04) inset;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 251, 252, 0.95) 100%);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    background: linear-gradient(135deg, rgba(42, 42, 62, 1) 0%, rgba(37, 37, 56, 0.95) 100%);
    box-shadow: 
        0 0 0 3px rgba(45, 122, 204, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.2) inset;
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 50px;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    min-width: 36px;
    min-height: 36px;
}

.toggle-password:hover {
    color: var(--primary-blue);
    background: rgba(45, 122, 204, 0.1);
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

[data-theme="dark"] .toggle-password {
    color: var(--text-secondary);
}

[data-theme="dark"] .toggle-password:hover {
    background: rgba(45, 122, 204, 0.2);
}

/* Styles pour les champs de mot de passe avec bouton toggle */
.password-input-group {
    position: relative;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 50px;
    flex: 1;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 2;
}

.password-toggle-btn:hover {
    background: rgba(45, 122, 204, 0.1);
}

.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle-icon {
    font-size: 20px;
    user-select: none;
    pointer-events: none;
}

.password-match-message {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(40, 167, 69, 0.1);
    border-left: 3px solid;
    animation: slideDown 0.3s ease;
}

.password-match-message[style*="color: #dc3545"] {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.password-match-message[style*="color: #28a745"] {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

[data-theme="dark"] .password-toggle-btn:hover {
    background: rgba(45, 122, 204, 0.2);
}

[data-theme="dark"] .password-match-message {
    background: rgba(40, 167, 69, 0.15);
}

[data-theme="dark"] .password-match-message[style*="color: #dc3545"] {
    background: rgba(220, 53, 69, 0.15);
}

[data-theme="dark"] .password-match-message[style*="color: #28a745"] {
    background: rgba(40, 167, 69, 0.15);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les exigences de mot de passe */
.password-requirements {
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(45, 122, 204, 0.05) 0%, rgba(45, 122, 204, 0.02) 100%);
    border: 1px solid rgba(45, 122, 204, 0.15);
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

.requirements-title {
    margin: 0 0 8px 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 0;
    white-space: nowrap;
}

.requirement-icon {
    font-size: 14px;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.requirement-text {
    line-height: 1.3;
    white-space: nowrap;
}

.requirement-item.requirement-valid {
    color: var(--text-primary);
}

.requirement-item.requirement-valid .requirement-text {
    color: #28a745;
    font-weight: 500;
}

.requirement-item.requirement-invalid .requirement-text {
    color: var(--text-secondary);
}

.requirement-item.requirement-invalid .requirement-icon {
    color: #dc3545;
}

[data-theme="dark"] .password-requirements {
    background: linear-gradient(135deg, rgba(45, 122, 204, 0.1) 0%, rgba(45, 122, 204, 0.05) 100%);
    border-color: rgba(45, 122, 204, 0.25);
}

[data-theme="dark"] .requirement-item.requirement-valid .requirement-text {
    color: #4ade80;
}

[data-theme="dark"] .requirement-item.requirement-invalid .requirement-icon {
    color: #f87171;
}

/* Style pour le bouton désactivé */
.btn-primary.btn-disabled,
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray);
    pointer-events: none;
}

.btn-primary.btn-disabled:hover,
.btn-primary:disabled:hover {
    background: var(--gray);
    transform: none;
    box-shadow: none;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: var(--shadow-md);
    min-height: 48px;
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loader moderne */
.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-blue);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loader-text {
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.login-links {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.login-links a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.first-time-section {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-gray);
}

.first-time-section p {
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 15px;
}

.btn-orange {
    padding: 14px 32px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-orange:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Bannière récupérée depuis SQL */
.header-banner-editable {
    width: calc(100% - 30px);
    margin-top: 99px;
    margin-left: 15px;
    margin-right: 15px;
    position: relative;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    min-height: 100px;
    max-height: 140px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 16px;
}

.banner-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    max-height: 140px;
    border-radius: 16px;
    overflow: hidden;
}

.banner-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

[data-theme="dark"] .header-banner-editable {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

/* Message de bienvenue sur la bannière */
.banner-welcome-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    pointer-events: none;
}

.banner-welcome-message h3 {
    color: #ffffff;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

[data-theme="dark"] .banner-welcome-message h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.7);
}

.banner-welcome-message h3 #userFirstName {
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.4);
    display: inline-block;
}

[data-theme="dark"] .banner-welcome-message h3 #userFirstName {
    color: #FFD700 !important;
    text-shadow: 0 2px 12px rgba(255, 215, 0, 0.9), 0 0 6px rgba(255, 215, 0, 0.6);
}

.banner-welcome-message h3 #premiereAnnee {
    font-weight: 700;
    font-size: 26px;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.4);
    display: inline-block;
    margin-left: 4px;
}

[data-theme="dark"] .banner-welcome-message h3 #premiereAnnee {
    color: #FFD700 !important;
    text-shadow: 0 2px 12px rgba(255, 215, 0, 0.9), 0 0 6px rgba(255, 215, 0, 0.6);
}

/* Responsive pour la bannière */
@media (max-width: 768px) {
    .header-banner-editable {
        margin-top: 99px;
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
        min-height: 100px;
        max-height: 180px;
        border-radius: 12px;
    }

    .banner-image-container {
        min-height: 100px;
        max-height: 180px;
        border-radius: 12px;
    }

    .banner-welcome-message h3 {
        font-size: 18px;
    }

    .banner-welcome-message h3 #premiereAnnee {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header-banner-editable {
        margin-top: 92px;
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
        min-height: 100px;
        max-height: 150px;
        border-radius: 10px;
    }

    .banner-image-container {
        min-height: 100px;
        max-height: 150px;
        border-radius: 10px;
    }

    .banner-welcome-message {
        width: 95%;
    }

    .banner-welcome-message h3 {
        font-size: 14px;
        line-height: 1.4;
    }

    .banner-welcome-message h3 #premiereAnnee {
        font-size: 16px;
    }

    .placeholder-icon {
        font-size: 32px;
    }

    .placeholder-text {
        font-size: 12px;
    }
}

/* Header principal - Fixe en haut */
.main-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(225, 232, 237, 0.8);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    z-index: 99999 !important;
    transition: background-color 0.3s ease;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: auto;
    contain: none;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    /* Garantir que le header reste fixe même lors du scroll */
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
}

/* S'assurer que tous les éléments du header restent cliquables */
.main-header * {
    pointer-events: auto !important;
}

[data-theme="dark"] .main-header {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.95) 0%, rgba(37, 37, 56, 0.9) 100%);
    border-bottom: 1px solid rgba(58, 58, 78, 0.8);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(58, 58, 78, 0.5) inset;
}

.header-banner {
    background: var(--light-blue);
    padding: 16px;
    text-align: center;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 15px;
}

/* Bande de miniatures */
.mini-photos-bar {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gray);
    overflow: hidden;
}

.mini-photos-container {
    display: flex;
    gap: 12px;
    padding: 0 40px;
    animation: scrollMiniPhotos 30s linear infinite;
    width: fit-content;
}

.mini-photo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-gray);
    transition: transform 0.3s ease;
}

.mini-photo:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

@keyframes scrollMiniPhotos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    gap: 30px;
    min-height: 80px;
    height: 80px;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    transform: translate3d(0, 0, 0) !important;
    /* Garantir que le contenu reste en place */
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 70px;
    min-width: 250px;
    flex-shrink: 0;
}

.header-logo img {
    max-height: 70px;
    max-width: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.made-with-passion-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 1.5px;
    font-style: italic;
    white-space: nowrap;
    text-transform: uppercase;
    opacity: 0.9;
}

[data-theme="dark"] .made-with-passion-header {
    color: #2d7acc;
    opacity: 0.85;
}

/* Gestion du logo selon le thème */
.logo-light {
    display: block !important;
}

.logo-dark {
    display: none !important;
}

[data-theme="dark"] .logo-light {
    display: none !important;
}

[data-theme="dark"] .logo-dark {
    display: block !important;
}

.header-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.back-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
}

.back-link:hover {
    background: var(--light-blue);
    text-decoration: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-direction: row;
}

.user-info span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.btn-theme-toggle {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-theme-toggle:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-md);
}

.btn-theme-toggle .theme-icon {
    transition: transform 0.3s ease;
}

/* Bouton Notifications */

.btn-logout {
    padding: 6px 16px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-logout:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Container principal */
.main-container {
    display: flex;
    min-height: auto;
    margin-top: 0;
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
    max-width: calc(100vw - 30px);
    overflow-x: hidden;
    overflow-y: visible;
}

/* Sidebar */
.sidebar {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-right: none;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
}

.logo h2 {
    color: #ffffff !important;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.sidebar-image {
    flex: 1;
    margin: 0;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    min-height: 0;
    max-height: 600px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Carousel d'images */
.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    min-height: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 0;
    border-radius: 20px;
}

[data-theme="dark"] .carousel-slide::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.5);
    padding: 20px;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

[data-theme="dark"] .slide-content {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 1), 0 0 8px rgba(0, 0, 0, 0.8), 0 0 2px rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10;
    pointer-events: none;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    pointer-events: all;
}

[data-theme="dark"] .carousel-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.carousel-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .carousel-btn:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    max-height : 100px;

}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .indicator {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.indicator.active {
    background: var(--white);
    transform: scale(1.3);
}

[data-theme="dark"] .indicator.active {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .indicator:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-don-overlay {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
    min-width: 200px;
}

.btn-don-overlay .btn-don {
    width: 100%;
    padding: 14px 20px;
    background: rgba(204, 0, 0, 0.95);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-don-overlay .btn-don:hover {
    background: rgba(153, 0, 0, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
    text-decoration: none;
}

/* Conteneur du bouton de remerciement sous le carousel */
.sidebar-thank-you-button {
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-thank-you-button .btn-thank-you {
    width: 100%;
    max-width: 280px;
    margin: 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 165, 0, 0.95) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sidebar-thank-you-button .btn-thank-you:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 1) 0%, rgba(255, 165, 0, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.sidebar-thank-you-button .btn-thank-you .btn-icon {
    font-size: 18px;
}

.sidebar-thank-you-button .btn-thank-you .btn-text {
    flex: 1;
    text-align: center;
}

.sidebar-content {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    z-index: 15;
}

.sidebar-content h3 {
    color: #ffffff;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

[data-theme="dark"] .sidebar-content h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.6);
}

.sidebar-content h3 #userFirstName {
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    display: inline-block;
}

[data-theme="dark"] .sidebar-content h3 #userFirstName {
    color: #FFD700 !important;
    text-shadow: 0 2px 12px rgba(255, 215, 0, 0.8), 0 0 6px rgba(255, 215, 0, 0.5);
}

.sidebar-content h3 #premiereAnnee {
    font-weight: 700;
    font-size: 24px;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    display: inline-block;
    margin-left: 4px;
}

[data-theme="dark"] .sidebar-content h3 #premiereAnnee {
    color: #FFD700 !important;
    text-shadow: 0 2px 12px rgba(255, 215, 0, 0.8), 0 0 6px rgba(255, 215, 0, 0.5);
}

/* Bouton carte de remerciement */
/* Styles pour le bouton dans la sidebar-content (si utilisé ailleurs) */
.btn-thank-you {
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 165, 0, 0.9) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-thank-you:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 1) 0%, rgba(255, 165, 0, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-thank-you .btn-icon {
    font-size: 18px;
}

.btn-thank-you .btn-text {
    flex: 1;
    text-align: center;
}

/* Modale Carte de remerciement */
.thank-you-modal {
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.thank-you-modal.active {
    display: flex;
}

.thank-you-card-container {
    max-width: 600px;
    width: 90%;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.thank-you-card {
    background: transparent;
    padding: 0;
    position: relative;
    animation: cardAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px) rotateY(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotateY(0deg);
    }
}

/* Enveloppe de la carte */
.card-envelope {
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c4 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

[data-theme="dark"] .card-envelope {
    background: linear-gradient(135deg, #3a2e2a 0%, #2a1f1c 100%);
}

/* Papier de la carte */
.card-paper {
    background: #fffef8;
    border-radius: 8px;
    padding: 0;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

[data-theme="dark"] .card-paper {
    background: #2a2a3e;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Motifs décoratifs */
.card-pattern-top,
.card-pattern-bottom {
    height: 40px;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(45, 122, 204, 0.1) 20px,
            rgba(45, 122, 204, 0.1) 22px
        ),
        linear-gradient(180deg, rgba(45, 122, 204, 0.05) 0%, transparent 100%);
    position: relative;
}

.card-pattern-top::after,
.card-pattern-bottom::after {
    content: '✦ ✦ ✦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(45, 122, 204, 0.2);
    font-size: 16px;
    letter-spacing: 20px;
}

[data-theme="dark"] .card-pattern-top,
[data-theme="dark"] .card-pattern-bottom {
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(45, 122, 204, 0.15) 20px,
            rgba(45, 122, 204, 0.15) 22px
        ),
        linear-gradient(180deg, rgba(45, 122, 204, 0.08) 0%, transparent 100%);
}

[data-theme="dark"] .card-pattern-top::after,
[data-theme="dark"] .card-pattern-bottom::after {
    color: rgba(45, 122, 204, 0.3);
}

/* Contenu de la carte */
.card-content {
    padding: 40px 50px;
    color: var(--text-primary);
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
}

.card-date {
    text-align: right;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-style: italic;
}

.card-greeting {
    margin-bottom: 25px;
}

.card-salutation {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-message {
    margin: 30px 0;
}

.card-text {
    font-size: 16px;
    line-height: 2;
    color: var(--text-primary);
    margin: 20px 0;
    text-align: justify;
}

.card-amount {
    font-size: 24px;
    color: var(--primary-blue);
    font-weight: 700;
    padding: 0 4px;
}

[data-theme="dark"] .card-amount {
    color: var(--primary-blue);
}

/* Surbrillance pour date et montant dans la carte de remerciement */
.card-highlight {
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5), 0 0 12px rgba(255, 215, 0, 0.3);
    display: inline-block;
    padding: 0 2px;
}

[data-theme="dark"] .card-highlight {
    color: #FFD700 !important;
    text-shadow: 0 2px 12px rgba(255, 215, 0, 0.8), 0 0 6px rgba(255, 215, 0, 0.5);
}

.card-signature {
    margin-top: 50px;
    text-align: right;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.card-gratitude {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.signature-box {
    display: inline-block;
    text-align: left;
    margin-top: 10px;
}

.signature-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    font-family: 'Brush Script MT', cursive;
    position: relative;
}

.signature-line {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, transparent 100%);
    margin-top: 5px;
}

/* Actions de la carte */
.card-actions {
    padding: 24px 30px;
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
}

.btn-share-card {
    padding: 12px 24px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-share-card:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 122, 204, 0.3);
}

.thank-you-card-container .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.thank-you-card-container .modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg) scale(1.1);
}

/* Le bouton .btn-don est maintenant dans .btn-don-overlay */

.sidebar-footer {
    display: none;
}

.sidebar-footer a {
    display: none;
}

/* Contenu principal */
.main-content {
    flex: 1;
    padding: 19px 0px 0px 48px;
    background: transparent;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    width: 100%;
    max-width: calc(100vw - 320px);
    overflow-x: hidden;
    overflow-y: visible;
    min-width: 0;
}

.main-content.full-width {
    max-width: 1200px;
    margin: 0 auto;
}

.main-content h1 {
    color: var(--primary-blue);
    margin-bottom: 36px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Sections dépliables */
.sections-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.section-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 2px 4px rgba(45, 122, 204, 0.05);
    border: 1px solid rgba(225, 232, 237, 0.8);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 2;
    pointer-events: auto;
    animation: cardSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Bannières en haut et en bas des blocs */
.section-banner-top,
.section-banner-bottom {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
}

.section-banner-top {
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
}

.section-banner-bottom {
    border-radius: 0 0 20px 20px;
    margin-top: 0;
}

.section-banner-top img,
.section-banner-bottom img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-banner-top img {
    max-height: 300px;
    min-height: 100px;
}

.section-banner-bottom img {
    max-height: 300px;
    min-height: 100px;
}

.section-card:hover .section-banner-top img,
.section-card:hover .section-banner-bottom img {
    transform: scale(1.02);
}

/* Ajustement du border-radius quand il y a une bannière */
.section-card:has(.section-banner-top) .section-header {
    border-radius: 0;
}

.section-card:has(.section-banner-bottom) .section-content {
    border-radius: 0;
}

/* Mode sombre pour les bannières */
[data-theme="dark"] .section-banner-top img,
[data-theme="dark"] .section-banner-bottom img {
    opacity: 0.9;
    filter: brightness(0.95);
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(45, 122, 204, 0.3) 0%, 
        rgba(45, 122, 204, 0.6) 50%, 
        rgba(45, 122, 204, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-card:hover::before {
    opacity: 1;
}

[data-theme="dark"] .section-card {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.95) 0%, rgba(37, 37, 56, 0.9) 100%);
    border: 1px solid rgba(58, 58, 78, 0.8);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(58, 58, 78, 0.5) inset,
        0 2px 4px rgba(45, 122, 204, 0.1);
}

[data-theme="dark"] .section-card::before {
    background: linear-gradient(90deg, 
        rgba(45, 122, 204, 0.4) 0%, 
        rgba(45, 122, 204, 0.7) 50%, 
        rgba(45, 122, 204, 0.4) 100%);
}

[data-theme="dark"] .section-card:hover {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.98) 0%, rgba(37, 37, 56, 0.95) 100%);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(58, 58, 78, 0.6) inset,
        0 4px 8px rgba(45, 122, 204, 0.15);
}

.section-card:nth-child(1) { animation-delay: 0.05s; }
.section-card:nth-child(2) { animation-delay: 0.1s; }
.section-card:nth-child(3) { animation-delay: 0.15s; }
.section-card:nth-child(4) { animation-delay: 0.2s; }
.section-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.section-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 6px 12px rgba(45, 122, 204, 0.12);
    border-color: rgba(45, 122, 204, 0.3);
}

.section-card.expanded:hover {
    transform: translateY(0) scale(1);
}

.section-header {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease;
    background: var(--gradient-stat);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.section-header:hover::before {
    left: 100%;
}

.section-header:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.section-icon {
    font-size: 1.3em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, rgba(45, 122, 204, 0.08) 0%, rgba(45, 122, 204, 0.04) 100%);
    border-bottom: 1px solid rgba(58, 58, 78, 0.5);
}

[data-theme="dark"] .section-header:hover {
    background: linear-gradient(135deg, rgba(45, 122, 204, 0.12) 0%, rgba(45, 122, 204, 0.06) 100%);
}

[data-theme="dark"] .section-header h2 {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(45, 122, 204, 0.3);
    font-weight: 700;
}

[data-theme="dark"] .toggle-icon {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(45, 122, 204, 0.3);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 6px rgba(45, 122, 204, 0.4));
    opacity: 1;
}

.section-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Indicateur de progression des badges */
.badges-progress-indicator {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 50px;
    height: 50px;
}

.progress-ring-circle-bg {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 4;
}

.progress-ring-circle {
    stroke: #FFD700;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .progress-ring-circle-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .progress-ring-circle {
    stroke: #FFD700;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .progress-percentage {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Menu déroulant pour le tableau de bord */
.dropdown-menu-container {
    position: relative;
    z-index: 100;
}

.btn-menu-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-menu-toggle:hover {
    background: rgba(45, 122, 204, 0.2);
    transform: scale(1.1);
}

.btn-menu-toggle span {
    font-size: 18px;
    display: block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 240px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 14px;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(45, 122, 204, 0.1);
    transform: translateX(4px);
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(45, 122, 204, 0.1);
}

.dropdown-icon {
    font-size: 18px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-text {
    flex: 1;
    font-weight: 500;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.btn-refresh span {
    font-size: 18px;
    display: block;
}

.toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    opacity: 0.9;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.section-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0 32px;
}

.section-card[data-section="actualites"] .section-content {
    background: transparent;
}

/* S'assurer que le header reste toujours accessible même quand la section actualites est ouverte */
.section-card[data-section="actualites"].expanded {
    position: relative;
    z-index: 1;
}

.section-card[data-section="actualites"].expanded .section-content {
    position: relative;
    z-index: 1;
}

.section-card.expanded .section-content {
    max-height: 5000px;
    padding: 36px;
    display: block;
    visibility: visible;
    animation: sectionExpand 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sectionExpand {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 5000px;
    }
}

.section-card:not(.expanded) .section-content {
    animation: sectionCollapse 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sectionCollapse {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.section-card.expanded .section-content > * {
    animation: contentFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

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


.section-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.btn-link {
    display: inline-block;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.btn-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Formulaire */
.coordonnees-form {
    max-width: 1600px;
}

/* Styles compacts pour le formulaire de coordonnées */
.coordonnees-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 24px;
    width: 100%;
}

.coordonnees-form .form-row.form-row-address {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

/* Ligne avec un seul champ sur toute la largeur */
.coordonnees-form .form-row.form-row-full {
    grid-template-columns: 1fr;
}

/* Ligne avec 3 champs égaux */
.coordonnees-form .form-row.form-row-three {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

/* S'assurer que la ligne avec 3 champs d'adresse remplit tout l'espace */
.coordonnees-form .form-row.form-row-address.form-row-three {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

/* Responsive : sur petits écrans, 3 champs deviennent 1 colonne */
@media (max-width: 768px) {
    .coordonnees-form .form-row.form-row-three {
        grid-template-columns: 1fr;
    }
}

.coordonnees-form .form-group {
    margin-bottom: 0;
}

/* S'assurer que les form-group dans les lignes avec 3 champs remplissent l'espace */
.coordonnees-form .form-row.form-row-three .form-group {
    width: 100%;
    min-width: 0;
}

.coordonnees-form .form-group label {
    margin-bottom: 10px;
    font-size: 18px;
}

.coordonnees-form .form-group input,
.coordonnees-form .form-group textarea,
.coordonnees-form .form-group select {
    padding: 14px 20px;
    font-size: 20px;
    border-radius: 8px;
    border-width: 1.5px;
}

.coordonnees-form .form-row.form-row-address .form-group-address input {
    padding: 14px 20px;
    font-size: 20px;
}

.coordonnees-form .form-group input:focus,
.coordonnees-form .form-group textarea:focus,
.coordonnees-form .form-group select:focus {
    box-shadow: 
        0 0 0 2px rgba(45, 122, 204, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.04) inset;
}

[data-theme="dark"] .coordonnees-form .form-group input:focus,
[data-theme="dark"] .coordonnees-form .form-group textarea:focus,
[data-theme="dark"] .coordonnees-form .form-group select:focus {
    box-shadow: 
        0 0 0 2px rgba(45, 122, 204, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.2) inset;
}

.coordonnees-form .form-group-small {
    max-width: 250px;
    margin-bottom: 0;
}

/* Ajustement pour la ligne ID + Civilité : ID prend moins d'espace */
.coordonnees-form .form-row.form-row-id-identity {
    grid-template-columns: 250px 1fr;
    gap: 32px;
}

.coordonnees-form .form-actions {
    margin-top: 24px;
}

/* Styles par défaut pour les autres formulaires */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.form-row.form-row-address {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.form-row.form-row-address .form-group-address input {
    padding: 12px 16px;
}

.form-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
}

.btn-secondary {
    padding: 14px 28px;
    background: var(--gray);
    color: var(--dark-gray);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--border-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Table */
.filter-section {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-section label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.filter-section select {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.filter-section select:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.filter-section select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(45, 122, 204, 0.1);
}

.rf-info-notice {
    background: linear-gradient(135deg, rgba(45, 122, 204, 0.08) 0%, rgba(45, 122, 204, 0.04) 100%);
    border: 1px solid rgba(45, 122, 204, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-blue);
}

.rf-info-notice p {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.rf-info-notice strong {
    color: var(--primary-blue);
}

[data-theme="dark"] .rf-info-notice {
    background: linear-gradient(135deg, rgba(45, 122, 204, 0.12) 0%, rgba(45, 122, 204, 0.06) 100%);
    border-color: rgba(45, 122, 204, 0.3);
}

[data-theme="dark"] .rf-info-notice strong {
    color: #2d7acc;
}

.table-container {
    overflow-x: auto;
    overflow-y: visible;
    margin-top: 24px;
    border-radius: 16px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(225, 232, 237, 0.5) inset;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 251, 252, 0.85) 100%);
    backdrop-filter: blur(5px);
    -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .table-container {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.9) 0%, rgba(37, 37, 56, 0.85) 100%);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(58, 58, 78, 0.5) inset;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
}

thead {
    background: var(--primary-blue);
    color: var(--white);
}

th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

tbody tr {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: tableRowSlideIn 0.4s ease forwards;
}

tbody tr:nth-child(1) { animation-delay: 0.05s; }
tbody tr:nth-child(2) { animation-delay: 0.1s; }
tbody tr:nth-child(3) { animation-delay: 0.15s; }
tbody tr:nth-child(4) { animation-delay: 0.2s; }
tbody tr:nth-child(5) { animation-delay: 0.25s; }
tbody tr:nth-child(6) { animation-delay: 0.3s; }
tbody tr:nth-child(7) { animation-delay: 0.35s; }
tbody tr:nth-child(8) { animation-delay: 0.4s; }
tbody tr:nth-child(n+9) { animation-delay: 0.45s; }

@keyframes tableRowSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

tbody tr:hover {
    background: var(--bg-secondary);
    transform: scale(1.01);
}

tbody tr:last-child td {
    border-bottom: none;
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 32px;
}

.btn-download {
    padding: 8px 16px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-download:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Messages */
.message {
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.message.error {
    background: rgba(45, 122, 204, 0.1);
    color: #2d7acc;
    border: 2px solid rgba(45, 122, 204, 0.3);
}

/* Tableau de bord */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--gradient-stat);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: statCardAppear 0.6s ease forwards;
    cursor: pointer;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes statCardAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.05) rotate(0.5deg);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(45, 122, 204, 0.4),
        var(--shadow-glow);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.stat-card:hover .stat-content h3 {
    transform: scale(1.05);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.3s ease;
}

.stat-content h3 {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                text-shadow 0.3s ease;
}

.stat-icon {
    font-size: 40px;
    line-height: 1;
}

.stat-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Section Badges/Médailles */
.badges-section {
    margin: 0;
    padding: 0;
}

.badges-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.badges-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.badges-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    min-height: 100px;
}

.badges-loading {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px;
    grid-column: 1 / -1;
}

.badge-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 252, 0.9) 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: badgeAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

[data-theme="dark"] .badge-card {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.95) 0%, rgba(37, 37, 56, 0.9) 100%);
    border: 2px solid rgba(58, 58, 78, 0.8);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(58, 58, 78, 0.5) inset;
}

.badge-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.badge-card:hover::before {
    opacity: 1;
}

.badge-card:hover {
    transform: translateY(-8px) scale(1.05) rotate(2deg);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.15),
        0 0 0 2px var(--primary-blue),
        0 0 20px rgba(45, 122, 204, 0.3);
    border-color: var(--primary-blue);
}

.badge-card.badge-bronze {
    border-color: #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.badge-card.badge-bronze:hover {
    box-shadow: 
        0 12px 32px rgba(205, 127, 50, 0.2),
        0 0 0 2px #cd7f32,
        0 0 20px rgba(205, 127, 50, 0.4);
    border-color: #cd7f32;
}

.badge-card.badge-silver {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.badge-card.badge-silver:hover {
    box-shadow: 
        0 12px 32px rgba(192, 192, 192, 0.2),
        0 0 0 2px #c0c0c0,
        0 0 20px rgba(192, 192, 192, 0.4);
    border-color: #c0c0c0;
}

.badge-card.badge-gold {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.badge-card.badge-gold:hover {
    box-shadow: 
        0 12px 32px rgba(255, 215, 0, 0.3),
        0 0 0 2px #ffd700,
        0 0 30px rgba(255, 215, 0, 0.5);
    border-color: #ffd700;
}

[data-theme="dark"] .badge-card.badge-bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(42, 42, 62, 0.95) 100%);
}

[data-theme="dark"] .badge-card.badge-silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(42, 42, 62, 0.95) 100%);
}

[data-theme="dark"] .badge-card.badge-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(42, 42, 62, 0.95) 100%);
}

.badge-icon {
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-card:hover .badge-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.badge-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
    transition: transform 0.3s ease;
}

.badge-card:hover .badge-name {
    transform: scale(1.05);
}

.badge-description {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.badge-date {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 4px;
}

@keyframes badgeAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.badge-card:nth-child(1) { animation-delay: 0.1s; }
.badge-card:nth-child(2) { animation-delay: 0.2s; }
.badge-card:nth-child(3) { animation-delay: 0.3s; }
.badge-card:nth-child(4) { animation-delay: 0.4s; }
.badge-card:nth-child(5) { animation-delay: 0.5s; }
.badge-card:nth-child(6) { animation-delay: 0.6s; }
.badge-card:nth-child(7) { animation-delay: 0.7s; }
.badge-card:nth-child(8) { animation-delay: 0.8s; }

/* Bouton pour afficher les badges non acquis */
.badges-actions {
    margin-top: 24px;
    text-align: center;
}

.btn-badges-locked {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 122, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-badges-locked:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 122, 204, 0.4);
}

.btn-badges-locked .btn-icon {
    font-size: 18px;
}

.btn-badges-locked .btn-text {
    font-weight: 600;
}

/* Modale badges non acquis */
.locked-badges-modal-container {
    max-width: 1600px;
    width: 98%;
    max-height: 90vh;
    overflow-y: auto;
}

.locked-badges-content {
    padding: 24px;
}

.locked-badges-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    font-style: italic;
}

.locked-badges-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-height: 100px;
}

/* Badges dans la modale des badges non débloqués - même taille que les badges débloqués */
.locked-badges-container .badge-card {
    min-width: 0;
    padding: 20px;
}

/* Responsive pour les écrans plus petits */
@media (max-width: 1024px) {
    .locked-badges-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .locked-badges-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .locked-badges-container {
        grid-template-columns: 1fr;
    }
}

/* Badge non acquis (locked) */
.badge-card.badge-locked {
    opacity: 0.6;
    filter: grayscale(0.3);
    position: relative;
    cursor: default;
}

.badge-card.badge-locked::before {
    content: '🔒';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    z-index: 10;
    opacity: 0.8;
}

.badge-card.badge-locked .badge-icon {
    filter: grayscale(0.5) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.badge-card.badge-locked:hover {
    transform: translateY(0) scale(1);
}

/* Barre de progression pour les badges non acquis */
.badge-progress {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.badge-progress-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-align: center;
    font-weight: 500;
}

.badge-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.badge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.badge-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.badge-progress-text {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: center;
    font-weight: 600;
}

[data-theme="dark"] .badge-card.badge-locked {
    opacity: 0.5;
}

[data-theme="dark"] .badge-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-charts {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-full-width {
    width: 100%;
    max-width: 100%;
}

.chart-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 2px 4px rgba(45, 122, 204, 0.05);
    border: 1px solid rgba(225, 232, 237, 0.8);
    transition: all 0.3s ease;
    position: relative;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(45, 122, 204, 0.3) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-container:hover {
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 4px 8px rgba(45, 122, 204, 0.1);
    transform: translateY(-2px);
}

.chart-container:hover::before {
    opacity: 1;
}

[data-theme="dark"] .chart-container {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.95) 0%, rgba(37, 37, 56, 0.9) 100%);
    border: 1px solid rgba(58, 58, 78, 0.8);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(58, 58, 78, 0.5) inset,
        0 2px 4px rgba(45, 122, 204, 0.1);
}

[data-theme="dark"] .chart-container::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(45, 122, 204, 0.4) 50%, 
        transparent 100%);
}

[data-theme="dark"] .chart-container:hover {
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(58, 58, 78, 0.6) inset,
        0 4px 8px rgba(45, 122, 204, 0.15);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.chart-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-filter label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-year-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.chart-year-select:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(45, 122, 204, 0.1);
}

.chart-year-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(45, 122, 204, 0.1);
}

[data-theme="dark"] .chart-year-select {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .chart-year-select:hover {
    border-color: #2d7acc;
}

.chart-container h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.chart-container canvas {
    height: 300px !important;
    width: 100% !important;
    max-height: 300px;
}

.dashboard-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-export:hover {
    background: var(--dark-blue);
    box-shadow: var(--shadow-md);
}

.btn-export:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-export span {
    font-size: 18px;
}

/* Actualités */
.actualites-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.actualite-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

.actualite-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.actualite-date {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.actualite-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 12px;
    line-height: 1.4;
}

.actualite-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.actualite-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.actualite-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Styles pour les cartes d'événements */
.evenement-card {
    background: var(--bg-card, var(--white));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.evenement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.evenement-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.evenement-card .evenement-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.evenement-card p {
    margin: 0 0 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.evenement-card .evenement-type {
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.evenement-card .evenement-link {
    display: inline-block;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-blue);
    border-radius: 6px;
    transition: all 0.2s;
}

.evenement-card .evenement-link:hover {
    background: var(--primary-blue);
    color: white;
}

/* Mode sombre spécifique pour les événements */
[data-theme="dark"] .evenement-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .evenement-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .evenement-card .evenement-meta {
    color: var(--text-secondary);
}

[data-theme="dark"] .evenement-card p {
    color: var(--text-secondary);
}

/* Animations pour les notifications */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Page de connexion responsive */
    .login-page {
        padding: 1.5rem 1rem;
        justify-content: flex-start;
        padding-top: 80px; /* Espace pour les contrôles en haut */
    }

    .login-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 0.5rem;
    }

    .login-box {
        padding: 2rem 1.5rem;
        width: 100%;
    }

    .login-header-logo {
        top: 1rem;
        left: 1rem;
        min-width: 200px;
    }

    .login-header-logo img {
        max-height: 60px;
        max-width: 250px;
    }

    .login-header-controls {
        top: 1rem;
        right: 1rem;
    }
    
    .language-selector {
        position: relative;
        top: 0;
        right: 0;
    }

    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-gray);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .header-nav {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 16px 24px;
    }

    .main-content {
        padding: 32px 24px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 12px 16px;
    }

    .section-card.expanded .section-content {
        padding: 24px;
    }
}

/* Modale moderne */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in;
    padding: 20px;
}

.modal-container {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-content {
    padding: 32px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--gray);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: var(--light-blue);
    transform: translateX(4px);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
}

.info-text h3 {
    margin: 0 0 8px 0;
    color: var(--dark-gray);
    font-size: 18px;
    font-weight: 600;
}

.info-text p {
    margin: 0;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .btn-primary {
    width: auto;
    padding: 12px 32px;
    margin: 0;
}

/* Messages de succès et d'erreur */
.subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.success-message {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    text-align: center;
}

.success-icon {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 16px;
}

.success-message p {
    color: #2e7d32;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   NOUVELLES FONCTIONNALITÉS UX/UI
   ============================================ */

/* Recherche et filtres */
.search-filters-container {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(45, 122, 204, 0.1);
}

.btn-clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-clear-search:hover {
    background: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

.filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 120px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--primary-blue);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(45, 122, 204, 0.1);
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.btn-view {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.btn-view:hover {
    background: var(--bg-secondary);
    color: var(--primary-blue);
}

.btn-view.active {
    background: var(--primary-blue);
    color: var(--white);
}

/* Vue compacte */
.dons-compact-view {
    display: none;
}

.dons-compact-view.active {
    display: block;
}

.don-compact-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.don-compact-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.don-compact-info {
    flex: 1;
}

.don-compact-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.don-compact-cause {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.don-compact-details {
    font-size: 13px;
    color: var(--text-secondary);
}

.don-compact-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-right: 16px;
}

.don-compact-actions {
    display: flex;
    gap: 8px;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--dark-gray);
    color: var(--white);
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: var(--shadow-lg);
    animation: tooltipFadeIn 0.3s ease;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--dark-gray);
    margin-bottom: 2px;
    z-index: 1000;
    animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Indicateurs de progression */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10000;
    display: none;
}

.progress-indicator.active {
    display: block;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-blue);
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Menu hamburger mobile */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1002;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
    background: var(--dark-blue);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

[data-theme="dark"] .glass-effect {
    background: rgba(30, 30, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations micro-interactions */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-bounce {
    animation: bounce 0.6s ease;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-slide-in-right {
    animation: slideInRight 0.4s ease;
}

.animate-slide-in-left {
    animation: slideInLeft 0.4s ease;
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, 
        var(--bg-secondary) 25%, 
        var(--bg-primary) 50%, 
        var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-card {
    height: 120px;
    border-radius: 16px;
}

/* Skeleton loader spécifique pour les tableaux */
.skeleton-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.skeleton-table-row {
    display: table-row;
}

.skeleton-table-cell {
    display: table-cell;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.skeleton-table-cell .skeleton {
    height: 20px;
    width: 100%;
    margin: 0;
    border-radius: 4px;
}

.skeleton-table-cell:nth-child(1) .skeleton {
    width: 80%;
}

.skeleton-table-cell:nth-child(2) .skeleton {
    width: 60%;
}

.skeleton-table-cell:nth-child(3) .skeleton {
    width: 40%;
}

.skeleton-table-cell:nth-child(4) .skeleton {
    width: 30%;
}

.skeleton-table-cell:nth-child(5) .skeleton {
    width: 50%;
}

/* Animation pour les lignes du tableau skeleton */
.skeleton-table-row {
    animation: skeletonRowFadeIn 0.3s ease forwards;
    opacity: 0;
}

.skeleton-table-row:nth-child(1) { animation-delay: 0.1s; }
.skeleton-table-row:nth-child(2) { animation-delay: 0.2s; }
.skeleton-table-row:nth-child(3) { animation-delay: 0.3s; }
.skeleton-table-row:nth-child(4) { animation-delay: 0.4s; }
.skeleton-table-row:nth-child(5) { animation-delay: 0.5s; }

@keyframes skeletonRowFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation pour les lignes réelles du tableau */
table tbody tr {
    opacity: 0;
    animation: tableRowFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Styles pour le mode sombre des skeleton tableaux */
[data-theme="dark"] .skeleton-table-cell {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, 
        var(--bg-secondary) 25%, 
        var(--bg-card) 50%, 
        var(--bg-secondary) 75%);
}

/* Amélioration des transitions de scroll */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Optimisation du scroll pour plus de fluidité */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Animation de parallaxe subtile */
.main-container {
    transition: transform 0.1s ease-out;
}

/* Animation pour les boutons */
.btn-download,
.btn-export,
.btn-refresh,
.btn-logout {
    position: relative;
    overflow: hidden;
}

.btn-download::before,
.btn-export::before,
.btn-refresh::before,
.btn-logout::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-download:active::before,
.btn-export:active::before,
.btn-refresh:active::before,
.btn-logout:active::before {
    width: 300px;
    height: 300px;
}

/* Animation de chargement pour les graphiques */
.chart-container canvas {
    opacity: 0;
    animation: chartFadeIn 0.8s ease 0.3s forwards;
}

@keyframes chartFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation pour les notifications améliorées */
.notification {
    animation: notificationSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Animation pour le toggle icon */
.toggle-icon {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.section-card.expanded .toggle-icon {
    transform: rotate(180deg) scale(1.1);
}

/* Animation de hover améliorée pour les cartes */
.section-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.section-card.expanded:hover {
    transform: translateY(0) scale(1);
}

/* Améliorations responsive */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        height: 100dvh; /* Support des navigateurs modernes */
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        z-index: 1001;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .main-content {
        width: 100%;
        max-width: 100vw;
        margin-left: 0;
        padding: 24px 16px;
        overflow-x: hidden;
    }

    .main-container {
        width: calc(100% - 30px);
        max-width: calc(100vw - 30px);
        overflow-x: hidden;
        margin-top: 80px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .header-content {
        padding: 12px 16px;
    }

    .header-logo {
        max-width: 150px;
    }

    .header-logo img {
        max-width: 100%;
        height: auto;
    }

    .user-info {
        flex-wrap: wrap;
        gap: 8px;
    }

    .user-info span {
        font-size: 13px;
    }

    .btn-logout {
        font-size: 11px;
        padding: 6px 12px;
    }

    .filters-row {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .badges-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .badge-card {
        padding: 16px;
    }

    .badge-icon {
        font-size: 40px;
    }

    .badges-section {
        padding: 0;
        margin: 0;
    }

    .sidebar-thank-you-button {
        padding: 16px;
    }

    .sidebar-thank-you-button .btn-thank-you {
        font-size: 12px;
        padding: 12px 16px;
        max-width: 100%;
    }

    .sidebar-thank-you-button .btn-thank-you .btn-text {
        font-size: 12px;
    }

    .btn-thank-you {
        font-size: 12px;
        padding: 12px 16px;
    }

    .btn-thank-you .btn-text {
        font-size: 12px;
    }

    .thank-you-card-container {
        width: 95%;
        max-width: 95%;
    }

    .card-envelope {
        padding: 15px;
    }

    .card-paper {
        min-height: 400px;
    }

    .card-content {
        padding: 30px 20px;
    }

    .card-text {
        font-size: 14px;
        line-height: 1.8;
    }

    .card-amount {
        font-size: 20px;
    }

    .card-salutation {
        font-size: 16px;
    }

    .signature-name {
        font-size: 18px;
    }

    .badges-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chart-container {
        padding: 16px;
    }

    .chart-container canvas {
        height: 250px !important;
    }

    .search-filters-container {
        padding: 16px;
    }

    .stat-card {
        padding: 16px;
    }

    .section-header {
        padding: 16px 20px;
        font-size: 18px;
    }

    .section-content {
        padding: 20px 16px !important;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    .sections-container {
        gap: 16px;
    }

    .section-card {
        border-radius: 16px;
    }

    .section-banner-top {
        border-radius: 16px 16px 0 0;
    }

    .section-banner-bottom {
        border-radius: 0 0 16px 16px;
    }

    .section-banner-top img,
    .section-banner-bottom img {
        max-height: 200px;
        min-height: 80px;
    }

    .btn-export {
        width: 100%;
        justify-content: center;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Page de connexion - très petits écrans */
    .login-page {
        padding: 1rem 0.5rem;
        padding-top: 70px; /* Espace pour les contrôles */
        min-height: 100vh;
    }

    .login-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .login-box {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        margin: 0;
    }

    .login-logo-container {
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .login-logo-container img {
        max-height: 60px;
        max-width: 200px;
    }

    .login-header-controls {
        top: 0.5rem;
        right: 0.5rem;
        gap: 6px;
    }

    .login-header-controls .btn-theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .language-selector select {
        padding: 8px 12px;
        font-size: 12px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input {
        padding: 12px 16px;
        font-size: 16px; /* Évite le zoom sur iOS */
    }

    .first-time-section {
        padding: 1rem;
        margin-top: 1rem;
    }

    .first-time-section p {
        font-size: 14px;
        margin-bottom: 0.75rem;
    }

    .header-nav {
        padding: 8px 12px;
    }

    .header-content {
        padding: 8px 12px;
    }

    .header-logo {
        max-width: 120px;
    }

    .user-info {
        gap: 6px;
        font-size: 12px;
    }

    .user-info span {
        display: none;
    }

    .btn-logout {
        padding: 6px 10px;
        font-size: 10px;
    }

    .btn-theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .main-content {
        padding: 12px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }

    .stat-icon {
        font-size: 32px;
    }

    .stat-content h3 {
        font-size: 20px;
    }

    .section-header {
        padding: 12px 16px;
        font-size: 16px;
    }

    .section-content {
        padding: 16px 12px !important;
    }

    .section-banner-top,
    .section-banner-bottom {
        border-radius: 12px 12px 0 0;
    }

    .section-banner-bottom {
        border-radius: 0 0 12px 12px;
    }

    .section-banner-top img,
    .section-banner-bottom img {
        max-height: 150px;
        min-height: 60px;
    }

    .chart-container {
        padding: 12px;
    }

    .chart-container canvas {
        height: 200px !important;
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        font-size: 20px;
        top: 8px;
        left: 8px;
    }

    .sidebar {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }

    .eloge-info-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .eloge-info-btn .btn-text {
        display: none;
    }
    
    .eloge-info-btn .btn-icon {
        font-size: 16px;
    }
    
    .json-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .json-btn .btn-text {
        display: none;
    }
    
    .json-btn .btn-icon {
        font-size: 16px;
    }

    .table-container {
        border-radius: 12px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 10px 8px;
    }
}

.error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(255, 87, 34, 0.08) 100%);
    border: 2px solid rgba(220, 53, 69, 0.4);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
    animation: errorSlideIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: errorShine 2s infinite;
}

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

@keyframes errorShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.error-icon {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 16px;
    animation: errorPulse 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes errorPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.error-message p {
    color: #dc3545;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

[data-theme="dark"] .error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(255, 87, 34, 0.15) 100%);
    border-color: rgba(220, 53, 69, 0.5);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.25);
}

[data-theme="dark"] .error-icon {
    color: #ff6b6b;
}

[data-theme="dark"] .error-message p {
    color: #ff6b6b;
}

/* Bouton ELOGE dans le header */
.eloge-info-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.eloge-info-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.eloge-info-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Bouton Suggestions */
.suggestion-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.suggestion-btn:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #d63031 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.suggestion-btn:active {
    transform: translateY(0);
}

[data-theme="dark"] .suggestion-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

[data-theme="dark"] .suggestion-btn:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #d63031 100%);
}

/* Bouton JSON */
.json-btn {
    background: linear-gradient(135deg, #6c5ce7 0%, #5f3dc4 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.json-btn:hover {
    background: linear-gradient(135deg, #5f3dc4 0%, #4c3398 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.json-btn:active {
    transform: translateY(0);
}

[data-theme="dark"] .json-btn {
    background: linear-gradient(135deg, #6c5ce7 0%, #5f3dc4 100%);
}

[data-theme="dark"] .json-btn:hover {
    background: linear-gradient(135deg, #5f3dc4 0%, #4c3398 100%);
}

/* Modale Suggestions */
.suggestion-modal-container {
    max-width: 550px;
    max-height: 80vh;
    overflow-y: auto;
}

.suggestion-content {
    padding: 18px;
}

.suggestion-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.suggestion-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.suggestion-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.suggestion-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.suggestion-form input,
.suggestion-form textarea {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.suggestion-form input:focus,
.suggestion-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(45, 122, 204, 0.1);
}

.suggestion-form textarea {
    resize: vertical;
    min-height: 90px;
}

.suggestion-form .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}

.suggestion-form .btn-secondary {
    padding: 10px 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-form .btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.suggestion-form .btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(45, 122, 204, 0.3);
}

.suggestion-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 122, 204, 0.4);
}

.suggestion-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.suggestion-feedback {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
}

.suggestion-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.suggestion-feedback.error {
    background: rgba(45, 122, 204, 0.1);
    color: #2d7acc;
    border: 2px solid rgba(45, 122, 204, 0.3);
}

[data-theme="dark"] .suggestion-feedback.success {
    background: rgba(40, 167, 69, 0.2);
    color: #6cff88;
    border-color: rgba(40, 167, 69, 0.3);
}

[data-theme="dark"] .suggestion-feedback.error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
    border-color: rgba(220, 53, 69, 0.3);
}

/* Responsive pour le bouton suggestions */
@media (max-width: 768px) {
    .suggestion-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .suggestion-btn .btn-text {
        display: none;
    }
    
    .suggestion-btn .btn-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .suggestion-modal-container {
        width: 95%;
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .suggestion-content {
        padding: 20px;
    }
    
    .suggestion-form .form-actions {
        flex-direction: column;
    }
    
    .suggestion-form .btn-secondary,
    .suggestion-form .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Modale ELOGE */
.eloge-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.eloge-modal.active {
    display: flex;
}

.eloge-modal-container {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    overflow-x: hidden;
    animation: modalSlideIn 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.eloge-modal-header {
    background: var(--primary-blue);
    color: white;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.modal-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.eloge-name-modal {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.eloge-modal-header .modal-close {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.eloge-modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.eloge-modal-content {
    padding: 32px;
    background: var(--white);
}

[data-theme="dark"] .eloge-modal-content {
    background: var(--gray);
}

.eloge-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.eloge-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(45, 122, 204, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--primary-blue);
}

[data-theme="dark"] .eloge-info-list li {
    background: rgba(45, 122, 204, 0.1);
    border-left-color: var(--primary-blue);
}

.eloge-info-list li span:last-child {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.eloge-cta {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(45, 122, 204, 0.08) 0%, rgba(45, 122, 204, 0.04) 100%);
    border-radius: 16px;
    border: 1px solid rgba(45, 122, 204, 0.2);
}

[data-theme="dark"] .eloge-cta {
    background: linear-gradient(135deg, rgba(45, 122, 204, 0.12) 0%, rgba(45, 122, 204, 0.06) 100%);
    border-color: rgba(45, 122, 204, 0.3);
}

.eloge-cta p {
    color: var(--text-primary);
    font-size: 16px;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.eloge-cta p strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.eloge-link {
    display: inline-block;
    color: #d32f2f;
    text-decoration: underline;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.eloge-link:hover {
    color: #b71c1c;
    background: rgba(211, 47, 47, 0.1);
    text-decoration: none;
    transform: translateY(-2px);
}

[data-theme="dark"] .eloge-link {
    color: #ff6b6b;
}

[data-theme="dark"] .eloge-link:hover {
    color: #ff5252;
    background: rgba(255, 107, 107, 0.15);
}

/* Responsive bouton et modale */
@media (max-width: 768px) {
    .eloge-info-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .eloge-info-btn:hover {
        transform: translateY(-2px);
    }
    
    .eloge-info-btn:active {
        transform: translateY(0);
    }
    
    .eloge-info-btn .btn-text {
        display: none;
    }
    
    .eloge-info-btn .btn-icon {
        font-size: 16px;
    }
    
    .eloge-modal-container {
        width: 95%;
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .eloge-modal-content {
        padding: 24px;
    }
    
    .eloge-info-list li span:last-child {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .eloge-modal-container {
        width: 98%;
        max-width: 98vw;
        max-height: 90vh;
    }
    
    .eloge-modal-content {
        padding: 16px;
    }
}

/* ============================================
   AMÉLIORATIONS DE DESIGN MODERNES
   ============================================ */

/* 1. Système de notifications Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    animation: toastSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    pointer-events: auto;
    border-left: 4px solid var(--primary-blue);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    animation: toastProgress 3s linear forwards;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #2d7acc;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.info {
    border-left-color: var(--primary-blue);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

@keyframes toastSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastProgress {
    to {
        transform: scaleX(1);
    }
}

.toast.fade-out {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* ============================================
   PAGE DE DON
   ============================================ */

.don-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    min-height: auto;
    padding-bottom: 4rem;
}

.don-box {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.don-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.don-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    height: 80px;
}

.don-logo-container img {
    max-height: 80px;
    max-width: 350px;
    object-fit: contain;
}

.don-header h1 {
    color: var(--primary-blue);
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.don-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.don-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.don-amount-section {
    margin-bottom: 1rem;
}

.don-amount-section label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.amount-input-container {
    position: relative;
    margin-bottom: 1rem;
}

.amount-input-container input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 2rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.amount-input-container input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(45, 122, 204, 0.1);
}

.amount-input-container .currency {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    pointer-events: none;
}

.quick-amounts {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-amount-btn {
    flex: 1;
    min-width: 80px;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.quick-amount-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-amount-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.don-info-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--light-blue);
    border-radius: 16px;
    border-left: 4px solid var(--primary-blue);
    margin: 1rem 0;
}

.don-info-box .info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.don-info-box .info-text {
    flex: 1;
}

.don-info-box .info-text p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.don-info-box .info-text p:first-child {
    margin-top: 0;
}

.don-info-box .info-text p:last-child {
    margin-bottom: 0;
}

.don-info-box .info-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.don-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.don-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.don-card h3 {
    color: var(--primary-blue);
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.don-benefits,
.don-actions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.don-benefits li,
.don-actions li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.don-benefits li:last-child,
.don-actions li:last-child {
    border-bottom: none;
}

.don-benefits li strong {
    color: var(--text-primary);
}

.don-card p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.back-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: var(--dark-blue);
    transform: translateX(-4px);
}

[data-theme="dark"] .don-box,
[data-theme="dark"] .don-card {
    background: var(--bg-card);
    border-color: var(--border-gray);
}

[data-theme="dark"] .don-info-box {
    background: rgba(45, 122, 204, 0.1);
    border-left-color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 968px) {
    .don-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .don-sidebar {
        order: -1;
    }
    
    .don-box {
        padding: 2rem 1.5rem;
    }
    
    .don-header h1 {
        font-size: 2rem;
    }
    
    .amount-input-container input {
        font-size: 1.5rem;
    }
    
    .amount-input-container .currency {
        font-size: 1.5rem;
    }
}

/* ============================================
   PAGES ACTIONS, ÉVÉNEMENTS, BÉNÉVOLES
   ============================================ */

.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 100px);
}

.page-box {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    height: 80px;
}

.page-logo-container img {
    max-height: 80px;
    max-width: 350px;
    object-fit: contain;
}

.page-header h1 {
    color: var(--primary-blue);
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.page-content {
    margin-top: 2rem;
}

/* Page Actions */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    color: var(--primary-blue);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.action-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.page-info-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-blue);
    border-radius: 16px;
    border-left: 4px solid var(--primary-blue);
    margin-top: 2rem;
}

.page-info-box .info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.page-info-box .info-text {
    flex: 1;
}

.page-info-box .info-text h3 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.page-info-box .info-text p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

/* Page Événements */
.evenements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.evenement-card-page {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.evenement-card-page:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.evenement-card-content h3 {
    color: var(--primary-blue);
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.evenement-meta-page {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.evenement-meta-page span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.evenement-type {
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.evenement-card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.evenement-link-page {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.evenement-link-page:hover {
    color: var(--dark-blue);
    transform: translateX(4px);
}

/* Page Bénévoles */
.benevoles-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.info-section h3 {
    color: var(--primary-blue);
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li strong {
    color: var(--text-primary);
}

.domaines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.domaine-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

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

.domaine-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.domaine-card h4 {
    color: var(--primary-blue);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.domaine-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.benevole-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feedback-message {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.feedback-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.feedback-message.error {
    background: rgba(45, 122, 204, 0.1);
    color: #2d7acc;
    border: 2px solid rgba(45, 122, 204, 0.3);
}

[data-theme="dark"] .page-box,
[data-theme="dark"] .action-card,
[data-theme="dark"] .info-section,
[data-theme="dark"] .evenement-card-page,
[data-theme="dark"] .domaine-card {
    background: var(--bg-card);
    border-color: var(--border-gray);
}

[data-theme="dark"] .page-info-box {
    background: rgba(45, 122, 204, 0.1);
    border-left-color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 968px) {
    .page-container {
        padding: 1rem;
    }
    
    .page-box {
        padding: 2rem 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .domaines-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 2. Effets Ripple sur les boutons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* 3. Skeleton Loaders */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--border-color) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    margin-bottom: 0;
    width: 60%;
}

.skeleton-title {
    height: 24px;
    width: 40%;
    margin-bottom: 16px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    padding: 24px;
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

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

[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--border-color) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
}

/* 4. Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-trigger {
    cursor: help;
    border-bottom: 1px dotted var(--text-secondary);
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    box-shadow: var(--shadow-md);
    max-width: 250px;
    white-space: normal;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--dark-gray);
}

.tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

[data-theme="dark"] .tooltip-content {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .tooltip-content::after {
    border-top-color: var(--bg-card);
}

/* 5. Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.badge.success {
    background: #10b981;
}

.badge.error {
    background: #2d7acc;
}

.badge.warning {
    background: #f59e0b;
}

.badge.info {
    background: var(--primary-blue);
}

.badge.pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(45, 122, 204, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(45, 122, 204, 0);
    }
}

/* 6. Amélioration des animations de particules pour les cartes de stats */
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card:hover::after {
    opacity: 1;
    animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(10px, 10px) rotate(180deg);
    }
}

/* 7. Amélioration des boutons avec effet de brillance */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-shine:hover::before {
    left: 100%;
}

/* 8. Amélioration des inputs avec focus moderne */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(45, 122, 204, 0.1);
    transition: all 0.3s ease;
}

/* 9. Effet de parallaxe subtil pour les cartes */
.card-parallax {
    transition: transform 0.3s ease;
}

.card-parallax:hover {
    transform: translateY(-4px) scale(1.01);
}

/* 10. Amélioration des scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* 11. Amélioration responsive pour les tooltips */
@media (max-width: 768px) {
    .tooltip-content {
        max-width: 200px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .toast {
        min-width: 280px;
        max-width: calc(100vw - 40px);
    }
    
    .toast-container {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 0 0;
    margin-top: 40px;
    margin-bottom: 0;
    margin-left: calc(-15px - 48px);
    margin-right: calc(-15px);
    width: calc(100vw);
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: start;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 100%;
    margin: 20px auto 0;
    padding: 15px 15px 0 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 11px;
    margin: 0;
}


[data-theme="dark"] .main-footer {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .footer-section h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .footer-section ul li,
[data-theme="dark"] .footer-section ul li a {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-section ul li a:hover {
    color: var(--primary-blue);
}

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

/* Responsive footer */
@media (max-width: 768px) {
    .main-footer {
        margin-left: calc(-15px - 24px);
        margin-right: calc(-15px);
        width: calc(100vw);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 15px;
    }
    
    .footer-bottom {
        padding: 15px 15px 0 15px;
    }
}

@media (max-width: 480px) {
    .main-footer {
        margin-left: calc(-15px - 16px);
        margin-right: calc(-15px);
        width: calc(100vw);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .footer-section h4 {
        font-size: 15px;
    }
    
    .footer-section ul li {
        font-size: 13px;
    }
    
    .footer-bottom {
        padding: 15px 15px 0 15px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}
