/*
 * Page d'une visite guidée — mise en page reprise de l'actuel explore.brussels.
 * Couleurs et polices viennent du thème ; seul l'or des boutons et du cadre est fixé ici,
 * dans des variables que la future charte pourra redéfinir.
 */
.evg-visite {
	--evg-or: #866d4b;
	--evg-or-fonce: #6e583b;
	--evg-sur-or: #fff;
	--evg-trait: color-mix(in srgb, currentColor 18%, transparent);
	--evg-large: 1200px;
	--evg-marge: clamp(16px, 4vw, 40px);

	max-width: calc(var(--evg-large) + 2 * var(--evg-marge));
	margin: 0 auto;
	padding: clamp(24px, 5vw, 56px) var(--evg-marge) clamp(40px, 6vw, 80px);
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 4vw, 48px);
}
.evg-visite h1, .evg-visite h2 { text-wrap: balance; }

/* ── En-tête ────────────────────────────────────────────────────────────────────── */
.evg-visite__entete { display: grid; gap: .5em; }
.evg-visite__theme { margin: 0; font-size: .85em; letter-spacing: .04em; }
.evg-visite__titre { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.evg-visite__ariane { display: flex; flex-wrap: wrap; gap: .4em; font-size: .85em; }
.evg-visite__ariane a { color: inherit; text-decoration: none; }
.evg-visite__ariane a:hover, .evg-visite__ariane a:focus-visible { text-decoration: underline; }
.evg-visite__avis:empty { display: none; }

/* ── Photos ─────────────────────────────────────────────────────────────────────── */
.evg-photos { position: relative; }
.evg-photos__piste {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none;
}
.evg-photos__piste::-webkit-scrollbar { display: none; }
.evg-photos__diapo { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 9; }
.evg-photos__diapo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evg-photos__diapo figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: .6em 1em; text-align: center;
	font-size: .8em; font-weight: 600; color: #fff; background: rgb(0 0 0 / .35);
}
.evg-photos__fleche {
	position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: rgb(0 0 0 / .45); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.evg-photos__fleche--prec { left: 12px; }
.evg-photos__fleche--suiv { right: 12px; }
.evg-photos__fleche:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Bouton d'arrêt du défilement automatique. */
.evg-visite .evg-photos__pause, .evg-visite .evg-photos__pause:hover, .evg-visite .evg-photos__pause:focus {
	position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 32px; height: 32px;
	padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / .45); box-shadow: none; min-height: 0; cursor: pointer;
	opacity: .75; transition: opacity .2s ease;
}
.evg-photos:hover .evg-photos__pause, .evg-photos__pause:focus-visible { opacity: 1; }
/* Deux barres (en lecture) qui deviennent un triangle (en pause). */
.evg-photos__pause span {
	width: 10px; height: 12px; background: #fff;
	clip-path: polygon(0 0, 3.5px 0, 3.5px 12px, 0 12px, 0 0, 6.5px 0, 10px 0, 10px 12px, 6.5px 12px);
}
.evg-photos__pause.est-en-pause span { clip-path: polygon(0 0, 10px 6px, 0 12px); }
.evg-photos__pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Titre et retour vers la liste, sur la même ligne. */
.evg-visite__ligne-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5em 2em; flex-wrap: wrap; }
.evg-visite__ligne-titre .evg-visite__titre { margin-bottom: 0; }
.evg-visite .evg-visite__retour {
	flex: none; display: inline-flex; align-items: center; gap: .4em; padding: .5em 1.1em;
	border: 1px solid var(--evg-or); color: var(--evg-or); text-decoration: none;
	font-size: .8em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.evg-visite .evg-visite__retour:hover, .evg-visite .evg-visite__retour:focus-visible { background: var(--evg-or); color: var(--evg-sur-or); }
@media (max-width: 600px) {
	.evg-visite__ligne-titre { gap: .8em; }
	.evg-visite .evg-visite__retour { font-size: .75em; padding: .45em .9em; }
}

/* ── Boutons, partage ───────────────────────────────────────────────────────────── */
.evg-visite__actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.evg-bouton {
	display: inline-block; padding: .85em 1.8em; border: 0; border-radius: 0;
	background: var(--evg-or); color: var(--evg-sur-or); font-weight: 700; text-decoration: none;
	cursor: pointer; line-height: 1.2; font: inherit; font-weight: 700;
}
.evg-bouton:hover, .evg-bouton:focus-visible { background: var(--evg-or-fonce); color: var(--evg-sur-or); }
.evg-bouton:focus-visible { outline: 2px solid var(--evg-or); outline-offset: 3px; }
.evg-bouton--petit { padding: .55em 1.1em; font-size: .9em; }

.evg-partage { display: flex; list-style: none; margin: 0; padding: 0; border: 1px solid var(--evg-trait); }
.evg-partage a { display: grid; place-items: center; width: 40px; height: 40px; color: inherit; }
.evg-partage svg { width: 16px; height: 16px; fill: currentColor; }
.evg-partage a:hover, .evg-partage a:focus-visible { color: var(--evg-or); }

/* ── Texte ──────────────────────────────────────────────────────────────────────── */
.evg-visite__texte { max-width: 68ch; margin: 0 auto; }
.evg-visite__accroche { font-size: 1.15em; }

/* ── Proposé par | Prix ─────────────────────────────────────────────────────────── */
.evg-visite__duo { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.evg-visite__duo h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 .7em; }
.evg-visite__orgas { text-align: center; display: grid; justify-items: center; gap: 1em; }
.evg-visite__orgas img { max-width: 200px; height: auto; display: block; }
.evg-visite__prix h2 { text-align: center; }
.evg-visite__prix ul { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: .7em; width: fit-content; max-width: 34em; }  /* centrée sous le titre (16/10/2026) */
.evg-visite__prix small { opacity: .8; }

/* ── Le cadre : infos | dates, puis la grille des créneaux ──────────────────────── */
.evg-cadre { border: 5px solid var(--evg-or); scroll-margin-top: 110px; }
.evg-cadre__resume { display: grid; grid-template-columns: 1fr 1fr; }
.evg-cadre__infos, .evg-cadre__dates { margin: 0; padding: clamp(20px, 3vw, 32px); }
.evg-cadre__infos { display: grid; gap: 1.1em; align-content: center; border-right: 1px solid var(--evg-trait); }
.evg-cadre__infos div { display: flex; flex-wrap: wrap; gap: 0 .4em; }
.evg-cadre__infos dt::after { content: " :"; }
.evg-cadre__infos dd { margin: 0; }
.evg-cadre__dates { text-align: center; }
.evg-cadre__dates h2 { font-size: 1em; margin: 0 0 1em; }
.evg-cadre__dates ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4em; }
.evg-cadre__dates p { margin: 0; }

.evg-cadre__bascule {
	width: 100%; display: flex; justify-content: center; align-items: center; gap: .7em;
	padding: .9em 1em; border: 0; border-top: 1px solid var(--evg-trait);
	background: var(--evg-or); color: var(--evg-sur-or); font: inherit; font-weight: 700; cursor: pointer;
}
.evg-cadre__bascule:hover { background: var(--evg-or-fonce); }
.evg-cadre__bascule:focus-visible { outline: 2px solid var(--evg-or); outline-offset: -6px; }
.evg-cadre__chevron { width: .6em; height: .6em; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; transition: rotate .2s, translate .2s; }
.evg-cadre__bascule-fermer { display: none; }
.evg-cadre[data-ouvert="1"] .evg-cadre__bascule-ouvrir { display: none; }
.evg-cadre[data-ouvert="1"] .evg-cadre__bascule-fermer { display: inline; }
.evg-cadre[data-ouvert="1"] .evg-cadre__chevron { rotate: -135deg; translate: 0 2px; }

/*
 * Ouverture en fondu, la hauteur glissant de 0 à son naturel (grid-template-rows 0fr → 1fr).
 * `hidden` n'est posé qu'une fois le fondu de fermeture terminé (visite.js).
 */
.evg-cadre__grille {
	display: grid; grid-template-rows: 0fr; opacity: 0;
	transition: grid-template-rows .35s ease, opacity .3s ease;
}
.evg-cadre__grille[hidden] { display: none; }
.evg-cadre[data-ouvert="1"] .evg-cadre__grille { grid-template-rows: 1fr; opacity: 1; }
.evg-cadre__grille-interieur { overflow: hidden; min-height: 0; }
.evg-cadre__grille-interieur > .evg-creneaux { margin: clamp(12px, 2.5vw, 28px); width: calc(100% - 2 * clamp(12px, 2.5vw, 28px)); }
.evg-creneaux { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.evg-creneaux th { text-align: left; font-size: .8em; letter-spacing: .06em; text-transform: uppercase; padding: .7em .8em; border-bottom: 2px solid var(--evg-or); }
.evg-creneaux td { padding: .75em .8em; border-bottom: 1px solid var(--evg-trait); vertical-align: middle; }
.evg-creneaux tbody tr:hover { background: color-mix(in srgb, var(--evg-or) 8%, transparent); }
.evg-creneau__places { text-align: center; }
.evg-creneaux th:nth-child(4) { text-align: center; }
.evg-creneau__action { text-align: right; white-space: nowrap; }
.evg-creneau__action form { margin: 0; }
.evg-creneau--complet td:not(.evg-creneau__action) { opacity: .45; }
.evg-complet { font-size: .85em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #b32d2e; }

/* La carte : pleine largeur, comme sur le modèle. */
.evg-visite .evg-carte { margin: 0; aspect-ratio: 21 / 9; }

/* ── Petits écrans ──────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
	.evg-visite__duo, .evg-cadre__resume { grid-template-columns: 1fr; }
	.evg-cadre__infos { border-right: 0; border-bottom: 1px solid var(--evg-trait); }
	.evg-photos__diapo { aspect-ratio: 4 / 3; }
	.evg-visite .evg-carte { aspect-ratio: 4 / 3; }

	/* La grille devient une pile de cartes : date et bouton en pleine largeur. */
	.evg-creneaux thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.evg-creneaux, .evg-creneaux tbody { display: block; }
	.evg-creneaux tr {
		display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .4em .8em; padding: .9em .2em;
		border-bottom: 1px solid var(--evg-trait);
	}
	.evg-creneaux td { display: block; padding: 0; border: 0; text-align: left; }
	.evg-creneaux td[data-label]::before { content: attr(data-label); display: block; font-size: .72em; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
	.evg-creneaux td:first-child { grid-column: 1 / -1; font-weight: 700; }
	.evg-creneaux td:first-child::before { display: none; }
	.evg-creneau__places { text-align: left; }
	.evg-creneau__action { grid-column: 1 / -1; text-align: left; margin-top: .3em; }
	.evg-creneau__action .evg-bouton { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.evg-photos__piste { scroll-behavior: auto; }
	.evg-cadre__chevron, .evg-cadre__grille { transition: none; }
}

/*
 * 50 px entre le bas de l'en-tête et la thématique. Le thème ajoute ~120 px en haut de
 * .page_content_wrap sur toutes ses pages : on les retire sur la page de visite seulement.
 */
.evg-page-visite .page_content_wrap { padding-top: 0; }
.evg-page-visite .evg-visite { padding-top: 50px; }

/*
 * Le thème habille tous les <button> (fond, bordure, majuscules, marges intérieures) avec
 * des sélecteurs plus précis que les nôtres. On remonte la précision ici, sans !important.
 */
.evg-visite .evg-cadre button.evg-cadre__bascule,
.evg-visite .evg-photos button.evg-photos__fleche,
.evg-visite .evg-creneaux button.evg-bouton,
.evg-visite a.evg-bouton {
	box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 0;
}
.evg-visite .evg-cadre button.evg-cadre__bascule { background: var(--evg-or); color: var(--evg-sur-or); border: 0; border-top: 1px solid var(--evg-trait); border-radius: 0; padding: .9em 1em; }
.evg-visite .evg-cadre button.evg-cadre__bascule:hover { background: var(--evg-or-fonce); color: var(--evg-sur-or); }
.evg-visite .evg-photos button.evg-photos__fleche { background: rgb(0 0 0 / .45); color: #fff; border: 0; border-radius: 50%; padding: 0; width: 44px; height: 44px; }
.evg-visite .evg-photos button.evg-photos__fleche:hover { background: rgb(0 0 0 / .7); }
.evg-visite .evg-creneaux button.evg-bouton { background: var(--evg-or); color: var(--evg-sur-or); border: 0; border-radius: 0; padding: .55em 1.1em; font-size: .9em; }
.evg-visite .evg-creneaux button.evg-bouton:hover { background: var(--evg-or-fonce); }
/* En-tête et lignes du tableau : le thème les peint (bleu nuit, lignes zébrées). */
.evg-visite table.evg-creneaux th { background: transparent; color: inherit; }
.evg-visite table.evg-creneaux tbody tr, .evg-visite table.evg-creneaux tbody tr:nth-child(2n) { background: transparent; }
.evg-visite table.evg-creneaux tbody tr:hover { background: color-mix(in srgb, var(--evg-or) 8%, transparent); }
.evg-visite table.evg-creneaux td { background: transparent; }
.evg-visite .evg-creneaux button.evg-bouton { font-family: inherit; font-weight: 700; text-align: center; }

/* ── Fenêtre des visiteurs ──────────────────────────────────────────────────────── */
.evg-fenetre {
	--evg-or: #866d4b; --evg-or-fonce: #6e583b; --evg-sur-or: #fff;
	width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
	border-top: 5px solid var(--evg-or); background: #fff; color: #1d1b18;
	box-shadow: 0 20px 60px rgb(0 0 0 / .25);
}
.evg-fenetre::backdrop { background: rgb(20 16 10 / .55); }
.evg-fenetre[open] { animation: evg-apparition .25s ease; }
@keyframes evg-apparition { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.evg-fenetre__corps { margin: 0; padding: 28px clamp(20px, 5vw, 32px); display: grid; gap: 16px; }
.evg-fenetre h2 { margin: 0; font-size: 1.5rem; }
.evg-fenetre__creneau { margin: -8px 0 0; font-size: .95em; opacity: .8; }
.evg-fenetre__types { display: grid; gap: 4px; }
.evg-compteur { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgb(0 0 0 / .1); }
.evg-compteur__libelle { display: grid; font-weight: 600; }
.evg-compteur__prix { font-weight: 400; opacity: .7; font-variant-numeric: tabular-nums; }
.evg-compteur__commandes { display: flex; align-items: center; gap: 12px; }
.evg-fenetre .evg-compteur button {
	width: 38px; height: 38px; padding: 0; border: 1px solid var(--evg-or); border-radius: 0; background: transparent;
	color: var(--evg-or); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: none; min-height: 0;
}
.evg-fenetre .evg-compteur button:hover:not(:disabled) { background: var(--evg-or); color: var(--evg-sur-or); }
.evg-fenetre .evg-compteur button:disabled { opacity: .3; cursor: not-allowed; }
.evg-fenetre .evg-compteur button:focus-visible { outline: 2px solid var(--evg-or); outline-offset: 2px; }
.evg-compteur__nombre { min-width: 1.5em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.evg-fenetre__regle { margin: 0; font-size: .85em; opacity: .75; }
.evg-fenetre__total { margin: 0; display: flex; justify-content: space-between; font-size: 1.1em; }
.evg-fenetre__total strong { font-variant-numeric: tabular-nums; }
.evg-fenetre__erreur { margin: 0; padding: 10px 12px; background: #fbeaea; color: #8a1f1f; font-size: .9em; }
.evg-fenetre__succes-texte { margin: 0 0 12px; font-weight: 600; }
.evg-fenetre__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.evg-fenetre .evg-bouton {
	display: inline-block; padding: .8em 1.4em; border: 1px solid var(--evg-or); border-radius: 0; background: var(--evg-or); color: var(--evg-sur-or);
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 0; line-height: 1.2;
}
.evg-fenetre .evg-bouton:hover:not(:disabled) { background: var(--evg-or-fonce); border-color: var(--evg-or-fonce); color: var(--evg-sur-or); }
.evg-fenetre .evg-bouton:disabled { opacity: .45; cursor: not-allowed; }
.evg-fenetre .evg-bouton--clair { background: transparent; color: var(--evg-or); }
.evg-fenetre .evg-bouton--clair:hover:not(:disabled) { color: var(--evg-sur-or); }
.evg-fenetre [hidden] { display: none !important; }
@media (max-width: 480px) { .evg-fenetre__actions .evg-bouton { flex: 1 1 100%; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .evg-fenetre[open] { animation: none; } }
/* Les − et + : le thème impose fond gris au focus et retire la bordure ; l'identifiant l'emporte. */
#evg-fenetre .evg-compteur button,
#evg-fenetre .evg-compteur button:focus,
#evg-fenetre .evg-compteur button:active { border: 1px solid var(--evg-or); background: transparent; color: var(--evg-or); border-radius: 0; box-shadow: none; }
#evg-fenetre .evg-compteur button:hover:not(:disabled) { background: var(--evg-or); color: var(--evg-sur-or); }
#evg-fenetre .evg-compteur button:disabled { opacity: .3; background: transparent; color: var(--evg-or); }
#evg-fenetre .evg-compteur button:focus-visible { outline: 2px solid var(--evg-or); outline-offset: 2px; }
/* Le thème grise tout bouton désactivé avec !important : dans la fenêtre seulement, on garde nos couleurs. */
#evg-fenetre .evg-compteur button:disabled { background: transparent !important; color: var(--evg-or) !important; opacity: .3; }
#evg-fenetre .evg-bouton:disabled { background: var(--evg-or) !important; color: var(--evg-sur-or) !important; opacity: .45; }

/* ── Confirmation : les deux boutons sur une ligne ──────────────────────────────── */
#evg-fenetre .evg-fenetre__succes .evg-fenetre__actions { flex-wrap: nowrap; }
#evg-fenetre .evg-fenetre__succes .evg-bouton { flex: 1 1 0; padding: .8em .6em; text-align: center; white-space: normal; font-size: .92em; }
@media (max-width: 480px) { #evg-fenetre .evg-fenetre__succes .evg-bouton { flex: 1 1 0; } }

/* ── Calendrier compact ─────────────────────────────────────────────────────────── */
.evg-calendrier { width: 100%; max-width: 280px; margin: 0 auto; font-size: .85em; }
.evg-cal__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.evg-cal__mois { font-weight: 700; text-transform: capitalize; }
.evg-visite .evg-cal__nav, .evg-visite .evg-cal__nav:focus, .evg-visite .evg-cal__nav:active {
	width: 28px; height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--evg-or);
	font: inherit; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: none; min-height: 0;
}
.evg-visite .evg-cal__nav:disabled { opacity: .25; cursor: default; background: transparent !important; color: var(--evg-or) !important; }
.evg-cal__grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.evg-cal__js { font-size: .8em; opacity: .55; padding-bottom: 2px; text-transform: uppercase; }
.evg-cal__grille > span, .evg-visite .evg-cal__jour { display: grid; place-items: center; aspect-ratio: 1; font-variant-numeric: tabular-nums; }
.evg-cal__vide { opacity: .4; }
/* Jour avec créneaux : cerclé d'or. */
.evg-visite .evg-cal__jour, .evg-visite .evg-cal__jour:focus, .evg-visite .evg-cal__jour:active {
	width: 100%; padding: 0; margin: 0; border: 1.5px solid var(--evg-or); border-radius: 50%;
	background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; box-shadow: none; min-height: 0; line-height: 1;
}
.evg-visite .evg-cal__jour:hover { background: color-mix(in srgb, var(--evg-or) 15%, transparent); }
.evg-visite .evg-cal__jour.est-choisi { background: var(--evg-or); color: var(--evg-sur-or); }
.evg-visite .evg-cal__jour.est-complet { border-style: dashed; opacity: .5; text-decoration: line-through; }
.evg-visite .evg-cal__jour:focus-visible { outline: 2px solid var(--evg-or); outline-offset: 2px; }

/* Bandeau « Créneaux du … · Toutes les dates » au-dessus de la grille filtrée. */
.evg-filtre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: clamp(12px, 2.5vw, 28px) clamp(12px, 2.5vw, 28px) 0; font-weight: 600; }
.evg-visite .evg-filtre__tout, .evg-visite .evg-filtre__tout:focus {
	padding: 0; border: 0; background: transparent; color: var(--evg-or); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; box-shadow: none; min-height: 0;
}
.evg-visite__prix-date { margin: .8em 0 0; text-align: center; font-size: .85em; opacity: .75; }
/* Compacité : cercles de 28 px, quelle que soit la largeur de la colonne (≈ 220 px de haut en tout). */
.evg-calendrier { max-width: 250px; }
.evg-cal__grille { row-gap: 2px; column-gap: 0; }
.evg-cal__grille > span, .evg-visite .evg-cal__jour { aspect-ratio: auto; height: 28px; }
.evg-visite .evg-cal__jour { width: 28px; justify-self: center; font-size: .95em; }
.evg-cal__js { height: auto !important; }
.evg-cadre__dates h2 { margin-bottom: .6em; }
/* `hidden` doit l'emporter sur le display:grid de la liste (liste de secours sans JavaScript). */
.evg-cadre__dates .evg-cadre__liste[hidden], .evg-calendrier[hidden], .evg-filtre[hidden], .evg-visite__prix-date[hidden], .evg-creneaux tr[hidden] { display: none; }
/* Confirmation : chaque bouton tient sur une seule ligne. */
.evg-fenetre { width: min(500px, calc(100vw - 32px)); }
#evg-fenetre .evg-fenetre__succes .evg-bouton { white-space: nowrap; font-size: .88em; padding: .85em .5em; }
@media (max-width: 400px) { #evg-fenetre .evg-fenetre__succes .evg-bouton { font-size: .8em; } }

/* ── Icône « i » et bulle des conditions d'un tarif ─────────────────────────────── */
.evg-info { position: relative; display: inline-block; vertical-align: -3px; margin-left: 4px; }
.evg-visite .evg-info__bouton, .evg-visite .evg-info__bouton:focus, .evg-visite .evg-info__bouton:active {
	width: 20px; height: 20px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; color: var(--evg-or);
	cursor: pointer; box-shadow: none; min-height: 0; line-height: 0;
}
.evg-visite .evg-info__bouton:hover, .evg-visite .evg-info__bouton[aria-expanded="true"] { color: var(--evg-or-fonce); }
.evg-visite .evg-info__bouton:focus-visible { outline: 2px solid var(--evg-or); outline-offset: 2px; }
.evg-info__bouton svg { width: 20px; height: 20px; }
.evg-info__bulle {
	position: absolute; z-index: 20; top: calc(100% + 10px); left: 50%; translate: -50% 0;
	width: max-content; max-width: min(300px, 80vw); padding: 12px 14px;
	background: #1d1b18; color: #fff; font-size: .85em; line-height: 1.45; text-align: left;
	box-shadow: 0 10px 30px rgb(0 0 0 / .2); animation: evg-bulle .18s ease;
}
.evg-info__bulle::before { content: ""; position: absolute; top: -6px; left: 50%; translate: -50% 0; border: 6px solid transparent; border-top: 0; border-bottom-color: #1d1b18; }
.evg-info__bulle[hidden] { display: none; }
@keyframes evg-bulle { from { opacity: 0; translate: -50% -4px; } to { opacity: 1; translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .evg-info__bulle { animation: none; } }
@media (max-width: 760px) { .evg-info__bulle { left: auto; right: -10px; translate: 0 0; } .evg-info__bulle::before { left: auto; right: 14px; translate: 0 0; } }

/* Visite réservée chez l'organisateur. */
.evg-visite__externe { max-width: 40em; margin: 1.2em auto 0; text-align: center; font-size: .92em; opacity: .8; }

/* ── À la manière des festivals (16/10/2026) — voir includes/pratique.php ─────────── */

/* Sous-titre : « Jean-Baptiste Dewin, 1927 », avec son pictogramme. */
.evg-visite__sous-titre { display: flex; align-items: center; gap: .6em; margin: 0; font-weight: 700; font-size: 1.05em; }
.evg-visite__sous-titre .evg-picto { width: 1.6em; height: 1.6em; color: var(--evg-or); }

.evg-picto { width: 1.25em; height: 1.25em; flex: none; }

/* Description repliée : « Voir plus » (assets/visite.js). */
.evg-visite__texte.est-replie {
	max-height: 9.5em; overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
	mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.evg-repli__bouton {
	align-self: center; margin-top: -1em; padding: .7em 1.6em; border: 1px solid var(--evg-or); border-radius: 0;
	background: var(--evg-or); color: var(--evg-sur-or); font: inherit; font-weight: 600; cursor: pointer;
}
.evg-repli__bouton:hover, .evg-repli__bouton:focus-visible { background: transparent; color: var(--evg-or); }

/* Horaires : un tableau par jour, deux par ligne sur grand écran. */
.evg-horaires { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 40px); }
.evg-horaires__date { margin: 0 0 .7em; text-align: center; color: var(--evg-or); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; }
.evg-horaires__table { width: 100%; border-collapse: collapse; border: 1px solid var(--evg-or); }
.evg-horaires__table thead th { background: var(--evg-or); color: var(--evg-sur-or); padding: .75em 1em; font-weight: 700; text-align: center; }
.evg-horaires__table thead th:first-child { text-align: left; width: 6.5em; }
.evg-horaires__table tbody th,
.evg-horaires__table tbody td { padding: .9em 1em; border-top: 1px solid var(--evg-or); text-align: center; font-weight: 400; }
.evg-horaires__table tbody th { border-right: 1px solid var(--evg-or); }
.evg-horaires__table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--evg-or) 8%, transparent); }
.evg-horaires__complet { opacity: .7; white-space: nowrap; }
.evg-horaires__complet small { font-size: .75em; text-transform: uppercase; letter-spacing: .04em; }
.evg-horaires__sep { margin: 0 .25em; }

/* Infos pratiques | Accessibilité PMR et transports. */
.evg-pratique { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 5vw, 64px); }
.evg-pratique h2 { margin: 0 0 .8em; text-align: center; color: var(--evg-or); font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.evg-pratique__colonne > ul + h2 { margin-top: 1.4em; }
.evg-pratique ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9em; }
.evg-pratique li { display: flex; align-items: flex-start; gap: .7em; }
.evg-pratique li .evg-picto { margin-top: .1em; }
.evg-pratique li > span { display: flex; flex-direction: column; gap: .3em; }
.evg-pratique__note { font-size: .82em; opacity: .75; }
.evg-pratique__colonne:nth-child(2) ul { justify-content: center; }
/* Sur téléphone, la liste des infos pratiques se centre aussi sous son titre (23/10/2026). */
@media (max-width: 767px) { .evg-pratique ul { justify-content: center; } }

/* Le thème met un fond sombre sur les <th> : la colonne des langues garde le fond du tableau.
   Et un jour seul ne s'étale pas sur toute la largeur : colonnes de 560 px au plus, centrées. */
.evg-visite .evg-horaires__table tbody th { background: transparent; color: inherit; }
.evg-visite .evg-horaires__table tbody tr:nth-child(even) th { background: transparent; }
.evg-visite .evg-horaires__table thead th { background: var(--evg-or); color: var(--evg-sur-or); }
.evg-horaires { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 560px)); justify-content: center; }
.evg-visite .evg-horaires__table tbody th,
.evg-visite .evg-horaires__table tbody td { background: #fff; }
.evg-visite .evg-horaires__table tbody tr:nth-child(even) th,
.evg-visite .evg-horaires__table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--evg-or) 8%, #fff); }

/* « Voir plus » animé : la hauteur glisse (assets/visite.js pose les valeurs en pixels). */
.evg-visite__texte.est-anime {
	overflow: hidden;
	transition: max-height .5s cubic-bezier(.4, 0, .2, 1);
}
@media (prefers-reduced-motion: reduce) { .evg-visite__texte.est-anime { transition: none; } }

/* Au-delà de 4 jours, la suite est repliée derrière « Voir toutes les dates » (visite.js). */
.evg-horaires-bloc { display: flex; flex-direction: column; }
.evg-horaires__suite { box-sizing: border-box; padding-top: clamp(24px, 4vw, 40px); }
.evg-horaires__suite.est-ferme { max-height: 0; padding-top: 0; overflow: hidden; visibility: hidden; }
.evg-horaires__suite.est-anime { overflow: hidden; transition: max-height .5s cubic-bezier(.4, 0, .2, 1), padding-top .5s cubic-bezier(.4, 0, .2, 1); }
.evg-horaires__bouton { margin-top: clamp(24px, 4vw, 36px); }
@media (prefers-reduced-motion: reduce) { .evg-horaires__suite.est-anime { transition: none; } }
