/* Reset et base */
* {
    box-sizing: border-box;
}

.cd-faq-group > li {
    background: none;
    margin-bottom: -30px;
    box-shadow: none;
    transition: none;
}

.cd-faq-content {
    padding: 0px 0px 5px 14px;
    margin-top: -14px; 
    margin-left: 25px;
}

.cd-faq-items {
    width: 100%;
    max-width: 1015px;
    margin: 0 auto;
    float: initial;
}

.cd-faq-trigger {
    padding: 0px;
}

.cd-faq {
    position: relative;
    left: -25px;
}

/* Video sans contrôles */
#rtgVideo::-webkit-media-controls {
    display: none !important;
}

#rtgVideo::-webkit-media-controls-panel {
    display: none !important;
}

#rtgVideo::-webkit-media-controls-play-button {
    display: none !important;
}

#rtgVideo::-webkit-media-controls-start-playback-button {
    display: none !important;
}

#rtgVideo {
    pointer-events: none;
}

/* MÉTHODE RADICALE - MODIFICATION DIRECTE DES ÉLÉMENTS */

/* SOLUTION SIMPLE - OVERLAYS BIEN POSITIONNÉS */

.image-container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.video-container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fondu en bas de la première image (road-to-glory.jpg) - CONCENTRÉ */
.image-container.top::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 20px !important;
    background: linear-gradient(to top, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 15%, 
        rgba(0,0,0,0.8) 35%, 
        rgba(0,0,0,0.4) 60%, 
        rgba(0,0,0,0) 100%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* Fondu en haut de la vidéo - PEUT DÉBORDER PLUS */
.video-container::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 20px !important;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 20%, 
        rgba(0,0,0,0.9) 40%, 
        rgba(0,0,0,0.6) 60%, 
        rgba(0,0,0,0.2) 80%, 
        rgba(0,0,0,0) 100%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* Fondu en bas de la vidéo - PEUT DÉBORDER PLUS */
.video-container::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 20px !important;
    background: linear-gradient(to top, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 20%, 
        rgba(0,0,0,0.9) 40%, 
        rgba(0,0,0,0.6) 60%, 
        rgba(0,0,0,0.2) 80%, 
        rgba(0,0,0,0) 100%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* Fondu en haut de la dernière image (cody-road.jpg) - CONCENTRÉ */
.image-container.bottom::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 20px !important;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 15%, 
        rgba(0,0,0,0.8) 35%, 
        rgba(0,0,0,0.4) 60%, 
        rgba(0,0,0,0) 100%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* Barre de progression */
.progress-container {
    width: calc(100% - 80px); /* Plus d'espace pour mieux centrer */
    max-width: 900px; /* Largeur maximale augmentée pour meilleur espacement */
    background-color: #444;
    border-radius: 15px;
    padding: 5px;
    margin: 20px auto;
    position: relative;
    margin-bottom: 60px;
    text-align: center; /* Centrage du contenu */
    height: 34px;
    box-sizing: border-box;
    overflow: visible;
	left: -50px;
}

.progress-bar {
    width: 0%;
    height: 15px;
    background: linear-gradient(90deg, #FF2B42 0%, #3167EE 100%);
    border-radius: 12px;
    transition: width 1s ease-in-out;
    position: relative;
    margin-left: 0;
    float: left;
    clear: both;
    margin-top: 5px;
}

.match-markers {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: calc(100% - 10px);
    top: 44px;
    left: 5px;
    right: 5px;
    box-sizing: border-box;
}

.marker {
    position: relative;
    text-align: center;
    flex: 0 0 auto;
}

.marker img.chest {
    width: 50px;
    height: 50px;
    display: block;
}

/* Affichage des récompenses sous les coffres ouverts */
.coffre-recompenses {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #FFD700;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 4px;
    border-radius: 3px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    border: 1px solid #FFD700;
    cursor: help;
    min-width: 40px;
}

.final-chest {
    position: absolute;
    right: -75px; /* Repositionné plus près de la barre */
    top: -20px;
    text-align: center;
}

.final-chest img.chest {
    width: 70px;
    height: 70px;
}

.final-chest img.trophy {
    position: absolute;
    right: -8px;
    top: -8px;
    width: 35px;
    height: 35px;
    display: none;
}

/* Styles pour le Sanctuaire des Champions */
.final-chest.clickable {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.final-chest.clickable:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px #FFD700);
}

.final-chest.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.sanctuaire-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #FFD700, #FFA500);
    color: #000;
    padding: 2px 4px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    animation: sanctuaire-glow 2s ease-in-out infinite;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sanctuaire-locked {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #666;
    color: #ccc;
    padding: 2px 4px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.final-chest.completed {
    opacity: 0.8;
    cursor: pointer;
}

.final-chest.completed:hover {
    transform: scale(1.05);
}

.sanctuaire-completed {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    padding: 2px 4px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

@keyframes sanctuaire-glow {
    0%, 100% {
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 2px 15px rgba(255, 215, 0, 0.6);
    }
}

/* Responsive pour barre de progression et coffre final */
@media (max-width: 768px) {
    .progress-container {
        width: calc(100% - 90px); /* Réduire encore plus l'espace pour mobile */
        max-width: calc(100vw - 120px); /* Éviter le débordement horizontal */
    }

    .final-chest {
        right: -80px; /* Rapprocher le coffre sur mobile */
    }

    .final-chest img.chest {
        width: 55px; /* Réduire taille du coffre sur mobile */
        height: 55px;
    }

    .sanctuaire-label,
    .sanctuaire-locked,
    .sanctuaire-completed {
        font-size: 10px; /* Taille icône sur mobile */
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .progress-container {
        width: calc(100% - 70px); /* Encore plus compact sur très petit écran */
        margin-left: auto;
        margin-right: auto;
    }

    .final-chest {
        right: -60px; /* Encore plus rapproché */
    }

    .final-chest img.chest {
        width: 45px; /* Encore plus petit */
        height: 45px;
    }

    .marker img.chest {
        width: 40px; /* Réduire taille des coffres intermédiaires */
        height: 40px;
    }
}

/* Container principal des matchs */
.matches-container {
	margin: 100px auto !important;
	max-width: 1015px;
	margin: 20px auto;
	padding: 0 0px;
	left: -15px;
	position: relative;
}

.matches-title {
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 35px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    top: 20px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Card de match */
.match-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #3167EE;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    transition: all 0.4s ease;
    position: relative;
}

.match-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(49, 103, 238, 0.3);
    border-color: #FF2B42;
}

/* Header de la card */
.match-header {
    background: linear-gradient(135deg, #FF2B42 0%, #3167EE 100%);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-level {
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.match-title-header {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    flex: 1;
    text-align: center;
    margin: 0 20px;
}

.match-status {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Contenu principal */
.match-content {
    padding: 15px;
}

.match-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Conteneur pour l'image avec effets */
.match-image-container {
    position: relative;
    width: 300px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.match-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pas d'effet glass - supprimé */

/* Effet sparkles sur l'image - VERSION DRAMATIQUE */
.match-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Gros sparkles rouges et bleus */
        radial-gradient(8px 8px at 30px 40px, #FF2B42, rgba(255, 43, 66, 0.8) 30%, transparent 70%),
        radial-gradient(6px 6px at 80px 20px, #3167EE, rgba(49, 103, 238, 0.9) 30%, transparent 70%),
        radial-gradient(10px 10px at 150px 60px, #FF2B42, rgba(255, 43, 66, 0.7) 30%, transparent 70%),
        radial-gradient(7px 7px at 200px 30px, #3167EE, rgba(49, 103, 238, 0.8) 30%, transparent 70%),
        radial-gradient(9px 9px at 250px 80px, #FF2B42, rgba(255, 43, 66, 0.8) 30%, transparent 70%),

        /* Moyens sparkles */
        radial-gradient(5px 5px at 60px 100px, #3167EE, rgba(49, 103, 238, 0.9) 40%, transparent 80%),
        radial-gradient(4px 4px at 120px 150px, #FF2B42, rgba(255, 43, 66, 1) 40%, transparent 80%),
        radial-gradient(6px 6px at 180px 120px, #3167EE, rgba(49, 103, 238, 0.8) 40%, transparent 80%),
        radial-gradient(5px 5px at 220px 140px, #FF2B42, rgba(255, 43, 66, 0.9) 40%, transparent 80%),

        /* Petits sparkles */
        radial-gradient(3px 3px at 50px 50px, #FF2B42, transparent 50%),
        radial-gradient(3px 3px at 100px 80px, #3167EE, transparent 50%),
        radial-gradient(3px 3px at 170px 100px, #FF2B42, transparent 50%),
        radial-gradient(3px 3px at 240px 40px, #3167EE, transparent 50%),
        radial-gradient(3px 3px at 280px 120px, #FF2B42, transparent 50%);
    pointer-events: none;
    z-index: 3;
    animation: dramaticSparkle 3s ease-in-out infinite;
    opacity: 0.5 !important;
    filter: drop-shadow(0 0 5px rgba(255, 43, 66, 0.5));
}

.match-image-container:hover::after {
    opacity: 0.5 !important;
    animation-duration: 1.5s;
    filter: drop-shadow(0 0 10px rgba(49, 103, 238, 0.8));
}

@keyframes dramaticSparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: scale(1.1) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.05) rotate(-3deg);
        opacity: 0.9;
    }
    75% {
        transform: scale(1.08) rotate(2deg);
        opacity: 1;
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    25% {
        transform: scale(1.02);
        opacity: 0.6;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    75% {
        transform: scale(0.98);
        opacity: 0.5;
    }
}

/* Container pour positionner les pseudo-éléments */
.match-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
}

.match-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.match-title {
    color: #4a90e2;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.vs-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px;
    gap: 15px;
}

.vs-section img {
    width: auto;
    height: 50px;
    border-radius: 10px;
    border: 2px solid #3167EE;
    object-fit: cover;
}

.vs-text {
    color: #FF2B42;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.match-description {
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    padding: 15px;
    color: #cccccc;
    font-size: 13px;
    line-height: 1.5;
    max-height: 140px;
    overflow-y: auto;
    border-left: 4px solid #3167EE;
}

/* Informations du match */
.match-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px 0;
}

.detail-item {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    border: 1px solid #555;
}

.detail-label {
    color: #888;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

.detail-value {
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Footer de la card */
.match-footer {
    background: rgba(0,0,0,0.3);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #444;
}

.action-button {
    background: linear-gradient(135deg, #FF2B42, #e53935);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-section {
    color: white;
}

.action-section a {
    color: white !important;
    text-decoration: none;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 43, 66, 0.4);
}

.action-button.completed {
    background: linear-gradient(135deg, #3167EE, #5c8aff);
}

.victory-info-center {
    flex: 1;
    text-align: center;
    color: #ccc;
}

.victory-text-single {
    color: white;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.reward-badges-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.reward-badge-large {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.reward-badge-large:hover {
    transform: scale(1.05);
}

/* États spéciaux */
.match-card.completed {
    border-color: #3167EE;
}

.match-card.completed .match-header {
    background: linear-gradient(135deg, #3167EE 0%, #5c8aff 100%);
}

.match-card.in-progress {
    border-color: #FF2B42;
}

.match-card.in-progress .match-header {
    background: linear-gradient(135deg, #FF2B42 0%, #e53935 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .match-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .match-image-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .match-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .match-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

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

.coffre-clickable {
    transition: all 0.3s ease;
}

.coffre-clickable:hover {
    transform: scale(1.2);
}

/* Overlay modal pour le jeu des coffres - VERSION DÉFINITIVE */
.recompenses-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    backdrop-filter: blur(10px);
}

.recompenses-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 85%;
    max-width: 1200px;
    max-height: 800px;
    background: #1a1a1a;
    border: 3px solid #3167EE;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, #FF2B42 0%, #3167EE 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    user-select: none;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.recompenses-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    display: none;
    text-align: center;
}

.loading-indicator.show {
    display: block;
}

/* Bouton de rechargement manuel */
.reload-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3167EE, #5c8aff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.reload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 103, 238, 0.4);
}

.reload-button.show {
    display: block;
}

/* === SECTION TROPHÉES MODERNISÉE === */
.trophies-showcase {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 20px;
    background: linear-gradient(135deg, 
                rgba(26, 26, 26, 0.95) 0%, 
                rgba(49, 103, 238, 0.1) 50%, 
                rgba(255, 43, 66, 0.1) 100%);
    border-radius: 25px;
    border: 2px solid #3167EE;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.trophies-showcase::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192, 192, 192, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(205, 127, 50, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.trophies-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.trophies-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.trophy-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.trophy-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.trophy-card.gold {
    border-color: #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.trophy-card.gold::before {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
}

.trophy-card.silver {
    border-color: #C0C0C0;
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.3);
}

.trophy-card.silver::before {
    background: linear-gradient(45deg, rgba(192, 192, 192, 0.1), rgba(169, 169, 169, 0.1));
}

.trophy-card.bronze {
    border-color: #CD7F32;
    box-shadow: 0 10px 30px rgba(205, 127, 50, 0.3);
}

.trophy-card.bronze::before {
    background: linear-gradient(45deg, rgba(205, 127, 50, 0.1), rgba(184, 115, 51, 0.1));
}

.trophy-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.trophy-card:hover::before {
    opacity: 1;
}

.trophy-icon {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px;
}

.trophy-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.trophy-card:hover .trophy-image {
    transform: scale(1.1) rotate(5deg);
}

/* Animations de brillance pour les trophées */
.gold-shine {
    animation: goldShine 2s ease-in-out infinite;
}

.silver-shine {
    animation: silverShine 2.5s ease-in-out infinite;
}

.bronze-shine {
    animation: bronzeShine 3s ease-in-out infinite;
}

@keyframes goldShine {
    0%, 100% { 
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.3)); 
    }
    50% { 
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)); 
    }
}

@keyframes silverShine {
    0%, 100% { 
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(192, 192, 192, 0.3)); 
    }
    50% { 
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(192, 192, 192, 0.8)); 
    }
}

@keyframes bronzeShine {
    0%, 100% { 
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(205, 127, 50, 0.3)); 
    }
    50% { 
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(205, 127, 50, 0.8)); 
    }
}

.trophy-count {
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    animation: countPulse 2s ease-in-out infinite;
}

.trophy-card.gold .trophy-count {
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.6);
}

.trophy-card.silver .trophy-count {
    color: #C0C0C0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(192, 192, 192, 0.6);
}

.trophy-card.bronze .trophy-count {
    color: #CD7F32;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(205, 127, 50, 0.6);
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.trophy-label {
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}

.trophy-card.gold .trophy-label {
    color: #FFD700;
}

.trophy-card.silver .trophy-label {
    color: #C0C0C0;
}

.trophy-card.bronze .trophy-label {
    color: #CD7F32;
}

.trophy-description {
    font-size: 12px;
    color: #ccc;
    font-style: italic;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.trophy-card:hover .trophy-description {
    opacity: 1;
    color: white;
}

.trophies-info {
    text-align: center;
    font-size: 14px;
    color: #ccc;
    font-style: italic;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 15px;
    border-left: 4px solid #3167EE;
    position: relative;
    z-index: 2;
}

/* Responsive pour les trophées */
@media (max-width: 768px) {
    .trophies-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .trophy-card {
        min-width: 250px;
        margin: 0 auto;
    }
    
    .trophies-title {
        font-size: 22px;
    }
}

/* Animation d'apparition pour les cartes de trophées */
.trophy-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.trophy-card.gold {
    animation-delay: 0.2s;
}

.trophy-card.silver {
    animation-delay: 0.4s;
}

.trophy-card.bronze {
    animation-delay: 0.6s;
}

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

/* === POPUP DE CONFIRMATION PERSONNALISÉE POUR LES COFFRES === */
.coffre-confirm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    backdrop-filter: blur(8px);
    animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.coffre-confirm-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 0;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 450px;
    max-width: 90vw;
    animation: modalAppear 0.4s ease-out;
    overflow: hidden;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.coffre-confirm-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.coffre-confirm-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.coffre-confirm-icon {
    font-size: 32px;
    animation: bounce 1s ease-in-out infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
}

.coffre-confirm-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    margin: 0;
}

.coffre-confirm-content {
    padding: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.coffre-confirm-message {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.coffre-confirm-description {
    font-size: 14px;
    color: #ccc;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 0;
}

.coffre-confirm-buttons {
    padding: 0 30px 30px 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.coffre-confirm-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coffre-confirm-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.coffre-confirm-btn:hover::before {
    left: 100%;
}

.coffre-confirm-oui {
    background: linear-gradient(135deg, #FF2B42 0%, #e53935 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 43, 66, 0.3);
}

.coffre-confirm-oui:hover {
    background: linear-gradient(135deg, #e53935 0%, #FF2B42 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 43, 66, 0.5);
}

.coffre-confirm-oui:active {
    transform: translateY(-1px);
}

.coffre-confirm-non {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.coffre-confirm-non:hover {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.coffre-confirm-non:active {
    transform: translateY(-1px);
}

/* Animation de fermeture */
.coffre-confirm-overlay.closing {
    animation: fadeOutOverlay 0.3s ease-out forwards;
}

.coffre-confirm-overlay.closing .coffre-confirm-modal {
    animation: modalDisappear 0.3s ease-out forwards;
}

@keyframes fadeOutOverlay {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalDisappear {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
}

/* Responsive pour la popup */
@media (max-width: 768px) {
    .coffre-confirm-modal {
        min-width: 350px;
        margin: 0 20px;
    }

    .coffre-confirm-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .coffre-confirm-btn {
        min-width: auto;
        width: 100%;
    }

    .coffre-confirm-title {
        font-size: 20px;
    }

    .coffre-confirm-message {
        font-size: 18px;
    }
}

/* === SECTION CLASSEMENT MODERNISÉE === */
.leaderboard-showcase {
	max-width: 1015px;
	margin: 40px 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg,
                rgba(26, 26, 26, 0.95) 0%,
                rgba(49, 103, 238, 0.1) 50%,
                rgba(255, 43, 66, 0.1) 100%);
    border-radius: 25px;
    border: 2px solid #3167EE;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.cd-faq-trigger img {
  width: 1015px !important;
  margin-left: -15px !important;
  margin-top: -23px !important;
}

.leaderboard-showcase::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(49, 103, 238, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.leaderboard-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.leaderboard-container {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.leaderboard-table-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 5px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar personnalisée */
.leaderboard-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.leaderboard-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.leaderboard-table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF2B42, #3167EE);
    border-radius: 4px;
}

.leaderboard-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3167EE, #FF2B42);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    position: relative;
}

.leaderboard-header {
    background: linear-gradient(135deg, #FF2B42 0%, #3167EE 100%);
    position: sticky;
    top: 0;
    z-index: 3;
}

.leaderboard-header th {
    padding: 15px 10px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.leaderboard-header th:last-child {
    border-right: none;
}

.pos-col { width: 10%; text-align: center; }
.pseudo-col { width: 25%; text-align: left; }
.niveau-col { width: 18%; text-align: center; }
.tentatives-col { width: 17%; text-align: center; }
.coffres-col { width: 15%; text-align: center; }
.sanctuaire-col { width: 15%; text-align: center; }

.leaderboard-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

.leaderboard-row td {
    padding: 12px 10px;
    color: white;
    font-size: 14px;
    vertical-align: middle;
}

/* Styles spéciaux pour les podiums */
.leaderboard-row.first-place {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-left: 4px solid #FFD700;
}

.leaderboard-row.second-place {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%);
    border-left: 4px solid #C0C0C0;
}

.leaderboard-row.third-place {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%);
    border-left: 4px solid #CD7F32;
}

.leaderboard-row.current-user {
    background: linear-gradient(135deg, rgba(49, 103, 238, 0.2) 0%, rgba(49, 103, 238, 0.1) 100%);
    border-left: 4px solid #3167EE;
    box-shadow: 0 0 15px rgba(49, 103, 238, 0.3);
}

.pos-cell {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.medal {
    font-size: 18px;
    margin-right: 5px;
    display: inline-block;
    animation: medalShine 2s ease-in-out infinite;
}

@keyframes medalShine {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.pseudo-cell {
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.niveau-cell, .tentatives-cell, .coffres-cell, .sanctuaire-cell {
    text-align: center;
}

.niveau-badge, .tentatives-badge, .coffres-badge {
    background: linear-gradient(135deg, #3167EE, #5c8aff);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: inline-block;
    min-width: 30px;
}

.niveau-badge {
    background: linear-gradient(135deg, #FF2B42, #e53935);
}

.coffres-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    font-weight: bold;
    text-shadow: none;
}

.coffres-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.coffres-clickable:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.coffres-clickable::before {
    content: "👆";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 10px;
}

.coffres-clickable:hover::before {
    opacity: 1;
    right: -15px;
}

/* Styles pour la colonne Sanctuaire */
.sanctuaire-time {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: inline-block;
    min-width: 50px;
    text-shadow: none;
}

.sanctuaire-empty {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: bold;
}

.user-position-info {
    text-align: center;
    font-size: 18px;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 15px;
    border-left: 4px solid #FFD700;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Responsive pour le classement */
@media (max-width: 768px) {
    .leaderboard-showcase {
        margin: 20px 10px;
        padding: 20px 15px;
    }

    .leaderboard-title {
        font-size: 22px;
    }

    .leaderboard-header th {
        padding: 10px 5px;
        font-size: 10px;
    }

    .leaderboard-row td {
        padding: 8px 5px;
        font-size: 12px;
    }

    .pos-col { width: 12%; }
    .pseudo-col { width: 22%; }
    .niveau-col { width: 18%; }
    .tentatives-col { width: 16%; }
    .coffres-col { width: 16%; }
    .sanctuaire-col { width: 16%; }

    .niveau-badge, .tentatives-badge, .coffres-badge, .sanctuaire-time {
        padding: 2px 8px;
        font-size: 10px;
    }

    .sanctuaire-empty {
        font-size: 12px;
    }

    .user-position-info {
        font-size: 14px;
        padding: 10px 15px;
    }
}