body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #ecf0f1;
    color: #2c3e50;
}

.container {
    display: flex;
    min-height: 100vh;
}


.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-width: 100px;
    ;
}
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1000;
  }
  .notification.show {
    opacity: 1;
  }
.copy-link {
  color: blue;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 10px;
  display: inline-block;
  margin-left: 1%;
  margin-left : center;
}
.center-text {
    text-align: center; 
    display: block;     
    margin: 10px 0;    
}

.copy-link {
    cursor: pointer;   
    color: #007BFF;     
}

.img-menu {
    width: 500px;
    height: auto;
    margin-left: 8%;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar a:hover {
    background-color: #34495e;
}

.content {
    flex-grow: 1;
    padding: 40px;
    background-color: #fff;  /* Fond blanc */
    border-radius: 10px;      /* Coins arrondis */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Ombre douce */
    min-height: 100vh
    
}

.content h1, .content h2, .content p {
    margin-bottom: 20px; /* Espacement entre les éléments */
}

.content h1 {
    font-size: 2rem;
    color: #34495e;
    margin-bottom: 30px;
}

.content h2 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #7f8c8d;
}


.home-background {
    background-color: #f5f5f5; 
    padding: 100 0;
    text-align: center;
    
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.card p {
    color: #7f8c8d;
}

.leaderboard-container {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leaderboard-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
}

.leaderboard-card {
    width: 100%;
    max-width: 1200px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: #2c3e50;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.leaderboard-table th {
    background-color: #f1f1f1;
    font-weight: 600;
    color: #34495e;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.leaderboard-table tr:hover {
    background-color: #f5f5f5;
}

.leaderboard-table tr:nth-child(even) {
    background-color: #fbfbfb;;
}

/* Or - 1ère place */
.leaderboard-table tr:nth-child(1) {
    background: linear-gradient(145deg, #f9f295, #d4af37);
    color: #3e3000;
    font-weight: bold;
    box-shadow: inset 0 0 5px rgba(255, 255, 200, 0.6), 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Argent - 2e place */
.leaderboard-table tr:nth-child(2) {
    background: linear-gradient(145deg, #e0e0e0, #a9a9a9);
    color: #2c2c2c;
    font-weight: bold;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Bronze - 3e place */
.leaderboard-table tr:nth-child(3) {
    background: linear-gradient(145deg, #cd7f32, #a97142);
    color: #2c1a00;
    font-weight: bold;
    box-shadow: inset 0 0 5px rgba(255, 200, 150, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sidebar .dropdown {
    width: 100%;
    position: relative;
}

.sidebar .dropdown-toggle {
    cursor: pointer;
}

.sidebar .dropdown-content {
    display: none;
    flex-direction: column;
    background-color: #34495e;
    padding-left: 10px;
    position: relative;
    left: 0;
    margin-top: 0; 
    padding: 0;    
    z-index: 10;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sidebar .dropdown.open .dropdown-content {
    display: flex;
}

.sidebar .dropdown-content li a {
    padding: 10px 20px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.95rem;
}

.sidebar .dropdown-content li a:hover {
    background-color: #3d566e;
}


/* Conteneur des cartes */
.team-container {
    display: flex;
    flex-wrap: wrap;  
    justify-content: center;
    gap: 30px; 
    padding: 80px;
    max-width: 1200px; 
    margin-left: 12%;
}

/* Style des cartes */
.member-card {
    width: 250px; /* Largeur des cartes */
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    text-align: center;
}

/* Effet de hover sur les cartes */
.member-card:hover {
    transform: translateY(-10px); /* Décalage de la carte au survol */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Ombre plus forte */
}

/* Style de l'image (restauré à ce que tu souhaitais : carré) */
.member-img {
    width: 150px; /* Largeur fixe */
    height: 150px; /* Hauteur fixe pour garder le carré */
    object-fit: cover; /* L'image couvre la zone sans déformation */
    object-position: center; /* Centrage de l'image */
    border-radius: 10px; /* Bord arrondi */
    display: block;
    margin: 15px auto 0px auto;  /* Centre horizontalement + marge bas */
}

/* Style du corps de la carte */
.card-body {
    padding: 20px;
}

/* Titre de la carte */
.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

/* Sous-titre (rôle) de la carte */
.card-subtitle {
    font-size: 1rem;
    color: #777;
    margin-bottom: 10px;
}

/* Description du membre */
.card-text {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}

/* Titre principal de la page */
h1 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

/* Page d'upload */
.container-fluid {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f9f9f9; /* Fond gris clair pour la page d'upload */
    padding: 30px;
}

.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    font-size: 2rem;
    color: #34495e;
    text-align: center;
    margin-bottom: 20px;
}

p.text-muted {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

form {
    width: 100%;
}

.form-label {
    font-size: 1.1rem;
    color: #34495e;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 12px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

.form-check-label {
    font-size: 1rem;
    color: #34495e;
}

.form-check-input {
    width: auto;
    margin-right: 10px;
}

.form-check {
    margin-bottom: 15px;
}

.d-grid {
    margin-top: 20px;
}

.btn {
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    padding: 15px 30px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    border: none;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.alert-success {
    background-color: #eafaf1;
    color: #2ecc71;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    font-size: 1rem;
}

.alert-success h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.alert-success p {
    font-size: 1rem;
    margin: 5px 0;
}

/* Animation de la carte d'upload */
.card {
    transform: translateY(10px);
    opacity: 0;
    animation: cardFadeIn 0.6s forwards;
}

@keyframes cardFadeIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Style spécifique pour le champ de fichier */
input[type="file"] {
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    width: 100%;
}

input[type="file"]:hover {
    border-color: #3498db;
}

input[type="file"]:focus {
    outline: none;
    border-color: #3498db;
}
.navbar {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(200, 200, 200, 0.2);
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    padding: 16px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    font-family: 'Inter', sans-serif;

}

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


.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: -10px;
}

.nav-links a,
.dropbtn {
    font-size: 1rem;
    font-weight: 500;
    background: none;
    border: none;
    color: #2c3e50;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.dropbtn:hover {
    color: #000;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #3498db; /* Bleu moderne */
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background-color: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    min-width: 180px;
    z-index: 200;
    transition: all 0.3s ease;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f2f2f2;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Définition du fond de la page */
.home-background {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%; /* Faire en sorte que l'élément occupe toute la hauteur de la fenêtre */
    display: flex;
    flex-direction: column; /* Mise en colonne pour empiler les cartes */
    justify-content: center;
    align-items: center;
}

/* Contenu principal centré */
.home-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Titre principal */
h1 {
    font-size: 3rem;
    color: #34495e;
    margin-bottom: 20px;
}

/* Description d'introduction */
p.lead {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 40px;
}

/* Les cartes contenant les fonctionnalités */
.feature-cards {
    display: flex;
    flex-direction: column; /* Mise en colonne pour empiler les cartes */
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

/* Style des cartes */
.card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 600px; /* Limite la largeur des cartes */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet hover sur les cartes */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Titre des cartes */
.card h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Description des cartes */
.card p {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Bouton des cartes */
.card .btn-outline-primary {
    font-weight: 600;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card .btn-outline-primary:hover {
    background-color: #3498db;
    color: white;
}
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#loading-spinner {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%; 
    background-color: rgba(255, 255, 255, 0.8); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-card {
    background-color: #fff; 
    padding: 20px;
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    text-align: center;
    width: 300px; 
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 auto 15px; 
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-card p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* ----------- RESPONSIVE DESIGN POUR TOUT LE SITE ----------- */

.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: #2c3e50;
    cursor: pointer;
    z-index: 1001; 
}


/* TABLETTES */
@media (max-width: 1000px) {
    .img-menu {
        width: 250px;
        height: auto;
        margin-left: 8%;
    }
    
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .sidebar li {
        width: auto;
    }

    .content {
        padding: 20px;
        min-height: auto;
    }

    .team-container {
        padding: 0px;
        margin-left: 0;
        justify-content: center;
    }

    .member-card {
        width: 45%;
        height: auto;
    }

    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .leaderboard-card {
        padding: 15px;
    }
}

/* SMARTPHONES*/
@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }

    .sidebar .dropdown {
        width: 100%;
        position: relative;
        z-index: 10;
    }

    .sidebar {
        display: none; /* Masquer la sidebar sur mobile */
    }

    .content {
        padding: 15px;
    }

    .team-container {
        padding: 10px;
        gap: 20px;
        margin-left: 0;
    }

    .member-card {
        width: 45%;
        height: auto;
    }

    .home-background {
        padding: 30px 10px;
    }

    .card {
        padding: 3px;
        max-width: 100%;
        box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    }

    .leaderboard-title {
        font-size: 1.5rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px;
        font-size: 0.8rem;
    }

    .nav-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;border-bottom: none;
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    p, .card-text, .card-subtitle {
        font-size: 0.95rem;
    }
    
    .member-card:hover {
        transform: none !important; 
        box-shadow: none !important; 
        transition: none !important; 
    }
    
    .member-card {
        transform: none !important;
        padding-bottom: 5%;
        
    }
    .card:hover {
        transform: none !important;
        box-shadow: none !important;
        transition: none !important;
    }
    .card {
        padding: 10px;
        max-width: 100%;
        box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    }

    .leaderboard-title {
        font-size: 1.5rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* Menu mobile */
@media (max-width: 1000px) {
    .member-card:hover {
        transform: none !important; 
        box-shadow: none !important; 
        transition: none !important; 
        cursor: default;
    }
    
    .member-card {
        transform: none !important;
        padding-bottom: 5%;
    }
    .card:hover {
        transform: none !important;
        box-shadow: none !important;
        transition: none !important;
    }
    .nav-links a::after {
        content: none;
    }
    .navbar a {
        text-decoration: none !important; 
        color: inherit !important; 
        transition: none !important; 
        border-bottom: none;
    }
    .navbar a, 
    .dropdown-content a, 
    .btn-primary {
        outline: none !important; 
        box-shadow: none !important;
    }

    .dropdown-content a {
        background-color: transparent !important; 
        transition: none !important;
    }

    .btn-primary:hover {
        transform: none !important; 
        background-color: #3498db !important; 
    }
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        width: 100%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a,
    .nav-links .dropdown {
        padding: 14px 20px;
        width: 100%;
        border-top: 1px solid #eee;
    }

    .nav-links .dropdown-content {
        position: relative;
        top: auto;
        left: auto;
        box-shadow: none;
        border-radius: 0;
        background-color: transparent;
        padding-left: 10px;
    }

    /* Icône burger → croix */
    .hamburger.open::before {
        content: "✕";
    }

    .hamburger::before {
        display: inline-block;
        content: "☰";
    }

    .hamburger.open {
        color: #000;
    }

    /* Animation d'ouverture */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
#results-popup {
    position: fixed; /* Position fixe pour rester au même endroit même en scrollant */
    top: 50%; /* Centre verticalement */
    left: 50%; /* Centre horizontalement */
    transform: translate(-50%, -50%); /* Ajuste pour centrer parfaitement */
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    display: none; /* Masqué par défaut */
    justify-content: center; /* Centre le contenu horizontalement */
    align-items: center; /* Centre le contenu verticalement */
    z-index: 1000; /* Place la popup devant tout */
    width: 100%; /* Prend toute la largeur de l'écran */
    height: 100%; /* Prend toute la hauteur de l'écran */
}

#results-popup .loading-card {
    background: #fff; /* Fond blanc pour la carte */
    padding: 20px; /* Espacement interne */
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre pour un effet de profondeur */
    text-align: center; /* Centre le texte */
    position: relative; /* Nécessaire pour positionner la croix */
    width: 80%; /* Largeur de la carte */
    max-width: 500px; /* Largeur maximale */
}

#results-popup .close-button {
    position: absolute; /* Position absolue par rapport à la carte */
    top: 10px; /* Distance du haut */
    right: 10px; /* Distance de la droite */
    background: none; /* Pas de fond */
    border: none; /* Pas de bordure */
    font-size: 18px; /* Taille de la croix */
    cursor: pointer; /* Curseur en forme de main */
    color: #333; /* Couleur de la croix */
}

#results-popup .close-button:hover {
    color: #ff0000; /* Change la couleur au survol */
}