/* Open Agora : agenda public (cartes d'événements, fiche d'un événement). Filtres et pagination partagent les
   classes de oa-annuaire.css ; la couleur d'un type arrive par la variable --oa-type posée sur chaque carte. */

.oa-evt-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.oa-evt-carte {
    display: flex;
    flex-direction: column;
    background: var(--oa-fond-carte);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--oa-type, var(--oa-bordure-carte));
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.oa-evt-carte:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, .12); transform: translateY(-2px); }

.oa-evt-image { position: relative; display: block; overflow: hidden; }
.oa-evt-image img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .3s; }
.oa-evt-carte:hover .oa-evt-image img { transform: scale(1.04); }
.oa-evt-sans-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: color-mix(in srgb, var(--oa-type, #555) 12%, #fff);
    color: var(--oa-type, #555);
}
.oa-evt-sans-image svg { width: 44px; height: 44px; }

.oa-evt-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--oa-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.oa-evt-corps { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.oa-evt-type {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 5px;
    background: var(--oa-type, #555);
    color: #fff;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.2;
}
.oa-evt-type svg { width: 12px; height: 12px; }
.oa-evt-titre { margin: 8px 0 8px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.oa-evt-titre a { color: var(--oa-titre-carte); text-decoration: none; }
.oa-evt-titre a:hover { text-decoration: underline; }

.oa-evt-ligne {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 5px;
    font-size: 13px;
    color: var(--oa-texte-secondaire);
}
.oa-evt-ligne svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.oa-evt-date { font-weight: 600; color: var(--oa-type, var(--oa-accent)); }

.oa-evt-puces { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 8px; }
.oa-evt-puce {
    padding: 2px 9px;
    border-radius: 10px;
    background: var(--oa-puce-fond);
    color: var(--oa-puce-texte);
    font-size: 12px;
}
.oa-evt-lien {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--oa-accent);
    text-decoration: none;
}
.oa-evt-lien:hover { text-decoration: underline; }

.oa-evt-champ-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
.oa-evt-champ-date input { padding: 7px 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; background: #fff; }

.oa-evt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.oa-evt-actions a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.oa-evt-actions svg { width: 14px; height: 14px; }

.oa-evt-section-titre { margin: 0 0 4px; }
.oa-evt-voir-tout { margin: 16px 0 0; text-align: right; }
.oa-evt-voir-tout a { font-size: 13px; font-weight: 600; color: var(--oa-accent); text-decoration: none; }
.oa-evt-voir-tout a:hover { text-decoration: underline; }

/* Fiche d'un événement */
.oa-evt-fiche {
    margin: 0 0 24px;
    padding: 16px 18px;
    background: var(--oa-fond-carte);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--oa-type, var(--oa-bordure-carte));
}
.oa-evt-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin: 12px 0 0; }
.oa-evt-infos dt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--oa-titre-section);
}
.oa-evt-infos dt svg { width: 14px; height: 14px; }
.oa-evt-infos dd { margin: 2px 0 0; font-size: 15px; color: var(--oa-titre-carte); }

@media (max-width: 600px) {
    .oa-evt-grille { grid-template-columns: 1fr !important; }
}
