/* =================== GLOBAL =================== */

body {
    background-color: black;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    color: white;
}

h1, h2, h3, p, label {
    color: white;
}

h2 {
    text-align: center;
}

/* =================== HEADER =================== */

header {
    background-color: rgb(255, 119, 0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
}

#Logo {
    width: 120px;
    height: auto;
}

header h1 {
    margin: 10px;
    font-size: 50px;
}

header h3 {
    margin: 0;
    font-size: 22px;
    text-align: center;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-bouttons {
    background-color: black;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 16px;
    transition: 0.3s;
}

.header-bouttons:hover {
    background-color: white;
    color: black;
}

/* =================== GRILLE ÉQUIPES =================== */

.equipes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: auto;
    padding-top: 20px;
    margin-bottom: 60px;
}

.equipe-card {
    background-color: #111;
    border: 2px solid rgb(255, 119, 0);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    margin: auto;
}

.equipe-photo {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: auto;
}

.equipes-grid .equipe-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
}

.equipes-grid .equipe-card:last-child .equipe-photo {
    height: auto;
    max-height: 330px;
    object-fit: contain;
    background-color: black;
    padding: 5px;
}

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

footer {
    background-color: rgb(255, 119, 0);
    padding: 30px 0;
}

.sponsor {
    width: 100%;
    text-align: center;
}

.sponsor_titre {
    color: black;
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Logos sponsors – version stable */

.sponsor-logos {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sponsor-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logos img {
    width: 180px;
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sponsor-logos img:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

/* Séparation */

hr {
    border: none;
    border-top: 2px solid #111;
    max-width: 1100px;
    margin: 25px auto;
}

/* Contact */

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.contact-info p {
    color: black;
    font-weight: bold;
    margin: 0;
}

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

/* Tablettes */

@media (max-width: 900px) {

    header {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    header h1 {
        font-size: 40px;
    }

    .header-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .equipes-grid {
        grid-template-columns: 1fr;
    }
}

/* =================== MOBILE (CORRECTION CLÉ) =================== */

@media (max-width: 600px) {

    header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    #Logo {
        width: 90px;
    }

    header h1 {
        font-size: 32px;
        margin: 5px 0;
    }

    header h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
} 