/*
 * Zone de réservation (mu-plugin maj-rodrigue-billetterie) : accordéon grid-template-rows 0fr → 1fr.
 * Repris de la zone de test de Michel (thème enfant, assets/zone-widget, 30/09/2026), mêmes classes.
 */

.zw {
	--zw-duree: .45s;
	--zw-rouge: #c10d1b;
	--zw-rouge-fonce: #9a0a15;
	--zw-fond: #fff;
	--zw-texte: #1a1a1a;

	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows var(--zw-duree) cubic-bezier(.4, 0, .2, 1), visibility 0s linear var(--zw-duree);
}

.zw.is-open {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows var(--zw-duree) cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0s;
}

/* Le "clip" : aucun padding ici, sinon il reste visible replié */
.zw__clip {
	min-height: 0;
	overflow: hidden;
}

.zw__panel {
	margin: 24px 0; /* contenu dans le clip (BFC), donc masqué replié */
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
	overflow: hidden; /* l'image suit l'arrondi du bloc */
	background: var(--zw-fond);
	color: var(--zw-texte);
	border-radius: 18px;
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity .25s ease, transform .25s ease;
}

.zw.is-open .zw__panel {
	opacity: 1;
	transform: none;
	transition-delay: .15s;
}


/* ---------- Colonnes avec contenu à gauche et image à droite ---------- */

.zw__contenu {
	padding: 32px 36px;
	align-self: center;
}

.zw__visuel {
	margin: 0;
	min-height: 260px;
	background: #1a1a1a; /* le temps que l'image arrive… */
}

.zw__visuel img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover; /* remplit toute la hauteur du bloc */
}




/* ---------- Contenu ---------- */

.zw__surtitre {
	margin: 0 0 .6em;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--zw-rouge);
}

.zw__titre { margin: 0; outline: none; }
.zw__quand { margin: .35em 0 0; font-size: 1.15em; font-weight: 600; }
.zw__note  { margin: .25em 0 0; opacity: .7; }

.zw__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

/* .zw en préfixe pour éviter que Salient nous les brise… */
.zw .zw__btn {
	appearance: none;
	cursor: pointer;
	padding: 12px 22px;
	border: 2px solid var(--zw-rouge);
	border-radius: 999px;
	background: transparent;
	color: var(--zw-rouge);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color .2s, border-color .2s, color .2s;
}

.zw .zw__btn:hover,
.zw .zw__btn:focus-visible {
	background: var(--zw-rouge);
	color: #fff;
}

.zw .zw__btn--primaire {
	background: var(--zw-rouge);
	color: #fff;
}

.zw .zw__btn--primaire:hover,
.zw .zw__btn--primaire:focus-visible {
	background: var(--zw-rouge-fonce);
	border-color: var(--zw-rouge-fonce);
}

.zw .zw__retour {
	display: inline-block;
	margin-top: 24px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--zw-rouge);
	text-decoration: none;
}

.zw .zw__retour:hover { text-decoration: underline; }

/* ---------- Séance sélectionnée (calendrier + liste des séances) ---------- */
a[data-seance].is-selected {
	text-decoration: underline;
	text-underline-offset: 3px;
}

#calendrier:focus { outline: none; }

@media (max-width: 690px) {
	.zw__panel {
		grid-template-columns: minmax(0, 1fr); /* 1fr seul prendrait la largeur de l'image (844 px) */
	}
	.zw__visuel {
		order: -1;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
	.zw__contenu {
		padding: 24px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zw,
	.zw.is-open,
	.zw__panel,
	.zw.is-open .zw__panel {
		transition: none;
	}
}
