/* ========== DEBUT : match-details/match-details.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;
}

/* ========== NAVBAR ========== */
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; }

.user-badge {
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.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); }

.btn-logout {
    background: var(--danger);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* ========== MENU HAMBURGER ========== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

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

/* Animation en croix */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.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,
.nav-links a.active {
    background: var(--primary);
    color: white;
}

/* ========== CONTENU PRINCIPAL ========== */
.details-main {
    padding: 40px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.match-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.match-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.match-header .score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 10px;
}

.match-header .date {
    font-size: 1rem;
    opacity: 0.9;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
}

.card h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card h2 i { color: var(--gold); }

/* Composition */
.team-composition {
    margin-bottom: 25px;
}
.team-composition h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--light-gray);
}

.joueur-item {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--light-gray);
    font-size: 0.95rem;
}

.joueur-numero {
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--gray);
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 0.9rem;
}

.action-minute {
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    min-width: 40px;
    text-align: center;
}

.action-type {
    margin-left: auto;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: capitalize;
}

.empty-message {
    text-align: center;
    padding: 30px;
    color: var(--gray);
}

/* ========== 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: 1024px) {
    .details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        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: 10px;
    }
    .nav-links.active { display: flex; }
    .details-main { padding: 20px 3%; }
    .match-header h2 { font-size: 1.5rem; }
    .match-header .score { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .match-header { padding: 20px; }
    .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; }
    .btn-logout { padding: 6px 14px; font-size: 0.75rem; }
}
/* ========== FIN : match-details/match-details.css ========== */