/**
 * ===============================================
 * BABYFOOT ACADÉMIE - Styles Globaux
 * ===============================================
 * 
 * Organisation :
 * 1. Variables CSS (palettes, mode nuit)
 * 2. Reset & Base
 * 3. Header (navigation)
 * 4. Footer (navigation)
 * 5. Page HOME
 * 6. Page PARAMETRES
 * 7. Page INFO ⭐ NOUVEAU
 * 8. Page PROFIL
 * 9. Page MESSAGES
 * 10. Composants réutilisables
 * 
 * Version: 2.2.0
 * Auteur: RMBZ Dev
 * ===============================================
 */

/* ================================================
   1. VARIABLES CSS - SYSTÈME DE PALETTES
   ================================================ */

:root {
    /* Variables par défaut (palette bleue) */
    --color-primary: #3b82f6;
    --color-secondary: #2563eb;
    --color-accent: #60a5fa;
    --header-bg: #1e40af;
    --footer-bg: #1e3a8a;
    
    /* Couleurs système (fixes) */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Thème LIGHT par défaut */
    --bg-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --bg-card: #ffffff;
    --bg-section: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* Espacements */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ================================================
   2. RESET & BASE
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    background: var(--bg-card);
    color: var(--text-primary);
    min-height: 100vh;
    
    padding-bottom: 70px;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}
/* ========================================
   RÉDUCTION TAILLES GLOBALES - AJOUT AU STYLE.CSS
   ======================================== */

.welcome-title, .welcome-subtitle, .jeux-title, .jeux-subtitle {
    color: var(--color-primary) !important;
}

/* Titres principaux réduits */
h1, .page-title, .section-title {
    font-size: 24px !important;
}

h2 {
    font-size: 20px !important;
}

h3 {
    font-size: 18px !important;
}

/* Textes sobres et lisibles */

p {
    font-size: 15px;
    line-height: 1.6;
}

/* Cartes et badges */
.card-title, .module-title, .competence-title {
    font-size: 16px !important;
}

.badge, .stat-label {
    font-size: 13px !important;
}

/* Stats page info */
.stat-number {
    font-size: 36px !important;
}

.stat-card h3 {
    font-size: 16px !important;
}

/* Boutons */
button, .btn, .action-btn {
    font-size: 14px !important;
}

/* Formulaires */
label, .form-label {
    font-size: 14px !important;
}

input, select, textarea {
    font-size: 14px !important;
}

/* Navigation footer */
.nav-item span {
    font-size: 11px !important;
}

/* Headers de section */
.entrainer-title, .profil-title {
    font-size: 26px !important;
}

.entrainer-subtitle, .profil-subtitle {
    font-size: 14px !important;
}

/* Modales */
.modal-title {
    font-size: 20px !important;
}

.modal-body {
    font-size: 15px !important;
}

/* Responsive */
@media (max-width: 768px) {
    h1, .page-title {
        font-size: 22px !important;
    }
    
    h2 {
        font-size: 18px !important;
    }
    
    h3 {
        font-size: 16px !important;
    }
    
    .stat-number {
        font-size: 28px !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

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

a:hover {
    color: var(--color-secondary);
}
/* ================================================
   CSS À AJOUTER POUR HEADER ET FOOTER
   Remplace les sections 3 et 4 de ton style.css
   ================================================ */
/* ========================================
   HEADER ÉPURÉ
   ======================================== */

.app-header {
    background: var(--header-bg);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.club-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.club-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.club-logo:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.club-logo-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.club-logo-placeholder:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.club-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.header-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.header-icon i {
    font-size: 18px;
}

.icon-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Panneau notifications */
.notifications-panel {
    position: absolute;
    top: 55px;
    right: 0;
    width: 350px;
    max-height: 400px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

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

.notifications-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
}

.mark-all-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Bouton "Tout effacer" discret */
.mark-all-btn {
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: underline;
}

.mark-all-btn:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
    text-decoration: none;
}

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

.notif-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.notif-item.unread {
    background: rgba(59, 130, 246, 0.08);
}

.notif-item.unread:hover {
    background: rgba(59, 130, 246, 0.12);
}

/* Wrapper icône avec badge compteur */
.notif-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon {
    font-size: 24px;
    flex-shrink: 0;
}

/* Badge compteur pour messages groupés */
.notif-count-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-primary, #3B82F6);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

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

.notif-message {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notif-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Empty state amélioré */
.empty-notifs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-notifs .empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.empty-notifs, .loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .app-header {
        padding: 10px 15px;
        height: 56px;
    }

    .club-name {
        display: none;
    }

    .club-logo, .club-logo-placeholder {
        width: 36px;
        height: 36px;
    }

    .header-icon {
        width: 36px;
        height: 36px;
    }

    .header-icon i {
        font-size: 16px;
    }

    .notifications-panel {
        width: calc(100vw - 30px);
        right: 15px;
    }
}
/* ================================================
   4. FOOTER (navigation)
   ================================================ */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--footer-bg);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
    transition: background-color var(--transition-normal);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bouton-menu {
    background: none;
    color: white;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8em;
    gap: 6px;
    width: 20vw;
    transition: transform var(--transition-fast);
    text-decoration: none;
}

.bouton-menu:hover {
    transform: translateY(-2px);
    color: white;
}

.bouton-menu i {
    font-size: 1.2em;
}

.bouton-menu img {
    width: 55px;
}

#menuBouton {
    width: 15%;
}
/* ================================================
   7. PAGE INFO ⭐ NOUVEAU
   ================================================ */

/* Conteneur principal */
.ba-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Section headers réutilisables */
.ba-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ba-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ba-section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* SECTION INTRODUCTION */
.ba-intro-section {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.ba-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.ba-intro-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
}

/* SECTION CARTE LEAFLET */
.ba-map-section {
    margin-bottom: 2rem;
}

.ba-map-container {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-md);
}

.ba-map {
    width: 100%;
    height: 400px;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Customisation popups Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 0.75rem;
    padding: 0.5rem;
}

.leaflet-popup-content {
    margin: 0.75rem;
    font-size: 0.9rem;
}

.ba-popup-club-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.ba-popup-club-ville {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.ba-popup-club-joueurs {
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    display: inline-block;
}

/* SECTION ACCORDÉON */
.ba-links-section {
    margin-bottom: 2rem;
}

.ba-accordion {
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.ba-accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ba-accordion-item:last-child {
    border-bottom: none;
}

.ba-accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.ba-accordion-header:hover {
    background: var(--color-primary);
    color: white;
}

.ba-accordion-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.ba-accordion-header.active .ba-accordion-icon {
    transform: rotate(180deg);
}

.ba-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.ba-accordion-content.active {
    max-height: 500px;
}

.ba-links-list {
    list-style: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
}

.ba-links-list li {
    margin-bottom: 0.75rem;
}

.ba-link-item {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.ba-link-item:hover {
    background: var(--color-primary);
    color: white;
    transform: translateX(5px);
}

/* SECTION STATISTIQUES */
.ba-stats-section {
    margin-bottom: 2rem;
}

.ba-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ba-stat-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
}

.ba-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ba-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.ba-stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.ba-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* SECTION TOP 3 CLUBS */
.ba-top-clubs-section {
    margin-bottom: 2rem;
}

.ba-top-clubs-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ba-top-club-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.ba-top-club-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.ba-top-club-1 {
    border-left: 4px solid #FFD700;
}

.ba-top-club-2 {
    border-left: 4px solid #C0C0C0;
}

.ba-top-club-3 {
    border-left: 4px solid #CD7F32;
}

.ba-top-club-rank {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.ba-top-club-info {
    flex-grow: 1;
}

.ba-top-club-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.ba-top-club-ville {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ba-top-club-xp {
    text-align: right;
    flex-shrink: 0;
}

.ba-top-club-xp-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.ba-top-club-xp-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ba-no-data {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* SECTION FORMULAIRE CONTACT */
.ba-contact-section {
    margin-bottom: 2rem;
}

.ba-contact-container {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.ba-contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.ba-form-group {
    margin-bottom: 1rem;
}

.ba-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ba-form-select,
.ba-form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.ba-form-select:focus,
.ba-form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ba-form-textarea {
    resize: vertical;
    font-family: inherit;
}

.ba-form-actions {
    margin-top: 1.5rem;
}

.ba-btn-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.ba-btn-submit:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.ba-btn-icon {
    font-size: 1.25rem;
}

.ba-contact-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    display: none;
}

.ba-contact-feedback.success {
    display: block;
    background: #DEF7EC;
    color: #03543F;
    border: 1px solid #84E1BC;
}

.ba-contact-feedback.error {
    display: block;
    background: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #F98080;
}

/* RESPONSIVE PAGE INFO */
@media (max-width: 768px) {
    .ba-info-container {
        padding: 0.75rem;
    }

    .ba-intro-section {
        padding: 1.5rem;
    }

    .ba-page-title {
        font-size: 1.5rem;
    }

    .ba-intro-text {
        font-size: 0.9rem;
        text-align: left;
    }

    .ba-section-title {
        font-size: 1.5rem;
    }

    .ba-map {
        height: 300px;
    }

    .ba-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .ba-stat-card {
        padding: 1rem;
    }

    .ba-stat-icon {
        font-size: 2rem;
    }

    .ba-stat-value {
        font-size: 1.75rem;
    }

    .ba-top-club-card {
        padding: 1rem;
        gap: 1rem;
    }

    .ba-top-club-rank {
        font-size: 2rem;
    }

    .ba-top-club-name {
        font-size: 1.1rem;
    }

    .ba-top-club-xp-value {
        font-size: 1.5rem;
    }

    .ba-contact-container {
        padding: 1.5rem;
    }
}

/* MODE NUIT - Ajustements PAGE INFO */
[data-theme="dark"] .leaflet-popup-content-wrapper {
    background: #2d3748;
    color: #f9fafb;
}

[data-theme="dark"] .leaflet-popup-tip {
    background: #2d3748;
}

[data-theme="dark"] .ba-form-select,
[data-theme="dark"] .ba-form-textarea {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

/* ================================================
   6. PAGE PARAMETRES - À ajouter dans style.css
   ================================================ */

.param-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-sm);
}

.param-header-title {
    text-align: center;
    padding: 10px 0;
}

.param-header-title h1 {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 2px;
}

.param-header-title p {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Boutons rôles (responsable/admin) */
.param-role-buttons {
    display: grid;
    gap: var(--spacing-sm);
    margin-bottom: 10px;
}

.param-role-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.param-role-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.param-role-btn.admin {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.param-role-icon {
    font-size: 1.1rem;
}

/* Sections de paramètres */
.param-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-normal);
}

.param-section:hover {
    box-shadow: var(--shadow-lg);
}

.param-section-header {
    background: var(--color-primary);
    padding: var(--spacing-sm) 12px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.param-section-icon {
    font-size: 1rem;
}

.param-section-header h2 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.param-section-body {
    padding: 10px;
}

/* Options palette */
.palette-options {
    display: grid;
    gap: var(--spacing-sm);
}

.palette-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.palette-item.active {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
}

.palette-emoji {
    font-size: 1.5rem;
}

.palette-info {
    flex-grow: 1;
}

.palette-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.palette-colors {
    display: flex;
    gap: 3px;
}

.palette-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

/* Options paramètres */
.param-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.param-option-label strong {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.param-option-label small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 42px;
    height: 22px;
    background: #d1d5db;
    border-radius: 22px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.toggle-switch.active {
    background: var(--color-primary);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-normal);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px);
}

/* Select */
.param-select {
    padding: 6px 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* Radio group */
.radio-group {
    display: grid;
    gap: var(--spacing-sm);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.radio-option:hover {
    border-color: var(--color-primary);
}

.radio-option.checked {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
}

.radio-option input {
    margin: 0;
}

/* À propos */
.about-content {
    text-align: center;
    padding: 10px;
}

.about-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.about-version {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.about-description {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.about-author {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Zone danger */
.danger-zone {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 15px;
    margin-top: 15px;
}

.danger-zone h3 {
    font-size: 0.9rem;
    color: #991b1b;
    margin-bottom: 10px;
}

.danger-btn {
    width: 100%;
    padding: 10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

/* Toast */
.param-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10000;
}

.param-toast.show {
    opacity: 1;
    bottom: 120px;
}

/* ================================================
   CSS NOTIFICATIONS - À ajouter après la section HEADER
   ================================================ */

/* Panneau notifications */
.notifications-panel {
    position: fixed;
    top: 70px;
    right: 15px;
    width: 380px;
    max-width: calc(100vw - 30px);
    max-height: 600px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

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

.notifications-header h3 {
    font-size: 18px;
    color: var(--text-primary);
}

.mark-all-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.mark-all-btn:hover {
    opacity: 0.9;
}

.notifications-list {
    max-height: 500px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.notif-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.notif-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.notif-content {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notif-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

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

/* ================================================
   10. COMPOSANTS RÉUTILISABLES
   ================================================ */

.btn-primary {
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* ================================================
   7. PAGE INFO (version compacte)
   ================================================ */

.ba-info-container { max-width: 1200px; margin: 0 auto; padding: 1rem; }
.ba-section-header { text-align: center; margin-bottom: 2rem; }
.ba-section-title { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.ba-section-subtitle { font-size: 0.95rem; color: var(--text-secondary); }

/* Sections */
.ba-intro-section, .ba-map-container, .ba-accordion, .ba-contact-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.ba-page-title { font-size: 2rem; font-weight: 700; color: var(--color-primary); text-align: center; margin-bottom: 1rem; }
.ba-intro-text { font-size: 1rem; line-height: 1.7; color: var(--text-primary); }
.ba-map { width: 100%; height: 400px; border-radius: 0.75rem; }

/* Accordéon */
.ba-accordion-header {
    width: 100%;
    padding: 1.25rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
}
.ba-accordion-header:hover { background: var(--color-primary); color: white; }
.ba-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s; }
.ba-accordion-content.active { max-height: 500px; }
.ba-links-list { list-style: none; padding: 1.5rem; }
.ba-link-item {
    display: block;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}
.ba-link-item:hover { background: var(--color-primary); color: white; }

/* Stats */
.ba-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.ba-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.ba-stat-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.ba-stat-value { font-size: 2.25rem; font-weight: 700; color: var(--color-primary); }
.ba-stat-label { font-size: 0.9rem; color: var(--text-secondary); }

/* Top 3 */
.ba-top-club-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.ba-top-club-1 { border-left: 4px solid #FFD700; }
.ba-top-club-2 { border-left: 4px solid #C0C0C0; }
.ba-top-club-3 { border-left: 4px solid #CD7F32; }
.ba-top-club-rank { font-size: 2.5rem; }
.ba-top-club-info { flex-grow: 1; }
.ba-top-club-name { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.ba-top-club-ville { font-size: 0.9rem; color: var(--text-secondary); }
.ba-top-club-xp-value { font-size: 1.75rem; font-weight: 700; color: var(--color-primary); }

/* Formulaire */
.ba-contact-form { max-width: 600px; margin: 0 auto; }
.ba-form-group { margin-bottom: 1rem; }
.ba-form-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }
.ba-form-select, .ba-form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    background: var(--bg-card);
}
.ba-form-select:focus, .ba-form-textarea:focus { outline: none; border-color: var(--color-primary); }
.ba-btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.ba-btn-submit:hover { background: var(--color-secondary); }
.ba-contact-feedback { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm); text-align: center; font-weight: 600; display: none; }
.ba-contact-feedback.success { display: block; background: #DEF7EC; color: #03543F; }
.ba-contact-feedback.error { display: block; background: #FDE8E8; color: #9B1C1C; }

/* Responsive */
@media (max-width: 768px) {
    .ba-page-title { font-size: 1.5rem; }
    .ba-map { height: 300px; }
    .ba-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ba-stat-icon { font-size: 2rem; }
    .ba-stat-value { font-size: 1.75rem; }
}

.leaflet-top, .leaflet-bottom, .leaflet-right, .leaflet-left {
    z-index: 500 !important;
}
/* ========================================
   9. PAGE MESSAGES (Responsive WhatsApp-like)
   ======================================== */

.messages-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    height: calc(100vh - 200px);
    display: flex;
    gap: 0;
}

/* Sidebar conversations */
.sidebar {
    width: 350px;
    background: var(--bg-card);
    border-radius: 20px 0 0 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.sidebar-actions {
    display: flex;
    gap: 10px;
}

.new-msg-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.new-msg-btn:hover {
    transform: scale(1.05);
}

.filter-tabs {
    display: flex;
    gap: 5px;
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.filter-tab:hover {
    background: var(--bg-hover);
}

.filter-tab.active {
    color: var(--color-primary);
    background: var(--bg-active);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
    position: relative;
}

.conversation-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.conversation-clickable {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.conversation-item:hover {
    background: var(--bg-hover);
}

.conversation-item.active {
    background: var(--bg-active);
}

.conversation-item.unread {
    background: var(--bg-warning);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unread-badge {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.conversation-preview {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 11px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

/* Menu dropdown conversation EN POSITION FIXED */
.conversation-menu-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    flex-shrink: 0;
}

.conversation-menu-btn:hover {
    background: var(--bg-hover);
}

.conversation-menu-dropdown-fixed {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    min-width: 150px;
    overflow: hidden;
    animation: menuAppear 0.15s ease;
}

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

.conversation-menu-dropdown-fixed button {
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.conversation-menu-dropdown-fixed button:hover {
    background: var(--bg-hover);
}

.conversation-menu-dropdown-fixed button:last-child {
    border-top: 1px solid var(--border-color);
}

/* Zone de chat */
.chat-area {
    flex: 1;
    background: var(--bg-card);
    border-radius: 0 20px 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-back-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.chat-back-btn:hover {
    background: var(--bg-hover);
}

.chat-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

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

.chat-action-btn {
    padding: 8px;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-action-btn:hover {
    background: var(--bg-hover);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-secondary);
}

.message-bubble {
    max-width: 65%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    animation: messageAppear 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

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

.message-bubble.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}

.message-time {
    font-size: 10px;
    opacity: 0.6;
    display: block;
    margin-top: 4px;
}

.message-bubble.sent .message-time {
    text-align: right;
}

.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    transition: all 0.2s ease;
    resize: none;
    max-height: 100px;
    min-height: 40px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    line-height: 1.4;
}

.chat-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--shadow-focus);
}

.send-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.send-btn:hover {
    transform: scale(1.05);
}

.send-btn:active {
    transform: scale(0.95);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Empty state */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    padding: 40px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-text {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Modal nouveau message */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    animation: modalAppear 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 20px 24px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

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

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
}

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

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

.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
}

.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--shadow-focus);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.modal-btn-cancel:hover {
    background: var(--bg-hover);
}

.modal-btn-send {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-btn-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive - Mobile */
@media (max-width: 968px) {
    .messages-container {
        padding: 0;
        height: calc(100vh - 140px);
        flex-direction: column;
    }

    /* Sur mobile : une seule vue à la fois */
    .sidebar {
        width: 100%;
        border-radius: 0;
        border-right: none;
        display: flex;
    }

    .sidebar.hide-mobile {
        display: none;
    }

    .chat-area {
        width: 100%;
        border-radius: 0;
        display: none;
    }

    .chat-area.show-mobile {
        display: flex;
    }

    .chat-back-btn {
        display: flex;
        margin-right: 8px;
    }

    .message-bubble {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .sidebar-header {
        padding: 16px;
    }

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

    .chat-messages {
        padding: 16px;
    }

    .chat-input-area {
        padding: 12px 16px;
    }

    .message-bubble {
        max-width: 85%;
    }

    .conversation-item {
        padding: 10px 16px;
    }
}
/* ========================================
   SECTION : PAGE S'ENTRAÎNER - DESIGN ÉPURÉ
   Style minimaliste et moderne pour tous les âges
   ======================================== */

/* Container principal */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: calc(100vh - 140px);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

/* Section filtres - Design épuré */
.filters-section {
    background: transparent;
    padding: 0;
    margin-bottom: 32px;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.filters-row:last-child {
    margin-bottom: 0;
}

/* Boutons filtres - Petits et subtils */
.filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    white-space: nowrap;
}

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

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Grille des compétences - Design aéré */
.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

/* Card compétence - Fine et élégante */
.competence-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.competence-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Card header - Compact */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin: 0;
    line-height: 1.4;
}

/* Bouton favori - Discret */
.favori-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px;
    opacity: 0.4;
    flex-shrink: 0;
}

.favori-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.favori-btn.active {
    opacity: 1;
}

/* Card body - Spacing réduit */
.card-body {
    flex: 1;
    margin-bottom: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.info-row > span:first-child {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Badges - Petits et discrets */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background: var(--color-primary);
    color: white;
}

.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* Rangs - Plus petits */
.rangs-container {
    display: flex;
    gap: 6px;
}

.rang-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 12px;
    opacity: 0.3;
    transition: all 0.2s ease;
}

.rang-badge.valide {
    opacity: 1;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
}

/* Bouton action - Discret */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
}

/* Modal - Design épuré */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.2s ease;
}

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

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

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

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

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 20px;
}

.modal-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 14px;
}

/* Rangs dans modal */
.rangs-section {
    margin-bottom: 20px;
}

.rangs-display {
    display: flex;
    gap: 16px;
    justify-content: center;
}

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

.rang-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 8px;
    opacity: 0.3;
    transition: all 0.2s ease;
}

.rang-circle.valide {
    opacity: 1;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
}

.rang-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.description-section {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .page-container {
        padding: 20px 16px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .competences-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filters-row {
        gap: 6px;
    }

    .filter-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .card-title {
        font-size: 14px;
    }

    .rangs-display {
        gap: 12px;
    }

    .rang-circle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 16px 12px;
    }

    .page-header {
        margin-bottom: 24px;
    }

    .competence-card {
        padding: 14px;
    }

    .info-row {
        font-size: 12px;
    }
}

/* ============================================
   TIRAGE BONUS/MALUS - STYLES
   À ajouter dans /assets/css/style.css
   ============================================ */

/* Container principal */
.tirage-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.tirage-header {
    text-align: center;
    margin-bottom: 40px;
}

.tirage-title {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.tirage-subtitle {
    color: #6b7280;
    font-size: 16px;
}

/* Bouton règles */
.btn-regles {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.btn-regles:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Section choix */
.tirage-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 25px;
    text-align: center;
}

/* ============================================
   BOUTONS RADIO STYLISÉS
   ============================================ */

.radio-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.radio-inputs label:last-child {
    grid-column: 1 / -1;
}

.radio-input {
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.radio-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 140px;
    border-radius: 15px;
    border: 3px solid #e5e7eb;
    background-color: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    padding: 20px;
}

.radio-tile::before {
    content: "";
    position: absolute;
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid #e5e7eb;
    background-color: white;
    border-radius: 50%;
    top: 10px;
    right: 10px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s ease;
}

.radio-tile:hover {
    border-color: var(--primary);
    background-color: #fef2f2;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.radio-tile:hover::before {
    transform: scale(1);
    opacity: 1;
}

.radio-input:checked + .radio-tile {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.radio-input:checked + .radio-tile::before {
    transform: scale(1);
    opacity: 1;
    background-color: white;
    border-color: white;
}

.radio-input:checked + .radio-tile .radio-icon {
    filter: brightness(0) invert(1);
}

.radio-input:checked + .radio-tile .radio-label {
    color: white;
}

.radio-icon {
    font-size: 48px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.radio-label {
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
    transition: all 0.3s ease;
    text-align: center;
}

/* ============================================
   BOUTON LANCER
   ============================================ */

.btn-lancer {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-lancer:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

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

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

/* ============================================
   ZONE RÉSULTAT - OVERLAY
   ============================================ */

.resultat-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.resultat-overlay.show {
    display: flex;
}

.resultat-container {
    background: white;
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.btn-close-resultat {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.btn-close-resultat:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

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

.resultat-type {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.resultat-type.bonus {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.resultat-type.malus {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.resultat-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

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

.resultat-nom {
    font-size: 32px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
}

.resultat-definition {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 30px;
}

.btn-relancer {
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-relancer:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ============================================
   ANIMATION SLOT MACHINE
   ============================================ */

.slot-machine {
    display: none;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.slot-machine.active {
    display: block;
}

.slot-display {
    font-size: 60px;
    min-height: 80px;
    animation: slot-spin 0.1s linear infinite;
}

@keyframes slot-spin {
    0% { transform: translateY(0); opacity: 0.3; }
    50% { opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0.3; }
}

.slot-text {
    font-size: 18px;
    color: #6b7280;
    margin-top: 20px;
    font-weight: 600;
}

/* ============================================
   MODALE RÈGLES
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: scaleIn 0.3s ease;
}

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

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-close-modal:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: rotate(90deg);
}

.modal-body {
    color: #4b5563;
    line-height: 1.8;
    font-size: 16px;
}

.modal-body h3 {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body ul {
    padding-left: 25px;
    margin: 15px 0;
}

.modal-body li {
    margin-bottom: 10px;
}

.modal-body .exemple {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid var(--primary);
}
/* ============================================
   TIRAGE BONUS/MALUS - CSS MOBILE OPTIMISÉ
   À ajouter/remplacer dans la section mobile de style.css
   ============================================ */

/* Filtre */
.tirage-filter {
    margin: 20px 0;
    text-align: center;
}

.tirage-filter label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4b5563;
}

.tirage-filter select {
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: white;
    cursor: pointer;
    min-width: 250px;
}

.tirage-filter select:focus {
    outline: none;
    border-color: var(--primary);
}

/* RESPONSIVE MOBILE OPTIMISÉ - TOUT SUR UN ÉCRAN */
@media (max-width: 768px) {
    .tirage-container {
        padding: 10px;
    }
    
    .tirage-header {
        margin-bottom: 15px;
    }
    
    .tirage-title {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .tirage-subtitle {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .tirage-filter {
        margin: 15px 0;
    }
    
    .tirage-filter label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .tirage-filter select {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 200px;
    }
    
    .btn-regles {
        padding: 8px 16px;
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .tirage-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    /* BOUTONS EN LIGNE - COMPACTS */
    .radio-inputs {
        display: flex;
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    
    .radio-inputs label {
        flex: 1;
    }
    
    .radio-inputs label:last-child {
        grid-column: auto;
    }
    
    .radio-tile {
        min-height: 85px;
        padding: 8px;
    }
    
    .radio-icon {
        font-size: 32px;
        margin-bottom: 4px;
    }
    
    .radio-label {
        font-size: 11px;
    }
    
    .btn-lancer {
        max-width: 100%;
        padding: 14px 30px;
        font-size: 15px;
    }
    
    /* Slot machine */
    .slot-machine {
        padding: 30px 20px;
    }
    
    .slot-display {
        font-size: 50px;
    }
    
    .slot-text {
        font-size: 15px;
    }
    
    /* Overlay résultat */
    .resultat-container {
        padding: 25px 20px;
        width: 95%;
    }
    
    .resultat-emoji {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .resultat-nom {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .resultat-definition {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .btn-close-resultat {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .btn-relancer {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* TRÈS PETIT ÉCRAN (< 400px) */
@media (max-width: 400px) {
    .tirage-title {
        font-size: 20px;
    }
    
    .radio-inputs {
        gap: 6px;
    }
    
    .radio-tile {
        min-height: 75px;
        padding: 6px;
    }
    
    .radio-icon {
        font-size: 28px;
    }
    
    .radio-label {
        font-size: 10px;
    }
    
    .btn-lancer {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .resultat-emoji {
        font-size: 50px;
    }
    
    .resultat-nom {
        font-size: 20px;
    }
}

/* ================================================
   PAGES LOGIN & REGISTER - CSS EXTERNALISÉ
   ================================================ */

/* Body des pages d'authentification */
body.auth-page {
    background: var(--bg-primary);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
    padding-bottom: 0;
}

.auth-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 30px 25px;
    width: 100%;
    max-width: 450px;
    max-height: 95vh;
}

.auth-container.register {
    max-height: 96vh;
    display: flex;
    flex-direction: column;
}

.auth-logo {
    width: 50%;
    display: flex;
    margin: 0 auto 15px;
}

.auth-logo.small {
    width: 25%;
    margin-bottom: 10px;
}

.auth-title {
    text-align: center;
    color: #1f2937;
    margin-bottom: 25px;
    font-size: 24px;
}

.auth-title.small {
    font-size: 15px;
    margin-bottom: 15px;
}

.steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s;
}

.step-circle.active {
    background: var(--bg-primary);
    color: white;
}

.step-circle.inactive {
    background: #e5e7eb;
    color: #9ca3af;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
}

.step-line.active {
    background: var(--bg-primary);
}

.auth-alert {
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 13px;
}

.auth-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fecaca;
}

.auth-alert.warning {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #fde68a;
}

.auth-alert.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #a7f3d0;
}

.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.auth-form-group.compact {
    margin-bottom: 12px;
}

.auth-form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 13px;
}

.auth-form-label.small {
    font-size: 12px;
    margin-bottom: 5px;
}

.auth-form-input,
.auth-form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
}

.auth-form-input.compact {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
}

.auth-form-input:focus,
.auth-form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-btn {
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.auth-btn.compact {
    padding: 12px;
    font-size: 14px;
    border-radius: 10px;
}

.auth-btn-primary {
    background: var(--bg-primary);
    color: white;
}

.auth-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.auth-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.auth-btn-secondary:hover {
    background: #d1d5db;
}

.auth-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-shrink: 0;
}

.auth-btn-group .auth-btn {
    flex: 1;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider-text {
    background: white;
    padding: 0 15px;
    color: #6b7280;
    font-size: 13px;
    position: relative;
}

.auth-link {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #6b7280;
    flex-shrink: 0;
}

.auth-link.compact {
    margin-top: 12px;
    font-size: 12px;
}

.auth-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-success-icon {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
}

.auth-success-title {
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.auth-success-text {
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 480px) {
    body.auth-page {
        padding: 10px;
    }

    .auth-container {
        padding: 20px;
        max-height: 98vh;
    }

    .auth-title {
        font-size: 20px;
    }

    .auth-form-input,
    .auth-form-select,
    .auth-btn {
        font-size: 14px;
    }
}