/* ============================================
   TOKENS — Blanc / Noir / Vert
   ============================================ */
:root {
  --bg: #FFFFFF;
  --surface: #F6F7F6;
  --surface-2: #EFF1EF;
  --text: #121212;
  --text-muted: #5C5C5C;
  --accent: #128A44;
  --accent-strong: #0D6B34;
  --accent-dim: #128A4418;
  --border: #E2E4E2;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-track { width: 140px; height: 2px; background: var(--border); position: relative; overflow: visible; }
.loader-icon {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--accent);
  animation: loader-slide 1.4s ease-in-out infinite;
}
@keyframes loader-slide {
  0% { left: 0; opacity: 0.4; }
  50% { opacity: 1; }
  100% { left: calc(100% - 20px); opacity: 0.4; }
}
.loader-text {
  font-family: var(--font-body); font-size: 0.8rem; color: var(--text-muted);
}

/* VIDEO HERO PLEIN ECRAN */
.video-hero {
  position: relative; min-height: 100svh; width: 100%;
  display: flex; align-items: flex-end; z-index: 1; overflow: hidden;
  background: var(--bg);
}
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: 0.55; filter: brightness(0.8) saturate(0.9);
  transition: opacity 0.6s ease;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 8%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.3) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; max-width: var(--maxw);
  margin: 0 auto; padding: 0 24px 90px; width: 100%;
}

.eyebrow {
  font-size: 0.92rem; font-weight: 600; color: var(--accent);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; max-width: 16ch;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  margin-top: 22px; font-size: 1.1rem; color: var(--text); max-width: 48ch;
}
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Sur la home (video en fond sombre), le texte du hero reste blanc */
.video-hero .hero-title, .video-hero .hero-sub { color: #FFFFFF; text-shadow: 0 2px 14px rgba(0,0,0,0.55); }

/* En-tete simple pour les pages secondaires (Services, Guides...) — pas de video, thème clair */
.page-hero { max-width: var(--maxw); margin: 0 auto; padding: 130px 24px 50px; }
.page-hero .hero-title { color: var(--text); max-width: 20ch; }
.page-hero .hero-sub { color: var(--text-muted); max-width: 55ch; }

.btn {
  padding: 14px 26px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  display: inline-block; transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border: 1px solid rgba(245,245,245,0.4); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo-dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 0.92rem; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-cta { background: var(--accent); color: #FFFFFF !important; padding: 9px 18px; border-radius: 6px; font-weight: 600; }
.nav-cta:hover { background: var(--accent-strong); }

/* HAMBURGER (mobile uniquement) */
.nav-burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px; z-index: 210;
}
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: 0; right: 0; width: min(78vw, 300px);
  height: 100vh; height: 100dvh;
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 205; padding: 48px 28px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text); }
.nav-drawer a.active { color: var(--accent); }
.nav-drawer-cta { margin-top: 10px; flex-shrink: 0; background: var(--accent); color: #fff; text-align: center; padding: 12px; border-radius: 8px; font-weight: 600; }

.nav-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 204;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }

/* COMMENT CA MARCHE (remplace l'ancien diagramme INPUT/AUTOMATE/OUTPUT) */
.how-steps { display: flex; gap: 28px; flex-wrap: wrap; padding: 8px 0; }
.how-step {
  flex: 1 1 220px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px 22px 24px;
}
.how-step-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.how-step h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-top: 8px; }
.how-step p { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; }

/* SECTIONS */
section { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 90px 24px; }
.section-eyebrow {
  font-size: 0.92rem; font-weight: 600; color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600; letter-spacing: -0.02em; max-width: 18ch;
}
.section-sub { margin-top: 16px; color: var(--text-muted); max-width: 50ch; font-size: 1.05rem; }

/* ACCORDEONS */
.accordion-group { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.accordion { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.accordion[open] { border-color: var(--accent); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .acc-meta {
  font-family: var(--font-mono); font-weight: 400; font-size: 0.78rem; color: var(--text-muted);
  margin-left: auto; margin-right: 14px; white-space: nowrap;
}
.accordion summary .acc-arrow { color: var(--accent); font-size: 1rem; transition: transform 0.25s ease; flex-shrink: 0; }
.accordion[open] summary .acc-arrow { transform: rotate(180deg); }
.accordion-body { padding: 0 26px 28px; animation: acc-reveal 0.25s ease; }
@keyframes acc-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.accordion-body p.acc-intro { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 22px; max-width: 60ch; }

/* CARTES */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.price-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px 24px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.price-card h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.price-range { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 500; color: var(--accent); margin-bottom: 4px; }
.price-range-usd { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; }
.price-desc { color: var(--text-muted); font-size: 0.9rem; }
.pricing-note { margin-top: 28px; color: var(--text-muted); font-size: 0.85rem; }
.pricing-note a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* GUIDES */
.guide-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.guide-cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.guide-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.guide-body h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.guide-body p { color: var(--text-muted); font-size: 0.88rem; flex: 1; }
.guide-price { font-family: var(--font-mono); color: var(--accent); font-size: 1rem; }
.guide-price-usd { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.78rem; margin-bottom: 8px; }
.guide-cta { margin-top: 6px; text-align: center; background: var(--accent); color: #fff; padding: 10px; border-radius: 8px; font-weight: 600; font-size: 0.88rem; }
.guide-cta:hover { background: var(--accent-strong); }
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 48px; }
.pack-banner {
  margin-top: 44px; background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--accent); border-radius: 14px; padding: 32px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.pack-banner h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 6px; }
.pack-banner p { color: var(--text-muted); font-size: 0.92rem; }

/* TRUST */
.trust-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.trust-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 28px; }
.trust-card p { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; line-height: 1.5; margin-bottom: 16px; }
.trust-card cite { font-family: var(--font-body); font-size: 0.85rem; color: var(--text-muted); font-style: normal; }

/* PROCESS (page Profil/Services eventuelles) */
.process-flow { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.process-step { border-left: 2px solid var(--accent); padding-left: 24px; }
.process-step h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.95rem; }

/* PROFIL */
.profile-block { margin-top: 20px; display: grid; gap: 40px; }
.profile-summary { color: var(--text-muted); font-size: 1.02rem; max-width: 62ch; }
.timeline { margin-top: 8px; display: flex; flex-direction: column; gap: 22px; }
.timeline-item { border-left: 2px solid var(--border); padding-left: 20px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline-item h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.timeline-item span { font-family: var(--font-body); font-size: 0.8rem; color: var(--text-muted); }

/* CONTACT */
.contact-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.contact-btn {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 24px; min-width: 260px; transition: transform 0.15s ease, border-color 0.15s ease;
}
.contact-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.contact-btn-icon { font-size: 1.3rem; color: var(--accent); line-height: 1; }
.contact-btn-text { display: flex; flex-direction: column; gap: 2px; }
.contact-btn-label { font-size: 0.75rem; color: var(--text-muted); }
.contact-btn-value { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text); }
.contact-btn-whatsapp .contact-btn-icon { color: var(--accent); }
.contact-links { margin-top: 32px; display: flex; gap: 24px; font-size: 0.88rem; color: var(--text-muted); }
.contact-links a:hover { color: var(--text); }

/* BOUTON WHATSAPP FLOTTANT */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4); transition: transform 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); background: var(--accent-strong); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* FOOTER */
.footer { position: relative; z-index: 1; text-align: center; padding: 32px 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }

/* BOUTON RETOUR (pages secondaires) */
.back-btn {
  position: fixed; top: 84px; left: 18px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: background 0.2s ease, transform 0.15s ease;
}
.back-btn:hover { background: var(--surface-2); transform: translateX(-2px); }

/* BLOC STATISTIQUES */
.stats-block { margin-top: 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin-top: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 18px; text-align: center;
}
.stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-label { margin-top: 6px; font-size: 0.82rem; color: var(--text-muted); }
.zones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }
.zone-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.zone-card h5 { font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; }
.zone-card p { font-size: 0.82rem; color: var(--text-muted); }

/* RESEAUX SOCIAUX (footer) */
.social-links { display: flex; justify-content: center; gap: 18px; margin-top: 14px; }
.social-links a { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.social-links a:hover { color: var(--accent); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

/* FOCUS */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  section { padding: 64px 20px; }
  .hero-content { padding: 0 20px 60px; }
  .accordion summary .acc-meta { display: none; }
  .pack-banner { flex-direction: column; align-items: flex-start; }
  .how-steps { flex-direction: column; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
}
