.agenda-filtre {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-bottom: 2rem;
justify-content: space-evenly;
}

.filtre{
    margin-bottom: 50px;
}

.agenda-filtre span{
    position: relative;
    font-size: 16px;
    color: black;
    font-weight: 800;
    margin-right: 25px
}

.agenda-filtre button {
    padding: 0.6rem 1.2rem;
    background-color: white!important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: black!important;
    font-size: 1em;
    line-height: 1.2;
    text-align: center;
}

.agenda-filtre button:hover {
background-color: black!important;
color: white!important;
}

.agenda-filtre button.actif {
    background-color: black!important;
    color: white!important;
    border-color: black;
    box-shadow: 2px -2px 0px rgba(180, 67, 91, 1);
}


#contenu-evenements {
display: grid;
gap: 1.5rem; 
grid-template-columns: repeat(4, 1fr); 
padding: 0 1rem;
}

@media (max-width: 1024px) {
    .filtre{
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    .bouton-flex{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .agenda-filtre{
        flex-direction: column;
        align-items: center;
        width: 45%;
    }
    #contenu-evenements {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    #contenu-evenements {
        grid-template-columns: 1fr;
    }
    .agenda-filtre button {
        width: 100%;
    }
    .agenda-filtre{
        width: 100%;
    }
    .filtre{
        flex-direction: column;
        align-items: center;
    }
}


.evenement-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 10px;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
    gap:1.2rem;
}

.evenement-item:hover {
transform: translateY(-3px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.evenement-titre {
margin-bottom: 0.5rem;
}

.evenement-titre a {
    color: black;
    text-decoration: none;
    line-height: 1.4;
}

.evenement-titre a:hover {
color: #b43947;
}

p.evenement-dates{
font-size: 1.2em;
color: #4b5563;
margin-bottom: 0.5rem;
}

.evenement-ligne{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.evenement-ligne p{
    margin: 0;
}

.evenement-badges {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    right: 0;
    font-size: 0.8em;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-cpf {
background-color: #d1fae5;
color: #065f46;
border: 1px solid #065f46;
border-radius: 12px;
padding: 0 1em;
}

.evenement-bouton {
    display: block;
    width: auto;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.75em;
    padding: 0.75rem 1rem;
    background-color: #b43947;
    color: white!important;
    text-decoration: none;
}

.evenement-bouton:hover {
background-color: black;
color: white!important;
transform: translateY(-1px);
}

.aucun-evenement {
grid-column: 1 / -1;
text-align: center;
padding: 2rem;
font-size: 1.1rem;
color: #6b7280;
}
.aucun-evenement.erreur {
    color: #dc2626;
    font-weight: 600;
}