:root {
    --lsa-color-date-back:  #1A5C80; /* $color-primaire-dark — bleu Vercors (ratio ~8.6:1 ✓ RGAA AA) */
    --lsa-color-date-text:  #ffffff;
    --lsa-color-title:      #1E1E1E; /* $color-text */
    --lsa-color-card-back:  #EEF4F8; /* $color-back-alt */
    --lsa-color-card-hover: #1A5C80;
    --lsa-color-title-hover:#ffffff;
    --lsa-color-cta:        #C4683A; /* $color-accent — terracotta */
    --lsa-color-cta-hover:  #934D2A; /* $color-accent-dark */
    --lsa-font-base:        "Source Sans 3", Arial, sans-serif;
}

/* ── Conteneur ─────────────────────────────────────────────── */
.lsa-wrapper {
    display: block;
}

.lsa-event-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* ── Carte ──────────────────────────────────────────────────── */
.lsa-event {
    display: flex;
}

.lsa-event a {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    transition: box-shadow .2s ease, transform .2s ease;
}

.lsa-event a:hover,
.lsa-event a:focus {
    box-shadow: 0 6px 18px rgba(26,92,128,.25);
    transform: translateY(-3px);
}

.lsa-event a:focus {
    outline: 3px solid var(--lsa-color-cta);
    outline-offset: 2px;
}

/* ── Badge date ─────────────────────────────────────────────── */
.lsa-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .6em .5em;
    background-color: var(--lsa-color-date-back);
    color: var(--lsa-color-date-text);
    font-family: var(--lsa-font-base);
    text-align: center;
    line-height: 1.1;
}

.lsa-event-day {
    display: block;
    font-size: .75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .85;
}

.lsa-event-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.lsa-event-month {
    display: block;
    font-size: .75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .85;
}

/* ── Corps de la carte ──────────────────────────────────────── */
.lsa-desc {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lsa-color-card-back);
    padding: .7em .8em;
    text-align: center;
}

.lsa-desc h4,
.lsa-event-title {
    margin: 0;
    font-family: var(--lsa-font-base);
    font-size: .95em;
    font-weight: 600;
    color: var(--lsa-color-title);
    line-height: 1.3;
}

/* ── CTA ────────────────────────────────────────────────────── */
.lsa-cta-wrapper {
    text-align: right;
    margin: .75rem 0 0;
}

.lsa-cta {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .5em 1.2em;
    border: 2px solid var(--lsa-color-cta);
    border-radius: 4px;
    color: var(--lsa-color-cta);
    font-family: var(--lsa-font-base);
    font-weight: 700;
    font-size: .9em;
    text-decoration: none;
    letter-spacing: .03em;
    transition: background-color .2s ease, color .2s ease;
}

.lsa-cta:hover,
.lsa-cta:focus {
    background-color: var(--lsa-color-cta);
    color: #fff;
    outline: none;
}

.lsa-cta:focus-visible {
    outline: 3px solid var(--lsa-color-cta-hover);
    outline-offset: 2px;
}

/* ── Badge plage de dates (expositions multi-semaines) ─────── */
.lsa-event-date--range {
    gap: .15em;
    padding: .55em .6em;
}

.lsa-range-from,
.lsa-range-sep,
.lsa-range-to {
    display: block;
    font-family: var(--lsa-font-base);
    color: var(--lsa-color-date-text);
    text-align: center;
    line-height: 1.15;
}

.lsa-range-from,
.lsa-range-to {
    font-size: .8em;
    font-weight: 700;
    letter-spacing: .02em;
}

.lsa-range-sep {
    font-size: .7em;
    font-weight: 400;
    opacity: .8;
}

/* ── Couleurs par type d'événement ──────────────────────────── */
/* Définir .lsa-{nick} pour chaque catégorie enfant de "evenement" */
/* Exemple : .lsa-concert { background-color: #C4683A; } */

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lsa-event-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lsa-event-list {
        grid-template-columns: 1fr;
    }
    .lsa-event a {
        flex-direction: row;
    }
    .lsa-event-date {
        min-width: 5rem;
        flex-shrink: 0;
    }
    .lsa-cta-wrapper {
        text-align: center;
    }
}

/* Note de source : l'agenda relaie des événements dont l'organisateur est cité sur chaque fiche */
.lsa-note {
    font-size: .875rem;
    color: #595959;
    margin: .5rem 0 0;
}
