/*
 * Agenda des marchés — maquette Wonderland. Couleurs et polices du thème
 * (variables --wp--*), avec les valeurs de la charte en secours.
 */

.wonderland-avenir,
.wonderland-passes,
.wonderland-prochains,
.wonderland-marche-infos {
	--agenda-aubergine: var(--wp--preset--color--aubergine, #2a1c36);
	--agenda-aubergine-clair: var(--wp--preset--color--aubergine-clair, #36263f);
	--agenda-creme: var(--wp--preset--color--creme, #fcf8d8);
	--agenda-beige: var(--wp--preset--color--beige-rose, #ddcac0);
	--agenda-turquoise: var(--wp--preset--color--turquoise, #3cd6c4);
	--agenda-prune: var(--wp--custom--couleur--prune, #4a3550);
	--agenda-brun: var(--wp--custom--couleur--brun-clair, #8a5a2e);
	--agenda-photo: var(--wp--custom--couleur--beige-fonce, #c9b3a7);
	--agenda-titres: var(--wp--preset--font-family--fraunces, Georgia, serif);
}

.wonderland-avenir :where(p, h2, h3),
.wonderland-prochains :where(p, h2),
.wonderland-passes :where(p, h2, h3),
.wonderland-marche-infos :where(p) {
	margin: 0;
}

.wonderland-agenda-surtitre {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--agenda-turquoise);
}

/* --- À venir ----------------------------------------------------------------- */

.wonderland-avenir {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wonderland-avenir .wonderland-agenda-surtitre {
	margin-bottom: 8px;
	font-family: inherit;
	line-height: 1.4;
}

.wonderland-avenir__vide {
	font-size: 17px;
	color: var(--agenda-beige);
}

.wonderland-avenir__ligne {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	padding: 22px 26px;
	background: var(--agenda-aubergine-clair);
	border-radius: 22px;
}

.wonderland-marche-date {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	min-width: 76px;
	text-align: center;
	color: var(--agenda-turquoise);
}

.wonderland-marche-date__jours {
	font-family: var(--agenda-titres);
	font-size: 40px;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
}

.wonderland-marche-date__mois {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

/* Plusieurs jours (« 24–25 ») : plus petit pour tenir dans la pastille */
.wonderland-marche-date--plusieurs-jours .wonderland-marche-date__jours {
	font-size: 24px;
	line-height: 40px;
}

.wonderland-avenir__texte {
	flex: 999 1 180px;
	min-width: 0;
}

@media (max-width: 600px) {
	.wonderland-avenir__ligne {
		gap: 16px 18px;
		padding: 20px;
	}

	.wonderland-avenir__nom {
		font-size: 21px;
	}
}

.wonderland-avenir__nom {
	font-family: var(--agenda-titres);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.wonderland-avenir__infos {
	margin-top: 6px !important;
	font-size: 16px;
	color: var(--agenda-beige);
}

.wonderland-avenir__itineraire {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	font-size: 15px;
	font-weight: 700;
	color: var(--agenda-creme);
	text-decoration: none;
	border: 2px solid rgba(252, 248, 216, 0.4);
	border-radius: 999px;
}

.wonderland-avenir__itineraire:hover,
.wonderland-avenir__itineraire:focus-visible {
	color: var(--agenda-creme);
	border-color: var(--agenda-creme);
}

/* --- Marchés passés ---------------------------------------------------------- */

.wonderland-passes {
	color: var(--agenda-aubergine);
	background: var(--agenda-beige);
}

.wonderland-passes__interieur {
	display: flex;
	flex-direction: column;
	gap: 36px;
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--wide-size, 1200px) + 48px);
	margin-inline: auto;
	padding: clamp(64px, 8vw, 88px) 24px clamp(72px, 9vw, 104px);
}

.wonderland-passes__entete {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wonderland-passes__titre {
	font-family: var(--agenda-titres);
	font-size: clamp(38px, 5vw, 52px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	color: inherit;
}

.wonderland-passes__titre em {
	font-weight: 500;
	color: inherit;
}

.wonderland-passes__intro {
	font-size: 18px;
	color: var(--agenda-prune);
}

.wonderland-passes__grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 24px;
}

.wonderland-passe {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--agenda-creme);
	border-radius: 24px;
	scroll-margin-top: 24px;
}

.wonderland-passe__photo {
	display: block;
	height: 220px;
	background: var(--agenda-photo);
}

.wonderland-passe__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.wonderland-passe__contenu {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 24px 26px 28px;
}

.wonderland-passe__date {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--agenda-brun);
}

.wonderland-passe__nom {
	font-family: var(--agenda-titres);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
	color: inherit;
}

.wonderland-passe__texte {
	font-size: 16px;
	line-height: 1.55;
	color: var(--agenda-prune);
}

.wonderland-passe__lien {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--agenda-aubergine);
	text-decoration: none;
}

.wonderland-passe__lien:hover {
	color: var(--agenda-prune);
}

.wonderland-passes .wonderland-passes__plus {
	align-self: center;
	padding: 15px 30px;
	font-size: 16px;
	font-weight: 700;
	color: var(--agenda-creme);
	text-decoration: none;
	background: var(--agenda-aubergine);
	border-radius: 999px;
}

.wonderland-passes .wonderland-passes__plus:hover {
	color: var(--agenda-aubergine);
	background: var(--agenda-creme);
}

/* --- Page d'un marché -------------------------------------------------------- */

.wonderland-marche-infos {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.wonderland-marche-infos__lieu {
	font-size: 18px;
	color: var(--agenda-beige);
}

/* --- Prochains marchés (accueil) --------------------------------------------- */

.wonderland-prochains__interieur {
	display: flex;
	flex-direction: column;
	gap: 28px;
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--wide-size, 1200px) + 48px);
	margin-inline: auto;
	padding: 72px 24px;
}

.wonderland-prochains__entete {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.wonderland-prochains__titre {
	font-family: var(--agenda-titres);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
}

.wonderland-prochains__lien {
	padding-bottom: 2px;
	font-size: 16px;
	font-weight: 700;
	color: var(--agenda-creme);
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--caramel, #b87c47);
}

.wonderland-prochains__lien:hover {
	color: var(--agenda-beige);
}

.wonderland-prochains__grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 16px;
}

.wonderland-prochain {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 22px;
	border: 1px solid rgba(252, 248, 216, 0.18);
	border-radius: 20px;
}

.wonderland-prochain .wonderland-marche-date {
	min-width: 64px;
}

.wonderland-prochain .wonderland-marche-date__jours {
	font-size: 32px;
	line-height: 1;
}

.wonderland-prochain .wonderland-marche-date--plusieurs-jours .wonderland-marche-date__jours {
	font-size: 22px;
	line-height: 32px;
}

.wonderland-prochain .wonderland-marche-date__mois {
	margin-top: 4px;
}

.wonderland-prochain__nom {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.wonderland-prochain__infos {
	margin-top: 4px !important;
	font-size: 15px;
	color: var(--agenda-beige);
}
