@import url(./variables.css);

body {
    background-color: #000;
    color: #fff;
    font-family: var(--accent-font);
    margin: 0;
    padding: 0;
}

main {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

.en-tete {
    text-align: left;
    padding: 20px;
}
.en-tete h1 {
    font-family: var(--accent-font);
}

h1 {
    font-size: 40px;
    font-weight: 900;
}

.tri-container {
    border: 1px solid #fff;
    color: #fff;
    background-color: transparent;
    border-radius: 5px;
    padding: 10px 40px;
    display: inline-block;
    cursor: pointer;
    position: relative;
}

.tri-btn {
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: transparent;
    border-radius: 5px;
    padding: 5px 0;
    z-index: 1;
    margin-top: 10px;
    margin-left: -20px;
}

.tri-container .tri-svg {
    margin-left: 5px;
}

.tri-container:hover .dropdown-menu {
    display: block;
    background-color: black;
}

.dropdown-menu a {
    display: block;
    padding: 10px 40px;
    color: #ffffff;
    border: 1px solid white;
    text-decoration: none;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    filter: brightness(4);
}

.liste_equipe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    row-gap: 60px;
    column-gap: 10px;
    padding: 20px;
    justify-content: flex-start;
    place-items: center;
}

.liste_vide {
    display: flex;
    justify-content: center;
    /* Centre horizontalement */
    align-items: center;
    /* Centre verticalement */
    font-size: 30px;
}

/* Styles des vignettes d'équipes */

.vignette {
    max-width: 300px;
    width: 100%;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.6);
    text-align: center;
    color: #fff;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    transition: 0.3s ease-in-out;
    border: 1px solid rgb(44, 44, 44);
}

.vignette:hover {
    box-shadow: 0px 0px 31.04px 5px var(--primary-color);
}

.team-infos {
    max-width: 270px;
}

.team-incomplete {
    border: 1px solid rgb(44, 44, 44);
}

#img-logo- {
    width: 190px;
    height: 190px;
    border-radius: 100px;
    margin-top: 0px;
}

.vignette a.team-link {
    position: absolute;
    top: 0;
    left: 0;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.vignette div.Joueur {
    color: #ffffff;
    font-weight: 900;
    font-size: 16px;
}

.vignette img {
    width: 190px;
    height: 190px;
    border-radius: 100%;
    margin: 40px 40px 0px;
}

.team-name {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 20px;
}

.vignette .team-separator {
    display: block;
    background-color: var(--primary-color);
    height: 5px;
    width: 100px;
    margin-left: auto;
    margin-right: auto;
}

.team-full .team-separator {
    background-color: var(--secondary-color);
}

.joueurs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 90px;
    margin-top: 10px;
}

.vignette ul {
    padding-left: 0;
    list-style: none;
}

.vignette ul {
    padding-left: 0;
    list-style: none;
}

.vignette ul li {
    margin: 5px;
}

.vignette ul li {
    margin: 5px;
}

.vignette button {
    width: 165px;
    height: 43px;
    border-radius: 5px;
    padding: 10px;
    background-color: #2f1d62;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 20px;
    border: none;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
}

.team-incomplete button {
    position: relative;
    z-index: 100;
}

.team-full button {
    background-color: #000000;
    border: 1px solid white;
}

.team-incomplete button:hover {
    background-color: #211644;
    transition: 0.5s;
}

/* Styles pour le pop up equipe */
#alertRejoindreEquipe {
    position: absolute;
    z-index: 500;
    width: 60%;
    left: 20%;
    top: 25%;
    display: none;
    padding: 20px 0px 30px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    background: var(--fond-pages, #151515);
    box-shadow: 4px 4px 40px 0px rgba(0, 0, 0, 0.25),
        -4px -4px 40px 0px rgba(0, 0, 0, 0.25);
}

#alertRejoindreEquipe h2 {
    color: var(--text-contenu, #fff);
    /* Desktop/h2-desktop */
    font-family: var(--body-font);
    font-size: 32px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    width: 80%;
    margin: 20px 0px;
}

#alertRejoindreEquipe form {
    padding: 20px 20px 0px;
    width: 80%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
}

#alertRejoindreEquipe form textarea {
    width: 100%;
    height: 187px;
    padding: 20px;
    background-color: var(--background-color);
    color: white;
    resize: none;
    border: 1px solid white;
    box-sizing: border-box;
    font-size: 16px;
}

#alertRejoindreEquipe form div {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 100%;
}

#alertRejoindreEquipe form div input {
    display: flex;
    cursor: pointer;
    border: none;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    color: var(--text-CAT, #fff);
    /* Desktop/p-desktop */
    font-family: var(--body-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 23px;
    /* 143.75% */
}

#alertRejoindreEquipe form div input[type="button"] {
    background: var(--fond-nav, #212121);
    transition: 0.25s;
}

#alertRejoindreEquipe form div input[type="button"]:hover {
    background-color: #323232;
}

#alertRejoindreEquipe form div input[type="submit"] {
    background: var(--primaire, #2f1d62);
    transition: 0.25s;
}

#alertRejoindreEquipe form div input[type="submit"]:hover {
    opacity: 0.75;
}

/* Styles généraux pour les images */
.LOGO {
    width: 1549.27px;
    height: 586.62px;
    position: relative;
}

.LOGO img {
    width: 295px;
    height: 226px;
    display: inline-block;
    position: absolute;
    transition: transform 0.3s ease;
}

.bottom-section {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 140px;
    padding-bottom: 100px;
}

.bottom {
    text-align: center;
}

.bottom h2 {
    font-size: 24px;
}

.bottom-bouton {
    width: 165px;
    height: 43px;
    border-radius: 5px;
    padding: 10px;
    background-color: #2f1d62;
    color: #fff;
    border: none;
}

.bottom-bouton:hover {
    background-color: #211644;
    transition: 0.5s;
}

#teamScore{
    z-index : 100;
    padding: 1em;
}

#teamScore input[type="number"]{
    width: 40%;
    text-align: center;
    color: white;
    background-color: black;
    border: none;
    font-size: 1.5em;
    border-bottom: white solid;
}

#teamScore input[type="submit"]{
    width: 130px;
    height: 43px;
    border-radius: 5px;
    padding: 10px;
    background-color: #2f1d62;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 20px;
    border: none;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    margin-left: 1em;
}

@media (max-width: 1400px) {
    .LOGO {
        display: none;
    }
}

/* Media Query pour les écrans de taille réduite */
@media (max-width: 600px) {
    .bottom-section {
        flex-direction: column;
        align-items: center;
    }

    .vignette {
        max-width: 280px;
    }
    .liste_equipe {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    #alertRejoindreEquipe h2 {
        font-size: clamp(18px, 2vw, 32px);
    }
    #alertRejoindreEquipe form div {
        flex-direction: column;
        gap: 20px;
    }
}
