/* ===================================
   RÉINITIALISATION DE BASE
=================================== */
*, *::after, *::before {
    box-sizing: border-box; /* Inclut padding et border dans les dimensions */
    margin: 0;
    padding: 0;
}

/* ===================================
   STRUCTURE GLOBALE
=================================== */
html, body {
    width: 100%;
    min-width: 768px; /* Empêche un layout trop étroit */
    overflow-x: hidden; /* Supprime les scrolls horizontaux */
    font-family: 'Montserrat', sans-serif;
    background-color: #151e2d;
}

/* ===================================
   HEADER
=================================== */
header {
    background: url(images/image1.jpg) center/cover no-repeat;
    height: 628px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    color: white;
    border-bottom: 2px solid whitesmoke;
    width: 100vw;
    gap: 30px;
    position: relative;
}

/* Logo dans le header */
.logo {
    width: 70px;
    height: 70px;
    aspect-ratio: 1/1;
    margin-top: 16px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Liens à gauche et droite du logo */
.left-text, .right-text {
    color: white;
    margin-top: 45px;
    font-size: 1.2em;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.left-text:hover, .right-text:hover {
    transform: scale(1.05);
    color: #9d2521;
}

/* Titre dans le header */
h1 {
    position: absolute;
    margin-top: 350px;
    font-size: 4em;
    font-weight: bold;
    color: white;
    transition: transform 0.3s ease;
}

h1:hover {
    transform: scale(1.05);
}

/* ===================================
   CARTE JOUEUR
=================================== */
.card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Image du joueur */
.player-img {
    max-height: 700px;
    position: relative;
    z-index: 1;
}

/* Informations à côté de l'image */
.info {
    color: white;
    margin-left: 40px;
    max-width: 300px;
    z-index: 1;
}

.info h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.info p {
    margin: 5px 0;
    font-size: 1rem;
}

/* Bouton de retour */
.back-button {
    display: flex;
    margin: 50px 0 0 50px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    background-color: #9d2521;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #c0312d;
}

/* ===================================
   FOOTER
=================================== */
.footer {
    background-color: white;
    color: #151e2d;
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid #9d2521;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
}

.footercontent {
    max-width: 1000px;
    margin: 0 auto;
}

.footerlogo img {
    margin: 10px 15px;
    vertical-align: middle;
}

.footerliens {
    margin: 15px 0;
}

.footerliens a {
    color: #151e2d;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
}

.footerliens a:hover {
    text-decoration: underline;
}

.footertext {
    font-size: 0.9em;
    margin-top: 10px;
}

/* ===================================
    RESPONSIVE
=================================== */
@media (max-width: 768px) {
    body {
        padding: 0 15px;
        font-size: 16px;
    }

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .left-text,
    .right-text {
        margin: 10px 0;
        font-size: 1em;
    }

    .logo {
        width: 80px;
        height: auto;
        margin: 10px 0;
    }

    h1 {
        font-size: 1.5em;
        margin: 10px 0;
    }

    .back-button {
        width: 100%;
        margin: 10px 0 20px 0;
        padding: 10px;
        font-size: 1em;
    }

    main.card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .player-img {
        width: 100%;
        max-width: 350px;
        height: auto;
    }

    .info {
        width: 100%;
        padding: 10px;
        margin-left: 0;
    }

    .info h2 {
        font-size: 1.3em;
    }

    .info p {
        font-size: 1em;
        margin: 10px 0;
    }

    #footer {
        margin-top: 30px;
    }
}
