/* VIDEO EN FOND */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BODY */
body {
    font-family: Arial, sans-serif;
    background-color: #0B1C2D;
    color: #FFFFFF;
    margin: 0;
}

/* HEADER */
header {
    background: rgba(11, 28, 45, 0.85);
    padding: 1px 0;
    text-align: center;
    border-bottom: 4px solid #00A3E0;
}

header h1 {
    color: #00A3E0;
    font-size: 2.5rem;
}

/* NAVIGATION */
nav {
    background: rgba(0, 163, 224, 0.9);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: #FFFFFF;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    background-color: #0B1C2D;
}

/* CONTENEURS DE TEXTE */
.text-container {
    background: rgba(11, 28, 45, 0.85);
    margin: 40px auto;
    padding: 50px;
    width: 70%;
    border-radius: 15px;
    border-left: 5px solid #00A3E0;
    text-align: center;
}

footer {
    background: rgba(11, 28, 45, 0.9);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 3px solid #00A3E0;
}

/* JOUEURS et staff */
.players-slider {
    display: flex;
    align-items: center;      
    justify-content: space-between; 
    max-width: 600px;
    margin: 0 auto;
    gap: 20px;
}

.arrow {
    background: none;
    border: none;
    font-size: 3rem;
    color: #00A3E0;
    cursor: pointer;
    flex-shrink: 0;  
}

.arrow:hover {
    transform: scale(1.2);
}

.players {
    flex: 1;               
    display: flex;
    justify-content: center;
}

.player-card {
    text-align: center;
}

.player-card img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #00A3E0;
}

.player-card img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(0, 163, 224, 0.8);
}

.player-card p {
    margin-top: 5px;
    text-align: center;
}

.player-info {
    color: #CCCCCC;
    font-size: 15px;
    margin-top: 4px;
}

.role-badge {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.role-badge img {
    width: 40px;
    height: 40px;
}

.staff {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin: 40px 20px;
}

.staff img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #00A3E0;
}

/* JEUX */
.games {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 20px;
}
.game-card {
    text-align: center;
}
.game-card img {
    width: 220px;
    height: 430px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #00A3E0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(0, 163, 224, 0.8);
}

/* TABLEAU */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th,
.results-table td {
    border: 1px solid #444;
    padding: 8px;
    text-align: center;
}

.results-table th {
    background-color: #1a1a1a;
    font-weight: bold;
}

.place-1 {
    background: rgba(255, 215, 0, 0.2);
}

.place-2 {
    background: rgba(192, 192, 192, 0.2);
}

.place-3-8 {
    background: rgba(205, 127, 50, 0.2);
}

.place-9 {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav {
        flex-direction : row;
    }

    nav a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .player-card img {
        width: 200px;
        height: 200px;
    }

    .staff {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .staff img {
        width: 125px;
        height: 125px;
    }
    .games {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* chatgpt parce que je comprends pas */
        gap: 10px;
        justify-items: center; 
    }
    .game-card img {
        width: 100%;
        height: 200px;
        max-width: 100px; 
    }

    .arrow {
        font-size: 2rem;
    }

    .players-slider {
        gap: 5px;
    }
    .role-badge {
        display: flex;
        justify-content: center;
        margin-top: 5px;
    }
    
    .role-badge img {
        width: 50px;
        height: 50px;
    }
    .results-table {
        width: 100%;
        font-size: 10px;
        table-layout: fixed;
    }
    .results-table th,
    .results-table td {
    padding: 1px;
    text-align: center;
    word-wrap: break-word;
}
}
