/* ============================================================
   Studva — studva.app
   Thème repris de src/constants/theme.ts (palette sombre)
   ============================================================ */

:root {
  --primary: #FC5200;
  --primary-soft: rgba(252, 82, 0, 0.12);
  --primary-glow: rgba(252, 82, 0, 0.35);
  --bg: #000000;
  --bg-alt: #0D0D0F;
  --card: #141416;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #F2F2F2;
  --text-2: #9BA1A6;
  --radius-lg: 20px;
  --radius-full: 999px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--card-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
}

.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: #e04a00; }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 .accent { color: var(--primary); }

.hero-sub {
  margin-top: 22px;
  font-size: 18.5px;
  color: var(--text-2);
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stat span { font-size: 13.5px; color: var(--text-2); }

/* ---------- Phone mockup ---------- */

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  width: 300px;
  aspect-ratio: 9 / 19;
  background: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(252, 82, 0, 0.12);
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: #000;
  border-radius: 34px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
}

.post-card {
  margin: 8px 10px;
  background: #141416;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
}

.post-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fc5200, #ff9a5c);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.post-user { font-size: 12.5px; font-weight: 700; }
.post-meta { font-size: 10.5px; color: var(--text-2); }

.post-photo {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 25% 20%, rgba(252, 82, 0, 0.28), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(70, 90, 200, 0.35), transparent 60%),
    linear-gradient(165deg, #1c1d22 0%, #101014 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
}

.post-overlay {
  width: 100%;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.post-chrono {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.01em;
  color: #fff;
}

.post-place {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.post-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(252, 82, 0, 0.9);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-2);
}

.focus-bubbles {
  display: flex;
  margin-right: 2px;
}

.focus-bubbles span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #141416;
  margin-left: -7px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
}

.focus-bubbles span:first-child { margin-left: 0; }
.fb-1 { background: linear-gradient(135deg, #7048e8, #9775fa); }
.fb-2 { background: linear-gradient(135deg, #0ca678, #38d9a9); }
.fb-3 { background: linear-gradient(135deg, #1971c2, #4dabf7); }

.float-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  z-index: 3;
  white-space: nowrap;
}

.float-chip small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
}

.chip-streak { top: 12%; left: -6%; }
.chip-league { bottom: 16%; right: -8%; }

/* ---------- Sections ---------- */

section { padding: 96px 0; }

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

.eyebrow {
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 640px;
}

.section-sub {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 17px;
  max-width: 560px;
}

/* ---------- Étapes ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 18px;
}

.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-2); }

/* ---------- Personas ---------- */

.personas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.persona {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
}

.persona-emoji { font-size: 34px; line-height: 1; margin-bottom: 16px; }
.persona h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.persona p { font-size: 13.5px; color: var(--text-2); }

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: rgba(252, 82, 0, 0.4);
  transform: translateY(-3px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 20px;
}

.feature-highlight {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(252, 82, 0, 0.14), transparent 55%),
    var(--card);
  border-color: rgba(252, 82, 0, 0.35);
}

.feature-highlight .feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  font-size: 26px;
  margin-bottom: 0;
}

.feature-highlight h3 { font-size: 20px; }
.feature-highlight p { max-width: 720px; }

.feature h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--text-2); }

/* ---------- Vie privée ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.privacy-item {
  display: flex;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.privacy-check {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

.privacy-item h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.privacy-item p { font-size: 14.5px; color: var(--text-2); }

/* ---------- CTA finale ---------- */

.cta-final {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final .container { position: relative; }

.cta-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 480px;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 65%);
  pointer-events: none;
}

.cta-final h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 680px;
  margin: 0 auto;
}

.cta-final p {
  color: var(--text-2);
  font-size: 17px;
  margin-top: 18px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.store-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 56px 0 40px;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-2);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-2);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Pages légales ---------- */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal-main h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.legal-lead {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-2);
}

.legal-section { margin-top: 44px; }

.legal-section h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.legal-section p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 14px;
}

.legal-section a { color: var(--primary); font-weight: 600; }

.legal-updated {
  margin-top: 56px;
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 64px; }
  .hero { padding: 64px 0 80px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .personas { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links .nav-hide-mobile { display: none; }
  .chip-streak { left: 0; }
  .chip-league { right: 0; }
}

@media (max-width: 600px) {
  section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .personas { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature-highlight { flex-direction: column; gap: 16px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .hero-stats { gap: 24px; }
  .phone { width: 260px; }
}
