/* Styles généraux */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}
/* Titre centré et coloré en orange */
h1, h2, h3, h4 {
    color: #ffcc00;
    text-align: center;
    font-weight: bold;
}
/* Animation du tableau */
.player-table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    overflow-x: auto;
    display: block;
    opacity: 0;
    animation: fadeIn 1s forwards;
}


.catalogue {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.link-container {
    text-align: center;
}

/* Style des liens */
.link {
    display: block;
    font-size: 18px;
    color: #fff;
    background-color: #4CAF50;
    padding: 10px 20px;
    margin: 10px 0;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.mission {
    background: #4e4317;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mission img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 10px auto;
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Optionnel : animation pour chaque ligne du tableau */
.player-table tr {
    opacity: 0;
    animation: fadeInRows 0.5s forwards;
}

@keyframes fadeInRows {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* Header responsive */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
   
}

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

.menu {
    list-style: none;
    padding: 0;
    display: flex;
}

.menu li {
    margin: 0 20px;
}

.menu a {
    text-decoration: none;
    color: #ffcc00;
    font-size: 20px;
    font-weight: bold;
}

/* Menu burger pour mobile */
.burger {
    display: none;
    cursor: pointer;
    font-size: 30px;
    color: #ffcc00;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    .menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: rgba(0, 0, 0, 0.9);
      
    }
    .menu li {
        margin: 10px 0;
    }
    .burger {
        display: block;
    }
    .menu.active {
        display: flex;
    }
}

/* Formulaires et contenu adaptable */
form {
    width: 90%;
    max-width: 400px;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Conteneur principal */
#missions-container {
    width: 90%;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Titre de la section */
.title {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Style de la table */
.missions-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top: 20px;
}

/* Style des en-têtes de table */
.table-header {
    background-color: #4CAF50;
    color: white;
    text-align: left;
    padding: 10px;
}

/* Style des lignes de données */
.mission-row {
    border-bottom: 1px solid #ddd;
}

/* Style des cellules */
.mission-data {
    padding: 10px;
    text-align: left;
    font-size: 16px;
    color: black;
}

.bouton-admin {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #4CAF50; /* Couleur de fond bleue */
    border: none;
    border-radius: 8px; /* Bordures arrondies */
    text-align: center;
    text-decoration: none; /* Enlever le soulignement */
    cursor: pointer;
    margin-bottom: 5px;
}


/* Style de l'image dans la cellule */
.mission-image {
    border-radius: 50%;
    object-fit: cover;
}

/* Actions (supprimer, modifier) */
.mission-actions {
    text-align: center;
    padding: 10px;
}

.delete-link, .edit-link {
    color: #d9534f;
    text-decoration: none;
    font-weight: bold;
}

.edit-link {
    color: #5bc0de;
}

input[type="text"], button {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Tableau responsive */
.player-table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    overflow-x: auto;
    display: block;
}

/* Grille d'images responsive */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.image-container  {
   width: 90%;
   max-width: 350px;
   height: 350px;
    border-radius: 10px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* Modifications pour cacher l'écran de chargement après un délai */
/* Style de la page principale */
main {
    padding: 20px;
    background-color: #000;
    flex: auto;
}

/* Style de la page principale */
main {
    padding: 20px;
}

/* Style de la page principale */
main {
    padding: 20px;
}

/* Container pour les cartes des joueurs (grille avec 2 cartes par ligne) */
.player-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne */
    grid-gap: 20px; /* Espace entre les cartes */
    max-width: 960px; /* Largeur maximale pour éviter un étirement trop large */
    margin: 0 auto; /* Centrer le container */
    padding: 20px;
}

/* Carte d'un joueur */
.player-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Pour éviter que l'image dépasse les bords */
    padding: 20px;
}

.player-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Image ronde */
.player-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 20px;
    cursor: pointer;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
}

/* Style pour le texte des cartes */
h3 {
    font-size: 18px;
    margin: 10px 0;
    font-weight: bold;
    color: orange; /* Couleur orange pour le nom du joueur */
}

.player-info {
    text-align: left;
    margin-top: 15px;
}

.player-info p {
    font-size: 14px;
    margin: 5px 0;
    color: orange; /* Couleur orange pour tous les textes dans la carte */
}

.player-info strong {
    font-weight: bold;
}


p {
    font-size: 14px;
    margin: 5px 0;
}


footer {
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {
    font-size: 30px;
}
/* Style du formulaire de recherche */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.search-input {
    width: 300px;
    padding: 12px;
    border-radius: 25px;
    border: 2px solid #ffcc00;
    background-color: #222;
    color: white;
    font-size: 16px;
    outline: none;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ffcc00;
    font-size: 20px;
    cursor: pointer;
}

/* Effet sur le bouton de recherche */
.search-button:hover {
    color: #fff;
}

h1 {
    text-align: center;
    color: #ffcc00;
    font-size: 32px;
    font-weight: bold;
    margin-top: 20px;
}

/* Styles des cartes des joueurs */
.cartes-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.carte-joueur {
    width: 250px;
    background: #222;
    color: white;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

.carte-joueur img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.note {
    font-size: 24px;
    font-weight: bold;
    color: gold;
}
/* --- Podium --- */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
}

.podium-card {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    width: 180px;
    transition: transform 0.3s ease-in-out;
    animation: bounceIn 1s ease-in-out forwards;
}

.podium-card img {
    width: 100%;
    border-radius: 10px;
}

.podium-card .ranking {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Styles du podium */
.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 4px solid #FFD700;
    transform: scale(1.2);
}

.silver {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    border: 4px solid #C0C0C0;
}

.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    border: 4px solid #CD7F32;
}

.podium-card:hover {
    transform: scale(1.3);
}

/* --- Animation du podium --- */
@keyframes bounceIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Top 15 en grille --- */
.top-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Carte de chaque joueur */
.celebration-card {
    background: linear-gradient(135deg, #222, #444);
    border-radius: 15px;
    text-align: center;
    padding: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease-in-out forwards;
}

.celebration-card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.8);
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Classement */
.ranking {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 10px;
}

/* Image des joueurs */
.celebration-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.celebration-image:hover {
    transform: scale(1.1);
}

/* Nom du joueur */
.player-name {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-top: 10px;
}

