:root {
  --bg: #0b0a08;
  --bg-alt: #121009;
  --ivory: #f1ead9;
  --ivory-dim: #cfc6b2;
  --gold: #c9a24c;
  --gold-dim: #8a7239;
  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Work Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 6vw;
  mix-blend-mode: difference;
}

.brand {
  font-family: var(--serif);
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}

.topnav-links a {
  margin-left: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.topnav-links a:hover { opacity: 1; }
.topnav-links a.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Bouton remonter en haut */
.back-to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,76,0.5);
  background: var(--bg);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 20;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover { background: rgba(201,162,76,0.12); }

/* Easter egg "210" : effet spectaculaire de vitesse */
.secret-reveal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: secretShake 0.6s ease;
}

.secret-reveal[hidden] { display: none; }

@keyframes secretShake {
  0% { transform: translate(0,0); }
  10% { transform: translate(-6px, 3px); }
  20% { transform: translate(5px,-4px); }
  30% { transform: translate(-4px,5px); }
  40% { transform: translate(6px,-2px); }
  50% { transform: translate(-3px,3px); }
  60% { transform: translate(2px,-5px); }
  70%, 100% { transform: translate(0,0); }
}

.secret-speedlines { position: absolute; inset: 0; }

.secret-speedlines span {
  position: absolute;
  height: 2px;
  width: 140%;
  left: -120%;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
  opacity: 0;
  transform: rotate(-8deg);
  animation: speedLine 0.55s linear forwards;
}

.secret-speedlines span:nth-child(1) { top: 8%;  animation-delay: 0s; }
.secret-speedlines span:nth-child(2) { top: 18%; animation-delay: 0.03s; }
.secret-speedlines span:nth-child(3) { top: 30%; animation-delay: 0.06s; }
.secret-speedlines span:nth-child(4) { top: 44%; animation-delay: 0.02s; }
.secret-speedlines span:nth-child(5) { top: 56%; animation-delay: 0.08s; }
.secret-speedlines span:nth-child(6) { top: 68%; animation-delay: 0.04s; }
.secret-speedlines span:nth-child(7) { top: 80%; animation-delay: 0.07s; }
.secret-speedlines span:nth-child(8) { top: 92%; animation-delay: 0.01s; }

@keyframes speedLine {
  0% { transform: translateX(0) rotate(-8deg); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateX(220%) rotate(-8deg); opacity: 0; }
}

.secret-flash {
  position: absolute;
  inset: 0;
  background: var(--gold);
  opacity: 0;
  mix-blend-mode: screen;
  animation: secretFlash 0.6s ease forwards;
  animation-delay: 0.35s;
}

@keyframes secretFlash {
  0% { opacity: 0; }
  50% { opacity: 0.85; }
  100% { opacity: 0; }
}

.secret-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 560px;
  padding: 2rem;
  opacity: 0;
  transform: scale(0.85);
  animation: secretContentIn 0.8s ease forwards;
  animation-delay: 0.6s;
}

@keyframes secretContentIn {
  to { opacity: 1; transform: scale(1); }
}

.secret-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.secret-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--ivory);
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 0 30px rgba(201,162,76,0.4);
}

.secret-close {
  background: none;
  border: 1px solid rgba(201,162,76,0.5);
  color: var(--gold);
  padding: 0.7rem 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}

.secret-close:hover { background: rgba(201,162,76,0.12); }

@media (prefers-reduced-motion: reduce) {
  .secret-reveal, .secret-speedlines span, .secret-flash, .secret-content {
    animation: none !important;
  }
  .secret-content { opacity: 1; transform: none; }
}

/* Menu mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ivory);
}

/* Barre de progression */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 60;
  transition: width 0.1s linear;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6vw;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,162,76,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid rgba(201,162,76,0.18);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-content { max-width: 780px; }

.hero-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 85% 80% at center, black 45%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at center, black 45%, transparent 92%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.55) contrast(0.95) brightness(0.9);
  opacity: 0.88;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,10,8,0.1) 40%, rgba(11,10,8,0.75) 100%),
              linear-gradient(90deg, rgba(11,10,8,0.35), transparent 35%);
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; margin: 2rem auto 0 auto; order: 2; }
  .hero-content { order: 1; }
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 1.02;
  margin: 0 0 1.6rem 0;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ivory-dim);
  max-width: 480px;
  margin-bottom: 2.4rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gold-dim);
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.btn-primary:hover { background: transparent; color: var(--gold); }

.btn-ghost {
  color: var(--ivory);
  border-color: rgba(241,234,217,0.3);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.section {
  padding: 6rem 6vw;
  max-width: 980px;
  margin: 0 auto;
}

.section-alt { background: var(--bg-alt); max-width: 100%; }
.section-alt > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.section-alt .section-kicker,
.section-alt .section-title,
.section-alt .update-card { max-width: 980px; }

.section-kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 1.8rem 0;
}

.section-intro {
  color: var(--ivory-dim);
  max-width: 640px;
  font-size: 1.02rem;
}

/* Timeline */
.timeline-wrap {
  position: relative;
  margin: 3.5rem 0 0 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(201,162,76,0.3);
}

/* Curseur qui avance le long de la frise, au rythme de l'année de défi */
.timeline-progress-fill {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--gold), #8a7239);
  transition: height 1.6s ease;
  z-index: 1;
}

.timeline-cursor {
  position: absolute;
  left: -6px;
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,76,0.25), 0 0 12px rgba(201,162,76,0.55);
  transition: top 1.6s ease;
  z-index: 2;
  animation: cursorPulse 2.4s ease-in-out infinite;
}

@keyframes cursorPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,162,76,0.25), 0 0 12px rgba(201,162,76,0.55); }
  50% { box-shadow: 0 0 0 7px rgba(201,162,76,0.12), 0 0 18px rgba(201,162,76,0.8); }
}

.year-progress-caption {
  margin: 1.6rem 0 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.ep {
  position: relative;
  padding: 0 0 2.6rem 2.6rem;
  display: flex;
  gap: 1.4rem;
  align-items: baseline;
}

.ep::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold-dim);
}

.ep.is-out::before { background: var(--gold); border-color: var(--gold); }
.ep.is-next::before { background: var(--bg); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,76,0.18); }

.ep-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-dim);
  font-size: 0.95rem;
  min-width: 1.6rem;
}

.ep-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0 0 0.3rem 0;
}

.ep-theme {
  color: var(--ivory-dim);
  font-size: 0.92rem;
  margin: 0 0 0.3rem 0;
}

.ep-status {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0;
}

.ep.is-out .ep-status { color: var(--gold); }
.ep.is-next .ep-status { color: var(--ivory); }

/* Update card */
.update-card {
  margin-top: 3rem;
  border: 1px solid rgba(201,162,76,0.25);
  padding: 2.2rem 2.4rem;
  background: rgba(201,162,76,0.03);
}

.update-date {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem 0;
}

.update-text {
  margin: 0;
  color: var(--ivory-dim);
  max-width: 680px;
}

/* Social */
.social-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.social-row a {
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.3rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold); }

.section-contact { text-align: center; }
.section-contact .section-intro { margin: 0 auto 2.4rem auto; }
.btn-contact { margin-top: 0.5rem; }

/* Section artiste avec photo */
.artiste-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.artiste-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(201,162,76,0.3);
}

.artiste-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.85) contrast(1.05);
}

@media (max-width: 860px) {
  .artiste-grid { grid-template-columns: 1fr; }
  .artiste-photo { max-width: 320px; margin: 2rem auto 0 auto; }
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0.8rem;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  background: var(--bg);
  border: 1px solid rgba(201,162,76,0.3);
  border-radius: 6px;
  color: var(--ivory);
  padding: 0.95rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  flex: 1;
  min-width: 200px;
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); }

.newsletter-feedback {
  margin-top: 1.2rem;
  color: var(--gold);
  font-size: 0.9rem;
}

/* Onglets de jeux (section "Jouer") */
.game-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 2rem 0 2.5rem 0;
}

.game-tab {
  background: transparent;
  border: 1px solid rgba(201,162,76,0.3);
  color: var(--ivory-dim);
  padding: 0.7rem 1.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.game-tab:hover { border-color: var(--gold); color: var(--ivory); }
.game-tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.game-pane { display: none; }
.game-pane.is-active { display: block; }

/* Bloc final : newsletter + lien mail, regroupés sous le chat */
.closing-row {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(201,162,76,0.2);
  max-width: 560px;
  text-align: center;
}
.closing-row .community-label { justify-content: center; }
.closing-row .newsletter-form { margin-bottom: 1rem; }

.closing-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--ivory-dim);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.2rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.closing-link:hover { color: var(--gold); border-color: var(--gold); }

.footer {
  text-align: center;
  padding: 3rem 6vw;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border-top: 1px solid rgba(201,162,76,0.18);
}

.ep-mystery { font-style: italic; color: var(--ivory-dim); opacity: 0.8; }

/* Quiz */
.quiz {
  margin-top: 3rem;
  max-width: 640px;
}

.quiz-q {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 1.6rem;
}

.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quiz-opts button {
  text-align: left;
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(201,162,76,0.3);
  padding: 1rem 1.3rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-opts button:hover {
  border-color: var(--gold);
  background: rgba(201,162,76,0.06);
  color: var(--gold);
}

.quiz-result {
  padding-top: 1rem;
}

.quiz-result-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.quiz-result-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0 0 1rem 0;
}

.quiz-result-text {
  color: var(--ivory-dim);
  margin-bottom: 1.8rem;
  max-width: 560px;
}

.quiz-restart {
  display: block;
  margin-top: 1.2rem;
  background: none;
  border: none;
  color: var(--ivory-dim);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-decoration: underline;
  cursor: pointer;
}
.quiz-restart:hover { color: var(--gold); }

.share-btn {
  display: inline-block;
  margin: 0.9rem 0.8rem 0 0;
}

/* Compteur de vitesse */
.speedo {
  margin-top: 3rem;
  max-width: 640px;
}

.speedo-dial {
  text-align: center;
  margin-bottom: 2.6rem;
}

.speedo-svg {
  width: 100%;
  max-width: 320px;
}

#speedo-arc {
  transition: stroke-dashoffset 1s ease;
}

#speedo-needle {
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.speedo-readout {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-top: -0.6rem;
}

.speedo-result .btn { margin-top: 0.6rem; margin-right: 0.8rem; display: inline-block; }

/* Carte du jour */
.tarot {
  margin-top: 3rem;
  max-width: 420px;
}

.tarot-card {
  position: relative;
  width: 260px;
  height: 360px;
  margin: 0 auto 2.2rem auto;
  perspective: 1200px;
}

.tarot-face {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.6rem;
  backface-visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tarot-back {
  background: radial-gradient(ellipse at center, rgba(201,162,76,0.08), var(--bg-alt) 70%);
}

.tarot-mark {
  font-size: 2.4rem;
  color: var(--gold-dim);
}

.tarot-front {
  background: var(--bg-alt);
}

.tarot-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 1.2rem 0;
}

.tarot-phrase {
  color: var(--ivory-dim);
  font-size: 0.95rem;
  margin: 0 0 1.4rem 0;
}

.tarot-flag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0;
}

.tarot-btn { display: block; margin: 0 auto; }

.tarot-note {
  text-align: center;
  color: var(--ivory-dim);
  font-size: 0.85rem;
  margin-top: 1.2rem;
  font-style: italic;
}

/* Écran d'accueil */
body.gate-open {
  overflow: hidden;
  height: 100vh;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.9s ease;
}

.entry-gate.gate-hidden {
  opacity: 0;
  pointer-events: none;
}

.entry-gate-content {
  max-width: 560px;
}

.entry-gate-kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  margin-bottom: 2.2rem;
  font-size: 1rem;
}

.entry-gate-text {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.5;
  color: var(--ivory);
  margin-bottom: 2.6rem;
}

.entry-gate-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.9rem 2.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.entry-gate-btn:hover {
  background: var(--gold);
  color: var(--bg);
}

/* Chat communauté */
.community-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.community-emoji { font-style: normal; font-size: 1.05rem; }

.chat {
  margin-top: 3rem;
  max-width: 560px;
  background: rgba(201,162,76,0.045);
  border: 1px solid rgba(201,162,76,0.18);
  border-radius: 10px;
  padding: 1.6rem;
}

.chat-pseudo {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.chat-pseudo input,
.chat-text-input,
#chat-text-input {
  background: var(--bg);
  border: 1px solid rgba(201,162,76,0.3);
  border-radius: 6px;
  color: var(--ivory);
  padding: 0.85rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  flex: 1;
  min-width: 160px;
}
.chat-pseudo input:focus,
#chat-text-input:focus {
  outline: none;
  border-color: var(--gold);
}

.chat-box {
  border: 1px solid rgba(201,162,76,0.25);
  border-radius: 8px;
  background: rgba(201,162,76,0.03);
  overflow: hidden;
}

.chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.chat-msg {
  max-width: 85%;
}

.chat-msg-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold);
  margin: 0 0 0.15rem 0;
}

.chat-msg-text {
  font-size: 0.92rem;
  color: var(--ivory);
  margin: 0;
  line-height: 1.45;
  word-break: break-word;
}

.chat-msg.is-lea .chat-msg-name { color: var(--gold); }
.chat-msg.is-lea .chat-msg-text {
  background: rgba(201,162,76,0.1);
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  display: inline-block;
}

.chat-form {
  display: flex;
  border-top: 1px solid rgba(201,162,76,0.25);
}

.chat-form input {
  border: none;
  background: transparent;
}

.chat-form button {
  border: none;
  padding: 0.85rem 1.4rem;
  font-size: 0.78rem;
}

.chat-demo-note {
  font-size: 0.75rem;
  color: var(--ivory-dim);
  font-style: italic;
  margin-top: 0.8rem;
}

.film {
  margin-top: 3.4rem;
}

.film-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  margin: 0.5rem 0 1.3rem 0;
  color: var(--ivory);
}

.film-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(201,162,76,0.3);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(241,234,217,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film-soon {
  color: var(--ivory-dim);
  font-style: italic;
  font-size: 0.95rem;
  padding: 1rem;
  text-align: center;
}

.lea-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ivory-dim);
  max-width: 480px;
  margin: 3.4rem auto 0 auto;
  line-height: 1.6;
  text-align: center;
}

.fade-target {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-target.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Révélation au scroll : simple fondu + léger mouvement vers le haut */
.reveal-text {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-text { transition: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .topnav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 300px);
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem 2.4rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    mix-blend-mode: normal;
    border-left: 1px solid rgba(201,162,76,0.25);
  }
  .topnav-links.open { transform: translateX(0); }
  .topnav-links a { margin-left: 0; font-size: 0.95rem; }
}

@media (max-width: 640px) {
  .section { padding: 5rem 6vw; }
  .ep { flex-direction: column; gap: 0.2rem; }
}

/* Les <button> gardent un fond gris par défaut tant qu'on ne le retire pas explicitement */
button.btn {
  background: transparent;
  font-family: var(--sans);
  cursor: pointer;
}
button.btn-primary { background: var(--gold); }

/* Accessibilité : focus clavier visible partout */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Respecte la préférence "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
