/* --- VARIABLES & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fdfdfd;
}

h1, h2, h3, h4 {
    font-family: 'Crete Round', serif;
    text-transform: uppercase;
    font-weight: normal;
}

.wrapper {
    width: 940px;
    margin: 0 auto;
    padding: 0 15px;
}

.orange {
    color: #ff7a00;
}

.blue {
    color: #02b8dd;
}

/* --- HEADER --- */
header {
    height: 100px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

    header h1 {
        float: left;
        font-size: 32px;
        letter-spacing: -1px;
    }

    header nav {
        float: right;
        margin-top: 10px;
    }

        header nav ul li {
            display: inline-block;
            margin-left: 25px;
        }

            header nav ul li a {
                text-decoration: none;
                font-weight: bold;
                color: #444;
                font-size: 13px;
                transition: 0.3s;
            }

                header nav ul li a:hover {
                    color: #ff7a00;
                }

/* --- ACCUEIL --- */
#main-image {
    height: 550px;
    background: #222 url('../images/147.jpg') no-repeat center center;
    background-size: cover;
    text-align: center;
    padding-top: 100px;
    position: relative;
}

    #main-image h2 {
        font-size: 58px;
        color: #fff;
        text-shadow: 0 4px 10px rgba(0,0,0,0.4);
        margin-bottom: 25px;
    }

.countdown-container {
    background: rgba(255, 255, 255, 0.95);
    display: inline-block;
    padding: 25px 45px;
    border-radius: 15px;
    border-bottom: 4px solid #ff7a00;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#timer {
    font-size: 28px;
    font-weight: bold;
    color: #222;
}

    #timer span {
        color: #ff7a00;
    }

/* Remplace ta rubrique Athlètes par celle-ci */

#athletes-section {
    padding: 80px 0;
    text-align: center;
    /* --- LE FOND DÉSIRÉ ICI --- */
    background: url('../images/123.jpg') repeat fixed;
    background-size: 350px;
    min-height: 80vh;
}

    #athletes-section h2 {
        font-size: 45px;
        margin-bottom: 60px;
        background: rgba(255, 255, 255, 0.8); /* Petit fond blanc sous le titre pour qu'il soit lisible */
        display: inline-block;
        padding: 10px 20px;
        border-radius: 10px;
    }

.athlete-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.athlete-card {
    flex: 0 1 445px;
    height: 320px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.athlete-card:hover .card-bg {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(5px);
    z-index: 2;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.gabriel-card .card-overlay {
    border-left: 6px solid #ff7a00;
}

.alexia-card .card-overlay {
    border-left: 6px solid #02b8dd;
}

.gabriel-card:hover {
    box-shadow: 0 0 35px rgba(255, 122, 0, 0.5);
    transform: translateY(-10px);
}

.alexia-card:hover {
    box-shadow: 0 0 35px rgba(2, 184, 221, 0.5);
    transform: translateY(-10px);
}

/* --- TETRIS MODAL & UI --- */
#game-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 20, 0.98);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.canvas-container {
    position: relative;
    border: 4px solid #333;
    border-radius: 10px;
    box-shadow: 0 0 60px rgba(255,122,0,0.25);
    background: #000;
}

.game-ui {
    position: absolute;
    right: -200px;
    top: 30px;
    color: white;
    text-align: left;
    width: 170px;
}

.close-game {
    position: absolute;
    top: 40px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    transition: 0.3s;
}

    .close-game:hover {
        color: #ff7a00;
        transform: rotate(90deg);
    }

.game-intro-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.game-input {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    border: 2px solid #eee;
    margin-bottom: 10px;
    outline: none;
    transition: 0.3s;
    font-size: 16px;
}

    .game-input:focus {
        border-color: #ff7a00;
    }

.button-3 {
    padding: 18px 35px;
    background: #02b8dd;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
}

    .button-3:hover {
        background: #ff7a00;
        transform: scale(1.02);
    }

footer {
    padding: 80px 0;
    background: #1a1a1a;
    color: #888;
    text-align: center;
}
