.header-container {
    background: white;
    padding: 15px 0px 10px 0px;
    text-align: center;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.badge {
    width: 25px;
    height: 25px;
}

.calendar-title {
    color: #018C60;
    margin-bottom: 10px;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.select-group {
    display: flex;
    gap: 5px;
}

.small-select {
    width: 100px;
    font-size: 14px;
    padding: 5px;
    text-align: center;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #018C60;
    cursor: pointer;
}

.pdf-btn {
    background: #018C60;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
}

.calendar-container {
    padding: 25px 20px;
    background-color: #71A56F;
}

.container-md {
    margin: 0 auto;
}

.card {
    background: white !important;
    padding: 0px !important;
    border: none !important;
    border-radius: 30px !important;
}

.event-card {
    background: white;
    padding: 10px;
    border: none;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-title {
        font-size: 22px;
    }

    .event-right {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
    }

     /* On autorise le retour à la ligne dans .calendar-controls */
     .calendar-controls {
        flex-wrap: wrap;      /* Autorise les éléments à passer à la ligne */
        gap: 10px;
        justify-content: center;
    }

    /* On force le bouton PDF à prendre 100% de la ligne, par exemple */
    .pdf-btn {
        flex: 0 0 100%;       /* Force le bouton PDF à occuper toute la largeur */
        margin-top: 5px;      /* Petite marge au-dessus si besoin */
        text-align: center;   /* Centre le texte du bouton */
    }
    
}

.event-divider {
    border: none;
    height: 1px;
    background-color: black;
    margin: 10px 0;
}

.event-details {
    font-size: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 1.5;
}

.voir-plus {
    color: #018C60;
    font-weight: bold;
    cursor: pointer;
}

.voir-plus:hover {
    color: #016847;
    text-decoration: underline;
}

.event-title {
    font-size: 26px;
    font-weight: bold;
    color: #018C60;
}

.popup {
    display: none; /* caché par défaut, on l’affiche via JS */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #71A56F;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup .close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
}

.popup .popup-date {
    font-size: 0.9rem;
    color: #eee;
    margin-bottom: 1rem;
}

.popup .popup-infos {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    gap: 20px;
}

.popup .popup-col {
    flex: 1;
    min-width: 180px;
}

.overlay {
    display: none; /* caché par défaut, on l’affiche via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 768px) {
    .popup {
      width: 90%;
      max-height: 80vh; /* limite la hauteur à 80% de la fenêtre */
      overflow-y: auto; /* rend le contenu défilable */
      overflow-x: hidden; /* évite les barres de défilement horizontales si ce n’est pas nécessaire */
    }
}

.filters-section {
    background-color: #fff;
}

.filters-section .card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.filters-section .card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-control {
    border-radius: 0.5rem;
}

.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

/* Styles pour le bouton toggle des filtres */
#toggle-filters {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .filters-section {
        margin-bottom: 20px;
    }
}