/* ========== DEBUT : resultats/resultats.css ========== */
:root {
    --primary: #4B0082;
    --primary-light: #7B2FBE;
    --primary-dark: #2E004F;
    --gold: #FFCC00;
    --gold-dark: #e6b800;
    --bg-light: #F0F8FF;
    --white: #ffffff;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(75,0,130,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== NAVBAR (identique accueil) ========== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--light-gray);
}

.logo-nav {
    height: 45px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-picker {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--light-gray);
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}
.lang-picker:hover { border-color: var(--gold); }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-links { display: flex; gap: 15px; align-items: center; }
.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 30px;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.btn-auth {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    transition: var(--transition);
}
.btn-auth:hover { background: var(--primary); color: white; }
.btn-auth.gold {
    background: var(--gold);
    color: black;
    border: none;
}
.btn-auth.gold:hover { background: var(--gold-dark); }

/* ========== CONTENU PRINCIPAL ========== */
.resultats-container {
    flex: 1;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.page-title i { color: var(--gold); }

/* ========== CARTE TOURNOI ========== */
.tournoi-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
}

.tournoi-header {
    margin-bottom: 20px;
}
.tournoi-header h2 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.tournoi-date {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========== PODIUM ========== */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
}

.podium-item {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 150px;
    transition: var(--transition);
}
.podium-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.podium-1 { border-top: 5px solid #FFD700; transform: scale(1.1); }
.podium-2 { border-top: 5px solid #C0C0C0; }
.podium-3 { border-top: 5px solid #CD7F32; }

.place {
    font-size: 2rem;
    margin-bottom: 10px;
}
.nom {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}
.club {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========== CLASSEMENT COMPLET ========== */
.classement-complet {
    margin-top: 20px;
}
.classement-complet h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.classement-complet ul {
    list-style: none;
}
.classement-complet li {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid var(--light-gray);
}
.classement-complet li span:first-child { font-weight: 500; }
.classement-complet li span:last-child { color: var(--primary); font-weight: 600; }

.empty-message {
    text-align: center;
    padding: 50px;
    color: var(--gray);
    font-size: 1.1rem;
}

/* ========== FOOTER ========== */
footer {
    background: #0a0a0a;
    color: var(--white);
    padding: 40px 5% 20px;
    text-align: center;
    margin-top: auto;
}
.compliance-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.badge-item {
    background: rgba(255,255,255,0.05);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: var(--gold);
    border: 1px solid rgba(255,204,0,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-box { margin-bottom: 20px; }
.contact-item {
    color: var(--gold);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: var(--transition);
}
.contact-item:hover { color: white; }
.legal p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin: 5px 0;
}

/* ========== TOASTS ========== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    background: white;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 6px solid;
    animation: slideIn 0.3s forwards;
    min-width: 280px;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--primary); }
.toast.warning { border-left-color: var(--warning); }
.toast-content { flex: 1; font-weight: 500; }
.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    font-size: 1.4rem;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1008px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 5%;
        background: var(--white);
        padding: 25px;
        border-radius: 15px;
        width: 90%;
        max-width: 300px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        border: 1px solid var(--light-gray);
        z-index: 999;
        gap: 15px;
    }
    .nav-links.active { display: flex; }
    .page-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .resultats-container { padding: 30px 15px; }
    .podium { flex-wrap: wrap; }
    .podium-item { width: 100%; max-width: 200px; }
}

@media (max-width: 400px) {
    .page-title { font-size: 1.6rem; }
    .tournoi-card { padding: 20px; }
}

@media (max-width: 200px) {
    body { font-size: 0.8rem; }
    nav { flex-direction: column; padding: 10px; }
    .nav-right { flex-wrap: wrap; gap: 10px; justify-content: center; }
    .nav-links { width: 100%; position: static; box-shadow: none; }
}
/* ========== FIN : resultats/resultats.css ========== */