/* ========================================
   THÈME CLAIR POUR REMISCORE
   ======================================== */

/* Variables CSS pour le thème clair */
:root {
    --bs-body-bg: #ffffff;
    --bs-body-color: #212529;
    --bs-secondary-bg: #f8f9fa;
    --bs-secondary-color: #666;
    --bs-tertiary-color: #999;
}

/* ========================================
   LAYOUT GÉNÉRAL
   ======================================== */

body {
    background-color: #f8f9fa;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* ========================================
   POPUPS
   ======================================== */

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles pour les radio buttons cachés */
.apple-toggle .btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.apple-toggle .btn-check:checked + .btn-outline-primary,
.apple-toggle .btn-outline-primary.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.apple-toggle .btn-check:checked + .btn-outline-success,
.apple-toggle .btn-outline-success.active {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.apple-toggle .btn {
    border-radius: 0;
    border-width: 1px;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.apple-toggle .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.apple-toggle .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Styles pour le podium */
.podium-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 80px;
}

.podium {
    height: 380px;
    position: relative;
}

.podium-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease-in-out;
}

.podium-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    min-width: 180px;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease-in-out;
    color: #333;
    border: 1px solid rgba(0,0,0,0.1);
}

.podium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.podium-medal {
    font-size: 2.5rem;
    margin-bottom: 8px;
    animation: bounce 2s infinite;
}

.podium-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.podium-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px 0;
    color: #2c3e50;
}

.podium-value {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 5px 0;
    color: #e67e22;
}

.podium-user {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.podium-base {
    border-radius: 10px 10px 0 0;
    width: 120px;
    position: relative;
}

.podium-base-1 {
    height: 120px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.podium-base-2 {
    height: 90px;
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

.podium-base-3 {
    height: 60px;
    background: linear-gradient(135deg, #cd7f32, #daa357);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
}

/* Styles spéciaux pour les boutons du podium */
.podium-card .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.podium-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.podium-card .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
}

.podium-card .btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    color: white;
}

.podium-card .btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    color: white;
}

/* Animation pour les médailles */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Styles pour la liste de classement */
.ranking-list {
    max-width: 600px;
    margin: 0 auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    transition: all 0.2s ease-in-out;
    border: none;
    border-radius: 10px;
    margin-bottom: 5px;
    background: #ffffff;
    color: #333;
    border: 1px solid rgba(0,0,0,0.1);
}

.ranking-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.ranking-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
    min-width: 40px;
    text-align: center;
}

.ranking-content {
    flex: 1;
    margin-left: 15px;
}

.ranking-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.ranking-value {
    color: #666;
    font-size: 0.9rem;
}

.ranking-user {
    color: #999;
    font-size: 0.8rem;
}

.person-card {
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.person-card.filtered-out {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
}

.card {
    transition: box-shadow 0.15s ease-in-out;
    background: #ffffff;
    color: #333;
    border: 1px solid rgba(0,0,0,0.1);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Style pour le tooltip personnalisé */
.custom-tooltip .tooltip-inner {
    max-width: 350px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-line;
    background-color: #2c3e50;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.custom-tooltip .tooltip-arrow::before {
    border-top-color: #2c3e50;
}
