/* ===================================
   FILTRES ÉVÉNEMENTS - STYLES
   =================================== */

/* Boutons de filtre */
.btn-filter {
    transition: all 0.3s ease;
    font-weight: 500;
    border-width: 2px;
    padding: 0.5rem 1.25rem;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 135, 81, 0.2);
}

.btn-filter.btn-primary {
    background-color: #008751;
    border-color: #008751;
    color: #ffffff;
}

.btn-filter.btn-primary:hover {
    background-color: #006b3f;
    border-color: #006b3f;
}

.btn-filter.btn-outline-primary {
    color: #008751;
    border-color: #008751;
    background-color: #ffffff;
}

.btn-filter.btn-outline-primary:hover {
    background-color: #008751;
    border-color: #008751;
    color: #ffffff;
}

.btn-filter .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.btn-filter.btn-primary .badge {
    background-color: #ffffff !important;
    color: #008751 !important;
}

.btn-filter.btn-outline-primary .badge {
    background-color: #008751 !important;
    color: #ffffff !important;
}

.btn-filter.btn-outline-primary:hover .badge {
    background-color: #ffffff !important;
    color: #008751 !important;
}

/* ===================================
   SÉLECTEURS DE DATE MODERNES
   =================================== */

/* Card conteneur */
.date-filters-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 135, 81, 0.08);
    border: 1px solid rgba(0, 135, 81, 0.1);
    transition: all 0.3s ease;
}

.date-filters-card:hover {
    box-shadow: 0 8px 30px rgba(0, 135, 81, 0.12);
    transform: translateY(-2px);
}

/* Header */
.date-filters-header {
    background: linear-gradient(135deg, #008751 0%, #006b3f 100%);
    color: #ffffff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.date-filters-header i {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Body */
.date-filters-body {
    padding: 24px;
}

/* Input group */
.date-input-group {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
}

/* Input wrapper */
.date-input-wrapper {
    flex: 1;
    position: relative;
}

/* Labels */
.date-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-label i {
    color: #008751;
    font-size: 0.9rem;
}

/* Date inputs */
.date-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    background-color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.date-input:hover {
    border-color: #b8e6d0;
    background-color: #fafffe;
}

.date-input:focus {
    border-color: #008751;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 135, 81, 0.08);
    transform: translateY(-1px);
}

/* Custom calendar icon */
.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: invert(49%) sepia(79%) saturate(450%) hue-rotate(101deg) brightness(91%) contrast(101%);
}

.date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Separator */
.date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 8px;
    color: #008751;
    font-size: 1.2rem;
    opacity: 0.6;
}

/* Actions */
.date-actions {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 135, 81, 0.1);
}

/* Bouton reset moderne */
.btn-reset-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-reset-modern:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border-color: #008751;
    color: #008751;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 135, 81, 0.15);
}

.btn-reset-modern:active {
    transform: translateY(0);
}

.btn-reset-modern i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-reset-modern:hover i {
    transform: rotate(90deg);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .date-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .date-separator {
        display: none;
    }

    .date-filters-body {
        padding: 20px 16px;
    }

    .date-input {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .btn-reset-modern {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
}

/* Animation d'entrée */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-filters-card {
    animation: slideInUp 0.4s ease-out;
}

/* Ancien style de form-control (gardé pour compatibilité) */
.form-control:focus {
    border-color: #008751;
    box-shadow: 0 0 0 0.2rem rgba(0, 135, 81, 0.25);
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
    color: #008751 !important;
    border-color: #008751;
    border-right-color: transparent;
}

/* Container pour la section events */
#events-container {
    position: relative;
    min-height: 400px;
}

/* Animation des cartes */
.event-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-filter {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }

    .btn-filter .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    #status-filters {
        gap: 0.5rem !important;
    }
}

/* États de validation */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

/* Message "aucun résultat" */
.no-results-message {
    padding: 3rem 1rem;
    text-align: center;
}

.no-results-message i {
    opacity: 0.3;
}

/* Transition smooth pour le scroll */
html {
    scroll-behavior: smooth;
}
