/* Fareaway — landing (identité « Plein jour » de l'app) */
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', ui-rounded, "SF Pro Rounded", "Avenir Next", -apple-system, system-ui, sans-serif;
  color: #10304F;
  background: #F4FAFF;
  line-height: 1.6;
}

/* ---------- nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 48px);
}
.brand { font-weight: 800; font-size: 16px; letter-spacing: .22em; color: #FFF;
         display: inline-flex; align-items: center; gap: 9px; }
.brand em { font-style: normal; color: #FFE45C; }
.logo { width: 34px; height: auto; flex: none; }
.lang a {
  color: rgba(255,255,255,.75); text-decoration: none; font-weight: 800; font-size: 13px;
  padding: 6px 10px; border-radius: 99px;
}
.lang a[aria-current] { background: rgba(255,255,255,.22); color: #FFF; }
.lang a:hover { color: #FFF; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, #3D87E4 0%, #6FB6F2 62%, #A8DCF8 100%);
  color: #FFF;
  padding: clamp(96px, 14vw, 140px) clamp(20px, 5vw, 48px) clamp(56px, 8vw, 96px);
}
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.soon {
  display: inline-block; margin: 0 0 14px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.55); border-radius: 99px; padding: 6px 14px;
}
h1 {
  margin: 0 0 18px; font-size: clamp(34px, 5vw, 54px); line-height: 1.08;
  font-weight: 800; letter-spacing: -.015em; text-wrap: balance;
}
.sub { margin: 0; max-width: 50ch; font-size: 17px; font-weight: 600; color: rgba(255,255,255,.94); }
.cta-row { margin: 26px 0 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta {
  display: inline-block; background: #FFF; color: #10304F; text-decoration: none;
  font-weight: 800; font-size: 15.5px; border-radius: 14px; padding: 13px 22px;
  box-shadow: 0 14px 34px rgba(16,48,79,.35);
}
.cta:hover { transform: translateY(-1px); }
.cta-note { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }

/* hero visual — mini-carte factice */
.browser {
  background: #FFF; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(16,48,79,.4);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid #E8EFF6;
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E1E9F2; }
.browser-bar span {
  margin: 0 auto; font-size: 11px; font-weight: 700; color: #8DA2B5;
  border: 1px solid #E8EFF6; border-radius: 99px; padding: 2px 12px;
}
.mapmock {
  position: relative; height: 300px;
  background:
    radial-gradient(3px 3px at 12% 34%, rgba(255,255,255,.85) 45%, transparent 50%),
    radial-gradient(3px 3px at 26% 47%, rgba(255,255,255,.85) 45%, transparent 50%),
    radial-gradient(3px 3px at 43% 32%, rgba(255,255,255,.85) 45%, transparent 50%),
    radial-gradient(3px 3px at 57% 60%, rgba(255,255,255,.85) 45%, transparent 50%),
    radial-gradient(3px 3px at 72% 40%, rgba(255,255,255,.85) 45%, transparent 50%),
    radial-gradient(3px 3px at 87% 62%, rgba(255,255,255,.85) 45%, transparent 50%),
    radial-gradient(3px 3px at 34% 70%, rgba(255,255,255,.85) 45%, transparent 50%),
    radial-gradient(3px 3px at 64% 22%, rgba(255,255,255,.85) 45%, transparent 50%),
    linear-gradient(180deg, #4C9BEB, #7FC4F7);
}
.qbar {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.94); border-radius: 99px; padding: 8px 16px;
  font-size: 12.5px; font-weight: 600; color: #6B809A; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(16,48,79,.25);
}
.qbar b { color: #10304F; border-bottom: 2px dotted #2E7CF6; }
.pill {
  position: absolute; transform: translate(-50%, -50%);
  background: #FFF; border: 2px solid; border-radius: 11px; padding: 3px 9px;
  font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 5px 14px rgba(16,48,79,.28);
}
.pill.eco { border-color: #10B981; color: #0B8F63; }
.pill.near { border-color: #F59E0B; color: #C67C06; }
.pill.over { border-color: #F43F5E; color: #E11D5B; opacity: .5; }
.slider {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: 72%; display: flex; align-items: center; gap: 12px;
  background: #FFF; border-radius: 14px; padding: 10px 16px;
  box-shadow: 0 10px 26px rgba(16,48,79,.3);
}
.slider .track { position: relative; flex: 1; height: 6px; border-radius: 99px; background: #E1E9F2; }
.slider .fill { position: absolute; inset: 0 40% 0 0; border-radius: 99px; background: #2E7CF6; }
.slider .thumb {
  position: absolute; left: 60%; top: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%; background: #FFF;
  border: 2.5px solid #2E7CF6; box-shadow: 0 2px 6px rgba(16,48,79,.3);
}
.slider b { font-size: 14px; color: #10304F; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section { max-width: 1020px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 48px); }
.section.alt { max-width: none; background: #EAF4FD; }
.section.alt > * { max-width: 1020px; margin-left: auto; margin-right: auto; }
h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.01em; margin: 0 0 28px; text-wrap: balance; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #FFF; border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(16,48,79,.08); }
.steps .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: #2E7CF6; color: #FFF;
  font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.steps h3, .features h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 800; }
.steps p, .features p { margin: 0; font-size: 14px; font-weight: 500; color: #587089; }

.features { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features li { background: #FFF; border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(16,48,79,.08); }
.features h3 { display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.eco { background: #10B981; } .dot.near { background: #F59E0B; } .dot.over { background: #F43F5E; }

.seo-p { max-width: 68ch; font-size: 15px; color: #587089; font-weight: 500; margin: 0 0 14px; }
.seo-p strong { color: #10304F; }
.seo-p a { color: #2E7CF6; font-weight: 700; }

details {
  background: #FFF; border-radius: 14px; padding: 16px 20px; margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(16,48,79,.07);
}
summary { cursor: pointer; font-weight: 800; font-size: 15.5px; }
summary::marker { color: #2E7CF6; }
details p { margin: 10px 0 2px; font-size: 14.5px; color: #587089; font-weight: 500; }

.band {
  background: linear-gradient(135deg, #10304F, #1D4E85);
  color: #FFF; text-align: center;
  padding: clamp(48px, 7vw, 72px) 24px;
}
.band h2 { margin-bottom: 8px; }
.band p { margin: 0; font-weight: 700; color: rgba(255,255,255,.8); }

.foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  max-width: 1020px; margin: 0 auto; padding: 26px clamp(20px, 5vw, 48px);
  font-size: 13px; font-weight: 700; color: #8DA2B5;
}
.foot a { color: #587089; text-decoration: none; }
.foot a:hover { color: #2E7CF6; }

/* ---------- pages SEO (rendues par le Worker) ---------- */
.nav-solid { position: static; background: linear-gradient(160deg, #3D87E4, #6FB6F2); }
.nav-solid .brand { text-decoration: none; }
.nav-solid .lang a { background: rgba(255,255,255,.22); color: #FFF; }
.seo-main { max-width: 1020px; margin: 0 auto; padding: 36px clamp(20px, 5vw, 48px) 20px; }
.seo-main h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.015em;
               margin: 0 0 16px; text-wrap: balance; }
.seo-section h2 { margin-top: 40px; }
.sd-list { list-style: none; margin: 0; padding: 0; display: grid;
           grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.sd-list li { background: #FFF; border-radius: 16px; padding: 16px 18px;
              box-shadow: 0 8px 24px rgba(16,48,79,.08); display: flex; flex-direction: column; gap: 2px; }
.sd-price { font-size: 22px; font-weight: 800; color: #0B8F63; font-variant-numeric: tabular-nums; }
.sd-name { font-weight: 800; font-size: 15.5px; }
.sd-name small { font-weight: 700; color: #8DA2B5; font-size: 11.5px; }
.sd-dates { font-size: 12.5px; font-weight: 600; color: #6B809A; }
.sd-cta { margin-top: 8px; font-size: 13.5px; font-weight: 800; color: #2E7CF6; text-decoration: none; }
.sd-cta:hover { text-decoration: underline; }

/* liens internes SEO (landings + pages SEO) */
.seolinks { max-width: 1020px; margin: 0 auto; padding: 28px clamp(20px, 5vw, 48px);
            border-top: 1px solid #E1E9F2; }
.seolinks p { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #8DA2B5; line-height: 2; }
.seolinks a { color: #587089; text-decoration: none; }
.seolinks a:hover { color: #2E7CF6; text-decoration: underline; }
.seolinks strong { color: #10304F; }

@media (max-width: 840px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .steps, .features { grid-template-columns: 1fr; }
  .mapmock { height: 240px; }
}
/* ---------- polish ---------- */
.cta { transition: transform .18s, box-shadow .18s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(16,48,79,.42); }

.browser {
  transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg);
  transition: transform .45s cubic-bezier(.2,.8,.3,1);
}
.browser:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.browser img { display: block; width: 100%; height: auto; }

.steps li, .features li { transition: transform .2s, box-shadow .2s; }
.steps li:hover, .features li:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(16,48,79,.13);
}
.steps .num { background: linear-gradient(135deg, #2E7CF6, #4C9BEB); }

details { transition: box-shadow .2s; }
details[open] { box-shadow: 0 12px 32px rgba(16,48,79,.12); }
details[open] summary { color: #2E7CF6; }

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto;
  height: 70%; pointer-events: none;
  background: radial-gradient(60% 80% at 70% 10%, rgba(255,255,255,.16), transparent 70%);
}
.hero-inner { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .6s cubic-bezier(.2,.8,.3,1) both; }
  .hero-text > *:nth-child(2) { animation-delay: .08s; }
  .hero-text > *:nth-child(3) { animation-delay: .16s; }
  .hero-text > *:nth-child(4) { animation-delay: .24s; }
  .hero-visual { animation: rise .7s .2s cubic-bezier(.2,.8,.3,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to {} }
  .mapmock .pill { animation: bob 4s ease-in-out infinite; }
  .mapmock .pill:nth-child(3) { animation-delay: .6s; }
  .mapmock .pill:nth-child(4) { animation-delay: 1.2s; }
  .mapmock .pill:nth-child(5) { animation-delay: 1.8s; }
  .mapmock .pill:nth-child(6) { animation-delay: 2.4s; }
  .mapmock .pill:nth-child(7) { animation-delay: 3s; }
  @keyframes bob { 50% { transform: translate(-50%, calc(-50% - 5px)); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .browser { transform: none; }
}
