/* Coliva — Landing page styles
 * Palette : Bleu Coliva #1E40AF, Orange accent #F59E0B
 * Design : Moderne, épuré, mobile-first
 */

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #1E40AF;
  --primary-dark: #1E3A8A;
  --primary-light: #3B82F6;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --text: #0F172A;
  --text-muted: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-dark: #0F172A;
  --border: #E2E8F0;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(15,23,42,0.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.10);
  --shadow-lg: 0 20px 40px rgba(15,23,42,0.15);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* NAV */
.nav {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--primary); }
.brand-icon { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; color: var(--text-muted); font-size: 14px; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: #fff !important; padding: 10px 20px; border-radius: 999px; }
.btn-nav:hover { background: var(--primary-dark); }

@media (max-width: 768px) {
  .nav-links a:not(.btn-nav) { display: none; }
}

/* HERO */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #F0F9FF 0%, #DBEAFE 50%, #EEF2FF 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; background: rgba(59,130,246,0.15); border-radius: 50%;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-block; background: #fff; color: var(--primary);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.hero-text h1 {
  font-size: 52px; font-weight: 900; line-height: 1.1; margin-bottom: 20px;
  color: var(--text);
}
.grad {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; }
.hero-sub strong { color: var(--text); font-weight: 700; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 12px;
  font-weight: 700; font-size: 15px; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.hero-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: #fff;
  padding: 10px 18px; border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-icon { font-size: 28px; }
.store-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-text small { font-size: 10px; opacity: 0.8; }
.store-text strong { font-size: 15px; font-weight: 800; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  width: 300px; padding: 12px; background: #1a1a1a; border-radius: 40px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}
.phone-screen { width: 100%; border-radius: 28px; }
.floating-badge {
  position: absolute; background: #fff; border-radius: 12px;
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg); animation: float 3s ease-in-out infinite;
}
.floating-badge span { font-size: 26px; }
.floating-badge strong { display: block; font-size: 13px; font-weight: 800; }
.floating-badge small { font-size: 11px; color: var(--text-muted); }
.f1 { top: 20%; left: -30px; animation-delay: 0s; }
.f2 { bottom: 15%; right: -20px; animation-delay: 1.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .hero { padding: 50px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .phone-frame { width: 240px; transform: rotate(0); }
  .floating-badge { display: none; }
}

/* STATS */
.stats {
  padding: 60px 0; background: var(--bg-dark); color: #fff;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat { text-align: center; }
.stat-num {
  font-size: 48px; font-weight: 900; margin-bottom: 8px;
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.stat-sub { font-size: 12px; opacity: 0.6; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 36px; }
}

/* SECTION */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block; background: rgba(30,64,175,0.1); color: var(--primary);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.section-header h2 {
  font-size: 36px; font-weight: 900; margin-bottom: 12px; color: var(--text);
}
.section-header p { color: var(--text-muted); font-size: 17px; }

/* FEATURES */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.feature-icon { font-size: 40px; margin-bottom: 14px; }
.feature h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-muted); }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .features-grid { grid-template-columns: 1fr; } }

/* VIDEO */
.video-wrap {
  max-width: 900px; margin: 0 auto; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); background: #000;
}
.video-wrap video { width: 100%; display: block; }

/* STEPS */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; position: relative;
}
.step-num {
  position: absolute; top: -18px; left: 24px;
  background: var(--accent); color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; box-shadow: var(--shadow-md);
}
.step img { max-width: 200px; margin: 20px auto 14px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* GALLERY */
.gallery {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.gallery img {
  width: 100%; border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}
.gallery img:hover { transform: scale(1.03); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* COMPARE */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.compare-col {
  border-radius: var(--radius); padding: 28px;
}
.compare-old {
  background: #FEE2E2; border: 2px solid #FCA5A5;
}
.compare-new {
  background: #DCFCE7; border: 2px solid #86EFAC;
}
.compare-col h3 { font-size: 20px; font-weight: 900; margin-bottom: 16px; }
.compare-col ul { list-style: none; }
.compare-col li {
  padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
}
.compare-col li:last-child { border-bottom: none; }
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; } }

/* CTA */
.section-cta { padding: 60px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; border-radius: 24px; padding: 60px 40px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: 34px; font-weight: 900; margin-bottom: 16px; }
.cta-box > p { font-size: 17px; opacity: 0.92; margin-bottom: 30px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.store-badge-big {
  padding: 14px 24px; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
}
.store-badge-primary {
  background: #F59E0B !important; color: #0F172A;
}
.store-badge-primary .store-icon { color: #0F172A; }
.cta-note { font-size: 13px; opacity: 0.85; }
@media (max-width: 700px) {
  .cta-box { padding: 40px 24px; }
  .cta-box h2 { font-size: 26px; }
}

/* FOOTER */
.footer {
  background: var(--bg-dark); color: #fff; padding: 60px 0 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-size: 18px; font-weight: 900; letter-spacing: 1px; }
.footer-brand p { font-size: 13px; opacity: 0.7; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-links h4 { font-size: 14px; font-weight: 800; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links a { display: block; font-size: 14px; opacity: 0.75; padding: 4px 0; transition: opacity 0.15s; }
.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  font-size: 13px; opacity: 0.7; text-align: center;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
