/* ============================================================
   JONGA — Design system
   Typographie : Sora (titres) + Inter (texte courant)
   Police chargée via <link preconnect> dans le <head> de chaque page (perf).
   ============================================================ */

:root{
  --orange-500:#FF6B35;
  --orange-600:#FF4F17;
  --orange-300:#FFB23E;
  --green-500:#17B978;
  --green-600:#0FA968;
  --blue-500:#3E7BFA;
  --gold-500:#F2B705;

  --radius-s:10px;
  --radius-m:16px;
  --radius-l:24px;
  --radius-xl:32px;

  --container:1180px;
  --nav-h:76px;

  --ease:cubic-bezier(.22,.85,.32,1);
  --font-display:'Sora', system-ui, sans-serif;
  --font-body:'Inter', system-ui, sans-serif;
}

/* ---------- Thème clair (défaut) ---------- */
:root,
[data-theme="light"]{
  --bg:#FAF9F7;
  --bg-alt:#F2F0EC;
  --surface:#FFFFFF;
  --surface-2:#FFFFFF;
  --text:#15161A;
  --text-muted:#5B5E67;
  --text-soft:#84878F;
  --border:#E7E5DF;
  --border-soft:#EFEDE7;
  --nav-bg:rgba(250,249,247,0.78);
  --shadow-card:0 1px 2px rgba(20,20,15,.04), 0 12px 32px -16px rgba(20,20,15,.10);
  --shadow-lift:0 20px 60px -20px rgba(20,20,15,.22);
  --scrim:rgba(15,14,10,.55);
  --hero-bg:#12100E;
  --hero-text:#F7F5F1;
  --hero-muted:rgba(247,245,241,.68);
  --code-track:#EFEDE7;
}

/* ---------- Thème sombre ---------- */
[data-theme="dark"]{
  --bg:#0D0E11;
  --bg-alt:#131519;
  --surface:#17191E;
  --surface-2:#1C1F25;
  --text:#F3F3F1;
  --text-muted:#A6A9B2;
  --text-soft:#797D87;
  --border:#25272E;
  --border-soft:#1F2127;
  --nav-bg:rgba(13,14,17,0.72);
  --shadow-card:0 1px 2px rgba(0,0,0,.3), 0 16px 40px -18px rgba(0,0,0,.55);
  --shadow-lift:0 24px 70px -20px rgba(0,0,0,.65);
  --scrim:rgba(0,0,0,.6);
  --hero-bg:#0A0B0D;
  --hero-text:#F7F5F1;
  --hero-muted:rgba(247,245,241,.62);
  --code-track:#1C1F25;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth; scroll-padding-top:calc(var(--nav-h) + 12px);}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important;}
}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  transition:background-color .35s var(--ease), color .35s var(--ease);
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none; margin:0; padding:0;}
button{font-family:inherit;}
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.12;
  margin:0;
  letter-spacing:-0.01em;
}
p{margin:0;}
:focus-visible{outline:2px solid var(--orange-500); outline-offset:3px; border-radius:4px;}

.container{max-width:var(--container); margin:0 auto; padding:0 24px;}
@media (max-width:640px){ .container{padding:0 20px;} }

.section{padding:112px 0;}
@media (max-width:900px){ .section{padding:80px 0;} }
@media (max-width:560px){ .section{padding:64px 0;} }

.section-head{max-width:600px; margin-bottom:56px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-kicker{
  display:inline-flex; align-items:center; gap:8px;
  font-size:14px; font-weight:600; color:var(--orange-600);
  margin-bottom:14px;
}
.section-kicker::before{
  content:''; width:7px; height:7px; border-radius:50%;
  background:var(--orange-500); flex:none;
}
[data-theme="dark"] .section-kicker{color:var(--orange-300);}
.section-title{font-size:clamp(28px,3.6vw,42px); color:var(--text);}
.section-desc{margin-top:16px; font-size:17px; color:var(--text-muted); max-width:52ch;}
.center .section-desc{margin-left:auto; margin-right:auto;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:15px 28px; border-radius:100px;
  font-family:var(--font-body); font-weight:700; font-size:15px;
  border:1px solid transparent; cursor:pointer;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space:nowrap;
}
.btn:active{transform:scale(.97);}
.btn-primary{
  background:linear-gradient(135deg,var(--orange-500),var(--orange-600));
  color:#fff;
  box-shadow:0 10px 26px -8px rgba(255,79,23,.55);
}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 16px 34px -8px rgba(255,79,23,.6);}
.btn-ghost{
  background:transparent; color:var(--hero-text);
  border-color:rgba(247,245,241,.28);
}
.btn-ghost:hover{background:rgba(247,245,241,.08); border-color:rgba(247,245,241,.5);}
.btn-outline{background:transparent; color:var(--text); border-color:var(--border);}
.btn-outline:hover{border-color:var(--text-soft); transform:translateY(-2px);}
.btn-white{background:#fff; color:#15161A; box-shadow:0 10px 26px -10px rgba(0,0,0,.3);}
.btn-white:hover{transform:translateY(-2px);}
.btn-green{background:linear-gradient(135deg,var(--green-500),var(--green-600)); color:#fff; box-shadow:0 10px 26px -8px rgba(23,185,120,.5);}
.btn-green:hover{transform:translateY(-2px); box-shadow:0 16px 34px -8px rgba(23,185,120,.55);}
.btn-block{width:100%;}
.btn[disabled]{opacity:.6; cursor:not-allowed; transform:none !important;}

/* ============================================================
   NAV
   ============================================================ */
.nav-wrapper{
  position:fixed; top:0; left:0; right:0; z-index:200;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:transparent;
  transition:background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom:1px solid transparent;
}
.nav-wrapper.scrolled{
  background:var(--nav-bg);
  backdrop-filter:blur(16px) saturate(150%);
  border-bottom-color:var(--border-soft);
}
.nav{
  max-width:var(--container); margin:0 auto; width:100%;
  padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav-logo{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:19px; color:var(--nav-fg,var(--text));}
.nav-logo img{width:34px; height:34px; border-radius:9px; object-fit:cover;}
.nav-links{display:flex; align-items:center; gap:6px;}
.nav-links a:not(.nav-cta){
  padding:10px 14px; border-radius:100px; font-size:14.5px; font-weight:600;
  color:var(--nav-fg,var(--text-muted));
  transition:background-color .2s, color .2s;
}
.nav-links a:not(.nav-cta):hover{background:var(--nav-hover,var(--border-soft)); color:var(--text);}
.nav-links a.active{color:var(--orange-500);}
.nav-cta{margin-left:6px;}
.nav-right{display:flex; align-items:center; gap:8px;}
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:40px; height:40px; border-radius:10px; border:none; background:transparent; cursor:pointer;
}
.nav-toggle span{width:20px; height:2px; background:var(--nav-fg,var(--text)); margin:0 auto; border-radius:2px; transition:transform .3s var(--ease), opacity .3s;}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.open span:nth-child(2){opacity:0;}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* Icon buttons (lang / theme) */
.icon-btn{
  width:40px; height:40px; border-radius:100px; border:1px solid var(--icon-border,var(--border));
  background:var(--icon-bg,transparent); color:var(--nav-fg,var(--text));
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:background-color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover{transform:translateY(-1px); border-color:var(--orange-500);}
.icon-btn svg{width:18px; height:18px;}
.theme-icon-dark{display:none;}
[data-theme="dark"] .theme-icon-light{display:none;}
[data-theme="dark"] .theme-icon-dark{display:block;}

.lang-btn{
  width:auto; padding:0 12px; gap:6px; font-weight:700; font-size:13px; text-transform:uppercase;
}

/* Home page nav is on dark hero → force light icons until scrolled */
body.has-dark-hero .nav-wrapper:not(.scrolled){--nav-fg:#F7F5F1; --nav-hover:rgba(247,245,241,.12); --icon-border:rgba(247,245,241,.28); --icon-bg:transparent;}

@media (max-width:900px){
  .nav-toggle{display:flex;}
  .nav-links{
    position:fixed; top:var(--nav-h); left:0; right:0;
    flex-direction:column; align-items:stretch; gap:2px;
    background:var(--surface); border-bottom:1px solid var(--border);
    padding:14px; transform:translateY(-12px); opacity:0; pointer-events:none;
    transition:opacity .25s var(--ease), transform .25s var(--ease);
    box-shadow:var(--shadow-lift);
  }
  .nav-links.open{opacity:1; transform:translateY(0); pointer-events:auto;}
  .nav-links a{color:var(--text) !important;}
  .nav-links a:not(.nav-cta):hover{background:var(--border-soft) !important;}
  .nav-cta{margin:8px 0 0;}
  body.has-dark-hero .nav-links{--nav-fg:var(--text);}
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; background:var(--hero-bg); color:var(--hero-text);
  padding:calc(var(--nav-h) + 76px) 0 0;
  overflow:hidden;
}
.hero-route{position:absolute; inset:0; pointer-events:none; opacity:.55;}
.hero-route svg{width:100%; height:100%;}
.hero-route path{fill:none; stroke:url(#routeGrad); stroke-width:1.4; stroke-dasharray:6 8;}
.hero-route .dot{fill:var(--orange-500);}
.hero-inner{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center;
  padding-bottom:80px;
}
.hero-eyebrow{margin-bottom:22px;}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px; border-radius:100px; font-size:13.5px; font-weight:600;
  background:rgba(247,245,241,.08); border:1px solid rgba(247,245,241,.16);
  color:var(--hero-muted);
}
.pill .dot-live{width:7px; height:7px; border-radius:50%; background:var(--green-500); box-shadow:0 0 0 3px rgba(23,185,120,.25);}
.hero h1{font-size:clamp(40px,6vw,68px); color:var(--hero-text);}
.hero-desc{margin-top:22px; font-size:18px; line-height:1.65; color:var(--hero-muted); max-width:46ch;}
.hero-actions{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap;}
.hero-trust{display:flex; align-items:center; gap:14px; margin-top:44px;}
.hero-trust-avatars{display:flex;}
.hero-trust-avatar{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; color:#fff;
  background:linear-gradient(135deg,var(--orange-500),var(--orange-600));
  border:2.5px solid var(--hero-bg); margin-left:-10px;
}
.hero-trust-avatar:first-child{margin-left:0;}
.hero-trust-text{font-size:13.5px; color:var(--hero-muted); line-height:1.4;}
.hero-trust-text strong{color:var(--hero-text);}

/* Phone mock */
.phone-wrap{position:relative; display:flex; justify-content:center;}
.phone-glow{
  position:absolute; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,107,53,.35), transparent 70%);
  filter:blur(10px); top:10%; z-index:0;
}
.phone-device{
  position:relative; z-index:1; width:280px; border-radius:38px;
  background:#0A0B0D; border:8px solid #1B1C20; box-shadow:var(--shadow-lift);
}
.phone-notch{position:absolute; top:0; left:50%; transform:translateX(-50%); width:110px; height:22px; background:#1B1C20; border-radius:0 0 16px 16px; z-index:2;}
.phone-screen{background:#F7F5F1; border-radius:30px; overflow:hidden; padding-top:30px;}
.phone-top{padding:14px 20px 18px;}
.phone-top small{color:#84878F; font-size:12.5px;}
.phone-top h3{font-size:16.5px; color:#15161A; margin-top:4px; font-family:var(--font-display);}
.phone-body{padding:0 14px 20px; display:flex; flex-direction:column; gap:10px;}
.phone-card{
  display:flex; align-items:center; gap:12px; background:#fff; border-radius:16px; padding:12px;
  box-shadow:0 1px 2px rgba(0,0,0,.04), 0 8px 20px -12px rgba(0,0,0,.15);
}
.phone-icon{width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; flex:none;}
.phone-icon svg{width:19px; height:19px;}
.phone-icon.o{background:#FFE8DC; color:#E85218;}
.phone-icon.g{background:#DFF7EA; color:#0FA968;}
.phone-icon.b{background:#E4EBFD; color:#3E7BFA;}
.phone-icon.p{background:#F1E6FE; color:#8B5CF6;}
.phone-info{flex:1; min-width:0;}
.phone-t1{font-size:13.5px; font-weight:700; color:#15161A;}
.phone-t2{font-size:11.5px; color:#84878F; margin-top:1px;}
.phone-badge{font-size:10px; font-weight:800; color:#fff; background:var(--orange-500); padding:3px 8px; border-radius:100px;}

.scroll-cue{
  position:relative; z-index:2; display:flex; justify-content:center;
  color:rgba(247,245,241,.5); padding-bottom:22px; margin-top:-10px;
  animation:scrollcue 2.2s ease-in-out infinite;
}
.scroll-cue svg{width:20px; height:20px;}
.scroll-cue:hover{color:var(--orange-300);}
@keyframes scrollcue{0%,100%{transform:translateY(0); opacity:.5;} 50%{transform:translateY(6px); opacity:1;}}

/* Ticker */
.ticker-wrap{position:relative; z-index:2; border-top:1px solid rgba(247,245,241,.1); overflow:hidden; background:rgba(0,0,0,.18);}
.ticker-track{display:flex; width:max-content; animation:ticker 32s linear infinite;}
.ticker-item{display:flex; align-items:center; gap:14px; padding:16px 30px; font-size:13.5px; font-weight:600; color:var(--hero-muted); white-space:nowrap;}
.ticker-dot{width:4px; height:4px; border-radius:50%; background:var(--orange-500);}
@keyframes ticker{from{transform:translateX(0);} to{transform:translateX(-50%);}}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band{background:var(--bg-alt); padding:52px 0; border-bottom:1px solid var(--border-soft);}
.stats-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center;}
.stat-num{font-family:var(--font-display); font-size:clamp(28px,3vw,38px); font-weight:800; color:var(--text);}
.stat-label{margin-top:6px; font-size:13.5px; color:var(--text-muted);}
@media (max-width:760px){ .stats-grid{grid-template-columns:repeat(2,1fr); row-gap:32px;} }

/* ============================================================
   STEPS
   ============================================================ */
.steps-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:8px;}
.step-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-l);
  padding:32px 28px;
}
.step-num{
  width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:800; font-size:16px; color:#fff;
  background:linear-gradient(135deg,var(--orange-500),var(--orange-600)); margin-bottom:20px;
}
.step-card h3{font-size:19px; margin-bottom:10px;}
.step-card p{color:var(--text-muted); font-size:15px; line-height:1.6;}
@media (max-width:860px){ .steps-grid{grid-template-columns:1fr;} }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.feature-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-l);
  padding:28px; transition:border-color .25s, transform .25s;
}
.feature-card:hover{border-color:var(--orange-300); transform:translateY(-3px);}
.feature-icon{
  width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.feature-icon svg{width:21px; height:21px;}
.fi-orange{background:#FFE8DC; color:#E85218;}
.fi-green{background:#DFF7EA; color:#0FA968;}
.fi-blue{background:#E4EBFD; color:#3E7BFA;}
.fi-gold{background:#FDF1CC; color:#B8890A;}
.fi-teal{background:#D9F3EE; color:#0E9488;}
[data-theme="dark"] .fi-orange{background:rgba(255,107,53,.16); color:#FF9A6B;}
[data-theme="dark"] .fi-green{background:rgba(23,185,120,.16); color:#3DD996;}
[data-theme="dark"] .fi-blue{background:rgba(62,123,250,.16); color:#7DA3FF;}
[data-theme="dark"] .fi-gold{background:rgba(242,183,5,.16); color:#F2C94C;}
[data-theme="dark"] .fi-teal{background:rgba(23,185,150,.16); color:#4FD9C7;}
.feature-card h3{font-size:17px; margin-bottom:8px;}
.feature-card p{color:var(--text-muted); font-size:14.5px; line-height:1.6;}
@media (max-width:860px){ .features-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .features-grid{grid-template-columns:1fr;} }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-tabs{display:flex; gap:8px; margin-bottom:36px; flex-wrap:wrap;}
.tab-btn{
  padding:11px 20px; border-radius:100px; border:1px solid var(--border); background:var(--surface);
  color:var(--text-muted); font-weight:700; font-size:14px; cursor:pointer; transition:all .2s;
}
.tab-btn.active{background:var(--text); color:var(--bg); border-color:var(--text);}
.testimonials-panel{display:none;}
.testimonials-panel.active{display:block;}
.testimonials-carousel{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.testi-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-l); padding:26px;
  position:relative;
}
.testi-quote{position:absolute; top:18px; right:22px; font-family:var(--font-display); font-size:44px; color:var(--border); line-height:1;}
.testi-stars{display:flex; gap:3px; margin-bottom:14px;}
.testi-stars svg{width:15px; height:15px; fill:var(--gold-500);}
.testi-text{font-size:14.5px; color:var(--text); line-height:1.65;}
.testi-person{display:flex; align-items:center; gap:10px; margin-top:20px;}
.testi-avatar{
  width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:13px; color:#fff; background:linear-gradient(135deg,var(--orange-500),var(--orange-600)); flex:none;
}
.testi-name{font-size:13.5px; font-weight:700;}
.testi-role{font-size:12px; color:var(--text-soft);}
@media (max-width:900px){ .testimonials-carousel{grid-template-columns:1fr 1fr;} }
@media (max-width:640px){ .testimonials-carousel{grid-template-columns:1fr;} }

/* ============================================================
   COVERAGE
   ============================================================ */
.coverage-section{background:var(--bg-alt); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft);}
.coverage-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; margin-top:12px;}
.coverage-num{font-family:var(--font-display); font-size:clamp(26px,3vw,34px); font-weight:800; color:var(--orange-500);}
.coverage-label{margin-top:6px; font-size:13.5px; color:var(--text-muted);}
@media (max-width:760px){ .coverage-grid{grid-template-columns:1fr 1fr; row-gap:30px;} }

/* ============================================================
   PARTNER / LIVREUR CTA (dark bands)
   ============================================================ */
.dark-band{background:var(--hero-bg); color:var(--hero-text); position:relative; overflow:hidden;}
.partner-section .container{padding:0 24px;}
.partner-card{
  background:linear-gradient(120deg, var(--orange-600), var(--orange-500) 60%, var(--orange-300));
  border-radius:var(--radius-xl); padding:56px; display:flex; align-items:center; justify-content:space-between; gap:32px;
  color:#fff; flex-wrap:wrap;
}
.partner-card h2{font-size:clamp(24px,3vw,32px); color:#fff; max-width:520px;}
.partner-card p{margin-top:14px; color:rgba(255,255,255,.88); max-width:480px; font-size:15.5px; line-height:1.6;}

.livreur-cta-inner{display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center;}
.livreur-cta-badge{
  display:inline-flex; align-items:center; gap:8px; padding:8px 16px; border-radius:100px;
  background:rgba(23,185,120,.14); border:1px solid rgba(23,185,120,.3); color:var(--green-500);
  font-size:13px; font-weight:700; margin-bottom:20px;
}
.livreur-cta-inner h2{font-size:clamp(26px,3.2vw,36px); color:var(--hero-text); max-width:480px;}
.livreur-cta-inner > div:first-child p{margin-top:16px; color:var(--hero-muted); max-width:48ch; line-height:1.65;}
.livreur-benefits{display:grid; gap:12px; margin:28px 0 32px;}
.livreur-benefit{display:flex; align-items:center; gap:12px; font-size:14.5px; color:var(--hero-text);}
.livreur-benefit-icon{
  width:24px; height:24px; border-radius:50%; background:rgba(23,185,120,.16); color:var(--green-500);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.livreur-benefit-icon svg{width:13px; height:13px;}
.earnings-card{
  background:rgba(247,245,241,.05); border:1px solid rgba(247,245,241,.12); border-radius:var(--radius-l);
  padding:22px; margin-bottom:14px;
}
.earnings-label{font-size:12.5px; color:var(--hero-muted); margin-bottom:8px;}
.earnings-amount{font-family:var(--font-display); font-size:30px; font-weight:800; color:var(--hero-text);}
.earnings-amount span{background:linear-gradient(135deg,var(--orange-300),var(--orange-500)); -webkit-background-clip:text; -webkit-text-fill-color:transparent;}
.earnings-badge{margin-top:8px; font-size:12.5px; color:var(--green-500); font-weight:700;}
@media (max-width:900px){ .livreur-cta-inner{grid-template-columns:1fr;} }
@media (max-width:640px){ .partner-card{flex-direction:column; align-items:flex-start; padding:36px 28px;} }

/* ============================================================
   DOWNLOAD
   ============================================================ */
.store-badges{display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-top:8px;}
.store-badge{
  display:flex; align-items:center; gap:12px; padding:14px 22px; border-radius:var(--radius-m);
  background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-card);
}
.store-badge-text{display:flex; flex-direction:column;}
.store-badge-text small{font-size:11px; color:var(--text-soft);}
.store-badge-text strong{font-size:16px; font-family:var(--font-display);}
.store-badge svg rect, .store-badge svg path[fill="white"]{fill:var(--surface);}

/* ============================================================
   FOOTER
   ============================================================ */
footer{background:var(--hero-bg); color:var(--hero-text); padding:76px 0 28px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px;}
.footer-brand{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:19px; margin-bottom:16px;}
.footer-brand img{width:32px; height:32px; border-radius:8px;}
.footer-about{color:var(--hero-muted); font-size:14px; line-height:1.65; max-width:36ch;}
.footer-social{display:flex; gap:10px; margin-top:22px;}
.footer-social a{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:rgba(247,245,241,.06); border:1px solid rgba(247,245,241,.14); color:var(--hero-muted);
  transition:all .2s;
}
.footer-social a:hover{background:var(--orange-500); border-color:var(--orange-500); color:#fff;}
.footer-col h4{font-size:13.5px; color:var(--hero-text); margin-bottom:16px; font-family:var(--font-body); font-weight:700;}
.footer-col a{display:block; color:var(--hero-muted); font-size:14px; margin-bottom:11px; transition:color .2s;}
.footer-col a:hover{color:var(--hero-text);}
.footer-contact-btn{display:flex; align-items:center; gap:8px; font-size:13.5px; margin-bottom:10px;}
.footer-contact-btn svg{flex:none;}
.footer-divider{border:none; border-top:1px solid rgba(247,245,241,.1); margin:44px 0 24px;}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;}
.footer-bottom-text{font-size:13px; color:var(--hero-muted);}
.footer-links{display:flex; gap:20px;}
.footer-links a{font-size:13px; color:var(--hero-muted);}
.footer-links a:hover{color:var(--hero-text);}
@media (max-width:900px){ .footer-grid{grid-template-columns:1fr 1fr; row-gap:36px;} }
@media (max-width:560px){ .footer-grid{grid-template-columns:1fr;} }

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.floating-wa{position:fixed; right:22px; bottom:22px; z-index:150;}
.floating-wa a{
  display:flex; align-items:center; gap:9px; background:#22C35E; color:#fff; padding:14px; border-radius:100px;
  box-shadow:0 10px 30px -8px rgba(34,195,94,.55); transition:transform .25s var(--ease), padding .25s var(--ease);
}
.floating-wa a:hover{transform:translateY(-2px);}
.wa-label{max-width:0; overflow:hidden; white-space:nowrap; font-size:13.5px; font-weight:700; transition:max-width .3s var(--ease);}
.floating-wa a:hover .wa-label{max-width:160px;}

/* ============================================================
   Reveal / stagger animations
   ============================================================ */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease);}
.reveal.visible{opacity:1; transform:translateY(0);}
.stagger > *{opacity:0; transform:translateY(16px); transition:opacity .6s var(--ease), transform .6s var(--ease);}
.stagger.visible > *, .stagger > .visible{opacity:1; transform:translateY(0);}
.stagger > *:nth-child(1){transition-delay:.03s;} .stagger > *:nth-child(2){transition-delay:.09s;}
.stagger > *:nth-child(3){transition-delay:.15s;} .stagger > *:nth-child(4){transition-delay:.21s;}
.stagger > *:nth-child(5){transition-delay:.27s;} .stagger > *:nth-child(6){transition-delay:.33s;}

/* ============================================================
   INNER PAGE HERO (livreur / partenaire / légal)
   ============================================================ */
.page-hero{
  background:var(--hero-bg); color:var(--hero-text);
  padding:calc(var(--nav-h) + 64px) 0 64px; position:relative; overflow:hidden;
}
.page-hero-inner{display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; position:relative; z-index:1;}
.page-hero h1{font-size:clamp(32px,4.6vw,50px); color:var(--hero-text);}
.page-hero .em{color:var(--orange-300);}
.page-hero.theme-green .em{color:var(--green-500);}
.page-hero-desc{margin-top:18px; font-size:16.5px; color:var(--hero-muted); max-width:46ch; line-height:1.65;}
.page-hero-actions{display:flex; gap:14px; margin-top:30px; flex-wrap:wrap;}
@media (max-width:900px){ .page-hero-inner{grid-template-columns:1fr;} }

.legal-hero{padding:calc(var(--nav-h) + 56px) 0 44px;}
.legal-body{max-width:760px; margin:0 auto; padding:56px 24px 100px;}
.legal-body h2{font-size:20px; margin:36px 0 12px;}
.legal-body h2:first-child{margin-top:0;}
.legal-body p, .legal-body li{color:var(--text-muted); font-size:15.5px; line-height:1.75;}
.legal-body ul{margin:10px 0; padding-left:20px; list-style:disc;}
.legal-body li{margin-bottom:6px;}
.legal-updated{color:var(--text-soft); font-size:13.5px; margin-top:8px;}

/* Benefit grid (livreur/partenaire) */
.benefits-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.benefit-card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-l); padding:28px;}
.benefit-card .feature-icon{margin-bottom:16px;}
.benefit-card h3{font-size:16.5px; margin-bottom:8px;}
.benefit-card p{color:var(--text-muted); font-size:14px; line-height:1.6;}
@media (max-width:860px){ .benefits-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .benefits-grid{grid-template-columns:1fr;} }

/* Values grid (4 items on about page) */
.values-grid{grid-template-columns:repeat(4,1fr);}
@media (max-width:900px){ .values-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .values-grid{grid-template-columns:1fr;} }

/* Team card */
.team-card{display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-l); padding:32px 24px; box-shadow:var(--shadow-card);}
.team-avatar{width:72px; height:72px; border-radius:50%; color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; font-size:22px; letter-spacing:0.5px; flex:none; overflow:hidden;}
.team-avatar img{width:100%; height:100%; object-fit:cover; display:block;}
.team-avatar.av-orange{background:linear-gradient(135deg,var(--orange-500),var(--orange-600));}
.team-avatar.av-green{background:linear-gradient(135deg,#22c55e,#16a34a);}
.team-avatar.av-blue{background:linear-gradient(135deg,#3b82f6,#2563eb);}
.team-name{font-family:var(--font-display); font-weight:700; font-size:17px;}
.team-role{color:var(--text-muted); font-size:14px;}
.team-location{color:var(--text-soft); font-size:13px;}
.team-desc{color:var(--text-muted); font-size:14.5px; line-height:1.7; margin-top:16px;}
.team-email{color:var(--orange-500); font-weight:600; text-decoration:none;}
.team-email:hover{text-decoration:underline;}
@media (max-width:560px){ .team-card{padding:28px 20px;} }
.team-intro{max-width:620px; margin:0 auto 40px; text-align:center; color:var(--text-muted); font-size:15px; line-height:1.75;}
.team-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
@media (max-width:860px){ .team-grid{grid-template-columns:1fr;} }

/* Process timeline */
.process-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:0; position:relative;}
.process-step{position:relative; padding:0 24px 0 0;}
.process-step-num{
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:800; color:#fff; margin-bottom:18px; font-size:16px;
  background:linear-gradient(135deg,var(--orange-500),var(--orange-600));
}
.theme-green .process-step-num{background:linear-gradient(135deg,var(--green-500),var(--green-600));}
.process-step h3{font-size:17px; margin-bottom:8px;}
.process-step p{color:var(--text-muted); font-size:14.5px; line-height:1.6;}
@media (max-width:860px){ .process-grid{grid-template-columns:1fr; gap:32px;} }

/* ============================================================
   FORM
   ============================================================ */
.form-section{background:var(--bg-alt);}
.form-wrap{max-width:640px; margin:0 auto; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-xl); padding:44px; box-shadow:var(--shadow-card);}
@media (max-width:560px){ .form-wrap{padding:28px 22px;} }
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width:560px){ .form-row{grid-template-columns:1fr;} }
.form-group{margin-bottom:20px;}
.form-label{display:block; font-size:13.5px; font-weight:700; margin-bottom:8px; color:var(--text);}
.form-label .req{color:var(--orange-500);}
.form-input, .form-select, .form-textarea{
  width:100%; padding:13px 16px; border-radius:var(--radius-s); border:1px solid var(--border);
  background:var(--bg); color:var(--text); font-family:var(--font-body); font-size:14.5px;
  transition:border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus{
  border-color:var(--orange-500); box-shadow:0 0 0 3px rgba(255,107,53,.15); outline:none;
}
.form-textarea{resize:vertical; min-height:100px;}
.phone-field{display:flex; gap:10px;}
.pays-wrapper{position:relative; flex:none; width:128px;}
.pays-selected{
  display:flex; align-items:center; gap:6px; padding:13px 12px; border-radius:var(--radius-s);
  border:1px solid var(--border); background:var(--bg); cursor:pointer; font-size:14px; color:var(--text);
  height:100%;
}
.pays-selected svg{margin-left:auto; width:14px; height:14px; color:var(--text-soft); transition:transform .2s;}
.pays-selected.open svg{transform:rotate(180deg);}
.pays-dropdown{
  position:absolute; top:calc(100% + 6px); left:0; width:260px; max-height:280px; overflow-y:auto;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m);
  box-shadow:var(--shadow-lift); z-index:50; display:none; padding:6px;
}
.pays-dropdown.open{display:block;}
.pays-search{width:100%; padding:9px 12px; border-radius:8px; border:1px solid var(--border); background:var(--bg); color:var(--text); font-size:13.5px; margin-bottom:6px;}
.pays-option{display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:8px; font-size:13.5px; cursor:pointer;}
.pays-option:hover{background:var(--border-soft);}
.flag-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:16px; border-radius:3px; overflow:hidden; flex:none;
  box-shadow:0 0 0 1px rgba(0,0,0,.12);
}
[data-theme="dark"] .flag-icon{box-shadow:0 0 0 1px rgba(255,255,255,.14);}
.flag-icon svg{width:100%; height:100%; display:block;}
.pays-flag-label{display:flex; align-items:center; gap:7px;}
.form-submit-note{font-size:12.5px; color:var(--text-soft); margin-top:14px; text-align:center;}
.form-success{
  display:none; text-align:center; padding:20px 0 4px;
}
.form-success.visible{display:block;}
.form-success-icon{
  width:56px; height:56px; border-radius:50%; background:rgba(23,185,120,.14); color:var(--green-500);
  display:flex; align-items:center; justify-content:center; margin:0 auto 18px;
}
.form-success h3{font-size:19px; margin-bottom:8px;}
.form-success p{color:var(--text-muted); font-size:14.5px;}

/* Theme-tinted focus for partner (green) pages */
.theme-green .form-input:focus, .theme-green .form-select:focus, .theme-green .form-textarea:focus{
  border-color:var(--green-500); box-shadow:0 0 0 3px rgba(23,185,120,.15);
}

/* Skip link */
.skip-link{
  position:fixed; top:-60px; left:12px; z-index:999; background:var(--text); color:var(--bg);
  padding:10px 16px; border-radius:8px; transition:top .2s;
}
.skip-link:focus{top:12px;}

/* Language dropdown */
.lang-dropdown{position:relative;}
.lang-menu{
  position:absolute; top:calc(100% + 8px); right:0; background:var(--surface); border:1px solid var(--border);
  border-radius:12px; box-shadow:var(--shadow-lift); padding:6px; min-width:140px; display:none; z-index:60;
}
.lang-menu.open{display:block;}
.lang-menu button{
  display:flex; width:100%; align-items:center; gap:8px; padding:9px 12px; border-radius:8px; border:none;
  background:transparent; color:var(--text); font-size:13.5px; font-weight:600; cursor:pointer; text-align:left;
}
.lang-menu button:hover{background:var(--border-soft);}
.lang-menu button.active{color:var(--orange-500);}

/* Responsive grid tweaks shared */
@media (max-width:900px){
  .hero-inner{grid-template-columns:1fr; text-align:left; padding-bottom:50px;}
  .hero-visual{order:-1; max-width:280px; margin:0 auto 12px;}
  .hero-actions{justify-content:flex-start;}
}
@media (max-width:900px){ .hero{padding-top:calc(var(--nav-h) + 44px);} }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list{display:flex; flex-direction:column; gap:12px; max-width:760px; margin:0 auto;}
.faq-item{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); overflow:hidden;}
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:19px 22px; background:none; border:none; cursor:pointer; text-align:left;
  font-family:var(--font-body); font-weight:700; font-size:15.5px; color:var(--text);
}
.faq-q .chevron{flex:none; width:19px; height:19px; color:var(--text-soft); transition:transform .3s var(--ease);}
.faq-item.open .faq-q .chevron{transform:rotate(180deg); color:var(--orange-500);}
.faq-a{max-height:0; overflow:hidden; transition:max-height .35s var(--ease);}
.faq-a-inner{padding:0 22px 20px; color:var(--text-muted); font-size:14.5px; line-height:1.7;}
.faq-tabs{display:flex; gap:8px; margin-bottom:32px; flex-wrap:wrap; justify-content:center;}

/* ============================================================
   Blog
   ============================================================ */
.blog-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.blog-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-l);
  overflow:hidden; transition:transform .25s var(--ease), border-color .25s var(--ease);
  display:flex; flex-direction:column;
}
.blog-card:hover{transform:translateY(-3px); border-color:var(--orange-300);}
.blog-card-cover{height:150px; display:flex; align-items:center; justify-content:center; flex:none;}
.blog-card-cover svg{width:36px; height:36px; color:#fff; opacity:.9;}
.blog-card-body{padding:22px; display:flex; flex-direction:column; gap:10px; flex:1;}
.blog-card-tag{font-size:12px; font-weight:700; color:var(--orange-500); text-transform:uppercase; letter-spacing:.03em;}
.blog-card-title{font-family:var(--font-display); font-size:17px; font-weight:700; line-height:1.35; color:var(--text);}
.blog-card-excerpt{font-size:14px; color:var(--text-muted); line-height:1.6; flex:1;}
.blog-card-date{font-size:12.5px; color:var(--text-soft); margin-top:4px;}
@media (max-width:860px){ .blog-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ .blog-grid{grid-template-columns:1fr;} }

.article-body{max-width:720px; margin:0 auto; padding:0 24px 90px;}
.article-body h2{font-size:22px; margin:34px 0 12px;}
.article-body h2:first-child{margin-top:0;}
.article-body p{color:var(--text-muted); font-size:16px; line-height:1.8; margin-bottom:16px;}
.article-body ul{margin:10px 0 16px; padding-left:20px; list-style:disc;}
.article-body li{color:var(--text-muted); font-size:16px; line-height:1.75; margin-bottom:8px;}
.article-meta{display:flex; align-items:center; gap:10px; color:var(--hero-muted); font-size:13.5px; margin-top:18px;}
.article-back{display:inline-flex; align-items:center; gap:6px; color:var(--orange-500); font-weight:700; font-size:14px; margin-bottom:26px;}
.article-back svg{width:16px; height:16px;}
.faq-panel{display:none;}
.faq-panel.active{display:block;}
