/* ============================================================
   Reprise du redesign (biscuiterie.ac-web.net) : topbar, footer,
   polices, largeur de page. Appliqué par-dessus biscuiterie.css.
   ============================================================ */
:root {
  --noir: #0C0C0C; --noir-2: #161616; --noir-3: #202020; --noir-4: #2A2A2A; --bleu-pale: #7AB8E8; --vert-clair: #6DC49A; --gap: 1.5px;
  --jaune: #E8C84A; --jaune-clair: #F2D96B;
  --blanc: #F0EDE6; --gris: #9C9890; --gris-clair: #C8C4BC;
  --f-titre: 'Bebas Neue', sans-serif;
  --f-serif: 'DM Serif Display', Georgia, serif;
  --f-corps: 'DM Sans', sans-serif;
  --max: 1200px;
  --pad: clamp(1.5rem, 5vw, 4rem);
  --nav-h: 78px;
}

/* Espace sous la topbar fixe */
body { padding-top: var(--nav-h); }

/* Polices : corps + titres (reprise redesign) */
body.custom-font-enabled { font-family: var(--f-corps); }
h1, h2, .sstithome, .entry-title, #titcolfoot { font-family: var(--f-titre); letter-spacing: .03em; }

/* ── TOPBAR ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100050;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .35s, border-color .35s;
}
.nav.scrolled {
  background: rgba(12,12,12,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232,200,74,.1);
}
.nav { align-items: center; }
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 38px; width: auto; display: block; transform: translateY(3px); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links li { display: flex; align-items: center; }
/* Cible de scroll (CTA bandeau saison) : compense la topbar fixe */
#proghome { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }
.nav-links a {
  color: var(--gris-clair); text-decoration: none;
  font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--jaune); }
.nav-links .nav-btn {
  background: var(--jaune); color: var(--noir) !important;
  padding: .55rem 1.2rem; border-radius: 2px; font-weight: 600 !important;
  transition: background .2s;
}
.nav-links .nav-btn:hover { background: var(--jaune-clair); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-burger span { width: 24px; height: 2px; background: var(--blanc); display: block; transition: all .3s; }

.mobile-overlay {
  position: fixed; inset: 0; background: var(--noir); z-index: 100060;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mobile-overlay.open { transform: translateX(0); }
.mobile-overlay a { font-family: var(--f-titre); font-size: 2.8rem; letter-spacing: .04em; color: var(--blanc); text-decoration: none; transition: color .2s; }
.mobile-overlay a:hover { color: var(--jaune); }
.mobile-close { position: absolute; top: 1.5rem; right: var(--pad); background: none; border: none; cursor: pointer; color: var(--gris-clair); font-size: 2rem; line-height: 1; }

/* ── LARGEUR DE PAGE ── */
#conthome, .entry-content > #proghome { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
.footer { background: var(--noir); border-top: 1px solid rgba(232,200,74,.07); padding: 3rem var(--pad) 2rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--noir-4); }
.footer-logo { font-family: var(--f-titre); font-size: 2rem; letter-spacing: .04em; color: var(--blanc); margin-bottom: .9rem; }
.footer-logo em { color: var(--jaune); font-style: normal; }
.footer-desc { font-size: .86rem; color: var(--gris); line-height: 1.7; margin-bottom: 1.25rem; }
.footer-addr { font-size: .82rem; color: var(--gris); line-height: 1.75; font-style: normal; }
.footer-addr strong { color: var(--gris-clair); font-weight: 500; display: block; }
.footer-col-title { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--jaune); margin-bottom: 1.1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin: 0; padding: 0; }
.footer-links a { font-size: .86rem; color: var(--gris); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--blanc); }
.footer-socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social-btn { width: 34px; height: 34px; border: 1px solid var(--noir-4); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: var(--gris); text-decoration: none; font-size: 1.1rem; font-weight: 700; transition: all .2s; }
.social-btn:hover { border-color: var(--jaune); color: var(--jaune); }
.footer-inner-3 { grid-template-columns: 2fr 1fr 1fr; }
.footer-bottom { max-width: var(--max); margin: 1.5rem auto 0; display: flex; justify-content: space-between; font-size: .73rem; color: var(--gris); flex-wrap: wrap; gap: .75rem; }
.footer-bottom-right { display: flex; align-items: center; gap: 1.25rem; }
.footer-credit span[aria-hidden] { color: var(--jaune); }
.footer-bottom a { color: var(--gris); text-decoration: none; }
.footer-bottom a:hover { color: var(--blanc); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ===== Reprise redesign : section saison + bloc vidéo (home) ===== */
.section-label { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--jaune); margin-bottom: .75rem; }
.section-title { font-family: var(--f-titre); font-size: clamp(2.4rem,5vw,4rem); letter-spacing: .02em; color: var(--blanc); margin: .5rem 0 1.4rem; line-height: 1.02; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.7rem; font-family: var(--f-corps); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: all .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--jaune); color: var(--noir); }
.btn-primary:hover { background: var(--jaune-clair); transform: translateY(-1px); }

.saison-section { padding: clamp(3.5rem,8vw,6rem) var(--pad); background: var(--noir); }
.saison-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.saison-poster { aspect-ratio: 3/4; background: var(--noir-3); position: relative; overflow: hidden; }
.saison-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.saison-badge { position: absolute; top: 1.25rem; left: 1.25rem; background: var(--jaune); color: var(--noir); padding: .3rem .7rem; font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.saison-text { font-size: 1rem; color: var(--gris-clair); line-height: 1.78; margin-bottom: 1.75rem; }
.saison-hl { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 2.25rem; }
.saison-hl-item { display: flex; align-items: center; gap: .9rem; font-size: .88rem; color: var(--gris-clair); }
.saison-hl-item::before { content: ''; width: 7px; height: 7px; background: var(--jaune); border-radius: 50%; flex-shrink: 0; }

.video-section { background: var(--noir); padding: clamp(3.5rem,7vw,5.5rem) var(--pad); }
.video-inner { max-width: var(--max); margin: 0 auto; }
.video-wrap { position: relative; margin-top: 2rem; cursor: pointer; overflow: hidden; aspect-ratio: 16/9; border-radius: 5px; }
.video-thumb { position: absolute; inset: 0; background: var(--noir-3); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-thumb-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .8; }
.play-btn { position: relative; z-index: 2; width: 80px; height: 80px; border-radius: 50%; background: var(--jaune); display: flex; align-items: center; justify-content: center; transition: transform .3s, background .2s; }
.video-wrap:hover .play-btn { transform: scale(1.08); background: var(--jaune-clair); }
.play-btn svg { margin-left: 4px; }
.video-caption { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 1.5rem 1.75rem; color: var(--blanc); font-family: var(--f-titre); font-size: 1.6rem; letter-spacing: .03em; line-height: 1; }
.video-caption small { display: block; font-family: var(--f-corps); font-size: .8rem; font-weight: 400; letter-spacing: 0; color: var(--gris-clair); margin-top: .45rem; text-transform: none; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

@media (max-width: 768px) { .saison-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* ── Largeur de page alignée sur la topbar/footer (1200px) ──
   Les pages event gardent leur pleine largeur via event.css (chargé après). */
#main.wrapper { max-width: var(--max); margin-left: auto; margin-right: auto; }
.recapevt { max-width: var(--max); }
header.entry-header { max-width: var(--max); }

/* ── Documentaire : fond sombre (override de l'alternance .home) ── */
.home section.video-section, .video-section { background: var(--noir); color: var(--blanc); }
.home section.video-section .section-title { color: var(--blanc); }

/* ===== Bloc header de page (reprise maquette) ===== */
.page-header { padding: 7rem var(--pad) clamp(2.5rem,5vw,4rem); background: var(--noir-2); border-bottom: 1px solid rgba(232,200,74,.07); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: linear-gradient(to bottom, transparent, var(--jaune), transparent); opacity: .4; }
/* Fleur en filigrane, débordant à droite de la barre de titre */
.page-header::after { content: ''; position: absolute; right: -3vw; top: 50%; transform: translateY(-50%); width: clamp(220px,26vw,360px); height: clamp(220px,26vw,360px); background: url('/img/favicon/favicon.svg') no-repeat center / contain; filter: brightness(0) invert(1); opacity: .07; pointer-events: none; }
.page-header-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.page-header-title { font-family: var(--f-titre); font-size: clamp(3rem,8vw,6.5rem); letter-spacing: .02em; line-height: .9; color: var(--blanc); margin: 0; }
.page-header-meta { font-size: .9rem; color: var(--gris); max-width: 360px; }
.page-header-meta strong { color: var(--jaune); font-weight: 500; }

/* ===== Page Pro (reprise maquette) ===== */
.pro-hero { padding: 7rem var(--pad) clamp(3rem,6vw,5rem); }
.pro-hero-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.pro-title { font-family: var(--f-titre); font-size: clamp(3rem,7vw,5.5rem); line-height: .9; letter-spacing: .02em; color: var(--blanc); margin-bottom: 1rem; }
.pro-title span { color: var(--gris); }
.pro-sub { font-size: .98rem; color: var(--gris-clair); line-height: 1.72; }
.pro-contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.pro-contacts-label { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--jaune); margin-bottom: 1.25rem; }
.pro-contact-card { display: flex; flex-direction: column; background: var(--noir-2); border: 1px solid var(--noir-4); padding: 1rem .9rem; }
.pro-contact-card .btn-msg { margin-top: auto; font-size: .58rem; padding: .35rem .5rem; }
.pro-contact-role { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin-bottom: .3rem; line-height: 1.25; }
@media (max-width: 640px) { .pro-contacts { grid-template-columns: 1fr; } }
.pro-contact-name { font-weight: 600; color: var(--blanc); margin-bottom: .2rem; }
.pro-contact-email { font-size: .86rem; color: var(--jaune); text-decoration: none; }
.ressources-section { background: var(--noir-2); padding: clamp(3rem,6vw,5rem) var(--pad); }
.ressources-inner { max-width: var(--max); margin: 0 auto; }
.ressources-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5px; margin-top: 2.5rem; }
.ressource { background: var(--noir-3); padding: 2rem; display: flex; flex-direction: column; gap: .9rem; transition: background .2s; }
.ressource:hover { background: var(--noir-4); }
.res-type { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .5rem; font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: 1px; width: fit-content; }
.res-pdf { background: rgba(192,48,48,.15); color: #E88080; border: 1px solid rgba(192,48,48,.2); }
.res-zip { background: rgba(232,200,74,.12); color: var(--jaune); border: 1px solid rgba(232,200,74,.18); }
.res-doc { background: rgba(74,144,212,.12); color: var(--bleu-pale); border: 1px solid rgba(74,144,212,.18); }
.res-title { font-family: var(--f-titre); font-size: 1.35rem; letter-spacing: .04em; color: var(--blanc); line-height: 1.1; }
.res-desc { font-size: .84rem; color: var(--gris); line-height: 1.65; flex: 1; }
.res-meta { font-size: .7rem; color: var(--gris); display: flex; gap: 1rem; }
.dl-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem 1rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--noir-4); color: var(--gris-clair); border: none; cursor: pointer; border-radius: 2px; text-decoration: none; transition: all .2s; }
.dl-btn:hover { background: var(--jaune); color: var(--noir); }
@media (max-width: 860px) { .pro-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; } .ressources-grid { grid-template-columns: 1fr; } }

/* ===== Mentions légales (reprise maquette) ===== */
.legal-section { padding: clamp(2.5rem,5vw,4rem) var(--pad) 5rem; }
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal-inner h2 { font-family: var(--f-titre); font-size: 1.7rem; letter-spacing: .03em; color: var(--jaune); margin: 2.5rem 0 .8rem; }
.legal-inner h2:first-child { margin-top: 0; }
.legal-inner p, .legal-inner address { font-size: .92rem; color: var(--gris-clair); line-height: 1.8; font-style: normal; margin-bottom: .6rem; }
.legal-inner a { color: var(--jaune); }

/* ===== En-tête des pages de contenu (adaptation maquette) ===== */
/* .entry-title sur pages event est géré par event.css (#headerevt h1) — non impacté ici */
.entry-header { position: relative; padding: .5rem 0 1.4rem 1.6rem; margin: 0 0 2.5rem; border-bottom: 1px solid var(--noir-4); }
.entry-header::before { content: ''; position: absolute; left: 0; top: .4rem; bottom: 1rem; width: 3px; background: linear-gradient(to bottom, var(--jaune), transparent); }
.entry-header .entry-title { font-family: var(--f-titre); font-size: clamp(2.6rem, 6vw, 5rem); line-height: .92; letter-spacing: .02em; color: var(--blanc); margin: 0; }

/* ===== Newsletter (reprise maquette) ===== */
.nl-section { background: var(--noir); border-top: 1px solid rgba(232,200,74,.08); padding: clamp(3.5rem,7vw,5.5rem) var(--pad); }
.nl-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.nl-text .section-title { margin: .5rem 0 1rem; }
.nl-desc { font-size: .98rem; color: var(--gris-clair); line-height: 1.7; }
.nl-form { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.nl-input { flex: 1; min-width: 220px; background: var(--noir); border: 1px solid var(--noir-4); color: var(--blanc); padding: .85rem 1rem; font-family: var(--f-corps); font-size: .95rem; border-radius: 2px; }
.nl-input::placeholder { color: var(--gris); }
.nl-input:focus { border-color: var(--jaune); outline: none; }
.nl-note { font-size: .72rem; color: var(--gris); margin-top: .75rem; }
.nl-socials { margin-top: 1.6rem; }
.nl-form-title { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin: 0 0 .8rem; }
.nl-msg { font-size: .92rem; color: var(--jaune); margin-top: 1rem; font-weight: 600; }
.nl-sink { display: none; }
@media (max-width: 768px) { .nl-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== Galerie vidéo EAC (click-to-play) ===== */
/* NB: scopé à .eac-vid — un `.video-thumb` non scopé écrasait le `.video-thumb` absolu de la home (docu réduit à 80px). */
.eac-vid .video-thumb { position: relative; }
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.eac-section { max-width: var(--max); margin: 0 auto; padding: clamp(2rem,4vw,3.5rem) var(--pad); }
.eac-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; margin-top: 1.5rem; }
.eac-vid { cursor: pointer; background: var(--noir-3); display: flex; flex-direction: column; border-radius: 5px; overflow: hidden; }
.eac-vid .video-thumb { aspect-ratio: 16/9; background: var(--noir-3); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.eac-vid .play-btn { position: relative; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: var(--jaune); display: flex; align-items: center; justify-content: center; transition: transform .25s, background .2s; }
.eac-vid:hover .play-btn { transform: scale(1.08); background: var(--jaune-clair); }
.eac-vid-title { padding: .85rem 1rem; font-size: .85rem; color: var(--gris-clair); line-height: 1.4; }
.eac-vid:hover .eac-vid-title { color: var(--blanc); }
@media (max-width: 860px) { .eac-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .eac-gallery { grid-template-columns: 1fr; } }

/* ── Page contact ── */
.contact-section { padding: clamp(2.5rem,5vw,4.5rem) var(--pad); }
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form label { display: flex; flex-direction: column; gap: .4rem; }
.contact-form label > span { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; box-sizing: border-box; padding: .85rem 1rem;
  background: var(--noir-2); border: 1px solid var(--noir-4); border-radius: 2px;
  color: var(--blanc); font-family: var(--f-corps); font-size: .95rem;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--jaune); }
.contact-form .btn-primary { align-self: flex-start; margin-top: .4rem; }
.contact-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.contact-alert { padding: 1rem 1.2rem; border-radius: 3px; margin-bottom: 1.5rem; font-size: .92rem; }
.contact-ok { background: rgba(80,180,100,.12); border: 1px solid rgba(80,180,100,.35); color: #9fe0ad; }
.contact-err { background: rgba(219,77,77,.12); border: 1px solid rgba(219,77,77,.35); color: #f0a3a3; }
@media (max-width: 560px) { .contact-row { grid-template-columns: 1fr; } }

/* Bouton "Envoyer un message" (remplace les emails en clair) */
.btn-msg { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; font-family: var(--f-corps); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; background: var(--jaune); color: var(--noir) !important; text-decoration: none; transition: all .2s; margin-top: .35rem; }
.btn-msg:hover { background: var(--jaune-clair); transform: translateY(-1px); }
.btn-msg::before { content: "✉"; font-size: .9em; }

/* Infos pratiques : intitulés de postes (équipe) plus petits */
.team-role { font-size: .82em; opacity: .82; }

/* Évite le micro-scroll horizontal sur desktop (éléments en calc(100% + Npx)) */
html, body { overflow-x: clip; }
/* Titre de page : réduit sur petit écran (ex. "Pour les musicien·nes" sur 1 ligne) */
@media (max-width: 560px) {
  .entry-title { font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.05; }
}

/* Mini-cartes jams futures (page musiciens) */
.jam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: .8rem; }
.jam-card { display: flex; align-items: center; gap: .9rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 4px; padding: .7rem; text-decoration: none; transition: all .2s; }
.jam-card:hover { background: rgba(232,200,74,.14); border-color: var(--jaune); }
.jam-card-img { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 3px; background-size: cover; background-position: center; }
.jam-card-info { display: flex; flex-direction: column; gap: .2rem; }
.jam-card-date { color: var(--jaune); font-weight: 600; font-size: .9rem; }
.jam-card-place { color: #fff; opacity: .82; font-size: .82rem; }
@media (max-width: 560px) { .jam-grid { grid-template-columns: 1fr; } }

/* Slideshow Jamlist (page musiciens) */
.jam-slideshow { position: relative; width: 100%; max-width: 560px; aspect-ratio: 4/3; overflow: hidden; border-radius: 5px; margin: 1.3rem 0; }
.jam-slideshow .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.jam-slideshow .slide.is-active { opacity: 1; }
/* Slideshow générique dans les sections prose */
[data-slideshow].prose-slideshow { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 5px; margin: 1.8rem 0; background: var(--noir-3); }
.prose-slideshow .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.prose-slideshow .slide.is-active { opacity: 1; }
/* Variante presse : coupures 3:2 affichées en entier (pas de recadrage) */
[data-slideshow].prose-slideshow--wide { aspect-ratio: 3 / 2; background: var(--noir-2); }
.prose-slideshow--wide .slide { object-fit: contain; }

/* Slideshow : flèches de navigation (discrètes, au hover) */
[data-slideshow] { position: relative; }
.sw-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 1.05rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease, background .2s; backdrop-filter: blur(2px); }
[data-slideshow]:hover .sw-nav { opacity: .65; }
.sw-nav:hover { opacity: 1; background: rgba(0,0,0,.6); }
.sw-nav-prev { left: 10px; }
.sw-nav-next { right: 10px; }
@media (max-width: 600px) { .sw-nav { opacity: .5; width: 34px; height: 34px; } }

/* Slideshow : modale grand format */
.sw-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.sw-modal.is-open { display: flex; animation: swFade .2s ease; }
@keyframes swFade { from { opacity: 0; } to { opacity: 1; } }
.sw-modal-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; box-shadow: 0 12px 48px rgba(0,0,0,.6); }
.sw-close { position: absolute; top: 16px; right: 24px; background: none; border: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .8; z-index: 2; }
.sw-close:hover { opacity: 1; }
.sw-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: none; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.sw-arrow:hover { background: rgba(255,255,255,.25); }
.sw-prev { left: 2vw; }
.sw-next { right: 2vw; }
@media (max-width: 600px) { .sw-arrow { width: 42px; height: 42px; font-size: 1.15rem; } }

/* Logo Jamlist (paragraphe page musiciens) */
.jamlist-logo { height: 30px !important; width: auto !important; max-width: 150px; display: block; margin: 2.2rem 0 .5rem; }
.jam-grid + p .jamlist-logo, .jam-grid ~ p .jamlist-logo { margin-top: 2.2rem; }

/* ── Pages de contenu unifiées (Le projet, etc.) ── */
.prose-section { padding: clamp(2.5rem,5vw,4.5rem) var(--pad); }
.prose-section.prose-alt { background: var(--noir-2); }
.prose-inner { max-width: 820px; margin: 0 auto; }
.prose-inner > p { font-size: 1rem; line-height: 1.85; color: var(--gris-clair); margin: 0 0 1.3rem; }
.prose-inner > p strong { color: var(--blanc); }
.prose-inner .section-title { margin-bottom: 1.6rem; }
.prose-img { width: 100%; height: auto; border-radius: 5px; margin: 1.8rem 0; display: block; }
.artists-list { font-style: italic; color: var(--gris); line-height: 2.1; font-size: .96rem; }

/* Rangée de boutons outline (Instagram, charte…) */
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; }
.btn-line { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border: 1px solid var(--jaune); background: transparent; color: var(--jaune); border-radius: 4px; text-decoration: none; font-weight: 600; font-size: .8rem; font-family: inherit; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; transition: all .2s; }
.btn-line:hover { background: var(--jaune); color: var(--noir); transform: translateY(-1px); }

.prose-wide { max-width: 1040px; }

/* Cartes équipe (infos pratiques) — 5 sur une ligne en desktop */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; margin-top: 1.8rem; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; background: var(--noir-3); border: 1px solid var(--noir-4); border-radius: 10px; padding: 1.25rem .8rem 1.05rem; transition: border-color .2s, transform .2s; }
.team-card:hover { border-color: var(--jaune); transform: translateY(-3px); }
.team-card .team-name { font-size: .92rem; font-weight: 600; color: var(--blanc); line-height: 1.25; }
.team-card .team-role { font-size: .72rem; color: var(--gris); line-height: 1.35; min-height: 2.55em; }
.team-card .btn-msg { margin-top: auto; font-size: .58rem; padding: .38rem .55rem; }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .team-grid { grid-template-columns: 1fr; } }

/* Bouton « Voir plus » home : centré, flèche bas */
#showAllEvents.btnyout { float: none; display: flex; align-items: center; gap: .5rem; width: fit-content; margin: 1.8rem auto 0; border-radius: 4px; padding: 9px 20px; }

/* Label coin haut-droit des cartes event (gratuit, à Brasles…) : un peu plus grand */
.recapevt .showtag { font-size: .92rem; padding: 9px 14px; }

/* Chargement des visuels de grille : placeholder sombre + fondu (évite le flash blanc) */
.recapevt .unevt #imgevt { background: var(--noir-3); }
.recapevt .unevt #imgevt img { opacity: 0; transition: opacity .5s ease, transform .4s ease, filter .4s ease; }
.recapevt .unevt #imgevt img.img-loaded { opacity: 1; }

/* Cartes event : équilibrage vertical (date remontée vers le visuel, plus d'air avant le titre) */
.recapevt .unevt #contevt { padding: 9px 15px 15px; }
.recapevt .unevt #titevt { margin-top: 14px; }
/* Sous-titre (« au Bidule », « + Groupe »…) : à la ligne + un peu d'interligne au-dessus
   (taille gérée inline : 70% normal, 80% première partie) */
.recapevt .unevt #titevt span { display: block; margin-top: .4em; }

/* Agenda : apparition au scroll en cascade par ligne (3 colonnes en desktop) */
.recapevt .unevt[data-aos]:nth-child(3n+2) { transition-delay: .08s; }
.recapevt .unevt[data-aos]:nth-child(3n+3) { transition-delay: .16s; }
@media (max-width: 900px) {
  .recapevt .unevt[data-aos]:nth-child(3n+2), .recapevt .unevt[data-aos]:nth-child(3n+3) { transition-delay: 0s; }
  .recapevt .unevt[data-aos]:nth-child(2n) { transition-delay: .08s; }
}

/* Cartes événement (agenda / programmation) : léger arrondi.
   NB: l'overflow:hidden est porté par #imgevt (pas .unevt) pour éviter un
   hairline blanc de la carte autour du visuel au zoom par défaut. */
.recapevt .unevt { border-radius: 5px; }
.recapevt .unevt #imgevt, .recapevt .unevt div#imgevt { border-radius: 5px 5px 0 0; overflow: hidden; }

/* ===== Bandeau saison (DA nouvelle saison, fond couleur animé) ===== */
@keyframes saisonColor {
  0%, 100% { background-color: #F6CE00; }
  25% { background-color: #7AB829; }
  50% { background-color: #00AFE8; }
  75% { background-color: #EA4D80; }
}
@keyframes saisonColor2 { /* décalé de 2 crans : jamais la même couleur que le fond */
  0%, 100% { background-color: #00AFE8; }
  25% { background-color: #EA4D80; }
  50% { background-color: #F6CE00; }
  75% { background-color: #7AB829; }
}
/* Hero slideshow (home) */
.hero-slideshow { position: relative; width: 100%; aspect-ratio: 1920 / 680; max-height: 520px; overflow: hidden; background: var(--noir); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; text-decoration: none; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-pqlm img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s, background .2s; backdrop-filter: blur(2px); }
.hero-slideshow:hover .hero-nav { opacity: .7; }
.hero-nav:hover { opacity: 1; background: rgba(0,0,0,.6); }
.hero-prev { left: 14px; } .hero-next { right: 14px; }
/* Bandeau saison (fond couleur animé + accent soleil/escargot) */
@keyframes saisonColor3 { /* décalé de 1 cran : 3e teinte, toujours différente du fond et de l'accent 1 */
  0%, 100% { background-color: #7AB829; }
  25% { background-color: #00AFE8; }
  50% { background-color: #EA4D80; }
  75% { background-color: #F6CE00; }
}
.saison-banner { display: block; width: 100%; aspect-ratio: 1920 / 560; max-height: 430px; position: relative; overflow: hidden; text-decoration: none; animation: saisonColor 12s linear infinite; }
/* Filigrane fleur discret à gauche (noir pour fond clair) */
.saison-a::before { content: ''; position: absolute; left: -9vw; top: 50%; transform: translateY(-50%); width: clamp(300px,34vw,480px); height: clamp(300px,34vw,480px); background: url('/img/favicon/favicon.svg') center / contain no-repeat; filter: brightness(0); opacity: .05; pointer-events: none; z-index: 0; }
.saison-a .sb-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem,6vw,5rem); padding: 0 var(--pad); }
.saison-a .sb-text { color: #0c0c0c; flex: 0 1 auto; }
.saison-a .sb-kicker { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.saison-a .sb-title { font-family: var(--f-titre); font-size: clamp(2.4rem,5vw,4.4rem); line-height: .92; letter-spacing: .02em; margin: .4rem 0 1.2rem; }
.saison-a .sb-cta { display: inline-block; background: #0c0c0c; color: #fff; padding: .7rem 1.3rem; border-radius: 4px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.saison-illu-wrap { position: relative; height: 78%; flex: 0 0 auto; }
.saison-illu-wrap .saison-illu { display: block; height: 100%; width: auto; position: relative; z-index: 1; }
.saison-accent { position: absolute; inset: 0; z-index: 0; -webkit-mask: url('/img/prog/affiche-accent-mask.png') center / 100% 100% no-repeat; mask: url('/img/prog/affiche-accent-mask.png') center / 100% 100% no-repeat; animation: saisonColor2 12s linear infinite; }
.saison-accent2 { position: absolute; inset: 0; z-index: 0; -webkit-mask: url('/img/prog/affiche-accent2-mask.png') center / 100% 100% no-repeat; mask: url('/img/prog/affiche-accent2-mask.png') center / 100% 100% no-repeat; animation: saisonColor3 12s linear infinite; }
@media (max-width: 760px) {
  /* Bandeau saison : on garde la mise en page desktop (titre+bouton à gauche, illu à droite), en réduit */
  .saison-banner { aspect-ratio: auto; height: clamp(150px, 46vw, 220px); max-height: none; }
  .saison-a::before { display: none; }
  .saison-a .sb-inner { gap: 4vw; padding: 0 4vw; justify-content: center; }
  .saison-a .sb-text { display: block; }
  .saison-a .sb-kicker { font-size: clamp(.42rem, 1.9vw, .6rem); letter-spacing: .1em; }
  .saison-a .sb-title { font-size: clamp(1.05rem, 5vw, 1.9rem); margin: .2rem 0 .5rem; }
  .saison-a .sb-cta { font-size: clamp(.5rem, 2.1vw, .68rem); padding: .4rem .7rem; }
  .saison-illu-wrap { height: 82%; }
}

/* ===== Section U1 Stud (/studios) ===== */
.nav-logo--u1 img { height: 38px; }
.u1-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.u1-list li { position: relative; padding-left: 1.4rem; margin: .5rem 0; color: var(--gris-clair); line-height: 1.6; }
.u1-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--jaune); border-radius: 50%; }
.u1-list--cols { columns: 2; column-gap: 2.2rem; }
.u1-list--cols li { break-inside: avoid; }
@media (max-width: 560px) { .u1-list--cols { columns: 1; } }
.u1-hours { list-style: none; padding: 0; margin: 1.4rem 0; max-width: 380px; }
.u1-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--noir-4); }
.u1-hours li span:first-child { color: var(--blanc); font-weight: 500; }
.u1-hours li span:last-child { color: var(--gris); }
/* Listes de références (orgs, groupes) */
.u1-refs { list-style: none; padding: 0; margin: 1.4rem 0; columns: 3; column-gap: 2rem; }
.u1-refs li { break-inside: avoid; padding: .26rem 0; color: var(--gris-clair); line-height: 1.4; font-size: .9rem; }
.u1-refs--tight li { font-size: .82rem; padding: .2rem 0; }
@media (max-width: 780px) { .u1-refs { columns: 2; } }
@media (max-width: 480px) { .u1-refs { columns: 1; } }
/* Grilles tarifaires */
.u1-tarifs { list-style: none; padding: 0; margin: 1.1rem 0; max-width: 540px; }
.u1-tarifs li { display: flex; justify-content: space-between; gap: 1.2rem; padding: .6rem 0; border-bottom: 1px solid var(--noir-4); }
.u1-tarifs li span:first-child { color: var(--gris-clair); }
.u1-tarifs li span:last-child { color: var(--jaune); font-weight: 600; white-space: nowrap; }

/* Billetterie : dépliage/pliage animé du widget */
.billet-collapse { max-height: 0; overflow: hidden; transition: max-height .55s ease; }
.billet-collapse.open { max-height: 1400px; }

/* Billetterie embarquée (widget Billetweb export.js) */
.billetweb-embed { width: 100%; margin: 1.6rem 0; }
.billetweb-embed iframe { width: 100%; border: 0; border-radius: 6px; background: #fff; display: block; }
/* Sous-titre de section (h3) dans les blocs prose */
.prose-h3 { font-family: var(--f-titre); font-size: clamp(1.4rem,3vw,1.9rem); color: var(--blanc); letter-spacing: .02em; line-height: 1.1; margin: 2.4rem 0 .7rem; }
.prose-inner > .prose-h3:first-of-type { margin-top: 0; }

/* Formulaire de contact intégré (infos pratiques) : largeur alignée sur la grille de cartes */
.contact-embed { max-width: 100%; margin: 2.8rem 0 0; scroll-margin-top: 90px; }

/* Agenda / programmation : resserre l'espace entre le bloc titre et le sous-titre « À venir » */
.page-header + #page { margin-top: -1.8rem; }

/* Accès (Nous trouver) */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 1.6rem 0; }
.access-grid > div { background: var(--noir-2); border: 1px solid var(--noir-4); border-radius: 6px; padding: 1.1rem 1.2rem; font-size: .92rem; line-height: 1.6; color: var(--gris-clair); }
.access-grid strong { display: block; margin-bottom: .4rem; color: var(--jaune); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 600px) { .access-grid { grid-template-columns: 1fr; } }

/* Marqueur carte : fleur dans un rond blanc */
.map-marker { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.map-marker img { width: 24px; height: 24px; display: block; }

/* Grille photos artistes ("Passé·es par chez nous") */
.artists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: .7rem; margin-top: 1.6rem; }
.artist { margin: 0; position: relative; border-radius: 5px; overflow: hidden; aspect-ratio: 1; background: var(--noir-3); }
.artist img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.35); transition: filter .35s ease, transform .35s ease; }
.artist:hover img { filter: none; transform: scale(1.06); }
.artist figcaption { position: absolute; inset: auto 0 0 0; padding: 1.2rem .4rem .4rem; font-size: .66rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.85)); text-align: center; opacity: 0; transition: opacity .3s ease; }
.artist:hover figcaption { opacity: 1; }
/* Logo U1 Stud (section studios) */
.u1stud-logo { height: 46px; width: auto; display: block; margin: 0 0 1.2rem; }
.hf-logo { height: 40px; width: auto; max-width: 170px; display: block; margin: 0 0 1.2rem; filter: invert(1); }
.u1stud-logo--title { height: 38px; margin: 0 0 1rem; }

/* Transition de page : fondu d'entrée + barre de chargement */
body { opacity: 0; animation: pageFadeIn .45s ease forwards; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
#page-loader { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--jaune); z-index: 99999; opacity: 0; transition: width .35s ease, opacity .35s ease; box-shadow: 0 0 10px var(--jaune); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body { opacity: 1; animation: none; } }

/* Bandeau de chiffres clés */
.stats-band { background: var(--noir-2); padding: clamp(2rem,4vw,3rem) var(--pad); }
.stats-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-item { display: flex; flex-direction: column; gap: .3rem; }
.stat-num { font-family: var(--f-titre); font-size: clamp(2.2rem,5vw,3.4rem); line-height: 1; color: var(--jaune); }
.stat-lbl { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
@media (max-width: 620px){ .stats-inner { grid-template-columns: repeat(2,1fr); gap: 1.8rem 1rem; } }
/* Bandeau partenaires */
.partners-band { padding: clamp(2rem,4vw,3.2rem) var(--pad); text-align: center; }
.partners-band img { max-width: 1000px; width: 100%; height: auto; }
/* Encart "valeur" (parité, etc.) */
.callout { border-left: 3px solid var(--jaune); padding: .2rem 0 .2rem 1.2rem; margin: 1.8rem 0; font-size: 1.05rem; color: var(--blanc); line-height: 1.6; font-style: italic; }
