/* ============================================================
   YOKHLA — yokhla.com
   Mobile-first, statique, léger. Palette issue du logo.
   ============================================================ */

:root {
  --green: #39b54a;
  --green-dark: #0e7c3a;
  --green-deep: #0a5c2b;
  --ink: #0d1117;
  --ink-2: #161b22;
  --paper: #ffffff;
  --bg-light: #f4f7f5;
  --text: #1a2027;
  --muted: #5a6572;
  --muted-light: #9fb0a6;
  --line: #e3e9e5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(13, 17, 23, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 56px 0; }
.section-dark { background: var(--ink); color: #e6edf3; }
.section-light { background: var(--bg-light); }

.section-title {
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.section-sub {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 560px;
}
.section-dark .section-sub { color: var(--muted-light); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.section-dark .eyebrow { color: var(--green); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 124, 58, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(14, 124, 58, 0.5); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { border-color: #fff; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 60px; width: auto; }

.main-nav {
  display: none;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--green-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--green); color: var(--green-dark); }

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile déplié */
.nav-open .main-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px 0;
}
.nav-open .main-nav a {
  width: 100%;
  padding: 14px 20px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(8, 12, 16, 0.82), rgba(8, 12, 16, 0.88)),
    url("../img/hero-passagere-dakar-750.jpg");
  background-image:
    linear-gradient(rgba(8, 12, 16, 0.82), rgba(8, 12, 16, 0.88)),
    image-set(
      url("../img/hero-passagere-dakar-750.webp") type("image/webp"),
      url("../img/hero-passagere-dakar-750.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero h1 .accent { color: var(--green); }
.hero-text p {
  font-size: 1.05rem;
  color: #c8d2cc;
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted-light);
}

/* Compte à rebours de lancement */
.countdown { margin-top: 30px; }
.countdown-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 10px;
}
.countdown-grid { display: flex; gap: 10px; }
.countdown-grid > div {
  width: 66px;
  padding: 10px 0 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(57, 181, 74, 0.4);
  border-radius: 12px;
}
.countdown-grid strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.countdown-grid span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-light);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.hero-stats div {
  border-left: 3px solid var(--green);
  padding-left: 12px;
}
.hero-stats strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
}
.hero-stats span { font-size: 0.8rem; color: var(--muted-light); }

/* ---------- Mockup téléphone (placeholder app) ---------- */
.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.phone {
  width: 280px;
  border-radius: 40px;
  border: 10px solid #06090c;
  background: #06090c;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #06090c;
  border-radius: 12px;
  z-index: 3;
}
.phone-screen {
  background: #f2f5f3;
  border-radius: 30px;
  overflow: hidden;
  color: var(--text);
}
.app-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 38px 16px 10px;
  background: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.app-top img { width: 22px; height: 22px; border-radius: 6px; }
.app-map {
  position: relative;
  height: 150px;
  background:
    radial-gradient(circle at 75% 20%, rgba(57, 181, 74, 0.25), transparent 45%),
    linear-gradient(160deg, #dcebe0 0%, #cfe3d4 55%, #c2dac8 100%);
}
.app-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-sheet {
  background: #fff;
  border-radius: 18px 18px 0 0;
  margin-top: -16px;
  position: relative;
  padding: 14px 14px 16px;
}
.app-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.app-ride {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 4px;
  border-bottom: 1px solid var(--bg-light);
  font-size: 0.8rem;
}
.app-ride:last-of-type { border-bottom: 0; }
.app-ride .ride-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(57, 181, 74, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  color: var(--green-dark);
}
.app-ride .ride-name { font-weight: 700; }
.app-ride .ride-eta { color: var(--muted); font-size: 0.72rem; display: block; }
.app-ride .ride-price { font-weight: 800; color: var(--green-dark); white-space: nowrap; }
.app-ride-left { display: flex; align-items: center; }
.app-cta {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: 11px;
  padding: 12px;
}
.phone-caption {
  font-size: 0.78rem;
  color: var(--muted-light);
  text-align: center;
  max-width: 280px;
}

/* ---------- Cartes génériques ---------- */
.cards {
  display: grid;
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.section-dark .card {
  background: var(--ink-2);
  border-color: #232b35;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.section-dark .card p { color: var(--muted-light); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(57, 181, 74, 0.14);
  color: var(--green-dark);
  margin-bottom: 14px;
}
.section-dark .card-icon { color: var(--green); }

.badge {
  display: inline-block;
  background: rgba(57, 181, 74, 0.16);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.section-dark .badge { color: var(--green); }

/* ---------- Mise en page deux colonnes ---------- */
.split {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

/* ---------- Formulaire ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
}
.form-grid { display: grid; gap: 16px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 181, 74, 0.18);
}
.form-consent { font-size: 0.78rem; color: var(--muted); margin: 4px 0 0; }
.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.ok { display: block; background: rgba(57, 181, 74, 0.14); color: var(--green-deep); }
.form-status.err { display: block; background: rgba(214, 69, 69, 0.12); color: #a32424; }
/* Anti-spam : champ invisible pour les humains */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Téléchargement / bientôt disponible ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-2);
  border: 1px solid #2a3340;
  color: #e6edf3;
  border-radius: 12px;
  padding: 10px 18px;
  text-align: left;
  opacity: 0.65;
  cursor: not-allowed;
  user-select: none;
}
.store-btn small { display: block; font-size: 0.68rem; color: var(--muted-light); }
.store-btn strong { font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--green-dark);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1eba57;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(30, 186, 87, 0.45);
  transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: scale(1.07); }
.whatsapp-fab[hidden] { display: none; }

/* ---------- Contact ---------- */
.contact-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.contact-actions .btn { width: 100%; }
.btn-whatsapp {
  background: #1eba57;
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 186, 87, 0.35);
}
.btn-email {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.contact-placeholder-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #06090c;
  color: var(--muted-light);
  padding: 40px 0 28px;
  font-size: 0.88rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  padding: 3px;
}
.footer-brand strong { color: #fff; font-size: 1.05rem; letter-spacing: 0.05em; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--muted-light); text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.footer-social { display: flex; justify-content: center; gap: 12px; margin: 4px 0 16px; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #232b35;
  border-radius: 50%;
  color: var(--muted-light);
}
.footer-social a:hover { color: var(--green); border-color: var(--green); }
.footer-legal { font-size: 0.78rem; }

/* ---------- Pages légales ---------- */
.legal-page { max-width: 760px; }
.legal-page h1 { font-size: 1.7rem; margin-bottom: 4px; }
.legal-page h2 { font-size: 1.15rem; margin-top: 32px; }
.legal-updated { color: var(--muted); font-size: 0.85rem; }
.legal-warning {
  background: #fff7e0;
  border: 1px solid #eed793;
  color: #6b5410;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 20px 0;
}

/* ---------- Apparition au scroll ----------
   Activée uniquement si JS est présent (classe .js sur <html>),
   pour que le contenu reste visible sans JavaScript. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Desktop / tablette
   ============================================================ */
@media (min-width: 760px) {
  .section { padding: 88px 0; }
  .section-title { font-size: 2.1rem; }

  .nav-burger { display: none; }
  .main-nav { display: flex; }

  .hero {
    background-image:
      linear-gradient(100deg, rgba(8, 12, 16, 0.93) 38%, rgba(8, 12, 16, 0.55)),
      url("../img/hero-passagere-dakar-1200.jpg");
    background-image:
      linear-gradient(100deg, rgba(8, 12, 16, 0.93) 38%, rgba(8, 12, 16, 0.55)),
      image-set(
        url("../img/hero-passagere-dakar-1200.webp") type("image/webp"),
        url("../img/hero-passagere-dakar-1200.jpg") type("image/jpeg")
      );
  }
  .hero .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 88px;
    padding-bottom: 88px;
  }
  .hero-text { flex: 1 1 55%; }
  .phone-wrap { flex: 0 0 auto; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }

  .split {
    flex-direction: row;
    align-items: center;
  }
  .split > * { flex: 1 1 50%; min-width: 0; }
  .split-reverse { flex-direction: row-reverse; }

  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field-full { grid-column: 1 / -1; }

  .contact-actions { flex-direction: row; }
  .contact-actions .btn { width: auto; }
}

@media (min-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .phone { width: 300px; }
}
