/* ============================================================
   EAV — Calendrier communautaire
   ============================================================ */

:root {
    --eav-bleu: #050A95;
    --eav-rouge: #C7112E;
    --eav-bleu-clair: #e8e9f7;
}

.eav-calendrier {
    max-width: 860px;
    margin: 0 auto;
    font-family: inherit;
}

.eav-cal-titre {
    margin-bottom: 1.5rem;
}

/* --- Filtres villes --- */
.eav-cal-filtres-villes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.eav-cal-filtre-ville {
    padding: 0.35rem 1rem;
    border: 2px solid var(--eav-bleu);
    border-radius: 2rem;
    background: transparent;
    color: var(--eav-bleu);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.eav-cal-filtre-ville:hover,
.eav-cal-filtre-ville.actif {
    background: var(--eav-bleu);
    color: #fff;
}

/* --- Navigation semaines --- */
.eav-cal-nav-semaines {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--eav-bleu-clair);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.eav-cal-nav-btn {
    background: var(--eav-bleu);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.eav-cal-nav-btn:hover {
    background: var(--eav-rouge);
}

.eav-cal-nav-btn:disabled {
    background: #b0bec5;
    cursor: default;
}

.eav-cal-sem-label {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--eav-bleu);
}

/* --- Cards événements --- */
.eav-cal-events {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eav-cal-card {
    background: #fff;
    border: 1px solid #dce3ec;
    border-left: 4px solid var(--eav-bleu);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.15s;
}

.eav-cal-card:hover {
    box-shadow: 0 3px 10px rgba(0,50,96,0.1);
}

.eav-cal-card.eav-hidden {
    display: none;
}

/* --- Séparateurs de jour --- */
.eav-cal-sep-jour {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0.5rem;
}

.eav-cal-sep-jour:first-child {
    margin-top: 0;
}

.eav-cal-sep-jour::before,
.eav-cal-sep-jour::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--eav-bleu);
    opacity: 0.15;
}

.eav-cal-sep-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--eav-bleu);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* --- Bandeau "En ce moment" (événements multi-semaines en cours) --- */
.eav-cal-sep-encours::before,
.eav-cal-sep-encours::after {
    background: var(--eav-rouge);
}

.eav-cal-sep-encours .eav-cal-sep-label {
    color: var(--eav-rouge);
}

.eav-cal-card.eav-encours {
    border-left-color: var(--eav-rouge);
}

/* --- En-tête de card --- */
.eav-cal-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

/* --- Heure --- */
.eav-cal-heure {
    font-size: 0.8rem;
    color: var(--eav-rouge);
    font-weight: 700;
}

/* --- Badge ville --- */
.eav-cal-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--eav-bleu);
    white-space: nowrap;
}

/* --- Titre événement --- */
.eav-cal-card-titre {
    font-size: 1rem;
    font-weight: 700;
    color: var(--eav-bleu);
    margin: 0 0 0.4rem 0;
    line-height: 1.35;
}

/* --- Lieu --- */
.eav-cal-lieu {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 0.4rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
}

.eav-cal-lieu-icon {
    flex-shrink: 0;
    line-height: 1.4;
}

/* --- Toggle description --- */
.eav-cal-desc-wrap {
    margin: 0.4rem 0;
}

.eav-cal-desc-toggle {
    background: none;
    border: none;
    padding: 0;
    color: #64748b;
    font-size: 0.78rem;
    cursor: pointer;
    font-style: italic;
}

.eav-cal-desc-toggle:hover {
    color: var(--eav-bleu);
}

.eav-cal-description {
    font-size: 0.82rem;
    color: #475569;
    margin-top: 0.4rem;
    line-height: 1.6;
    word-break: break-word;
}

.eav-cal-description p {
    margin: 0 0 0.4rem 0;
}

.eav-cal-description p:last-child {
    margin-bottom: 0;
}

.eav-cal-description p {
    margin: 0 0 0.4rem 0;
}

.eav-cal-description p:last-child {
    margin-bottom: 0;
}

/* --- Bouton Ajouter --- */
.eav-cal-add-btn {
    display: inline-block;
    margin-top: 0.6rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.eav-cal-add-btn:hover {
    color: var(--eav-bleu);
    text-decoration: underline;
}

/* --- Message vide --- */
.eav-cal-vide {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

.eav-cal-aucun-filtre {
    text-align: center;
    padding: 1.5rem;
    color: #94a3b8;
    font-style: italic;
    display: none;
}

.eav-cal-aucun-filtre.visible {
    display: block;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .eav-cal-card {
        padding: 0.85rem 1rem;
    }

    .eav-cal-nav-semaines {
        padding: 0.6rem 0.75rem;
    }

    .eav-cal-sem-label {
        font-size: 0.85rem;
    }
}
