@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;0,9..144,900;1,9..144,700;1,9..144,900&family=Inter:wght@400;500;600;700;800&display=swap");

body:has(.auth-cinematic) {
  margin: 0;
  background: #0a1628;
  color: #f8faff;
  font-family: "Inter", "DM Sans", sans-serif;
}

.auth-cinematic #auth-screen.auth-cinematic-screen {
  min-height: 100vh;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  background: #0a1628;
  padding: 0;
  --auth-cine-progress: 0;
  --auth-cine-inv-progress: calc(1 - var(--auth-cine-progress));
  --auth-cine-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-cinematic #auth-screen .auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.auth-cinematic #auth-screen .auth-blob {
  display: none;
}

.auth-cinematic #auth-screen .auth-grid-fine {
  inset: 0;
  background-size: 60px 60px;
  background-image: linear-gradient(rgba(165, 180, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 180, 252, 0.04) 1px, transparent 1px);
  opacity: 1;
  animation: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.auth-cinematic #auth-screen .auth-shimmer {
  display: none;
}

.auth-cinematic #auth-screen .auth-landing {
  position: relative;
  z-index: 2;
  max-width: none;
  gap: 0;
}

.auth-cinematic .auth-cine-scene {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.auth-cinematic .auth-cine-scene--landing {
  display: grid;
  place-items: center;
  padding: 22px 20px 60px;
  opacity: calc(1 - (var(--auth-cine-progress, 0) * 0.62));
  transform: translateY(calc(var(--auth-cine-progress, 0) * -64px)) scale(calc(1 - (var(--auth-cine-progress, 0) * 0.045)));
  filter: blur(calc(var(--auth-cine-progress, 0) * 4.2px));
  will-change: transform, opacity, filter;
  transition: opacity 0.46s var(--auth-cine-ease), transform 0.46s var(--auth-cine-ease), filter 0.46s var(--auth-cine-ease);
}

.auth-cinematic .auth-cine-scene--landing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(980px, 85vw);
  height: min(680px, 70vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(99, 102, 241, 0.25) 0%,
    rgba(168, 85, 247, 0.15) 42%,
    transparent 72%
  );
  filter: blur(80px);
  animation: breathe 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

.auth-cinematic .auth-marquee-wrap {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: min(1220px, 112%);
  z-index: 12;
  overflow: hidden;
  background: rgba(10, 22, 40, 0.58);
  border-top: 1px solid rgba(165, 180, 252, 0.12);
  border-bottom: 1px solid rgba(165, 180, 252, 0.12);
  backdrop-filter: blur(10px);
  opacity: calc(1 - (var(--auth-cine-progress, 0) * 0.88));
  transform: translateX(-50%) translateY(calc(var(--auth-cine-progress, 0) * -22px)) rotate(-2deg);
  will-change: transform, opacity;
  transition: opacity 0.42s var(--auth-cine-ease), transform 0.42s var(--auth-cine-ease);
}

.auth-cinematic .auth-marquee-track {
  animation: ticker 45s linear infinite;
}

.auth-cinematic .auth-marquee-seg {
  padding: 13px 24px;
  gap: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(226, 232, 255, 0.72);
}

.auth-cinematic .auth-marquee-sep {
  color: rgba(165, 180, 252, 0.75);
}

.auth-cinematic .auth-watermark {
  font-family: "Fraunces", serif;
  font-size: 28vw;
  bottom: -6vh;
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(165, 180, 252, 0.12);
  background: linear-gradient(180deg, rgba(165, 180, 252, 0.22), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
  transform: translateY(calc(var(--auth-cine-progress, 0) * 52px));
  opacity: calc(1 - (var(--auth-cine-progress, 0) * 0.42));
  will-change: transform, opacity;
  transition: transform 0.46s var(--auth-cine-ease), opacity 0.46s var(--auth-cine-ease);
}

.auth-cinematic .auth-hero {
  position: static;
  margin: 0;
  padding: 0;
}

.auth-cinematic .auth-hero-copy {
  position: relative;
  z-index: 10;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  transform: translateY(calc(var(--auth-cine-progress, 0) * -78px)) scale(calc(1 - (var(--auth-cine-progress, 0) * 0.02)));
  opacity: calc(1 - (var(--auth-cine-progress, 0) * 0.68));
  will-change: transform, opacity;
  transition: transform 0.46s var(--auth-cine-ease), opacity 0.46s var(--auth-cine-ease);
}

.auth-cinematic .auth-pill--hero {
  margin: 0;
  background: rgba(10, 22, 40, 0.72);
  border-color: rgba(165, 180, 252, 0.25);
  color: rgba(226, 232, 255, 0.92);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.auth-cinematic .auth-pill--hero .auth-pill-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

.auth-cinematic .auth-hero-h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-style: normal;
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(180deg, #f8faff 0%, rgba(165, 180, 252, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-cinematic .auth-hero-h1 em {
  font-style: italic;
  font-weight: 900;
  background: linear-gradient(120deg, #818cf8, #c4b5fd, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.auth-cinematic .auth-hero-tagline {
  margin: 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 26px);
  color: rgba(226, 232, 255, 0.75);
}

.auth-cinematic .auth-cine-scroll {
  margin-top: 8px;
  color: rgba(226, 232, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.auth-cinematic .auth-cine-scroll:hover {
  color: #c4b5fd;
}

.auth-cinematic .auth-cine-scene--form {
  display: grid;
  place-items: center;
  padding: 40px 20px 60px;
  opacity: calc(0.12 + (var(--auth-cine-progress, 0) * 0.88));
  transform: translateY(calc(var(--auth-cine-inv-progress, 1) * 108px));
  filter: blur(calc(var(--auth-cine-inv-progress, 1) * 6px));
  will-change: transform, opacity, filter;
  transition: opacity 0.52s var(--auth-cine-ease), transform 0.52s var(--auth-cine-ease), filter 0.52s var(--auth-cine-ease);
}

.auth-cinematic .auth-cine-scene--form .auth-split {
  transform: translateY(calc(var(--auth-cine-inv-progress, 1) * 62px)) scale(calc(0.945 + (var(--auth-cine-progress, 0) * 0.055)));
  opacity: calc(0.16 + (var(--auth-cine-progress, 0) * 0.84));
  will-change: transform, opacity;
  transition: transform 0.54s var(--auth-cine-ease), opacity 0.54s var(--auth-cine-ease);
}

.auth-cinematic .auth-scene2-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Fraunces", serif;
  font-size: 32vw;
  font-weight: 900;
  line-height: 0.8;
  color: rgba(99, 102, 241, 0.18);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  white-space: nowrap;
  opacity: calc(0.08 + (var(--auth-cine-progress, 0) * 0.92));
  transform: translate(-50%, calc(-50% + (var(--auth-cine-inv-progress, 1) * 60px)));
  will-change: transform, opacity;
  transition: opacity 0.52s var(--auth-cine-ease), transform 0.52s var(--auth-cine-ease);
}

.auth-cinematic .auth-scene2-aurora {
  position: absolute;
  inset: 8% 10%;
  background: radial-gradient(
    ellipse at center,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(168, 85, 247, 0.08) 45%,
    transparent 72%
  );
  filter: blur(100px);
  z-index: 1;
  pointer-events: none;
  opacity: calc(0.2 + (var(--auth-cine-progress, 0) * 0.8));
  transform: scale(calc(0.9 + (var(--auth-cine-progress, 0) * 0.14)));
  will-change: transform, opacity;
  transition: opacity 0.52s var(--auth-cine-ease), transform 0.52s var(--auth-cine-ease);
}

.auth-cinematic .auth-split {
  position: relative;
  z-index: 5;
  width: min(980px, 100%);
  max-width: 980px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 22, 40, 0.65);
  border: 1px solid rgba(165, 180, 252, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.auth-cinematic .auth-split::before,
.auth-cinematic .auth-split::after {
  display: none;
}

.auth-cinematic .auth-brand {
  background: rgba(10, 22, 40, 0.5);
  border-right: 1px solid rgba(165, 180, 252, 0.1);
  padding: 40px 36px;
  min-height: 620px;
}

.auth-cinematic .auth-brand::before,
.auth-cinematic .auth-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-cinematic .auth-brand::before {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 68%);
  animation: float-slow 18s ease-in-out infinite;
}

.auth-cinematic .auth-brand::after {
  width: 220px;
  height: 220px;
  bottom: -70px;
  left: -70px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.24) 0%, transparent 68%);
  animation: float-slow-b 22s ease-in-out infinite;
}

.auth-cinematic .auth-brand-glow {
  display: none;
}

.auth-cinematic .auth-brand-kicker {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 3px;
  color: #a5b4fc;
  background: none;
  -webkit-text-fill-color: #a5b4fc;
}

.auth-cinematic .auth-brand-h1 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.08;
}

.auth-cinematic .auth-brand-h1 em {
  background: linear-gradient(120deg, #818cf8, #c4b5fd, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-cinematic .auth-brand-lead,
.auth-cinematic .auth-brand-lead--accent {
  font-size: 13px;
  color: rgba(226, 232, 255, 0.72);
}

.auth-cinematic .auth-brand-list li,
.auth-cinematic .auth-brand-modules li {
  font-size: 13px;
  line-height: 1.55;
}

.auth-cinematic .auth-brand-li-dot {
  background: #818cf8;
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.8);
}

.auth-cinematic .auth-brand-foot {
  color: rgba(226, 232, 255, 0.36);
}

.auth-cinematic .auth-panel {
  background: rgba(253, 252, 247, 0.96);
  padding: 40px 36px;
}

.auth-cinematic .auth-tabs {
  background: #f0ece2;
  padding: 5px;
  border-radius: 12px;
}

.auth-cinematic .auth-tab {
  color: #7a7570;
  font-weight: 600;
}

.auth-cinematic .auth-tab.act {
  background: #fff;
  color: #1a1918;
  box-shadow: 0 3px 8px rgba(26, 25, 24, 0.08);
}

.auth-cinematic .auth-form-title {
  font-family: "Fraunces", serif;
  font-size: 26px;
  color: #1a1918;
}

.auth-cinematic .auth-form-switch {
  color: #6d665e;
}

.auth-cinematic .auth-link-btn,
.auth-cinematic .auth-inline-link {
  color: #6366f1 !important;
}

.auth-cinematic .auth-field label {
  font-size: 11px;
  font-weight: 600;
  color: #4a4542;
  letter-spacing: 0.3px;
}

.auth-cinematic .auth-field input,
.auth-cinematic .auth-field select {
  padding: 11px 14px;
  background: #fdf6ec;
  border: 1px solid #ede4d3;
  border-radius: 10px;
  color: #1f1b18;
}

.auth-cinematic .auth-field input:focus,
.auth-cinematic .auth-field select:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.auth-cinematic .auth-check input[type="checkbox"] {
  accent-color: #6366f1;
}

.auth-cinematic .auth-forgot {
  color: #6366f1;
}

.auth-cinematic .auth-btn-primary-light {
  position: relative;
  background: #1a1918 !important;
  color: #fff !important;
  padding: 13px !important;
  border-radius: 10px !important;
  border: 1px solid #1a1918 !important;
  overflow: hidden;
}

.auth-cinematic .auth-btn-primary-light::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 46%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmer 2.8s linear infinite;
}

.auth-cinematic .auth-btn-primary-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 25, 24, 0.2) !important;
}

.auth-cinematic .auth-divider {
  color: #9a9388;
}

.auth-cinematic .auth-divider::before,
.auth-cinematic .auth-divider::after {
  background: #ede4d3;
}

.auth-cinematic .auth-btn-social {
  background: #fff;
  border: 1px solid #ede4d3;
}

.auth-cinematic .auth-btn-social:hover {
  border-color: #1a1918;
  background: #fdf6ec;
}

.auth-cinematic .auth-avatar-img-hidden,
.auth-cinematic .auth-avatar-input-hidden {
  display: none;
}

.auth-cinematic .auth-screen-foot {
  margin: 22px auto 30px;
  color: rgba(165, 180, 252, 0.55);
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

@keyframes breathe {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.8;
  }
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(15px, -8px);
  }
  100% {
    transform: translate(-10px, 10px);
  }
}

@keyframes float-slow-b {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-12px, 8px);
  }
  100% {
    transform: translate(10px, -10px);
  }
}

@keyframes shimmer {
  from {
    left: -100%;
  }
  to {
    left: 200%;
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .auth-cinematic .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-cinematic .auth-brand {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(165, 180, 252, 0.1);
  }

  .auth-cinematic .auth-marquee-wrap {
    width: 122%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-cinematic #auth-screen.auth-cinematic-screen {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .auth-cinematic .auth-hero-copy,
  .auth-cinematic .auth-watermark,
  .auth-cinematic .auth-cine-scene--form .auth-split {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PULPE! — auth-cinematic.css — AJOUTS option B
   À COLLER À LA FIN DE TON FICHIER css/auth-cinematic.css EXISTANT
   (ne supprime rien, ajoute simplement ces blocs en bas)
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. BOUTON "ACCÉDER À MON ESPACE ↓" ─────────────────────── */

.auth-cinematic .auth-cine-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 24px;
  background: rgba(165, 180, 252, 0.08);
  border: 1px solid rgba(165, 180, 252, 0.2);
  border-radius: 100px;
  color: #f8faff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.auth-cinematic .auth-cine-scroll:hover {
  background: rgba(165, 180, 252, 0.15);
  border-color: rgba(165, 180, 252, 0.4);
  color: #c4b5fd;
}

.auth-cinematic .auth-cine-scroll-arrow {
  display: inline-block;
  font-size: 14px;
  animation: cine-bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes cine-bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ─── 2. CURSEUR CUSTOM SUBTIL (scène 1) ─────────────────────── */

.auth-cinematic .auth-cine-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border: 1.5px solid rgba(165, 180, 252, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-100px, -100px);
  transition: opacity 0.3s ease,
              width 0.25s ease,
              height 0.25s ease,
              border-color 0.25s ease,
              background 0.25s ease,
              margin-left 0.25s ease,
              margin-top 0.25s ease;
  mix-blend-mode: difference;
}

.auth-cinematic .auth-cine-cursor.visible {
  opacity: 1;
}

.auth-cinematic .auth-cine-cursor.hover {
  width: 48px;
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  border-color: rgba(196, 181, 253, 0.9);
  background: rgba(165, 180, 252, 0.1);
}

@media (max-width: 880px) {
  .auth-cinematic .auth-cine-cursor { display: none !important; }
}

/* Désactiver le curseur natif sur les zones interactives (uniquement sur scène 1) */
@media (hover: hover) and (min-width: 881px) {
  .auth-cinematic .auth-cine-scene--landing {
    /* on ne touche pas au cursor: none — on laisse le système nativement,
       le curseur custom vient en superposition */
  }
}

/* ─── 3. BANDEAU CODE BÊTA (formulaire d'inscription) ────────── */

.auth-cinematic .auth-beta-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.auth-cinematic .auth-beta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
  animation: beta-shimmer 4s linear infinite;
}

@keyframes beta-shimmer {
  from { left: -100%; }
  to { left: 200%; }
}

.auth-cinematic .auth-beta-banner-ic {
  font-size: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(99, 102, 241, 0.25));
}

.auth-cinematic .auth-beta-banner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.auth-cinematic .auth-beta-banner-info strong {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #4338ca;
  letter-spacing: 0.3px;
}

.auth-cinematic .auth-beta-banner-info span {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #1a1918;
  letter-spacing: 1.2px;
}

/* ─── 4. EFFET 3D INTENSIFIÉ SUR BOUTONS OAUTH ───────────────── */

.auth-cinematic .auth-btn-social {
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.3s ease, background 0.3s ease;
}

/* Désactivation du transform CSS classique (GSAP prend le relais) */
.auth-cinematic .auth-btn-social:hover {
  /* le transform 3D est géré par GSAP — on ne change que les couleurs */
}

/* ─── 5. POLISH SUR LE TITRE — perspective ──────────────────── */

.auth-cinematic .auth-hero-copy {
  perspective: 1200px;
}

.auth-cinematic .auth-hero-h1 {
  will-change: transform, filter, opacity;
  transform-style: preserve-3d;
}

/* ─── 6. RESPECT DE prefers-reduced-motion ──────────────────── */

@media (prefers-reduced-motion: reduce) {
  .auth-cinematic .auth-cine-scroll-arrow,
  .auth-cinematic .auth-beta-banner::before {
    animation: none !important;
  }
  .auth-cinematic .auth-cine-cursor {
    display: none !important;
  }
}

/* ─── 7. FALLBACK SI GSAP ÉCHOUE ─────────────────────────────── */

.auth-cinematic.cine-no-gsap .auth-hero-h1,
.auth-cinematic.cine-no-gsap .auth-pill--hero,
.auth-cinematic.cine-no-gsap .auth-hero-tagline,
.auth-cinematic.cine-no-gsap .auth-cine-scroll {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}
