/* ══════════════════════════════════════════════════════════════
   FRAISE FACTORY — landing.css
   Page d'accueil + formulaires auth
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg:       #0d0c18;
  --card:     #191727;
  --card2:    #1f1e30;
  --border:   rgba(255,255,255,0.07);
  --text:     #fffffe;
  --muted:    #8e8fa8;
  --accent:   #e63946;
  --green:    #52b788;
  --gold:     #ffd700;
  --purple:   #c77dff;
}

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

html { scroll-behavior:smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Particules fond ──────────────────────────────────────────── */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  bottom: -60px;
  animation: floatUp linear infinite;
  user-select: none;
}
@keyframes floatUp {
  from { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* ── Nav ───────────────────────────────────────────────────────── */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(13,12,24,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--gold);
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 100px 40px 60px;
  flex-wrap: wrap;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-block;
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.35);
  color: #ff8a93;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: .04em;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero-emoji { margin-right: 12px; }
.hero-subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card2);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.hs-icon { font-size: 1rem; }
.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px rgba(230,57,70,0.4);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(230,57,70,0.5); }

/* Preview factory chain */
.hero-visual { flex-shrink: 0; }
.factory-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
}
.fp-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 1.8rem;
  min-width: 110px;
  text-align: center;
  transition: transform 0.2s;
}
.fp-node:hover { transform: scale(1.05); }
.fp-node span { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.fp-1 { border-bottom: 3px solid #52b788; }
.fp-2 { border-bottom: 3px solid #f4a261; }
.fp-3 { border-bottom: 3px solid #e63946; }
.fp-4 { border-bottom: 3px solid #c77dff; }
.fp-5 { border-bottom: 3px solid #ffd700; }
.fp-arrow { font-size: 1.2rem; color: var(--muted); transform: rotate(90deg); }

/* ── Features ──────────────────────────────────────────────────── */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: -.02em;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}
.fc-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

/* ── Auth section ──────────────────────────────────────────────── */
.auth-section {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 80px 20px 100px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo { font-size: 3rem; margin-bottom: 10px; }
.auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { font-size: 0.82rem; color: var(--muted); }

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--card2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.auth-tab.active { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* Formulaires */
.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

.field-group input {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.field-group input:focus { border-color: var(--accent); }
.field-group input::placeholder { color: rgba(255,255,255,0.2); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px;
  line-height: 1;
}

.auth-error {
  min-height: 18px;
  font-size: 0.78rem;
  color: #ff8a93;
  font-weight: 600;
}

.auth-submit {
  background: linear-gradient(135deg, #e63946, #c1121f);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 4px;
}
.auth-submit:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Footer ────────────────────────────────────────────────────── */
.landing-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
}
.footer-logo { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.footer-text { font-size: 0.75rem; color: var(--muted); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .landing-nav { padding: 12px 20px; }
  .hero { padding: 90px 20px 50px; flex-direction: column; gap: 40px; text-align: center; }
  .hero-stats { justify-content: center; }
  .factory-preview { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .fp-arrow { transform: none; }
  .features { padding: 60px 20px; }
  .auth-card { padding: 28px 20px; }
}
