/*
 * Page publique /events (et son archive), d'après la maquette validée
 * « On se retrouve où ? » (octobre 2026).
 *
 * Tout est préfixé .evx- : la page vit dans base.html.twig, dont le thème
 * stylise déjà .card, .btn, section, h1 à h3. Aucun nom de classe ne contient
 * col-, badge, logo-, gradient ni quote (sélecteurs [class*=…] du thème).
 */
.evx {
	--evx-pink: #b12c58;
	--evx-light: #faedf2;
	--evx-ink: #29252a;
	--evx-muted: #6f666d;
	--evx-line: #e9e2e6;
	--evx-soft: #faf8f9;
	color: var(--evx-ink);
	background: #fff;
	font-size: 15px;
	line-height: 1.5;
	padding-bottom: 40px;
}

.evx *,
.evx *::before,
.evx *::after { box-sizing: border-box; }

.evx a { color: inherit; text-decoration: none; }
.evx button { font: inherit; color: inherit; cursor: pointer; }
.evx select { font: inherit; color: inherit; }
.evx img { max-width: 100%; }

.evx a:focus-visible,
.evx button:focus-visible,
.evx select:focus-visible,
.evx [tabindex]:focus-visible { outline: 3px solid var(--evx-pink); outline-offset: 4px; }

.evx h1,
.evx h2,
.evx h3 {
	color: var(--evx-ink);
	font-weight: 700;
	text-transform: none;
	margin: 0;
}

.evx-wrap { max-width: 1150px; margin: 0 auto; padding: 0 28px; }

/* Entrée */
.evx-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 26px 0 0;
	font-size: 12px;
	letter-spacing: 1px;
	color: var(--evx-muted);
	text-transform: uppercase;
}
.evx-top a { font-weight: 700; color: var(--evx-pink); letter-spacing: 0; text-transform: none; font-size: 13px; }

.evx-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 18px 0 24px; }
.evx-intro h1 { font-size: clamp(32px, 4.5vw, 52px); letter-spacing: -1.8px; line-height: 1.1; }
.evx-intro h1 em { color: var(--evx-pink); font-style: normal; }
.evx-intro p { color: var(--evx-muted); max-width: 320px; margin: 0; font-size: 14px; }

.evx-photos { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; }
.evx-photo { height: 260px; border-radius: 12px; overflow: hidden; position: relative; margin: 0; }
.evx-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evx-photo::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .67)); }
.evx-photo figcaption { position: absolute; bottom: 20px; left: 20px; right: 20px; color: #fff; font-size: 23px; font-weight: 700; z-index: 1; letter-spacing: -.5px; line-height: 1.2; }
.evx-photo small { display: block; font-size: 10px; letter-spacing: 1.3px; margin-bottom: 4px; font-weight: 400; text-transform: uppercase; }
.evx-photo-credit { font-size: 11px; color: var(--evx-muted); text-align: right; margin: 7px 0 0; }

/* Titres de section */
.evx-block { padding-top: 3px; }
.evx-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 38px 0 18px; }
.evx-head h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.8px; }
.evx-head h2 span { color: var(--evx-pink); }
.evx-head p { font-size: 13px; margin: 0; color: var(--evx-muted); }
.evx-head > a { color: var(--evx-pink); font-size: 13px; font-weight: 700; }

/* Carte */
.evx-territory {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	border: 1px solid var(--evx-line);
	border-radius: 15px;
	overflow: hidden;
	background: var(--evx-soft);
}
.evx-mapbox { position: relative; padding: 15px 12px; background: #f6f3f5; }
.evx-mapbox .france-with-insets { display: grid; grid-template-columns: 78px minmax(0, 1fr) 78px; align-items: center; gap: 4px; }
.evx-mapbox .france { display: block; width: 100%; height: auto; min-width: 0; max-height: 390px; margin: auto; }
.evx-mapbox .inset-column { display: flex; flex-direction: column; gap: 3px; }

.evx .region { fill: #e5dfe3; stroke: #fff; stroke-width: 1.5; cursor: pointer; transition: fill .15s; }
.evx .region:hover { fill: #d798ae; }
.evx .region.past { fill: #8f7d88; }
.evx .region.upcoming { fill: var(--evx-pink); }
.evx .region.selected { stroke: var(--evx-ink); stroke-width: 2.5; }
.evx .region:focus { outline: none; }
.evx .region:focus-visible { stroke: var(--evx-ink); stroke-width: 3; }
.evx .region:not(.upcoming):not(.past).selected { fill: #d798ae; }

.evx .pin { pointer-events: none; }
.evx .pin circle { fill: var(--evx-ink); stroke: #fff; stroke-width: 2; }
.evx .pin.past circle { fill: #5d4d57; }
.evx .pin circle[fill="white"] { fill: #fff; stroke: none; }
.evx .pin text { display: none; font-size: 12px; font-weight: 700; fill: #32232a; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.evx .pin.upcoming text,
.evx .pin.is-focus text { display: block; }
.evx-map--crowded .pin.upcoming text { display: none; }
.evx-map--crowded .pin.is-focus text { display: block; }

.evx .map-inset {
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	padding: 3px 2px;
	min-height: 56px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	width: 100%;
}
.evx .map-inset svg { display: block; width: 47px; height: 28px; }
.evx .map-inset path { fill: #d7cbd2; stroke: #8b7582; stroke-width: .6; stroke-linejoin: round; }
.evx .map-inset span { font-size: 10px; font-weight: 600; line-height: 1.15; text-align: center; }
.evx .map-inset:hover { background: #f1e5eb; border-color: #dbc5d0; }
.evx .map-inset.past path { fill: #8f7d88; stroke: #8f7d88; }
.evx .map-inset.upcoming path { fill: var(--evx-pink); stroke: var(--evx-pink); }
.evx .map-inset.selected { border-color: var(--evx-pink); background: var(--evx-light); }
.evx .map-inset.selected span { color: var(--evx-pink); }

.evx-legend { display: flex; justify-content: center; gap: 12px; margin-top: 10px; font-size: 11px; color: var(--evx-muted); flex-wrap: wrap; }
.evx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: var(--evx-pink); }
.evx-dot--past { background: #8f7d88; }
.evx-dot--none { background: #d9d0d6; }
.evx-online { display: flex; justify-content: center; margin: 12px 0 0; }
.evx-online button { font-size: 12px; background: #fff; border: 1px solid var(--evx-line); padding: 7px 11px; border-radius: 7px; }
.evx-online button.selected { background: var(--evx-pink); border-color: var(--evx-pink); color: #fff; }
.evx-mapnote { font-size: 10px; color: var(--evx-muted); max-width: 440px; margin: 10px auto 0; text-align: center; }

.evx-mapdetail { padding: 25px 30px; display: flex; flex-direction: column; justify-content: flex-start; max-height: 475px; overflow: auto; }
.evx-eyebrow { text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; color: var(--evx-pink); margin: 0 0 12px; }
.evx-mapdetail h3 { font-size: 23px; line-height: 1.2; margin: 0 0 18px; letter-spacing: -.5px; }
.evx-stop { display: flex; gap: 15px; padding: 14px 0; border-top: 1px solid var(--evx-line); }
.evx-datebox { min-width: 55px; height: 57px; border-radius: 9px; background: var(--evx-light); text-align: center; padding: 5px; color: var(--evx-pink); font-size: 11px; font-weight: 700; }
.evx-datebox strong { display: block; font-size: 24px; line-height: 1.2; }
.evx-stop b { font-size: 18px; display: block; }
.evx-stop p { margin: 2px 0; font-size: 14px; color: var(--evx-muted); }
.evx .evx-link { border: 0; background: none; padding: 0; color: var(--evx-pink); font-size: 14px; font-weight: 700; text-align: left; }
.evx .evx-link--back { align-self: flex-start; margin-top: 15px; text-decoration: underline; }
.evx-notice { font-size: 13px; color: var(--evx-muted); }

/* Rendez-vous */
.evx-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 22px 0; }
.evx-chip { font-size: 17px; font-weight: 700; padding: 12px 19px; min-height: 48px; border: 1px solid var(--evx-line); border-radius: 10px; background: #fff; }
.evx-chip.active { background: var(--evx-pink); border-color: var(--evx-pink); color: #fff; }
.evx-filters select { -webkit-appearance: auto; appearance: auto; background-image: none; width: auto; flex: 0 1 auto; margin-left: auto; font-size: 16px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--evx-line); background: #fff; border-radius: 7px; max-width: 100%; }

.evx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.evx-card { display: flex; flex-direction: column; border: 1px solid var(--evx-line); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .15s; }
.evx-card:hover { box-shadow: 0 8px 20px rgba(43, 21, 36, .08); }
.evx-cardpic { height: 170px; position: relative; overflow: hidden; background: var(--evx-light); }
.evx-cardpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evx-cardpic::after { content: ''; position: absolute; inset: 0; background: rgba(48, 37, 43, .12); }
.evx-carddate { position: absolute; left: 13px; top: 13px; background: #fff; border-radius: 7px; padding: 6px 10px; z-index: 1; font-size: 12px; font-weight: 700; color: var(--evx-pink); }
.evx-cardbody { display: flex; flex-direction: column; flex: 1; padding: 19px; }
.evx-place { font-size: 11px; color: var(--evx-pink); font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.evx-card h3 { font-size: 23px; letter-spacing: -.7px; line-height: 1.2; margin: 6px 0 9px; }
.evx-cardmeta { font-size: 14px; color: var(--evx-muted); margin: 0 0 12px; }
.evx-status { font-size: 12px; font-weight: 700; color: var(--evx-pink); margin: 0 0 14px; }
.evx-status--waitlist { color: #8a6c00; }
.evx-status--full,
.evx-status--closed { color: var(--evx-muted); }

.evx-btn { display: inline-block; border: 0; background: var(--evx-pink); color: #fff !important; padding: 10px 15px; font-size: 13px; font-weight: 700; border-radius: 7px; text-align: center; }
.evx-btn:hover { background: #95234a; }
.evx-card .evx-btn { width: 100%; margin-top: auto; }
.evx-btn--outline { background: #fff; color: var(--evx-pink) !important; border: 1px solid var(--evx-pink); }
.evx-btn--outline:hover { background: var(--evx-light); }

.evx-more { margin: 18px 0 0; }
.evx-count { font-size: 12px; color: var(--evx-muted); margin: 12px 0 0; }
.evx-empty { padding: 25px; border: 1px dashed var(--evx-line); border-radius: 10px; grid-column: 1 / -1; }
.evx-archive-link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--evx-pink) !important; }

.evx-next { margin: 30px 0; padding: 20px 0; border-top: 1px solid var(--evx-line); display: flex; justify-content: space-between; gap: 20px; }
.evx-next b { font-size: 15px; }
.evx-next p { font-size: 13px; color: var(--evx-muted); margin: 3px 0; }

/* Actualités */
.evx-news { border-top: 1px solid var(--evx-line); margin-top: 35px; }
.evx-newsgrid,
.evx-engagegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.evx-newscard { border: 1px solid var(--evx-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.evx-newscard img { width: 100%; height: 170px; object-fit: cover; background: var(--evx-light); display: block; }
.evx-newsbody { padding: 19px; display: flex; flex-direction: column; flex: 1; }
.evx-newsbody time { font-size: 12px; color: var(--evx-muted); }
.evx-newsbody h3 { font-size: 18px; line-height: 1.3; margin: 9px 0 16px; }
.evx-newsbody > a { margin-top: auto; color: var(--evx-pink); font-weight: 700; font-size: 13px; }

/* Engagement */
.evx-engage { margin: 36px 0 24px; background: var(--evx-light); padding: 28px; border-radius: 14px; }
.evx-engage h2 { font-size: 32px; letter-spacing: -.8px; line-height: 1.2; margin: 0 0 22px; }
.evx-engage h2 span { color: var(--evx-pink); }
.evx-engagegrid article { display: flex; flex-direction: column; }
.evx-engagegrid h3 { font-size: 17px; }
.evx-engagegrid p { font-size: 14px; color: var(--evx-muted); margin: 7px 0 17px; flex: 1; }
.evx-engagegrid .evx-btn { align-self: stretch; }

/* Fenêtre de détail */
.evx-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; max-width: 580px; width: calc(100% - 30px); border: 0; border-radius: 15px; padding: 30px; max-height: 90vh; overflow: auto; color: var(--evx-ink); }
.evx-dialog::backdrop { background: rgba(37, 27, 35, .72); backdrop-filter: blur(3px); }
.evx-dialog h2 { font-size: 26px; line-height: 1.2; margin: 10px 0 14px; color: var(--evx-ink); }
.evx-dialog p { font-size: 15px; }
.evx-close { float: right; border: 0; background: #f4edf1; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; }
.evx-info { padding: 15px; background: var(--evx-light); border-radius: 8px; font-size: 14px; margin-bottom: 14px; }

/* Archive */
.evx-pagination { margin: 30px 0 0; }

@media (prefers-reduced-motion: reduce) {
	.evx-card,
	.evx .region { transition: none; }
}

@media (max-width: 980px) {
	.evx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.evx-filters select { margin-left: 0; }
}

@media (max-width: 760px) {
	.evx-wrap { padding: 0 16px; }
	.evx-top span { display: none; }
	.evx-intro { display: block; margin-top: 12px; }
	.evx-intro p { margin-top: 13px; max-width: none; }
	.evx-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 5px; }
	.evx-photo { min-width: 76%; height: 240px; scroll-snap-align: start; }
	.evx-photo-credit { text-align: left; }
	.evx-head { align-items: flex-start; flex-direction: column; margin-top: 27px; gap: 6px; }
	.evx-head h2,
	.evx-engage h2 { font-size: 28px; }
	.evx-territory { grid-template-columns: 1fr; }
	.evx-mapbox .france-with-insets { grid-template-columns: 72px minmax(0, 1fr) 72px; gap: 0; }
	.evx .map-inset { min-height: 54px; }
	.evx-mapdetail { padding: 23px; max-height: 440px; }
	.evx-chip { font-size: 16px; padding: 11px 14px; }
	.evx-cardpic { height: 155px; }
	.evx-cardbody { padding: 14px; }
	.evx-card h3 { font-size: 20px; }
	.evx-next { display: block; }
	.evx-newsgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
	.evx-newscard { min-width: 82%; scroll-snap-align: start; }
	.evx-engagegrid { grid-template-columns: 1fr; gap: 22px; }
	.evx-engage { padding: 22px; }
	.evx-engagegrid article + article { border-top: 1px solid #e6cbd6; padding-top: 20px; }
}

@media (max-width: 450px) {
	.evx-cards { grid-template-columns: 1fr; }
	.evx-cardpic { height: 190px; }
	.evx-filters { gap: 8px; }
	.evx-filters select { width: 100%; }
	.evx-mapbox { padding: 12px 7px; }
	.evx-mapbox .france-with-insets { grid-template-columns: 62px minmax(0, 1fr) 62px; }
	.evx .map-inset span { font-size: 9px; }
	.evx .map-inset svg { width: 43px; height: 26px; }
}
