/* ==========================================================================
   MyNina — Landing multi-programmes — Design tokens
   ========================================================================== */
:root {
  --bg-void: #0A050E;
  --bg-panel: #160E1D;
  --bg-panel-2: #1F1427;
  --bg-panel-3: #291A33;
  --violet: #542B5E;
  --violet-soft: #3A2244;
  --rose: #FF165D;
  --rose-dim: #B4104A;
  --rose-glow: rgba(255, 22, 93, 0.35);
  --text-primary: #FBF7FA;
  --text-secondary: #B7AEC0;
  --text-tertiary: #756C81;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --success: #3DDC97;
  --danger: #FF5D77;
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* Animations d'apparition au scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 5, 14, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.nav-overlay { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(10,5,14,0.75), transparent); border: none; backdrop-filter: none; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 24px; width: auto; }
.nav-back { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; transition: color 0.2s ease; }
.nav-back:hover { color: var(--text-primary); }
.nav-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ==========================================================================
   Hero vidéo (accueil + page programme) avec bouton son
   ========================================================================== */
.media-hero { position: relative; min-height: 92vh; overflow: hidden; display: flex; align-items: flex-end; }
.media-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,5,14,0.35) 0%, rgba(10,5,14,0.35) 40%, var(--bg-void) 96%),
              linear-gradient(90deg, rgba(10,5,14,0.75) 0%, rgba(10,5,14,0.15) 55%);
  pointer-events: none;
}
.media-hero-content { position: relative; z-index: 2; padding: 0 20px 64px; max-width: 720px; }
.sound-toggle {
  position: absolute; bottom: 24px; right: 24px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,5,14,0.55); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.sound-toggle:hover { background: rgba(10,5,14,0.8); transform: scale(1.06); }
.sound-toggle svg { width: 20px; height: 20px; }

/* ==========================================================================
   HUB — hero d'accueil
   ========================================================================== */
.hub-hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose); margin-bottom: 12px; }
.hub-hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 7vw, 62px); margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hub-hero-sub { color: var(--text-secondary); font-size: 16px; max-width: 520px; margin-bottom: 26px; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 10px 18px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.scroll-cue:hover { border-color: var(--rose); color: var(--text-primary); }

/* ==========================================================================
   Carrousel — 3 cartes visibles, plus grandes, avec animations
   ========================================================================== */
.carousel-section { padding: 56px 0 60px; max-width: 1240px; margin: 0 auto; }
.section-heading {
  padding: 0 64px 20px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20px, 3vw, 28px);
}
.carousel-row { position: relative; }
.program-carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 64px 16px; scrollbar-width: none;
}
.program-carousel::-webkit-scrollbar { display: none; }
.carousel-arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,5,14,0.75); border: 1px solid var(--border-strong);
  color: #fff; font-size: 22px; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover { background: var(--rose); transform: translateY(-50%) scale(1.08); }
.carousel-arrow-left { left: 12px; }
.carousel-arrow-right { right: 12px; }

.program-card {
  position: relative; scroll-snap-align: start;
  flex: 0 0 calc((100% - 40px) / 3);
  border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-panel-3), var(--bg-panel));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover { transform: translateY(-6px) scale(1.03); border-color: rgba(255, 22, 93, 0.5); box-shadow: 0 16px 40px rgba(255,22,93,0.25); z-index: 2; }
.program-card-poster, .program-card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.program-card-video { opacity: 0; transition: opacity 0.3s ease; }
.program-card:hover .program-card-video { opacity: 1; }
.program-card-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,5,14,0) 45%, rgba(10,5,14,0.92) 100%);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity 0.3s ease;
}
.program-card:hover .program-card-overlay { opacity: 1; }
.program-card-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; }

@media (max-width: 900px) {
  .program-card { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 560px) {
  .program-card { flex: 0 0 84%; }
  .program-carousel { padding: 4px 44px 16px; }
  .section-heading { padding: 0 44px 16px; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 17px; }
}

/* ==========================================================================
   Page détail programme — contenu sous le hero
   ========================================================================== */
.genre-pill {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rose); border: 1px solid rgba(255, 22, 93, 0.4); border-radius: 999px; padding: 5px 12px;
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 7vw, 60px); margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.synopsis-text { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.hero-synopsis { max-width: 560px; margin-bottom: 22px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }

.hero-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.price-old { color: var(--text-tertiary); text-decoration: line-through; font-size: 15px; }
.price-new { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--rose); }
.price-per { color: var(--text-secondary); font-size: 13px; }

.promo-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--rose); background: rgba(255,22,93,0.14);
  border: 1px solid rgba(255,22,93,0.35); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 22px;
}

.btn-primary {
  background: var(--rose); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px var(--rose-glow);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px var(--rose-glow); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-hero { font-size: 16px; padding: 16px 32px; }

/* ==========================================================================
   Popup compte + paiement
   ========================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6, 3, 9, 0.75); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100;
}
.modal-backdrop.show { display: flex; }
.modal {
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  background: var(--bg-panel); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-soft); position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 18px; transition: background 0.2s ease;
}
.modal-close:hover { background: rgba(255,255,255,0.14); }
.modal-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--rose); font-weight: 700; margin-bottom: 10px; }
.modal h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 6px; }
.modal .modal-sub { color: var(--text-secondary); font-size: 14px; margin-bottom: 22px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.field input {
  width: 100%; background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text-primary); font-size: 14px; transition: border-color 0.15s ease;
}
.field input::placeholder { color: var(--text-tertiary); }
.field input:focus { border-color: var(--rose); }

.field select {
  width: 100%; background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text-primary); font-size: 14px; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B7AEC0' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field select:focus { border-color: var(--rose); }

.phone-group { display: flex; gap: 8px; }
.phone-dial {
  flex: 0 0 auto; display: flex; align-items: center; padding: 0 12px;
  background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.phone-group input { flex: 1; min-width: 0; }

.operator-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.operator-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 10px;
  text-align: center; cursor: pointer; background: var(--bg-panel-2);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.operator-card input { display: none; }
.operator-card:hover { transform: translateY(-2px); }
.operator-card.is-selected { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.operator-badge {
  width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; color: #fff;
}
.operator-name { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.operator-card.is-selected .operator-name { color: var(--text-primary); }

.price-row {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
  background: rgba(255, 22, 93, 0.08); border: 1px solid rgba(255, 22, 93, 0.25); border-radius: var(--radius-sm);
  margin: 18px 0; font-size: 13px;
}
.price-row .amount { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--rose); }
.form-note { font-size: 12px; color: var(--danger); min-height: 16px; margin-top: 4px; }

.modal-status { display: none; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 10px 0 4px; }
.modal-status.show { display: flex; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--border-strong); border-top-color: var(--rose); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-status h4 { font-family: var(--font-display); font-size: 19px; }
.modal-status p { color: var(--text-secondary); font-size: 13px; max-width: 300px; }
.modal-status.is-success .status-icon { color: var(--success); }
.modal-status.is-failed .status-icon { color: var(--danger); }
.status-icon svg { width: 46px; height: 46px; }
.status-spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(183, 174, 192, 0.25);
  border-top-color: var(--success);
  animation: status-spin 0.8s linear infinite;
}
@keyframes status-spin { to { transform: rotate(360deg); } }

.step-form, .step-status { display: none; }
.step-form.active, .step-status.active { display: block; }

.footer { padding: 40px 20px 56px; text-align: center; color: var(--text-tertiary); font-size: 12px; border-top: 1px solid var(--border); }

@media (max-width: 560px) {
  .btn-primary { width: 100%; }
  .hero-price-row { flex-wrap: wrap; }
  .media-hero { min-height: 82vh; }
}
