/* ================================================================
   EVENEMENT FILTER — Thème sombre
   Utilisé sur front-page.php et archive-evenements.php
   ================================================================ */

/* ── Variables du thème dans l'offcanvas ─────────────────────── */
.ev-filter-container .ev-offcanvas,
.evf-offcanvas {
	--evf-bg:        #111111;
	--evf-surface:   #1e1e1e;
	--evf-pink:      #D2097A;
	--evf-yellow:    #FFDB16;
	--evf-text:      #ffffff;
	--evf-muted:     rgba(255,255,255,0.55);
	--evf-border:    rgba(255,255,255,0.12);
	--evf-radius:    10px;
}

/* ── Offcanvas fond sombre ───────────────────────────────────── */
.ev-filter-container .ev-offcanvas {
	background: var(--evf-bg);
	color:      var(--evf-text);
	box-shadow: -6px 0 32px rgba(0,0,0,0.55);
}

/* ── Header ─────────────────────────────────────────────────── */
.ev-filter-container .ev-offcanvas-header {
	padding: 14px 20px 14px 0;
	border-bottom: 1px solid var(--evf-border);
	overflow: hidden;
}

/* Pill titre — hérite de home-section-pill, ajusté pour l'offcanvas */
.evf-title-pill {
	border-radius: 0 40px 40px 0; /* arrondi côté droit seulement */
	padding: 8px 28px 8px 20px;
}

.evf-title-pill h3 {
	font-family: var(--font-title, 'Boogaloo', sans-serif);
	font-size:   28px;
	font-weight: 400;
	color:       #fff;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.1;
}

.ev-filter-container .ev-offcanvas-close {
	width:  36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: var(--evf-pink);
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
}

/* ── Body ────────────────────────────────────────────────────── */
.ev-filter-container .ev-offcanvas-body {
	padding: 0 30px;
	gap: 0;
}

/* ── Sections ────────────────────────────────────────────────── */
.evf-section {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.evf-section--checkboxes {
	gap: 12px;
}

/* ── Titre de section ────────────────────────────────────────── */
.evf-section-title {
	font-family: var(--font-body, 'Open Sans', sans-serif);
	font-size:   26px;
	font-weight: 400;
	color:       var(--evf-text);
	text-align: center;
	margin: 0 0 2px;
}

.evf-section-subtitle {
	font-size: 12px;
	color: var(--evf-muted);
	text-align: center;
	margin: -6px 0 4px;
}

/* ── "Tout cocher / décocher" ────────────────────────────────── */
.evf-toggle-all {
	background: none;
	border: none;
	color: var(--evf-pink);
	font-size: 13px;
	font-weight: 500;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	text-align: center;
	align-self: center;
}

/* ── Grille de checkboxes ────────────────────────────────────── */
.evf-checkboxes-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 12px;
}

.evf-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--evf-text);
	cursor: pointer;
	line-height: 1.35;
}

.evf-checkbox-label input[type="checkbox"],
.evf-checkbox-single input[type="checkbox"] {
	accent-color: var(--evf-pink);
	width:  30px;
	height: 30px;
	flex-shrink: 0;
	margin-top: 1px;
	cursor: pointer;
}

/* ── Checkbox pleine largeur ─────────────────────────────────── */
.evf-checkbox-single {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--evf-text);
	cursor: pointer;
	line-height: 1.4;
}

.evf-autour-de-moi-wrapper {
	position: relative;
	display: inline-block;
	align-self: center;
	justify-self: center;
}

/* ── Bouton "Autour de moi" ──────────────────────────────────── */
.evf-autour-de-moi {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	background: var(--evf-yellow);
	color: var(--evf-pink);
	font-size: 14px;
	font-weight: 700;
	border: none;
	border-radius: var(--evf-radius);
	cursor: pointer;
	align-self: center;
	transition: opacity 0.2s;
}

.evf-autour-de-moi-icon {
	width: 30px;
	height: auto;
	flex-shrink: 0;
	position: relative;
	left: 15px;
}

.evf-autour-de-moi--active {
	background: var(--evf-pink);
	color: #fff;
}

/* ── Selects ─────────────────────────────────────────────────── */
.evf-select {
	width: 100%;
	padding: 10px 36px 10px 12px;
	background: #fff;
	color: var(--evf-bg);
	border: 1px solid var(--evf-border);
	border-radius: var(--evf-radius);
	font-size: 14px;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
}

.evf-select:focus {
	outline: none;
	border-color: var(--evf-pink);
}

/* ── Raccourcis date ─────────────────────────────────────────── */
.evf-date-shortcuts {
	display: flex;
	gap: 8px;
}

.evf-shortcut-btn {
	flex: 1;
	padding: 10px 8px;
	background: var(--evf-yellow);
	color: #111;
	border: none;
	border-radius: var(--evf-radius);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s;
	text-align: center;
}

.evf-shortcut-btn:hover { opacity: 0.85; }

.evf-shortcut-btn--active {
	background: var(--evf-pink);
	color: #fff;
}

/* ── Selects jour / mois côte à côte ─────────────────────────── */
.evf-date-selects {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* ── Label filter ────────────────────────────────────────────── */
.evf-filter-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--evf-text);
	margin: 0 30px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.ev-filter-container .ev-offcanvas-footer {
	padding: 16px 20px;
	border-top: 1px solid var(--evf-border);
	gap: 10px;
}

.evf-btn-reset,
.evf-btn-apply {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 16px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	border: none;
	transition: opacity 0.15s;
}

.evf-btn-reset {
	background: var(--evf-pink);
	color: #fff;
}

.evf-btn-apply {
	color: #000000;
	background: #fff;
}

.evf-btn-reset:hover,
.evf-btn-apply:hover { opacity: 0.85; }

/* Invert loupe icon to white in apply button */
.evf-btn-apply img { filter: brightness(10); }

/* ── Toolbar overrides ───────────────────────────────────────── */
.ev-filter-container .ev-btn-filtres {
	background: transparent;
	border: none;
	border-bottom: 2px solid var(--vert-frab, #009C50);
	border-radius: 0;
	padding: 0 0 2px;
	color: var(--vert-frab, #009C50);
	font-size: 14px;
	font-weight: 600;
	gap: 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
}

.ev-filter-container .ev-btn-filtres:hover { opacity: 0.75; }

/* ── Masquage des éléments filtrés ───────────────────────────── */
.ev-arc-card[hidden]  { display: none !important; }
.ev-item-wrap[hidden] { display: none !important; }

.ev-section-pill {
    background: var(--rose-frab);
    border-radius: 40px;
    padding: 8px 24px 8px 44px;
}

.ev-section-pill h2 {
    font-family: var(--font-title);
    font-size: 32px;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    font-weight: 400;
}

@media (max-width: 400px) {
	.ev-section-pill {
		position: relative;
		right: 20px;
	}
}