/* ============================================================
   WizzMap — Landing page
   Brand gradient: #178DF5 → #8B35C8 → #EE359E → #F9A822
   ============================================================ */

:root {
  --blue:   #178DF5;
  --purple: #8B35C8;
  --pink:   #EE359E;
  --orange: #F9A822;
  --grad: linear-gradient(100deg, #178DF5 0%, #8B35C8 35%, #EE359E 65%, #F9A822 100%);
  --grad-soft: linear-gradient(120deg, #178DF5, #8B35C8, #EE359E);

  --navy:   #0B1024;
  --navy-2: #0E1430;
  --ink:    #161A2E;
  --gray:   #6B7280;
  --gray-2: #8A90A2;
  --line:   #ECECF2;
  --bg-soft: #FBF6FC;

  --radius: 20px;
  --shadow: 0 18px 50px rgba(20, 24, 50, 0.08);
  --shadow-hover: 0 28px 70px rgba(20, 24, 50, 0.16);
  --container: 1440px;

  --font-title: 'Fredoka', system-ui, sans-serif;
  --font-body:  'Poppins', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 110px 0; }

/* ---- Typographie : Fredoka pour titres & gros textes ---- */
h1, h2, h3, h4,
.hero__title, .section__title, .pro__title, .cta__title,
.persona h3, .card h3, .feature-row h3,
.stat__value, .stat__pct,
.footer__logo span,
.persona__badge {
  font-family: var(--font-title);
  letter-spacing: 0;
}

/* ---- Gradient text ---- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ---- Section titles ---- */
.section__title {
  text-align: center;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.5px;
}
.section__subtitle {
  text-align: center;
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--gray);
  font-size: 19px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16.5px;
  padding: 15px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, filter .25s;
  will-change: transform;
}
.btn--gradient { background: var(--grad); background-size: 180% auto; box-shadow: 0 10px 26px rgba(139,53,200,.35); }
.btn--gradient:hover { background-position: right center; box-shadow: 0 14px 34px rgba(238,53,158,.45); }
.btn--orange { background: linear-gradient(100deg, #F9A822, #F46A3C); box-shadow: 0 10px 24px rgba(249,168,34,.35); }
.btn--pink   { background: linear-gradient(100deg, #EE359E, #C82BD0); box-shadow: 0 10px 24px rgba(238,53,158,.35); }
.btn--blue   { background: linear-gradient(100deg, #178DF5, #5C5CE0); box-shadow: 0 10px 24px rgba(23,141,245,.35); }
.btn--full { width: 100%; padding: 14px; margin-top: auto; }
.btn:hover { transform: translateY(-2px); }

/* shiny shimmer */
.shiny {
  position: relative;
  background: linear-gradient(110deg, #fff 35%, rgba(255,255,255,.45) 50%, #fff 65%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3.5s linear infinite;
}
@keyframes shine { to { background-position: -220% 0; } }

/* ============ STORE BADGES ============ */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 500;
  transition: transform .25s, box-shadow .25s;
}
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge small { font-size: 11.5px; opacity: .85; }
.store-badge strong { font-size: 18.5px; font-weight: 600; }
.store-badge--dark { background: var(--navy); color: #fff; }
.store-badge--light { background: #fff; color: var(--ink); border: 2px solid var(--navy); }
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* App Store dans le hero : ombre douce */
.hero .store-badge--dark { box-shadow: 0 12px 30px rgba(20,24,50,.18); }
.store-badge--sm { padding: 9px 16px; }
.store-badge--sm strong { font-size: 14px; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 24px;
}
.header__bar {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  border: 1px solid rgba(20,24,50,.05);
  border-radius: 22px;
  padding: 13px 16px 13px 28px;
  box-shadow: 0 14px 38px rgba(23,30,70,.10), 0 3px 10px rgba(23,30,70,.05);
  transition: box-shadow .3s;
}
.header.scrolled .header__bar { box-shadow: 0 18px 48px rgba(23,30,70,.14), 0 4px 12px rgba(23,30,70,.06); }
.header__logo img { height: 40px; }

/* ============ HERO ============ */
.hero { position: relative; padding: 180px 0 120px; overflow: hidden; background: #fff; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(46px, 5.4vw, 80px);
  font-weight: 600; line-height: 1.04; letter-spacing: -1px;
  color: var(--ink);
}
.hero__title .split { display: block; }
.hero__subtitle { color: var(--gray); font-size: 20px; max-width: 560px; margin-top: 30px; text-align: justify; }
.hero__cta { display: flex; gap: 22px; margin-top: 42px; flex-wrap: wrap; align-items: center; }

/* Boutons stores + badge (colonne centrée) */
.hero__actions { display: inline-flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 42px; }
.hero__actions .hero__cta { margin-top: 0; }

/* Badge « Bientôt disponible » */
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 15px;
  border-radius: 999px;
  background: var(--grad);
  background-size: 200% auto;
  animation: gradShift 6s ease infinite;
  box-shadow: 0 10px 26px rgba(139,53,200,.32);
}
.soon__dot {
  position: relative; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
}
.soon__dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: #fff; animation: soonPulse 1.8s ease-out infinite;
}
.soon__text {
  font-size: 14px; font-weight: 600; letter-spacing: .2px;
  color: #fff;
}
@keyframes soonPulse {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.hero__social { display: flex; align-items: center; gap: 18px; margin-top: 42px; }
.hero__avatars { height: 50px; width: auto; }
.hero__rating { display: flex; align-items: center; gap: 9px; }
.hero__star { color: var(--orange); font-size: 24px; line-height: 1; }
.hero__rating strong { color: var(--ink); font-size: 19px; font-weight: 700; }
.hero__count { color: var(--gray); font-size: 17px; }
.hero__media { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__glow {
  position: absolute; left: 50%; top: 50%;
  width: 150%; aspect-ratio: 1400 / 1229;
  transform: translate(-46%, -46%);
  background: url('assets/glow.png') center / contain no-repeat;
  opacity: .55; filter: blur(34px);
  z-index: 0; pointer-events: none;
}
.hero__phone { position: relative; z-index: 1; max-width: 560px; }

.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ============ EXPÉRIENCE ============ */
.experience__grid {
  display: grid; grid-template-columns: 1fr 2.2fr 1fr;
  gap: 20px; align-items: start; margin-top: 70px;
}
.experience__media { display: flex; justify-content: center; }
.experience__media img { width: 100%; max-width: 760px; filter: drop-shadow(0 30px 60px rgba(20,24,50,.16)); }
.experience__col { display: flex; flex-direction: column; gap: 80px; margin-top: 150px; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-row--right { text-align: right; flex-direction: row-reverse; }
/* décalage des features du bas vers l'intérieur (vers le téléphone) */
.experience__col--left .feature-row--low { margin-left: 42px; }
.experience__col--right .feature-row--low { margin-right: 42px; }
.feature-row__icon { flex-shrink: 0; width: 52px; height: 52px; }
/* texte compact : titre sur une ligne, description sur ~2 lignes */
.feature-row__text { max-width: 250px; }
.feature-row h3 { font-size: 21px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; }
.feature-row p { color: var(--gray); font-size: 16px; }

/* ============ FEATURES (cards) ============ */
.features { background: linear-gradient(180deg, #fff, #FBF3F9 40%, #F3F0FD 100%); }
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 66px;
}
.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 40px 36px;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.card__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.card__icon img { width: 100%; height: 100%; }
.card h3 { font-size: 23px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 16.5px; }

/* spotlight overlay */
.spotlight::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(238,53,158,.14), transparent 65%);
}
.spotlight:hover::before { opacity: 1; }
.spotlight:hover { box-shadow: var(--shadow-hover); }

/* ============ PRICING (personas) ============ */
.pricing { background: #FAF9F6; }
.pricing__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px; margin-top: 66px;
}
.persona {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 36px;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.persona__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.persona__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.persona__icon img { width: 100%; height: 100%; }
.persona__badge { font-size: 13.5px; font-weight: 500; padding: 7px 16px; border-radius: 999px; }
.persona__badge--orange { background: rgba(249,168,34,.14); color: #D98400; }
.persona__badge--pink   { background: rgba(238,53,158,.12); color: #D31C82; }
.persona__badge--blue   { background: rgba(23,141,245,.12); color: #1577D6; }
.persona h3 { font-size: 28px; font-weight: 700; }
.persona__desc { color: var(--gray); font-size: 16px; line-height: 1.55; margin: 10px 0 24px; }
.persona__list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 26px; }
.persona__list li { position: relative; padding-left: 34px; font-size: 16px; color: #3A3F52; }
.persona__list li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.persona__list--orange li::before { background: #F9A822; }
.persona__list--pink   li::before { background: #EE359E; }
.persona__list--blue   li::before { background: #178DF5; }
.persona__divider { height: 1px; background: var(--line); margin: 2px 0 24px; }
.persona .btn--full { border-radius: 16px; padding: 16px; font-size: 16px; }

/* ============ PRO (dark) ============ */
.pro { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.pro__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; min-height: 620px; }
.pro__title { font-size: clamp(44px, 5.2vw, 68px); font-weight: 600; line-height: 1.12; letter-spacing: -0.5px; }
.pro__desc { color: #AEB4C8; margin: 24px 0 30px; font-size: 18.5px; max-width: 480px; }
.pro__list { display: flex; flex-direction: column; gap: 17px; margin-bottom: 38px; }
.pro__list li { position: relative; padding-left: 34px; color: #D5D9E6; font-size: 17px; }
.pro__list li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 21px; height: 21px;
  background: url('assets/ic-check.svg') center / contain no-repeat;
}
.pro__media {
  position: absolute;
  left: 52%; right: auto; top: 12%;
  transform: translateY(-50%);
  width: 50%;
  display: flex; justify-content: flex-start;
}
.pro__media img {
  width: 100%; max-width: none;
  border-radius: 18px;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,.5));
}

/* ============ CTA FINALE ============ */
.cta { background: #FAF9F6; }
.cta .container { max-width: 1440px; }
.cta__card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center;
  background: #fff; border-radius: 36px;
  box-shadow: 0 40px 90px rgba(20,24,50,.10);
  padding: 70px 40px 70px 70px;
  min-height: 420px;
  position: relative; overflow: visible;
}
.cta__content { padding: 8px 0; }
.cta__title { font-size: clamp(44px, 5.2vw, 68px); font-weight: 600; line-height: 1.1; letter-spacing: -0.5px; }
.cta__desc { color: var(--gray); margin: 22px 0 34px; font-size: 18.5px; max-width: 620px; }
.cta__media { position: relative; align-self: stretch; }
.cta__media img {
  position: absolute; left: 0; right: 0; bottom: -230px; margin: 0 auto;
  width: 100%; max-width: 680px;
  filter: drop-shadow(0 36px 70px rgba(20,24,50,.22));
}

/* ============ FOOTER ============ */
.footer { background: #1B1B1B; color: #fff; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer__logo { display: inline-flex; align-items: center; margin-bottom: 20px; }
.footer__logo img { height: 48px; width: auto; }
.footer__brand p { color: #A8A8A8; font-size: 17px; max-width: 360px; line-height: 1.6; }
.footer__social { display: flex; gap: 12px; margin-top: 22px; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 12px;
  background: #2A2A2A;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.footer__social a:hover { background: var(--grad); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; fill: #fff; }
.footer__col h4 { font-size: 21px; font-weight: 600; margin-bottom: 22px; color: #fff; }
.footer__col a { display: block; color: #9A9A9A; font-size: 17px; margin-bottom: 16px; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__col .footer__store {
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 215px; min-width: 195px;
  white-space: nowrap;
  background: #2A2A2A; color: #fff;
  border-radius: 14px; padding: 13px 22px; margin-bottom: 14px;
  transition: background .25s, transform .25s;
}
.footer__store:hover { background: #343434; transform: translateY(-2px); }
.footer__col .footer__store--light { background: #fff; color: #1B1B1B; }
.footer__col .footer__store--light:hover { background: #ECECEC; color: #1B1B1B; }
.footer__col .footer__store--light small { color: #6B7280; opacity: 1; }
.footer__store svg { width: 26px; height: 26px; flex-shrink: 0; }
.footer__store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.footer__store small { font-size: 12px; opacity: .8; }
.footer__store strong { font-size: 17.5px; font-weight: 600; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; }
.footer__bottom .container { text-align: center; color: #B0B0B0; font-size: 16px; }
.footer__bottom strong { color: #fff; font-weight: 600; }

/* ============ ANIMATIONS (reveal / split) ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.split { opacity: 0; transform: translateY(24px); filter: blur(8px); }
.split.in { opacity: 1; transform: none; filter: blur(0); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), filter .6s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .split, .floaty, .grad-text, .shiny { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ============ RESPONSIVE ============ */

/* ---------- ≤1280px : petits desktops / laptops ----------
   On resserre la section expérience et le dashboard pro
   avant que ça ne déborde. */
@media (max-width: 1280px) {
  .experience__grid { grid-template-columns: 1fr 1.8fr 1fr; }
  .experience__col { margin-top: 90px; gap: 56px; }
  .experience__col--left .feature-row--low { margin-left: 20px; }
  .experience__col--right .feature-row--low { margin-right: 20px; }
  .feature-row h3 { white-space: normal; font-size: 19px; }
  .hero__phone { max-width: 470px; }
  .pro__media { top: 50%; }
  .pro__media img { border-radius: 16px; }
}

/* ---------- ≤1100px : tablette paysage ----------
   Expérience : le trio de téléphones passe au-dessus,
   les 4 features en grille 2×2 dessous.
   Pro : le dashboard quitte le positionnement absolu. */
@media (max-width: 1100px) {
  .experience__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .experience__media { grid-column: 1 / -1; order: -1; max-width: 540px; margin: 0 auto; }
  .experience__col { margin-top: 0; gap: 40px; }
  .experience__col--left .feature-row--low { margin-left: 0; }
  .experience__col--right .feature-row--low { margin-right: 0; }
  .feature-row--right { flex-direction: row; text-align: left; }
  .feature-row__text { max-width: none; }

  .pro__inner { grid-template-columns: 1fr; gap: 44px; min-height: 0; }
  .pro__media {
    position: static; transform: none;
    width: auto; order: -1;
    justify-content: center;
  }
  .pro__media img { max-width: 640px; }
}

/* ---------- ≤980px : tablette portrait ----------
   Hero, CTA et pricing passent en une colonne. */
@media (max-width: 980px) {
  .section { padding: 80px 0; }

  .header { padding: 14px 16px; }
  .header__bar { padding: 10px 12px 10px 20px; border-radius: 18px; }
  .header__logo img { height: 34px; }
  .header .btn { font-size: 14px; padding: 11px 20px; }

  .hero { padding: 150px 0 90px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero__content { order: 2; }
  .hero__media { order: 1; }
  .hero__subtitle { margin-left: auto; margin-right: auto; text-align: center; }
  .hero__cta, .hero__social { justify-content: center; }
  .hero__actions { display: flex; margin-left: auto; margin-right: auto; }
  .hero__phone { max-width: 340px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }

  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

  .pro__content { text-align: center; }
  .pro__desc { margin-left: auto; margin-right: auto; }
  .pro__list { max-width: 460px; margin-left: auto; margin-right: auto; text-align: left; }

  .cta__card { grid-template-columns: 1fr; gap: 36px; padding: 44px 28px; min-height: 0; text-align: center; }
  .cta__card .hero__cta { justify-content: center; }
  .cta__desc { margin-left: auto; margin-right: auto; }
  .cta__media { order: -1; position: static; align-self: auto; }
  .cta__media img { position: static; margin: 0 auto; max-width: 340px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ---------- ≤600px : mobile ----------
   Une colonne partout, typo réduite, boutons pleine largeur. */
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  .header__logo img { height: 30px; }
  .header .btn { font-size: 13px; padding: 10px 16px; }

  .hero { padding: 125px 0 70px; }
  .hero__title { font-size: clamp(34px, 9.5vw, 44px); }
  .hero__subtitle { font-size: 16.5px; }
  .hero__phone { max-width: 270px; }
  .hero__actions { width: 100%; }
  .hero__cta { flex-direction: column; width: 100%; gap: 14px; }
  .hero__cta .store-badge { width: 100%; max-width: 320px; justify-content: center; margin: 0 auto; }

  .section__title { font-size: clamp(29px, 8vw, 38px); }
  .section__subtitle { font-size: 16.5px; margin-top: 16px; }

  .experience__grid { grid-template-columns: 1fr; gap: 28px; }
  .experience__media { max-width: 100%; }
  .experience__col { gap: 28px; }

  .features__grid { grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
  .card { padding: 30px 26px; }
  .card h3 { font-size: 21px; }

  .pricing__grid { margin-top: 44px; gap: 22px; }
  .persona { padding: 28px 24px; }
  .persona h3 { font-size: 24px; }

  .pro__title { font-size: clamp(29px, 8vw, 38px); }
  .pro__desc { font-size: 16.5px; }
  .pro__list li { font-size: 16px; }
  .pro__media img { border-radius: 12px; }

  .cta__card { padding: 36px 22px; border-radius: 26px; }
  .cta__title { font-size: clamp(29px, 8vw, 38px); }
  .cta__desc { font-size: 16.5px; }
  .cta__media img { max-width: 260px; }

  .footer { padding-top: 48px; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__col h4 { margin-bottom: 14px; }
  .footer__col .footer__store { max-width: 260px; }
  .footer__bottom .container { font-size: 14px; }
}
