/* Théâtre Alsacien de Schiltigheim — feuille de style du site public */

:root {
  --ink: #1C1B1A; --text-2: #3D3B38; --muted: #5B5853; --faint: #8A8681;
  --line: #ECEAE7; --line-2: #E6E3DF; --line-3: #D9D6D2;
  --soft: #F6F5F3; --white: #FFFFFF;
  --red: #CD1626; --red-hover: #A3101D; --red-dark: #861212; --red-link: #B5121F; --pink: #FBE9EA;
  --ok-bg: #EAF5EE; --ok: #1E5B37; --err-bg: #FDECEC; --err: #8A1414;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px; --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
main { overflow-x: clip; display: block; }
a { color: var(--red-link); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid rgba(205, 22, 38, .45); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Retours à la ligne : titres équilibrés, paragraphes sans mot isolé en dernière ligne,
   numéros de téléphone et adresses e-mail jamais coupés. */
h1, h2, h3, h4, .h-hero, .h-page, .h-section, .h-sub, .h-card { text-wrap: balance; }
p, li, dd, dt, blockquote, figcaption, label, summary { text-wrap: pretty; }
a[href^="tel:"], a[href^="mailto:"], .nowrap { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Mise en page ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-top { padding-top: 56px; }
.bg-soft { background: var(--soft); }
.border-top { border-top: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.row.center { align-items: center; }
.row.top { align-items: flex-start; }
.grow { flex: 1 1 480px; min-width: 0; }
.narrow { max-width: 760px; }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.mt-0 { margin-top: 0; }

/* ---------- Typographie ---------- */
.display, h1, h2, .h-card { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
h1, h2, h3 { margin: 0; }
.h-hero { font-size: clamp(96px, 13vw, 176px); line-height: .85; color: var(--red); }
.h-page { font-size: clamp(56px, 8vw, 88px); line-height: .95; }
.h-section { font-size: 56px; line-height: 1; }
.h-sub { font-size: 44px; line-height: 1; }
.h-card { font-size: 28px; line-height: 1.05; }
.lead { font-size: 20px; color: var(--muted); max-width: 62ch; margin: 12px 0 0; }
.big-text p { font-size: 19px; margin: 0 0 16px; }
.big-text p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--pink); color: var(--red-dark); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow.grey { background: var(--soft); color: var(--text-2); }
.kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red-dark); }
.pill { padding: 8px 14px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 500; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs { padding-top: 24px; font-size: 15px; color: var(--muted); }

/* ---------- Liens et boutons ---------- */
.lk { color: var(--red-link); text-decoration: none; font-weight: 600; }
.lk:hover { color: var(--red-dark); text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); color: #fff; }
.btn-out { background: #fff; color: var(--ink); border-color: var(--line-3); }
.btn-out:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--red-dark); }
.btn-white:hover { background: var(--pink); color: var(--red-dark); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: block; line-height: 0; }
.logo img { height: 58px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(18px, 1.8vw, 26px); font-weight: 500; font-size: 16px; }
.nav-a { color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-a:hover { color: var(--red-link); }
.nav-a.is-active { color: var(--red-link); border-bottom-color: var(--red); }
.burger { display: none; padding: 0 16px; }
@media (max-width: 1240px) {
  .burger { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0 16px; }
  .site-header.open .nav { display: flex; }
  .nav .btn { margin-top: 8px; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); color: var(--text-2); font-size: 16px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--red-link); text-decoration: underline; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 36px 56px; padding-top: 56px; padding-bottom: 32px; }
.foot-grid > * { flex: 1 1 180px; min-width: 0; }
.foot-grid > :first-child { flex-basis: 370px; }
.foot-title { margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-bottom { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #E2DFDA; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot-bottom span { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.link-btn:hover { color: var(--red-link); text-decoration: underline; }

/* ---------- Accueil : à l'affiche ---------- */
.hero { padding-top: 56px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-poster { flex: 0 1 400px; min-width: 260px; }
.poster { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 20px 50px rgba(28, 27, 26, .18); }
.hero-sub { margin: 20px 0 0; font-size: 23px; line-height: 1.4; font-weight: 500; max-width: 26ch; }
.hero-credits { margin: 8px 0 0; font-size: 16px; color: var(--muted); }
.facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; font-weight: 600; }
.facts span { display: inline-flex; align-items: center; gap: 10px; }
.hero .btns { margin-top: 32px; }

.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.date-chip { display: block; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.date-chip:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(205, 22, 38, .12); color: var(--ink); }
.date-chip b { display: block; font-size: 15px; font-weight: 600; }
.date-chip .t { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--red); }
.date-chip .r { display: block; font-size: 13px; font-weight: 600; color: var(--red-dark); }
.date-chip.full { opacity: .55; pointer-events: none; }
.tarif-bar { margin-top: 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--soft); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; }
.tarif-bar .lk { margin-left: auto; }

.aside-card { flex: 1 1 380px; min-width: 0; padding: 28px; border-radius: 18px; background: var(--soft); display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: flex-start; }
.aside-card.white { background: #fff; }
.aside-card img { width: 112px; height: 140px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.aside-card > div { flex: 1 1 200px; min-width: 0; }
.aside-card h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; margin: 4px 0 10px; }
.aside-card p { margin: 0; font-size: 16px; color: var(--text-2); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.card { display: block; color: var(--ink); text-decoration: none; }
.card .ph { display: block; border-radius: var(--radius); overflow: hidden; line-height: 0; background: var(--soft); }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform .25s; }
.card:hover img { transform: scale(1.03); }
.card .h-card { display: block; margin-top: 12px; }
.card:hover .h-card { color: var(--red-link); }
.card .sub { display: block; font-size: 14px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature { padding: 24px; border-radius: 16px; background: #fff; }
.feature h3 { margin: 16px 0 6px; font-size: 18px; font-weight: 600; font-family: var(--sans); }
.feature p { margin: 0; font-size: 16px; color: var(--muted); }
.ico { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--pink); align-items: center; justify-content: center; }

.quote { margin: 0; display: flex; flex-wrap: wrap; gap: 24px 36px; align-items: flex-start; }
.quote img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; flex: 0 0 auto; }
.quote > div { flex: 1 1 420px; min-width: 0; max-width: 820px; }
.quote blockquote { margin: 0; font-size: 24px; line-height: 1.5; font-weight: 500; }
.quote figcaption { margin-top: 16px; font-size: 16px; }
.stats { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.stat { flex: 1 1 200px; padding: 18px 22px; border: 1.5px solid var(--line-2); border-radius: var(--radius); display: flex; align-items: baseline; gap: 12px; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--red); }
.stat span { font-size: 16px; font-weight: 500; }

.venue-img { flex: 1 1 420px; min-width: 0; border-radius: 18px; overflow: hidden; line-height: 0; }
.venue-img img { width: 100%; height: 400px; object-fit: cover; display: block; }
address { font-style: normal; font-weight: 600; line-height: 1.5; }

.join-card { padding: 44px 48px; border-radius: 24px; background: var(--red); color: #fff; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.join-card > div { flex: 1 1 480px; min-width: 0; }
.join-card p { margin: 0; font-size: 18px; max-width: 56ch; }

/* Partenaires : défilement continu, pause au survol */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq var(--mq-duration, 70s) linear infinite; }
.marquee:hover .mq-track, .marquee:has(:focus-visible) .mq-track { animation-play-state: paused; }
.mq-item { flex: 0 0 220px; margin-right: 14px; display: block; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; line-height: 0; transition: border-color .2s, transform .2s, box-shadow .2s; }
.mq-item:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(28, 27, 26, .10); }
.mq-item img { width: 100%; aspect-ratio: 15 / 8; object-fit: contain; display: block; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (max-width: 700px) { .mq-item { flex-basis: 160px; } }

/* ---------- Saison, pièce, archives ---------- */
.season-card { padding: 28px; border: 1.5px solid var(--line-2); border-radius: var(--radius-lg); display: flex; flex-wrap: wrap; gap: 28px 40px; margin-bottom: 24px; }
.season-card .poster-sm { flex: 0 1 240px; min-width: 200px; line-height: 0; }
.season-card .poster-sm img { width: 100%; border-radius: 12px; display: block; }
.poster-empty { flex: 0 1 240px; min-width: 200px; aspect-ratio: 3 / 4; border-radius: 12px; border: 2px dashed var(--line-3); display: flex; align-items: center; justify-content: center; color: var(--faint); font-weight: 600; text-align: center; padding: 16px; }
.date-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 24px; }
.date-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.perf-list { margin: 0; padding: 0; list-style: none; }
/* Dates d'une pièce : date | heure | actions, en colonnes alignées d'une ligne à l'autre */
.perf-list li { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(120px, auto); align-items: center; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.perf-list .perf-actions { justify-self: end; }
.perf-list .d { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.perf-list .d .tag { margin: 0; }
@media (max-width: 560px) {
  .perf-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .perf-list .d { grid-column: 1 / -1; }
}
.tag { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--text-2); }
.tag.red { background: var(--pink); color: var(--red-dark); }
.kv { margin: 0; background: #fff; border-radius: 16px; padding: 4px 24px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dd { margin: 0; font-weight: 700; }
.faq { background: #fff; border-radius: 16px; padding: 4px 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; cursor: pointer; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--red); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 16px; color: var(--text-2); font-size: 16px; }
.alert-form { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.alert-form input[type=email] { flex: 1 1 240px; width: auto; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.thumb { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; line-height: 0; width: 100%; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .4s; }
.thumb:hover img { transform: scale(1.05); }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(20, 18, 17, .92); display: none; align-items: center; justify-content: center; padding: 64px 72px; }
.lb.open { display: flex; animation: lb-in .25s ease both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: 15px; font-weight: 600; }
@media (max-width: 700px) { .lb { padding: 64px 12px; } }

.filters { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; text-decoration: none; background: #fff; color: var(--ink); border: 2px solid var(--line-3); }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }
.archive-grid .card img { aspect-ratio: 5 / 7; }
.archive-grid .ph { border: 1px solid var(--line); }

/* ---------- Troupe ---------- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 20px; }
.board img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); display: block; background: var(--soft); }
.board p { margin: 12px 0 0; font-weight: 700; font-size: 17px; }
.board p + p { margin-top: 2px; font-weight: 400; font-size: 15px; color: var(--muted); }
.staff { margin: 0; background: #fff; border-radius: 16px; padding: 4px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); column-gap: 48px; }
.staff > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.staff dt { flex: 0 0 190px; font-weight: 600; }
.staff dd { flex: 1 1 200px; margin: 0; color: var(--text-2); }
.word { padding: 32px; border-radius: var(--radius-lg); background: var(--soft); display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.word img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; flex: 0 0 auto; }
.word > div { flex: 1 1 480px; min-width: 0; max-width: 760px; }
.word p { margin: 0 0 12px; }

/* ---------- Actualités ---------- */
.news { display: flex; flex-direction: column; gap: 24px; }
.news-card { display: flex; flex-wrap: wrap; gap: 24px 40px; padding: 24px; border: 1.5px solid var(--line-2); border-radius: var(--radius-lg); align-items: center; color: var(--ink); text-decoration: none; }
.news-card .ph { flex: 1 1 380px; min-width: 0; border-radius: var(--radius); overflow: hidden; line-height: 0; background: var(--soft); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .25s; }
.news-card:hover img { transform: scale(1.03); }
.news-card .txt { flex: 1 1 420px; min-width: 0; }
.news-card .meta { display: block; font-size: 14px; font-weight: 600; color: var(--red-dark); }
.news-card .h-card { font-size: 40px; display: block; margin-top: 8px; }
.news-card:hover .h-card { color: var(--red-link); }
.prose { font-size: 19px; }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: 40px; margin: 32px 0 12px; }
.prose h3 { font-size: 22px; margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose img { border-radius: var(--radius); }
.cover { margin: 32px 0; border-radius: 18px; overflow: hidden; line-height: 0; }
.cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }

/* ---------- Formulaires ---------- */
.form-card { padding: 32px; border-radius: var(--radius-lg); background: #fff; }
.form-card.bordered { border: 1.5px solid var(--line-2); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label, .lbl { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.fld { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #CFCBC6; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.fld:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(205, 22, 38, .15); }
textarea.fld { resize: vertical; }
.radios { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; font-size: 16px; margin: 0; }
.radios input { width: 20px; height: 20px; accent-color: var(--red); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.err { background: var(--err-bg); color: var(--err); }
.legal-line { margin: 0; font-size: 14px; color: var(--muted); }
.side-card { padding: 24px; border-radius: var(--radius-lg); background: var(--soft); }
.map-box { margin-top: 16px; aspect-ratio: 16 / 10; border-radius: 12px; background: #fff; border: 1.5px dashed var(--line-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; overflow: hidden; }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.drop { border: 2px dashed var(--line-3); border-radius: var(--radius); padding: 28px; text-align: center; background: var(--soft); }

/* ---------- Bandeau cookies ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-left: auto; padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(28, 27, 26, .18); display: none; }
.cookie.show { display: block; }
.cookie p { margin: 0 0 14px; font-size: 15px; }
.cookie .cookie-title { margin: 0 0 6px; font-weight: 700; color: var(--ink); font-size: 16px; }
.cookie-choices { display: grid; gap: 8px; margin: 0 0 14px; }
.cookie [hidden] { display: none !important; }
.cookie-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 14.5px; cursor: pointer; text-wrap: pretty; }
.cookie-opt input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--red); }
.cookie .btns { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
@media (max-width: 480px) { .cookie { padding: 16px; } .cookie p { font-size: 14px; } .cookie .btns .btn { flex: 1 1 auto; } }

/* ---------- Apparitions au défilement ---------- */
@keyframes rv-up { from { opacity: 0; transform: translateY(160px) scale(.92); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rv-zoom { from { opacity: 0; transform: scale(.7) translateY(80px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rv-left { from { opacity: 0; transform: translateX(-240px) rotate(-3deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rv-right { from { opacity: 0; transform: translateX(240px) rotate(3deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rv-wipe { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-60px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes rv-pop { from { opacity: 0; transform: translateY(160px) scale(.75) rotate(-4deg); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .rv-in { animation: rv-up 1s cubic-bezier(.16, .8, .2, 1) both; }
  .rv-in.zoom { animation-name: rv-zoom; animation-duration: 1.3s; }
  h1.rv-in { animation-name: rv-wipe; animation-duration: 1.1s; }
  .rv-in.d1 { animation-delay: .12s; } .rv-in.d2 { animation-delay: .28s; } .rv-in.d3 { animation-delay: .44s; } .rv-in.d4 { animation-delay: .6s; }

  /* Déclenchement unique : l'élément reste caché jusqu'à son entrée à l'écran,
     puis joue son animation en entier (site.js ajoute la classe .in). Rien ne suit le défilement. */
  .js-rv .rv, .js-rv .rv-g > * { opacity: 0; }
  .js-rv .rv.in, .js-rv .rv-g > .in { opacity: 1; animation: rv-up 1.1s cubic-bezier(.16, .8, .2, 1) both; }
  .js-rv .rv.zoom.in { animation-name: rv-zoom; animation-duration: 1.3s; }
  .js-rv .rv.left.in { animation-name: rv-left; }
  .js-rv .rv.right.in { animation-name: rv-right; }
  .js-rv h2.rv.in { animation-name: rv-wipe; animation-duration: 1s; }
  .js-rv .rv-g > .in { animation-name: rv-pop; }
  .js-rv .rv-g > .in:nth-child(3n+1) { animation-name: rv-left; }
  .js-rv .rv-g > .in:nth-child(3n) { animation-name: rv-right; }
  .js-rv .rv-alt > .rv.in:nth-child(odd) { animation-name: rv-left; }
  .js-rv .rv-alt > .rv.in:nth-child(even) { animation-name: rv-right; }
  .js-rv .rv-g > .in:nth-child(6n+2) { animation-delay: .1s; }
  .js-rv .rv-g > .in:nth-child(6n+3) { animation-delay: .2s; }
  .js-rv .rv-g > .in:nth-child(6n+4) { animation-delay: .3s; }
  .js-rv .rv-g > .in:nth-child(6n+5) { animation-delay: .4s; }
  .js-rv .rv-g > .in:nth-child(6n) { animation-delay: .5s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .mq-track { animation: none; }
  .mq-dup { display: none; }
}

/* ---------- Pages d'erreur / maintenance ---------- */
.center-page { min-height: 60vh; display: flex; align-items: center; }
body.maint { background: #fff; }
.maint-main { min-height: 100vh; display: grid; place-items: center; padding: 48px 20px; border-top: 6px solid var(--red, #CD1626); }
.maint-box { max-width: 620px; text-align: center; }
.maint-logo { height: 72px; width: auto; }
.maint-kicker { margin: 40px 0 0; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--red, #CD1626); }
.maint-title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(72px, 16vw, 140px); line-height: .9; margin: 8px 0 18px; color: #1C1B1A; }
.maint-text { font-size: 19px; line-height: 1.6; color: #45413d; }
.maint-text p { margin: 0 0 12px; }
.maint-until { margin: 18px 0 0; font-size: 16px; }
.maint-contact { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.maint-small { margin-top: 26px; font-size: 14px; color: #6f6a64; }
.maint-small a { color: inherit; }
.maint-preview { position: sticky; top: 0; z-index: 5; background: #1C1B1A; color: #fff; text-align: center; padding: 10px 16px; font-size: 14px; }
.maint-preview a { color: #fff; font-weight: 600; }
.maint-banner { background: #1C1B1A; color: #fff; font-size: 14px; text-align: center; padding: 9px 16px; }
.maint-banner a { color: #fff; font-weight: 600; text-decoration: underline; }

@media (max-width: 600px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .h-section { font-size: 46px; }
  .join-card { padding: 32px 24px; }
  .form-card, .word, .season-card { padding: 22px; }
  .tarif-bar .lk { margin-left: 0; }
  .cards, .board, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 14px !important; }
  .card .h-card { font-size: 22px !important; }
  .archive-grid .h-card { font-size: 24px !important; }
}

/* Listes déroulantes : flèche décalée du bord */
select.fld { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231C1B1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; padding-right: 42px; cursor: pointer; }
select.fld::-ms-expand { display: none; }

/* Fédération des Théâtres Alsaciens */
.nav-ext span { color: var(--red); }
.fed { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.fed-logo { flex: 0 1 380px; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; border-radius: 22px; background: var(--soft); padding: 36px; transition: transform .25s ease; }
.fed-logo:hover { transform: translateY(-3px); }
.fed-logo img { width: 100%; max-width: 300px; height: auto; }
.fed-text { flex: 1 1 420px; min-width: 0; }
.fed-lead { margin: 0 0 22px; font-size: 18px; max-width: 60ch; }
.fed-cities { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fed-cities li { padding: 7px 14px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 500; }
.fed-cities li.is-us { background: var(--red); color: #fff; }
.foot-fed { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 20px; padding: 12px 16px; border: 1px solid var(--line-3); border-radius: 12px; background: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.site-footer a.foot-fed:hover { text-decoration: none; border-color: var(--red); }
.foot-fed img { width: 150px; height: auto; }
/* Cartes « Membre de la Fédération » et « Avec le soutien de » (OPLA) */
.foot-badges { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 20px; }
.foot-badges .foot-fed { margin-top: 0; }
.foot-badges .foot-fed img { margin-top: auto; margin-bottom: auto; }
.foot-opla img { width: auto; height: 80px; align-self: flex-start; object-fit: contain; }
.maint-opla { margin-top: 28px; }
.maint-opla .foot-fed { margin-top: 0; text-decoration: none; }
.maint-opla .foot-fed:hover { border-color: var(--red); }
@media (max-width: 600px) { .foot-opla img { height: 64px; } }
@media (max-width: 600px) { .fed-logo { flex-basis: 100%; padding: 24px; aspect-ratio: auto; } }

/* Vidéo de présentation */
.video-block { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; justify-content: center; }
.video-frame { position: relative; flex: 0 0 auto; width: min(360px, 100%); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #111; box-shadow: 0 24px 60px rgba(28, 27, 26, .18); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.video-play { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0,0,0,.12); color: #fff; font: inherit; cursor: pointer; }
.video-play-ico { position: absolute; left: 50%; top: 44%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(205, 22, 38, .45); transition: transform .2s ease; }
.video-play-ico svg { margin-left: 4px; }
.video-play:hover .video-play-ico, .video-play:focus-visible .video-play-ico { transform: scale(1.08); }
.video-frame.playing .video-play { display: none; }
.video-text { flex: 1 1 380px; min-width: 0; max-width: 560px; }
.video-lead p { margin: 0 0 14px; font-size: 19px; }

/* Dernières représentations */
.eyebrow.hot { background: var(--red); color: #fff; }

/* Tarifs : deux liens */
.tarif-bar .lk + .lk { margin-left: 0; }
.tarif-bar .lk-tel { color: var(--text-2); }

/* Dates : agenda + réserver */
.perf-actions { display: inline-flex; align-items: center; gap: 18px; }
.cal-lk { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.cal-lk:hover { color: var(--red-link); }
@media (max-width: 600px) { .cal-lk span { display: none; } }
/* Menu « Ajouter à mon agenda » : fichier .ics (Apple, Outlook, Samsung) ou Google Agenda */
.cal-menu { position: relative; }
.cal-menu > summary { list-style: none; cursor: pointer; }
.cal-menu > summary::-webkit-details-marker { display: none; }
.cal-menu[open] > summary { color: var(--red-link); }
/* Chaque date est animée à l'apparition, ce qui l'isole des autres : la date dont le menu est ouvert passe au-dessus des suivantes */
.perf-list li:has(.cal-menu[open]) { position: relative; z-index: 40; }
.cal-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 14px 36px rgba(28, 27, 26, .16); text-align: left; }
.cal-pop-t { margin: 4px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal-pop a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.cal-pop a:hover, .cal-pop a:focus-visible { background: var(--soft); color: var(--red-link); }
.cal-pop a span { color: var(--muted); font-weight: 400; font-size: 13px; }
@media (max-width: 560px) {
  .perf-list li { position: relative; }
  .perf-list .cal-menu { position: static; }
  .perf-list .cal-pop { left: 0; right: auto; top: calc(100% - 4px); width: min(320px, 100%); min-width: 0; }
}
/* Bloc « Venir au Brassin » : itinéraire Google Maps, Waze, Plans */
.venue-go { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--soft); }
.venue-go-t { margin: 0; font-weight: 700; font-size: 17px; }
.venue-go-a { margin: 2px 0 12px; color: var(--text-2); font-size: 15px; }
.venue-go-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Partage */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.share-lbl { font-weight: 600; margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-3); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--red); color: var(--red-link); }
.share-btn.done { border-color: var(--ok, #1E5B37); color: var(--ok, #1E5B37); }

/* Page groupes */
.group-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.group-perks .side-card { padding: 26px; }
.group-perks .h-card { font-size: 30px; margin: 16px 0 6px; }
.group-perks p { margin: 0; }
.check-line { display: flex; align-items: center; gap: 10px; font-weight: 500 !important; }
.check-line input { width: 20px; height: 20px; accent-color: var(--red); }

.btn-group svg { margin-right: 8px; flex: 0 0 auto; }
.hero-empty { width: min(380px, 80vw); aspect-ratio: 2 / 3; display: flex; align-items: center; justify-content: center; border-radius: 18px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--red-link); padding-left: 4px; padding-right: 4px; }

/* Inscription aux annonces (pied de page) */
.foot-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line-2); }
.foot-alert > div { flex: 1 1 320px; max-width: 520px; }
.foot-form { margin-top: 0; flex: 1 1 380px; justify-content: flex-end; }
.foot-form .fld { min-height: 46px; }

/* Mur des partenaires */
.partner-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.pw-item { display: block; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; transition: border-color .2s, transform .2s; }
.pw-item:hover { border-color: var(--red); transform: translateY(-2px); }
.pw-item img { width: 100%; aspect-ratio: 600 / 320; object-fit: contain; display: block; }

/* Texte éditable (histoire, partenaires) */
.prose { font-size: 18px; }
.prose h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 40px; margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; }

/* Frise des saisons */
.timeline { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 2px solid var(--line-3); }
.tl-season { position: relative; padding: 0 0 36px 20px; }
.tl-season::before { content: ''; position: absolute; left: -33px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #fff; }
.tl-label { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 30px; line-height: 1; margin-bottom: 14px; }
.tl-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.tl-item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: var(--soft); color: var(--ink); text-decoration: none; }
.tl-item:hover { background: var(--pink); }
.tl-item img, .tl-noposter { width: 56px; height: 78px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--line-2); }
.tl-item b { display: block; font-size: 17px; }
.tl-item .small { display: block; }

/* Livre d'or */
.gb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.gb-card { margin: 0; background: #fff; border-radius: 18px; padding: 24px; border: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.wrap > .gb-grid .gb-card, section:not(.bg-soft) .gb-card { background: var(--soft); border-color: transparent; }
.gb-card blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.gb-card figcaption { font-size: 15px; }
.gb-card figcaption a { color: inherit; }

/* Menu déroulant « Le théâtre » */
.nav-dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; color: var(--ink); cursor: pointer; }
.dd-btn svg { transition: transform .2s ease; }
.dd-menu { position: absolute; top: calc(100% + 10px); left: -18px; min-width: 240px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(28,27,26,.12); display: none; z-index: 30; }
.dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dd-menu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 500; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--soft); color: var(--red-link); }
.dd-menu a.is-active { color: var(--red-link); }
.nav-dd:hover .dd-menu, .nav-dd.open .dd-menu { display: block; }
.nav-dd:hover .dd-btn svg, .nav-dd.open .dd-btn svg { transform: rotate(180deg); }
@media (max-width: 1240px) {
  .nav-dd { width: 100%; }
  .dd-btn { padding: 8px 0; }
  .dd-btn svg { display: none; }
  .dd-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 4px 14px; min-width: 0; background: transparent; }
  .dd-menu a { padding: 7px 0; }
}

/* Bandeau d'inscription aux annonces */
.cta-wrap { padding-top: 24px; padding-bottom: 80px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 40px 44px; border-radius: 24px; background: var(--red); color: #fff; }
.cta-text { flex: 1 1 380px; max-width: 620px; }
.cta-text p { font-size: 17px; }
.cta-form { flex: 1 1 360px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; }
.cta-form .fld { flex: 1 1 220px; width: auto; border-color: #fff; }
.cta-done { margin: 0; font-size: 19px; font-weight: 600; }
.cta-err { flex-basis: 100%; margin: 0; font-weight: 600; }
@media (max-width: 600px) { .cta-band { padding: 28px 22px; } }

.quote-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; }
.section-sm { padding-top: 56px; padding-bottom: 56px; }
.gb-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.gb-invite > div { flex: 1 1 380px; max-width: 680px; }
.piece-alert { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--pink); max-width: 560px; }
