/* Café-théâtre de Gollion — feuille de style */
:root {
  --velvet: #4b151b;
  --velvet-deep: #33090e;
  --paper: #f5ecdc;
  --paper-light: #fbf5e9;
  --ink: #2b1b1d;
  --ink-soft: #5e4b4e;
  --red: #c9321f;
  --red-dark: #a3261a;
  --green: #3f8f3a;
  --gold: #e7b53b;
  --cream: #fff4dc;
  --line: rgba(43, 27, 29, 0.16);
  --display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 6px;
  --maxw: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-top: 1.4em; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; margin-top: 1.2em; }
p { margin: 0 0 1em; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--ink); padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- barre de navigation ---------- */
.topbar {
  background: var(--velvet);
  color: var(--cream);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.2rem;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 0 var(--velvet-deep);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--cream); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  margin-right: auto;
}
.brand img { width: 64px; height: auto; background: var(--cream); border-radius: 10px; padding: 4px 5px; }
.brand span { white-space: nowrap; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; flex-wrap: wrap; }
.menu a {
  color: var(--cream); text-decoration: none; padding: 0.5rem 0.75rem;
  border-radius: var(--radius); font-weight: 600; display: block;
}
.menu a:hover { background: rgba(255, 244, 220, 0.12); color: var(--cream); }
.menu a { position: relative; }
.menu a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.25rem;
  height: 3px; background: var(--gold);
}
.menu-btn {
  display: none;
  font: 600 1rem var(--body);
  background: transparent; color: var(--cream);
  border: 2px solid var(--cream); border-radius: var(--radius);
  padding: 0.4rem 0.9rem; cursor: pointer;
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .menu { display: none; width: 100%; }
  .menu.open { display: block; }
  .menu ul { flex-direction: column; padding-top: 0.5rem; }
  .brand span { font-size: 1.05rem; }
}

/* ---------- boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 500; font-size: 1.1rem;
  background: var(--red); color: var(--cream);
  padding: 0.65rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid var(--red);
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--cream); }
.btn-light { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-light:hover { background: rgba(255, 244, 220, 0.15); border-color: var(--cream); color: var(--cream); }

/* ---------- héros ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid; place-items: center;
  background: var(--velvet-deep);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero picture, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(51, 9, 14, 0.45), rgba(51, 9, 14, 0.25) 40%, rgba(51, 9, 14, 0.82));
}
.hero-text { text-align: center; padding: 3rem 1rem; max-width: 760px; }
.hero-logo { margin: 0 auto 0.8rem; width: 190px; background: var(--cream); border-radius: 18px; padding: 10px 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.2rem);
  margin: 0 0 0.4em;
  color: var(--cream);
  text-shadow: 0 3px 0 var(--velvet-deep), 0 8px 24px rgba(0, 0, 0, 0.55);
}
.tagline {
  font-family: var(--display); font-weight: 500;
  color: var(--gold); font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 2.8rem 1.2rem; }
.lead { font-size: 1.2rem; max-width: 70ch; }
.prose p, .prose dl, .prose h2 { max-width: 70ch; }
.figure-wide { margin: 0 0 2rem; }
.figure-wide img { width: 100%; border-radius: var(--radius); }
figcaption { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.5rem; }

.next-show { padding-top: 2.4rem; padding-bottom: 2.8rem; }
.ticket {
  background: var(--paper-light);
  border: 2px dashed var(--red);
  border-radius: 10px;
  padding: 1.4rem 1.8rem;
  position: relative;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px;
  background: var(--paper); border: 2px dashed var(--red); border-radius: 50%;
  transform: translateY(-50%);
}
.ticket::before { left: -13px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -13px; clip-path: inset(0 50% 0 0); }
.ticket h2 { color: var(--red); margin-top: 0; font-size: 1.6rem; }
.ticket p:last-child { margin-bottom: 0; }

.intro h2 { color: var(--red); }
.intro p { max-width: 70ch; }

.strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
  background: var(--velvet-deep); padding: 4px;
}
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1) contrast(1.05); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(3, 1fr); } }

.testimonials h2 { text-align: center; }
.quotes { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.6rem; }
.quotes li { break-inside: avoid; margin-bottom: 1.2rem; }
.quotes blockquote {
  margin: 0; padding: 1.2rem 1.4rem 1rem 2.8rem;
  background: var(--paper-light); border-radius: var(--radius);
  position: relative; border: 1px solid var(--line);
}
.quotes blockquote::before {
  content: "“"; font-family: var(--display); font-size: 3.2rem; line-height: 1;
  color: var(--gold); position: absolute; left: 0.8rem; top: 0.6rem;
}
.quotes p { margin: 0 0 0.4rem; }
.quotes footer { font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 700px) { .quotes { columns: 1; } }

/* ---------- en-têtes de page ---------- */
.page-head {
  background: var(--velvet); color: var(--cream);
  padding: 2.4rem 1.2rem;
}
.page-head h1 { max-width: var(--maxw); margin: 0 auto; color: var(--cream); }
.page-head-photo { position: relative; overflow: hidden; isolation: isolate; min-height: 240px; display: flex; align-items: flex-end; }
.page-head-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(51, 9, 14, 0.9), rgba(51, 9, 14, 0.2)); }
.page-head-photo h1 { width: 100%; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }

/* ---------- affiches ---------- */
.posters {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.4rem 1.2rem;
}
.poster-link { display: block; background: var(--velvet-deep); border-radius: var(--radius); overflow: hidden; }
.poster-link img, .poster-missing { width: 100%; aspect-ratio: 7 / 10; object-fit: contain; }
.poster-link:hover img { opacity: 0.9; }
.poster-missing {
  display: grid; place-items: center; background: var(--velvet-deep); color: var(--gold);
  border-radius: var(--radius); font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  line-height: 1.15; text-align: center; padding: 1rem;
  border: 6px double rgba(231, 181, 59, 0.5);
}
.poster-missing small { display: block; color: var(--cream); font-weight: 500; font-size: 0.85rem; margin-top: 0.8rem; }
.poster-meta { padding: 0.5rem 0.1rem 0; }
.poster-meta .year { font-family: var(--display); font-weight: 700; color: var(--red); font-size: 1.15rem; }
.poster-meta h3 { margin: 0 0 0.3rem; font-size: 1.05rem; line-height: 1.25; }
.video-link { font-size: 0.95rem; font-weight: 600; }
.video-link::before { content: "▶ "; font-size: 0.7em; color: var(--red); }

/* ---------- galeries ---------- */
.gallery {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem;
}
.gallery a { display: block; border-radius: 4px; overflow: hidden; background: var(--velvet-deep); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery a:hover img { opacity: 0.88; }

/* ---------- presse ---------- */
.clippings { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.6rem; }
.clipping {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.4rem;
  background: var(--paper-light); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem;
}
.clipping-scan { display: block; }
.clipping-scan img { border: 1px solid var(--line); background: #fff; width: 100%; max-height: 300px; object-fit: cover; object-position: top; }
.clipping-source { font-family: var(--display); font-weight: 500; color: var(--red); margin-bottom: 0.2rem; }
.clipping h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.clipping-show { color: var(--ink-soft); font-size: 0.95rem; }
.credit { white-space: nowrap; }
details { margin: 0.6rem 0 0.8rem; }
summary { cursor: pointer; font-weight: 600; color: var(--red-dark); }
summary:hover { color: var(--red); }
.article { max-width: 68ch; padding-top: 0.6rem; }
.article h4 { color: var(--ink); }
@media (max-width: 600px) {
  .clipping { grid-template-columns: 1fr; }
  .clipping-scan { max-width: 220px; }
}

/* ---------- infos pratiques ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.4rem; margin: 0 0 2rem; }
.facts dt { font-family: var(--display); font-weight: 500; color: var(--red); }
.facts dd { margin: 0; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.7rem; }
}
.map { margin-top: 2rem; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); display: block; }
.map p { margin-top: 0.4rem; font-size: 0.95rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.resa label { display: block; font-weight: 600; margin-bottom: 0.9rem; }
.resa input, .resa textarea {
  display: block; width: 100%; margin-top: 0.25rem;
  font: inherit; font-weight: 400; padding: 0.55rem 0.7rem;
  border: 1px solid var(--ink-soft); border-radius: var(--radius); background: #fff;
}
.form-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.8rem; }
.resa fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.resa fieldset:disabled { opacity: 0.45; }
.resa fieldset:disabled input, .resa fieldset:disabled textarea, .resa fieldset:disabled .btn { cursor: not-allowed; }
.notice {
  background: var(--cream); border-left: 5px solid var(--gold);
  padding: 0.8rem 1rem; border-radius: var(--radius); font-weight: 600;
}
.plain { padding-left: 1.2rem; max-width: 70ch; }
.plain li { margin-bottom: 0.3rem; }

/* ---------- pied de page ---------- */
.footer { background: var(--velvet-deep); color: var(--cream); padding: 2.5rem 1.2rem 1.5rem; margin-top: 2rem; }
.footer a { color: var(--gold); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem;
}
.footer-inner p { margin-bottom: 0.6rem; }
.footer-inner img { background: var(--cream); border-radius: 10px; padding: 5px 6px; width: 84px; margin-bottom: 0.6rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-nav a { text-decoration: none; display: block; padding: 0.15rem 0; color: var(--cream); }
.footer-nav a:hover { color: var(--gold); }
.copyright { max-width: var(--maxw); margin: 2rem auto 0; font-size: 0.9rem; color: rgba(255, 244, 220, 0.7); }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- visionneuse ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 6, 8, 0.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(94vw, 1400px); max-height: 84vh; width: auto; height: auto; object-fit: contain; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { color: var(--cream); margin-top: 0.6rem; font-size: 1rem; }
.lb-btn {
  position: absolute; background: rgba(255, 244, 220, 0.12); color: var(--cream);
  border: 0; font: 500 1.4rem var(--display); cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255, 244, 220, 0.28); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }
