/* Pardon Maman — feuille de style unique.
   Identité sombre et sobre, un seul accent (le teal du logo).
   Polices système : aucun appel réseau, le site reste auto-porteur. */

:root {
	--bg: #0f1417;
	--surface: #161c20;
	--surface-hover: #1c242a;
	--text: #e8edef;
	--muted: #8fa3ab;
	--accent: #2fb8a8;
	--accent-strong: #4fd6c6;
	--border: #232b30;
	--radius: 10px;
	--maxw: 880px;
	--font-title: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-body: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.25; margin: 0 0 0.6em; font-weight: 650; }
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

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

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--accent); color: #04110f;
	padding: 0.6em 1em; z-index: 10;
}
.skip-link:focus { left: 0; }

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

.shell {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Nav ---------- */

.nav {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 14px;
	padding: 22px 0;
	border-bottom: 1px solid var(--border);
}
.nav-brand {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--text); font-family: var(--font-title); font-weight: 650;
}
.nav-brand:hover { color: var(--text); text-decoration: none; }
.nav-logo { border-radius: 6px; }
.nav-list { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-link { color: var(--muted); font-size: 0.95rem; }
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.is-active { color: var(--accent); }

/* ---------- Blocs de page ---------- */

main { padding: 40px 0 56px; }

.page-head { margin-bottom: 32px; }
.page-intro { color: var(--muted); margin: 0; }
.breadcrumb { margin: 0 0 20px; font-size: 0.92rem; }

.section { margin-bottom: 44px; }
.section:last-child { margin-bottom: 0; }

.hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-logo { border-radius: var(--radius); width: 180px; height: 180px; }
.hero-text { flex: 1 1 320px; }
.hero-text h1 { margin-bottom: 0.2em; }
.hero-tagline { color: var(--muted); margin: 0 0 0.8em; }
.hero-note { font-size: 0.95rem; margin-bottom: 1.2em; }

.button {
	display: inline-block;
	background: var(--accent); color: #04110f;
	padding: 0.6em 1.15em; border-radius: var(--radius);
	font-weight: 600; font-size: 0.95rem;
}
.button:hover { background: var(--accent-strong); color: #04110f; text-decoration: none; }
.button-quiet {
	background: transparent; color: var(--text);
	border: 1px solid var(--border);
}
.button-quiet:hover { background: var(--surface-hover); color: var(--text); }

.rich-text a { text-decoration: underline; }
.rich-text hr { border: 0; border-top: 1px solid var(--border); margin: 1.6em 0; }
.credit { color: var(--muted); font-size: 0.92rem; }

.code-block {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 14px 16px;
	overflow-x: auto; font-size: 0.85rem; line-height: 1.5;
}

/* ---------- Pastilles d'écoute ---------- */

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pill {
	display: inline-block;
	border: 1px solid var(--border); background: var(--surface);
	color: var(--text); font-size: 0.85rem;
	padding: 0.35em 0.85em; border-radius: 999px;
}
.pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- Liste d'épisodes ---------- */

.list-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.sort-label { color: var(--muted); font-size: 0.9rem; }
.select {
	background: var(--surface); color: var(--text);
	border: 1px solid var(--border); border-radius: var(--radius);
	padding: 0.45em 0.7em; font: inherit; font-size: 0.9rem;
}

.episode-list { list-style: none; margin: 0; padding: 0; }
.episode-row { border-bottom: 1px solid var(--border); }
.episode-row:first-child { border-top: 1px solid var(--border); }
.episode-link {
	display: flex; align-items: flex-start; gap: 16px;
	padding: 14px 8px; color: var(--text);
}
.episode-link:hover { background: var(--surface-hover); text-decoration: none; }
.episode-thumb { border-radius: 8px; flex: none; width: 64px; height: 64px; }
.episode-body { min-width: 0; display: block; }
.episode-meta { display: block; color: var(--muted); font-size: 0.82rem; }
.episode-title {
	display: block; font-family: var(--font-title); font-weight: 600;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.episode-excerpt {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden; color: var(--muted); font-size: 0.88rem;
	line-height: 1.45; margin-top: 3px;
}
.list-empty { color: var(--muted); }

/* ---------- Pagination ---------- */

.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 26px; }
.page-button {
	background: var(--surface); color: var(--text);
	border: 1px solid var(--border); border-radius: 8px;
	padding: 0.4em 0.75em; font: inherit; font-size: 0.88rem; cursor: pointer;
}
.page-button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-button[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #04110f; font-weight: 600; }
.page-button:disabled { opacity: 0.35; cursor: default; }
.page-ellipsis { color: var(--muted); padding: 0 2px; }

/* ---------- Épisode : page de détail ---------- */

.detail-logo { border-radius: var(--radius); margin-bottom: 18px; width: 140px; height: 140px; }

/* ---------- Événements ---------- */

.event-list { list-style: none; margin: 0; padding: 0; }
.event-row { border-bottom: 1px solid var(--border); }
.event-row:first-child { border-top: 1px solid var(--border); }
.event-link { display: flex; gap: 18px; align-items: baseline; padding: 16px 8px; color: var(--text); }
.event-link:hover { background: var(--surface-hover); text-decoration: none; }
.event-date { color: var(--accent); font-size: 0.82rem; flex: none; width: 74px; }
.event-title { display: block; font-family: var(--font-title); font-weight: 600; }
.event-venue { display: block; color: var(--muted); font-size: 0.88rem; }
.event-photo { border-radius: var(--radius); margin-bottom: 22px; }

/* ---------- Galerie photos ---------- */

.photo-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.photo-button {
	display: block; width: 100%; padding: 0; cursor: pointer;
	border: 1px solid var(--border); border-radius: var(--radius);
	background: var(--surface); overflow: hidden;
}
.photo-button:hover { border-color: var(--accent); }
.photo-button img { width: 100%; height: 140px; object-fit: cover; }

.lightbox {
	position: fixed; inset: 0; z-index: 20;
	background: rgba(6, 10, 12, 0.94);
	display: flex; align-items: center; justify-content: center;
	padding: 56px 64px;
}
.lightbox[hidden] { display: none; }
.lightbox-image { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
	position: absolute; background: var(--surface); color: var(--text);
	border: 1px solid var(--border); border-radius: 999px;
	width: 44px; height: 44px; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------- Kit presse ---------- */

.press-logos {
	list-style: none; margin: 0 0 1.4em; padding: 0;
	display: grid; gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.press-logo {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 16px;
	display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
/* Les logos transparents ont été pensés pour des fonds opposés : le logo carré est sombre,
   le logo titre est en teal pâle. Chacun reçoit la plaque qui le rend lisible. */
.press-logo-plate {
	border-radius: 8px; width: 100%; padding: 14px;
	display: flex; align-items: center; justify-content: center;
}
.plate-light { background: #ffffff; }
.plate-dark { background: #0b1013; border: 1px solid var(--border); }
.press-logo img { width: 110px; height: 110px; object-fit: contain; }
.press-logo-plate img { height: 82px; }
/* Le libellé est poussé en bas pour que les trois tuiles s'alignent. */
.press-logo .button { margin-top: auto; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); padding: 32px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 24px; }
.footer-block { flex: 1 1 190px; }
.footer-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 0.9em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-link { color: var(--text); font-size: 0.9rem; }
.footer-link:hover { color: var(--accent); }
.footer-legal { color: var(--muted); font-size: 0.82rem; margin: 0; }

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
	body { font-size: 16px; }
	h1 { font-size: 1.6rem; }
	.hero { gap: 20px; }
	.hero-logo { width: 120px; height: 120px; }
	.nav { padding: 16px 0; }
	.nav-list { gap: 14px; }
	.episode-link { gap: 12px; padding: 12px 4px; }
	.episode-thumb { width: 52px; height: 52px; }
	.photo-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
	.photo-button img { height: 110px; }
	.lightbox { padding: 64px 12px; }
	.lightbox-prev { left: 6px; }
	.lightbox-next { right: 6px; }
}
