/* ===================================================
   CORTEZIA — Design System
   Noir / Blanc — minimalisme, typographie fine
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap');

:root {
  /* Palette */
  --black: #0a0a0a;
  --black-elevated: #161616;
  --black-surface: #1c1c1e;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-300: #d1d1d3;
  --gray-500: #8e8e93;
  --gray-700: #48484a;
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-dark: rgba(0, 0, 0, 0.08);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.light {
  background: var(--white);
  color: var(--black);
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: var(--white); color: var(--black); }

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------
   Layout containers
--------------------------------------------------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* ---------------------------------------------------
   Nav
--------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.9), transparent);
  backdrop-filter: blur(12px);
  transition: padding 0.4s var(--ease);
}

.nav.scrolled {
  padding: 16px 48px;
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--hairline);
}

.nav-logo {
  font-size: 20px;
  font-weight: 200;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-logo .dot { color: var(--white); }

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-links a.active::after {
  content: '.';
  position: absolute;
  right: -8px;
  top: -2px;
}

.nav-actions { display: flex; gap: 16px; align-items: center; }

@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
}

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-primary:hover { background: var(--gray-300); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--hairline);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

.btn-ghost {
  background: transparent;
  color: var(--gray-500);
  padding: 14px 20px;
}
.btn-ghost:hover { color: var(--white); }

.btn-sm { padding: 10px 22px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------------------------------------------------
   Typography
--------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: block;
}

h1, h2, h3 { font-weight: 200; letter-spacing: -0.01em; }

.display-xl {
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 100;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.display-lg {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 150;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.display-md {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 200;
  letter-spacing: -0.01em;
}

.text-lead {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1.6;
}

.text-mono {
  font-family: 'SF Mono', 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.08), transparent),
    linear-gradient(180deg, var(--black) 0%, #050505 100%);
  z-index: -1;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  animation: fadeUp 1s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  max-width: 560px;
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
}
.scroll-cue-line {
  width: 1px; height: 40px;
  background: var(--white);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50% { transform: scaleY(0.6); opacity: 1; }
}

/* ---------------------------------------------------
   Sections
--------------------------------------------------- */
.section { padding: 140px 0; }
.section-sm { padding: 80px 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}

.divider {
  height: 1px;
  background: var(--hairline);
  border: none;
  margin: 0;
}

/* ---------------------------------------------------
   Feature grid (page d'accueil)
--------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.feature-card {
  background: var(--black);
  padding: 56px 40px;
  transition: background 0.4s var(--ease);
}
.feature-card:hover { background: var(--black-elevated); }

.feature-num {
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  display: block;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------
   Content rows (catalogue)
--------------------------------------------------- */
.content-row { margin-bottom: 64px; }

.content-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}
.content-scroll::-webkit-scrollbar { height: 4px; }
.content-scroll::-webkit-scrollbar-thumb { background: var(--hairline); }
.content-scroll::-webkit-scrollbar-track { background: transparent; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.poster-card {
  position: relative;
  aspect-ratio: 2/3;
  min-width: 220px;
  scroll-snap-align: start;
  background: var(--black-surface);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.poster-card:hover { transform: translateY(-6px); }

.poster-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.poster-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1c1c1e, #0a0a0a);
  color: var(--gray-700);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}

.poster-lock {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.poster-card:hover .poster-lock { opacity: 1; }
.poster-card.locked .poster-lock { opacity: 1; }

.poster-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.poster-info h4 { font-size: 14px; font-weight: 400; }
.poster-info span { font-size: 11px; color: var(--gray-500); }

/* ---------------------------------------------------
   Live badge
--------------------------------------------------- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff3b30;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff3b30;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------------------------------------------------
   Forms
--------------------------------------------------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-logo {
  text-align: center;
  font-size: 22px;
  font-weight: 200;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 48px;
  display: block;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  background: var(--black-surface);
  border: 1px solid var(--hairline);
  color: var(--white);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font);
  border-radius: 6px;
  transition: border-color 0.3s var(--ease);
}
.form-input:focus {
  outline: none;
  border-color: var(--white);
}
.form-input::placeholder { color: var(--gray-700); }

.form-error {
  font-size: 13px;
  color: #ff453a;
  margin-top: 16px;
  min-height: 18px;
}

.form-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--gray-500);
}
.form-footer a { color: var(--white); border-bottom: 1px solid var(--hairline); }

/* ---------------------------------------------------
   Pricing
--------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 40px;
  text-align: left;
  transition: border-color 0.3s var(--ease);
}
.pricing-card.featured {
  border-color: var(--white);
  background: var(--black-elevated);
}

.pricing-plan { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 16px; }
.pricing-price { font-size: 48px; font-weight: 150; margin-bottom: 4px; }
.pricing-price span { font-size: 15px; color: var(--gray-500); font-weight: 300; }
.pricing-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 32px; }

.pricing-list { list-style: none; margin-bottom: 32px; }
.pricing-list li {
  font-size: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  color: var(--gray-300);
}
.pricing-list li:first-child { border-top: none; }

@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-300);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-700);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------------------
   Utility
--------------------------------------------------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }

.loader {
  width: 20px; height: 20px;
  border: 2px solid var(--hairline);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  color: var(--gray-500);
}

.player-shell {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
}

.paywall {
  text-align: center;
  padding: 100px 24px;
}
