/* Théâtre en Do — Lanester · v2 « velours et or » */
:root {
  --fond: #15100f;
  --panneau: #211a19;
  --panneau-clair: #2a2220;
  --bordure: #3d322e;
  --or: #d4a94f;
  --or-clair: #e8c87f;
  --rouge: #a63a3f;
  --texte: #ece2d3;
  --texte-doux: #b3a593;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Jost", "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.7;
  font-size: 1.05rem;
}

h1, h2, h3, .brand { font-family: "Playfair Display", Georgia, serif; }
a { color: var(--or-clair); text-decoration: none; }
a:hover { color: #fff; }
p a, li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(212, 169, 79, .5); }
strong { font-weight: 500; color: #fff; }
em { color: var(--or-clair); }
.muet { color: var(--texte-doux); font-size: 0.92rem; }
code {
  background: var(--panneau-clair);
  border: 1px solid var(--bordure);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
}

/* ---------- Barre de navigation ---------- */
nav.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  padding: 12px 24px;
  background: rgba(21, 16, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}
nav.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  color: var(--or);
  letter-spacing: 0.5px;
  margin-right: auto;
}
nav.topbar .brand img {
  height: 44px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 3px 5px;
}
nav.topbar .brand span { color: var(--texte); }
nav.topbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav.topbar a {
  display: block;
  padding: 6px 12px;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--texte-doux);
  border-bottom: 2px solid transparent;
}
nav.topbar a:hover { color: #fff; }
nav.topbar a.actif { color: var(--or); border-bottom-color: var(--or); }

/* ---------- Bandeau d'en-tête (héros) ---------- */
.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 30%;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(21, 16, 15, 0.55) 0%,
    rgba(21, 16, 15, 0.25) 40%,
    rgba(21, 16, 15, 0.97) 100%);
}
.hero-grand { min-height: 72vh; }
.hero-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 60px 24px 36px;
}
.hero .surtitre {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  color: var(--or);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.hero .accroche {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--texte);
}
.hero .logo-troupe {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 150px;
  height: auto;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}
@media (max-width: 600px) {
  .hero .logo-troupe { width: 92px; top: 14px; right: 14px; padding: 6px; border-radius: 10px; }
}
.hero-accueil  { background-image: url("../images/theatre/coupures-page-de-garde.jpg"); background-position: center top; }
.hero-theatre  { background-image: url("../images/theatre/manuscrits-deluge-scene2-2020.jpg"); }
.hero-operette { background-image: url("../images/operette/genevieve-brabant-2025.jpg"); }
.hero-agenda   { background-image: url("../images/theatre/manuscrits-deluge-scene3-2020.jpg"); }
.hero-gal-t    { background-image: url("../images/theatre/manuscrits-deluge-scene1-2020.jpg"); }
.hero-gal-o    { background-image: url("../images/operette/happy-diese-repetition-2023.jpg"); }

/* ---------- Corps ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 16px 24px 72px; }

h2 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #fff;
  margin: 56px 0 18px;
}
h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 10px;
  background: var(--or);
}
h3 { color: var(--or-clair); font-size: 1.3rem; margin: 0 0 8px; font-weight: 600; }

.filet { color: var(--or); letter-spacing: 6px; text-align: center; margin: 48px 0 0; }

/* Bandeau d'annonce */
.bandeau {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 28px 0 8px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(166, 58, 63, 0.25), rgba(212, 169, 79, 0.12));
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--or);
  border-radius: 8px;
}
.bandeau p { margin: 0; }

.btn {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--or);
  border-radius: 999px;
  color: var(--or-clair);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--or); color: #1a1310; }

/* ---------- Cartes ---------- */
.deux-colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .deux-colonnes { grid-template-columns: 1fr; } }

.carte {
  background: var(--panneau);
  border: 1px solid var(--bordure);
  border-radius: 10px;
  padding: 24px 26px;
}
.carte-photo {
  background: var(--panneau);
  border: 1px solid var(--bordure);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.carte-photo:hover { transform: translateY(-4px); border-color: var(--or); }
.carte-photo img { width: 100%; height: 210px; object-fit: cover; display: block; }
.carte-photo .contenu { padding: 20px 24px 24px; }
.carte-photo .contenu p { margin: 0 0 14px; color: var(--texte-doux); }

.vedette {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  background: var(--panneau);
  border: 1px solid var(--bordure);
  border-radius: 10px;
  overflow: hidden;
}
.vedette > img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.vedette .contenu { padding: 24px 28px; }
@media (max-width: 700px) {
  .vedette { grid-template-columns: 1fr; }
  .vedette > img { max-height: 260px; }
}
.etiquette {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--rouge);
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

/* ---------- Frise des spectacles ---------- */
ol.frise { list-style: none; margin: 24px 0 0; padding: 0 0 0 26px; border-left: 2px solid var(--bordure); }
ol.frise li { position: relative; padding: 0 0 26px 22px; }
ol.frise li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fond);
  border: 3px solid var(--or);
}
ol.frise .annee {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: var(--or);
  display: block;
}
ol.frise .titre { font-weight: 500; color: #fff; font-size: 1.1rem; }
ol.frise p { margin: 4px 0 0; color: var(--texte-doux); }

/* ---------- Agenda ---------- */
.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 26px; }
.date-carte {
  background: var(--panneau);
  border: 1px solid var(--bordure);
  border-top: 4px solid var(--or);
  border-radius: 10px;
  padding: 20px 22px;
  transition: transform 0.25s, border-color 0.25s;
}
.date-carte:hover { transform: translateY(-4px); }
.date-carte .jour {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--or);
}
.date-carte .mois { text-transform: uppercase; letter-spacing: 3px; font-size: 0.85rem; color: var(--texte-doux); }
.date-carte .lieu { margin-top: 10px; font-weight: 500; color: #fff; font-size: 1.1rem; }
.date-carte .note { color: var(--texte-doux); font-size: 0.88rem; margin-top: 4px; }

table.passees { width: 100%; border-collapse: collapse; margin-top: 18px; }
table.passees th {
  text-align: left;
  padding: 10px 14px;
  color: var(--or);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 500;
  border-bottom: 1px solid var(--or);
}
table.passees td { padding: 12px 14px; border-bottom: 1px solid var(--bordure); color: var(--texte-doux); }
table.passees td:nth-child(2) { color: var(--texte); }

/* ---------- Galeries ---------- */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.galerie figure {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bordure);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.galerie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.galerie figure:hover img { transform: scale(1.06); }
.galerie figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 10px;
  font-size: 0.88rem;
  color: #f3ecdf;
  background: linear-gradient(180deg, transparent, rgba(12, 8, 7, 0.9));
}

/* Visionneuse plein écran */
#visionneuse {
  position: fixed;
  inset: 0;
  background: rgba(10, 7, 6, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 50;
  padding: 24px;
  cursor: zoom-out;
}
#visionneuse.ouverte { display: flex; }
#visionneuse img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--or), 0 20px 60px rgba(0, 0, 0, 0.8);
}
#visionneuse p { color: var(--or-clair); margin: 14px 0 0; text-align: center; font-size: 1rem; }

/* ---------- Formulaire de réservation ---------- */
.formulaire { max-width: 560px; }
.formulaire label { color: var(--texte); }
.formulaire input, .formulaire textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: 6px;
  color: var(--texte);
  font-family: inherit;
  font-size: 1rem;
}
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--or); }
.formulaire .btn { cursor: pointer; background: none; font-family: inherit; }
.formulaire .btn:hover { background: var(--or); }
.pot-de-miel { position: absolute; left: -9999px; }

/* ---------- Pied de page ---------- */
footer.site {
  border-top: 1px solid var(--bordure);
  background: #100c0b;
  color: var(--texte-doux);
  text-align: center;
  padding: 28px 24px 34px;
  font-size: 0.88rem;
}
footer.site .masque { font-family: "Playfair Display", serif; color: var(--or); font-size: 1.4rem; margin-bottom: 8px; }
footer.site p { max-width: 720px; margin: 0 auto; }
