/* Les Évadés – Horaires : affichage front */

.evh {
	--evh-accent: #973434;
	--evh-card: #fdf7ea;
	--evh-text: #622121;
	/* Jours : police du bloc où est placé le shortcode. Horaires : police principale Elementor. */
	--evh-day-font: inherit;
	--evh-hours-font: var(--e-global-typography-primary-font-family, inherit);
	box-sizing: border-box;
}
.evh *,
.evh *::before,
.evh *::after { box-sizing: inherit; }
.evh [hidden] { display: none !important; }

/* Remise à zéro : le thème et Elementor ne doivent pas ajouter de marges ni d’espaces. */
.evh.evh--main,
.evh.evh--footer { margin-bottom: 0; padding-bottom: 0; }
.evh.evh--main :is(section, dl, dt, dd, ul, ol, li, p),
.evh.evh--footer :is(dl, dt, dd, p) { margin-top: 0; margin-bottom: 0; }
.evh.evh--main :is(ul, ol, dl) { padding: 0; list-style: none; }
.evh p:empty,
.evh br { display: none !important; }

/* ---------- Version corps de page ---------- */

.evh--main {
	width: 100%;
	max-width: 1420px;
	margin: 0 auto;
	text-align: center;
	color: var(--evh-text);
}

.evh.evh--main .evh-desc {
	margin: 0 auto 22px;
	max-width: 46ch;
	font-family: var(--evh-hours-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--evh-text);
}

/* Les 7 jours sur une seule ligne : les cartes et les textes rétrécissent avec la largeur. */
.evh-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: clamp(6px, 1.4vw, 20px);
}
.evh-card {
	min-width: 0;
	min-height: clamp(130px, 13vw, 180px);
	margin: 0;
	padding: clamp(14px, 1.6vw, 22px) clamp(4px, .8vw, 12px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--evh-card);
	border-radius: 6px;
	border: 2px solid transparent;
	transition: border-color .2s;
}
.evh-card.is-today { border-color: var(--evh-accent); }

.evh-day {
	display: block;
	font-family: var(--evh-day-font);
	font-size: clamp(14px, 1.75vw, 25px);
	line-height: 1.2;
	color: var(--evh-accent);
	white-space: nowrap;
}
.evh-sep {
	display: block;
	width: 100px;
	max-width: 70%;
	height: 1px;
	margin: clamp(12px, 1.4vw, 20px) auto clamp(10px, 1.3vw, 18px);
	background: var(--evh-accent);
}
.evh-slots {
	display: flex;
	flex-direction: column;
	gap: clamp(4px, .7vw, 10px);
	font-family: var(--evh-hours-font);
	font-size: clamp(12px, 1.3vw, 18px);
	line-height: 1.3;
	color: var(--evh-text);
	font-variant-numeric: tabular-nums;
}
.evh-slot { white-space: nowrap; }
.evh-card--closed .evh-slot { font-style: italic; opacity: .75; }

.evh-today-tag {
	display: block;
	margin-top: 6px;
	font-family: var(--evh-hours-font);
	font-size: clamp(9px, .8vw, 11px);
	line-height: 1.2;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--evh-accent);
}

/* Bandeau fermeture exceptionnelle */
.evh-notices { margin: 0 auto 20px; max-width: 760px; }
.evh.evh--main .evh-notice {
	margin: 0 0 8px;
	padding: 12px 18px;
	border-left: 3px solid var(--evh-accent);
	background: var(--evh-card);
	border-radius: 4px;
	font-family: var(--evh-hours-font);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	color: var(--evh-text);
}
.evh-notice strong { color: var(--evh-accent); }

/* Mobile : trop étroit pour 7 colonnes, une ligne par jour */
@media (max-width: 767px) {
	.evh-grid { grid-template-columns: 1fr; gap: 8px; }
	.evh-card {
		min-height: 0;
		padding: 14px 16px;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		text-align: left;
	}
	.evh-day { font-size: 19px; }
	.evh-card .evh-sep { display: none; }
	.evh-slots { gap: 2px; text-align: right; font-size: 16px; }
	.evh-today-tag { margin: 2px 0 0; font-size: 10px; }
}

/* ---------- Présentation « cartes » ---------- */

.evh--cards .evh-panel + .evh-panel { margin-top: clamp(28px, 4vw, 48px); }
.evh.evh--main.evh--cards .evh-box-title { margin-bottom: 16px; }

/* ---------- Présentation « colonnes » (par défaut) ---------- */

.evh--cols { max-width: 1100px; }
.evh-boxes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 3vw, 40px);
	align-items: stretch;
}
.evh-boxes--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.evh-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: clamp(24px, 3.2vw, 40px) clamp(18px, 3.2vw, 44px);
	background: var(--evh-card);
	border-radius: 6px;
}
.evh-icon { display: block; color: var(--evh-accent); margin: 0 0 12px; }
.evh.evh--main .evh-box-title {
	margin: 0;
	padding: 0;
	font-family: var(--evh-day-font);
	font-size: clamp(24px, 2.8vw, 32px);
	font-weight: inherit;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	color: var(--evh-accent);
}
.evh.evh--main .evh-box-desc {
	margin: 8px 0 0;
	max-width: 36ch;
	font-family: var(--evh-hours-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--evh-text);
}
.evh-box .evh-sep { margin: 20px auto; }

.evh-rows {
	width: 100%;
	max-width: 400px;
	margin: 0;
}
.evh-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 4px;
	border-bottom: 1px solid rgba(151, 52, 52, .14);
}
.evh-row:last-child { border-bottom: 0; }
.evh-row dt {
	margin: 0;
	font-family: var(--evh-day-font);
	font-size: 19px;
	line-height: 1.3;
	color: var(--evh-accent);
	text-align: left;
}
.evh-row dd {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 2px 14px;
	font-family: var(--evh-hours-font);
	font-size: 16px;
	line-height: 1.4;
	color: var(--evh-text);
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.evh-row--closed dd { font-style: italic; opacity: .75; }
.evh-row.is-today {
	background: var(--evh-accent);
	border-bottom-color: transparent;
}
.evh-row.is-today dt,
.evh-row.is-today dd { color: var(--evh-card); opacity: 1; }

.evh.evh--main .evh-box-note {
	margin: 20px 0 0;
	text-align: center;
	font-family: var(--evh-hours-font);
	font-size: 14px;
	font-style: italic;
	line-height: 1.5;
	color: var(--evh-text);
}

@media (max-width: 767px) {
	.evh-boxes { grid-template-columns: minmax(0, 1fr); }
	.evh-row { padding: 8px 10px; }
	.evh-row dt { font-size: 17px; }
	.evh-row dd { font-size: 15px; }
}

/* ---------- Version pied de page ---------- */

.evh--footer {
	--evh-f-color: #ffffff;
	--evh-f-title-color: #ffffff;
	--evh-f-size: 15px;
	--evh-f-title-font: inherit;
	--evh-f-day-font: inherit;
	--evh-f-hours-font: inherit;
	font-size: var(--evh-f-size);
	line-height: 1.6;
	text-align: left;
}
/* Couleurs forcées : le thème ou Elementor ne doivent pas les griser. */
.evh.evh--footer,
.evh.evh--footer .evh-f-row dt,
.evh.evh--footer .evh-f-row dd,
.evh.evh--footer .evh-notice,
.evh.evh--footer .evh-notice strong { color: var(--evh-f-color) !important; }

.evh-f-block + .evh-f-block { margin-top: 16px; }
.evh.evh--footer .evh-f-title {
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--evh-f-title-font);
	font-size: .85em;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--evh-f-title-color) !important;
}
.evh-f-list { margin: 0; }
.evh-f-row {
	display: flex;
	flex-wrap: wrap;
	column-gap: .5em;
}
.evh.evh--footer .evh-f-row dt {
	margin: 0;
	font-family: var(--evh-f-day-font);
	font-size: 1em;
	font-weight: 700;
}
.evh-f-row dt::after { content: " :"; }
.evh.evh--footer .evh-f-row dd {
	margin: 0;
	font-family: var(--evh-f-hours-font);
	font-size: 1em;
	font-variant-numeric: tabular-nums;
}
.evh--footer .evh-notices { margin: 0 0 12px; max-width: none; }
.evh.evh--footer .evh-notice {
	margin: 0 0 4px;
	padding: 0;
	background: none;
	border: 0;
	font-family: var(--evh-f-hours-font);
	font-size: 1em;
}
