/* ============================================================
   Variation A — "Nuit Bleue"
   Indigo & violet — Sophistication nocturne
   ============================================================ */

/* --- Variables & Reset --- */
:root {
  --bg: #F8F9FC;
  --bg-warm: #EEF0F7;
  --bg-card: #FFFFFF;
  --bg-teal: #161830;
  --bg-teal-light: #1E2045;
  --text: #171928;
  --text-2: #4A4E69;
  --text-3: #8B8FA8;
  --accent: #B11E2D;
  --accent-hover: #8F1723;
  --accent-2: #E06B75;
  --accent-muted: rgba(177, 30, 45, 0.08);
  --error: #DC2626;
  --success: #16A34A;
  --border: #DFE1EA;
  --border-strong: #B0B4C8;

  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-accent: 'Caveat', cursive;

  /* Admin compat */
  --color-black: #171928;
  --color-white: #F8F9FC;
  --color-gray-50: #EEF0F7;
  --color-gray-100: #E3E5EF;
  --color-gray-200: #DFE1EA;
  --color-gray-300: #C5C8D8;
  --color-gray-400: #8B8FA8;
  --color-gray-500: #6B7094;
  --color-gray-600: #4A4E69;
  --color-gray-700: #363A52;
  --color-gray-800: #252840;
  --color-gray-900: #171928;
  --color-amber-50: rgba(167,139,250,0.08);
  --color-amber-500: #A78BFA;
  --color-amber-600: #8B5CF6;
  --color-amber-700: #7C3AED;
  --color-red-50: rgba(220,38,38,0.06);
  --color-red-200: rgba(220,38,38,0.15);
  --color-red-600: #DC2626;
  --color-red-700: #B91C1C;
  --color-red-800: #991B1B;
  --color-green-50: rgba(22,163,74,0.06);
  --color-green-200: rgba(22,163,74,0.15);
  --color-green-500: #16A34A;
  --color-green-600: #15803D;
  --color-green-700: #166534;
  --color-green-800: #14532D;
  --color-yellow-50: rgba(167,139,250,0.06);
  --color-yellow-200: rgba(167,139,250,0.15);
  --color-yellow-700: #A78BFA;
  --color-yellow-800: #8B5CF6;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
  padding-bottom: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* --- Layout --- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Top Bar --- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.top-bar-logo:hover { color: var(--accent); }

.top-bar-nav {
  display: none;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.top-bar-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
}

.top-bar-nav a:hover,
.top-bar-nav a.active { color: var(--accent); }

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--bg-teal);
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #E3E5EF;
}

.mobile-menu a:hover { color: var(--accent-2); }

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #E3E5EF;
  font-size: 2rem;
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  background: var(--bg-warm);
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-title {
  font-size: 2rem;
  line-height: 1.3;
}

.hero-accent { color: var(--accent); }

.hero-tagline {
  margin-top: 0.75rem;
  font-family: var(--font-accent);
  font-size: 1.25rem;
  color: var(--accent);
}

/* --- Controls Bar --- */
.controls-bar {
  position: sticky;
  top: 49px;
  z-index: 90;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.controls-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.controls-label {
  font-size: 0.9375rem;
  color: var(--text-2);
}

.date-input {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  background: var(--bg-warm);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
}

.date-input:focus { border-color: var(--accent); }

.filter-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  background: var(--bg-warm);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239A8B78' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.filter-select:focus { border-color: var(--accent); }
.filter-select option { background: var(--bg-card); color: var(--text); }

/* Old classes compat */
.date-section { text-align: center; margin-bottom: 2rem; }
.date-section-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.date-label { font-size: 1.5rem; font-weight: 500; color: var(--text); font-family: var(--font-heading); }
.filters-section { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.filter-group { display: flex; align-items: center; gap: 0.5rem; }
.filter-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* --- Results --- */
.results-section {
  padding: 2rem 0 4rem;
}

.results-title {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.results-summary {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

/* --- Theatre Card (Warm card style) --- */
.theatre-card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: cascadeIn 0.5s ease-out both;
}

@keyframes cascadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  60% { transform: translateY(-3px); }
  100% { opacity: 1; transform: translateY(0); }
}

.theatre-card:nth-child(2) { animation-delay: 60ms; }
.theatre-card:nth-child(3) { animation-delay: 120ms; }
.theatre-card:nth-child(4) { animation-delay: 180ms; }
.theatre-card:nth-child(5) { animation-delay: 240ms; }
.theatre-card:nth-child(6) { animation-delay: 300ms; }

.theatre-card-header {
  padding: 1rem 1.25rem;
  background: var(--bg-warm);
  border-left: 4px solid var(--accent);
}

.theatre-card-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.theatre-card-info {
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.theatre-card-info:hover {
  color: var(--accent);
}

.theatre-card-name {
  font-size: 1.125rem;
  font-family: var(--font-heading);
  color: var(--text);
}

.theatre-card-address {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 0.25rem;
}

.theatre-card-body { padding: 0; }

/* --- Show Item --- */
.show-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.show-item:last-child { border-bottom: none; }

.show-item-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.show-item-content {
  display: flex;
  gap: 1rem;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.show-image-wrap {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-warm);
}

.show-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.show-item:hover .show-image { transform: scale(1.02); }

.show-image-placeholder {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.show-info { min-width: 0; flex: 1; }

.show-time {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.show-time--tbc {
  color: var(--text-3);
  font-style: italic;
  font-weight: 400;
}

.show-title {
  font-size: 1.125rem;
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.3;
}

.show-description {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.show-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
  margin-top: 0.75rem;
}

.show-btn:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}

.show-btn--complet {
  background: #4B5563; /* slate/grey */
  border: 1px solid #374151;
  color: #F9FAFB;
}

.show-btn--complet:hover {
  background: #374151;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg-warm);
  border-radius: 12px;
}

.empty-state-title {
  font-size: 1.125rem;
  color: var(--text-2);
  font-family: var(--font-heading);
}

.empty-state-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-3);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-teal);
  padding: 3rem 0;
  color: #E3E5EF;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-section h4 {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  color: #E3E5EF;
  margin-bottom: 0.75rem;
}

.footer-section p,
.footer-section a {
  font-size: 0.875rem;
  color: rgba(255, 244, 232, 0.8);
  line-height: 1.7;
}

.footer-section a:hover { color: var(--accent-2); }

.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 0.375rem; }
.footer-nav a { font-size: 0.875rem; color: rgba(255, 244, 232, 0.8); }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.12);
  color: #E3E5EF;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  outline: none;
}

.newsletter-input::placeholder { color: rgba(255,244,232,0.5); }
.newsletter-input:focus { border-color: var(--accent-2); }

.newsletter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 700;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-btn:hover { background: var(--accent-hover); }

.footer-tagline {
  font-size: 0.8125rem;
  color: rgba(255,244,232,0.5);
  font-style: italic;
  margin-top: 0.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}

.footer-bottom p { font-size: 0.75rem; color: rgba(255,244,232,0.4); }
.footer-text { font-size: 0.75rem; color: var(--text-3); }

/* --- Bottom Tabs (mobile) --- */
.bottom-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

.bottom-tab.active { color: var(--accent); }
.bottom-tab:hover { color: var(--accent); }

/* --- Spinner --- */
.spinner-wrap {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Error --- */
.error-box {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1rem;
  color: var(--error);
  font-size: 0.875rem;
  border-radius: 8px;
}

.error-box--red {
  border-color: rgba(196,69,58,0.2);
  background: rgba(196,69,58,0.05);
  color: var(--error);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1rem;
}

.login-card { width: 100%; max-width: 24rem; }

.login-card-inner {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-back { margin-top: 1rem; text-align: center; font-size: 0.875rem; color: var(--text-3); }
.login-back a { color: var(--accent); }

/* ============================================================
   ADMIN PAGE
   ============================================================ */

.admin-page { min-height: 100vh; background: var(--bg); }
.admin-header { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.admin-header-title { font-size: 1.25rem; font-weight: 700; color: var(--text); font-family: var(--font-body); }
.admin-header-sub { font-size: 0.875rem; color: var(--text-3); }
.admin-header-actions { display: flex; align-items: center; gap: 1rem; }
.admin-header-actions a { font-size: 0.875rem; color: var(--text-2); }
.btn-logout { font-size: 0.875rem; color: var(--error); background: none; border: none; cursor: pointer; }
.admin-panel { margin-top: 2rem; margin-bottom: 2rem; }
.admin-card { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.admin-tabs { border-bottom: 1px solid var(--border); display: flex; overflow-x: auto; }
.admin-tab { padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 500; white-space: nowrap; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; cursor: pointer; color: var(--text-3); }
.admin-tab:hover { color: var(--text-2); }
.admin-tab--active { border-bottom-color: var(--accent); color: var(--accent); }
.admin-content { padding: 1.5rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-2); margin-bottom: 0.25rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 0.5rem;
  font-size: 0.875rem; font-family: inherit; outline: none; background: var(--bg-card); color: var(--text);
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-hint { margin-top: 0.25rem; font-size: 0.75rem; color: var(--text-3); }
.form-row { display: grid; gap: 1rem; }
.form-message { border-radius: 0.5rem; padding: 0.75rem; font-size: 0.875rem; margin-bottom: 1rem; }
.form-message--success { background: rgba(90,158,111,0.08); color: var(--success); border: 1px solid rgba(90,158,111,0.15); }
.form-message--error { background: rgba(196,69,58,0.06); color: var(--error); border: 1px solid rgba(196,69,58,0.15); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 0.75rem; font-size: 0.875rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--bg-card); color: var(--text); cursor: pointer; transition: background 0.15s; }
.btn:hover { background: var(--bg-warm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--full { width: 100%; padding: 0.625rem 1rem; font-weight: 500; }
.btn--danger-sm { font-size: 0.75rem; padding: 0.25rem 0.5rem; color: var(--error); border-color: rgba(196,69,58,0.2); }
.btn--danger-sm:hover { background: rgba(196,69,58,0.05); }

.btn-toggle { font-size: 0.875rem; padding: 0.375rem 0.75rem; border-radius: 0.5rem; border: 1px solid var(--border); background: var(--bg-card); cursor: pointer; color: var(--text-2); }
.btn-toggle:hover { background: var(--bg-warm); }
.btn-toggle--red { background: rgba(196,69,58,0.05); border-color: rgba(196,69,58,0.15); color: var(--error); }
.btn-toggle--green { background: rgba(90,158,111,0.05); border-color: rgba(90,158,111,0.15); color: var(--success); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
thead tr { border-bottom: 1px solid var(--border); text-align: left; }
thead th { padding: 0.5rem 1rem 0.5rem 0; font-weight: 500; color: var(--text-3); }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--bg-warm); }
tbody td { padding: 0.5rem 1rem 0.5rem 0; color: var(--text-2); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; }
.badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.badge--green { background: rgba(90,158,111,0.1); color: var(--success); }
.badge--green .badge-dot { background: var(--success); }
.badge--amber { background: rgba(212,168,67,0.1); color: var(--accent-2); }
.badge--amber .badge-dot { background: var(--accent-2); }

/* Alerts */
.alert { border-radius: 0.5rem; padding: 1rem; margin-bottom: 1rem; }
.alert--amber { background: rgba(212,168,67,0.08); border: 1px solid rgba(212,168,67,0.15); }
.alert--red { background: rgba(196,69,58,0.05); border: 1px solid rgba(196,69,58,0.15); }
.alert--green { background: rgba(90,158,111,0.05); border: 1px solid rgba(90,158,111,0.15); }
.alert--yellow { background: rgba(212,168,67,0.05); border: 1px solid rgba(212,168,67,0.15); }
.alert-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; color: var(--text); }
.alert-text { font-size: 0.875rem; color: var(--text-2); }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.kpi-card { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; background: var(--bg-card); }
.kpi-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-top: 0.25rem; }
.kpi-sub { font-size: 0.75rem; margin-top: 0.125rem; color: var(--text-3); }
.kpi-sub--amber { color: var(--accent-2); }
.kpi-sub--green { color: var(--success); }

/* Progress */
.progress-bar-wrap { margin-bottom: 1.5rem; }
.progress-bar-header { display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.25rem; }
.progress-bar-label { color: var(--text-2); font-weight: 500; }
.progress-bar-pct { color: var(--text-3); }
.progress-bar { height: 0.75rem; background: var(--bg-warm); border-radius: 9999px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 9999px; background: var(--accent); transition: width 0.3s ease; }
.progress-sm { height: 0.375rem; }
.progress-fill--green { background: var(--success); }
.progress-fill--amber { background: var(--accent-2); }
.progress-fill--red { background: var(--error); }

/* Misc admin */
.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-title { font-size: 1.125rem; font-weight: 600; color: var(--text); font-family: var(--font-body); }
.section-subtitle { font-size: 0.875rem; color: var(--text-3); }

.hidden { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-mono { font-family: monospace; font-size: 0.75rem; }

.spinner--amber { border-color: var(--accent); border-top-color: transparent; width: 2rem; height: 2rem; }

.list-item { border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.75rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.list-item-title { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-sub { font-size: 0.875rem; color: var(--text-3); }
.list-item-meta { font-size: 0.75rem; color: var(--text-3); margin-top: 0.125rem; }
.list-item-date { font-size: 0.75rem; color: var(--text-3); white-space: nowrap; }

.scroll-area { max-height: 24rem; overflow-y: auto; }
.section-space { margin-bottom: 1.5rem; }
.section-divider { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 2rem; }
.toggle-bar { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.toggle-extra { font-size: 0.75rem; color: var(--text-3); }

.fields-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.field-card { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.field-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.field-value { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-top: 0.25rem; }
.field-value--ok { color: var(--success); }
.field-sub { font-size: 0.75rem; color: var(--text-3); }

.chart-wrap { margin-bottom: 2rem; }
.chart-title { font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 1rem; }
.chart-container { position: relative; height: 16rem; }
.chart-container--tall { height: 20rem; }

.classement-list { max-height: 32rem; overflow-y: auto; }
.classement-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 0.5rem; margin-bottom: 0.375rem; background: var(--bg-card); transition: background 0.1s; }
.classement-row:hover { background: var(--bg-warm); }
.classement-rank { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bg-warm); font-size: 0.75rem; font-weight: 600; color: var(--text-2); flex-shrink: 0; }
.classement-name { flex: 1; font-size: 0.875rem; color: var(--text); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.classement-actions { display: flex; gap: 0.25rem; flex-shrink: 0; align-items: center; }
.classement-select { height: 1.9rem; border: 1px solid var(--border); border-radius: 0.375rem; background: var(--bg-card); font-size: 0.75rem; color: var(--text-2); padding: 0 0.35rem; }
.classement-arrow { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--border); border-radius: 0.375rem; background: var(--bg-card); cursor: pointer; font-size: 0.625rem; color: var(--text-3); transition: background 0.1s, color 0.1s; }
.classement-arrow:hover:not(:disabled) { background: rgba(79,70,229,0.08); color: var(--accent); border-color: var(--accent); }
.classement-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

.todo-item { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: 0.75rem; }
.todo-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.todo-item-theatre { font-size: 0.875rem; color: var(--text-3); }
.todo-item-title { font-weight: 500; color: var(--text); }
.todo-item-meta { font-size: 0.75rem; color: var(--text-3); margin-top: 0.25rem; }
.todo-item-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.todo-url-input { width: 18rem; max-width: 50vw; padding: 0.5rem 0.75rem; font-size: 0.875rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--bg-card); color: var(--text); }
.todo-link { font-size: 0.75rem; color: var(--accent); margin-top: 0.25rem; }
.todo-link:hover { text-decoration: underline; }

.theatre-list-panel { border-radius: 0.5rem; padding: 1rem; margin-bottom: 1rem; }
.theatre-list-panel--red { background: rgba(196,69,58,0.05); border: 1px solid rgba(196,69,58,0.15); }
.theatre-list-panel--green { background: rgba(90,158,111,0.05); border: 1px solid rgba(90,158,111,0.15); }
.theatre-list-panel-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text); }
.theatre-list-grid { display: grid; grid-template-columns: 1fr; gap: 0.25rem; }
.theatre-list-item { font-size: 0.875rem; color: var(--text-2); }

.preview-box { background: var(--bg-warm); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem; margin-bottom: 1rem; }
.preview-title { font-size: 0.875rem; font-weight: 500; color: var(--text-2); margin-bottom: 0.5rem; }
.preview-box table { font-size: 0.75rem; }

.file-input-wrap { margin-bottom: 0.5rem; }
.file-input-wrap input[type="file"] { font-size: 0.875rem; color: var(--text-3); }
.file-input-wrap input[type="file"]::file-selector-button { margin-right: 1rem; padding: 0.5rem 1rem; border-radius: 0.5rem; border: none; font-size: 0.875rem; font-weight: 500; background: rgba(79,70,229,0.1); color: var(--accent); cursor: pointer; }

/* ============================================================
   CETTE SEMAINE
   ============================================================ */

.weekly-page {
  padding-bottom: 4rem;
}

.weekly-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(circle at top left, rgba(177, 30, 45, 0.08), transparent 32%),
    linear-gradient(180deg, #FCFCFE 0%, #F3F4FA 100%);
  border-bottom: 1px solid rgba(23, 25, 40, 0.08);
}

.weekly-hero-grid {
  display: grid;
  gap: 1.5rem;
}

.weekly-hero-copy {
  max-width: 42rem;
}

.weekly-kicker,
.weekly-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(177, 30, 45, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weekly-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  margin-top: 1rem;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.weekly-lead {
  margin-top: 1.1rem;
  max-width: 38rem;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.8;
}

.weekly-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.weekly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.weekly-btn:hover {
  transform: translateY(-1px);
}

.weekly-btn-primary {
  background: var(--accent);
  color: #fffaf8;
  box-shadow: 0 12px 30px rgba(177, 30, 45, 0.16);
}

.weekly-btn-primary:hover {
  color: #fffaf8;
  background: var(--accent-hover);
}

.weekly-btn-secondary {
  background: rgba(255,255,255,0.78);
  border-color: rgba(23, 25, 40, 0.1);
  color: var(--text);
}

.weekly-intro-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(23, 25, 40, 0.1);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: 0 24px 48px rgba(23, 25, 40, 0.08);
  backdrop-filter: blur(8px);
}

.weekly-intro-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.weekly-intro-text {
  margin-top: 0.65rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.75;
}

.weekly-intro-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.weekly-intro-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-2);
}

.weekly-intro-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.weekly-subtitle {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 25, 40, 0.08);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
}

.weekly-content {
  padding: 2.25rem 0 0;
}

.weekly-section-head {
  display: grid;
  gap: 0.9rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.weekly-section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-top: 0.7rem;
  line-height: 1.02;
}

.weekly-section-note {
  color: var(--text-2);
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.weekly-grid {
  display: grid;
  gap: 1.1rem;
}

.weekly-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(23, 25, 40, 0.08);
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 16px 32px rgba(23, 25, 40, 0.05);
}

.weekly-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(177, 30, 45, 0.08), rgba(177, 30, 45, 0.02));
  color: var(--accent);
  min-height: 100%;
  padding: 0.85rem 0.5rem;
}

.weekly-card-day {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weekly-card-number {
  font-size: 2rem;
  line-height: 1;
  margin: 0.35rem 0 0.2rem;
  color: var(--text);
}

.weekly-card-month {
  font-size: 0.78rem;
  color: var(--text-2);
  text-transform: uppercase;
}

.weekly-card-main {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.weekly-card-media {
  position: relative;
  min-height: 190px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #22253f 0%, #131525 100%);
}

.weekly-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weekly-card-media-empty {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
}

.weekly-card-media-label {
  display: inline-flex;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.86);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weekly-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.weekly-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.weekly-card-time,
.weekly-card-venue {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.weekly-card-time {
  background: rgba(177, 30, 45, 0.09);
  color: var(--accent);
}

.weekly-card-venue {
  background: rgba(23, 25, 40, 0.05);
  color: var(--text-2);
}

.weekly-card-title {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.08;
  margin-top: 0.8rem;
}

.weekly-card-description {
  margin-top: 0.7rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 56ch;
}

.weekly-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.1rem;
}

.weekly-card-date-label {
  color: var(--text-3);
  font-size: 0.9rem;
}

.weekly-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(177, 30, 45, 0.08);
  border: 1px solid rgba(177, 30, 45, 0.14);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.weekly-card-link:hover {
  color: var(--accent-hover);
  background: rgba(177, 30, 45, 0.13);
  border-color: rgba(177, 30, 45, 0.24);
}

.weekly-footnote {
  margin-top: 0.8rem;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (min-width: 900px) {
  .weekly-hero-grid,
  .weekly-section-head {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 640px) {
  .top-bar-nav { display: flex; }
  .hamburger { display: none; }
  .bottom-tabs { display: none !important; }
  .hero-title { font-size: 2.5rem; }

  .show-item-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .show-item-content { flex-direction: row; align-items: flex-start; }
  .show-image-wrap { width: 140px; height: 100px; border-radius: 8px; flex-shrink: 0; }
  .show-image-placeholder { width: 140px; height: 100px; flex-shrink: 0; }
  .show-btn { margin-top: 0; width: auto; }

  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }

  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .fields-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .theatre-list-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 899px) {
  .weekly-section-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 779px) {
  .weekly-card-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  body { padding-bottom: 3.5rem; }
  .bottom-tabs { display: flex; }
  .hero { padding: 2rem 0 1.5rem; }
  .hero-title { font-size: 1.5rem; }
  .controls-inner { flex-direction: column; gap: 0.5rem; }
  .controls-label { display: none; }
  .date-input, .filter-select { width: 100%; }

  .weekly-hero {
    padding: 2.25rem 0 1.75rem;
  }

  .weekly-title {
    max-width: none;
  }

  .weekly-intro-card {
    border-radius: 20px;
    padding: 1.2rem;
  }

  .weekly-card {
    grid-template-columns: 1fr;
    padding: 0.9rem;
    border-radius: 20px;
  }

  .weekly-card-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: auto;
    padding: 0.7rem 0.85rem;
  }

  .weekly-card-number {
    font-size: 1.35rem;
    margin: 0;
  }

  .weekly-card-main {
    grid-template-columns: 1fr;
  }

  .weekly-card-media {
    min-height: 180px;
  }

  .weekly-card-footer {
    align-items: stretch;
  }

  .weekly-card-link {
    width: 100%;
  }

  .show-item-inner { flex-direction: column; }
  .show-item-content { flex-direction: column; width: 100%; }
  .show-image-wrap { width: 100%; height: 180px; }
  .show-image-placeholder { width: 100%; height: 120px; }
  .show-btn { width: 100%; justify-content: center; }
}

/* Day navigation buttons (prev/next next to date picker) */
.day-nav {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--background-white);
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.12s ease, border-color 0.12s ease;
}

.day-nav:hover {
  background: rgba(79, 70, 229, 0.06);
  border-color: rgba(79, 70, 229, 0.25);
}

.day-nav:active {
  transform: translateY(1px);
}

.day-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

