/* Styles CSS pour Ping Team Manager */
/* Interface utilisateur responsive et moderne */
/* Créé le 4 janvier 2026 */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 0.125rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand .logo {
    height: 60px;
    width: auto;
    max-width: 100px;
    margin-left: 20px;
}

.navbar-menu {
    display: flex;
    gap: 1rem;
}

.navbar-burger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #ecf0f1;
    transition: all 0.3s ease;
    transform-origin: center;
}

.navbar-burger.is-active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-burger.is-active .burger-line:nth-child(2) {
    opacity: 0;
}

.navbar-burger.is-active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-link {
    color: #bdc3c7;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #34495e;
    color: #ecf0f1;
}

/* Pastille de notification */
.notification-badge {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.5rem;
    min-width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive - Menu burger pour mobile */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        justify-content: space-between;
        align-items: center;
        min-height: 70px; /* Ajusté pour le logo de 60px */
    }
    
    .navbar-brand {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .navbar-brand .logo {
        height: 50px; /* Réduit pour mobile */
        margin-left: 0;
    }
    
    .navbar-burger {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: #2c3e50;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 2rem 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        z-index: 1000;
    }
    
    .navbar-menu.is-active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        text-align: left;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* En-têtes de page */
.page-header {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.page-actions {
    margin-top: 1rem;
}

/* Cartes et sections */
.section-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.section-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* États vides */
.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Formulaires */
.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-connexion {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-help {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

/* Messages */
.message-succes,
.message-erreur,
.message-info {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message-succes {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-erreur {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Tableaux */
.joueurs-table-container {
    overflow-x: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.joueurs-table {
    width: 100%;
    border-collapse: collapse;
}

.joueurs-table th,
.joueurs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.joueurs-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.joueurs-table tr:hover {
    background-color: #f8f9fa;
}

.classement-cell {
    font-weight: 600;
    color: #e74c3c;
}

.actions-cell {
    white-space: nowrap;
}

/* Grilles */
.clubs-grid,
.phases-container,
.journees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.club-card,
.phase-card,
.journee-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.club-card:hover,
.phase-card:hover,
.journee-card:hover {
    transform: translateY(-2px);
}

/* Cartes de club */
.club-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.club-header h4 {
    color: #2c3e50;
    margin: 0;
}

.club-role {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.role-createur {
    background-color: #d4edda;
    color: #155724;
}

.role-membre {
    background-color: #cce5ff;
    color: #004085;
}

.club-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #3498db;
}

.stat-label {
    font-size: 0.875rem;
    color: #7f8c8d;
}

.club-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.club-info {
    font-size: 0.875rem;
    color: #7f8c8d;
}

.club-id {
    margin-bottom: 0.5rem;
}

.btn-copy {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 0.5rem;
}

/* Cartes de phase */
.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.phase-header h3 {
    color: #2c3e50;
    margin: 0;
}

.phase-actions {
    display: flex;
    gap: 0.5rem;
}

.phase-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #7f8c8d;
}

/* Cartes de journée */
.journee-card {
    border-left: 4px solid #3498db;
}

.journee-card.planifiee {
    border-left-color: #95a5a6;
}

.journee-card.en_cours {
    border-left-color: #f39c12;
}

.journee-card.terminee {
    border-left-color: #27ae60;
}

.journee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.journee-header h4 {
    color: #2c3e50;
    margin: 0;
}

.journee-statut {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.statut-planifiee {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.statut-en_cours {
    background-color: #fff3cd;
    color: #856404;
}

.statut-terminee {
    background-color: #d4edda;
    color: #155724;
}

.journee-info {
    margin-bottom: 1rem;
}

.journee-date {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.journee-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #7f8c8d;
}

.journee-actions {
    display: flex;
    gap: 0.5rem;
}

/* Présences */
.joueurs-presences {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.presence-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.presence-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.presence-label input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.joueur-info {
    flex: 1;
}

/* Contraintes */
.contraintes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.equipe-contrainte {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.equipe-contrainte h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.joueurs-contraintes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contrainte-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    cursor: pointer;
}

.contrainte-label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.equipe-actions {
    margin-top: 1rem;
    text-align: center;
}

/* Propositions d'équipes */
.propositions-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.proposition-card {
    background-color: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
}

.proposition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.proposition-header h4 {
    color: #2c3e50;
    margin: 0;
}

.equipes-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.equipe-display {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e1e8ed;
}

.equipe-display h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.equipe-adverse-input {
    margin-bottom: 1rem;
}

.equipe-adverse-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.equipe-adverse-input input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
}

.equipe-display ul {
    list-style: none;
    padding: 0;
}

.equipe-display li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Équipes actuelles */
.equipes-actuelles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.equipe-actuelle {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.equipe-actuelle h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.equipe-actuelle ul {
    list-style: none;
    padding: 0;
}

.equipe-actuelle li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #3498db;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.stat-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

/* Variations de couleur pour les cartes de statistiques */
.stat-card-primary {
    border-left-color: #3498db;
}

.stat-card-primary .stat-icon {
    color: #3498db;
}

.stat-card-success {
    border-left-color: #27ae60;
}

.stat-card-success .stat-icon {
    color: #27ae60;
}

.stat-card-info {
    border-left-color: #17a2b8;
}

.stat-card-info .stat-icon {
    color: #17a2b8;
}

.stat-card-warning {
    border-left-color: #f39c12;
}

.stat-card-warning .stat-icon {
    color: #f39c12;
}

.stat-card-danger {
    border-left-color: #e74c3c;
}

.stat-card-danger .stat-icon {
    color: #e74c3c;
}

.stat-card-secondary {
    border-left-color: #95a5a6;
}

.stat-card-secondary .stat-icon {
    color: #95a5a6;
}

/* Actions rapides */
.actions-section h3 {
    margin-bottom: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.action-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.action-text h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.action-text p {
    color: #7f8c8d;
    font-size: 0.875rem;
}

/* Liens supplémentaires */
.liens-supplementaires {
    text-align: center;
    margin-top: 2rem;
}

.liens-supplementaires a {
    color: #3498db;
    text-decoration: none;
}

.liens-supplementaires a:hover {
    text-decoration: underline;
}

/* Pied de page */
footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header {
        padding: 1rem;
    }

    .form-row {
        flex-direction: column;
    }

    .joueurs-presences,
    .contraintes-grid,
    .equipes-display,
    .equipes-actuelles {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        flex-direction: column;
        text-align: center;
    }

    .club-actions,
    .phase-actions,
    .journee-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }
}
/* Badges de cat�gorie des joueurs */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.badge-competition {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.badge-loisir {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* Styles pour les tournois */
.tournois-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tournoi-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tournoi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tournoi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.tournoi-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.tournoi-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.tournoi-info {
    margin: 15px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-label {
    font-weight: 500;
    color: #34495e;
}

.info-value {
    color: #7f8c8d;
}

.tournoi-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.tournoi-actions .btn,
.tournoi-actions button {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.badge-non_lance {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.badge-en_cours {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #17a2b8;
}

.badge-termine {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

/* Table des matchs */
.matchs-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.matchs-table th,
.matchs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.matchs-table th {
    background-color: #34495e;
    color: white;
    font-weight: 600;
}

.matchs-table tr:hover {
    background-color: #f8f9fa;
}

.score-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.match-termine {
    background-color: #d4edda;
}

.match-en-cours {
    background-color: #fff3cd;
}

/* Onglets pour les rondes */
.tabs-container {
    margin-top: 20px;
}

.tabs-header {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #e1e8ed;
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tab-button {
    padding: 12px 24px;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background-color: #f8f9fa;
}

.tab-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.8em;
}

.tab-badge.badge-termine {
    background-color: #27ae60;
    color: white;
}

.tab-badge.badge-en_cours {
    background-color: #f39c12;
    color: white;
}

.tab-badge.badge-non_lance {
    background-color: #95a5a6;
    color: white;
}

.tabs-content {
    background: white;
    padding: 20px;
    border: 1px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ronde-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e8ed;
}

.ronde-info h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Classement */
.classement-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.classement-table th,
.classement-table td {
    padding: 15px;
    text-align: left;
}

.classement-table th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.classement-table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.classement-table tbody tr:hover {
    background-color: #e9ecef;
}

.classement-position {
    font-weight: bold;
    font-size: 1.2rem;
    color: #2c3e50;
    text-align: center;
    width: 60px;
}

.classement-podium-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.classement-podium-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #000;
}

.classement-podium-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #d4a574 100%);
    color: #000;
}

.points-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    background-color: #3498db;
    color: white;
}

/* Styles pour les modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Section Tournois Dashboard */
.tournois-section {
    margin-top: 2rem;
}

.tournois-section h3 {
    margin-bottom: 1.5rem;
}

.tournoi-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.tournoi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e8ed;
}

.tournoi-header h4 {
    margin: 0;
    color: #2c3e50;
}

.tournoi-statut {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.statut-configuration {
    background-color: #f39c12;
    color: white;
}

.statut-en_cours {
    background-color: #27ae60;
    color: white;
}

.tournoi-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.matchs-joueur {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.matchs-joueur h5 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 0.95rem;
}

.match-rapide {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #3498db;
}

.match-rapide:last-child {
    margin-bottom: 0;
}

.match-players {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.player-name {
    flex: 1;
    text-align: left;
}

.vs {
    padding: 0 1rem;
    color: #95a5a6;
    font-weight: 500;
}

.match-phase {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.75rem;
}

.match-score-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.no-matchs {
    color: #7f8c8d;
    font-style: italic;
    margin: 1rem 0;
}

.tournoi-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e8ed;
}

.tournois-link {
    text-align: center;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .tournoi-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tournoi-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .match-players {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .player-name {
        text-align: center;
    }
    
    .match-score-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .score-inputs {
        justify-content: center;
    }
}

/* Responsive pour la page associer_joueur.php */
@media (max-width: 768px) {
    /* Formulaire d'association */
    .card form .form-group div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
    }
    
    .card form .form-group div[style*="display: flex"] button {
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    /* Table des joueurs associés */
    .joueurs-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .joueurs-table {
        min-width: 500px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .joueurs-table th,
    .joueurs-table td {
        padding: 6px 8px;
        white-space: nowrap;
    }
    
    .joueurs-table th {
        background-color: #f8f9fa;
        font-weight: 600;
        border-bottom: 2px solid #dee2e6;
    }
    
    .joueurs-table td {
        border-bottom: 1px solid #dee2e6;
    }
    
    /* Actions dans la table - version mobile améliorée */
    .actions-cell {
        min-width: 160px;
    }
    
    .actions-cell .btn {
        display: inline-block;
        width: auto;
        margin: 0 2px 2px 0;
        font-size: 0.75rem;
        padding: 4px 6px;
        white-space: nowrap;
    }
    
    .actions-cell form {
        display: inline-block;
        margin: 0;
    }
    
    /* Transformation du tableau en cartes sur mobile */
    .joueurs-table thead {
        display: none;
    }
    
    .joueurs-table tbody tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .joueurs-table tbody td {
        border: none;
        padding: 5px 0;
        display: block;
        width: 100%;
    }
    
    .joueurs-table tbody td:not(.actions-cell) {
        font-weight: 500;
        color: #495057;
    }
    
    .joueurs-table tbody td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: #2c3e50;
        display: inline-block;
        min-width: 80px;
    }
    
    .joueurs-table tbody td:first-child:before {
        content: "Nom: ";
    }
    
    .joueurs-table tbody td:nth-child(2):before {
        content: "Prénom: ";
    }
    
    .joueurs-table tbody td:nth-child(3):before {
        content: "Club: ";
    }
    
    .joueurs-table tbody td.actions-cell {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #dee2e6;
        text-align: center;
    }
    
    .joueurs-table tbody td.actions-cell:before {
        display: none;
    }
    
    /* Messages d'information */
    .info-message {
        text-align: center;
        padding: 20px;
    }
    
    .info-message p {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
}

/* Responsive ultra-mobile pour associer_joueur.php */
@media (max-width: 480px) {
    .joueurs-table {
        min-width: 100%;
        font-size: 0.8rem;
    }
    
    .joueurs-table tbody tr {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .joueurs-table tbody td:before {
        min-width: 70px;
        font-size: 0.75rem;
    }
    
    .joueurs-table tbody td {
        padding: 3px 0;
    }
    
    .actions-cell {
        margin-top: 8px;
        padding-top: 8px;
    }
    
    .actions-cell .btn {
        font-size: 0.7rem;
        padding: 3px 5px;
        margin: 0 1px 1px 0;
    }
}

/* Responsive pour la page joueurs.php */
@media (max-width: 768px) {
    /* Page header - boutons responsive */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .page-title {
        text-align: center;
    }
    
    .page-title h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .page-title .btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .page-actions {
        text-align: center;
    }
    
    .page-actions .btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
    
    /* Sélecteur de club responsive */
    .card form[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    
    .card form[style*="display: flex"] label {
        margin-bottom: 5px;
        font-size: 0.9rem;
    }
    
    .card form[style*="display: flex"] select {
        width: 100% !important;
        max-width: none !important;
        padding: 10px;
        font-size: 1rem;
    }
    
    .card form[style*="display: flex"] button {
        width: 100% !important;
        padding: 10px;
        margin-top: 10px;
    }
}
