/* Festival BD Lezoux — site public
   Thème clair par défaut, sombre selon les préférences du système.
   --accent-l / --accent-d / --hero-l / --hero-d sont recalculés par année (js/site.js). */

:root {
	--accent-l: #B4501A;
	--accent-d: #F08A4B;
	--hero-l: #F6E2CF;
	--hero-d: #2A211B;

	--bg: #FAF5EF;
	--surface: #FFFFFF;
	--ink: #23201D;
	--body: #3A342E;
	--muted: #6B6158;
	--line: #E8DCCD;
	--field: #CDBFAE;
	--ph: #EFE4D6;
	--accent: var(--accent-l);
	--on-accent: #FAF5EF;
	--hero: var(--hero-l);
	--blue: #3F5679;
	--blue-bg: #E6ECF4;
	--band: #23201D;
	--band-ink: #FAF5EF;
	--band-muted: #B9AEA3;
	--band-line: #3A342E;
	--band-chip: #5A524A;
	--band-pill: #3A342E;
	--band-time: #F3C9A6;
	--logo: #B07000;
	--shadow: rgba(35, 32, 29, .28);
	--backdrop: rgba(35, 32, 29, .88);

	--font-display: 'Josefin Sans', 'Trebuchet MS', sans-serif;
	--font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1240px;
	--header-h: 68px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1C1917;
		--surface: #26221F;
		--ink: #F3ECE4;
		--body: #D9CFC4;
		--muted: #B3A89C;
		--line: #3A332D;
		--field: #4A423B;
		--ph: #2E2925;
		--accent: var(--accent-d);
		--on-accent: #1C1917;
		--hero: var(--hero-d);
		--blue: #9DB4D6;
		--blue-bg: #2A3342;
		--band: #131110;
		--band-ink: #F3ECE4;
		--band-muted: #B3A89C;
		--band-line: #332C27;
		--band-chip: #4A423B;
		--band-pill: #2A2522;
		--band-time: #F3C9A6;
		--logo: #FFC857;
		--shadow: rgba(0, 0, 0, .5);
		--backdrop: rgba(0, 0, 0, .8);

		color-scheme: dark;
	}
}

/* Base */

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
}

sup {
	line-height: 0;
}

a {
	color: var(--blue);
}

a:hover {
	color: var(--ink);
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	line-height: 1.05;
	margin: 0;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

section[id] {
	scroll-margin-top: calc(var(--header-h) + 8px);
}

.section {
	padding-top: 44px;
	padding-bottom: 44px;
}

.section-title {
	font-size: clamp(32px, 5vw, 44px);
	text-transform: uppercase;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px 40px;
	margin-bottom: 36px;
}

.section-head> :first-child {
	margin-right: auto;
}

.section-sub {
	margin: 10px 0 0;
	color: var(--muted);
}

.surface {
	background: var(--surface);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	background: var(--ink);
	color: var(--bg);
	padding: 10px 16px;
	border-radius: 8px;
}

.skip-link:focus {
	left: 8px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

[hidden] {
	display: none !important;
}

/* Boutons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 24px;
	border-radius: 999px;
	font: inherit;
	font-weight: 800;
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background .15s, color .15s;
}

.btn-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-accent);
}

.btn-ghost {
	background: transparent;
	border-color: var(--ink);
	color: var(--ink);
}

/* Sur écran tactile, :hover reste collé au dernier élément touché : effets réservés à la souris */
@media (hover: hover) {

	.btn-primary:hover,
	.btn-ghost:hover {
		background: var(--ink);
		border-color: var(--ink);
		color: var(--bg);
	}
}

/* En-tête */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 94%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}

.nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 32px;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 16px;
	padding-right: 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
	color: var(--ink);
	text-decoration: none;
}

.brand:hover {
	color: var(--ink);
}

.brand-logo {
	height: 48px;
	width: auto;
	display: block;
	color: var(--logo);
}

.brand-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 19px;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1;
}

.brand-name small {
	display: block;
	font-weight: 400;
	font-size: 15px;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 4px 28px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-link {
	display: block;
	padding: 10px 4px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link[aria-current="true"] {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.nav-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid var(--ink);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.nav-burger .icon-close {
	display: none;
}

.nav-burger[aria-expanded="true"] .icon-open {
	display: none;
}

.nav-burger[aria-expanded="true"] .icon-close {
	display: block;
}

/* Choix de l'édition */

.edition {
	position: relative;
}

.edition-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 16px 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	font: inherit;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
}

.edition-btn svg {
	transition: transform .2s;
}

.edition-btn[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.edition-pop {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	z-index: 60;
	width: 300px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 18px 40px var(--shadow);
}

.edition-pop-title {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
}

.edition-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.edition-chip {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 10px;
	border: 1.5px solid var(--line);
	background: var(--bg);
	color: var(--ink);
	font-weight: 800;
	font-size: 15px;
	text-decoration: none;
}

@media (hover: hover) {
	.edition-chip:hover {
		border-color: var(--ink);
		color: var(--ink);
	}
}

.edition-chip[aria-current="true"] {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-accent);
}

@media (max-width: 960px) {
	.nav-burger {
		display: flex;
	}

	.nav-menu {
		display: none;
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 8px 0 12px;
	}

	.nav-menu.open {
		display: flex;
	}

	.nav-links {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-link {
		padding: 14px 4px;
		border-bottom: 1px solid var(--line);
		font-size: 17px;
	}

	.nav-link:hover,
	.nav-link[aria-current="true"] {
		border-bottom-color: var(--line);
	}

	.edition-btn {
		width: 100%;
		justify-content: space-between;
	}

	.edition-pop {
		position: static;
		width: auto;
		margin-top: 10px;
		box-shadow: none;
	}
}

/* Accueil */

.hero {
	background: var(--hero);
	border-bottom: 1px solid var(--line);
}

.hero-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
	padding-top: 72px;
	padding-bottom: 80px;
}

.hero-text {
	flex: 999 1 460px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hero-kicker {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 600;
	color: var(--blue);
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hero-kicker sup {
	font-size: .6em;
}

.hero-title {
	font-size: clamp(44px, 7vw, 76px);
	font-weight: 700;
	line-height: .98;
	text-transform: uppercase;
	letter-spacing: -.01em;
}

.hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 20px;
	font-weight: 700;
}

.hero-facts li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hero-facts svg,
.info-card svg {
	color: var(--accent);
	flex: none;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.hero-poster {
	flex: 1 1 340px;
	max-width: 420px;
	margin: 0;
}

.hero-poster img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 24px 60px var(--shadow);
}

.poster-credit {
	margin-top: 14px;
	color: var(--muted);
	font-size: 15px;
	text-align: center;
}

.poster-credit a {
	color: var(--ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 3px;
}

@media (max-width: 600px) {
	.hero-inner {
		padding-top: 32px;
		padding-bottom: 40px;
		gap: 28px;
	}

	.hero-text {
		gap: 16px;
	}

	.hero-kicker {
		font-size: 15px;
	}

	.hero-facts {
		font-size: 17px;
	}

	.hero-actions .btn {
		flex: 1 1 auto;
		padding: 12px 16px;
		font-size: 15px;
		white-space: nowrap;
	}
}

/* Bandeau actualité (champ « liens ») */

.news {
	background: var(--band);
	color: var(--band-ink);
	border-bottom: 1px solid var(--band-line);
}

.news-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.news-tag {
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
}

.news-content {
	flex: 1 1 300px;
	font-size: 18px;
	font-weight: 600;
}

.news-content p {
	margin: 0;
}

.news-content p+p {
	margin-top: 6px;
}

.news-content a {
	color: var(--band-time);
}

.news-content a:hover {
	color: var(--band-ink);
}

.news-more {
	color: var(--band-time);
	font-weight: 700;
}

.news-more:hover {
	color: var(--band-ink);
}

/* Textes saisis dans l'admin (TinyMCE), nettoyés par js/site.js */

.prose {
	color: var(--body);
}

.prose p {
	margin: 0 0 14px;
	line-height: 1.65;
}

.prose ul,
.prose ol {
	margin: 0 0 14px;
	padding-left: 22px;
	line-height: 1.65;
}

.prose li {
	margin-bottom: 6px;
}

.prose strong,
.prose b {
	color: var(--ink);
}

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

.prose .hl,
.prose .hl strong {
	color: var(--accent);
}

.prose h3,
.prose h4 {
	font-size: 24px;
	color: var(--blue);
	margin: 24px 0 12px;
}

.prose-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 36px 40px;
}

.prose-2col {
	columns: 2 340px;
	column-gap: 56px;
}

.prose-2col p {
	break-inside: avoid-column;
}

/* Paragraphe entièrement en gras = intertitre (ex. nom d'un invité) */
.prose-2col p.is-title {
	break-after: avoid;
	color: var(--blue);
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	margin-top: 8px;
}

.prose-2col p.is-title strong {
	color: inherit;
}

@media (max-width: 600px) {
	.prose-card {
		padding: 24px 20px;
	}
}

/* Infos pratiques */

.infos-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 56px;
	align-items: flex-start;
}

.infos-aside {
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.infos-aside .section-title {
	margin-bottom: 8px;
}

.infos-main {
	flex: 999 1 520px;
	min-width: 0;
}

.info-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
}

.info-card strong {
	display: block;
}

.info-card span {
	display: block;
	color: var(--muted);
	font-size: 14px;
	margin-top: 4px;
}

.info-link {
	align-items: center;
	border: 1.5px solid var(--blue);
	color: var(--blue);
	font-weight: 800;
	text-decoration: none;
}

.info-link svg {
	color: currentColor;
}

.info-link::after {
	content: "→";
	margin-left: auto;
}

@media (hover: hover) {
	.info-link:hover {
		background: var(--blue);
		color: var(--surface);
	}
}

/* Programme (champs « prg_samedi » / « prg_dimanche ») */

.programme {
	background: var(--band);
	color: var(--band-ink);
}

.programme .section-title {
	color: var(--band-ink);
}

.tabs {
	display: flex;
	gap: 6px;
	padding: 6px;
	border-radius: 999px;
	background: var(--band-pill);
}

.tab {
	min-height: 44px;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	background: transparent;
	color: var(--band-ink);
	font: inherit;
	font-weight: 800;
	font-size: 15px;
}

.tab[aria-selected="true"] {
	background: var(--bg);
	color: var(--ink);
}

.prg-section {
	font-size: 22px;
	color: var(--band-time);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 40px 0 6px;
}

.prg-section:first-child {
	margin-top: 0;
}

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

.prg-item {
	display: flex;
	gap: 28px;
	padding: 18px 0;
	border-top: 1px solid var(--band-line);
}

.prg-time {
	flex: 0 0 150px;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--band-time);
	line-height: 1.3;
}

.prg-text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 18px;
	line-height: 1.55;
	color: var(--band-muted);
}

.prg-text strong,
.prg-text b {
	color: var(--band-ink);
}

.prg-text a {
	color: var(--band-time);
}

.prg-item.no-time .prg-text {
	color: var(--band-ink);
}

.prg-text .hl,
.prg-text .hl strong,
.prg-raw .hl,
.prg-raw .hl strong {
	color: var(--band-time);
}

/* Programme structuré (JSON, js/programme.js) : liste principale + encarts */

.prg-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.prg-layout:has(.prg-main + .prg-aside) {
	grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	gap: 56px;
}

.prg-main {
	min-width: 0;
}

.prg-aside {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* L'encart reste visible le long d'une liste plus haute que lui */
@media (min-width: 901px) {
	.prg-aside {
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}
}

@media (max-width: 900px) {
	.prg-layout:has(.prg-main + .prg-aside) {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

.prg-section small {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--band-muted);
}

.prg-time.continu {
	padding-top: 4px;
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.prg-kind {
	display: block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--band-muted);
}

.prg-name {
	display: block;
	margin-top: 2px;
	font-size: 20px;
	font-weight: 700;
	color: var(--band-ink);
}

.prg-name a,
.prg-card a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.prg-name a {
	text-decoration-color: var(--band-time);
}

.prg-extra {
	display: block;
	margin-top: 4px;
	font-size: 16px;
	color: var(--band-muted);
}

.prg-card {
	padding: 30px 32px;
	border: 1px solid var(--band-line);
	border-radius: 18px;
	background: var(--bg);
	color: var(--ink);
}

.prg-card-eyebrow {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent);
}

.prg-card-hours {
	margin-top: 2px;
	font-size: 15px;
	color: var(--muted);
}

.prg-card-item {
	margin-top: 14px;
}

.prg-card-kind {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.prg-card-title {
	margin: 4px 0 8px;
	font-family: var(--font-display);
	font-size: 26px;
	line-height: 1.15;
	text-wrap: pretty;
}

.prg-card p {
	margin: 0;
	line-height: 1.6;
	color: var(--body);
}

.prg-card-slot {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.prg-card-time {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--accent);
}

.prg-card-slot strong {
	display: block;
	margin-top: 6px;
}

.prg-card-slot p {
	margin-top: 6px;
}

.prg-card a {
	text-decoration-color: var(--accent);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

/* Texte long : 4 lignes, puis « Lire la suite » */
.prg-clamp:not(.is-open) {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
}

.prg-more {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent);
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}

.prg-text .prg-more {
	color: var(--band-time);
}

@media (hover: hover) {
	.prg-more:hover {
		text-decoration: underline;
	}
}

.prg-raw {
	color: var(--band-muted);
}

.prg-raw strong,
.prg-raw b {
	color: var(--band-ink);
}

.prg-raw a {
	color: var(--band-time);
}

@media (max-width: 600px) {
	.tabs {
		width: 100%;
	}

	.tab {
		flex: 1;
		padding: 10px 8px;
	}

	.prg-item {
		gap: 16px;
	}

	.prg-time {
		flex-basis: 92px;
		font-size: 18px;
	}

	.prg-text {
		font-size: 16px;
	}

	.prg-time.continu {
		font-size: 12px;
	}

	.prg-name {
		font-size: 17px;
	}

	.prg-extra {
		font-size: 15px;
	}

	.prg-card {
		padding: 22px 20px;
	}
}

/* Auteurs */

.authors-tools label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
}

.search {
	min-width: 280px;
	min-height: 44px;
	padding: 12px 18px;
	border-radius: 999px;
	border: 1.5px solid var(--field);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-weight: 600;
	font-size: 16px;
}

.authors-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 10px;
}

.authors-links a {
	font-weight: 700;
}

.list-comment {
	color: var(--muted);
	font-style: italic;
}

.author-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.author-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 0;
	overflow: hidden;
	text-align: left;
	cursor: pointer;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	color: var(--ink);
	font: inherit;
	transition: box-shadow .2s;
}

@media (hover: hover) {
	.author-card:hover {
		box-shadow: 0 10px 30px var(--shadow);
	}
}

.author-photo {
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--ph);
	display: flex;
	align-items: center;
	justify-content: center;
}

.author-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s;
}

@media (hover: hover) {
	.author-card:hover .author-photo img {
		transform: scale(1.04);
	}
}

.author-initials {
	font-family: var(--font-display);
	font-size: 44px;
	font-weight: 700;
	color: var(--muted);
}

.author-body {
	padding: 10px 12px;
}

.author-name {
	display: block;
	font-weight: 800;
	font-size: 15px;
	line-height: 1.25;
}

.tag {
	display: inline-block;
	margin-top: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--blue-bg);
	color: var(--blue);
	font-size: 12px;
	font-weight: 800;
}

.no-result {
	color: var(--muted);
}

/* Horaires de présence (repliés par défaut) */

.fold {
	scroll-margin-top: calc(var(--header-h) + 16px);
	margin: 0 0 32px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
}

.fold-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 14px 20px;
	list-style: none;
	cursor: pointer;
	color: var(--blue);
	font-weight: 800;
	border-radius: 16px;
}

.fold-summary::-webkit-details-marker {
	display: none;
}

.fold-summary:hover {
	color: var(--ink);
}

.fold-chevron {
	margin-left: auto;
	transition: transform .2s;
}

.fold[open] .fold-chevron {
	transform: rotate(180deg);
}

.fold[open] .fold-summary {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.fold-body {
	padding: 0 20px 20px;
	border-top: 1px solid var(--line);
}

.presence-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 16px 0;
}

.presence-note {
	flex: 1 1 320px;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.presence-msg {
	margin: 8px 0;
	color: var(--muted);
}

.tabs-light {
	background: var(--ph);
}

.tabs-light .tab {
	color: var(--ink);
}

.tabs-light .tab[aria-selected="true"] {
	background: var(--ink);
	color: var(--bg);
}

.presence-scroll {
	overflow-x: auto;
}

.presence-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 4px;
	font-size: 15px;
}

.presence-table thead th {
	padding: 0 0 4px;
	text-align: left;
	font-size: 12px;
	font-weight: 800;
	color: var(--muted);
}

.presence-table th.hour {
	width: 9%;
}

.presence-table th[scope="row"] {
	padding-right: 16px;
	text-align: left;
	font-weight: 700;
	white-space: nowrap;
}

.presence-table td.slot {
	height: 26px;
	padding: 0;
	background: var(--ph);
	border-left: 2px solid var(--surface);
}

.presence-table td.slot.on {
	background: var(--accent);
}

.presence-table th[scope="row"]+td.slot {
	border-left: 0;
	border-radius: 6px 0 0 6px;
}

.presence-table td.slot:nth-last-child(2) {
	border-radius: 0 6px 6px 0;
}

/* Plages en texte : masquées à l'écran (la grille suffit), lues par les lecteurs d'écran */
.presence-table .ranges {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.presence-table tr[hidden] {
	display: none;
}

/* Commentaire + présence : hauteur réservée constante, centrée, pour que la fiche ne bouge pas */
.dialog-info {
	min-height: 84px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Présence dans la fiche auteur : une ligne par jour, jamais coupée */
.dialog-presence {
	display: grid;
	grid-template-columns: max-content max-content;
	gap: 2px 12px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	color: var(--body);
}

.dialog-presence li {
	display: contents;
}

.dialog-presence strong,
.dialog-presence span {
	white-space: nowrap;
}

.dialog-presence strong {
	color: var(--ink);
}

@media (max-width: 600px) {
	.fold-summary {
		padding: 12px 16px;
	}

	.fold-body {
		padding: 0 12px 16px;
	}

	.presence-head .tabs {
		width: 100%;
	}

	.presence-table {
		font-size: 14px;
	}

	.presence-table th[scope="row"] {
		padding-right: 8px;
		white-space: normal;
		max-width: 110px;
	}

	.presence-table th.hour {
		font-size: 10px;
	}

	.presence-table td.slot {
		height: 22px;
	}
}

@media (max-width: 600px) {

	.authors-tools,
	.search {
		width: 100%;
		min-width: 0;
	}

	.author-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

/* Fiche auteur */

.author-dialog {
	/* ancrée en haut (pas centrée) : la fiche ne saute pas quand on change d'auteur */
	width: min(1120px, calc(100% - 32px));
	max-height: calc(100% - 48px);
	margin: 24px auto auto;
	padding: 0;
	border: 0;
	border-radius: 22px;
	background: var(--bg);
	color: var(--ink);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}

.author-dialog::backdrop {
	background: var(--backdrop);
}

.dialog-head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	padding: 28px 36px;
	background: var(--hero);
	border-bottom: 1px solid var(--line);
}

.dialog-face {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--bg);
	background: var(--ph);
}

.dialog-id {
	flex: 1 1 240px;
	min-width: 0;
}

/* sur une seule ligne : js/site.js réduit la police si le nom est trop long */
/* hauteur fixe (celle de la taille normale) : la fiche ne bouge pas quand la police est réduite */
.dialog-name {
	--name-size: clamp(30px, 4vw, 44px);
	font-size: var(--name-size);
	line-height: 1.1;
	height: calc(var(--name-size) * 1.1);
	display: flex;
	align-items: center;
	text-transform: uppercase;
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
}

.dialog-meta {
	color: var(--muted);
}

.dialog-credit {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 12px;
	opacity: .85;
}

.dialog-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.dialog-nav .btn {
	padding: 0 18px;
}

.dialog-nav .btn-icon,
.btn-icon {
	flex: none;
	width: 44px;
	padding: 0;
	background: var(--ink);
	color: var(--bg);
	border-color: var(--ink);
}

@media (hover: hover) {
	.btn-icon:hover {
		background: var(--accent);
		border-color: var(--accent);
		color: var(--on-accent);
	}
}

/* colonnes de largeur bornée, centrées : peu d'albums ne restent pas collés à gauche */
.albums {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 230px));
	justify-content: center;
	gap: 32px 28px;
	margin: 0;
	padding: 36px;
	list-style: none;
}

.album {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.album-cover {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 400 / 520;
	object-fit: cover;
	border-radius: 6px;
	background: var(--ph);
	box-shadow: 0 10px 24px var(--shadow);
	transition: transform .25s;
}

@media (hover: hover) {
	a.album-link:hover .album-cover {
		transform: translateY(-4px);
	}
}

.album-link {
	color: inherit;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.album-title {
	font-weight: 800;
	font-size: 17px;
	line-height: 1.3;
	color: var(--ink);
}

.album-comment {
	color: var(--muted);
	font-size: 15px;
}

.album-more {
	color: var(--blue);
	font-weight: 700;
	font-size: 14px;
}

@media (max-width: 600px) {
	.author-dialog {
		width: 100%;
		max-width: 100%;
		max-height: 100%;
		height: 100%;
		margin: 0;
		border-radius: 0;
	}

	/* En-tête sur 3 lignes : nom sur toute la largeur / photo + présence / flèches.
	   La croix passe en haut à droite, les flèches précédent / suivant prennent toute la largeur. */
	/* rien entre le nom et la photo ; 8px entre la photo et les flèches */
	.dialog-head {
		display: grid;
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 0 14px;
		padding: 16px;
	}

	.dialog-id {
		display: contents;
	}

	.dialog-name {
		--name-size: 28px;
		grid-column: 1 / -1;
		padding-right: 52px;
		margin: 0;
	}

	.dialog-face {
		grid-column: 1;
		grid-row: 2;
		align-self: center;
		width: 64px;
		height: 64px;
		border-width: 3px;
	}

	/* réserve = hauteur de la photo ; commentaire resserré pour y tenir avec les deux jours */
	.dialog-info {
		grid-column: 2;
		grid-row: 2;
		align-self: center;
		min-height: 64px;
	}

	.dialog-meta {
		font-size: 14px;
		line-height: 1.3;
	}

	.dialog-presence {
		margin: 0;
	}

	.dialog-meta:not([hidden])+.dialog-presence {
		margin-top: 2px;
	}

	.dialog-nav {
		grid-column: 1 / -1;
		margin-top: 8px;
	}

	.dialog-presence {
		font-size: 14px;
		gap: 2px 10px;
	}

	.dialog-nav {
		width: 100%;
		flex-wrap: nowrap;
	}

	.dialog-nav .btn:not(.btn-icon) {
		flex: 1 1 0;
		min-width: 0;
		padding: 0 12px;
		font-size: 14px;
	}

	.dialog-nav .btn span {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.dialog-nav .btn-icon {
		position: absolute;
		top: 12px;
		right: 12px;
	}

	.albums {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 12px;
		padding: 16px;
	}

	.album-title {
		font-size: 15px;
	}
}

/* Accès */

.access-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
}

.access-info {
	flex: 1 1 380px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.place {
	display: flex;
	align-items: center;
	gap: 18px;
}

.place img {
	width: 150px;
	height: 96px;
	object-fit: cover;
	border-radius: 10px;
	flex: none;
	background: var(--ph);
}

.place strong {
	display: block;
	font-size: 18px;
}

.place span {
	color: var(--muted);
}

.access-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.map {
	flex: 999 1 520px;
	min-width: 0;
	min-height: 400px;
	border: 0;
	border-radius: 18px;
	background: var(--ph);
}

@media (max-width: 600px) {
	.place img {
		width: 110px;
		height: 72px;
	}

	.map {
		min-height: 320px;
	}
}

/* Partenaires : tuiles claires dans les deux thèmes. La plupart des logos ont un fond blanc opaque :
   « multiply » donne à ce blanc la couleur de la tuile. */

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

.partner {
	--tile: #F3EBE0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 160px;
	height: 100%;
	padding: 20px;
	text-align: center;
	text-decoration: none;
	background: var(--tile);
	border: 1px solid var(--line);
	border-radius: 14px;
	color: #4A433C;
	transition: background .2s, border-color .2s;
}

.partner img {
	max-width: 100%;
	max-height: 80px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.partner.large img {
	max-height: 110px;
}

a.partner:focus-visible {
	--tile: #FFFFFF;
	border-color: var(--accent);
	color: #23201D;
}

@media (hover: hover) {
	a.partner:hover {
		--tile: #FFFFFF;
		border-color: var(--accent);
		color: #23201D;
	}
}

.partner-name {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

@media (max-width: 600px) {
	.partner-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.partner {
		min-height: 130px;
		padding: 14px;
	}
}

/* Pied de page */

.site-footer {
	background: var(--band);
	color: var(--band-muted);
	border-top: 1px solid var(--band-line);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 56px;
}

.footer-col {
	flex: 1 1 260px;
}

.footer-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	text-transform: uppercase;
	color: var(--band-ink);
}

.footer-col p {
	margin: 10px 0 0;
	line-height: 1.6;
}

.footer-col a {
	color: var(--band-muted);
}

.footer-col a:hover {
	color: var(--band-ink);
}

.footer-col .accent-link {
	color: var(--band-time);
	font-weight: 700;
	display: inline-block;
	margin-top: 10px;
}

.footer-heading {
	font-weight: 800;
	color: var(--band-ink);
	margin-bottom: 12px;
}

.year-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.year-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--band-chip);
	border-radius: 999px;
	color: var(--band-ink);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

@media (hover: hover) {
	.year-chips a:hover {
		border-color: var(--band-ink);
		color: var(--band-ink);
	}
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.copyright {
	font-size: 14px;
	margin-top: 8px;
}

/* Qui sommes-nous ? (replié par défaut, dans l'accueil) */

/* Dans le pied de page : couleurs du bandeau sombre ; une fois ouvert, le panneau prend toute la largeur */
.about {
	--surface: transparent;
	--ink: var(--band-ink);
	--body: var(--band-muted);
	--muted: var(--band-muted);
	--line: var(--band-chip);
	--bg: var(--band-pill);
	--accent: var(--band-time);
	--blue: var(--band-time);
	--logo: #FFC857;
	margin: 18px 0 0;
	color: var(--body);
}

.footer-col:has(.about[open]) {
	flex-basis: 100%;
}

.footer-col .about p {
	margin: 0 0 14px;
}

.about .fold-summary {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ink);
	gap: 16px;
	padding: 16px 24px;
}

.about .fold-summary:hover {
	color: var(--accent);
}

.about-logo {
	flex: none;
	height: 44px;
	width: auto;
	color: var(--logo);
}

.fold-sub {
	display: block;
	margin-top: 2px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	color: var(--muted);
}

.about-body {
	padding-top: 28px;
	padding-bottom: 28px;
}

.about-lead {
	font-size: 20px;
	line-height: 1.55;
	color: var(--ink);
	max-width: 62ch;
}

.prose .about-goals {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin: 20px 0 28px;
	padding: 0;
	list-style: none;
}

.about-goals li {
	margin: 0;
	padding: 16px 18px 16px 48px;
	position: relative;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--ink);
	font-weight: 600;
	line-height: 1.45;
}

.about-goals li::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 19px;
	width: 16px;
	height: 9px;
	border-left: 3px solid var(--accent);
	border-bottom: 3px solid var(--accent);
	transform: rotate(-45deg);
}

.about-cols {
	columns: 2 340px;
	column-gap: 56px;
}

.about-cols p {
	break-inside: avoid-column;
}

.prose .about-thanks {
	margin-top: 12px;
	color: var(--accent);
	font-weight: 700;
}

@media (max-width: 600px) {
	.about .fold-summary {
		font-size: 18px;
		padding: 14px 16px;
	}

	.about-logo {
		height: 36px;
	}

	.about-lead {
		font-size: 18px;
	}
}

/* Pages secondaires (podcasts, mentions légales) */

.page-hero {
	background: var(--hero);
	border-bottom: 1px solid var(--line);
}

.page-hero-inner {
	padding-top: 56px;
	padding-bottom: 48px;
}

.page-kicker {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--blue);
}

.page-title {
	margin-top: 10px;
	font-size: clamp(34px, 6vw, 60px);
	text-transform: uppercase;
}

.page-intro {
	margin: 16px 0 0;
	max-width: 60ch;
	font-size: 18px;
	color: var(--body);
}

.back-link {
	margin-left: auto;
}

.page-body {
	padding-top: 56px;
	padding-bottom: 88px;
}

@media (max-width: 600px) {
	.page-hero-inner {
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.back-link span {
		display: none;
	}

	.back-link {
		padding: 0;
		width: 44px;
	}
}

/* Podcasts */

.episodes {
	display: grid;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 860px;
}

.episode {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
}

.episode-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--on-accent);
}

.episode-info {
	flex: 1 1 260px;
	min-width: 0;
}

.episode-date {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--accent);
}

.episode-title {
	margin: 6px 0 0;
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.episode-source {
	margin: 4px 0 0;
	color: var(--muted);
}

.episode audio {
	flex: 1 1 100%;
	width: 100%;
	height: 44px;
}

.episode-download {
	font-size: 14px;
	font-weight: 700;
}

/* Mentions légales */

.legal-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
	align-items: flex-start;
}

.toc {
	flex: 1 1 240px;
	position: sticky;
	top: calc(var(--header-h) + 24px);
	padding: 20px 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
}

.toc-title {
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}

.toc ol {
	margin: 0;
	padding-left: 22px;
	font-size: 15px;
	line-height: 1.4;
}

.toc li {
	margin: 0 0 8px;
}

.toc a {
	color: var(--ink);
	text-decoration: none;
}

.toc a:hover {
	color: var(--accent);
	text-decoration: underline;
}

.legal {
	flex: 999 1 560px;
	min-width: 0;
	max-width: 78ch;
}

.legal h2 {
	scroll-margin-top: calc(var(--header-h) + 16px);
	margin: 48px 0 16px;
	font-size: 26px;
	color: var(--ink);
}

.legal h2:first-child {
	margin-top: 0;
}

.legal-card {
	padding: 20px 24px;
	margin-bottom: 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
}

.legal-card dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 20px;
	margin: 0;
}

.legal-card dt {
	font-weight: 800;
	color: var(--ink);
}

.legal-card dd {
	margin: 0;
}

@media (max-width: 900px) {
	.toc {
		position: static;
	}
}

@media (max-width: 600px) {
	.legal-card dl {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.legal-card dd {
		margin-bottom: 10px;
	}
}