/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #F37D07;
  --orange-light: #F9A54A;
  --brown: #492800;
  --brown-light: #6b3d00;
  --dark: #0a0600;
  --dark-2: #110800;
  --dark-card: #1a0e00;
  --border: rgba(243,125,7,0.15);
  --text: #f5e6d0;
  --muted: #a8896a;
  --radius: 20px;

  /* aliases pour compatibilité */
  --purple: #F37D07;
  --purple-light: #F9A54A;
  --pink: #492800;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(10, 6, 0, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-decoration: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn svg { width: 18px; height: 18px; }

.btn-nav {
  background: var(--orange);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.85rem;
}
.btn-nav:hover { background: #d96d00; transform: translateY(-1px); }

.btn-nav-ghost {
  background: transparent;
  color: var(--text);
  padding: 10px 20px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}
.btn-nav-ghost:hover { border-color: rgba(243,125,7,0.4); color: var(--orange-light); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--brown));
  color: #fff;
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: 0 8px 32px rgba(243,125,7,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(243,125,7,0.5); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(243,125,7,0.3); }

.btn-white {
  background: #fff;
  color: #1a0e00;
  font-weight: 700;
}
.btn-white:hover { background: #f5e6d0; transform: translateY(-2px); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: float 8s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--orange);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: var(--brown);
  top: 200px; right: -150px;
  animation-delay: -3s;
}
.blob-3 {
  width: 400px; height: 400px;
  background: #c45c00;
  bottom: -100px; left: 40%;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 580px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(243,125,7,0.12);
  border: 1px solid rgba(243,125,7,0.35);
  color: var(--orange-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 60%, var(--brown-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 440px;
}

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

/* ===== PHONE ===== */
.hero-phone {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.phone-frame {
  width: 240px;
  background: linear-gradient(145deg, #281400, #1a0c00);
  border-radius: 40px;
  padding: 16px 12px;
  border: 1px solid rgba(243,125,7,0.2);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(243,125,7,0.08),
    inset 0 1px 0 rgba(243,125,7,0.15);
  position: relative;
}
.phone-frame.small {
  width: 180px;
  padding: 12px 9px;
  border-radius: 30px;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: #0a0600;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 10px;
}
.phone-frame.small .phone-notch {
  width: 60px;
  height: 16px;
}

.phone-screen {
  background: linear-gradient(160deg, #140900, #1f0e00);
  border-radius: 24px;
  min-height: 380px;
  overflow: hidden;
  padding: 14px;
}
.phone-frame.small .phone-screen {
  min-height: 280px;
  padding: 10px;
  border-radius: 18px;
}

.app-ui { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.app-ui.compact { gap: 8px; }

.app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.app-header span {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(245,230,208,0.9);
}

.app-logo-circle {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--orange), var(--brown));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
}
.app-logo-circle.sm { width: 22px; height: 22px; border-radius: 6px; }

.app-card {
  background: linear-gradient(135deg, rgba(243,125,7,0.25), rgba(73,40,0,0.3));
  border-radius: 14px;
  height: 90px;
  border: 1px solid rgba(243,125,7,0.1);
  animation: shimmer 3s ease-in-out infinite;
}
.app-card.small { height: 56px; animation-delay: 0.5s; }
.app-card.dim { background: rgba(243,125,7,0.05); animation-delay: 1s; }
.phone-frame.small .app-card { height: 68px; }
.phone-frame.small .app-card.small { height: 42px; }

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.app-row { display: flex; gap: 8px; }
.app-chip {
  height: 28px;
  flex: 1;
  background: rgba(243,125,7,0.15);
  border-radius: 50px;
  border: 1px solid rgba(243,125,7,0.25);
}
.app-chip.short { flex: 0 0 60px; }

.app-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.dot.active {
  background: var(--orange-light);
  width: 20px;
  border-radius: 50px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 12px;
}
.section-label.light { color: rgba(249,165,74,0.85); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 48px;
}
.section-title.light { color: #fff; }

/* ===== FEATURES ===== */
.features {
  padding: 120px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(243,125,7,0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { border-color: rgba(243,125,7,0.35); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(243,125,7,0.15), rgba(73,40,0,0.2));
  border: 1px solid rgba(243,125,7,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 24px; height: 24px;
  stroke: var(--orange-light);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== STATS ===== */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark-2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat { display: flex; flex-direction: column; gap: 8px; }

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ===== DOWNLOAD ===== */
.download {
  padding: 120px 0;
}

.download-card {
  background: linear-gradient(135deg, #2a1200, #1a0800, #0f0500);
  border-radius: 32px;
  border: 1px solid rgba(243,125,7,0.3);
  padding: 80px 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.download-blob {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(243,125,7,0.25) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.download-sub {
  color: rgba(245,230,208,0.65);
  margin-bottom: 32px;
  max-width: 400px;
  line-height: 1.7;
}

.download-content .btn { margin-right: 12px; margin-bottom: 12px; }

.download-phone {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  animation: phoneFloat 6s ease-in-out infinite;
  animation-delay: -2s;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; gap: 40px; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-phone { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { flex-direction: column; padding: 48px 32px; }
  .download-phone { display: none; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-title { letter-spacing: -1px; }
}

/* ===== BLOG ===== */
.blog-section {
  padding: 120px 0;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(30px);
}
.blog-card:hover {
  border-color: rgba(243,125,7,0.35);
  transform: translateY(-4px);
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(243,125,7,0.12);
  border: 1px solid rgba(243,125,7,0.25);
  color: var(--orange-light);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: fit-content;
}

.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.blog-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card h3 a:hover { color: var(--orange-light); }

.blog-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  color: var(--muted);
  margin-top: auto;
}

/* ===== HOME FAQ ===== */
.home-faq {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.home-faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-row {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--orange-light); }
.faq-question svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: var(--orange-light);
  transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 200px;
  padding-bottom: 20px;
}
.faq-answer p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}
.faq-answer a {
  color: var(--orange-light);
  text-decoration: none;
}
.faq-answer a:hover { color: var(--orange); }

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