/* ===== Événements : agenda et page d'un événement ===== */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.k-btn--block { width: 100%; box-sizing: border-box; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
button.k-btn { border: 0; cursor: pointer; font-family: inherit; }
button.k-btn--outline { border: 1.5px solid var(--ink); }

.e-hero .d-hero__head { padding-bottom: 56px; }
.e-lead { max-width: 560px; margin: 0 auto 22px; font-size: 18px; line-height: 1.5; opacity: .9; }

/* Grille de cartes */
.e-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.e-grid--past { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; opacity: .8; }
.e-past-title { margin-top: 56px; }
.ev-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; text-decoration: none; color: var(--ink);
    box-shadow: 0 14px 34px rgba(20,20,40,.1); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(20,20,40,.14); }
.ev-card:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.ev-card__cover { position: relative; height: 170px; background: linear-gradient(135deg, #3a74ec, #ff1f6b) center / cover no-repeat; }
.ev-card--small .ev-card__cover { height: 110px; }
.ev-card__date { position: absolute; left: 14px; top: 14px; width: 58px; height: 62px; border-radius: 14px; background: #fff; display: flex; flex-direction: column;
    align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--pink-ink); box-shadow: 0 6px 18px rgba(0,0,0,.15); text-transform: uppercase; }
.ev-card__date b { font-size: 24px; line-height: 1; color: var(--ink); }
.ev-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.ev-card__title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.ev-card--small .ev-card__title { font-size: 16px; }
.ev-card__meta { font-size: 14px; color: var(--text-2); }
.ev-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); }
.ev-pill { padding: 4px 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-ink); font-weight: 700; white-space: nowrap; }
.ev-pill--full { background: #f1f1f4; color: var(--muted); }

.e-empty { text-align: center; padding: 30px 16px; }
.e-empty__icon { font-size: 48px; margin: 0; }

/* Page d'un événement */
.e-page { max-width: 1100px; margin: 0 auto; padding: 0 24px 40px; }
.e-back { margin: 0 0 16px; }
.e-back a { text-decoration: none; font-weight: 600; color: var(--muted); }
.e-back a:hover { color: var(--pink-ink); }
.e-detail__cover { position: relative; height: clamp(200px, 36vw, 380px); border-radius: 32px; background: linear-gradient(135deg, #3a74ec, #ff1f6b) center / cover no-repeat; }
.e-flag { position: absolute; left: 20px; top: 20px; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-weight: 700; }
.e-flag--cancel { background: #dc2626; }
.e-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; margin-top: 32px; align-items: start; }
.e-detail__title { margin: 0 0 20px; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.e-facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.e-facts li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.45; }
.e-facts li > span { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-soft); font-size: 20px; }
.e-facts a { color: var(--pink-ink); font-weight: 600; text-decoration: none; }
.e-desc { font-size: 17px; line-height: 1.65; color: var(--text-2); overflow-wrap: anywhere; }

.e-side { position: sticky; top: 20px; display: grid; gap: 16px; }
.e-box { padding: 22px; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(20,20,40,.08); display: grid; gap: 12px; }
.e-box form { margin: 0; }
.e-count { margin: 0; font-size: 17px; }
.e-count strong { font-size: 28px; }
.e-ok { margin: 0; font-weight: 700; color: #16a34a; }
.e-ics { text-align: center; text-decoration: none; font-weight: 600; color: var(--ink); padding: 8px; border-radius: 12px; }
.e-ics:hover { background: #f5f5f8; }
.e-flash { padding: 12px 14px; border-radius: 14px; font-weight: 600; }
.e-flash--ok { background: #e3f7e9; color: #177a3c; }
.e-flash--error { background: #fde8e8; color: #b42318; }
.e-host { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: #fafafb; text-decoration: none; }
.e-host:hover { background: var(--pink-soft); }
.e-host img, .e-host > span:first-child { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 800; flex-shrink: 0; }
.e-people p { margin: 0 0 8px; }
.e-people ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.e-people img, .e-people span { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink-ink); font-weight: 700; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.1); }

@media (max-width: 860px) {
    .e-detail__grid { grid-template-columns: 1fr; gap: 24px; }
    .e-side { position: static; }
    .e-page { padding: 0 16px 32px; }
    .e-detail__cover { border-radius: 24px; }
    .e-grid { grid-template-columns: 1fr; }
    .e-grid--past { grid-template-columns: 1fr 1fr; }
}
.e-privacy { margin: 0; line-height: 1.45; }
.e-privacy a { color: inherit; }
