/*
   Ce fichier contient tous les styles pour la page des équipes
   avec une palette de couleurs inspirée de l'Afrique:
   - Or (représentant la richesse et le soleil africain)
   - Vert forêt (représentant la nature et les forêts africaines)
   - Orange terre (représentant la terre et les paysages africains)
*/

/* Variables de couleurs - notre palette de base réutilisée partout */
:root {
  
      --primary-color: #f0c14b;
    --secondary-color: #1a1a1a;
    --accent-color: #8b142b;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --transition: all 0.3s ease;
    --green-color: #4CAF50;
    --red-color: #FF5252;
    --light-green: rgba(76, 175, 80, 0.2);
    --light-red: rgba(255, 82, 82, 0.2);
  /* Rouge transparent */

    --dark-color: #1C1C1C;          /* Noir profond pour les fonds */
    --light-color: #F5F5F5;         /* Blanc cassé pour le texte sur fond foncé */
    --gradient-primary: linear-gradient(135deg, #E8B341, #D35400); /* Dégradé or-orange */
    --gradient-dark: linear-gradient(135deg, #2D4B2D, #1C1C1C);    /* Dégradé vert-noir */
    --text-dark: #333333;           /* Texte foncé */
    --text-light: #FFFFFF;          /* Texte clair */
    --border-color: #E2E2E2;        /* Couleur standard pour les bordures */
}

/* Styles généraux - base pour toute la page */
body {
    padding-top: 0;
    background-color: #f8f9fa;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden; /* Évite les barres de défilement horizontales */
}

/*
   La barre qui reste fixée en haut avec le logo et les liens */
.interactive-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Ombre subtile */
    z-index: 1000; /* Reste au-dessus de tout le reste */
    padding: 10px 0;
}

.interactive-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
}

/* Les éléments de menu dans la barre */
.interactive-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

/* Ligne qui apparaît sous chaque élément quand on passe la souris dessus */
.interactive-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--light-red), var(--light-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Animation de la ligne au survol */
.interactive-item:hover::after {
    transform: scaleX(1);
}

/* Style pour l'élément actif (page courante) */
.interactive-item.active {
    background: linear-gradient(45deg, var(--light-red), var(--light-green));
    color: var(--text-color);
}

/* Style des icônes dans le menu */
.interactive-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

/* Style du texte dans le menu */
.interactive-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Animation au survol des éléments du menu */
.interactive-item:hover {
    background: var(--light-bg);
    transform: translateY(-2px); /* Effet de léger soulèvement */
}

/* Style spécial pour le logo */
#logo-container img {
    border: 3px solid transparent;
    border-radius: 18px;
    background: linear-gradient(120deg, #FF5252 30%, #4CAF50 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: box-shadow 0.4s, border-color 0.4s;
    box-shadow: 0 2px 16px rgba(76, 175, 80, 0.08), 0 2px 8px rgba(255, 82, 82, 0.08);
    padding: 2px;
}

/* Animation du logo au survol */
#logo-container img:hover {
    box-shadow: 0 0 24px 4px #FF5252, 0 0 32px 8px #4CAF50;
    border-color: #FF5252;
}

/* Grande section en haut avec image de fond et titre */
.teams-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('Images/CAN.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

/* Overlay coloré sur l'image de fond pour la teinter */
.teams-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(45, 75, 45, 0.8),   /* Vert forêt transparent */
        rgba(232, 179, 65, 0.8), /* Or transparent */
        rgba(211, 84, 0, 0.8)    /* Orange terre transparent */
    );
    z-index: 1;
}

/* Positionnement du contenu par dessus l'image et l'overlay */
.teams-header .container {
    position: relative;
    z-index: 2;
}

/* Style du titre principal avec animation */
.teams-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

/* Style du sous-titre avec animation */
.teams-header p {
    font-size: 1.4rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

/* Barre avec champ de recherche et filtres */
.filters-section {
    padding: 30px 0;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.filters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary); /* Bordure colorée sur le dessus */
}

.filters-section .form-control,
.filters-section .form-select {
    border-radius: 30px;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters-section .form-control:focus,
.filters-section .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(232, 179, 65, 0.25);
    transform: translateY(-2px); /* Effet de soulèvement subtil */
}

.input-group-text {
    border-radius: 30px 0 0 30px;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--accent-color);
}

.form-select {
    border-radius: 0 30px 30px 0 !important;
    cursor: pointer;
    background-position: right 20px center;
}

/* Style des cartes qui affichent chaque équipe */
.team-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 30px;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
}

/* Animation quand on survole une carte */
.team-card:hover {
    transform: translateY(-10px); /* Effet de soulèvement */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

/* Conteneur pour le drapeau */
.team-card .flag-container {
    width: 100%;
    height: 170px;
    overflow: hidden;
    position: relative;
}

/* Effet de brillance sur le drapeau */
.team-card .flag-container::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 300%;
    background: rgba(255, 255, 255, 0.4);
    top: -100%;
    left: -200px;
    transform: rotate(35deg);
    transition: all 1s ease;
    z-index: 1;
    animation: shimmer 4s infinite;
    pointer-events: none;
}

/* Animation de l'effet de brillance au survol */
.team-card:hover .flag-container::before {
    left: 200%;
}

/* Style de l'image du drapeau */
.team-card .flag-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

/* Zoom sur le drapeau au survol */
.team-card:hover .flag-container img {
    transform: scale(1.05);
}

/* Zone d'information en bas de la carte */
.team-card .team-info {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Style du nom d'équipe */
.team-card .team-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

/* Ligne décorative sous le nom d'équipe */
.team-card .team-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0.3);
    transform-origin: center;
    transition: transform 0.4s ease;
}

/* Animation de la ligne au survol */
.team-card:hover .team-name::after {
    transform: scaleX(1);
}

/* Détails (classement FIFA, participations) */
.team-card .team-details {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Animation des détails au survol */
.team-card:hover .team-details {
    opacity: 1;
}

/* Badge pour indiquer le groupe */
.team-card .team-group {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

/* Animation du badge au survol */
.team-card:hover .team-group {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Forme décorative derrière le badge */
.team-card .team-group::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) rotate(10deg);
    z-index: -1;
    border-radius: 15px;
    transition: transform 0.4s ease;
}

/* Animation de la forme au survol */
.team-card:hover .team-group::before {
    transform: translate(-50%, -50%) rotate(-10deg);
}

/* Animation de brillance pour les drapeaux */
@keyframes shimmer {
    0% {
        left: -200px;
    }
    20%, 100% {
        left: 200%;
    }
}

/*Style du popup qui apparaît quand on clique sur une équipe */

/* Disposition des joueurs clés */
.key-players {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin-bottom: 30px;
}

/* Style de chaque joueur clé */
.key-player {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    z-index: 1;
}

/* Arrière-plan coloré pour chaque joueur */
.key-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: -1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Positionnement du texte */
.key-player > * {
    position: relative;
    z-index: 2;
}

/* Animation de l'arrière-plan au survol */
.key-player:hover::before {
    opacity: 0.15;
}

/* Animation de la carte joueur au survol */
.key-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Titre de chaque carte joueur */
.key-player h4 {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

/* Ligne sous le titre */
.key-player h4::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0.5);
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* Animation de la ligne au survol */
.key-player:hover h4::after {
    transform: scaleX(1);
}

/* Nom du joueur */
.key-player p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

/* Animation du nom au survol */
.key-player:hover p {
    color: var(--accent-color);
}

/* Style pour le poste et buts marqués */
.key-player .position,
.key-player .goals {
    display: inline-block;
    padding: 2px 10px;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Animation au survol du poste/buts */
.key-player:hover .position,
.key-player:hover .goals {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* En-tête du modal avec le drapeau et nom d'équipe */
.team-modal-header {
    position: relative;
    padding: 4rem 2rem 2rem;
    color: white;
    text-align: center;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
}

/* Overlay pour ajouter une teinte à l'arrière-plan */
.team-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(232, 179, 65, 0.2), transparent 70%);
    z-index: 0;
}

/* Positionnement du contenu par dessus l'arrière-plan */
.team-modal-header > * {
    position: relative;
    z-index: 1;
}

/* Conteneur du drapeau dans le modal */
.team-modal-header .flag-container {
    width: 150px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transform: perspective(500px) rotateX(5deg);
}

/* Image du drapeau dans le modal */
.team-modal-header .flag-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nom de l'équipe dans le modal */
.team-modal-header h2 {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Badge de groupe dans l'en-tête du modal */
.group-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animation de l'affichage des équipes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-card {
    animation: fadeInUp 0.6s ease backwards;
}

.team-card:nth-child(3n+1) {
    animation-delay: 0.1s;
}

.team-card:nth-child(3n+2) {
    animation-delay: 0.3s;
}

.team-card:nth-child(3n+3) {
    animation-delay: 0.5s;
}

/* Amélioration des stats */
.team-stats {
    display: flex;
    justify-content: space-around;
    padding: 0;
    background-color: #fff;
    border-bottom: none;
}

/* Style pour chaque élément de statistique (ex. : nombre de victoires, buts, etc.) */
.stat-item {
    flex: 1; /* Chaque élément prend une part égale dans un conteneur flex */
    text-align: center; /* Centrage du contenu */
    padding: 1.25rem; /* Espacement intérieur */
    background: white; /* Fond blanc */
    border-radius: 0; /* Pas d’arrondi des coins */
    box-shadow: none; /* Pas d’ombre */
    border: none; /* Pas de bordure */
    border-right: 1px solid #eee; /* Bordure droite fine et claire pour séparer les éléments */
}

/* Supprime la bordure droite pour le dernier élément (évite une ligne inutile à droite) */
.stat-item:last-child {
    border-right: none;
}

/* Style de la valeur numérique dans la statistique (ex. : 10, 3 buts, etc.) */
.stat-value {
    font-size: 2.25rem; /* Grande taille de police */
    font-weight: 700; /* Police en gras */
    color: var(--secondary-color); /* Couleur secondaire définie ailleurs */
    margin-bottom: 0.25rem; /* Petit espace en dessous */
}

/* Style du libellé de la statistique (ex. : "buts", "matchs") */
.stat-label {
    color: #555; /* Couleur gris foncé */
    font-size: 0.7rem; /* Petite taille de police */
    font-weight: 600; /* Police semi-gras */
    text-transform: uppercase; /* Texte en majuscules */
    letter-spacing: 0.5px; /* Espacement entre les lettres pour une meilleure lisibilité */
}

/* Bloc représentant l'entraîneur de l’équipe */
.team-coach {
    text-align: center; /* Centrage du contenu */
    padding: 1.5rem; /* Espacement intérieur généreux */
    background-color: var(--light-color); /* Fond clair, variable CSS */
    border-radius: 12px; /* Coins arrondis */
    margin-top: 1rem; /* Espace au-dessus du bloc */
    border: 1px solid var(--border-color); /* Bordure fine de couleur personnalisée */
}

/* Titre du bloc entraîneur (ex. : "Entraîneur") */
.team-coach h4 {
    color: var(--accent-color); /* Couleur d'accentuation */
    font-size: 0.9rem; /* Taille de police modérée */
    margin-bottom: 0.5rem; /* Espace sous le titre */
    text-transform: uppercase; /* Texte en majuscules */
    letter-spacing: 1px; /* Espacement entre les lettres */
}

/* Nom de l'entraîneur */
.team-coach p {
    font-size: 1.4rem; /* Grande taille pour le nom */
    color: var(--secondary-color); /* Couleur secondaire */
    font-weight: 700; /* Texte en gras */
}


/* Animation pour le modal */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .key-players {
        grid-template-columns: 1fr;
    }

    .team-modal-header h2 {
        font-size: 2rem;
    }

    .team-modal-header .flag-container {
        width: 120px;
        height: 80px;
    }

    .stat-item {
        flex: 1 1 calc(50% - 1rem);
        margin: 0.5rem;
        padding: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Style pour le hover des cartes */
.key-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(232, 179, 65, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.key-player:hover::before {
    opacity: 1;
}

/* Animations pour les statistiques */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stat-value {
    animation: countUp 0.5s ease-out forwards;
}

/* Style pour les badges de position et buts */
.position, .goals {
    transition: background-color 0.3s ease;
}

.position:hover, .goals:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Style pour le conteneur du modal */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 0;
}

/* Effet de brillance sur les drapeaux */
.flag-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255,255,255,0.1) 50%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Styles pour les compteurs dans l'en-tête */
.teams-counter {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 3rem;
}

.counter-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 15px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.counter-label {
    font-size: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Styles pour les boutons de bascule de vue */
.view-toggles {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.view-toggles .btn {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.view-toggles .btn:hover,
.view-toggles .btn.active {
    background-color: var(--secondary-color);
    color: white;
}

.view-toggles .btn i {
    margin-right: 0.5rem;
}

/* Styles pour la vue par groupes - ajustements */
.groups-view .row {
    display: flex;
    flex-wrap: wrap;
}

/* Carte contenant les informations d’un groupe */
.group-card {
    background: white; /* Fond blanc */
    border-radius: 15px; /* Coins arrondis */
    overflow: hidden; /* Cache tout débordement */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Ombre portée douce */
    transition: all 0.3s ease; /* Animation fluide pour tout changement */
    margin-bottom: 30px; /* Marge inférieure entre cartes */
    height: 100%; /* Hauteur à 100% du conteneur parent */
}

/* En-tête de la carte du groupe (nom du groupe) */
.group-header {
    background: var(--gradient-primary); /* Dégradé défini dans les variables CSS */
    color: white; /* Texte blanc */
    padding: 1.5rem; /* Espacement intérieur */
    text-align: center; /* Centrage du texte */
    position: relative;
    overflow: hidden;
}

/* Motif SVG subtil dans l’arrière-plan de l’en-tête */
.group-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg ...>'); /* Cercle blanc translucide */
    background-size: 30px 30px;
    opacity: 0.3; /* Transparence faible */
}

/* Titre de l'en-tête du groupe */
.group-header h3 {
    margin: 0;
    font-size: 1.8rem; /* Grande taille pour le nom du groupe */
    font-weight: 700; /* Gras */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Légère ombre sur le texte */
    position: relative;
}

/* Conteneur des équipes dans le groupe */
.group-teams {
    padding: 1rem; /* Espacement intérieur */
}

/* Élément représentant une équipe dans la liste */
.group-team-item {
    display: flex; /* Disposition en ligne */
    align-items: center; /* Alignement vertical centré */
    padding: 0.75rem; /* Espacement intérieur */
    border-bottom: 1px solid var(--border-color); /* Ligne de séparation */
    cursor: pointer; /* Curseur en forme de main au survol */
    transition: all 0.3s ease; /* Animation fluide */
    background: transparent;
    border-radius: 8px;
}

/* Retire la bordure inférieure pour la dernière équipe */
.group-team-item:last-child {
    border-bottom: none;
}

/* Effets au survol d’une équipe */
.group-team-item:hover {
    background: rgba(232, 179, 65, 0.1); /* Légère coloration de fond */
    transform: translateX(10px); /* Décalage vers la droite */
    border-bottom-color: transparent; /* Supprime la bordure */
}

/* Drapeau de l’équipe */
.team-flag {
    width: 50px;
    height: 35px;
    overflow: hidden;
    border-radius: 5px;
    margin-right: 1rem; /* Espacement à droite du drapeau */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre légère */
    transition: all 0.3s ease;
    transform: perspective(300px) rotateY(0); /* Préparation à l’effet 3D */
}

/* Image dans le drapeau : occupe toute la place sans déformation */
.team-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Effet 3D sur le drapeau au survol */
.group-team-item:hover .team-flag {
    transform: perspective(300px) rotateY(10deg); /* Rotation 3D */
    box-shadow: 5px 2px 10px rgba(0, 0, 0, 0.2); /* Ombre plus marquée */
}

/* Nom de l’équipe */
.group-team-item .team-name {
    flex-grow: 1; /* Prend toute la largeur restante */
    font-weight: 600; /* Texte en semi-gras */
    color: var(--secondary-color); /* Couleur secondaire */
    transition: all 0.3s ease;
}

/* Effet sur le nom de l’équipe au survol */
.group-team-item:hover .team-name {
    color: var(--accent-color); /* Change de couleur */
    transform: translateX(5px); /* Léger décalage vers la droite */
}

/* Barre de navigation entre équipes dans une fenêtre modale */
.team-navigation {
    display: flex; /* Alignement horizontal */
    justify-content: space-between; /* Espacement entre les boutons */
    width: 100%;
}

/* Boutons de navigation dans le modal */
.team-navigation .btn {
    padding: 0.6rem 1.5rem;
    border-radius: 30px; /* Forme arrondie */
    border: 2px solid var(--primary-color); /* Bordure avec la couleur principale */
    color: var(--primary-color); /* Texte dans la même couleur */
    transition: all 0.3s ease;
    font-weight: 600;
}

/* Effets au survol sur les boutons de navigation */
.team-navigation .btn:hover {
    background-color: var(--primary-color); /* Fond coloré */
    color: white; /* Texte en blanc */
    transform: translateY(-3px); /* Légère élévation */
    box-shadow: 0 4px 10px rgba(232, 179, 65, 0.3); /* Ombre douce */
}

/* Icônes à l’intérieur des boutons */
.team-navigation .btn i {
    transition: transform 0.3s ease;
}

/* Déplacement des flèches à gauche/droite au survol */
.team-navigation .btn:hover i.fa-chevron-left {
    transform: translateX(-5px);
}
.team-navigation .btn:hover i.fa-chevron-right {
    transform: translateX(5px);
}

/* Pied de page du modal : suppression de la bordure et padding ajusté */
.modal-footer {
    border-top: none;
    padding-top: 0;
    padding-bottom: 2rem;
    background-color: white;
}


/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--light-red), var(--light-green));
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
    position: relative;
}

.social-links a:hover {
    color: var(--red-color);
    transform: translateY(-3px);
    opacity: 0.8;
}

.social-links a:hover + a {
    color: var(--green-color);
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animation pour l'affichage des groupes */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.group-card {
    animation: fadeInScale 0.5s ease backwards;
}

.groups-view {
    animation: fadeInScale 0.5s ease;
}

/* Animation pour les compteurs */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.counter-number[data-count="24"],
.counter-number[data-count="6"],
.counter-number[data-count="52"] {
    animation: pulse 2s infinite;
}

/* Joueurs clés */
.team-players {
    padding: 1.5rem;
    background: white;
}

.team-players h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.key-player {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.key-player h4 {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.key-player p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.key-player .position,
.key-player .goals {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f5f5f5;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #555;
}

/* Style pour le message "Plus de détails" */
.groups-more-details {
    margin-top: 2rem;
    position: relative;
}

.more-details-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.more-details-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.more-details-container p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.2rem;
}

.more-details-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 10px rgba(232, 179, 65, 0.3);
}

.more-details-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(232, 179, 65, 0.4);
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
} 