/* ==========================================================================
   VOTES DU PARLEMENT EUROPÉEN — page /votes (public/votes.php)
   Feuille statique versionnée (header.php : $pageCss), mise en cache.
   ========================================================================== */

.ev {
    --ev-line: rgba(148, 163, 184, 0.14);
    --ev-line-md: rgba(148, 163, 184, 0.26);
    --ev-text: #eef2f8;
    --ev-body: #b9c4d3;
    --ev-muted: #7f8ba0;
    --ev-accent: #7fb8ff;
    --ev-surface: #0c1424;
    --ev-for: #22c55e;
    --ev-against: #ef4444;
    --ev-abst: #f5b301;
    --ev-none: #3b475a;
    padding-top: clamp(96px, 9vw, 112px);
    padding-bottom: clamp(3rem, 7vw, 5rem);
    color: var(--ev-body);
}
.ev-head { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.4rem; }
.ev-title { margin: 0; color: #fff; font-weight: 800; font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.08; letter-spacing: -.025em; }
.ev-desc { margin: 0; color: var(--ev-muted); font-size: 1.02rem; line-height: 1.6; max-width: 66ch; }


/* ---- Séances ---- */
.ev-dates { display: flex; gap: .45rem; overflow-x: auto; padding: .1rem 0 .9rem; margin-bottom: 1.2rem; scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.3) transparent; }
.ev-dates::-webkit-scrollbar { height: 6px; }
.ev-dates::-webkit-scrollbar-thumb { background: rgba(148,163,184,.3); border-radius: 3px; }
.ev-date {
    flex: 0 0 auto; display: flex; flex-direction: column; gap: .1rem; min-width: 92px;
    padding: .55rem .8rem; border: 1px solid var(--ev-line-md); border-radius: 10px;
    color: var(--ev-body); text-decoration: none; transition: border-color .15s linear, background .15s linear;
}
.ev-date:hover { border-color: rgba(148,163,184,.45); }
.ev-date[aria-current="true"] { border-color: rgba(127,184,255,.6); background: rgba(127,184,255,.08); color: #fff; }
.ev-date b { font-size: .92rem; font-weight: 700; color: inherit; }
.ev-date span { font-size: .76rem; color: var(--ev-muted); }

.ev-sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ev-line); }
.ev-sum h2 { margin: 0; color: #fff; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.ev-sum h2::first-letter { text-transform: uppercase; }
.ev-sum p { margin: 0; color: var(--ev-muted); font-size: .9rem; }
.ev-sum a { color: var(--ev-accent); text-decoration: none; }
.ev-sum a:hover { text-decoration: underline; }

.ev-notice { margin: 0 0 1rem; padding: .7rem .9rem; border: 1px solid rgba(127,184,255,.3); border-radius: 10px; background: rgba(127,184,255,.06); color: var(--ev-body); font-size: .9rem; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.ev-notice[hidden] { display: none; }
.ev-notice button { border: 0; border-radius: 8px; padding: .4rem .8rem; background: #2563eb; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ev-empty { padding: 3rem 0; color: var(--ev-muted); text-align: center; }

/* ---- Sujets ---- */
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-item { border-bottom: 1px solid var(--ev-line); padding: 1.15rem 0; }
.ev-item__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: .8rem 2rem; align-items: start; }
.ev-item__meta { margin: 0 0 .3rem; font-size: .78rem; color: var(--ev-muted); display: flex; flex-wrap: wrap; gap: .25rem .7rem; }
.ev-item__meta a { color: var(--ev-muted); text-decoration: none; border-bottom: 1px dotted currentColor; }
.ev-item__meta a:hover { color: var(--ev-accent); }
.ev-item__title { margin: 0; color: var(--ev-text); font-size: 1.08rem; font-weight: 650; line-height: 1.38; }
.ev-item__vote { margin: .3rem 0 0; font-size: .86rem; color: var(--ev-muted); }

.ev-res { display: flex; flex-direction: column; gap: .45rem; }
.ev-res__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ev-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.ev-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ev-badge--ADOPTED { color: var(--ev-for); }
.ev-badge--REJECTED { color: var(--ev-against); }
.ev-badge--LAPSED, .ev-badge--, .ev-badge--none { color: var(--ev-muted); }
.ev-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(148,163,184,.12); }
.ev-bar i { display: block; height: 100%; }
.ev-bar .f { background: var(--ev-for); } .ev-bar .a { background: var(--ev-against); } .ev-bar .x { background: var(--ev-abst); } .ev-bar .n { background: var(--ev-none); }
.ev-nums { display: flex; gap: .9rem; font-size: .8rem; color: var(--ev-muted); font-variant-numeric: tabular-nums; }
.ev-nums b { color: var(--ev-text); font-weight: 650; }
.ev-nums .k::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: .3rem; vertical-align: 1px; }
.ev-nums .k.f::before { background: var(--ev-for); } .ev-nums .k.a::before { background: var(--ev-against); } .ev-nums .k.x::before { background: var(--ev-abst); } .ev-nums .k.n::before { background: var(--ev-none); }
.ev-res__note { font-size: .78rem; color: var(--ev-muted); }

.ev-open {
    margin-top: .2rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .75rem; border: 1px solid var(--ev-line-md); border-radius: 8px; background: transparent;
    color: var(--ev-text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: border-color .15s linear;
}
.ev-open:hover { border-color: rgba(127,184,255,.55); }
.ev-open svg { width: 12px; height: 12px; transition: transform .2s ease; }
.ev-open[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---- Panneau de détail ---- */
.ev-panel { margin-top: 1.1rem; padding: 1.2rem; border: 1px solid var(--ev-line); border-radius: 14px; background: var(--ev-surface); }
.ev-panel[hidden] { display: none; }
.ev-panel__loading { color: var(--ev-muted); font-size: .9rem; }
.ev-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .85rem; color: var(--ev-muted); }
.ev-switch select, .ev-filters select, .ev-filters input {
    height: 36px; max-width: 100%; padding: 0 .6rem; border: 1px solid var(--ev-line-md); border-radius: 8px;
    background: #0a1120; color: var(--ev-text); font: inherit; font-size: .85rem;
}
.ev-switch select { flex: 1 1 280px; min-width: 0; }
.ev-vhead { margin: 0 0 .9rem; }
.ev-vhead h3 { margin: 0; color: #fff; font-size: 1rem; font-weight: 650; }
.ev-vhead p { margin: .2rem 0 0; color: var(--ev-muted); font-size: .82rem; }

.ev-charts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ev-hemi svg { display: block; width: 100%; height: auto; }
.ev-hemi__totals { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .4rem; font-size: .84rem; color: var(--ev-muted); font-variant-numeric: tabular-nums; }
.ev-hemi__totals b { color: var(--ev-text); }
.ev-groups { display: flex; flex-direction: column; gap: .55rem; }
.ev-group { display: grid; grid-template-columns: 82px minmax(0, 1fr) 34px; gap: .6rem; align-items: center; font-size: .8rem; }
.ev-group__name { color: var(--ev-text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-group__name::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; background: var(--g, #8a94a3); }
.ev-group .ev-bar { height: 12px; border-radius: 3px; }
.ev-group__n { color: var(--ev-muted); text-align: right; font-variant-numeric: tabular-nums; }
.ev-groups__note { margin: .3rem 0 0; font-size: .76rem; color: var(--ev-muted); }

.ev-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 .7rem; }
.ev-filters input { flex: 1 1 200px; min-width: 0; }
.ev-count { font-size: .8rem; color: var(--ev-muted); margin: 0 0 .4rem; }
.ev-table-wrap { max-height: 460px; overflow: auto; border: 1px solid var(--ev-line); border-radius: 10px; }
.ev-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ev-table th { position: sticky; top: 0; z-index: 1; background: #0a1120; color: var(--ev-muted); font-weight: 600; text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--ev-line-md); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.ev-table td { padding: .45rem .75rem; border-bottom: 1px solid var(--ev-line); color: var(--ev-body); }
.ev-table tr:last-child td { border-bottom: 0; }
.ev-table a { color: var(--ev-text); text-decoration: none; }
.ev-table a:hover { color: var(--ev-accent); text-decoration: underline; }
.ev-pos { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; white-space: nowrap; }
.ev-pos::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ev-pos.f { color: var(--ev-for); } .ev-pos.a { color: var(--ev-against); } .ev-pos.x { color: var(--ev-abst); } .ev-pos.n { color: var(--ev-muted); }
.ev-intent { display: block; font-size: .74rem; color: var(--ev-muted); font-weight: 400; }
.ev-nominal-none { margin: .2rem 0 0; color: var(--ev-muted); font-size: .88rem; }

.ev-about { margin-top: 2.2rem; font-size: .8rem; color: var(--ev-muted); line-height: 1.6; max-width: 80ch; }
.ev-about a { color: var(--ev-accent); }

@media (max-width: 860px) {
    .ev-item__row, .ev-charts { grid-template-columns: minmax(0, 1fr); }
    .ev-panel { padding: 1rem .8rem; margin-left: -.4rem; margin-right: -.4rem; }
    .ev-table .c-country { display: none; }
}
@media (max-width: 480px) {
    .ev-group { grid-template-columns: 74px minmax(0, 1fr) 28px; }
    .ev-table td, .ev-table th { padding: .45rem .5rem; }
}

/* Rendu paresseux : une archive peut lister des centaines de sujets ; le
   navigateur ne met en page que ceux qui approchent de l'écran. */
.ev-item { content-visibility: auto; contain-intrinsic-size: auto 120px; }

/* ==========================================================================
   BARRE D'OUTILS : recherche + calendrier
   ========================================================================== */
.ev-tools { display: flex; gap: .6rem; align-items: stretch; margin: 0 0 1rem; position: relative; z-index: 20; }
.ev-search { position: relative; flex: 1 1 auto; min-width: 0; margin: 0; }
.ev-search__box {
    display: flex; align-items: center; gap: .6rem; height: 48px; padding: 0 .55rem 0 .9rem;
    border: 1px solid var(--ev-line-md); border-radius: 12px; background: rgba(255,255,255,.03);
    transition: border-color .15s linear, background .15s linear, box-shadow .15s linear;
}
.ev-search__box:focus-within { border-color: rgba(127,184,255,.6); background: rgba(255,255,255,.045); box-shadow: 0 0 0 4px rgba(127,184,255,.08); }
.ev-search__box > svg { width: 18px; height: 18px; color: var(--ev-muted); flex-shrink: 0; }
.ev-search__input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
    color: var(--ev-text); font: inherit; font-size: .98rem;
}
.ev-search__input::placeholder { color: var(--ev-muted); }
.ev-search__input::-webkit-search-cancel-button { display: none; }
.ev-search__clear { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ev-muted); cursor: pointer; }
.ev-search__clear svg { width: 14px; height: 14px; }
.ev-search__clear:hover { background: rgba(255,255,255,.06); color: var(--ev-text); }
.ev-search__clear[hidden] { display: none; }
.ev-kbd { font-size: .72rem; font-weight: 600; line-height: 1; color: var(--ev-muted); border: 1px solid var(--ev-line-md); border-bottom-width: 2px; border-radius: 5px; padding: .22rem .38rem; }
.ev-search__box:focus-within .ev-kbd { display: none; }

.ev-results {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px);
    max-height: min(70vh, 560px); overflow: auto; overscroll-behavior: contain;
    padding: .4rem; border: 1px solid var(--ev-line-md); border-radius: 14px;
    background: #0b1322; box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.ev-results[hidden] { display: none; }
.ev-results__status { padding: .8rem .7rem; color: var(--ev-muted); font-size: .88rem; }
.ev-rgroup + .ev-rgroup { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--ev-line); }
.ev-rgroup__head { display: flex; justify-content: space-between; padding: .45rem .7rem .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ev-muted); }
.ev-ropt {
    display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .7rem; align-items: center;
    padding: .5rem .7rem; border-radius: 9px; color: var(--ev-body); text-decoration: none; cursor: pointer;
}
.ev-ropt[aria-selected="true"], .ev-ropt:hover { background: rgba(127,184,255,.1); }
.ev-ropt__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(148,163,184,.1); color: var(--ev-muted); overflow: hidden; }
.ev-ropt__icon svg { width: 17px; height: 17px; }
.ev-ropt__icon img { width: 100%; height: 100%; object-fit: cover; }
.ev-ropt__main { min-width: 0; }
.ev-ropt__title { color: var(--ev-text); font-size: .92rem; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ev-ropt__sub { display: block; margin-top: .1rem; font-size: .76rem; color: var(--ev-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-ropt mark { background: transparent; color: #a9d0ff; text-decoration: underline; text-decoration-color: rgba(127,184,255,.55); text-underline-offset: 2px; }
.ev-ropt__side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; font-size: .72rem; color: var(--ev-muted); }
.ev-ropt__bar { width: 64px; }
.ev-rmore { display: block; width: 100%; margin-top: .1rem; padding: .45rem .7rem; border: 0; border-radius: 8px; background: transparent; color: var(--ev-accent); font: inherit; font-size: .8rem; text-align: left; cursor: pointer; }
.ev-rmore:hover { background: rgba(127,184,255,.08); }
.ev-results__hint { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: .55rem .7rem .3rem; border-top: 1px solid var(--ev-line); margin-top: .3rem; font-size: .72rem; color: var(--ev-muted); }
.ev-chip-pos { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .45rem; border-radius: 999px; font-size: .7rem; font-weight: 700; background: rgba(148,163,184,.12); color: var(--ev-muted); white-space: nowrap; }
.ev-chip-pos.f { color: var(--ev-for); background: rgba(34,197,94,.12); }
.ev-chip-pos.a { color: var(--ev-against); background: rgba(239,68,68,.12); }
.ev-chip-pos.x { color: var(--ev-abst); background: rgba(245,179,1,.12); }

/* Bouton calendrier */
.ev-calbtn {
    flex: 0 0 auto; display: flex; align-items: center; gap: .6rem; padding: 0 .95rem; height: 48px;
    border: 1px solid var(--ev-line-md); border-radius: 12px; background: rgba(255,255,255,.03);
    color: var(--ev-text); font: inherit; cursor: pointer; transition: border-color .15s linear, background .15s linear;
}
.ev-calbtn:hover, .ev-calbtn[aria-expanded="true"] { border-color: rgba(127,184,255,.55); background: rgba(127,184,255,.07); }
.ev-calbtn > svg { width: 18px; height: 18px; color: var(--ev-accent); flex-shrink: 0; }
.ev-calbtn__txt { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.ev-calbtn__txt b { font-size: .88rem; font-weight: 700; }
.ev-calbtn__txt small { font-size: .72rem; color: var(--ev-muted); white-space: nowrap; }

/* ==========================================================================
   CALENDRIER
   ========================================================================== */
.ev-cal { margin: 0 0 1.2rem; padding: 1rem; border: 1px solid var(--ev-line-md); border-radius: 16px; background: #0b1322; }
.ev-cal[hidden] { display: none; }
.ev-cal__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.ev-cal__nav { display: flex; align-items: center; gap: .35rem; }
.ev-cal__navbtn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ev-line-md); border-radius: 9px; background: transparent; color: var(--ev-text); cursor: pointer; }
.ev-cal__navbtn:hover { border-color: rgba(127,184,255,.55); }
.ev-cal__navbtn svg { width: 15px; height: 15px; }
.ev-cal__navbtn:disabled { opacity: .35; cursor: default; }
.ev-cal__today { height: 34px; padding: 0 .75rem; border: 1px solid var(--ev-line-md); border-radius: 9px; background: transparent; color: var(--ev-text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.ev-cal__presets { display: flex; flex-wrap: wrap; gap: .35rem; }
.ev-cal__preset { height: 30px; padding: 0 .7rem; border: 1px solid var(--ev-line); border-radius: 999px; background: rgba(255,255,255,.02); color: var(--ev-body); font: inherit; font-size: .78rem; cursor: pointer; }
.ev-cal__preset:hover, .ev-cal__preset[aria-pressed="true"] { border-color: rgba(127,184,255,.5); color: #fff; background: rgba(127,184,255,.08); }

.ev-cal__months { display: grid; grid-template-columns: repeat(var(--ev-cal-n, 2), minmax(0, 1fr)); gap: 1.4rem; }
.ev-cal__month h3 { margin: 0 0 .5rem; color: #fff; font-size: .95rem; font-weight: 700; text-transform: capitalize; }
.ev-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.ev-cal__wd { padding: .2rem 0 .35rem; text-align: center; font-size: .68rem; font-weight: 600; color: var(--ev-muted); text-transform: uppercase; letter-spacing: .04em; }
.ev-cal__day {
    position: relative; height: 42px; width: 100%; display: grid; place-items: center;
    border: 1px solid transparent; border-radius: 9px; background: transparent;
    color: #5d6a80; font: inherit; font-size: .84rem; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0;
    transition: background .12s linear, border-color .12s linear, color .12s linear;
}
.ev-cal__day:hover { border-color: var(--ev-line-md); color: var(--ev-text); }
.ev-cal__day:focus-visible { outline: 2px solid var(--ev-accent); outline-offset: 1px; }
.ev-cal__day.is-out { visibility: hidden; }
.ev-cal__day.is-today { color: #fff; font-weight: 800; }
.ev-cal__day.is-today::before { content: ''; position: absolute; inset: 3px; border-radius: 7px; border: 1px dashed rgba(255,255,255,.35); pointer-events: none; }
/* Séance passée : intensité = nombre de sujets votés (carte de chaleur). */
.ev-cal__day.has-s { color: #fff; font-weight: 700; background: rgba(59,130,246,calc(.16 + var(--h, 0) * .5)); }
.ev-cal__day.is-pending { color: var(--ev-text); background: rgba(148,163,184,.14); }
/* Séance à venir : anneau. */
.ev-cal__day.is-future { color: #cfe3ff; font-weight: 700; border-color: rgba(127,184,255,.55); background: rgba(127,184,255,.05); }
/* Lieu : Strasbourg (session) ou Bruxelles (mini-session) — point en bas. */
.ev-cal__day[data-loc]::after { content: ''; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #fbbf24; }
.ev-cal__day[data-loc="BRU"]::after { background: #a78bfa; }
/* Période sélectionnée */
.ev-cal__day.in-range { box-shadow: inset 0 0 0 999px rgba(127,184,255,.13); }
.ev-cal__day.is-start, .ev-cal__day.is-end { box-shadow: inset 0 0 0 2px var(--ev-accent); }

.ev-cal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--ev-line); }
.ev-cal__info { font-size: .85rem; color: var(--ev-body); min-height: 1.3em; }
.ev-cal__info b { color: #fff; }
.ev-cal__legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .72rem; color: var(--ev-muted); }
.ev-cal__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.ev-cal__go { height: 36px; padding: 0 1rem; border: 0; border-radius: 9px; background: #2563eb; color: #fff; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.ev-cal__go[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ==========================================================================
   ARCHIVES (période) — une séance par bloc
   ========================================================================== */
.ev-range-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--ev-line); }
.ev-range-head h2 { margin: 0; color: #fff; font-size: 1.3rem; font-weight: 700; }
.ev-range-head p { margin: 0; color: var(--ev-muted); font-size: .88rem; }
.ev-range-head a { color: var(--ev-accent); text-decoration: none; }
.ev-sitting { margin-top: 1.6rem; }
.ev-sitting__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; padding: .4rem 0 .6rem; border-bottom: 1px solid var(--ev-line); }
.ev-sitting__head h3 { margin: 0; color: #fff; font-size: 1.05rem; font-weight: 700; }
.ev-sitting__head h3::first-letter { text-transform: uppercase; }
.ev-sitting__head p { margin: 0; color: var(--ev-muted); font-size: .82rem; }
.ev-sitting__head a { color: var(--ev-accent); text-decoration: none; }
.ev-loc { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--ev-muted); }
.ev-loc::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; }
.ev-loc.BRU::before { background: #a78bfa; }
.ev-upcoming { margin: 1.2rem 0 0; padding: .8rem 1rem; border: 1px dashed rgba(127,184,255,.35); border-radius: 12px; }
.ev-upcoming h3 { margin: 0 0 .4rem; color: #cfe3ff; font-size: .9rem; }
.ev-upcoming ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: var(--ev-body); }
.ev-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.ev-pager a, .ev-pager span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 .7rem; border: 1px solid var(--ev-line-md); border-radius: 9px; color: var(--ev-text); text-decoration: none; font-size: .86rem; }
.ev-pager span[aria-current] { border-color: rgba(127,184,255,.6); background: rgba(127,184,255,.1); }

/* ==========================================================================
   FICHE DÉPUTÉ
   ========================================================================== */
.ev-mep { margin-top: .4rem; }
.ev-mep__head { display: flex; gap: 1.1rem; align-items: center; padding-bottom: 1.1rem; border-bottom: 1px solid var(--ev-line); }
.ev-mep__photo { width: 76px; height: 96px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: rgba(148,163,184,.12); }
.ev-mep__head h2 { margin: 0; color: #fff; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.ev-mep__head p { margin: .25rem 0 0; color: var(--ev-muted); font-size: .9rem; }
.ev-mep__head a { color: var(--ev-accent); text-decoration: none; }
.ev-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 1.1rem 0; }
.ev-stat { padding: .8rem .9rem; border: 1px solid var(--ev-line); border-radius: 12px; background: rgba(255,255,255,.02); }
.ev-stat b { display: block; color: #fff; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ev-stat span { font-size: .76rem; color: var(--ev-muted); }
.ev-mep__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.ev-mep__filters input, .ev-mep__filters select { height: 36px; padding: 0 .6rem; border: 1px solid var(--ev-line-md); border-radius: 8px; background: #0a1120; color: var(--ev-text); font: inherit; font-size: .85rem; }
.ev-mep__filters input { flex: 1 1 220px; min-width: 0; }
.ev-mvote { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: .4rem 1rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--ev-line); content-visibility: auto; contain-intrinsic-size: auto 54px; }
.ev-mvote__date { font-size: .78rem; color: var(--ev-muted); }
.ev-mvote__title { color: var(--ev-text); font-size: .9rem; line-height: 1.35; text-decoration: none; }
.ev-mvote__title:hover { color: var(--ev-accent); }
.ev-mvote__res { display: flex; align-items: center; gap: .5rem; justify-self: end; }
.ev-mvote__res .ev-badge { font-size: .68rem; }
.ev-mep__more { display: block; margin: 1rem auto 0; height: 38px; padding: 0 1rem; border: 1px solid var(--ev-line-md); border-radius: 9px; background: transparent; color: var(--ev-text); font: inherit; font-size: .86rem; cursor: pointer; }

@media (max-width: 860px) {
    .ev-cal__months { --ev-cal-n: 1 !important; }
    .ev-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ev-tools { flex-wrap: wrap; }
    .ev-calbtn { flex: 1 1 100%; justify-content: center; }
    .ev-kbd { display: none; }
    .ev-ropt { grid-template-columns: 30px minmax(0, 1fr); }
    .ev-ropt__side { display: none; }
    .ev-mvote { grid-template-columns: minmax(0, 1fr) auto; }
    .ev-mvote__date { grid-column: 1 / -1; }
    .ev-cal { padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ev-cal__day, .ev-search__box { transition: none; }
}
