/* ============================================================
   AGENDA — archive CPT "evenement"
   ============================================================ */

.agenda-archive {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
}

/* En-tête sombre */
.agenda-archive__header {
    background: var(--color-dark);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* État vide */
.agenda-archive__empty {
    padding: 24px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #888;
}

/* Grille 2 colonnes */
.agenda-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Cellule événement */
.agenda-item {
    padding: 18px 20px;
    border-bottom: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Supprime la bordure droite sur les éléments de la 2e colonne */
.agenda-item:nth-child(even) {
    border-right: none;
}

/* Supprime la bordure basse sur les 2 derniers éléments (dernière ligne) */
.agenda-item:nth-last-child(-n+2):nth-child(odd),
.agenda-item:last-child {
    border-bottom: none;
}

/* Titre — lien vert */
.agenda-item__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-agenda);
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.15s;
}

.agenda-item__title:hover {
    color: var(--color-dark);
}

/* Dates */
.agenda-item__dates {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 4px;
}

/* Lieu */
.agenda-item__lieu {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #555;
    line-height: 1.4;
}

/* URL externe */
.agenda-item__url {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    margin-top: 2px;
    transition: color 0.15s;
}

.agenda-item__url:hover {
    color: var(--color-agenda);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 599px) {
    .agenda-grid {
        grid-template-columns: 1fr;
    }

    .agenda-item {
        border-right: none;
    }

    .agenda-item:last-child {
        border-bottom: none;
    }

    /* Réinitialise la règle "dernière ligne" multi-colonnes */
    .agenda-item:nth-last-child(-n+2):nth-child(odd) {
        border-bottom: 1px solid #ebebeb;
    }
}
