/* ==========================================================================
   Scène à Scène — styles du thème
   Palette : « Thème couleur.png » des maquettes.
   ========================================================================== */

:root {
	--rouge: #9e361d;
	--saumon: #ce7d69;
	--peche: #fed2a3;
	--bleu: #036c8a;
	--turquoise: #5096a9;
	--bleu-pale: #b0c4c9;
	--violet: #5b3d89;
	--lavande: #8d6db9;
	--lilas: #b9aace;
	--gris-fonce: #2a2828;
	--gris: #545454;
	--rose-pale: #e7dada;
	--fond: #1c1a1a;
	--gris-texte: #8f8b8b;

	--font: "Garet", "Lexend", system-ui, sans-serif;
	--font-display: "Badhorse", "Limelight", "Garet", serif;
	--font-brush: "Brought", "Lilita One", "Garet", sans-serif;
	--font-cta: "Fira Sans Condensed", "Arial Narrow", sans-serif;

	--container: 1340px;
	--gutter: clamp(16px, 2.6vw, 40px);
	--section: clamp(48px, 6vw, 90px);
	--radius: 5px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--fond);
	color: var(--rose-pale);
	font-family: var(--font);
	font-size: clamp(16px, 1.05vw + 4px, 19px);
	line-height: 1.5;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--peche);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	line-height: 1.1;
}

p {
	margin: 0 0 1em;
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 20px;
	background: var(--peche);
	color: var(--fond);
	font-weight: 800;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(1060px + 2 * var(--gutter));
}

.section {
	padding-block: var(--section);
	position: relative;
}

.text-justify,
.entry--justify {
	text-align: justify;
	hyphens: auto;
}

.empty {
	color: var(--bleu-pale);
	font-style: italic;
}

.notice {
	padding: 14px 20px;
	border-left: 4px solid var(--lavande);
	background: var(--gris-fonce);
	margin-bottom: 30px;
}

.icon {
	display: inline-flex;
	flex: none;
	width: 1.2em;
	height: 1.2em;
}

.icon svg {
	width: 100%;
	height: 100%;
}

/* Séparateur bleu dégradé entre les sections */
.divider {
	border: 0;
	height: 3px;
	max-width: 1180px;
	margin: 0 auto;
	background: linear-gradient(90deg, transparent, var(--bleu) 50%, transparent);
	opacity: 0.85;
}

/* ---------- Typographie ---------- */

.kicker {
	margin: 0 0 0.35em;
	color: var(--turquoise);
	font-size: clamp(15px, 1.2vw, 19px);
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.3;
}

.title {
	font-weight: 800;
	/* même taille pour tous les grands titres (40 px au maximum) */
	font-size: clamp(28px, 2.75vw, 40px);
	line-height: 1.05;
	letter-spacing: -0.035em;
	margin-bottom: 0.45em;
}

.title__l1 {
	color: var(--rose-pale);
}

.title__l2 {
	display: block;
	color: var(--lavande);
}

.display {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.05;
}

.note {
	font-size: 0.72em;
	color: var(--rose-pale);
}

/* pas de marge sous le dernier élément d'un bloc : l'espace avant les barres de séparation reste identique partout */
.note:last-child,
.section p:last-child {
	margin-bottom: 0;
}

.entry > :last-child {
	margin-bottom: 0;
}

.entry h2,
.entry h3 {
	margin: 1.4em 0 0.2em;
	color: var(--rouge);
	font-size: 1.05em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	filter: brightness(1.25);
}

.entry h3::before {
	content: "▷ ";
	font-weight: 400;
}

.entry a {
	color: var(--peche);
}

.entry img {
	border-radius: var(--radius);
}

.entry .wp-block-gallery {
	gap: 16px;
	margin-block: 30px;
}

.basic-page .entry h2 {
	color: var(--peche);
	filter: none;
	text-transform: none;
	font-size: 1.3em;
}

.basic-page__title {
	font-size: clamp(36px, 5vw, 64px);
	text-align: center;
	margin-bottom: 1em;
}

/* ---------- Boutons ---------- */

.btn,
.form input[type="submit"],
.form .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 52px;
	padding: 0.65em 1.8em;
	border: 3px solid var(--bleu);
	background: #182025;
	color: var(--rose-pale);
	font-family: var(--font);
	font-size: clamp(16px, 1.25vw, 20px);
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 0 40px rgba(3, 108, 138, 0.12);
	transition: background-color 0.2s, color 0.2s;
}

.btn:hover,
.form input[type="submit"]:hover,
.form .wpcf7-submit:hover {
	background: var(--bleu);
}

.btn--large {
	min-height: 66px;
	min-width: min(100%, 330px);
	font-size: clamp(18px, 1.5vw, 23px);
}

.btn--ticket {
	border: 2px dotted var(--rouge);
	outline: 3px solid var(--saumon);
	outline-offset: 0;
	background: var(--saumon);
	color: #f8ece7;
	min-height: 0;
	padding: 0.7em 1.8em;
	margin: 4px;
}

.btn--ticket:hover {
	background: var(--rouge);
	outline-color: var(--rouge);
	border-color: var(--saumon);
}

.btn--violet {
	border-color: var(--lavande);
	background: #2c2433;
	text-transform: uppercase;
	min-width: 240px;
}

.btn--violet:hover {
	background: var(--violet);
}

.link-more {
	color: var(--turquoise);
	text-decoration: none;
	font-size: 0.82em;
}

.link-more:hover {
	color: var(--peche);
	text-decoration: underline;
}

/* Boutons d'action (don / billet / adhésion) */
.cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(10px, 1.6vw, 22px);
}

.cta {
	display: inline-flex;
	align-items: center;
	gap: 0.8em;
	padding: 0.32em 0.85em 0.36em 0.7em;
	color: var(--rose-pale);
	font-family: var(--font-cta);
	font-weight: 500;
	font-size: clamp(18px, 1.55vw, 25px);
	line-height: 1.2;
	text-decoration: none;
	transition: filter 0.2s, transform 0.2s;
}

.cta .icon {
	width: 1.3em;
	height: 1.3em;
}

.cta:hover {
	filter: brightness(1.18);
	transform: translateY(-1px);
}

.cta--don {
	background: var(--rouge);
}

.cta--billet {
	background: var(--bleu);
}

.cta--adhesion {
	background: var(--violet);
}

.cta--adhesion .icon {
	width: 1.6em;
}

/* Étiquettes (types de spectacle, rubriques de la gazette) */
.tag {
	display: inline-block;
	padding: 0.55em 1.4em;
	background: var(--tag, var(--saumon));
	color: var(--rose-pale);
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
}

.tag--theatre {
	--tag: var(--saumon);
}

.tag--evenementiel {
	--tag: var(--lavande);
}

.tag--comedie-musicale {
	--tag: var(--turquoise);
}

.tag--presse {
	--tag: var(--bleu);
}

.tag--coulisses {
	--tag: var(--violet);
}

/* ---------- En-tête ---------- */

.site-header {
	position: relative;
	z-index: 50;
	/* fondu rouge → fond plus long et adouci (paliers « en douceur » au début et à la fin) */
	background: linear-gradient(180deg, #9e361d 0, #96341d 9px, #84301c 19px, #5d281c 34px, #36201b 50px, #241c1a 61px, #1c1a1a 72px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: calc(1400px + 2 * var(--gutter));
	margin-inline: auto;
	padding: clamp(30px, 3.6vw, 62px) var(--gutter) clamp(14px, 2vw, 30px);
}

/* Logo : le nom chevauche le haut de l'emblème (au-dessus de la note), toutes les tailles dépendent de --logo */
.brand {
	--logo: clamp(74px, 9.6vw, 145px);
	position: relative;
	display: flex;
	align-items: flex-start;
	color: var(--rose-pale);
	text-decoration: none;
	flex: none;
}

.brand__emblem {
	width: calc(var(--logo) * 1.15);
	height: auto;
	/* l'emblème descend un peu : le haut de la note reste sous la ligne du titre */
	margin-top: calc(var(--logo) * 0.1);
}

.brand__name {
	position: relative;
	margin: calc(var(--logo) * -0.01) 0 0 calc(var(--logo) * -0.58);
	font-family: var(--font-display);
	font-size: calc(var(--logo) * 0.39);
	line-height: 1;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.site-header__menu {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: clamp(20px, 3.4vw, 52px);
}

.main-nav .menu {
	display: flex;
	flex-wrap: wrap;
	flex-wrap: nowrap;
	justify-content: flex-end;
	gap: 6px clamp(4px, 0.8vw, 14px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	display: block;
	padding: 0.45em 0.75em;
	color: var(--peche);
	font-size: clamp(16px, 1.35vw, 21px);
	text-decoration: none;
	white-space: nowrap;
	letter-spacing: 0.03em;
	border-radius: 4px;
	transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover {
	color: #fff3e3;
	background: rgba(254, 210, 163, 0.08);
}

/* onglet actif : petit billet couleur pêche */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav a[aria-current="page"] {
	/* Billet de la maquette en vectoriel (ticket.svg), posé en border-image :
	   les coins (encoches, étoiles) gardent leur taille, seules les lignes s'allongent avec le mot. */
	background: none;
	border: 0 solid transparent;
	border-image: url("../img/ticket.svg") 20 fill / 20px / 0 stretch;
	color: var(--rouge);
	padding-inline: 1.2em;
	border-radius: 0;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 2px solid var(--peche);
	border-radius: 4px;
	background: transparent;
	color: var(--peche);
	cursor: pointer;
}

/* 3 traits (barre du milieu + ::before / ::after) qui se transforment en croix quand le menu est ouvert */
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 26px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.2s, background-color 0.2s;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	transform: translateY(-8px);
}

.nav-toggle__bars::after {
	transform: translateY(8px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: rotate(-45deg);
}

/* ---------- Bandeaux photo ---------- */

.page-hero {
	position: relative;
	background: #000;
}

.page-hero__img {
	width: 100%;
	height: clamp(220px, 34vw, 500px);
	object-fit: cover;
}

.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 60px 20px rgba(0, 0, 0, 0.55);
}

/* ---------- Carrousel d'accueil ---------- */

.slider {
	position: relative;
	background: #000;
	overflow: hidden;
}

.slide {
	position: relative;
	min-height: clamp(420px, 36vw, 520px);
	display: flex;
	align-items: center;
}

.slide__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slide::after {
	content: "";
	position: absolute;
	inset: 0;
	/* dégradé noir à gauche (lisibilité du texte) et à droite (bord de l'image) */
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, 0.75) 100%);
	box-shadow: inset 0 0 60px 20px rgba(0, 0, 0, 0.5);
}

.slide.is-active {
	animation: slide-in 0.6s ease;
}

@keyframes slide-in {
	from {
		opacity: 0.2;
	}
}

/* lien invisible sur toute la diapositive : ouvre la fiche du spectacle */
.slide__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.slide__link:focus-visible {
	outline-offset: -6px;
}

.slide__content {
	position: relative;
	z-index: 2;
	pointer-events: none;
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 50px calc(var(--gutter) + clamp(30px, 6vw, 110px)) 70px;
}

.slide__content .btn {
	pointer-events: auto;
}

.slide__title {
	max-width: 9.5em;
	margin-bottom: 0.25em;
	color: #f6f2ec;
	font-family: var(--font-brush);
	font-weight: 400;
	font-size: clamp(34px, 4.6vw, 68px);
	line-height: 1.12;
	/* Brought ne dessine que des capitales : ses « minuscules » ont la même hauteur avec des accents bien placés,
	   alors que ses vraies majuscules accentuées (É, À) ont l'accent très haut, qui heurte la ligne du dessus */
	text-transform: lowercase;
	letter-spacing: 0.01em;
}

.slide__subtitle {
	margin-bottom: 0.6em;
	font-size: clamp(17px, 1.5vw, 23px);
}

.slide__date {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin-bottom: 1.6em;
	font-size: clamp(17px, 1.6vw, 24px);
}

.slide__date .icon {
	width: 1.5em;
	height: 1.5em;
}

.slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(185, 170, 206, 0.6);
	color: var(--fond);
	cursor: pointer;
	transition: background-color 0.2s;
}

.slider__arrow:hover {
	background: var(--lilas);
}

/* premier / dernier spectacle : flèche grisée (comme le carrousel des cartes) */
.slider__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.slider__arrow:disabled:hover {
	background: rgba(185, 170, 206, 0.6);
}

.slider__arrow .icon {
	width: 26px;
	height: 26px;
}

.slider__arrow--prev {
	left: clamp(10px, 2.5vw, 36px);
}

.slider__arrow--next {
	right: clamp(10px, 2.5vw, 36px);
}

.slider__dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	z-index: 2;
	display: flex;
	gap: 8px;
	transform: translateX(-50%);
}

.slider__dot {
	width: 16px;
	height: 16px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(185, 170, 206, 0.45);
	cursor: pointer;
}

.slider__dot[aria-current="true"] {
	background: var(--lilas);
}

/* ---------- Accueil : présentation ---------- */

.presentation__grid {
	display: grid;
	grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 50px);
}

/* les fils des masques démarrent en fondu derrière le titre (fond de l'image = fond du site) */
.presentation__aside .title {
	position: relative;
	z-index: 1;
}

.presentation__masks {
	width: min(100%, 360px);
	margin-top: -150px;
}

.presentation__text {
	padding-top: 0.9em;
}

.quote {
	margin: 1.6em 0 0 clamp(0px, 5vw, 60px);
	padding: 0 0 0 1.2em;
	border-left: 2px solid var(--rouge);
	color: var(--saumon);
	text-align: justify;
}

.quote p:last-child {
	margin: 0;
}

/* ---------- Accueil : ateliers (cartes retournables) ---------- */

.home-ateliers__grid {
	display: grid;
	grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
	gap: clamp(24px, 2.4vw, 40px);
	align-items: start;
}

/* « Une scène pour » sur une seule ligne dans sa colonne */
.home-ateliers__intro .title__l1 {
	white-space: nowrap;
}

.flips {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* container-type : les tailles de texte des cartes (en cqw) suivent la largeur de la carte, sur ordinateur comme sur mobile */
.flip {
	--card: var(--rouge);
	--card-ink: var(--gris-fonce);
	container-type: inline-size;
	perspective: 1200px;
	aspect-ratio: 1 / 1.68;
}

.flip--rouge {
	--card: var(--rouge);
}

.flip--saumon {
	--card: var(--saumon);
}

.flip--violet {
	--card: var(--violet);
}

.flip--bleu {
	--card: var(--bleu);
}

.flip--turquoise {
	--card: var(--turquoise);
}

.flip__inner {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--rose-pale);
	font: inherit;
	text-decoration: none;
	cursor: pointer;
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.3, 1);
}

@media (hover: hover) {
	.flip:hover .flip__inner {
		transform: rotateY(180deg);
	}
}

.flip.is-flipped .flip__inner,
.flip__inner:focus-visible {
	transform: rotateY(180deg);
}

.flip__face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px;
	background: var(--card);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.flip__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1;
	background: var(--card);
	overflow: hidden;
}

.flip__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--card);
	mix-blend-mode: color;
	opacity: 0.35;
}

.flip__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.flip__title {
	display: flex;
	flex-direction: column;
	align-items: center;
	/* recto : titre + âge groupés et centrés dans l'espace sous la photo */
	margin: auto 0 0;
	font-family: var(--font-display);
	font-size: 16.5cqw;
	line-height: 1.12;
	white-space: nowrap;
	text-transform: uppercase;
	text-align: center;
}

/* petit espace entre la photo et le titre */
.flip__front .flip__title {
	padding-top: 5cqw;
}

.flip__age {
	margin: 5cqw 0 auto;
	color: var(--card-ink);
	font-size: 6.6cqw;
}

/* verso (maquette « Dos de carte ») : titre en haut, horaire et lieu, prix, animateur·rice en bas */
.flip__back {
	transform: rotateY(180deg);
	/* textes regroupés (espaces courts et réguliers), bloc centré dans la carte */
	justify-content: center;
	gap: 7cqw;
	padding: 10% 6%;
	outline: 3px dotted var(--gris);
	outline-offset: -8px;
	text-align: center;
}

.flip__back .flip__title {
	margin: 0 0 4cqw;
	font-size: 16.5cqw;
}

.flip__info {
	font-size: 7cqw;
	line-height: 1.3;
}

.flip__price {
	font-size: 8.6cqw;
}

/* ordinateur : cartes descendues au niveau du titre, plus longues, textes plus grands */
@media (min-width: 1181px) {
	.flips {
		margin-top: 28px;
	}

	.flip {
		aspect-ratio: 1 / 1.95;
	}

	.flip__title,
	.flip__back .flip__title {
		font-size: 18cqw;
	}

	.flip__age {
		font-size: 7.4cqw;
	}

	.flip__info {
		font-size: 7.8cqw;
	}

	.flip__price {
		font-size: 9.6cqw;
	}

	.flip__back {
		gap: 8cqw;
	}
}

/* ---------- Gazette (cartes) ---------- */

.home-gazette__grid {
	display: grid;
	grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
	gap: clamp(24px, 2.4vw, 40px);
	align-items: center;
}

/* Le titre passe en « en ligne » : le bouton se place juste après le dernier mot (« presse »),
   sur la même ligne s'il y a la place, sinon en dessous, sans jamais chevaucher le texte. */
.home-gazette__intro .title {
	display: inline;
	margin: 0;
}

.home-gazette__intro .title__l1::after {
	content: "\A";
	white-space: pre;
}

.home-gazette__intro .title__l2 {
	display: inline;
}

.home-gazette__intro .btn {
	display: inline-flex;
	vertical-align: 0.15em;
	min-height: 0;
	margin: 0.6em 0 0 0.9em;
	padding: 0.55em 1.3em;
	font-size: clamp(14px, 1.05vw, 16px);
	border-width: 2px;
}

.post-grid {
	display: grid;
	gap: clamp(14px, 1.6vw, 26px);
}

.post-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
}

.post-card {
	--accent: var(--bleu);
	position: relative;
	display: flex;
	flex-direction: column;
	background: linear-gradient(160deg, #2a2828, #242121);
	border: 2px solid #4d4b4b;
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.2s, border-color 0.2s;
}

.post-card--coulisses {
	--accent: var(--violet);
}

.post-card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
}

/* image en position absolue : sa hauteur ne peut pas agrandir la carte (ex. scan d'article très haut) */
.post-card__media {
	position: relative;
	aspect-ratio: 3 / 1;
	background: #ececec;
}

.post-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.post-card__media .tag {
	position: absolute;
	left: 20px;
	bottom: -12px;
	z-index: 1;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 18px 12px;
}

.post-card__title {
	font-size: clamp(16px, 1.2vw, 19px);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.25;
	margin-bottom: 0.8em;
}

.post-card__link {
	text-decoration: none;
}

.post-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.post-card__excerpt {
	margin-bottom: 0.4em;
	font-size: 12px;
	line-height: 1.45;
}

.post-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	color: var(--gris);
	font-size: 11px;
}

.round-arrow {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--fond);
}

.round-arrow .icon {
	width: 19px;
	height: 19px;
}

.poster-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: #f6f6f7;
	color: #dcdde0;
}

.poster-placeholder .icon {
	width: 62%;
	height: auto;
	aspect-ratio: 4 / 3;
}

.post-card .poster-placeholder {
	color: #959aa0;
}

.post-card .poster-placeholder .icon {
	width: 46%;
}

/* ---------- Partenaires ---------- */

/* bandeau qui défile en boucle : deux copies de la liste, décalées de -50 % */
.marquee {
	margin: 26px 0 50px;
	overflow: hidden;
	-webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
	animation-play-state: paused;
}

@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}

.partners__logos {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-around;
	gap: clamp(40px, 5vw, 80px);
	min-width: 100vw;
	margin: 0;
	padding: 0 clamp(20px, 2.5vw, 40px);
	list-style: none;
}

.partners__logos li {
	flex: none;
}

/* sans animation (réglage d'accessibilité du système) : logos fixes, sur plusieurs lignes */
@media (prefers-reduced-motion: reduce) {
	.marquee {
		-webkit-mask: none;
		mask: none;
	}

	.marquee__track {
		width: auto;
		animation: none;
	}

	.partners__logos {
		flex-wrap: wrap;
		gap: 26px 40px;
		min-width: 0;
		width: 100%;
	}

	.partners__logos[aria-hidden="true"] {
		display: none;
	}
}

.partners__img {
	width: auto;
	max-width: 220px;
	max-height: 76px;
	object-fit: contain;
	transition: transform 0.2s;
}

.partners__logos a:hover .partners__img {
	transform: scale(1.05);
}

.partners__name {
	font-weight: 800;
}

.partners__call {
	text-align: center;
}

.partners__thanks {
	margin: 0;
	color: var(--gris-texte);
	font-weight: 800;
	font-size: clamp(17px, 1.7vw, 26px);
}

.partners__ask {
	margin-bottom: 1.5em;
	font-size: clamp(17px, 1.7vw, 26px);
}

/* ---------- Spectacles ---------- */

.show-details {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.64fr);
	gap: clamp(24px, 2vw, 30px);
	align-items: start;
}

.show-title {
	margin: 0.4em 0 0.9em;
	color: var(--saumon);
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(30px, 3.6vw, 52px);
	text-align: center;
	text-transform: uppercase;
	/* Badhorse a des boucles sous la ligne (P, S…) : interligne large pour qu'elles ne touchent pas la ligne suivante */
	line-height: 1.3;
}

.show-meta {
	display: grid;
	gap: 22px;
	margin: 0 0 30px;
	padding: 0 0 0 clamp(0px, 3vw, 44px);
	list-style: none;
}

.show-meta li {
	display: flex;
	align-items: center;
	gap: 22px;
}

.show-meta .icon {
	width: 34px;
	height: 34px;
	color: var(--bleu);
	--icon-hole: var(--fond);
}

.show-meta--small {
	gap: 8px;
	padding: 0;
	margin-bottom: 16px;
	font-size: clamp(11px, 0.85vw, 12px);
}

.show-meta--small li {
	gap: 10px;
}

.show-meta--small .icon {
	width: 20px;
	height: 20px;
	color: var(--rose-pale);
	--icon-hole: var(--gris-fonce);
}

.show-details__content {
	text-align: justify;
	hyphens: auto;
}

.show-details__cta {
	margin: 46px 0 0;
	text-align: center;
}

.show-details__cta .btn {
	min-width: min(100%, 320px);
}

.show-details__poster {
	aspect-ratio: 1 / 1.414;
	background: #f6f6f7;
	overflow: hidden;
}

.show-details__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* carrousel de cartes */
.carousel {
	position: relative;
	padding-inline: clamp(46px, 6vw, 84px);
}

.carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 30px) / 4);
	gap: 30px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	/* marge haute : la carte soulevée au survol n'est pas coupée (compensée par la marge négative) */
	padding: 10px 2px 10px;
	margin-top: -10px;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

.carousel__arrow {
	position: absolute;
	top: 62%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lilas);
	color: var(--fond);
	cursor: pointer;
	transform: translateY(-50%);
}

.carousel.is-static .carousel__arrow {
	visibility: hidden;
}

.carousel__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.carousel__arrow .icon {
	width: 26px;
	height: 26px;
}

.carousel__arrow--prev {
	left: 0;
}

.carousel__arrow--next {
	right: 0;
}

.show-card {
	position: relative;
	display: flex;
	flex-direction: column;
	scroll-snap-align: start;
	background: var(--gris-fonce);
	border: 2px solid #4d4b4b;
	border-radius: 3px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}

/* toute la carte est cliquable (lien invisible étendu) */
.show-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.show-card__link:focus-visible {
	outline: none;
}

.show-card:has(.show-card__link:focus-visible) {
	outline: 3px solid var(--peche);
	outline-offset: 3px;
}

.show-card__img {
	transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1);
}

@media (hover: hover) {
	.show-card:hover {
		transform: translateY(-6px);
		border-color: var(--turquoise);
		box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(80, 150, 169, 0.25);
	}

	.show-card:hover .show-card__img {
		transform: scale(1.04);
	}
}

.show-card__media {
	aspect-ratio: 1 / 1.3;
	overflow: hidden;
	background: #f6f6f7;
}

.show-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* pas de « position: relative » ici : le lien invisible doit couvrir toute la carte, affiche comprise */
.show-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 34px 16px 18px;
}

.show-card__head {
	position: relative;
}

.show-card__head .tag {
	position: absolute;
	bottom: -14px;
	left: 24px;
	z-index: 1;
}

/* hauteur de 2 lignes pour tous les titres (centrés verticalement) : la date et le lieu tombent au même niveau sur toutes les cartes */
.show-card__title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5em;
	margin-bottom: 0.8em;
	font-size: clamp(17px, 1.4vw, 21px);
	font-weight: 800;
	text-align: center;
	line-height: 1.25;
}

/* la date tient sur une ligne ; un lieu très long peut passer à la ligne (le lien « En savoir plus » reste en bas) */
.show-card .show-meta--small li:first-child {
	white-space: nowrap;
}

.show-card .show-meta--small li:first-child span {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Modale ---------- */

.modal {
	width: min(1190px, calc(100% - 2 * var(--gutter)));
	max-height: calc(100dvh - 60px);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--rose-pale);
	overflow: visible;
}

.modal::backdrop {
	background: rgba(10, 8, 8, 0.78);
	backdrop-filter: blur(3px);
}

.modal[open] {
	animation: modal-in 0.25s ease;
}

@keyframes modal-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

.modal__frame {
	position: relative;
	max-height: calc(100dvh - 60px);
	overflow-y: auto;
	padding: 14px;
	background: var(--fond);
	border: 4px solid var(--gris-fonce);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal__content {
	padding: clamp(14px, 1.6vw, 22px);
	outline: 3px dotted #5c5a5a;
	outline-offset: -3px;
}

/* Fenêtre plus compacte : l'affiche suit la hauteur de l'écran, pour éviter la barre de défilement */
.modal {
	width: min(1060px, calc(100% - 2 * var(--gutter)));
}

/* texte calé en haut : même position pour tous les spectacles, quel que soit la longueur du texte */
.modal .show-details {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
}

.modal .show-details__poster {
	height: min(520px, calc(100dvh - 150px));
	width: auto;
	aspect-ratio: 1 / 1.414;
}

.modal .show-title {
	margin: 0.15em 0 0.6em;
	font-size: clamp(26px, 2.8vw, 40px);
}

.modal .show-meta {
	gap: 12px;
	margin-bottom: 18px;
}

.modal .show-meta .icon {
	width: 28px;
	height: 28px;
}

.modal .show-details__content {
	font-size: 0.92em;
}

.modal .show-details__cta {
	margin-top: 26px;
}

.modal__close-form {
	position: absolute;
	top: -20px;
	right: -20px;
	z-index: 3;
	margin: 0;
}

.modal__close {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: var(--gris-fonce);
	color: var(--turquoise);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.modal__close:hover {
	color: var(--peche);
}

.modal__close .icon {
	width: 26px;
	height: 26px;
}

body.has-modal {
	overflow: hidden;
}

/* ---------- Fenêtre « Faire un don » (widget HelloAsso) ---------- */

.don-modal {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.don-modal[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.don-modal::backdrop {
	background: rgba(0, 0, 0, 0.35);
	-webkit-backdrop-filter: blur(15px) brightness(0.5);
	backdrop-filter: blur(15px) brightness(0.5);
}

/* Pleine largeur : le widget HelloAsso centre lui-même son contenu (2 colonnes sur grand écran, 1 sur mobile).
   Limité à 950 px comme dans le code HelloAsso, sa colonne de paiement était coupée à droite. */
.don-modal__content {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.don-modal__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 8px;
}

.don-modal__close-form {
	margin: 0;
}

.don-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 1.5rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #efeff4;
	color: #1c1a1a;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	cursor: pointer;
}

.don-modal__close:hover {
	background: #fff;
}

/* ---------- Ateliers ---------- */

.workshops-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
}

.workshops-intro__cta {
	text-align: center;
}

.workshops {
	display: grid;
	gap: clamp(22px, 2.2vw, 32px);
	max-width: calc(1160px + 2 * var(--gutter));
	margin-top: clamp(30px, 4vw, 60px);
}

.workshop {
	--card: var(--rouge);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.3fr);
	background: var(--card);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.workshop:nth-child(even) {
	grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr);
}

.workshop:nth-child(even) .workshop__media {
	order: -1;
}

/* arrivée depuis une carte de l'accueil : l'atelier n'est pas collé au haut de l'écran */
.workshop {
	scroll-margin-top: 40px;
	transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.3, 1), box-shadow 0.4s, filter 0.4s;
}

.workshop__media {
	overflow: hidden;
}

.workshop__img,
.workshop__card {
	transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.3, 1), outline-color 0.4s;
}

/* survol d'une bande d'atelier : elle se soulève et s'éclaire, la photo s'approche, les pointillés s'allument */
@media (hover: hover) {
	.workshop:hover {
		transform: translateY(-5px);
		filter: brightness(1.06);
		box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
	}

	.workshop:hover .workshop__img {
		transform: scale(1.06);
	}

	.workshop:hover .workshop__card {
		outline-color: var(--peche);
	}
}

.workshop:target {
	animation: workshop-flash 1.6s ease;
}

@keyframes workshop-flash {
	0%,
	40% {
		box-shadow: 0 0 0 4px var(--peche), 0 14px 40px rgba(0, 0, 0, 0.35);
	}
}

.workshop--saumon {
	--card: var(--saumon);
}

.workshop--violet {
	--card: var(--violet);
}

.workshop--bleu {
	--card: var(--bleu);
}

.workshop--turquoise {
	--card: var(--turquoise);
}

.workshop__card {
	display: grid;
	grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
	margin: 14px;
	outline: 3px dotted rgba(42, 40, 40, 0.75);
	outline-offset: 0;
	padding: clamp(16px, 2vw, 26px) clamp(14px, 1.6vw, 20px);
}

.workshop__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-right: clamp(10px, 1.6vw, 20px);
	border-right: 2px solid rgba(42, 40, 40, 0.75);
	text-align: center;
}

.workshop__title {
	display: flex;
	white-space: nowrap;
	flex-direction: column;
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(30px, 3.3vw, 48px);
	line-height: 1.15;
	text-transform: uppercase;
}

.workshop__age {
	margin: 0.6em 0 0;
	color: var(--gris-fonce);
	font-size: 15px;
}

.workshop__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-left: clamp(12px, 1.6vw, 18px);
	font-size: clamp(14px, 1.1vw, 16px);
}

.workshop__text {
	text-align: justify;
	hyphens: auto;
	line-height: 1.45;
}

.workshop__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
}

.workshop__info {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	line-height: 1.35;
}

.workshop__info .icon {
	width: 36px;
	height: 36px;
}

.workshop__price {
	flex: none;
	margin: 0;
}

/* billet à coins arrondis vers l'intérieur */
.workshop__price span {
	display: grid;
	place-items: center;
	min-width: 150px;
	min-height: 60px;
	padding: 8px 18px;
	white-space: nowrap;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 70' preserveAspectRatio='none'%3E%3Cpath d='M11 1.5H139A9.5 9.5 0 0 0 148.5 11V59A9.5 9.5 0 0 0 139 68.5H11A9.5 9.5 0 0 0 1.5 59V11A9.5 9.5 0 0 0 11 1.5Z' fill='none' stroke='%23fed2a3' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	color: var(--peche);
	font-family: var(--font-display);
	font-size: clamp(18px, 1.6vw, 24px);
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

.workshop__media {
	position: relative;
	min-height: 220px;
}

.workshop__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Agenda (Hydrogen Calendar Embeds / FullCalendar) */
.agenda__calendar {
	max-width: 1000px;
	margin: 40px auto 0;
	padding: 14px;
	background: #0b0c10;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.agenda__calendar > .empty {
	margin: 0;
	padding: 30px;
	text-align: center;
}

.agenda .fc {
	--fc-border-color: #26282e;
	--fc-page-bg-color: #0b0c10;
	--fc-neutral-bg-color: #000;
	--fc-neutral-text-color: var(--gris);
	--fc-today-bg-color: #0b1660;
	--fc-button-text-color: var(--fond);
	--fc-button-bg-color: #e3cdb6;
	--fc-button-border-color: transparent;
	--fc-button-hover-bg-color: var(--peche);
	--fc-button-hover-border-color: transparent;
	--fc-button-active-bg-color: #c9b29b;
	--fc-button-active-border-color: transparent;
	--fc-event-bg-color: var(--violet);
	--fc-event-border-color: var(--violet);
	--fc-event-text-color: #fff;
	--fc-list-event-hover-bg-color: var(--gris-fonce);
	--fc-small-font-size: 0.8em;
	color: var(--rose-pale);
	font-family: var(--font);
}

.agenda .fc .fc-toolbar-title {
	color: var(--rose-pale);
	font-weight: 800;
	font-size: clamp(20px, 2.4vw, 32px);
	text-transform: capitalize;
}

.agenda .fc .fc-button {
	font-family: var(--font);
	font-weight: 800;
	text-transform: lowercase;
	box-shadow: none;
}

.agenda .fc .fc-today-button {
	--fc-button-bg-color: #8d8274;
	background: #8d8274;
}

.agenda .fc .fc-col-header-cell {
	background: #000;
}

.agenda .fc .fc-col-header-cell-cushion {
	padding: 8px 4px;
	color: var(--saumon);
	font-weight: 800;
	text-decoration: none;
	text-transform: capitalize;
}

.agenda .fc .fc-daygrid-day-number {
	color: var(--saumon);
	text-decoration: none;
}

.agenda .fc .fc-day-other .fc-daygrid-day-number {
	color: var(--gris);
}

.agenda .fc a {
	color: inherit;
}

.agenda .fc .fc-list-day-cushion {
	background: var(--gris-fonce);
}

.agenda .fc .fc-list-empty {
	background: transparent;
}

/* bulles d'infos (Tippy) */
.tippy-box[data-theme~="light"] {
	font-family: var(--font);
}

/* ---------- La troupe ---------- */

.members {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(12px, 1.2vw, 16px);
	margin: clamp(20px, 2.4vw, 34px) 0 0;
	padding: 0;
	list-style: none;
}

.member {
	display: flex;
	flex-direction: column;
	background: var(--gris-fonce);
	border: 2px solid #4d4b4b;
	border-radius: 3px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}

/* survol : la carte se soulève, la photo s'approche et reprend ses couleurs, le prénom s'allume */
@media (hover: hover) {
	.member:hover {
		transform: translateY(-8px);
		border-color: var(--turquoise);
		box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(80, 150, 169, 0.25);
	}

	.member:hover .member__img {
		filter: grayscale(0) contrast(1);
		transform: scale(1.06);
	}

	.member:hover .member__photo .icon {
		transform: scale(1.06);
	}

	.member:hover .member__name {
		color: var(--peche);
	}
}

.member__photo {
	aspect-ratio: 1;
	overflow: hidden;
	background: #e5e7e9;
}

.member__photo .icon,
.member__photo svg,
.member__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.member__img,
.member__photo .icon {
	transition: filter 0.45s, transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.member__img {
	filter: grayscale(1) contrast(1.05);
}

.member__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0 10px 14px;
	text-align: center;
}

.member__name {
	align-self: flex-start;
	margin: -1.15em 0 10px 6%;
	padding: 0.2em 0.75em 0;
	background: var(--gris-fonce);
	color: var(--turquoise);
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(20px, 1.8vw, 28px);
	line-height: 1.1;
	text-transform: uppercase;
	border-radius: 3px 3px 0 0;
	position: relative;
	transition: color 0.35s;
}

.member__role {
	margin: auto 0;
	font-size: clamp(11px, 0.9vw, 13px);
	line-height: 1.4;
}

.volunteer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "titre bouton" "texte texte";
	align-items: start;
	gap: 0 40px;
}

.volunteer__grid .title {
	grid-area: titre;
}

.volunteer__text {
	grid-area: texte;
	margin: 0;
}

.volunteer__cta {
	grid-area: bouton;
	margin: 0 clamp(0px, 8vw, 150px) 0 0;
}

/* ---------- Gazette ---------- */

.gazette__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 30px;
	margin-bottom: clamp(26px, 3vw, 50px);
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
}

/* Filtres : bouton plein = rubrique non sélectionnée ; bouton contour (fond sombre teinté) = rubrique affichée */
.filter {
	--f: var(--rouge);
	padding: 0.6em 1.4em;
	border: 4px solid var(--f);
	border-radius: 4px;
	background: var(--f);
	color: var(--rose-pale);
	font-size: clamp(15px, 1.3vw, 19px);
	text-transform: uppercase;
	text-decoration: none;
	transition: filter 0.2s, background-color 0.2s;
}

.filter:hover {
	filter: brightness(1.15);
}

.filter--presse {
	--f: var(--bleu);
}

.filter--coulisses {
	--f: var(--violet);
}

.filter[aria-current="true"] {
	background: #1c1a1a;
	background: color-mix(in srgb, var(--f) 14%, var(--fond));
}

.filter[aria-current="true"]:hover {
	filter: none;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	margin-top: 40px;
	color: var(--lavande);
}

.pagination .page-numbers {
	color: var(--lavande);
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	color: var(--lilas);
	text-decoration: underline;
}

.pagination .current {
	color: var(--rose-pale);
	font-weight: 800;
}

/* Avis */
.reviews__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-bottom: 40px;
}

.reviews__title {
	margin: 0;
	color: var(--turquoise);
	font-size: clamp(36px, 3.4vw, 48px);
	text-transform: uppercase;
}

.reviews__count {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-size: clamp(17px, 1.5vw, 22px);
}

.reviews__count::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-right: 4px;
	border-radius: 50%;
	background: var(--gris);
}

.reviews__count .icon {
	width: 28px;
	height: 28px;
	color: var(--turquoise);
}

.reviews__write {
	margin-left: auto;
}

.reviews__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.review {
	position: relative;
	padding: 4px 0 26px 26px;
}

.review:last-child {
	padding-bottom: 0;
}

.review + .review {
	padding-top: 30px;
}

.review + .review::before {
	content: "";
	position: absolute;
	top: 0;
	left: 15%;
	right: 15%;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--violet) 50%, transparent);
}

.review > .icon {
	position: absolute;
	left: 0;
	width: 26px;
	height: 22px;
	color: var(--lavande);
}

.review__author {
	margin: 0;
	font-weight: 800;
	font-size: clamp(18px, 1.5vw, 22px);
}

.review__date {
	margin-bottom: 1em;
	color: var(--gris);
	font-size: 0.85em;
}

.review__text p {
	margin-bottom: 0.6em;
}

.review__show {
	margin: 1em 0 0;
	font-size: 13px;
}

.review__show em {
	color: var(--rouge);
	filter: brightness(1.3);
}

.reviews__more {
	text-align: center;
}

.reviews__seen {
	margin-bottom: 0.7em;
	color: var(--lavande);
	font-size: 0.8em;
}

.review-form__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
	gap: clamp(20px, 2vw, 30px);
}

.review-form__title {
	color: var(--turquoise);
	font-size: clamp(36px, 3.4vw, 48px);
	text-transform: uppercase;
}

.review-form__intro {
	text-align: justify;
	font-size: 0.8em;
}

/* Formulaires (avis + contact) */
.form p {
	margin: 0 0 18px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="url"],
.form select,
.form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--gris);
	border-radius: 3px;
	background: var(--gris-fonce);
	color: var(--rose-pale);
	font: inherit;
	font-size: 16px;
	transition: border-color 0.2s;
}

.form textarea {
	min-height: 150px;
	resize: vertical;
}

.form select {
	appearance: none;
	padding-right: 44px;
	background: var(--gris-fonce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%238f8b8b'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
	cursor: pointer;
}

.form select:invalid {
	color: #8f8b8b;
}

.form ::placeholder {
	color: #8f8b8b;
	opacity: 1;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
	border-color: var(--turquoise);
	outline: none;
}

.form .comment-form-cookies-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.75em;
}

.form .comment-form-cookies-consent input {
	accent-color: var(--turquoise);
	margin-top: 3px;
}

.form .form-submit,
.form__submit {
	text-align: center;
}

.form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(16px, 6vw, 80px);
}

.form .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 18px;
}

.form__accept {
	margin-bottom: 24px;
	font-size: 0.8em;
}

.form__accept .wpcf7-form-control-wrap {
	display: inline;
	margin: 0;
}

.form__accept input {
	accent-color: var(--turquoise);
	width: 18px;
	height: 18px;
	vertical-align: -3px;
	margin-right: 6px;
}

.form .wpcf7-not-valid-tip {
	margin-top: 4px;
	color: var(--saumon);
	font-size: 14px;
}

.form .wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 12px 16px;
	border-color: var(--turquoise);
}

.form .wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

/* ---------- Article ---------- */

.article {
	padding-top: clamp(80px, 8vw, 110px);
}

.article__tab {
	position: absolute;
	top: 0;
	left: 0;
	padding: 0.85em 1.6em;
	font-size: clamp(15px, 1.4vw, 21px);
	border-radius: 0 3px 3px 0;
}

.article__head {
	text-align: center;
	margin-bottom: 40px;
}

/* titre resserré : sur 2 lignes centrées plutôt qu'étalé sur toute la largeur */
.article__title {
	max-width: 15em;
	margin: 0 auto 0.2em;
	font-size: clamp(30px, 3.4vw, 48px);
	line-height: 1.25;
	text-transform: uppercase;
	text-wrap: balance;
}

.article__date {
	color: var(--gris-texte);
	font-size: 0.8em;
}

.article__content {
	max-width: 1240px;
	margin-inline: auto;
}

.article__figure {
	margin: 50px 0 0;
}

.article__img {
	width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.article__cta {
	margin: 60px 0 0;
	text-align: center;
}

.article__back {
	margin: 50px 0 0;
	text-align: center;
}

/* ---------- Contact ---------- */

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 40px);
	max-width: calc(1060px + 2 * var(--gutter));
}

.contact__img {
	width: 100%;
	aspect-ratio: 346 / 196;
	object-fit: cover;
}

.contact__infos {
	display: grid;
	gap: 18px;
	margin: 22px 0 0;
	padding: 0 0 0 30px;
	list-style: none;
	font-size: 15px;
}

.contact__infos li {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.contact__infos .icon {
	width: 28px;
	height: 28px;
	--icon-hole: var(--fond);
}

.contact__infos a {
	text-decoration: none;
}

.contact__infos a:hover {
	text-decoration: underline;
}

.contact__infos address {
	display: grid;
	font-style: normal;
}

.contact__title {
	color: var(--turquoise);
	font-size: clamp(36px, 3.4vw, 48px);
	text-transform: uppercase;
	margin-bottom: 0.5em;
}

.contact__form > p {
	font-size: 0.8em;
	margin-bottom: 30px;
}

/* ---------- Bouton « haut de page » ---------- */

.to-top {
	position: fixed;
	right: clamp(14px, 3vw, 40px);
	bottom: clamp(14px, 3vw, 40px);
	z-index: 40;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(143, 139, 139, 0.92);
	color: var(--fond);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background-color 0.2s;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	background: var(--rose-pale);
}

.to-top .icon {
	width: 34px;
	height: 34px;
}

/* ---------- Pied de page ---------- */

.site-footer {
	margin-top: var(--section);
	/* fondu fond → rouge plus long et adouci (paliers « en douceur » au début et à la fin) */
	background: linear-gradient(180deg, #1c1a1a 0, #241c1a 26px, #361f1b 52px, #5d281c 86px, #84301c 120px, #96341d 146px, #9e361d 172px);
	padding-top: 150px;
	color: #f3e6e6;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
	gap: 30px;
	align-items: center;
	max-width: calc(1400px + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-footer__logo img {
	width: 100%;
	max-width: 290px;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 26px clamp(18px, 2vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu > li > a {
	display: block;
	margin-bottom: 0.9em;
	font-weight: 800;
	font-size: 16px;
	text-transform: uppercase;
	text-decoration: none;
}

.footer-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu .sub-menu a {
	display: inline-block;
	padding: 3px 0;
	font-size: 16px;
	text-decoration: none;
}

.footer-menu a:hover {
	text-decoration: underline;
}

.site-footer__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 24px;
	margin-top: 30px;
}

/* bande en forme de billet */
.ticket-band {
	padding: 11px 34px;
	background: var(--saumon);
	-webkit-mask: radial-gradient(circle 17px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 17px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
	mask: radial-gradient(circle 17px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 17px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}

.cta-buttons--footer {
	gap: clamp(10px, 1.8vw, 22px);
	padding: 12px 14px;
	border: 2px solid var(--rouge);
}

.cta-buttons--footer .cta {
	font-size: clamp(17px, 1.5vw, 23px);
}

/* icônes sous « Formulaire de contact » (dernière colonne du pied de page), légèrement décalées vers la droite */
.socials {
	display: flex;
	gap: 30px;
	margin: 28px 0 0 clamp(0px, 2.5vw, 36px);
}

.socials a {
	display: block;
	transition: transform 0.2s;
}

.socials a:hover {
	transform: scale(1.06);
}

.socials .icon {
	width: clamp(56px, 6vw, 90px);
	height: clamp(56px, 6vw, 90px);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 0;
	padding: 34px var(--gutter) 22px;
	font-size: 15px;
}

/* séparateur « | » en inline-block : il n'hérite pas du soulignement du lien */
.site-footer__legal > * + *::before {
	content: "|";
	display: inline-block;
	margin-inline: clamp(12px, 2vw, 28px);
}

.site-footer__legal a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__legal a:hover {
	color: var(--peche);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-header__inner {
		flex-wrap: wrap;
	}

	.site-header__menu {
		display: none;
		flex-basis: 100%;
		align-items: stretch;
		gap: 24px;
		padding: 20px 0 10px;
		border-top: 1px solid var(--gris-fonce);
	}

	.site-header.is-open .site-header__menu {
		display: flex;
	}

	/* menu mobile : chaque onglet (et son billet) prend la largeur de son titre, pas toute la largeur */
	.main-nav .menu {
		flex-direction: column;
		align-items: flex-start;
		order: -1;
	}

	.main-nav a {
		padding: 0.7em 1em;
		font-size: 19px;
	}

	.main-nav {
		order: -1;
	}

	.cta-buttons--header {
		justify-content: center;
	}

	.flips {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}

	.home-ateliers__grid,
	.home-gazette__grid,
	.presentation__grid {
		grid-template-columns: 1fr;
	}

	.presentation__aside {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0 20px;
		align-items: end;
	}

	.presentation__aside .kicker,
	.presentation__aside .title {
		grid-column: 1;
	}

	.presentation__masks {
		grid-column: 2;
		grid-row: 1 / span 2;
		width: clamp(110px, 22vw, 220px);
		margin-top: 0;
	}

	.home-gazette__intro .btn {
		margin-left: 0.6em;
	}

	.carousel__track {
		grid-auto-columns: calc((100% - 2 * 30px) / 3);
	}

	.members {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.site-footer__logo img {
		max-width: 200px;
	}

	.site-footer__main {
		width: 100%;
	}

	.footer-menu {
		justify-content: center;
	}

	.site-footer__actions {
		justify-content: center;
	}
}

@media (max-width: 900px) {
	.show-details,
	.workshops-intro__grid,
	.review-form__grid,
	.contact__grid {
		grid-template-columns: 1fr;
	}

	.show-details__poster {
		width: min(100%, 420px);
		margin-inline: auto;
		order: -1;
	}

	.modal .show-details__poster {
		order: 0;
	}

	.post-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.carousel__track {
		grid-auto-columns: calc((100% - 30px) / 2);
	}

	.workshop,
	.workshop:nth-child(even) {
		grid-template-columns: 1fr;
	}

	.workshop:nth-child(even) .workshop__media,
	.workshop__media {
		order: -1;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.contact__aside {
		max-width: 480px;
	}
}

@media (max-width: 640px) {
	.brand {
		--logo: 74px;
	}

	.cta-buttons--header .cta {
		flex: 1 1 100%;
		justify-content: center;
	}

	.slide__content {
		padding: 40px calc(var(--gutter) + 8px) 70px;
	}

	.slider__arrow {
		top: auto;
		bottom: 8px;
		transform: none;
		width: 38px;
		height: 38px;
	}

	.post-grid--2,
	.post-grid--3 {
		grid-template-columns: 1fr;
	}

	.carousel {
		padding-inline: 0;
	}

	.carousel__track {
		grid-auto-columns: 78%;
		gap: 16px;
	}

	.carousel__arrow {
		display: none;
	}

	.members {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.workshop__card {
		grid-template-columns: 1fr;
		margin: 10px;
	}

	.workshop__head {
		padding: 0 0 14px;
		margin-bottom: 14px;
		border-right: 0;
		border-bottom: 2px solid rgba(42, 40, 40, 0.75);
	}

	.workshop__body {
		padding-left: 0;
	}

	.workshop__foot {
		flex-direction: column;
		align-items: center;
		margin-top: 16px;
	}

	.form__row {
		grid-template-columns: 1fr;
	}

	.reviews__write {
		margin-left: 0;
	}

	.ticket-band {
		padding-inline: 24px;
	}

	.cta-buttons--footer {
		flex-direction: column;
	}

	.footer-menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.presentation__aside {
		grid-template-columns: 1fr;
	}

	.presentation__masks {
		display: none;
	}

	.modal__close-form {
		top: -14px;
		right: -8px;
	}

	.article__tab {
		position: static;
		display: table;
		margin: -40px 0 30px var(--gutter);
		border-radius: 3px;
	}
}

/* ---------- Corrections mobile (placées en dernier : elles priment sur les règles ci-dessus) ---------- */

@media (max-width: 900px) {
	/* fenêtre spectacle : une seule colonne, affiche réduite au-dessus du texte */
	.modal .show-details {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.modal .show-details__poster {
		order: -1;
		width: min(100%, 240px);
		height: auto;
		margin-inline: auto;
	}

	.modal__frame {
		padding: 8px;
	}

	.modal__content {
		padding: 16px 14px;
	}

	.modal .show-meta {
		padding-left: 0;
	}

	.modal .show-meta li {
		gap: 14px;
	}

	/* page Contact : formulaire, puis photo, puis coordonnées */
	.contact__aside {
		display: contents;
	}

	.contact__form {
		order: 1;
	}

	.contact__img {
		order: 2;
		max-width: 480px;
		justify-self: center;
	}

	.contact__infos {
		order: 3;
		margin-top: 0;
		justify-self: center;
		padding-left: 0;
	}

	/* La troupe : titre, texte, puis bouton « Nous contacter » centré */
	.volunteer__grid {
		grid-template-columns: 1fr;
		grid-template-areas: "titre" "texte" "bouton";
	}

	.volunteer__cta {
		margin: 30px 0 0;
		text-align: center;
	}
}

@media (max-width: 640px) {
	/* grands titres en deux couleurs : ils restent grands sur téléphone */
	.title {
		font-size: 36px;
	}

	/* titres des ateliers (« Théâtre Enfants ») : grands, comme sur la maquette */
	.workshop__title {
		font-size: clamp(44px, 14vw, 60px);
	}

	.workshop__age {
		font-size: 16px;
	}

	/* Gazette : « Vos avis · 3 avis » et le bouton « Écrire un avis » centrés */
	.reviews__head {
		justify-content: center;
		text-align: center;
	}

	.review-form__title {
		text-align: center;
	}
}

/* ---------- Glisser (bannière d'accueil, cartes des spectacles) ---------- */

.slider {
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

.slider img,
.carousel__track img {
	-webkit-user-drag: none;
	user-select: none;
}

@media (hover: hover) {
	.carousel:not(.is-static) .carousel__track {
		cursor: grab;
	}
}

.carousel__track.is-dragging {
	scroll-snap-type: none;
	scroll-behavior: auto;
	cursor: grabbing;
	-webkit-user-select: none;
	user-select: none;
}

.carousel__track.is-dragging .show-card {
	transform: none;
}

/* ---------- Menu (ordinateur) : ticket qui glisse vers l'onglet survolé ---------- */

.main-nav__ticket {
	display: none;
}

@media (min-width: 1181px) {
	.main-nav.has-ticket {
		position: relative;
	}

	.main-nav.has-ticket .menu {
		position: relative;
		z-index: 1;
	}

	.main-nav__ticket {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 0;
		border: 0 solid transparent;
		border-image: url("../img/ticket.svg") 20 fill / 20px / 0 stretch;
		pointer-events: none;
		transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.3, 1), width 0.4s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.2s;
	}

	/* le ticket glissant remplace celui posé sur l'onglet de la page en cours */
	.main-nav.has-ticket a,
	.main-nav.has-ticket .current-menu-item > a,
	.main-nav.has-ticket .current_page_item > a,
	.main-nav.has-ticket a[aria-current="page"] {
		border-image: none;
		background: none;
		color: var(--peche);
		padding-inline: 1.1em;
		transition: color 0.3s;
	}

	.main-nav.has-ticket a.is-ticketed {
		color: var(--rouge);
	}
}

@media (min-width: 1181px) and (prefers-reduced-motion: reduce) {
	.main-nav__ticket {
		transition: opacity 0.2s;
	}
}

/* ---------- Infos pratiques d'un spectacle (fenêtre et page du spectacle) ---------- */

.show-infos-panel .show-title {
	margin-bottom: 0.3em;
}

.show-infos__when {
	margin-bottom: 16px;
	color: var(--bleu-pale);
	text-align: center;
}

.show-infos {
	display: grid;
	gap: 10px;
	max-width: 760px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.show-infos__item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 10px 16px;
	background: var(--gris-fonce);
	font-size: 0.92em;
	line-height: 1.4;
	border-left: 3px solid var(--bleu);
	border-radius: 3px;
}

.show-infos__item .icon {
	width: 30px;
	height: 30px;
	color: var(--turquoise);
}

.show-infos__title {
	margin: 0.15em 0 0.35em;
	color: var(--peche);
	font-size: 0.85em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.show-infos__item p {
	margin: 0 0 0.4em;
}

.show-infos__item p:last-child {
	margin-bottom: 0;
}

.show-infos__back {
	margin: 16px 0 0;
	text-align: center;
}

.show-infos-panel--page {
	margin-top: 60px;
}

.show-infos-panel--page .kicker {
	text-align: center;
	margin-bottom: 20px;
}

/* ---------- Cartes d'ateliers : bouton « Voir plus » au dos (écrans tactiles) ---------- */

.flip__more {
	display: none;
}

@media (hover: none), (max-width: 1180px) {
	.flip__more {
		display: inline-block;
		margin-top: 2cqw;
		padding: 2.4cqw 6cqw;
		border: 2px solid currentColor;
		border-radius: 3px;
		color: var(--rose-pale);
		font-size: 6.6cqw;
		line-height: 1.2;
	}
}

/* Formulaire d'avis, personne connectée */
.review-form__account {
	margin-bottom: 14px;
	color: var(--bleu-pale);
	font-size: 0.85em;
}