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

body {
    font-family: 'Poppins', sans-serif;
    background: #0b0b0b;
    color: white;
    overflow-x: hidden;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("background.jpg") center/cover no-repeat;
    filter: blur(6px);
    opacity: 0.65;
    transform: scale(1.2);
    animation: zoomBg 20s ease-in-out infinite alternate;
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* ================= NAV ================= */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    flex-wrap: wrap;
}

.logo {
    width: 60px;
    animation: glow 3s infinite alternate;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: gold;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

/* ================= HERO TEXT ================= */

.hero-text {
    text-align: center;
    margin-top: 80px;
    padding: 0 20px;
    animation: fadeUp 1.5s ease forwards;
}

.hero-text h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: gold;
    text-shadow: 0 0 15px gold;
}

.hero-text p {
    margin: 20px 0;
    font-size: 18px;
    opacity: 0.9;
}

.btn {
    padding: 12px 30px;
    background: gold;
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    font-size: 16px;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px gold;
}

/* ================= MODAUX ================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: #111;
    border: 2px solid gold;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.4s ease forwards;
}

.modal h2 {
    color: gold;
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: gold;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 10;
}

.close-modal:hover {
    transform: scale(1.2);
}

/* ================= CARTES DE JOUEURS ================= */

.player-card {
    background: #111;
    border: 2px solid gold;
    border-radius: 10px;
    width: 150px;
    height: 200px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(30px);
    margin: 10px;
    cursor: pointer;
}

.player-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 2px solid gold;
}

.player-info {
    padding: 15px 10px;
    text-align: center;
}

.player-info h3 {
    color: gold;
    font-size: 16px;
    margin-bottom: 5px;
    font-family: 'Bebas Neue', sans-serif;
}

.player-info p {
    color: #ccc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 25px gold;
    border-color: #ffd700;
}

/* Contenu des modaux */
.cards {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    justify-items: center;
}

.matches li {
    list-style: none;
    margin: 15px 0;
    font-size: 18px;
    text-align: center;
}

/* ================= GALERIE ================= */

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.gallery-item {
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid gold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px gold;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ================= MODAL D'IMAGE ================= */

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.image-modal-content {
    background: #111;
    border: 3px solid gold;
    border-radius: 15px;
    padding: 40px 30px 30px 30px;
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
    animation: modalFadeIn 0.4s ease forwards;
}

.image-modal-content img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid gold;
}

.image-player-info {
    margin-top: 20px;
}

.image-player-info h3 {
    color: gold;
    font-size: 28px;
    margin-bottom: 10px;
    font-family: 'Bebas Neue', sans-serif;
}

.image-player-info p {
    color: #ccc;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-image-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: gold;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.close-image-modal:hover {
    transform: scale(1.2);
    color: #ffd700;
    background: rgba(0, 0, 0, 0.7);
}

/* ================= FOOTER ================= */

footer {
    background: black;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* ================= ANIMATIONS ================= */

@keyframes glow {
    from { filter: drop-shadow(0 0 5px gold); }
    to { filter: drop-shadow(0 0 20px gold); }
}

@keyframes zoomBg {
    from { transform: scale(1.15); }
    to { transform: scale(1.3); }
}

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

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

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px;
    }

    nav ul {
        margin-top: 15px;
        gap: 15px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .modal h2 {
        font-size: 32px;
    }

    .player-card {
        width: 130px;
        height: 180px;
        margin: 8px;
    }
    
    .player-card img {
        height: 100px;
    }
    
    .player-info {
        padding: 10px 5px;
    }
    
    .player-info h3 {
        font-size: 14px;
    }
    
    .player-info p {
        font-size: 11px;
    }
    
    .cards {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .gallery-item {
        width: 180px;
        height: 135px;
    }

    /* Modal image responsive */
    .image-modal-content {
        padding: 35px 25px 25px 25px;
        max-width: 500px;
    }
    
    .image-modal-content img {
        max-height: 350px;
    }
    
    .image-player-info h3 {
        font-size: 24px;
    }
    
    .image-player-info p {
        font-size: 16px;
    }
    
    .close-image-modal {
        font-size: 28px;
        top: 8px;
        right: 12px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 12px;
    }

    .modal h2 {
        font-size: 28px;
    }

    .modal-content {
        padding: 20px;
    }

    .player-card {
        width: 120px;
        height: 160px;
        margin: 5px;
    }
    
    .player-card img {
        height: 90px;
    }
    
    .player-info {
        padding: 8px 5px;
    }
    
    .player-info h3 {
        font-size: 13px;
    }
    
    .player-info p {
        font-size: 10px;
    }
    
    .cards {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .gallery-item {
        width: 150px;
        height: 112px;
    }

    /* Modal image responsive */
    .image-modal-content {
        padding: 30px 20px 20px 20px;
        max-width: 400px;
    }
    
    .image-modal-content img {
        max-height: 300px;
    }
    
    .image-player-info h3 {
        font-size: 22px;
    }
    
    .image-player-info p {
        font-size: 14px;
    }
    
    .close-image-modal {
        font-size: 26px;
        top: 6px;
        right: 10px;
        width: 26px;
        height: 26px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 360px) {
    .player-card {
        width: 100px;
        height: 140px;
    }
    
    .player-card img {
        height: 80px;
    }
    
    .cards {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .gallery-item {
        width: 130px;
        height: 97px;
    }

    /* Modal image responsive */
    .image-modal-content {
        padding: 25px 15px 15px 15px;
        max-width: 320px;
    }
    
    .image-modal-content img {
        max-height: 250px;
    }
    
    .image-player-info h3 {
        font-size: 20px;
    }
    
    .image-player-info p {
        font-size: 12px;
    }
    
    .close-image-modal {
        font-size: 24px;
        top: 5px;
        right: 8px;
        width: 24px;
        height: 24px;
    }
}