@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #05020A;
  --surface: #0D0814;
  --elevated: #170F24;
  --border: #2A1E3D;
  --border-light: #3D2B56;
  --text: #FFFFFF;
  --text-2: #A09DB0;
  --text-3: #6B677E;
  --brand: #B312FF;
  --brand-2: #FF1276;
  --wa: #25D366;
  --tg: #229ED9;
  --snap: #FFFC00;
}

html[data-theme="light"] {
  --bg: #F4F1F9;
  --surface: #FFFFFF;
  --elevated: #F0EBF7;
  --border: #E4DDEF;
  --border-light: #D6CBE8;
  --text: #16101F;
  --text-2: #574F66;
  --text-3: #857E92;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.font-h { font-family: 'Outfit', sans-serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gradient-bg { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff !important; }
::selection { background: rgba(179,18,255,.35); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; cursor: pointer; border: none;
  font-family: 'Manrope', sans-serif; font-size: 15px; transition: opacity .2s, background-color .2s, color .2s; }
.btn-primary { padding: 14px 30px; }
.btn-primary:hover { opacity: .9; }
.btn-outline { padding: 14px 30px; border: 1px solid var(--border-light); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--elevated); }
.btn-wa { padding: 14px 28px; background: rgba(37,211,102,.1); color: var(--wa); border: 1px solid rgba(37,211,102,.3); }
.btn-wa:hover { background: var(--wa); color: #000; }
.btn-tg { padding: 14px 28px; background: rgba(34,158,217,.1); color: var(--tg); border: 1px solid rgba(34,158,217,.3); }
.btn-tg:hover { background: var(--tg); color: #000; }
.btn-snap { padding: 14px 28px; background: rgba(255,252,0,.1); color: #E6C700; border: 1px solid rgba(255,252,0,.35); }
.btn-snap:hover { background: var(--snap); color: #000; }

/* ============================================
   TMDB MARQUEE — défilement continu fluide, pro
   Style : poster + titre en overlay au hover
   ============================================ */
.nouveautes-section { padding-bottom: 90px; overflow: hidden; }

.tmdb-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 18px 0 30px;
  /* Fade doux sur les bords pour un rendu cinéma */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.tmdb-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  /* Vitesse calculée à partir du nombre d'items pour rester constante et pro */
  animation: tmdbMarquee calc(var(--tmdb-count, 20) * 5s) linear infinite;
  will-change: transform;
}
.tmdb-marquee:hover .tmdb-marquee-track {
  animation-play-state: paused;
}
@keyframes tmdbMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Carte film — même esthétique premium que les cartes offres */
.tmdb-card {
  flex: 0 0 220px;
  width: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
  text-decoration: none;
  color: inherit;
}
.tmdb-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 60%, transparent);
  box-shadow: 0 18px 48px rgba(179,18,255,.28);
}
.tmdb-poster {
  position: relative;
  aspect-ratio: 2/3;
  background: var(--elevated);
  overflow: hidden;
}
.tmdb-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.tmdb-card:hover .tmdb-poster img { transform: scale(1.07); }
.tmdb-rating {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  color: #FFD54A;
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
  display: flex; align-items: center; gap: 4px;
  z-index: 2;
}
.tmdb-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 16px 16px;
  background: linear-gradient(to top, rgba(5,2,10,.96) 0%, rgba(5,2,10,.75) 40%, rgba(5,2,10,.15) 75%, transparent 100%);
  opacity: 0;
  transition: opacity .35s ease;
}
.tmdb-card:hover .tmdb-overlay,
.tmdb-card:focus-visible .tmdb-overlay { opacity: 1; }
.tmdb-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tmdb-year {
  margin-top: 6px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 500;
}

/* ============================================
   NOTRE APPLICATION — cadre violet/bleu comme les offres
   ============================================ */
.app-section { background: color-mix(in srgb, var(--surface) 40%, transparent); }
.app-carousel { max-width: 940px; margin: 0 auto; }
.app-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px;
  /* Bordure gradient violet/rose comme la carte "highlight" des offres */
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--surface), var(--surface)),
    linear-gradient(90deg, var(--brand), var(--brand-2));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 40px rgba(179,18,255,.28);
}
.app-track {
  display: flex;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
}
.app-slide { min-width: 100%; padding: 0; }
.app-imgwrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Flèches navigation "Notre application" */
.app-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background-color .2s, transform .2s, border-color .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.app-nav:hover {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
}
.app-prev { left: 30px; }
.app-next { right: 30px; }

.app-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.app-dot { width: 9px; height: 9px; border-radius: 999px; border: none; background: var(--border-light);
  cursor: pointer; padding: 0; transition: width .3s, background-color .3s; }
.app-dot.active { background: linear-gradient(90deg, var(--brand), var(--brand-2)); width: 28px; }

/* Header */
header.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all .3s; }
header.nav.scrolled { backdrop-filter: blur(18px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
.nav-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.nav .logo img { height: 52px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center; color: var(--brand); background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--elevated); }
.burger { display: none; background: none; border: none; color: var(--text); cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; gap: 18px; padding: 24px; background: var(--surface); border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-2); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(179,18,255,.22) 0%, transparent 60%); }
.hero-content { position: relative; z-index: 2; padding: 120px 0 60px; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-light);
  background: color-mix(in srgb, var(--elevated) 60%, transparent); padding: 7px 16px; border-radius: 999px; margin-bottom: 28px; }
.badge-pill span { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.hero h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; max-width: 800px; }
.hero p.sub { margin-top: 26px; font-size: 18px; color: var(--text-2); max-width: 560px; line-height: 1.6; }
.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.stats { margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 640px; }
.stats .v { font-family: 'Outfit'; font-size: 30px; font-weight: 700; }
.stats .l { font-size: 14px; color: var(--text-3); margin-top: 4px; }

/* Sections */
section { padding: 110px 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.sec-title { font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -.02em; }
.sec-head { max-width: 640px; margin-bottom: 56px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; transition: border-color .3s, box-shadow .3s; }
.feature:hover { border-color: color-mix(in srgb, var(--brand) 50%, transparent); box-shadow: 0 8px 32px rgba(179,18,255,.12); }
.feature .ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.feature h3 { font-family: 'Outfit'; font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--text-2); line-height: 1.6; }

/* Showcase */
.showcase-section { background: color-mix(in srgb, var(--surface) 40%, transparent); }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.show-card { position: relative; border-radius: 18px; overflow: hidden; height: 320px; border: 1px solid var(--border); }
.show-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.show-card:hover img { transform: scale(1.1); }
.show-card .grad { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 70%); }
.show-card .tag { position: absolute; top: 16px; left: 16px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; padding: 5px 12px; border-radius: 999px; }
.show-card .label { position: absolute; bottom: 22px; left: 22px; font-family: 'Outfit'; font-size: 24px; font-weight: 700; color: #fff; }

/* Pricing */
.pricing-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 34px; width: 380px; max-width: 100%; display: flex; flex-direction: column; position: relative; }
.plan.highlight { border: 2px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(90deg, var(--brand), var(--brand-2));
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 0 40px rgba(179,18,255,.28); }
.plan .pbadge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 5px 16px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-family: 'Outfit'; font-size: 20px; font-weight: 600; }
.plan .price { font-family: 'Outfit'; font-size: 44px; font-weight: 800; margin-top: 12px; }
.plan .price span { font-size: 15px; color: var(--text-3); font-weight: 400; }
.plan ul { list-style: none; margin: 26px 0; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 12px; color: var(--text-2); font-size: 15px; }
.plan li svg { flex-shrink: 0; color: var(--brand); margin-top: 2px; }

/* FAQ */
.faq-section { background: color-mix(in srgb, var(--surface) 40%, transparent); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 20px 24px; background: none; border: none; color: var(--text);
  font-family: 'Outfit'; font-weight: 500; font-size: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { transition: transform .3s; color: var(--brand); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--text-2); padding: 0 24px; line-height: 1.6; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* Contact */
.contact-box { position: relative; border: 1px solid var(--border); border-radius: 24px; padding: 64px 40px; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(179,18,255,.18) 0%, var(--surface) 60%); }
.contact-box h2 { max-width: 640px; margin: 0 auto; }
.contact-box p { margin: 20px auto 0; color: var(--text-2); max-width: 520px; }
.contact-cta { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--bg); padding: 56px 0; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-top .about { max-width: 340px; }
.footer-top .about img { height: 44px; margin-bottom: 18px; }
.footer-top .about p { color: var(--text-3); font-size: 14px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.footer-links a { color: var(--text-2); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; width: 440px; max-width: 100%; }
.modal h3 { font-family: 'Outfit'; font-size: 22px; margin-bottom: 8px; }
.modal .desc { color: var(--text-2); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.modal .plan-line { display: flex; justify-content: space-between; align-items: center; background: var(--elevated);
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.modal .plan-line .p { font-family: 'Outfit'; font-size: 20px; font-weight: 700; }
.field { margin-bottom: 16px; }
.field label { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font-family: 'Manrope'; font-size: 15px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); }
.modal-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.modal-channels .full { grid-column: 1 / -1; }
.modal-close { position: absolute; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn-primary, .nav-actions .icon-btn { display: none; }
  .burger { display: block; }
  .features-grid, .showcase-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 70px 0; }
  .tmdb-card { flex: 0 0 46vw; width: 46vw; }
  .app-prev { left: 14px; }
  .app-next { right: 14px; }
  /* Sur mobile, on affiche le titre en permanence pour la lisibilité */
  .tmdb-overlay { opacity: 1; background: linear-gradient(to top, rgba(5,2,10,.94) 0%, rgba(5,2,10,.55) 45%, transparent 90%); }
  .tmdb-title { font-size: 14px; -webkit-line-clamp: 2; }
}
