@keyframes flotter {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(rgb(1, 15, 52), rgb(32, 63, 136));
    overflow-x: hidden;
}

a {
    color: white;
    text-decoration: none;
    padding-inline: 10px;
    padding-block: 7px;
    transition: all 0.3s;
}
a:hover {
    background-color: rgba(68, 122, 184, 0.9);
    border-radius: 150px;
}

.transparent {
    background-color: rgba(194, 212, 255, 0);
    margin: 0 auto 30px;
    min-height: 85vh;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 40px 0 0 30px;
    gap: 40px;
    width: 90%;
}

.object {
    width: 30%;
    height: 350px;
    background-color: rgba(255, 255, 255, 0.571);
    border-radius: 5px;
    padding: 15px;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
    transition: all 0.4s;
    position: relative;
}
.object:hover {
    scale: 1.05;
    animation: flotter 1s ease-in-out infinite;
cursor: pointer;
box-shadow: 0 0 10px #fff, 0 0 20px #ffffff,0 0 25px #ffffff;
}
.object h1 {
    font-size: 2em;
}

.conteneur-image {
    width: 100%;
    height: 50%;
}
.image-object {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barriere {
    width: 3px;
    background-color: rgb(23, 24, 59);
    height: 6vh;
}

label, legend {
    font-size: 1.3rem;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
}

select {
    width: 150px;
    background-color: rgba(255, 255, 255, 0.566);
    height: 3vh;
    margin-top: 3px;
    color: white;
}
option {
    background-color: rgb(19, 46, 110);
    font-family: "Montserrat", sans-serif;;
}

.prix, .NombreDeJoueurs, .lieu, .nourrit, .categorie {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.prixinput, .lieuinput {
    height: 2em;
}
.prixinput {
    width: 90px;
}
.lieuinput {
    width: 120px;
}

.labelprix, .choix, .labelRecherche {
    text-align: center;
}
.choix_non {
    margin-left: 30px;
}

form {
    background: linear-gradient(rgba(32, 63, 136, 0.527), rgba(32, 63, 136, 0));
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    height: 100%;
    padding-top: 50px;

}

form h2 {
    color: white;
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 1px solid white;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.5vw;
}

.recherche {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#recherche {
    width: 160px;
}

.ajout-activite {
    font-family: 'Montserrat';
    font-size: 1.5em;
    background-color: white;
    color: rgb(0, 43, 137);
    border-radius: 20px;
}

.passculture, .bouttons, .Ajouter {
    text-align: center;
}
.Ajouter {
    margin-bottom: 40px;
}

button {
    font-family: 'Montserrat';
    color: black;
    background-color: aliceblue;
    border: none;
    width: 80px;
    height: 30px;
    margin-left: 10px;
    border-radius: 15px;
    transition: transform 0.2s ease-in;
}
#reinitialiserFiltres {
    width: 100px;
}
button:hover {
    transform: scale(1.1);
}

.ensavoir {
    position: absolute;
    top: 320px;
    right: 0;
}

.presenceNourrit {
    text-wrap: wrap;
    max-width: 200px;
    text-align: center;
}

.responsive {
    display: flex;
    gap: 20px;
}


    .toggle-filtre {
    display: none;
    background: linear-gradient(to right, rgb(3, 32, 114),rgb(4, 29, 98));
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    margin: 10px auto;
    width: 150px;
    text-align: center;
}

.toggle-filtre i {
    margin-left: 5px;
}

/* Masquer le filtre par défaut sur mobile */
.filtre-container {
    display: block;
}



/* Responsive Tablettes */
@media (max-width: 1200px) {
    .transparent {
        justify-content: space-evenly;
        margin-top: 40px;
    }
    .object {
        width: 50%;
        font-size: 1rem;
    }
    form {
        background-color: rgba(22, 39, 82, 0.9);
        border-radius: 0 0 30px 30px;
        padding: 20px 0 20px 5vw;
        display: flex;
        gap: 20px;
        align-items: center;
        flex-wrap: wrap;
    }
    .responsive {
        display: block;
    }
    h2 {
        font-size: 1.3rem;
    }
    form h2 {
        border-right: 1px solid white;
        padding: 0 10px 0 20px;
    }
    .barriere {
        width: 5px;
        height: 8vh;
    }
    .recherche {
        margin-left: 40px;
    }
}

/* Responsive Grille pour moyenne résolution */
@media (min-width: 600px) and (max-width: 1200px) {
    .transparent {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        justify-items: center;
        margin-top: 0;
    }
    .object {
        width: 100%;
        max-width: 400px;
    }
    form{
        padding-bottom: 50px;
    }
    
}

@media (max-width: 600px){
    .object{
        width: 100vh;
    }

}


/* Exprès pour gérer le responsive du filtre pour ne pas causer de bug avec les espacements des mots etc :)) */
@media (max-width: 940px){
        .toggle-filtre {
        display: block;
    }

    .filtre-container {
        display: none;
        width: 100%;
    }

    .filtre-container.active {
        display: block;
    }

    .object {
        width: 100%;
        max-width: none;
    }

    form {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-radius: 30px;
        width: 90%;
        margin-inline: auto;
    }
.nourrit{
width:50%;
}
    .recherche{
        margin-left: 0;
    }
.labelParticipant,.labelprix,.labellieu, .labelCategorie, .presenceNourrit,.choix{
    margin-inline: auto;
    font-weight: bold;
}


    .barriere {
        height: 10px;
    }

    .prix, .NombreDeJoueurs, .lieu, .nourrit, .categorie, .passculture {
        width: 100%;
        align-items: flex-start;
    }

    select, .prixinput, .lieuinput {
        width: 80%;
        margin-inline: auto;
    }

    .choix {
        flex-direction: row;
        gap: 20px;
    }

    .choix_non {
        margin-left: 0;
    }
}