*,*::before,*::after {
    box-sizing: border-box;
}
body {
    font-family: "Merriweather Sans", Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    margin: 0;
}
.all-content{
    background-image: url('../img/fond-tache.png');
    min-height: 100vh;
    width: auto;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}
header{
    background-color: #007bff;
}
.filtrerecherche {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 40px;
    padding-top: 120px;
}
.allrechercher{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.submit-search{
    background-color: transparent;
    color: #fff;
    border: white solid 2px;
    margin: auto;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 5px;
}
.submit-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.3);
}
.filtres {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.filtres select {
    padding: 10px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
select:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
   /* Ombre plus marquée au survol */
}
.filtres label {
    padding: 10px;
    margin-left: 20px;
}
/* Conteneur des cartes */
.teams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));   /* un minimum de 300px de largeur pour la carte */
    gap: 30px;
    justify-content: center;
    padding: 20px;
}
/* Style de la carte */
.card {
    background: linear-gradient(135deg, #ebf6fc, #007bff);
    color: white;
    width: 250px;
    height: 300px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    margin: auto;
    transition: all 0.3s ease-in-out;
}
.card:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #007bff, #ebf6fc);   /* inversion des couleurs du background pour un design stylé ey fluide */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .card:hover::before {
    opacity: 1;
  }
  
  .card * {
    position: relative;
    z-index: 1;
  }


.card-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}
.card h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-family: "Titan One", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.card-team {
    font-size: 1rem;
    color: #141414;
    margin-bottom: 10px;
}
.card-stats {
    font-size: 0.8rem;
    text-align: left;
    margin-top: 20px;
}
.card-stats p {
    margin: 10px 0;
}
.card-number {
    color: #171722;
    font-size: 1.1rem;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
}
input {
    padding: 10px;
    font: 1em sans-serif;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    outline: none;
}
input:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
   /* Ombre plus marquée au survol */
}
.erreur{
    margin: auto;
    font-size: 2rem;
}

.trier{
    position: relative;
}

.fleche{
    position: absolute;
    top: 70%;
    right: 30px;
    width: 50px;
    height: auto;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
}

@media screen and (max-width: 768px) {
    .filtrerecherche{
        background-color: #007bff;
        color: white;
    }

    .filtres {
        flex-direction: column;
        align-items: center;
   }
    .filtres select, .filtres form select {
        width: 100%;
        margin-bottom: 10px;
   }
    .teams {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   }
    .card {
        width: 90%;
        height: auto;
   }
    .allrechercher{
        margin: auto;
   }
   .trier{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
   }
   .fleche{
    display: none;
   }
   .submit-search{display: none;}

   }


