:root {
    --primary: #18534F;
    --secondary: #226D68;
    --light: #ECF8F6;
    --accent: #FEEAA1;
    --tertiary: #D6955B;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --shadow: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Layout principal */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Menu latéral */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px var(--shadow);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .nav-item span,
.sidebar.collapsed .sidebar-header h1 {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sidebar.collapsed .sidebar-toggle {
    margin: 0 auto;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.nav-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    position: relative;
}

.nav-item span {
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--accent);
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    min-width: 24px;
    text-align: center;
}

/* Tooltip pour menu réduit */
.sidebar.collapsed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    background: var(--primary);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1002;
}

.sidebar.collapsed .nav-item:hover::after {
    opacity: 1;
}

/* Zone principale */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    display: none;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Dropdown du profil */
.profile-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
    min-width: 200px;
    display: none;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light);
}

/* Contenu de la page */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: var(--light);
}

/* Modals */



@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(34, 109, 104, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Boutons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 109, 104, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-link {
    background: none;
    color: var(--secondary);
    text-decoration: underline;
    padding: 5px;
}

.btn-link:hover {
    color: var(--primary);
}

/* Alertes */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-error {
    background: #fee;
    border-color: #c33;
    color: #c33;
}

.alert-success {
    background: #efe;
    border-color: #3c3;
    color: #3c3;
}

.alert-info {
    background: #eef;
    border-color: #33c;
    color: #33c;
}

/* Page de connexion */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-logo p {
    color: #666;
    margin-top: 5px;
}

/* Navigation inférieure mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 10px 0;
    box-shadow: 0 -2px 10px var(--shadow);
    z-index: 1000;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background 0.2s;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    background: rgba(255, 255, 255, 0.2);
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item span {
    font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        height: 100vh;
        z-index: 1001;
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 280px;
    }
    
    .sidebar-toggle {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header {
        padding: 12px 15px;
    }
    
    .header-title {
        display: none;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .page-content {
        padding: 20px 15px 80px 15px;
    }
    
    .bottom-nav {
        display: block;
    }
    
   
    
    .auth-box {
        padding: 30px 20px;
    }
}

/* Utilitaires */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.messaging-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 0;
    background: #f8f8f8;
}

.messaging-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
}

.messaging-tab:hover {
    background: rgba(0, 0, 0, 0.05);
}

.messaging-tab.active {
    border-bottom-color: var(--secondary);
    color: var(--secondary);
    background: white;
}

.messaging-tab i {
    font-size: 16px;
}

/* Contenu de la messagerie */
.messaging-content {
    padding: 25px 30px;
    max-height: 600px;
    overflow-y: auto;
    background: white;
}

/* Mise en page optimisée pour grande largeur */
#messagingModal .modal {
    max-width: 1200px !important;
    width: 95vw !important;
}

#messagingModal .modal-body {
    min-height: 500px;
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive pour la messagerie */
@media (max-width: 768px) {
    .messaging-content {
        max-height: 400px;
        padding: 15px;
    }
    
    .messaging-tab {
        padding: 12px 8px;
        font-size: 13px;
        flex-direction: column;
        gap: 4px;
    }
    
    .messaging-tab i {
        font-size: 18px;
    }
    
    #messagingModal .modal {
        max-width: 100% !important;
        margin: 0 !important;
        height: 100vh;
        border-radius: 0;
    }
}

.nav-item-coach {
    position: relative;
    cursor: pointer;
}

.nav-chevron {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item-coach.expanded .nav-chevron {
    transform: rotate(180deg);
}

/* Sous-menu */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.nav-submenu.show {
    max-height: 800px;
}

.nav-subitem {
    padding: 12px 20px 12px 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    border-left: 4px solid transparent;
}

.nav-subitem:hover {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--accent);
    padding-left: 54px;
}

.nav-subitem.active {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: var(--accent);
    font-weight: 600;
}

.nav-subitem i {
    font-size: 14px;
    width: 20px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar collapsed */
.sidebar.collapsed .nav-submenu {
    display: none;
}

.sidebar.collapsed .nav-chevron {
    display: none;
}

/* Badge pour notifications */
.nav-badge {
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: bold;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .nav-subitem {
        padding: 12px 15px 12px 45px;
    }
    
    .nav-subitem:hover {
        padding-left: 49px;
    }
}

/* Animation d'entrée */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-submenu.show .nav-subitem {
    animation: slideDown 0.3s ease forwards;
}

.nav-submenu.show .nav-subitem:nth-child(1) { animation-delay: 0.05s; }
.nav-submenu.show .nav-subitem:nth-child(2) { animation-delay: 0.1s; }
.nav-submenu.show .nav-subitem:nth-child(3) { animation-delay: 0.15s; }
.nav-submenu.show .nav-subitem:nth-child(4) { animation-delay: 0.2s; }
.nav-submenu.show .nav-subitem:nth-child(5) { animation-delay: 0.25s; }
.nav-submenu.show .nav-subitem:nth-child(6) { animation-delay: 0.3s; }
.nav-submenu.show .nav-subitem:nth-child(7) { animation-delay: 0.35s; }

/* Styles pour le modal de modification de groupe */
#editGroupModal .modal {
    max-width: 900px;
    width: 90vw;
    max-height: 90vh;
}

/* Layout du contenu */
.edit-group-layout {
    display: flex;
    height: 600px;
}

/* Panneau gauche - Informations */
.edit-group-info-panel {
    flex: 0 0 350px;
    padding: 25px;
    border-right: 2px solid #eee;
    background: #f8f9fa;
}

/* Panneau droit - Athlètes */
.edit-group-athletes-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Carte d'athlète dans la liste */
.athlete-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.athlete-item-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.athlete-item-card .athlete-info {
    flex: 1;
}

.athlete-item-card .athlete-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.athlete-item-card .athlete-license {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Liste d'athlètes scrollable */
.athletes-list {
    max-height: 100%;
    overflow-y: auto;
}

/* Section d'ajout d'athlètes */
.add-athletes-section {
    padding: 20px;
    border-top: 2px solid #eee;
    background: white;
}

.add-athletes-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
}

.add-athlete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: background 0.2s;
}

.add-athlete-item:hover {
    background: #f8f9fa;
}

/* Carte de statistiques */
.group-stats-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.group-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: var(--light);
    border-radius: 6px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* Alerte groupe protégé */
.protected-group-alert {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.protected-group-alert i {
    color: #856404;
    font-size: 20px;
    margin-top: 2px;
}

.protected-group-alert strong {
    color: #856404;
    display: block;
    margin-bottom: 5px;
}

.protected-group-alert p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-state p {
    margin: 5px 0;
}

/* Boutons d'action */
.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Scrollbar personnalisée pour les listes */
.athletes-list::-webkit-scrollbar,
.add-athletes-list::-webkit-scrollbar {
    width: 6px;
}

.athletes-list::-webkit-scrollbar-track,
.add-athletes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.athletes-list::-webkit-scrollbar-thumb,
.add-athletes-list::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.athletes-list::-webkit-scrollbar-thumb:hover,
.add-athletes-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* En-tête de section */
.section-header {
    padding: 5px;
    border-bottom: 2px solid #eee;
    background: white;
}

.section-header h3 {
    margin: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contenu scrollable */
.scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

/* Responsive */
@media (max-width: 768px) {
    #editGroupModal .modal {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .edit-group-layout {
        flex-direction: column;
        height: auto;
        max-height: calc(100vh - 120px);
    }
    
    .edit-group-info-panel {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 2px solid #eee;
    }
    
    .edit-group-athletes-panel {
        min-height: 400px;
    }
    
    .group-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .add-athletes-list {
        max-height: 300px;
    }
    
    .athlete-item-card {
        padding: 12px;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* Animation d'entrée */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.athlete-item-card {
    animation: slideInRight 0.3s ease;
}

/* Amélioration visuelle des formulaires */
#editGroupForm .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

#editGroupForm .form-group label i {
    color: var(--secondary);
}

/* Compteur de caractères */
.char-counter {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

/* Info bulle */
.info-tooltip {
    display: inline-block;
    margin-left: 5px;
    color: var(--secondary);
    cursor: help;
}

.info-tooltip:hover {
    color: var(--primary);
}

/* ================================================
   CODE CSS À AJOUTER DANS style.css
   ================================================ */

/* Styles pour les onglets de séances */
.session-tab {
    transition: all 0.3s ease;
}

.session-tab:hover {
    background: rgba(24, 83, 79, 0.05);
}

.session-tab.active {
    color: var(--secondary) !important;
}

/* Styles pour les cartes de séances */
.session-card,
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation au survol */
@media (hover: hover) {
    .session-card:hover,
    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
}

/* Boutons dans les cartes */
.session-card button,
.category-card button {
    transition: all 0.3s ease;
    font-weight: 500;
}

.session-card button:hover,
.category-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.session-card button:active,
.category-card button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Onglets en mode mobile */
    .session-tab {
        font-size: 14px !important;
        padding: 15px 10px !important;
    }

    .session-tab i {
        display: block;
        margin-bottom: 5px;
        font-size: 18px;
    }

    /* Grille des cartes en mobile */
    #sessionsList,
    #categoriesList {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Filtres en mobile */
    .session-tab-content > div:nth-child(2) > div {
        grid-template-columns: 1fr !important;
    }

    /* Cacher le texte des petits boutons en mobile */
    .hide-mobile {
        display: none !important;
    }

    /* Boutons de la carte séance en mobile */
    .session-card > div:last-child > div:nth-last-child(2) {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Boutons de la carte catégorie en mobile */
    .category-card > div:last-child > div {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    /* Titre principal en très petit écran */
    .session-tab-content h1 {
        font-size: 22px !important;
    }

    /* Boutons principaux */
    .btn-primary {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }

    /* Cartes plus compactes */
    .session-card > div:first-child,
    .category-card > div:first-child {
        padding: 15px !important;
    }

    .session-card > div:last-child,
    .category-card > div:last-child {
        padding: 15px !important;
    }
}

/* Amélioration des états de focus pour l'accessibilité */
.session-tab:focus,
button:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Animation de chargement */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-card,
.category-card {
    animation: fadeIn 0.3s ease;
}

/* Styles pour les badges de difficulté */
.difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.difficulty-facile {
    background: #d4edda;
    color: #155724;
}

.difficulty-modere {
    background: #fff3cd;
    color: #856404;
}

.difficulty-difficile {
    background: #f8d7da;
    color: #721c24;
}

/* Amélioration de la lisibilité des modals */
.modal-body .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.modal-body .form-control {
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.modal-body .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(24, 83, 79, 0.1);
}

/* Styles pour les messages vides */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

/* Transition fluide pour les contenus à onglets */
.session-tab-content {
    animation: fadeIn 0.4s ease;
}

/* ================================================
   SESSION EDITOR STYLES
   ================================================ */

.session-editor-container {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: #f5f7fa;
}

.session-editor-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    margin: 0;
    font-size: 24px;
    color: var(--text-dark);
}

.btn-back {
    background: #f0f0f0;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #e0e0e0;
}

.header-right {
    display: flex;
    gap: 12px;
}

.session-editor-content {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

/* ================================================
   EXERCISES PANEL (Left)
   ================================================ */
.exercises-panel {
    background: white;
    border-right: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.exercises-panel .panel-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.exercises-panel .panel-header h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 10px 10px 10px 38px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.exercise-categories {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.exercises-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.exercise-item {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: grab;
    transition: all 0.3s;
}

.exercise-item:hover {
    background: #e8f5f4;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.exercise-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.exercise-item.selected {
    background: var(--secondary);
    color: white;
    border-color: var(--primary);
}

.exercise-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.exercise-info {
    flex: 1;
    min-width: 0;
}

.exercise-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exercise-item.selected .exercise-name {
    color: white;
}

.exercise-category {
    font-size: 12px;
    color: #666;
}

.exercise-item.selected .exercise-category {
    color: rgba(255,255,255,0.9);
}

.exercise-type-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.exercise-type-badge.distance {
    background: #17a2b8;
}

.exercise-type-badge.charge {
    background: #fd7e14;
}

.exercise-type-badge.duration {
    background: #6c757d;
}

.no-exercises {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* ================================================
   STRUCTURE PANEL (Center)
   ================================================ */
.structure-panel {
    background: #f5f7fa;
    overflow-y: auto;
    padding: 20px;
}

.session-header-form {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.structure-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.structure-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.phases-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-state {
    background: white;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
    font-size: 16px;
}

/* ================================================
   PHASE CARD
   ================================================ */
.phase-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.phase-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phase-title-editable {
    flex: 1;
}

.phase-name-input {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

.phase-name-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.phase-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.3);
}

.btn-icon-small {
    background: #dc3545;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.btn-icon-small:hover {
    background: #c82333;
}

/* ================================================
   SERIES CONTAINER
   ================================================ */
.series-container {
    padding: 20px;
}

.series-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.series-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
}

.no-series {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* ================================================
   SERIE CARD
   ================================================ */
.serie-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.serie-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.serie-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 600;
}

.serie-params {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    flex: 1;
}

.param-group {
    display: flex;
    flex-direction: column;
}

.param-group label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.param-input {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

/* ================================================
   DROP ZONE
   ================================================ */
.exercises-drop-zone {
    background: white;
    border: 2px dashed #ddd;
    border-radius: 8px;
    min-height: 80px;
    padding: 15px;
    transition: all 0.3s;
}

.exercises-drop-zone.drag-over {
    background: #e8f5f4;
    border-color: var(--secondary);
    border-style: solid;
}

.exercises-drop-zone.click-mode {
    background: #fff3cd;
    border-color: #ffc107;
    cursor: pointer;
}

.drop-placeholder {
    text-align: center;
    padding: 20px;
    color: #999;
}

.drop-placeholder i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* ================================================
   EXERCISES IN SERIE
   ================================================ */
.exercises-in-serie {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exercise-in-serie {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: grab;
    transition: all 0.3s;
}

.exercise-in-serie:hover {
    border-color: var(--secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.exercise-in-serie.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.exercise-handle {
    cursor: grab;
    padding: 8px;
    color: #999;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.exercise-handle:hover {
    color: var(--primary);
}

.exercise-handle:active {
    cursor: grabbing;
}

.exercise-handle[draggable="true"] {
    user-select: none;
}

.exercise-content {
    flex: 1;
    min-width: 0;
}

.exercise-name-in-serie {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.exercise-params-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.param-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.param-inline label {
    font-weight: 600;
    color: #666;
    font-size: 12px;
}

.param-mini {
    width: 70px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.param-mini-text {
    width: 150px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.param-inline span {
    color: #999;
    font-size: 12px;
}

/* ================================================
   SETTINGS PANEL (Right)
   ================================================ */
.settings-panel {
    background: white;
    border-left: 2px solid #e0e0e0;
    overflow-y: auto;
    padding: 20px;
}

.settings-panel .panel-header {
    margin-bottom: 25px;
}

.settings-panel .panel-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.athlete-selector {
    margin-bottom: 25px;
}

.athlete-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-dark);
}

.athlete-selector select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

.athlete-references {
    margin-bottom: 25px;
}

.references-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.references-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ref-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.ref-item span {
    color: #666;
}

.ref-item strong {
    color: var(--text-dark);
}

.no-data {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

.session-summary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.session-summary h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span {
    font-size: 14px;
}

.summary-item strong {
    font-size: 16px;
}

.help-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.help-section h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.help-list li i {
    color: var(--secondary);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1400px) {
    .session-editor-content {
        grid-template-columns: 280px 1fr 320px;
    }
}

@media (max-width: 1200px) {
    .session-editor-content {
        grid-template-columns: 250px 1fr 280px;
    }
    
    .exercises-panel .panel-header h2 {
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .session-editor-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .exercises-panel {
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        max-height: 300px;
    }
    
    .settings-panel {
        display: none; /* Masqué sur mobile, accessible via modal */
    }
}

@media (max-width: 768px) {
    .session-editor-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .header-left {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .header-left h1 {
        font-size: 20px;
    }
    
    .header-right {
        width: 100%;
    }
    
    .header-right .btn {
        flex: 1;
    }
    
    .structure-panel {
        padding: 15px;
    }
    
    .serie-params {
        grid-template-columns: 1fr 1fr;
    }
    
    .exercise-params-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .param-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .param-mini,
    .param-mini-text {
        width: 100%;
    }
}

.exercise-type-badges {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.type-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.type-badge.distance {
    background: #17a2b8;
}

.type-badge.charge {
    background: #fd7e14;
}

.type-badge.duration {
    background: #6c757d;
}

.exercise-item.selected .type-badge {
    opacity: 0.9;
}

.exercise-recup-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.recup-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recup-label i {
    color: var(--secondary);
}

.exercise-options {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    font-weight: 400;
}

.checkbox-label:hover {
    color: var(--primary);
}

.categories-section {
    padding: 20px;
}

.categories-section h2 {
    margin-bottom: 20px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.category-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.category-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-info i {
    font-size: 24px;
    color: var(--primary);
}

.category-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

.exercise-in-serie.minimal {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.exercise-in-serie.minimal:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.exercise-content-minimal {
    flex: 1;
    min-width: 0;
}

.exercise-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.param-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.param-badge i {
    font-size: 11px;
}

.param-badge.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.param-badge.info {
    background: #e3f2fd;
    color: #1976d2;
}

.exercise-actions-minimal {
    display: flex;
    gap: 4px;
}

/* Exercice en mode édition */
.exercise-in-serie.editing {
    background: #fafafa;
    border: 2px solid var(--primary);
}

.exercise-in-serie.editing .exercise-name-in-serie {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exercise-in-serie.drop-before {
    border-top: 3px solid var(--primary);
}

.exercise-in-serie.drop-after {
    border-bottom: 3px solid var(--primary);
}

.exercise-in-serie {
    transition: border 0.2s;
}

/* Panel paramètres réduit */
.settings-panel {
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.settings-panel.collapsed {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.settings-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-panel .panel-header h2 {
    margin: 0;
}

/* Grille en pleine largeur */
.session-editor-content {
    transition: grid-template-columns 0.3s ease;
}

.session-editor-content.full-width {
    grid-template-columns: 300px 1fr 0px;
}

/* Bouton pour rouvrir le panel */
.settings-panel-toggle-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 15px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 100;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.settings-panel-toggle-btn:hover {
    padding-right: 15px;
    background: var(--primary-dark);
}

.settings-panel-toggle-btn.hidden {
    display: none;
}

.settings-panel-toggle-btn i {
    writing-mode: horizontal-tb;
    font-size: 16px;
}

.settings-panel-toggle-btn span {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .session-editor-content.full-width {
        grid-template-columns: 250px 1fr 0px;
    }
}

@media (max-width: 992px) {
    .settings-panel.collapsed {
        display: none;
    }
    
    .session-editor-content.full-width {
        grid-template-columns: 1fr;
    }
}

.btn-icon {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-icon:hover {
    background: #f0f0f0;
    color: var(--secondary);
}

/* Cartes d'événements - effet hover */
[onclick*="viewEventDetails"] {
    position: relative;
}

[onclick*="viewEventDetails"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Boutons de type d'événement dans le modal */
#eventTypeModal button.btn:hover {
    border-color: var(--secondary) !important;
    background: #f8fafa !important;
}

/* Badges de compteur */
#selectedAthletesCount,
#selectedAthletesCountComp,
#selectedGroupsCount,
#selectedGroupsCountComp {
    min-width: 20px;
    text-align: center;
}

/* Liste de sélection d'athlètes/groupes */
#athletesList label:hover,
#groupsList label:hover {
    background: #f8f9fa;
    border-color: var(--secondary) !important;
}

#athletesList label input[type="checkbox"]:checked + div,
#groupsList label input[type="checkbox"]:checked + div {
    color: var(--secondary);
}

/* Animation pour les inputs de fichier */
input[type="file"] {
    padding: 10px !important;
}

/* Responsive */
@media (max-width: 768px) {
    /* Ajuster l'affichage des cartes d'événements sur mobile */
    [onclick*="viewEventDetails"] > div {
        flex-direction: column;
    }
    
    [onclick*="viewEventDetails"] > div > div:first-child {
        width: 100%;
        justify-content: center;
    }
    
    /* Navigation mensuelle responsive */
    #currentMonthDisplay {
        min-width: auto !important;
        font-size: 16px !important;
    }
}

/* Styles pour les options récurrentes */
#recurringOptions {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

.badge-temps { 
    background: #e3f2fd; 
    color: #1976d2; 
}

.badge-distance { 
    background: #f3e5f5; 
    color: #7b1fa2; 
}

.badge-hauteur { 
    background: #fff3e0; 
    color: #f57c00; 
}

.badge-charge { 
    background: #ffebee; 
    color: #c62828; 
}

.badge-repetitions { 
    background: #e8f5e9; 
    color: #2e7d32; 
}

/* Cartes génériques */
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Boutons icônes */
.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    border-radius: 4px;
}

.btn-icon:hover {
    color: #18534F;
    background: rgba(24, 83, 79, 0.1);
}

/* États vides */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    display: block;
    margin-bottom: 20px;
}

/* Grilles responsives */
@media (max-width: 768px) {
    .exercises-grid,
    .series-grid,
    .rankings-list {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-container {
        flex-direction: column;
    }
    
    .athletes-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #eee;
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .athletes-list {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    animation: slideIn 0.3s ease-out;
}

/* Scrollbar personnalisée */
.exercises-selector::-webkit-scrollbar,
.results-grid-container::-webkit-scrollbar {
    width: 8px;
}

.exercises-selector::-webkit-scrollbar-track,
.results-grid-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.exercises-selector::-webkit-scrollbar-thumb,
.results-grid-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.exercises-selector::-webkit-scrollbar-thumb:hover,
.results-grid-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Tooltips personnalisés */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    margin-bottom: 5px;
    z-index: 1000;
}

/* Loading states */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: "...";
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Success/Error messages améliorés */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 20px;
}

/* Amélioration des inputs */
.form-control:focus {
    outline: none;
    border-color: #18534F;
    box-shadow: 0 0 0 3px rgba(24, 83, 79, 0.1);
}

.form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    .page-header button,
    .filters-bar,
    .session-actions,
    .exercise-actions,
    .btn,
    .nav-item {
        display: none !important;
    }
    
    .page-content {
        padding: 0;
    }
    
    .card,
    .session-card,
    .exercise-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Dark mode (optionnel) */
@media (prefers-color-scheme: dark) {
    .card,
    .session-card,
    .exercise-card {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .badge {
        color: #e0e0e0;
    }
    
    .form-control {
        background: #3d3d3d;
        color: #e0e0e0;
        border-color: #555;
    }
}

/* Accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible pour keyboard navigation */
*:focus-visible {
    outline: 2px solid #18534F;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #18534F;
    outline-offset: 2px;
}


#sessionResultsModal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

#resultsTableContainer {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#resultsTableWrapper {
    flex: 1;
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#resultsTable {
    width: 100%;
    min-width: 800px;
}

/* Scrollbar plus visible */
#resultsTableWrapper::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

#resultsTableWrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#resultsTableWrapper::-webkit-scrollbar-thumb {
    background: #18534F;
    border-radius: 6px;
}

#resultsTableWrapper::-webkit-scrollbar-thumb:hover {
    background: #2d7a73;
}

/* Force scrollbar to always show on Chrome/Safari */
#resultsTableWrapper {
    overflow-x: scroll !important;
    overflow-y: auto;
}

/* ========================================
   SYSTÈME DE TCHAT - Style Facebook Messenger
   ======================================== */

/* Badge de notification sur le bouton tchat */
.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Container principal du tchat */
.chat-container {
    position: fixed;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    resize: both;
    overflow: hidden;
}

/* Mode desktop - fenêtre flottante à droite */
@media (min-width: 769px) {
    .chat-container {
        right: 20px;
        bottom: 0;
        width: 360px;
        height: 500px;
        min-width: 300px;
        min-height: 400px;
        max-width: 800px;
        max-height: 90vh;
        border-radius: 8px 8px 0 0;
    }
    
    .chat-container.minimized {
        height: 56px;
        resize: none;
    }
    
    .chat-container.maximized {
        width: 600px;
        height: 80vh;
    }
}

/* Mode mobile - plein écran */
@media (max-width: 768px) {
    .chat-container {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* Header du tchat */
.chat-header {
    background: linear-gradient(135deg, #18534F 0%, #20635E 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
}
.chat-resize-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 0;
    bottom: 0;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, #ddd 50%);
    z-index: 10;
}

/* Draggable header */
.chat-header {
    cursor: move;
    user-select: none;
}
@media (max-width: 768px) {
    .chat-header {
        border-radius: 0;
    }
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chat-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.chat-header-title {
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.chat-header-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
}

.chat-header-btn:hover {
    background: rgba(255,255,255,0.3);
}



/* Vue liste des conversations */
.chat-list {
    flex: 1;
    overflow-y: auto;
    background: #f5f5f5;
}

.chat-search {
    padding: 12px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.chat-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.chat-search input:focus {
    border-color: #18534F;
}

.chat-new-conversation {
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.chat-new-btn {
    flex: 1;
    padding: 8px 12px;
    background: #18534F;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.chat-new-btn:hover {
    background: #20635E;
}

.chat-conversations {
    background: white;
}

.chat-conversation-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    position: relative;
}

.chat-conversation-item:hover {
    background: #f5f5f5;
}

.chat-conversation-item.unread {
    background: #f0f8ff;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #18534F;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-conversation-info {
    flex: 1;
    min-width: 0;
}

.chat-conversation-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.chat-conversation-preview {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-conversation-item.unread .chat-conversation-preview {
    font-weight: 600;
    color: #333;
}

.chat-conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.chat-conversation-time {
    font-size: 12px;
    color: #999;
}

.chat-unread-badge {
    background: #18534F;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Vue messages */
.chat-messages-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message {
    display: flex;
    gap: 8px;
    max-width: 70%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.received {
    align-self: flex-start;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-message-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.sent .chat-message-bubble {
    background: #18534F;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.received .chat-message-bubble {
    background: #e4e6eb;
    color: #333;
    border-bottom-left-radius: 4px;
}

.chat-message-sender {
    font-size: 12px;
    color: #666;
    padding: 0 4px;
}

.chat-message-time {
    font-size: 11px;
    color: #999;
    padding: 0 4px;
}

/* Indicateur de saisie */
.chat-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: #e4e6eb;
    border-radius: 18px;
    width: fit-content;
}

.chat-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: typing 1.4s infinite;
}

.chat-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Zone de saisie */
.chat-input-container {
    background: white;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-input-wrapper {
    flex: 1;
    position: relative;
}

.chat-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    resize: none;
    max-height: 100px;
    overflow-y: auto;
    font-family: inherit;
}

.chat-input:focus {
    border-color: #18534F;
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    background: #18534F;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: #20635E;
}

.chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Modal nouveau tchat */
.chat-new-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.chat-new-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-new-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-new-modal-title {
    font-size: 18px;
    font-weight: 600;
}

.chat-new-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.chat-new-modal-close:hover {
    background: #f0f0f0;
}

.chat-new-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-new-section {
    margin-bottom: 24px;
}

.chat-new-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.chat-user-list, .chat-group-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-user-item, .chat-group-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-user-item:hover, .chat-group-item:hover {
    background: #f5f5f5;
}

.chat-user-item .chat-avatar, .chat-group-item .chat-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.chat-user-info, .chat-group-info {
    flex: 1;
}

.chat-user-name, .chat-group-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.chat-user-email {
    font-size: 12px;
    color: #666;
}

/* États vide */
.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.chat-empty i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.chat-empty-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.chat-empty-subtext {
    font-size: 14px;
}

/* Scrollbar custom */
.chat-messages-container::-webkit-scrollbar,
.chat-list::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-container::-webkit-scrollbar-track,
.chat-list::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb,
.chat-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover,
.chat-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Animation d'ouverture */
@keyframes chatSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (min-width: 769px) {
    .chat-container {
        animation: chatSlideUp 0.3s ease;
    }
}

/* Classe pour cacher */
.hidden {
    display: none !important;
}




.chat-emoji-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: #666;
}

.chat-emoji-picker {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    font-size: 24px;
    max-width: 300px;
}

.chat-emoji-picker.show {
    display: block;
}

.chat-emoji-picker span {
    cursor: pointer;
    padding: 5px;
    display: inline-block;
}

.chat-emoji-picker span:hover {
    background: #f0f0f0;
    border-radius: 4px;
}

.chat-message-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    /* Support emojis */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.chat-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    resize: none;
    max-height: 100px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* Vue messages */
.chat-messages-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    overflow: hidden;
    min-height: 0;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

/* Scrollbar personnalisée */
.chat-messages-container::-webkit-scrollbar {
    width: 8px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Zone de saisie - FIXÉE EN BAS */
.chat-input-container {
    background: white;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .chat-messages-container {
        padding-bottom: 20px;
    }
    
    .chat-input-container {
        position: sticky;
        bottom: 0;
    }
}

/* Styles pour les items de recherche */
.search-result-item, .search-list-item {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:hover, .search-list-item:hover {
    background: #f5f7fa;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.search-result-name, .search-list-item-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.search-result-info, .search-list-item-info {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.search-list-item-count {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.search-list-item-date {
    font-size: 11px;
    color: #bbb;
}

/* Animation loading */
.search-loading {
    text-align: center;
    padding: 20px;
    color: var(--primary);
    font-size: 14px;
}

/* DASHBOARD STYLES */
.dashboard-container { padding: 20px; max-width: 1400px; margin: 0 auto; }
.dashboard-header { margin-bottom: 5px; }
.dashboard-header h1 { font-size: 28px; margin: 0; color: var(--primary); }
.dashboard-header p { color: #666; margin: 5px 0 0 0; }
.dashboard-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 16px; 
    auto-rows: max-content;
}

.dashboard-section { background: white;max-height: 500px;  border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); padding: 20px; transition: box-shadow 0.3s ease; }
.dashboard-section:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }
.section-header h2 { margin: 0; font-size: 18px; color: var(--primary); display: flex; align-items: center; gap: 0px; }

/* EVENTS */
.events-list { display: flex; flex-direction: column; gap: 12px; }
.event-card { display: flex; gap: 15px; padding: 15px; background: #f9f9f9; border-radius: 8px; border-left: 4px solid var(--primary); transition: all 0.3s ease; }
.event-card:hover { background: #f3f7f6; transform: translateX(5px); }
.event-icon { font-size: 24px; color: var(--primary); display: flex; align-items: center; min-width: 30px; justify-content: center; }
.event-info { flex: 1; min-width: 0; }
.event-info h3 { margin: 0 0 8px 0; font-size: 16px; color: #333; }
.event-date, .event-location, .event-description { margin: 4px 0; font-size: 13px; color: #666; }

/* RESULTS */
.results-list { display: flex; flex-direction: column; gap: 12px; }
.result-card { padding: 12px; background: linear-gradient(135deg, #f9f9f9 0%, #f3f7f6 100%); border-radius: 8px; border-left: 3px solid var(--secondary); }
.result-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.result-header h4 { margin: 0; font-size: 14px; color: #333; }
.result-date { font-size: 12px; color: #999; }
.result-content { display: flex; gap: 15px; align-items: center; }
.result-value { display: flex; align-items: baseline; gap: 8px; }
.result-result { font-weight: bold; font-size: 16px; color: var(--secondary); }
.result-points { font-size: 12px; background: var(--primary); color: white; padding: 2px 8px; border-radius: 4px; }

/* SUGGESTION */
.suggestion-card { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; padding: 25px; border-radius: 12px; text-align: center; }
.suggestion-card p { font-size: 18px; margin: 0 0 20px 0; }

/* NEWS */
.news-feed { display: flex; flex-direction: column; gap: 15px; max-height: 350px; overflow-y: auto; }
.news-item { padding: 12px; background: #f9f9f9; border-radius: 8px; border: 1px solid #e0e0e0; transition: all 0.3s ease; }
.news-item:hover { background: #f3f7f6; border-color: var(--primary); }
.news-image { width: 100%; height: 150px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-item h4 { margin: 0 0 8px 0; font-size: 14px; color: #333; }
.news-item p { margin: 0 0 8px 0; font-size: 13px; color: #666; line-height: 1.4; }
.news-date { display: inline-block; font-size: 12px; color: #999; margin-bottom: 8px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* RECORD */
.record-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.record-info h3 { margin: 0 0 8px 0; font-size: 20px; color: var(--primary); }
.record-discipline { margin: 0 0 15px 0; font-size: 14px; color: #666; }
.record-details { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.record-perf, .record-date, .record-indoor { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #666; }
.record-perf { font-weight: bold; color: var(--secondary); font-size: 16px; }
.record-indoor { background: var(--primary); color: white; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.record-video-container { border-radius: 8px; overflow: hidden; background: #000; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.video-placeholder { color: white; text-align: center; padding: 40px; font-size: 18px; }
.video-placeholder.error { color: #ff6b6b; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .record-card { grid-template-columns: 1fr; }
	.dashboard-header { display: none; }
    .record-video-container { min-height: 200px; }
    .dashboard-header h1 { font-size: 24px; }
    .section-header h2 { font-size: 16px; }
	.page-content > div > h1,
    .page-content > div > header > h1,
    .page-content > div > header > p {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .dashboard-container { padding: 10px; }
    .dashboard-section { padding: 12px; }
}

.record-section { 
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
}

.record-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
}

.record-video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 32px rgba(24, 83, 79, 0.2);
    aspect-ratio: 16/9;
}

.record-video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.record-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.record-main-info {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.record-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
    line-height: 1.2;
}

.record-discipline {
    font-size: 16px;
    color: var(--secondary);
    margin: 8px 0 0 0;
    font-weight: 500;
}

.record-performance {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    color: white;
}

.record-perf-value {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.record-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.record-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.record-label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.record-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .record-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .record-name {
        font-size: 24px;
    }
    
    .record-perf-value {
        font-size: 36px;
    }
    
    .record-info-wrapper {
        padding: 15px;
    }
}

/* EVENTS - ULTRA COMPACT */
.events-list { 
    display: flex; 
    flex-direction: column; 
    gap: 6px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}

.events-list::-webkit-scrollbar {
    width: 5px;
}

.events-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.events-list::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 10px;
}

.events-list::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.event-card { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: white;
    border-radius: 6px;
    border-left: 5px solid #4a90e2;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.event-card:hover { 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateX(2px);
}

.event-card.event-competition {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.12) 0%, rgba(231, 76, 60, 0.04) 100%);
}

.event-card.event-training {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.12) 0%, rgba(39, 174, 96, 0.04) 100%);
}

.event-main {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.event-date-time {
    text-align: left;
    font-size: 11px;
    line-height: 1.2;
}

.event-date-big {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.event-time {
    font-size: 10px;
    color: #999;
    margin-top: 1px;
}

.event-details-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.event-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-location {
    margin: 1px 0 0 0;
    font-size: 9px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    flex-shrink: 0;
}

.event-participants-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 35px;
}

.participants-label {
    font-size: 10px;
    color: #999;
    font-weight: 600;
    min-width: 10px;
}

.participants-avatars {
    display: flex;
    align-items: center;
}

.avatar-mini {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 700;
    color: white;
    margin-left: -6px;
    border: 1.5px solid white;
}

.avatar-mini:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 700;
    background: #999;
    color: white;
    margin-left: -6px;
    border: 1.5px solid white;
}

.event-actions {
    display: flex;
    gap: 4px;
}




@media (max-width: 768px) {
    .events-list {
        max-height: 250px;
    }
    
    .event-main {
        grid-template-columns: 1fr;
    }
}

.suggestion-section {
    grid-column: 1 / -1;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.suggestion-grid::-webkit-scrollbar {
    width: 5px;
}

.suggestion-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.suggestion-grid::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.suggestion-grid::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.athlete-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.athlete-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(24, 83, 79, 0.15);
    transform: translateY(-4px);
}

.athlete-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.athlete-info {
    flex: 1;
    min-width: 0;
}

.athlete-name {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.athlete-vma, .athlete-age {
    margin: 0;
    font-size: 10px;
    color: #999;
    line-height: 1.3;
}

.athlete-arrow {
    margin-top: 8px;
    font-size: 12px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.athlete-card:hover .athlete-arrow {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .suggestion-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}



.events-section {
    order: 1;
}

.results-section {
    order: 2;
}



.suggestion-section {
    grid-column: 1 / -1;
    order: 3;
}



/* EVENTS - EN COLONNE UNIQUE */
.events-list { 
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.events-list::-webkit-scrollbar {
    width: 5px;
}

.events-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.events-list::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.events-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.event-card { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: white;
    border-radius: 8px;
    border-left: 5px solid #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    gap: 10px;
}

.event-card:hover { 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateX(3px);
}

.event-card.event-competition {
    border-left-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(102, 126, 234, 0.02) 100%);
}

.event-card.event-competition .event-calendar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-card.event-training {
    border-left-color: #26d0ce;
    background: linear-gradient(135deg, rgba(38, 208, 206, 0.08) 0%, rgba(38, 208, 206, 0.02) 100%);
}

.event-card.event-training .event-calendar {
    background: linear-gradient(135deg, #26d0ce 0%, #1fa89f 100%);
}

.event-calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    flex-shrink: 0;
    padding: 3px;
}

.calendar-top {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
}

.calendar-day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    margin: 1px 0;
}

.calendar-month {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.event-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.event-details-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 2px;
}

.event-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.event-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.event-time {
    font-size: 9px;
    color: #666;
    white-space: nowrap;
    font-weight: 500;
}

.event-location {
    margin: 0;
    font-size: 9px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.event-participants-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 35px;
}

.participants-label {
    font-size: 10px;
    color: #999;
    font-weight: 600;
    min-width: 10px;
}

.participants-avatars {
    display: flex;
    align-items: center;
}

.avatar-mini {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 700;
    color: white;
    margin-left: -6px;
    border: 1.5px solid white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-mini:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 700;
    background: #bbb;
    color: white;
    margin-left: -6px;
    border: 1.5px solid white;
}

.event-actions {
    display: flex;
    gap: 4px;
}



/* RESULTS */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.results-list::-webkit-scrollbar {
    width: 5px;
}

.results-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.results-list::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.results-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.dashboard-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px; 
    auto-rows: max-content;
}

.events-section {
    order: 1;
    grid-column: 1;
}

.results-section {
    order: 2;
    grid-column: 2;
}

.news-section {
    order: 5;
  }
.competitions-section {
    /* Ajoute order pour le placer après results-section */
    order: 4;
}
.suggestion-section {
    grid-column: 1 / -1;
    order: 3;
}

.record-section {
    grid-column: 1;
    order: 6;
}

/* EVENTS */
.events-list { 
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.events-list::-webkit-scrollbar {
    width: 5px;
}

.events-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.events-list::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.events-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* RESULTS */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.results-list::-webkit-scrollbar {
    width: 5px;
}

.results-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.results-list::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.results-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* NEWS */
.news-feed { 
    display: flex; 
    flex-direction: column; 
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.news-feed::-webkit-scrollbar {
    width: 5px;
}

.news-feed::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.news-feed::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.news-feed::-webkit-scrollbar-thumb:hover {
    background: #999;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .events-section {
        grid-column: 1;
    }
    
    .results-section {
        grid-column: 2;
    }
    
    .news-section {
        grid-column: 2 / -1;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .events-section, .results-section, .news-section {
        grid-column: 1 !important;
    }
    
    .events-list, .results-list, .news-feed {
        max-height: 250px;
    }
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.results-table thead {
    background: linear-gradient(135deg, #185353 0%, #1fa89f 100%);
    color: white;
    position: sticky;
    top: 0;
}

.results-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: white;
}

.results-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
    height: 44px;
}

.results-table tbody tr:hover {
    background-color: rgba(24, 83, 83, 0.04);
}

.results-table tbody tr:nth-child(even) {
    background-color: rgba(24, 83, 83, 0.02);
}

.results-table td {
    padding: 12px 10px;
    color: #333;
    vertical-align: middle;
}

.date-cell {
    font-weight: 700;
    color: #185353;
    font-size: 11px;
    width: 70px;
}

.discipline-cell {
    text-align: left;
    width: 140px;
}

.discipline-badge {
    display: inline-block;
    background: linear-gradient(135deg, #26d0ce 0%, #1fa89f 100%);
    color: white;
    padding: 7px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(26, 168, 159, 0.2);
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.discipline-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(26, 168, 159, 0.3);
}
	
	.results-table-wrapper {
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    display: block;
}

.results-table thead {
    background: linear-gradient(135deg, #185353 0%, #1fa89f 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}
.dashboard-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px; 
    auto-rows: max-content;
}

.events-section {
    order: 1;
    grid-column: 1;
}

.results-section {
    order: 2;
    grid-column: 2 / 4;
}


.suggestion-section {
    grid-column: 1 / -1;
    order: 3;
}



@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .events-section {
        grid-column: 1;
    }
    
    .results-section {
        grid-column: 2;
    }
    
    .news-section {
        grid-column: 2 / -1;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .events-section, .results-section, .news-section {
        grid-column: 1 !important;
    }
}

.results-table thead {
    display: none;
}

.results-table-wrapper {
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    display: block;
}

.results-table-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.results-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.results-table-wrapper::-webkit-scrollbar-thumb {
    background: #1fa89f;
    border-radius: 8px;
}

.results-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #185353;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 500px;
}

.results-table thead {
    display: none;
}

.results-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
    height: 44px;
}

.results-table tbody tr:hover {
    background-color: rgba(24, 83, 83, 0.04);
}

.results-table tbody tr:nth-child(even) {
    background-color: rgba(24, 83, 83, 0.02);
}

.results-table td {
    padding: 12px 10px;
    color: #333;
    vertical-align: middle;
    white-space: nowrap;
}

.date-cell {
    font-weight: 700;
    color: #185353;
    font-size: 11px;
    width: 70px;
}

.discipline-cell {
    text-align: left;
    width: 140px;
}

.discipline-badge {
    display: inline-block;
    background: linear-gradient(135deg, #26d0ce 0%, #1fa89f 100%);
    color: white;
    padding: 7px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(26, 168, 159, 0.2);
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.discipline-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(26, 168, 159, 0.3);
}

.result-cell {
    color: #185353;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.5px;
    width: 100px;
}

.athlete-cell {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    width: 120px;
}

.competition-cell {
    color: #666;
    font-size: 11px;
    font-weight: 500;
    width: 160px;
}

@media (max-width: 1024px) {
    .results-table th, .results-table td {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .result-cell {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .results-section {
        grid-column: 1 / -1;
    }
    
    .results-table {
        font-size: 10px;
        min-width: 600px;
    }
    
    .results-table th, .results-table td {
        padding: 8px 6px;
    }
    
    .result-cell {
        font-size: 12px;
    }
    
    .date-cell {
        width: 60px;
    }
    
    .discipline-cell {
        width: 120px;
    }
    
    .discipline-badge {
        padding: 5px 12px;
        font-size: 10px;
    }
    
    .result-cell {
        width: 80px;
    }
    
    .athlete-cell {
        width: 100px;
    }
    
    .competition-cell {
        width: 140px;
    }
    
    /* Scrollbar horizontal visible sur mobile */
    .results-table-wrapper {
        overflow-x: auto;
        max-height: 300px;
    }
    
    .results-table-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
}

@media (max-width: 768px) {
    .results-section {
        grid-column: 1 / -1;
        padding: 12px;
    }
    
    .results-table-wrapper {
        overflow-x: auto;
        max-height: 300px;
        margin: 0;
        width: calc(100vw - 24px);
    }
    
    .results-table {
        font-size: 9px;
        min-width: auto;
        width: auto;
    }
    
    .results-table td {
        padding: 6px 4px;
        white-space: nowrap;
        font-size: 9px;
    }
    
    .date-cell {
        width: 50px;
        padding: 6px 3px;
        font-size: 9px;
    }
    
    .discipline-cell {
        width: 90px;
        padding: 6px 3px;
    }
    
    .discipline-badge {
        padding: 4px 8px;
        font-size: 9px;
        border-radius: 15px;
    }
    
    .result-cell {
        width: 60px;
        font-size: 11px;
        padding: 6px 3px;
    }
    
    .athlete-cell {
        width: 80px;
        font-size: 9px;
        padding: 6px 3px;
    }
    
    .competition-cell {
        width: 100px;
        font-size: 8px;
        padding: 6px 3px;
    }
    
    .results-table tbody tr {
        height: 36px;
    }
    
    .section-header {
        padding: 10px 0;
    }
    
    .dashboard-section {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .results-table-wrapper {
        width: calc(100vw - 28px);
    }
    
    .results-table td {
        padding: 5px 2px;
        font-size: 8px;
    }
    
    .date-cell {
        width: 45px;
        padding: 5px 2px;
    }
    
    .discipline-badge {
        padding: 3px 6px;
        font-size: 8px;
    }
    
    .result-cell {
        width: 55px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .dashboard-grid {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .dashboard-section {
        overflow-x: hidden;
        padding: 12px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .results-section {
        grid-column: 1 / -1;
        padding: 12px;
        margin: 0;
        overflow: hidden;
    }
    
    .results-table-wrapper {
        overflow-x: auto;
        overflow-y: auto;
        max-height: 300px;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }
    
    .results-table {
        font-size: 9px;
        min-width: 450px;
        width: 100%;
    }
    
    .results-table td {
        padding: 6px 4px;
        white-space: nowrap;
        font-size: 9px;
    }
    
    .date-cell {
        width: 50px;
        padding: 6px 3px;
        font-size: 9px;
    }
    
    .discipline-cell {
        width: 90px;
        padding: 6px 3px;
    }
    
    .discipline-badge {
        padding: 4px 8px;
        font-size: 9px;
        border-radius: 15px;
    }
    
    .result-cell {
        width: 60px;
        font-size: 11px;
        padding: 6px 3px;
    }
    
    .athlete-cell {
        width: 80px;
        font-size: 9px;
        padding: 6px 3px;
    }
    
    .competition-cell {
        width: 100px;
        font-size: 8px;
        padding: 6px 3px;
    }
    
    .results-table tbody tr {
        height: 36px;
    }
    
    .section-header {
        padding: 10px 0;
        margin: 0;
    }
    
    .events-list {
        margin: 0;
        padding-right: 4px;
    }
    
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 0;
    }
    
    .results-table-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .results-table {
        min-width: 400px;
    }
    
    .results-table td {
        padding: 5px 2px;
        font-size: 8px;
    }
    
    .date-cell {
        width: 45px;
    }
    
    .discipline-badge {
        padding: 3px 6px;
        font-size: 8px;
    }
    
    .result-cell {
        width: 55px;
        font-size: 10px;
    }
}
.results-table td {
    padding: 10px 8px;
    color: #333;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 14px;
}

.date-cell {
    font-weight: 700;
    color: white;
    font-size: 12px;
    width: 80px;
    padding: 0;
}

.date-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffc93c 0%, #ffa502 100%);
    color: #333;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(255, 165, 2, 0.25);
    text-align: center;
}

.discipline-cell {
    text-align: left;
    width: 140px;
}

.discipline-badge {
    display: inline-block;
    background: linear-gradient(135deg, #26d0ce 0%, #1fa89f 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(26, 168, 159, 0.2);
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-cell {
    color: #185353;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.5px;
    width: 110px;
}

.athlete-cell {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    width: 130px;
}

.competition-cell {
    color: #666;
    font-size: 12px;
    font-weight: 500;
    width: 170px;
}

.results-table tbody tr {
    height: 48px;
}

@media (max-width: 768px) {
    .results-table td {
        padding: 6px 4px;
        font-size: 12px;
    }
    
    .date-cell {
        font-size: 11px;
        padding: 0;
    }
    
    .date-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .discipline-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .result-cell {
        font-size: 14px;
        padding: 6px 4px;
    }
    
    .athlete-cell {
        font-size: 11px;
        padding: 6px 4px;
    }
    
    .competition-cell {
        font-size: 10px;
        padding: 6px 4px;
    }
    
    .results-table tbody tr {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .results-table td {
        padding: 5px 3px;
        font-size: 11px;
    }
    
    .date-badge {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .discipline-badge {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .result-cell {
        font-size: 13px;
    }
    
    .results-table tbody tr {
        height: 36px;
    }
}

.athlete-cell {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    width: 130px;
    padding: 0 !important;
}

.athlete-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .athlete-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .athlete-badge {
        padding: 5px 10px;
        font-size: 10px;
    }
}



body, html {
    background-color: #F8FAFC !important;
}

main, .main-content, .container, .content {
    background-color: #F8FAFC !important;
}

.dashboard-container, .dashboard-wrapper, .page-wrapper {
    background-color: #F8FAFC !important;
}

#app, .app {
    background-color: #F8FAFC !important;
}





.dashboard-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.dashboard-header h1 {
    font-size: 28px;
    margin: 0;
    color: #1a1a1a;
    font-weight: 700;
}

.dashboard-header p {
    color: #999;
    margin: 5px 0 0 0;
    font-size: 14px;
}

.dashboard-section { 
    background: white; 
    border-radius: 8px; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 16px;
    transition: box-shadow 0.3s ease; 
}

.dashboard-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 16px; 
    border-bottom: none;
    padding-bottom: 0;
}

.section-header h2 { 
    margin: 0; 
    font-size: 16px; 
    color: #1a1a1a;
    display: flex; 
    align-items: center; 
    gap: 8px;
    font-weight: 600;
}

.section-header h2 i {
    color: #185353;
    font-size: 18px;
}


/* RESULTS TABLE - Plus épuré */
.results-table tbody tr:nth-child(even) {
    background-color: transparent;
}

.results-table tbody tr:hover {
    background-color: #f9f9f9;
}

.date-badge {
    background: #f0f0f0;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
}

.discipline-badge {
    background: #e8f4f3;
    color: #185353;
    border: none;
    box-shadow: none;
}

.athlete-badge {
    background: #f0f0f0;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

/* NEWS ITEMS - Plus épuré */
.news-item {
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.news-item:hover {
    background: #f3f3f3;
    border-color: #d0d0d0;
}

.news-item h4 {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 600;
}

.news-item p {
    font-size: 11px;
    color: #666;
}

.date-cell {
    font-weight: 700;
    color: #666;
    font-size: 12px;
    width: 70px;
    padding: 10px 8px;
}

.date-badge {
    background: transparent;
    color: #185353;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
}

/* Modal responsive */


@media (max-width: 768px) {
    .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    .modal-header {
        flex-shrink: 0;
        padding: 12px 16px;
    }
    
    .modal-header h2 {
        font-size: 16px;
        margin: 0;
    }
    
    .modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 12px 16px;
        max-height: none;
    }
}

/* Jeunes performances - layout mobile */
@media (max-width: 768px) {
    /* Réduire le grid pour mobile */
    .young-performances-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .young-performances-grid > div,
    .young-performances-grid > select,
    .young-performances-grid > input {
        font-size: 12px !important;
        padding: 8px !important;
    }
    
    .young-performances-grid button {
        padding: 8px !important;
        font-size: 12px !important;
    }
}

/* Masquer les headers du grid sur mobile */
@media (max-width: 768px) {
    .young-performances-header {
        display: none;
    }
}

/* Desktop - modal normal */
@media (min-width: 769px) {
    .modal {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    
    .modal-content {
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        max-width: 600px;
        max-height: 80vh;
        width: 90%;
        display: flex;
        flex-direction: column;
    }
}

/* Mobile - modal fullscreen */
@media (max-width: 768px) {
    .modal {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        z-index: 1000 !important;
        padding: 0 !important;
        margin: 0 !important;
		 border-radius: 0 !important;
    }
    
    .modal-content {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
    }
    
    .modal-header {
        flex-shrink: 0;
        padding: 12px;
        border-bottom: 1px solid #eee;
		
    }
    
    .modal-header h2 {
        font-size: 16px;
        margin: 0;
    }
    
    .modal-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 12px;
        max-height: none !important;
    }
}

.modal.hidden {
    display: none !important;
}

.modal.active {
    display: flex !important;
}
  .modal-content {
      
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        max-width: 600px;
        max-height: 80vh;
        width: 90%;
        display: flex;
        flex-direction: column;
    }
/* Jeunes performances - layout mobile */
@media (max-width: 768px) {
    /* Réduire le grid pour mobile */
    .young-performances-grid {
        grid-template-columns: 1.5fr 0.8fr 0.8fr 40px !important;
        gap: 6px !important;
    }
    
    .young-performances-grid > div,
    .young-performances-grid > select,
    .young-performances-grid > input {
        font-size: 11px !important;
        padding: 6px !important;
    }
    
    .young-performances-grid button {
        padding: 6px !important;
        font-size: 11px !important;
    }
}

/* Jeunes performances - styles base */
.young-event-select,
.young-perf {
    font-size: 12px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Jeunes performances - layout mobile */
@media (max-width: 768px) {
    .young-performances-grid {
        grid-template-columns: 1.5fr 0.8fr 0.8fr 40px !important;
        gap: 6px !important;
    }
    
    .young-event-select,
    .young-perf {
        font-size: 11px !important;
        padding: 6px !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
		width : 100px !important;
    }
    
    .young-performances-grid button {
        padding: 6px !important;
        font-size: 11px !important;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; 
   
	z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
	 padding: 0;
    transition: opacity 0.3s ease;
}

/* MODAL - À l'intérieur de l'overlay */
.modal {
	
    border-radius: 8px;

    width: 100%;
    
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    margin: auto;
}

.modal.hidden {
    display: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
    border-radius: 10px 10px 0 0;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    background: white !important;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* MOBILE */
@media (max-width: 768px) {
    .modal-overlay {
        justify-content: flex-start;
        align-items: flex-start;
    }
    .modal-content {
       
        border-radius: 0;
    }
	
    .modal {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }
    
    .modal-header {
		border-radius: 0;
        padding: 12px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 12px;
    }
}



@media (min-width: 768px) {
    button[title="Sauvegarder"] span:last-child {
        display: inline !important;
    }
}

.event-cancelled {
    opacity: 0.5;
    text-decoration: line-through;
}
.badge-cancelled {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* ========== OBJECTIVES TABS ========== */

.objectives-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.objectives-list {
    display: grid;
    gap: 15px;
}

.objective-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.objective-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.objective-card h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
}

.objective-card-subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.objective-card-target {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.objective-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.status-active {
    background: #e3f2fd;
    color: #1976d2;
}

.status-completed {
    background: #e8f5e9;
    color: #388e3c;
}

.status-failed {
    background: #ffebee;
    color: #c62828;
}

.status-abandoned {
    background: #f3e5f5;
    color: #7b1fa2;
}

@media (max-width: 768px) {
    .objectives-tabs {
        gap: 5px;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .objective-card {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}
.selection-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-height: 300px;
    overflow-y: auto;
}

.selection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selection-item:hover {
    border-color: var(--primary);
    background: rgba(24, 83, 79, 0.02);
}

.selection-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.selection-item input[type="checkbox"]:checked ~ label {
    color: var(--primary);
    font-weight: 600;
}

.selection-item label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.selection-item.checked {
    border-color: var(--primary);
    background: rgba(24, 83, 79, 0.08);
}

.selection-list-with-values {
    display: grid;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-height: 300px;
    overflow-y: auto;
}

.selection-item-with-values {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.selection-item-with-values:hover {
    border-color: var(--primary);
    background: rgba(24, 83, 79, 0.02);
}

.selection-item-with-values input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.selection-item-with-values label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.selection-item-with-values input[type="number"] {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.selection-item-with-values.checked {
    border-color: var(--primary);
    background: rgba(24, 83, 79, 0.08);
}

.selection-list-simple {
    display: grid;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-height: 300px;
    overflow-y: auto;
}

.selection-item-simple {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selection-item-simple:hover {
    border-color: var(--primary);
    background: rgba(24, 83, 79, 0.02);
}

.selection-item-simple input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.selection-item-simple label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.selection-item-simple.checked {
    border-color: var(--primary);
    background: rgba(24, 83, 79, 0.08);
}
.tab-btn {
    padding: 10px 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.management-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 8px;
}

.management-item input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.management-item button {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.management-item button:hover {
    background: #c82333;
}
#management-athletes-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

#management-athletes-list::-webkit-scrollbar {
    width: 8px;
}

#management-athletes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#management-athletes-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#management-athletes-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#add-athletes-list,
#add-groups-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    background: white;
}

#add-athletes-list::-webkit-scrollbar,
#add-groups-list::-webkit-scrollbar {
    width: 8px;
}

#add-athletes-list::-webkit-scrollbar-track,
#add-groups-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#add-athletes-list::-webkit-scrollbar-thumb,
#add-groups-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#add-athletes-list::-webkit-scrollbar-thumb:hover,
#add-groups-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#add-athletes-list label,
#add-groups-list label {
    display: flex;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    border-bottom: 1px solid #eee;
}

#add-athletes-list label:hover,
#add-groups-list label:hover {
    background: #f9f9f9;
}

.chat-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Messages du chat */
.chat-message {
    display: flex;
    margin-bottom: 12px;
    gap: 8px;
    align-items: flex-end;
}

/* Messages reçus (à gauche) */
.chat-message.received {
    justify-content: flex-start;
}

.chat-message.received .chat-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #18534F;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-message.received .chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 70%;
}

.chat-message.received .chat-message-bubble {
    background: #e8e8e8;
    color: #333;
}

/* Messages envoyés (à droite) */
.chat-message.sent {
    justify-content: flex-end;
}

.chat-message.sent .chat-message-avatar {
    display: none;
}

.chat-message.sent .chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 70%;
    align-items: flex-end;
}

.chat-message.sent .chat-message-sender {
    display: none;
}

.chat-message.sent .chat-message-bubble {
    background: #18534F;
    color: white;
}

/* Contenu du message */
.chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-message-sender {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 0 8px;
}

.chat-message-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.chat-message-time {
    font-size: 11px;
    color: #999;
    padding: 0 8px;
}

.chat-message.received .chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
}

.chat-message.sent .chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
    align-items: flex-end;
}

.chat-message-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    white-space: normal;
}

.btn-attend {
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-attend:hover {
    background-color: #8e44ad;
}

.btn-attend.confirmed {
    background-color: #28a745;
}

.btn-absent {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-absent:hover {
    background-color: #e67e22;
}

.btn-absent.declined {
    background-color: #dc3545;
}

@media (max-width: 1024px) {
                        #filtersContainer {
                            grid-template-columns: 1fr 1fr !important;
                        }
                    }
                    
                    @media (max-width: 768px) {
                        #filtersContainer {
                            grid-template-columns: 1fr 1fr !important;
                            gap: 12px !important;
                        }
                        #filtersContainer > div:nth-child(3) {
                            grid-column: 1 / 2;
                        }
                        #filtersContainer > div:nth-child(4) {
                            grid-column: 2 / 3;
                        }
                    }
                    
                    @media (max-width: 480px) {
                        #filtersContainer {
                            grid-template-columns: 1fr !important;
                            gap: 10px !important;
                        }
                        #filtersContainer > div:nth-child(3),
                        #filtersContainer > div:nth-child(4) {
                            grid-column: 1 / -1 !important;
                        }
                        #filtersContainer > div:nth-child(4) {
                            display: flex;
                            gap: 8px;
                        }
                    }
					
					@media (max-width: 1024px) {
                        #exerciseFiltersContainer {
                            grid-template-columns: 1fr 1fr 1fr !important;
                            gap: 12px !important;
                        }
                        #exerciseFiltersContainer > div:nth-child(4),
                        #exerciseFiltersContainer > div:nth-child(5) {
                            grid-column: auto;
                        }
                    }
                    
                    @media (max-width: 768px) {
                        #exerciseFiltersContainer {
                            grid-template-columns: 1fr 1fr !important;
                            gap: 12px !important;
                        }
                        #exerciseFiltersContainer > div:nth-child(1) {
                            grid-column: 1 / -1;
                        }
                        #exerciseFiltersContainer > div:nth-child(4),
                        #exerciseFiltersContainer > div:nth-child(5) {
                            grid-column: auto;
                        }
                    }
                    
                    @media (max-width: 480px) {
                        #exerciseFiltersContainer {
                            grid-template-columns: 1fr !important;
                            gap: 10px !important;
                        }
                        #exerciseFiltersContainer > div:nth-child(4),
                        #exerciseFiltersContainer > div:nth-child(5) {
                            grid-column: 1 / -1 !important;
                            width: 100%;
                        }
                        #exerciseFiltersContainer > div:nth-child(4) {
                            display: flex;
                            gap: 8px;
                        }
                        #exerciseFiltersContainer > div:nth-child(4) button,
                        #exerciseFiltersContainer > div:nth-child(5) button {
                            flex: 1;
                        }
                    }
					
			
}
@media (min-width: 768px) {
    .athlete-icon {
        display: flex !important;
    }
    .favorite-star {
        display: none !important;
    }
    .favorite-btn {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .athlete-icon {
        display: none !important;
    }
    .favorite-star {
        display: inline-block !important;
        position: relative;
    }
    .favorite-btn {
        display: none !important;
    }
}

.statistics-container { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.stats-tab { transition: all 0.3s ease; }
.stats-tab:hover { background: rgba(24, 83, 79, 0.05); }

@media (max-width: 768px) {
    .stats-header { padding: 20px; flex-direction: column; text-align: center; }
    .stats-tab { padding: 12px 15px; font-size: 13px; }
    .stats-tab i { display: none; }
}

.pwa-install-banner {
    position: fixed;
    bottom: 70px;
    left: 10px;
    right: 10px;
    background: linear-gradient(135deg, #18534F 0%, #2a7a74 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

.pwa-install-banner.hidden {
    display: none;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-install-content {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 12px;
}

.pwa-install-icon img {
    border-radius: 10px;
}

.pwa-install-text {
    flex: 1;
    color: white;
}

.pwa-install-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.pwa-install-text p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
}

.pwa-close-btn:hover {
    opacity: 1;
}

/* iOS Modal */
.pwa-ios-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pwa-ios-modal.hidden {
    display: none;
}

.pwa-ios-content {
    background: white;
    border-radius: 16px;
    padding: 25px;
    max-width: 320px;
    text-align: center;
    position: relative;
}

.pwa-ios-content h3 {
    margin: 0 0 15px 0;
    color: #18534F;
}

.pwa-ios-content p {
    margin-bottom: 15px;
    color: #666;
}

.pwa-ios-content ol {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 20px;
}

.pwa-ios-content li {
    margin-bottom: 10px;
    color: #333;
}

.pwa-ios-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

@media (min-width: 769px) {
    .pwa-install-banner {
        display: none !important;
    }
}

/* ========== BILANS DASHBOARD - FIX MOBILE ========== */
.bilans-section {
    grid-column: span 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

@media (max-width: 768px) {
    /* Forcer toutes les sections à prendre 1 colonne sur mobile */
    .dashboard-section {
        grid-column: span 1 !important;
    }
    
    /* Bilans compact sur mobile */
    .bilans-section {
        padding: 12px !important;
    }
    
    .bilans-section .section-header h2 {
        font-size: 14px !important;
    }
    
    .bilan-item {
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    
    .bilan-item > div:first-child {
        min-width: 28px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
    
    .bilan-item > div:nth-child(2) > div:first-child {
        font-size: 11px !important;
    }
    
    .bilan-item > div:nth-child(2) > div:last-child {
        font-size: 10px !important;
    }
    
    .bilan-item > div:last-child {
        font-size: 12px !important;
    }
    
    /* News section sur mobile - 1 colonne */
    .news-section {
        grid-column: span 1 !important;
    }
    
    /* Record section sur mobile - 1 colonne */
    .record-section {
        grid-column: span 1 !important;
    }
    
    .record-content {
        grid-template-columns: 1fr !important;
    }
    
    .record-video-wrapper iframe {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .bilan-item {
        padding: 6px 8px !important;
    }
    
    .bilan-item > div:first-child {
        min-width: 24px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }
}