/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Empêche le débordement horizontal causé par le bleed des cartes du carrousel.
   "clip" plutôt que "hidden" : "hidden" transforme ce conteneur en zone de défilement
   à part entière (règle CSS d'appariement overflow-x/y), ce qui casse le
   "position: sticky" de tout élément à l'intérieur (header, bouton retour...). */
.page-scroll-clip {
  overflow-x: clip;
  width: 100%;
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

:root {
  --header-height: 51px;
  --bg: #0a0d12;
  --bg-soft: #0d1117;
  --bg-elevated: #141922;
  --border-soft: rgba(255,255,255,0.08);
  --text: #f4f2ec;
  --text-muted: #9aa1ad;
  --accent: #5eead4;
  --accent-strong: #2dd4bf;
  --gold: #d4af37;
  --gold-soft: #f3e7c9;
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,0.6);
  --header-bg: rgba(10,13,18,0.75);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f8f6f1;
  --bg-soft: #f1eee5;
  --bg-elevated: #ffffff;
  --border-soft: rgba(20,22,28,0.1);
  --text: #1c1f26;
  --text-muted: #666f7d;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --gold: #a9760a;
  --shadow-lg: 0 24px 48px -22px rgba(30,25,15,0.18);
  --header-bg: rgba(248,246,241,0.8);
  color-scheme: light;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo-mark { color: var(--gold); font-size: 1.2rem; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--accent); }

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-moon { display: flex; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: flex; }

.admin-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.admin-toggle:hover { border-color: var(--gold); color: var(--gold); }
.admin-toggle.active { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,0.14); }

.admin-banner[hidden] { display: none; }
.admin-banner {
  background: rgba(212,175,55,0.12);
  border-bottom: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.admin-banner button {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.admin-banner button:hover { background: rgba(212,175,55,0.18); }

/* ---------- Hero ---------- */
.hero {
  padding: 18px 32px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(94,234,212,0.10), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.hero-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 600;
  flex-basis: 100%;
  margin-bottom: 2px;
}
.hero h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04211c;
  box-shadow: 0 8px 24px -8px rgba(45,212,191,0.55);
}
.btn-primary:hover { box-shadow: 0 10px 30px -6px rgba(45,212,191,0.7); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-soft);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Section heading ---------- */
.section-heading {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
  padding: 0 24px;
}
.section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.section-heading h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }

/* ---------- Shows / carousel ---------- */
.shows-section {
  padding: 36px 0 30px;
  border-bottom: 1px solid var(--border-soft);
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: clamp(430px, 50vw, 570px);
  perspective: 1400px;
}

.carousel-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  border: 1px dashed var(--border-soft);
  border-radius: 22px;
}

.carousel-btn {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(20,25,34,0.8);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(94,234,212,0.08);
}
.carousel-btn:active { transform: scale(0.94); }
.carousel-btn--prev { margin-right: 8px; }
.carousel-btn--next { margin-left: 8px; }
.carousel-btn--sm { width: 38px; height: 38px; }

@media (min-width: 720px) {
  .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; }
  .carousel-btn--prev { left: -4px; }
  .carousel-btn--next { right: -4px; }
  .carousel-btn:active { transform: translateY(-50%) scale(0.94); }
}

/* individual show card */
.show-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(230px, 25vw, 310px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease, filter 0.55s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}
/* Le cadre reprend exactement le format des affiches (900 x 1273) : l'affiche est
   donc affichée entière, sans jamais être rognée en haut ou en bas. La carte prend
   la hauteur de l'affiche plus celle de la bande de légende. */
.show-card img {
  width: 100%;
  aspect-ratio: 900 / 1273;
  height: auto;
  object-fit: cover;
  display: block;
}
/* Bande de légende sous l'affiche : fond plein, jamais superposée à l'image. */
.show-card-overlay {
  position: static;
  padding: 12px 14px 14px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
/* La carte "+" n'a pas d'affiche : on lui rend la hauteur des autres cartes. */
.show-card--add { aspect-ratio: 900 / 1560; }
.show-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  color: #fff;
  line-height: 1.2;
}
.show-card-genre {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 1;
  line-height: 1.3;
}
.show-card-detail-btn {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #04211c;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.show-card-detail-btn:hover {
  filter: brightness(1.12);
}

/* actions admin (visibles uniquement en mode admin) */
.show-card-admin-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  gap: 6px;
  z-index: 5;
}
body.admin-mode .show-card-admin-actions { display: flex; }
.show-card-admin-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(4,6,9,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.show-card-admin-btn:hover { transform: scale(1.08); }
.show-card-edit-btn:hover { border-color: var(--accent); background: rgba(13,148,136,0.55); }
.show-card-delete-btn:hover { border-color: #f87171; background: rgba(248,113,113,0.5); }

/* carte "+" d'ajout, uniquement présente en mode admin */
.show-card--add {
  background: var(--bg-elevated);
  border: 2px dashed var(--border-soft);
  cursor: pointer;
}
.show-card--add:hover { border-color: var(--accent); }
.show-card-add-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.show-card--add:hover .show-card-add-inner { color: var(--accent); }
.show-card-add-plus {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  line-height: 1;
}
.show-card-add-label { font-size: 0.85rem; font-weight: 600; }

/* positioning states, driven par JS via data-pos — partagées avec .photo-card
   (galerie photo de la fiche spectacle) qui réutilise la même mécanique de roue. */
.show-card[data-pos="active"],
.photo-card[data-pos="active"] {
  transform: translate(-50%, -50%) translateX(0) scale(1) rotateY(0deg);
  z-index: 50;
  opacity: 1;
  filter: none;
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.show-card[data-pos="active"] .show-card-overlay { opacity: 1; transform: translateY(0); }

.show-card[data-pos="prev1"],
.photo-card[data-pos="prev1"] {
  transform: translate(-50%, -50%) translateX(-78%) scale(0.8) rotateY(18deg);
  z-index: 40;
  opacity: 0.65;
  filter: brightness(0.55) blur(0.5px);
}
.show-card[data-pos="next1"],
.photo-card[data-pos="next1"] {
  transform: translate(-50%, -50%) translateX(78%) scale(0.8) rotateY(-18deg);
  z-index: 40;
  opacity: 0.65;
  filter: brightness(0.55) blur(0.5px);
}
.show-card[data-pos="prev2"],
.photo-card[data-pos="prev2"] {
  transform: translate(-50%, -50%) translateX(-138%) scale(0.62) rotateY(24deg);
  z-index: 30;
  opacity: 0.32;
  filter: brightness(0.4) blur(1px);
}
.show-card[data-pos="next2"],
.photo-card[data-pos="next2"] {
  transform: translate(-50%, -50%) translateX(138%) scale(0.62) rotateY(-24deg);
  z-index: 30;
  opacity: 0.32;
  filter: brightness(0.4) blur(1px);
}
.show-card[data-pos="far"],
.photo-card[data-pos="far"] {
  transform: translate(-50%, -50%) translateX(0) scale(0.4);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Carte photo (galerie de la fiche spectacle) ---------- */
.photo-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(300px, 38vw, 480px);
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease, filter 0.55s ease, border-color 0.4s ease;
  cursor: pointer;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }

.photo-carousel-stage { height: clamp(240px, 29vw, 350px); }
.photo-carousel-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(240px, 29vw, 350px);
  border: 1px dashed var(--border-soft);
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Presse & partenaires (fiche spectacle) ---------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.press-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}
.press-logo {
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  line-height: 0;
}
.press-logo img { height: 24px; width: auto; display: block; }
.press-text { color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; }
.press-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 1px dashed var(--border-soft);
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-soft);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease, width 0.25s ease;
}
.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 999px;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 24px 24px 32px;
}
.contact-card {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 24px 32px;
}
.contact-photo-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #04211c;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 0 5px rgba(212,175,55,0.12), 0 14px 30px -12px rgba(0,0,0,0.5);
}
/* Portrait photographique : même cadre rond et même halo que le bloc d'initiales. */
.contact-photo-portrait {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 0 5px rgba(212,175,55,0.12), 0 14px 30px -12px rgba(0,0,0,0.5);
}
.contact-info h2 { font-size: 1.35rem; margin: 0 0 3px; }
.contact-role { color: var(--accent); font-weight: 600; font-size: 0.84rem; margin-bottom: 10px; }
.contact-bio { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; margin-bottom: 16px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.contact-list li { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; }
.contact-icon {
  width: 25px; height: 25px;
  flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(94,234,212,0.1);
  color: var(--accent);
  font-size: 0.72rem;
}
.contact-list a { color: var(--text); transition: color 0.2s ease; }
.contact-list a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 12px 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.74rem;
}

/* ---------- Detail panel ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,6,9,0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 90;
}
.overlay.visible { opacity: 1; pointer-events: auto; }

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(460px, 100%);
  background: var(--bg-soft);
  border-left: 1px solid var(--border-soft);
  box-shadow: -30px 0 60px -20px rgba(0,0,0,0.6);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 100;
  overflow-y: auto;
}
.detail-panel.open { transform: translateX(0); }

.detail-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(20,25,34,0.7);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.detail-close:hover { border-color: var(--accent); color: var(--accent); }

.detail-content { padding-bottom: 40px; }
.detail-body { padding: 28px 32px 0; }
/* Sans affiche en tête, le contenu doit dégager la croix de fermeture. */
.detail-body--top { padding-top: 72px; }
.detail-genre {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.detail-title { font-size: 1.7rem; line-height: 1.25; margin-bottom: 18px; }
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--bg-elevated);
}
.detail-meta-item .label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.detail-meta-item .value { font-size: 0.92rem; font-weight: 600; }
.detail-desc {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.detail-desc p + p { margin-top: 12px; }
.detail-cast {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}
.detail-cast strong { color: var(--text); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.btn-danger {
  background: transparent;
  color: #f87171;
  border-color: rgba(248,113,113,0.4);
}
.btn-danger:hover { background: rgba(248,113,113,0.12); border-color: #f87171; }

/* ---------- Formulaire admin (dans le panneau de détails) ---------- */
.admin-form-header { padding: 24px 32px 0; }
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 32px 32px;
}
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}
.admin-form input,
.admin-form textarea {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 9px 12px;
  resize: vertical;
}
.admin-form input:focus,
.admin-form textarea:focus { outline: none; border-color: var(--accent); }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Boîte de connexion admin ---------- */
.admin-login {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(360px, calc(100% - 40px));
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.admin-login.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.admin-login h3 { font-size: 1.15rem; margin-bottom: 6px; }
.admin-login-hint { color: var(--text-muted); font-size: 0.76rem; line-height: 1.45; margin-bottom: 16px; }
.admin-login-error { color: #f87171; font-size: 0.8rem; margin-top: 10px; }
.admin-login input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}
.admin-login input[type="password"]:focus { outline: none; border-color: var(--accent); }
.admin-login-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- Page fiche spectacle complète (spectacle.html) ---------- */
.sheet-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 90px;
}
.sheet-back {
  position: sticky;
  top: var(--header-height);
  z-index: 30;
  margin: 0 -24px 24px;
  padding: 14px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.sheet-back-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.sheet-back-link:hover { color: var(--accent); }

/* En-tête : l'affiche en petit format sert de repère visuel à côté du titre,
   au format exact des affiches (900 x 1273) pour ne rien rogner. */
.sheet-header {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 36px;
}
.sheet-header-poster {
  flex: none;
  width: 130px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
}
.sheet-header-poster img { width: 100%; aspect-ratio: 900 / 1273; height: auto; object-fit: cover; }
.sheet-header-text { min-width: 0; }
.sheet-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 6px; }
.sheet-compagnie { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 620px) {
  .sheet-header { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .sheet-header-poster { width: 150px; }
}

/* Une seule colonne depuis le retrait de l'affiche : l'encart et les actions
   occupent toute la largeur de la fiche. */
.sheet-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}
/* L'encart s'adapte au nombre d'informations réellement renseignées
   (durée, cible, et plateau quand il est connu). */
.sheet-meta { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sheet-main-col { display: flex; flex-direction: column; gap: 24px; }
.sheet-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Visionneuse plein écran des photos (fiche spectacle) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 2vw, 24px);
  padding: clamp(12px, 3vw, 40px);
  background: rgba(4, 6, 9, 0.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
/* "contain" : la photo est toujours montrée en entier, quelle que soit sa forme. */
.lightbox-figure img {
  max-width: min(92vw, 1600px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.lightbox-counter {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: clamp(12px, 2.5vw, 28px);
  right: clamp(12px, 2.5vw, 28px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(20, 25, 34, 0.7);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

.lightbox-nav {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(20, 25, 34, 0.7);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.lightbox-nav:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-nav:active { transform: scale(0.94); }
/* Une seule photo : les flèches n'ont plus de sens. */
.lightbox--single .lightbox-nav { display: none; }

/* La photo au centre du carrousel est agrandissable : le curseur l'annonce. */
.photo-card[data-pos="active"] { cursor: zoom-in; }

@media (max-width: 720px) {
  .lightbox-nav { position: absolute; bottom: 18px; width: 46px; height: 46px; }
  .lightbox-nav--prev { left: 22px; }
  .lightbox-nav--next { right: 22px; }
  .lightbox-figure img { max-height: 68vh; }
}

/* Encart des dates à venir (fiche spectacle) */
.sheet-dates {
  padding: 16px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--bg-elevated);
}
.sheet-dates-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sheet-dates-list li {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}
.sheet-dates-list li + li { margin-top: 6px; }

.sheet-section {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.sheet-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.sheet-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
}
.sheet-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sheet-video--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sheet-desc { max-width: 720px; }
.sheet-team { color: var(--text-muted); line-height: 1.7; }
.sheet-team strong { color: var(--text); }

.sheet-empty { text-align: center; padding: 70px 20px; max-width: 480px; margin: 0 auto; }
.sheet-empty h1 { font-size: 1.8rem; margin: 10px 0 16px; }
.sheet-empty-text { color: var(--text-muted); margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  :root { --header-height: 59px; }
  .header-inner { padding: 14px 16px; }
  .logo-text { display: none; }
  .main-nav { gap: 10px; }
  .main-nav a { font-size: 0.84rem; }
  .theme-toggle, .admin-toggle { width: 30px; height: 30px; }
  .admin-banner { font-size: 0.74rem; padding: 8px 12px; }
  .hero { padding: 16px 20px; }
  .contact-card { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
  .contact-list { align-items: center; }
  .contact-list li { justify-content: center; }
  .show-card[data-pos="prev1"] { transform: translate(-50%, -50%) translateX(-62%) scale(0.72) rotateY(14deg); }
  .show-card[data-pos="next1"] { transform: translate(-50%, -50%) translateX(62%) scale(0.72) rotateY(-14deg); }
  .show-card[data-pos="prev2"], .show-card[data-pos="next2"] { opacity: 0; pointer-events: none; }
  .detail-body { padding: 24px 22px 0; }
  .admin-form { padding: 16px 22px 26px; }
  .admin-form-header { padding: 22px 22px 0; }
  .admin-form-row { grid-template-columns: 1fr; }
  .sheet-meta { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page mentions légales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding-bottom: 20px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.legal section { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border-soft); }
.legal h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; margin-bottom: 16px; }
.legal p { color: var(--text-muted); line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal dl {
  display: grid;
  grid-template-columns: minmax(150px, 34%) 1fr;
  gap: 10px 22px;
  margin: 0;
}
.legal dt { font-weight: 600; font-size: 0.88rem; }
.legal dd { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
/* Champ non encore renseigné : volontairement voyant, pour ne pas passer inaperçu. */
.legal-blank {
  color: #f0b429;
  background: rgba(240, 180, 41, 0.12);
  border-radius: 4px;
  padding: 1px 7px;
  font-style: italic;
}
.legal-todo {
  max-width: 760px;
  margin: 0 auto 30px;
  padding: 18px 22px;
  border: 1px solid rgba(240, 180, 41, 0.45);
  background: rgba(240, 180, 41, 0.08);
  border-radius: 14px;
  color: #f0b429;
  font-size: 0.88rem;
  line-height: 1.6;
}
.legal-todo ul { list-style: disc; margin: 10px 0 10px 20px; }
.legal-todo li { margin-bottom: 4px; }

@media (max-width: 620px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal dd { margin-bottom: 12px; }
}

/* ---------- Confort tactile et lisibilité sur petits écrans ---------- */

/* Sur un écran tactile, un lien de la taille de son texte est difficile à viser.
   On élargit la zone sensible sans changer l'apparence : seul le rembourrage
   grandit, la typographie et l'alignement restent identiques. */
@media (pointer: coarse) {
  .main-nav { gap: 20px; }
  .main-nav a { padding: 13px 2px; }
  .logo { padding: 6px 0; }
  .sheet-back-link { display: inline-block; padding: 10px 0; }
  .contact-list a { display: inline-block; padding: 11px 0; }
  .site-footer a { display: inline-block; padding: 8px 4px; }
  .theme-toggle, .admin-toggle { width: 42px; height: 42px; }
  /* Les points gardent leur apparence : la zone de contact est étendue par un
     pseudo-élément transparent, invisible mais atteignable au pouce. */
  .carousel-dots { gap: 14px; }
  .carousel-dot { position: relative; }
  .carousel-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 40px;
  }
}

@media (max-width: 720px) {
  /* Remontée des textes secondaires au-dessus du seuil de lisibilité (12 px). */
  .site-footer { font-size: 0.82rem; line-height: 1.5; }
  .detail-meta-item .label { font-size: 0.76rem; }
  .section-kicker, .hero-kicker { font-size: 0.78rem; }
  .sheet-dates-title { font-size: 0.76rem; }
  .lightbox-counter { font-size: 0.85rem; }
  .show-card-genre { font-size: 0.8rem; }

  /* Coordonnées : bloc centré, mais chaque ligne alignée à gauche pour que
     l'icône et un texte sur deux lignes restent solidaires. */
  .contact-list { max-width: 330px; margin: 0 auto; }
  .contact-list li { justify-content: flex-start; align-items: flex-start; text-align: left; }
  .contact-icon { margin-top: 2px; }

  /* Le carrousel photo laisse la place aux flèches plutôt que de passer dessous. */
  .photo-card { width: clamp(230px, 62vw, 300px); }
}

/* Compléments de confort tactile : boutons et liens restants sous 40 px. */
@media (pointer: coarse) {
  .logo { padding: 12px 14px; margin-left: -14px; }
  .show-card-detail-btn { padding: 11px 18px; }
  .btn { padding: 12px 24px; }
  .carousel-btn--sm { width: 44px; height: 44px; }
  .legal a { display: inline-block; padding: 11px 0; }
  .site-footer a { padding: 13px 6px; }
  .sheet-back-link { padding: 12px 0; }
}

/* Mention discrète sous le titre d'un spectacle (« Création en cours »…) :
   présente sans peser, pour signaler d'emblée qu'une fiche est incomplète
   parce que le spectacle n'existe pas encore. */
.show-mention {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--gold);
  margin-top: 4px;
}
/* Dans le panneau « Voir les détails », le titre porte déjà 18 px de marge
   basse : on la rattrape pour rapprocher la mention du titre, puis on rétablit
   le même espacement sous la mention avant l'encart durée / cible. */
.detail-body .show-mention {
  margin-top: -8px;
  margin-bottom: 20px;
}
/* Note sous la bande-annonce */
.sheet-video-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
