.photo-gallery a {
    position: relative; /* Crée un contexte de positionnement pour l'overlay */
    display: inline-block; /* S'assure que le lien ne prend que l'espace nécessaire */
    overflow: hidden; /* Cache tout ce qui dépasse du conteneur */
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    color: white;
    opacity: 0; /* Masqué par défaut */
    transition: opacity 0.3s ease; /* Animation fluide */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.photo-gallery a:hover .photo-overlay {
    opacity: 1; /* Apparaît au survol du lien */
}

.overlay-text h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.overlay-text p {
    font-style: italic;
    font-size: 1rem;
}

.classement-card {
    width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden; /* Important pour les coins arrondis et le survol */
}

.classement-card-disabled:hover {
    transform: translateY(-5px); /* Effet d'élévation au survol */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.classement-header {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10; /* S'assure qu'il est au-dessus de l'image */
}

.classement-header .rank-number {
    display: inline-block;
    background-color: #333; /* Une couleur vive pour le classement */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
}

.classement-image {
    position: relative;
    overflow: hidden;
}

.classement-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease-in-out;
}

.classement-card-disabled:hover .classement-image img {
    transform: scale(1.05); /* Effet de zoom sur l'image au survol */
}

.classement-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    box-sizing: border-box;
    transform: translateY(100%); /* Masqué par défaut en bas */
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

.classement-card:hover .classement-caption {
    transform: translateY(0); /* Apparaît au survol */
}

.classement-caption h4 {
    margin: 0;
    font-size: 1.1rem;
}

.classement-caption p {
    margin: 5px 0 0;
    font-size: 0.9rem;
}

.mdi-medal.medal1 {
    color: gold; /* #ffd700 */
}
.mdi-medal.medal2 {
    color: silver; /* #c0c0c0 */
}
.mdi-medal.medal3 {
    color: #cd7f32;
}
