:root {
  --bg: #0b0d12;
  --ink: #eef1f7;
  --accent: #d4a017;
  --accent-2: #aa1737;
  --card: #171b24;
  --muted: #9aa2b3;
  --ok: #4ade80;
  --err: #ff6b6b;
  --border: #2b3244;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(212, 160, 23, 0.2) 0%, transparent 32%),
    radial-gradient(circle at 86% 96%, rgba(170, 23, 55, 0.24) 0%, transparent 34%),
    linear-gradient(170deg, #0b0d12 0%, #10131b 52%, #0e1118 100%);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.35;
}

.bg-shape-1 {
  width: 240px;
  height: 240px;
  background: rgba(212, 160, 23, 0.32);
  top: -60px;
  right: -80px;
  animation: drift 12s ease-in-out infinite;
}

.bg-shape-2 {
  width: 190px;
  height: 190px;
  background: rgba(170, 23, 55, 0.32);
  bottom: -50px;
  left: -40px;
  animation: drift 10s ease-in-out infinite reverse;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(11, 13, 18, 0.84);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1.65rem;
  color: var(--ink);
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  border-bottom-color: var(--accent);
}

a {
  color: #f0c14b;
}

a:hover {
  color: #ffd773;
}

.hero {
  margin: 2.4rem 0 1.6rem;
  animation: fade-in-up 0.6s ease;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #f0c14b;
  font-weight: 700;
}

h1,
h2,
strong {
  margin: 0;
}

h1,
h2 {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.seance-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
}

.seance-poster-col {
  width: 120px;
}

.seance-poster-link {
  display: block;
  border-radius: 12px;
}

.seance-poster-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.seance-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #363f53;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  background: #1a1f2b;
}

.seance-poster-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #9aa2b3;
  letter-spacing: 0.03em;
}

.seance-content-col {
  min-width: 0;
}

.chip {
  display: inline-block;
  border: 1px solid #40495f;
  border-radius: 100px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  color: #c6cfdf;
}

.meta,
small,
.hint {
  color: var(--muted);
}

.btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #10131a;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.btn:hover {
  filter: brightness(0.96);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-light {
  background: #30384b;
  color: #edf1f9;
}

.btn-danger {
  background: #8b1e3a;
  color: #f9eef1;
}

.btn-small {
  padding: 0.4rem 0.7rem;
}

.flash {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.flash-success {
  background: rgba(74, 222, 128, 0.12);
  color: var(--ok);
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.flash-error {
  background: rgba(255, 107, 107, 0.12);
  color: var(--err);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.vote-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  align-items: start;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vote-option:hover {
  border-color: #5e6780;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.vote-option input[type='radio'] {
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  accent-color: #d4a017;
}

.vote-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vote-content strong {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.film-tags {
  margin: 0.1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.film-tags li {
  background: #202736;
  border: 1px solid #3a4459;
  border-radius: 999px;
  color: #d8e0ef;
  padding: 0.22rem 0.58rem;
  font-size: 0.82rem;
}

/* Films detailles (vote page) */
.film-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.film-item {
  background: #1e2432;
  border: 1px solid #343d52;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.film-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.film-item-meta {
  font-size: 0.78rem;
  color: #d4a017;
}

.film-item-desc {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.seance-meta {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.9rem;
  color: #d4a017;
  font-weight: 700;
}

/* Formulaire dynamique ajout de films (admin) */
.films-builder {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.films-builder > label {
  font-weight: 700;
}

#films-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.film-entry {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.film-entry-fields {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.film-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.btn-remove-film {
  background: none;
  border: 1px solid #3a4459;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.btn-remove-film:hover {
  background: rgba(255, 107, 107, 0.14);
  border-color: var(--err);
  color: var(--err);
}

.btn-add-film {
  align-self: flex-start;
  border-radius: 8px;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  box-shadow: none;
}

.result-row {
  margin-bottom: 0.95rem;
}

.result-row p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.progress {
  background: #252c3d;
  height: 12px;
  border-radius: 30px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

input,
textarea {
  width: 100%;
  border: 1px solid #3a4459;
  border-radius: 10px;
  font: inherit;
  padding: 0.55rem 0.65rem;
  background: #121724;
  color: var(--ink);
}

input[type='date'],
input[type='time'],
input[type='password'],
input[type='text'],
input[type='number'],
input[type='url'],
textarea {
  width: 100%;
  border: 1px solid #3a4459;
  border-radius: 10px;
  font: inherit;
  padding: 0.55rem 0.65rem;
  background: #121724;
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #8b93a6;
}

input[type='checkbox'] {
  width: auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-login form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-login .btn {
  margin-top: 0.45rem;
  align-self: flex-start;
}

.admin-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.check-inline {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.check-inline input {
  width: auto;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.admin-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #141923;
}

.admin-list div {
  display: flex;
  flex-direction: column;
}

.item-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.item-actions form {
  margin: 0;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding: 1.4rem 0 2rem;
  color: #7f889a;
  text-align: center;
}
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #f0c14b;
  outline-offset: 2px;
}

.reveal {
  animation: fade-in-up 0.7s ease both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(16px) translateX(-8px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

@media (max-width: 860px) {
  .two-cols {
    grid-template-columns: 1fr;
  }

  .film-inline-fields {
    grid-template-columns: 1fr;
  }

  .seance-card {
    grid-template-columns: 88px 1fr;
    gap: 0.8rem;
  }

  .seance-poster-col {
    width: 88px;
  }

  .site-header .container {
    flex-direction: column;
    gap: 0.45rem;
  }
}
