/*
Theme Name: RMC 2026
Theme URI: https://www.radiomariechristine.be
Author: Radio Marie-Christine
Description: Thème de RMC : Radio Marie-Christine, radio de quartier participative à Laeken. Émissions importées depuis Castopod, créations SoundCloud, lecteur audio intégré, recherche et carte des lieux.
Version: 0.5.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: rmc
*/

/* ==========================================================================
   Couleurs & typo — modifier ici pour changer l'identité
   ========================================================================== */
:root {
	--paper: #fbf7ef;
	--paper-2: #f4ead7;
	--sepia: #e9d9b9;
	--card: #fffdf8;
	--ink: #1b1714;
	--ink-2: #4a4038;
	--muted: #75685b;
	--line: #e4d6bd;
	--orange: #f39c31;
	--orange-soft: #fde3bf;
	--orange-deep: #a8520a; /* orange lisible sur fond clair */
	--green: #4f7a52;
	--green-soft: #dfe9d6;
	--blue: #3d6b85;
	--blue-soft: #dbe7ee;

	--font-display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
	--font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 0 rgba(27, 23, 20, .06), 0 10px 30px -12px rgba(80, 50, 10, .22);
	--shadow-lift: 0 2px 0 rgba(27, 23, 20, .08), 0 22px 40px -16px rgba(80, 50, 10, .35);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--player-h: 0px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--font-body);
	overflow-x: hidden;
	padding-bottom: var(--player-h);
}
body.has-player { --player-h: 76px; }
/* grain papier */
body::before {
	content: "";
	position: fixed; inset: 0;
	pointer-events: none; z-index: 100;
	opacity: .35; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Surlignage « dessiné à la main » */
mark {
	background: none; color: inherit;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 13 C 40 6, 90 16, 130 9 S 185 8, 198 11' fill='none' stroke='%23f39c31' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-size: 100% .42em; background-position: 0 92%;
	padding: 0 .04em;
}
.ep-card mark, .chapters mark { background: var(--orange-soft); border-radius: 3px; background-image: none; padding: 0 2px; }

.kicker {
	font: 700 .78rem/1.2 var(--font-body);
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--orange-deep);
	margin: 0 0 .9em;
}
.small-title { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; color: var(--muted); margin: 1.6em 0 .7em; }
.meta { display: flex; flex-wrap: wrap; gap: .4em 1.1em; color: var(--ink-2); font-size: .95rem; margin: 0 0 1em; }
.meta span { display: inline-flex; align-items: center; gap: .35em; }
.meta .icon { color: var(--orange-deep); }

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	min-height: 46px; padding: .6em 1.2em;
	border-radius: 999px; border: 2px solid var(--ink);
	background: var(--card); color: var(--ink);
	font: 700 1rem/1.1 var(--font-body);
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, background .15s;
	box-shadow: 0 3px 0 var(--ink);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn--play { background: var(--orange); }
.btn--big { min-height: 54px; padding: .7em 1.5em; font-size: 1.05rem; }
.btn--ghost { background: transparent; box-shadow: none; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; background: var(--card); }
.btn--live { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 3px 0 var(--orange); }
.btn--live:hover { color: #fff; box-shadow: 0 4px 0 var(--orange); }
.link-btn { background: none; border: 0; padding: 0; color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; }
.icon-btn:hover { background: rgba(0, 0, 0, .06); }
.icon-btn.is-done { color: var(--green); }

/* état lecture/pause (géré par player.js) */
[data-pid] .i-pause { display: none; }
[data-pid].is-playing .i-play { display: none; }
[data-pid].is-playing .i-pause { display: inline-flex; }
.i-play, .i-pause { display: inline-flex; }

.live-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--orange); display: inline-block; flex: none; }
.is-onair .live-dot, .ticket.is-live .live-dot { background: #e5352b; animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 53, 43, .6); } 100% { box-shadow: 0 0 0 .7em rgba(229, 53, 43, 0); } }

.chip {
	border: 1.5px solid var(--line); background: var(--card);
	border-radius: 999px; padding: .4em .95em; font-size: .92rem; font-weight: 700;
	transition: background .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 247, 239, .9);
	backdrop-filter: blur(10px) saturate(1.2);
	-webkit-backdrop-filter: blur(10px) saturate(1.2);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { flex: none; }
.brand__logo { height: 46px; width: auto; border-radius: 4px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.site-nav__list { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { text-decoration: none; font-weight: 700; padding: .3em 0; background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 100% / 0 3px; transition: background-size .2s; }
.site-nav__list a:hover { color: var(--ink); background-size: 100% 3px; }
.site-nav .btn--live { min-height: 40px; padding: .45em 1em; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none; position: relative; }
.nav-toggle span:not(.screen-reader-text) { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 22px; } .nav-toggle span:nth-child(3) { top: 29px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
	.nav-toggle { display: block; }
	.brand__logo { height: 40px; }
	.site-nav {
		position: fixed; inset: 72px 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1.2rem var(--gutter) 1.6rem;
		background: var(--paper); border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		transform: translateY(-120%); visibility: hidden;
		transition: transform .25s ease, visibility .25s;
	}
	.nav-open .site-nav { transform: none; visibility: visible; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a { display: block; padding: .75em 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; background: none; }
	.site-nav .btn--live { justify-content: center; }
}

/* ==========================================================================
   Accroche (hero)
   ========================================================================== */
.hero {
	position: relative;
	padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px);
	background:
		linear-gradient(180deg, rgba(251, 247, 239, .25) 0%, rgba(251, 247, 239, .55) 55%, var(--paper) 100%),
		url("img/bg_1.jpg") center 40% / cover no-repeat;
	overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* billet « prochain plateau » */
.ticket {
	position: relative;
	background: var(--card);
	border-radius: var(--radius);
	padding: 1.6rem 1.6rem 1.4rem;
	box-shadow: var(--shadow-lift);
	transform: rotate(1.2deg);
	/* perforations latérales */
	-webkit-mask: radial-gradient(circle 9px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
	mask: radial-gradient(circle 9px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket::after { content: ""; position: absolute; left: 18px; right: 18px; top: 62%; border-top: 2px dashed var(--line); }
.ticket__label { display: flex; align-items: center; gap: .5em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--orange-deep); }
.ticket__date { display: flex; align-items: center; gap: .9rem; margin: .4rem 0 .6rem; }
.ticket__day { font: 800 4.2rem/0.9 var(--font-display); letter-spacing: -.04em; }
.ticket__month { font: 700 1.1rem/1.25 var(--font-display); text-transform: capitalize; }
.ticket__place { display: flex; gap: .4em; align-items: center; font-weight: 700; margin-bottom: .2rem; }
.ticket__place .icon { color: var(--orange-deep); }
.ticket__countdown { color: var(--muted); min-height: 1.6em; margin-bottom: 1.6rem; }
.ticket__countdown b { color: var(--ink); font-family: var(--font-display); font-size: 1.15em; }
.ticket .btn--live { width: 100%; justify-content: center; }
.ticket__note { font-size: .86rem; color: var(--muted); margin: 1rem 0 0; }
.ticket.is-live { box-shadow: 0 0 0 3px #e5352b, var(--shadow-lift); }

/* ==========================================================================
   Chiffres
   ========================================================================== */
.stats { background: var(--ink); color: #fff; }
.stats__list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 auto; padding-block: 1.5rem; gap: 1rem; }
.stats__list li { display: flex; flex-direction: column; font-size: .95rem; color: rgba(255, 255, 255, .75); }
.stats__list strong { font: 800 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--font-display); color: var(--orange); letter-spacing: -.02em; }
@media (max-width: 700px) { .stats__list { grid-template-columns: repeat(2, 1fr); row-gap: 1.3rem; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--tint { background: var(--paper-2); }
.section--tint::before {
	content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 15px;
	background: var(--paper-2);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 15' preserveAspectRatio='none'%3E%3Cpath d='M0 15 L0 8 L8 11 L17 5 L26 9 L33 4 L43 10 L52 6 L60 9 L70 3 L79 8 L88 5 L97 10 L106 6 L114 9 L120 5 L120 15Z'/%3E%3C/svg%3E") 0 0 / 240px 15px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 15' preserveAspectRatio='none'%3E%3Cpath d='M0 15 L0 8 L8 11 L17 5 L26 9 L33 4 L43 10 L52 6 L60 9 L70 3 L79 8 L88 5 L97 10 L106 6 L114 9 L120 5 L120 15Z'/%3E%3C/svg%3E") 0 0 / 240px 15px repeat-x;
}
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section__title { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; margin: 0; }
.section__intro { color: var(--ink-2); margin: 0; max-width: 34em; }
@media (max-width: 800px) { .section__head { grid-template-columns: 1fr; } }

/* ==========================================================================
   À la une
   ========================================================================== */
.featured__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.featured .section__title { margin-bottom: .45em; }
.featured__excerpt { color: var(--ink-2); font-size: 1.1rem; max-width: 34em; }
.featured__wave { margin: 1.8rem 0; height: 92px; color: var(--ink); }
.featured__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.featured__chapters { background: var(--card); border-radius: var(--radius); padding: 1.4rem 1.4rem .8rem; box-shadow: var(--shadow); }
.featured__chapters .small-title { margin-top: 0; }

.wave { width: 100%; height: 100%; display: block; overflow: visible; }
.wave__bars { fill: currentColor; }
.wave__ticks line { stroke: var(--orange); stroke-width: 1.6; stroke-dasharray: 3 3; }
.featured__main:has(.is-playing) .featured__wave .wave__bars rect { animation: bob 1.1s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
.wave__bars rect:nth-child(3n) { animation-delay: -.3s; }
.wave__bars rect:nth-child(4n+1) { animation-delay: -.6s; }
@keyframes bob { from { transform: scaleY(.55); } to { transform: scaleY(1.08); } }
body:not(.is-playing) .wave__bars rect { animation: none !important; }

.chapters { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.chapters li + li { border-top: 1px dashed var(--line); }
.chapters button {
	display: grid; grid-template-columns: 4.2em 1fr auto; gap: .6rem; align-items: baseline;
	width: 100%; padding: .65rem .3rem; text-align: left;
	background: none; border: 0; border-radius: 8px;
	transition: background .15s;
}
.chapters button:hover { background: var(--orange-soft); }
.chapters time { font: 700 .86rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--orange-deep); }
.chapters .icon { width: 1em; height: 1em; opacity: 0; color: var(--orange-deep); align-self: center; transition: opacity .15s; }
.chapters button:hover .icon { opacity: 1; }

/* ==========================================================================
   Explorateur
   ========================================================================== */
.explorer__search {
	display: flex; align-items: center; gap: .7rem;
	background: var(--card); border: 2px solid var(--ink); border-radius: 999px;
	padding: 0 1.3rem; box-shadow: 0 4px 0 var(--ink);
}
.explorer__search .icon { width: 1.4em; height: 1.4em; color: var(--orange-deep); }
.explorer__search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.15rem; padding: 1rem 0; outline: none; }
.explorer__search:focus-within { box-shadow: 0 4px 0 var(--orange); border-color: var(--orange-deep); }
.explorer__years { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.4rem 0 1rem; }
.explorer__filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1rem; }
.explorer__filters label { display: flex; flex-direction: column; gap: .25rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.explorer__filters select {
	appearance: none; -webkit-appearance: none;
	font: 400 1rem var(--font-body); color: var(--ink); text-transform: none; letter-spacing: 0;
	min-width: 11em; max-width: 17em; padding: .55em 2.2em .55em .9em;
	border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1714' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .6em center / 1.1em no-repeat;
}
.explorer__filters select:hover { border-color: var(--ink); }
.explorer__filters .link-btn { margin-bottom: .6em; }
.explorer__count { margin: 1.6rem 0 1rem; font-weight: 700; color: var(--muted); min-height: 1.6em; }
.explorer__more { text-align: center; margin-top: 2rem; }
.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted); }
@media (max-width: 600px) {
	.explorer__filters label { flex: 1 1 calc(50% - .5rem); }
	.explorer__filters select { min-width: 0; max-width: none; width: 100%; }
}

.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.ep-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--card); border-radius: var(--radius);
	padding: 1.1rem 1.15rem 1rem; box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
	animation: rise .35s ease both;
}
.ep-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.ep-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.ep-card__date { font: 800 1.05rem var(--font-display); text-transform: capitalize; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .28em .7em; border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep); }
.tag--live { background: var(--green-soft); color: var(--green); }
.tag--speciale { background: var(--blue-soft); color: var(--blue); }
.ep-card__wave { position: relative; height: 64px; margin-bottom: .9rem; color: var(--sepia); background: var(--paper); border-radius: var(--radius-sm); padding: 10px 62px 10px 12px; }
.ep-card:hover .ep-card__wave { color: #d9c49b; }
.ep-card__play {
	position: absolute; right: 8px; top: 50%; translate: 0 -50%;
	width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
	background: var(--orange); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink);
	transition: transform .15s;
}
.ep-card__play:hover { transform: scale(1.07); }
.ep-card__play .icon { width: 1.3em; height: 1.3em; }
.ep-card__play.is-current { background: var(--ink); color: var(--orange); }
.ep-card:has(.is-playing) .ep-card__wave { color: var(--orange); }
.ep-card:has(.is-playing) .wave__bars rect { animation: bob 1s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
.ep-card__title { font-size: 1.22rem; font-weight: 700; margin: 0 0 .45rem; }
.ep-card__title button { background: none; border: 0; padding: 0; text-align: left; font: inherit; letter-spacing: inherit; }
.ep-card__title button:hover { color: var(--orange-deep); }
.ep-card__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .9rem; color: var(--muted); margin: 0 0 .6rem; }
.ep-card__meta span { display: inline-flex; gap: .3em; align-items: center; }
.ep-card__hits { list-style: none; margin: 0 0 .7rem; padding: .5rem; background: var(--paper); border-radius: var(--radius-sm); font-size: .9rem; }
.ep-card__hits button { display: flex; gap: .4em; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: .3rem .2rem; border-radius: 6px; }
.ep-card__hits button:hover { background: var(--orange-soft); }
.ep-card__hits .icon { width: .85em; height: .85em; color: var(--orange-deep); align-self: center; }
.ep-card__hits time { font: 700 .8rem ui-monospace, Menlo, monospace; color: var(--orange-deep); }
.ep-card__more { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: .2rem 0; font-size: .9rem; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.ep-card__more:hover { text-decoration-color: var(--orange); }

/* ==========================================================================
   Fiche émission
   ========================================================================== */
.ep-dialog {
	width: min(760px, calc(100% - 24px)); max-height: min(88vh, 900px);
	border: 0; border-radius: 22px; padding: 0;
	background: var(--paper); color: var(--ink);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.ep-dialog::backdrop { background: rgba(27, 23, 20, .55); backdrop-filter: blur(3px); }
.ep-dialog[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.ep-dialog__inner { padding: clamp(22px, 4vw, 40px); }
.ep-dialog__close { position: absolute; top: 12px; right: 12px; background: var(--card); }
.ep-dialog__title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); padding-right: 2.5rem; }
.ep-dialog__wave { height: 60px; color: var(--sepia); margin: 1.2rem 0; }
.ep-dialog__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ep-dialog .chapters { background: var(--card); border-radius: var(--radius); padding: .4rem .8rem; }
.ep-dialog .voices { color: var(--ink-2); }
.ep-dialog .chips { margin-bottom: 0; }
.ep-dialog__src { margin: 1.6rem 0 0; font-size: .92rem; }
.ep-dialog__src a { display: inline-flex; gap: .35em; align-items: center; }

/* ==========================================================================
   Carte
   ========================================================================== */
.map-block { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.map {
	height: clamp(380px, 56vh, 560px); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); border: 2px solid var(--ink); z-index: 0; background: var(--paper-2);
}
.map .leaflet-tile-pane { filter: sepia(.4) saturate(.85) brightness(1.02); }
.map-pin span {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--orange); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink);
	font: 800 .9rem var(--font-display); color: var(--ink);
	transform: scale(var(--s, 1)); transition: transform .15s;
}
.map-pin:hover span { transform: scale(calc(var(--s, 1) * 1.12)); }
.leaflet-popup-content-wrapper { border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-lift); }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font-body); }
.map-pop strong { font: 800 1.05rem var(--font-display); display: block; margin-bottom: .5rem; }
.map-pop ul { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; }
.map-pop li { display: flex; align-items: center; gap: .55rem; padding: .25rem 0; }
.map-pop .link-btn { text-transform: capitalize; color: var(--ink); font-weight: 700; }
.mini-play { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--orange); display: grid; place-items: center; flex: none; padding: 0; }
.mini-play .icon { width: .9em; height: .9em; }

.places { list-style: none; margin: 0; padding: .5rem; max-height: clamp(380px, 56vh, 560px); overflow: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.places button { display: flex; gap: .8rem; align-items: center; width: 100%; padding: .55rem .6rem; text-align: left; background: none; border: 0; border-radius: 10px; }
.places button:hover, .places button.is-active { background: var(--orange-soft); }
.places button > span:last-child { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; }
.places small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.places__n { flex: none; width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font: 800 .85rem var(--font-display); }
@media (max-width: 860px) {
	.map-block { grid-template-columns: 1fr; }
	.places { max-height: 260px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ==========================================================================
   Créations
   ========================================================================== */
.crea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.crea-card {
	background: var(--card); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); transform: rotate(var(--tilt, 0deg));
	transition: transform .25s ease, box-shadow .25s ease;
	animation: rise .35s ease both;
}
.crea-card:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow-lift); }
.crea-card__art { position: relative; aspect-ratio: 1; background: var(--sepia); color: var(--orange); display: grid; place-items: center; padding: 0; }
.crea-card__art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.crea-card__art .wave { width: 72%; height: 40%; }
/* effet « pile de disques » pour les séries */
.crea-card--set .crea-card__art { box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .08); }
.crea-card__play {
	position: absolute; right: 12px; bottom: 12px;
	width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	background: var(--orange); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
	transition: transform .15s;
}
.crea-card__play:hover { transform: scale(1.08); }
.crea-card__play .icon { width: 1.4em; height: 1.4em; }
.crea-card__play.is-current { background: var(--ink); color: var(--orange); }
.crea-card__body { padding: 1rem 1.1rem 1.2rem; }
.crea-card__kind { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); margin: 0 0 .35rem; }
.crea-card__title { font-size: 1.2rem; margin: 0 0 .4rem; }
.crea-card__desc { font-size: .93rem; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.crea-card__meta { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; text-transform: capitalize; }
.crea-card__kind .link-btn { color: inherit; text-decoration: none; letter-spacing: inherit; text-transform: inherit; font-size: inherit; text-align: left; }
.crea-card__kind .link-btn:hover { text-decoration: underline; }

/* Boutons lecture : icône toujours foncée sur l'orange (corrige l'icône invisible) */
.crea-card__play, .ep-card__play, .mini-play { color: var(--ink); }
.crea-card__play.is-current, .ep-card__play.is-current { color: var(--orange); }

/* Séries (page Créations) */
.series-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px 1.6rem; scroll-snap-type: x proximity; }
.series-card {
	flex: 0 0 auto; width: 230px; display: flex; align-items: center; gap: .8rem; text-align: left;
	background: var(--card); border: 2px solid transparent; border-radius: 14px; padding: 8px 12px 8px 8px;
	box-shadow: var(--shadow); scroll-snap-align: start; transition: border-color .15s, transform .15s;
}
.series-card:hover { transform: translateY(-2px); }
.series-card.is-active { border-color: var(--ink); background: var(--orange-soft); }
.series-card__art { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--sepia); color: var(--orange); display: grid; place-items: center; }
.series-card__art img { width: 100%; height: 100%; object-fit: cover; }
.series-card__art .wave { width: 80%; height: 50%; }
.series-card__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.series-card__txt strong { font-family: var(--font-display); font-size: 1rem; }
.series-card__txt small { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.crea-tools { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.crea-tools .chips { margin: 0; }
.explorer__search--small { flex: 1 1 320px; max-width: 520px; box-shadow: 0 3px 0 var(--ink); }
.explorer__search--small input { font-size: 1rem; padding: .7rem 0; }

/* ==========================================================================
   Le projet / Participer
   ========================================================================== */
.project {
	background:
		linear-gradient(90deg, var(--paper) 0%, rgba(251, 247, 239, .92) 45%, rgba(251, 247, 239, .55) 100%),
		url("img/bg_2.png") center / cover no-repeat;
}
.project__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.project__text p { font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }
.project__text .section__title { margin-bottom: .6em; }
.join {
	position: relative; background: var(--orange); border-radius: 24px;
	padding: clamp(26px, 4vw, 44px); box-shadow: 0 6px 0 var(--ink);
	border: 2px solid var(--ink); transform: rotate(-1.2deg);
}
.join__icon { width: 54px; height: 54px; color: var(--ink); margin-bottom: .6rem; }
.join__title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
.join mark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 13 C 40 6, 90 16, 130 9 S 185 8, 198 11' fill='none' stroke='%23fffdf8' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.join p { font-size: 1.08rem; }
.join .btn { background: var(--card); margin-top: .4rem; }

.partners { padding: 2.6rem 0 3rem; border-top: 1px solid var(--line); }
.partners .kicker { text-align: center; }
.partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 2.4rem; }
.partners__list li { font: 700 1.15rem var(--font-display); color: var(--ink-2); }

@media (max-width: 900px) {
	.hero__grid, .featured__grid, .project__grid { grid-template-columns: 1fr; }
	.ticket { transform: rotate(.6deg); max-width: 440px; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 3.4rem 0 1.6rem; }
.site-footer a { color: #fff; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.site-footer a:hover { color: var(--orange); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer__logo { width: 180px; border-radius: 4px; margin-bottom: 1rem; }
.site-footer__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-body); color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer__small { font-size: .85rem; color: rgba(255, 255, 255, .55); margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Lecteur audio
   ========================================================================== */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; color: #fff; }
.player[hidden] { display: none; }
.player__bar {
	display: grid; align-items: center; gap: 14px;
	grid-template-columns: 52px minmax(140px, 1fr) auto minmax(200px, 1.6fr) auto;
	min-height: 76px; padding: 10px var(--gutter);
	background: var(--ink); box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .35);
	border-top: 3px solid var(--orange);
}
.player__art { width: 52px; height: 52px; border-radius: 10px; background: var(--orange) center / cover no-repeat; }
.player__art.is-empty { background-image: url("img/Logo-RMC.jpg") !important; background-size: 170%; background-position: center 30%; }
.player__info { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.player__info strong { font-family: var(--font-display); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__info span { font-size: .85rem; color: rgba(255, 255, 255, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__controls { display: flex; align-items: center; gap: 4px; }
.player .icon-btn { color: #fff; }
.player .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.player .icon-btn[hidden] { display: none; }
.player__play {
	position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0;
	background: var(--orange); color: var(--ink); display: grid; place-items: center;
	transition: transform .15s;
}
.player__play:hover { transform: scale(1.06); }
.player__play .icon { width: 1.5em; height: 1.5em; }
.player__play .i-pause { display: none; }
.player.is-playing .player__play .i-play { display: none; }
.player.is-playing .player__play .i-pause { display: inline-flex; }
.spinner { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff; opacity: 0; animation: spin .8s linear infinite; }
.player.is-loading .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.player__timeline { display: flex; align-items: center; gap: 10px; font: 600 .8rem ui-monospace, Menlo, monospace; color: rgba(255, 255, 255, .7); }
.player__seek { position: relative; flex: 1; height: 28px; display: flex; align-items: center; }
.player__track { position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.player__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--orange); }
.player__markers i { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: rgba(255, 255, 255, .55); border-radius: 1px; }
.player__seek input { position: relative; width: 100%; margin: 0; height: 28px; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.player__seek input::-webkit-slider-runnable-track { background: none; height: 28px; }
.player__seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: 6px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); }
.player__seek input::-moz-range-track { background: none; }
.player__seek input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); }
.player__seek input:focus-visible { outline: 2px solid var(--orange); }
.player__extra { display: flex; align-items: center; gap: 2px; }
.chip-btn { min-width: 46px; height: 32px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .3); background: none; color: #fff; font-weight: 700; font-size: .85rem; }
.chip-btn[hidden] { display: none; }
.chip-btn:hover { border-color: #fff; }
.player__sc { position: fixed; width: 1px; height: 1px; left: -10px; bottom: 0; opacity: 0; pointer-events: none; border: 0; }

.player__panel {
	position: absolute; right: var(--gutter); bottom: calc(100% + 10px);
	width: min(420px, calc(100vw - 2 * var(--gutter)));
	max-height: min(60vh, 520px); overflow: auto;
	background: var(--paper); color: var(--ink);
	border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 2px solid var(--ink);
	padding: .6rem .8rem .8rem;
}
.player__panel[hidden] { display: none; }
.player__panel-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -.6rem; background: var(--paper); padding: .3rem 0; }
.player__panel-head h2 { font-size: 1.1rem; margin: 0; }
.player__panel .icon-btn { color: var(--ink); }
.player__items { list-style: none; margin: 0; padding: 0; }
.player__items button { display: grid; grid-template-columns: 4em 1fr auto; gap: .5rem; width: 100%; text-align: left; padding: .55rem .4rem; border: 0; border-radius: 8px; background: none; align-items: baseline; }
.player__items button:hover { background: var(--orange-soft); }
.player__items button.is-active { background: var(--orange); }
.player__items time { font: 700 .82rem ui-monospace, Menlo, monospace; color: var(--orange-deep); }
.player__items .is-active time { color: var(--ink); }
.player__items small { color: var(--muted); }

@media (max-width: 860px) {
	body.has-player { --player-h: 118px; }
	.player__bar { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "art info ctrl" "time time extra"; row-gap: 4px; padding-block: 8px; }
	.player__art { grid-area: art; width: 44px; height: 44px; }
	.player__info { grid-area: info; }
	.player__controls { grid-area: ctrl; }
	.player__timeline { grid-area: time; }
	.player__extra { grid-area: extra; }
	.player__play { width: 48px; height: 48px; }
}
@media (max-width: 480px) {
	.player [data-p="back"], .player [data-p="fwd"] { display: none; }
}

/* ==========================================================================
   Pages intérieures
   ========================================================================== */
.entry { margin-bottom: 3rem; }
.entry__title { font-size: 1.6rem; }
.entry__content { margin-top: 1.6rem; }
.entry__content p { white-space: pre-line; }
.notice { background: var(--orange-soft); padding: 1rem 1.2rem; border-radius: var(--radius-sm); }

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

/* ==========================================================================
   Pages dédiées (v0.2)
   ========================================================================== */
.site-nav__list .current-menu-item > a { background-size: 100% 3px; }

/* en-tête de page intérieure */
.page-head {
	position: relative;
	padding: clamp(44px, 7vw, 92px) 0 clamp(36px, 5vw, 64px);
	background:
		linear-gradient(180deg, rgba(251, 247, 239, .35) 0%, rgba(251, 247, 239, .7) 60%, var(--paper) 100%),
		var(--page-bg, none) center 40% / cover no-repeat;
}
.page-head__title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .3em; max-width: 16em; }
.page-head__intro { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 40em; }
.page-head__intro p:last-child { margin-bottom: 0; }
.page-head .kicker a { color: inherit; text-decoration: none; }
.page-head .kicker a:hover { text-decoration: underline; }
.page-head .meta a { display: inline-flex; align-items: center; gap: .35em; text-decoration: none; }
.page-head .meta a:hover { text-decoration: underline; }
.section--flush { padding-top: 8px; }

/* accueil : aperçus */
.section__head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.section__more { text-align: center; margin: 2.2rem 0 0; }
.more-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--orange-deep); }
.more-link .icon { transition: transform .15s; }
a:hover .more-link .icon, .more-link:hover .icon { transform: translateX(4px); }
.quick-search {
	display: flex; align-items: center; gap: .6rem; justify-self: end; width: 100%; max-width: 480px;
	background: var(--card); border: 2px solid var(--ink); border-radius: 999px;
	padding: 4px 4px 4px 1.1rem; box-shadow: 0 3px 0 var(--ink);
}
.quick-search .icon { color: var(--orange-deep); }
.quick-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; padding: .55rem 0; outline: none; }
.quick-search .btn { min-height: 40px; box-shadow: none; border-width: 0; }
.quick-search:focus-within { box-shadow: 0 3px 0 var(--orange); }
@media (max-width: 800px) { .quick-search { justify-self: stretch; max-width: none; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); }
.duo__card {
	position: relative; display: flex; flex-direction: column; gap: .2rem;
	padding: clamp(24px, 3.4vw, 40px); border-radius: 22px; text-decoration: none; color: var(--ink);
	background: var(--card); box-shadow: var(--shadow); overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.duo__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.duo__card--lieux { background: linear-gradient(160deg, rgba(255, 253, 248, .92), rgba(255, 253, 248, .75)), url("img/bg_1.jpg") center / cover; }
.duo__card--projet { background: linear-gradient(160deg, rgba(255, 253, 248, .94), rgba(255, 253, 248, .7)), url("img/bg_2.png") center / cover; }
.duo__title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.duo__card p:not(.kicker) { color: var(--ink-2); }
.duo__places { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.duo__places li { display: inline-flex; align-items: center; gap: .3em; background: var(--paper); border-radius: 999px; padding: .25em .75em; font-size: .9rem; font-weight: 700; }
.duo__places .icon { color: var(--orange-deep); width: 1em; height: 1em; }
.duo__card .more-link { margin-top: auto; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* cartes : titre en lien */
.ep-card__title a { text-decoration: none; }
.ep-card__title a:hover { color: var(--orange-deep); }
a.chip { text-decoration: none; display: inline-block; }
.map-pop a { font-weight: 700; color: var(--ink); text-transform: capitalize; }

/* page Les lieux */
.map-block--page .map { height: clamp(420px, 68vh, 720px); }
.map-block--page .places { max-height: calc(clamp(420px, 68vh, 720px) - 2.6rem); }
.places-wrap .small-title { margin-top: 0; }
@media (max-width: 860px) { .map-block--page .places { max-height: 300px; } }

/* page Le projet */
.project__grid--page { align-items: start; }
.project__grid--page aside { position: sticky; top: 100px; }
.prose { font-size: 1.1rem; color: var(--ink-2); max-width: 38em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose .is-lead { font: 700 clamp(1.25rem, 2vw, 1.5rem)/1.4 var(--font-display); color: var(--ink); }
.prose img { border-radius: var(--radius); }
.project__grid--page .entry__content p { white-space: normal; }
@media (max-width: 900px) { .project__grid--page aside { position: static; } }

/* page d'une émission */
.episode__wave { height: 96px; margin: 1.8rem 0; color: var(--ink); max-width: 900px; }
.episode__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.episode__grid .small-title:first-child { margin-top: 0; }
.chapters--card { background: var(--card); border-radius: var(--radius); padding: .4rem .9rem; box-shadow: var(--shadow); }
.chapters--card .icon { opacity: .35; }
.episode__side { background: var(--paper-2); border-radius: var(--radius); padding: 1.4rem; }
.episode__side .small-title:first-child { margin-top: 0; }
.episode__side .voices { color: var(--ink-2); }
.episode__side .chips { margin-bottom: 0; }
.episode__full { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.episode__full summary { cursor: pointer; font-weight: 700; color: var(--orange-deep); }
.episode__full .entry__content { font-size: .98rem; color: var(--ink-2); }
.is-playing .episode__wave .wave__bars rect { animation: bob 1.1s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
@media (max-width: 860px) { .episode__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Carte : plateaux + créations (v0.3)
   ========================================================================== */
.map-tools { margin-bottom: 1rem; }
.map-tools .chips { margin: 0; }
.legend { display: inline-block; width: .8em; height: .8em; border-radius: 50%; vertical-align: -.05em; margin-right: .25em; border: 1.5px solid var(--ink); }
.legend--eps { background: var(--orange); }
.legend--creas { background: var(--ink); }
.chip.is-active .legend { border-color: #fff; }
.map-pin--crea span {
	width: 26px; height: 26px; background: var(--ink); color: var(--orange);
	border: 2px solid var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.map-pop__kind { margin: 0 0 .2rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
.map-pop--crea img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: .6rem; }
.map-pop__place { display: flex; gap: .3em; align-items: center; margin: .2rem 0; font-size: .85rem; color: var(--muted); }
.map-pop__place .icon { width: 1em; height: 1em; }
.map-pop__desc { font-size: .88rem; color: var(--ink-2); margin: .4rem 0 .7rem; }
.btn--small { min-height: 36px; padding: .4em .9em; font-size: .9rem; box-shadow: 0 2px 0 var(--ink); }
.places-wrap { display: flex; flex-direction: column; min-height: 0; }
.places-search { display: flex; align-items: center; gap: .5rem; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 .9rem; margin-bottom: .5rem; }
.places-search:focus-within { border-color: var(--ink); }
.places-search .icon { color: var(--orange-deep); }
.places-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; padding: .55rem 0; outline: none; }
.places-count { font-size: .85rem; font-weight: 700; color: var(--muted); margin: 0 0 .5rem; }
.map-block--page .places { max-height: calc(clamp(420px, 68vh, 720px) - 5.6rem); }
.places__n--crea { background: var(--ink); color: var(--orange); }
.places__empty { padding: 1rem; color: var(--muted); }
.crea-card__place { display: inline-flex; align-items: center; gap: .3em; margin-top: .6rem; font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.crea-card__place:hover { color: var(--orange-deep); }
.crea-card__place .icon { width: 1em; height: 1em; color: var(--orange-deep); }

/* ==========================================================================
   Ticket « Prochain plateau » en deux parties : billet + talon (v0.4)
   La perforation est toujours entre les deux, quelle que soit la hauteur du contenu.
   ========================================================================== */
.ticket {
	background: none; padding: 0; border-radius: 0; box-shadow: none;
	-webkit-mask: none; mask: none;
	filter: drop-shadow(0 1px 0 rgba(27, 23, 20, .06)) drop-shadow(0 14px 22px rgba(80, 50, 10, .22));
}
.ticket::after { content: none; }
.ticket__main, .ticket__stub { position: relative; background: var(--card); }
.ticket__main {
	padding: 1.6rem 1.6rem 1.1rem;
	border-radius: var(--radius) var(--radius) 0 0;
	-webkit-mask: radial-gradient(circle 11px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
	mask: radial-gradient(circle 11px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket__stub {
	padding: 1.3rem 1.6rem 1.4rem;
	border-radius: 0 0 var(--radius) var(--radius);
	-webkit-mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
	mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket__stub::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; border-top: 2px dashed var(--line); }
.ticket__countdown { margin-bottom: 0; }
.ticket__extra { font-size: .95rem; color: var(--ink-2); margin: .2rem 0 .4rem; }
.ticket__note { margin-top: .9rem; }
.ticket.is-live { box-shadow: none; }
.ticket.is-live .ticket__main { background: #fff3ef; }
.ticket.is-live .ticket__label { color: #c42b22; }

/* ==========================================================================
   Navigation sans rechargement (v0.5)
   ========================================================================== */
.nav-progress {
	position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
	background: var(--orange); box-shadow: 0 0 8px rgba(243, 156, 49, .7);
	opacity: 0; transition: width .2s ease, opacity .3s ease;
	pointer-events: none;
}
.nav-progress.is-active { opacity: 1; width: 75%; transition: width 6s cubic-bezier(.1, .8, .2, 1), opacity .1s; }
#main { transition: opacity .18s ease; }
.is-navigating #main { opacity: .55; }
#main:focus { outline: none; }

/* Partenaires cliquables */
.partners__list a { display: inline-flex; align-items: center; gap: .3em; text-decoration: none; color: inherit; background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 100% / 0 3px; transition: background-size .2s, color .2s; }
.partners__list a:hover { color: var(--ink); background-size: 100% 3px; }
.partners__ext { width: .8em; height: .8em; opacity: .45; }
.partners__list a:hover .partners__ext { opacity: 1; color: var(--orange-deep); }

/* Page « Nous écrire » */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__form { max-width: none; background: var(--card); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.contact__form p { white-space: normal; }
.contact__form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact__form textarea,
.contact__form select {
	width: 100%; max-width: 100%; font: inherit; color: var(--ink);
	background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	padding: .7em .9em;
}
.contact__form input:focus, .contact__form textarea:focus, .contact__form select:focus { outline: none; border-color: var(--ink); background: #fff; }
.contact__form label { font-weight: 700; color: var(--ink); }
.contact__form button[type="submit"], .contact__form input[type="submit"] {
	display: inline-flex; align-items: center; min-height: 50px; padding: .6em 1.6em; cursor: pointer;
	border-radius: 999px; border: 2px solid var(--ink); background: var(--orange); color: var(--ink);
	font: 700 1rem var(--font-body); box-shadow: 0 3px 0 var(--ink);
}
.contact__side { background: var(--paper-2); border-radius: var(--radius); padding: 1.5rem; }
.contact__side .small-title:first-child { margin-top: 0; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.contact__list li { display: flex; align-items: center; gap: .5rem; }
.contact__list .icon, .contact__live .icon { color: var(--orange-deep); }
.contact__live { margin: 0; }
.contact__note { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* Bouton « Contact » de l'en-tête */
.site-nav .btn--contact { min-height: 40px; padding: .45em 1em; background: var(--card); box-shadow: 0 3px 0 var(--ink); margin-right: -.6rem; }
.site-nav .btn--contact .icon { color: var(--orange-deep); }
.site-nav .btn--contact.is-current { background: var(--orange-soft); }
@media (max-width: 1080px) and (min-width: 921px) {
	.site-nav { gap: 1rem; }
	.site-nav__list { gap: 1rem; }
}
@media (max-width: 920px) {
	.site-nav .btn--contact { justify-content: center; margin-right: 0; }
}
