/* Les spectacles d'Alex */
:root {
	--sa-ink: #1d1b2f;
	--sa-muted: #625f75;
	--sa-bg: #faf7f2;
	--sa-card: #ffffff;
	--sa-accent: #e4572e;
	--sa-accent-dark: #c4431f;
	--sa-indigo: #3b2f8f;
	--sa-radius: 20px;
	--sa-shadow: 0 10px 30px rgba(29, 27, 47, 0.08);
}

body { background: var(--sa-bg); }
.home main > .wp-block-group:first-child { display: none; }
.home main.wp-block-group { margin-top: 0 !important; }
.home .wp-block-post-content { margin-top: 0 !important; }
.home .wp-site-blocks > main { margin-block-start: 0; }

/* Polices : texte sans empattement pour un rendu plus moderne */
.sa-section h2, .sa-slide-title, .sa-card-title, .sa-info h2, .sa-gallery h2 {
	font-family: inherit; font-weight: 800; letter-spacing: -0.02em;
}

/* Fiche spectacle : masque date, auteur, catégorie et commentaires */
.single-post .wp-block-group:has(> .wp-block-post-date),
.single-post .wp-block-post-date,
.single-post .wp-block-post-author-name,
.single-post .wp-block-post-terms,
.single-post .wp-block-comments { display: none; }

/* ---------- Sections qui se suivent ---------- */
.sa-section { padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem); }
.sa-section > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.sa-section--alt { background: #fff; }
.sa-section--dark { background: var(--sa-ink); color: #fff; }
.sa-section--dark a { color: #ffd7c9; }
.sa-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--sa-accent); margin-bottom: .5rem; }
.sa-section h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; margin-top: 0; margin-bottom: 1.5rem; }

/* ---------- Boutons et badges ---------- */
.sa-button {
	display: inline-block; padding: .85em 1.6em; border-radius: 999px; border: 0;
	background: var(--sa-accent); color: #fff !important; font-weight: 700; text-decoration: none;
	cursor: pointer; font-size: 1rem; transition: transform .15s ease, background .15s ease;
}
.sa-button:hover { background: var(--sa-accent-dark); transform: translateY(-1px); }
.sa-button--dark { background: var(--sa-ink); }
.sa-button--dark:hover { background: var(--sa-indigo); }

.sa-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.sa-badge { display: inline-block; padding: .25em .75em; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.sa-badge--age { background: #ffe3d8; color: #a8371a; }
.sa-badge--region { background: #e6e3fa; color: var(--sa-indigo); }

/* ---------- Carrousel ---------- */
.sa-carousel { position: relative; width: 100%; }
.sa-track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -ms-overflow-style: none;
}
.sa-track::-webkit-scrollbar { display: none; }
.sa-slide {
	flex: 0 0 100%; scroll-snap-align: start; position: relative; display: flex; align-items: flex-end;
	min-height: clamp(460px, 78vh, 680px); color: #fff;
	background: linear-gradient(135deg, #3b2f8f, #e4572e) center / cover no-repeat;
}
.sa-slide--noimg { background: linear-gradient(135deg, #3b2f8f, #e4572e); }
.sa-slide::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(20, 16, 40, .88) 0%, rgba(20, 16, 40, .35) 55%, rgba(20, 16, 40, .05) 100%);
}
.sa-slide-inner { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(1.5rem, 6vw, 4.5rem); padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }
.sa-slide-title { color: #fff; font-size: clamp(2rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 .75rem; max-width: 18ch; }
.sa-slide-text { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 56ch; margin: 0 0 1.5rem; opacity: .95; }
.sa-slide .sa-badge--age, .sa-slide .sa-badge--region { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }

.sa-nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
	border: 0; background: rgba(255, 255, 255, .85); color: var(--sa-ink); font-size: 1.8rem; line-height: 1;
	cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 .15em;
	transition: background .15s ease;
}
.sa-nav:hover { background: #fff; }
.sa-prev { left: clamp(.5rem, 2vw, 1.5rem); }
.sa-next { right: clamp(.5rem, 2vw, 1.5rem); }
.sa-dots { position: absolute; left: 0; right: 0; bottom: 1.4rem; display: flex; justify-content: center; gap: .55rem; }
.sa-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .2s ease, background .2s ease; }
.sa-dot[aria-current="true"] { width: 28px; background: #fff; }
.sa-carousel--single .sa-nav, .sa-carousel--single .sa-dots { display: none; }

/* ---------- Filtres et grille ---------- */
.sa-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin: 0 0 2rem; }
.sa-filters label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .85rem; min-width: 210px; }
.sa-filters select { padding: .7em 1em; border-radius: 12px; border: 2px solid #e4e0ee; background: #fff; font-size: 1rem; color: var(--sa-ink); }
.sa-reset { align-self: center; color: var(--sa-muted); font-size: .9rem; }

.sa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; }
.sa-card { position: relative; background: var(--sa-card); border-radius: var(--sa-radius); overflow: hidden; box-shadow: var(--sa-shadow); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.sa-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(29, 27, 47, .14); }
.sa-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.sa-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sa-card:hover .sa-card-media img { transform: scale(1.04); }
.sa-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #3b2f8f, #e4572e); }
.sa-card-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.sa-card-title { margin: 0 0 .5rem; font-size: 1.35rem; line-height: 1.2; }
.sa-card-title a { color: var(--sa-ink); text-decoration: none; }
.sa-card-title a::after { content: ""; position: absolute; inset: 0; }
.sa-card-text { margin: 0 0 1rem; color: var(--sa-muted); font-size: .98rem; }
.sa-card-meta { margin: auto 0 0; font-weight: 700; font-size: .9rem; color: var(--sa-indigo); }
.sa-empty { padding: 2rem; background: #fff; border-radius: var(--sa-radius); text-align: center; color: var(--sa-muted); }

.sa-pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.sa-pagination .page-numbers { display: inline-block; padding: .55em 1em; margin: 0 .2rem; border-radius: 999px; text-decoration: none; color: var(--sa-ink); background: #fff; }
.sa-pagination .page-numbers.current { background: var(--sa-ink); color: #fff; }

/* ---------- Page d'un spectacle ---------- */
.sa-fiche { margin: 0 0 2rem; }
.sa-lead { font-size: 1.3rem; line-height: 1.5; margin: 0 0 1.5rem; }
.sa-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 0; padding: 0; }
.sa-facts > div { background: #fff; border-radius: 16px; padding: 1rem 1.2rem; box-shadow: var(--sa-shadow); }
.sa-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sa-muted); font-weight: 700; margin: 0 0 .25rem; }
.sa-facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.sa-info { margin: 2.5rem 0 0; padding: 1.5rem 1.75rem; background: #fff; border-radius: var(--sa-radius); box-shadow: var(--sa-shadow); }
.sa-info h2, .sa-gallery h2 { font-size: 1.5rem; margin: 0 0 .75rem; }
.sa-gallery { margin: 2.5rem 0 0; }
.sa-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.sa-gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; }

@media (max-width: 600px) {
	.sa-nav { display: none; }
	.sa-filters label { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.sa-card, .sa-card-media img, .sa-button { transition: none; }
	.sa-track { scroll-behavior: auto; }
}
