/* YAKO — site vitrine */

:root {
  --blue: #0b6cf2;
  --blue-dark: #0752c0;
  --blue-light: #5db8f7;
  --violet: #6d4bf5;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e7eaf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fe;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  --max: 1120px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(11, 108, 242, .25); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: #fff; color: var(--blue); border-color: #cfe0fb; }
.btn--ghost:hover { border-color: var(--blue); }
.btn--small { padding: 10px 18px; font-size: .95rem; }

/* En-tête */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--blue); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__by { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--muted); }
.hero__by strong { color: var(--ink); letter-spacing: .04em; }
.hero__by::before { content: ""; width: 28px; height: 2px; background: var(--blue-light); border-radius: 2px; }

.hero__visual {
  position: relative;
  border-radius: 32px;
  background: radial-gradient(120% 90% at 30% 20%, #1b2a6b 0%, #0d1233 55%, #070a1f 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  box-shadow: 0 30px 60px rgba(13, 18, 51, .25);
}
.hero__visual img { width: 92%; }
.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero__chip svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.hero__chip--a { top: 8%; left: -18px; }
.hero__chip--b { bottom: 10%; right: -18px; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero__chip--a { left: 12px; }
  .hero__chip--b { right: 12px; }
}

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  font-weight: 800;
  margin-bottom: 20px;
}
.step p { color: var(--muted); margin: 0; }

/* Parcours (Comment ça marche) — design repris de la v3 */
#fonctionnement { padding: 96px 0; background: #f6f9fd; color: #4e6077; font-size: 16px; }
#fonctionnement .container { max-width: 1200px; }
.section__head--left { max-width: 700px; margin: 0 0 46px; text-align: left; }
#fonctionnement .eyebrow { margin-bottom: 15px; color: #0b73f6; font-size: .77rem; font-weight: 900; letter-spacing: .12em; }
#fonctionnement .section__head h2 { margin: 0; color: #122033; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 700; }
#fonctionnement .section__head p { margin: 16px 0 0; color: #7c8ca0; font-size: 1.02rem; }
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.timeline__item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 20px;
}
.timeline__number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, #0b73f6, #43b6ff);
  color: #fff;
  font-weight: 900;
  font-size: .82rem;
}
.timeline h3 { margin: 0 0 6px; color: #122033; font-size: 1.1rem; line-height: 1.6; letter-spacing: normal; }
.timeline p { margin: 0; color: #748397; font-size: .94rem; }
/* Usages (Trois façons d'utiliser YAKO) — design repris de la v3 */
#usages { padding: 96px 0; color: #4e6077; font-size: 16px; }
#usages .container { max-width: 1200px; }
#usages .section__head { max-width: 700px; margin: 0 auto 46px; }
#usages .eyebrow { margin-bottom: 15px; color: #0b73f6; font-size: .77rem; font-weight: 900; letter-spacing: .12em; }
#usages .section__head h2 { margin: 0; color: #122033; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 700; }
#usages .section__head p { margin: 16px 0 0; color: #7c8ca0; font-size: 1.02rem; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role { padding: 28px; border: 1px solid #e8eef6; border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(33,76,128,.05); transition: transform .18s ease, box-shadow .18s ease, opacity .55s ease; }
.role:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(33,76,128,.09); }
.role__icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 15px; background: #edf6ff; color: #0b73f6; }
.role__icon svg { width: 24px; height: 24px; }
.role__tag { color: #0b73f6; font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.role h3 { margin: 8px 0 10px; color: #122033; font-size: 1.35rem; line-height: 1.15; }
.role p { margin: 0 0 22px; color: #69798d; }
.role a { color: #122033; font-weight: 850; font-size: .92rem; }
.role a:hover { text-decoration: none; }
.role a span { color: #0b73f6; }
@media (max-width: 980px) { .roles { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  #usages { padding: 72px 0; }
  #usages .section__head { margin-bottom: 34px; }
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 720px) {
  #fonctionnement { padding: 72px 0; }
  .section__head--left { margin-bottom: 34px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 50px 1fr; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Cartes d'usage */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17, 24, 39, .08); }
.card p { color: var(--muted); flex: 1; }
.card .btn { align-self: flex-start; margin-top: 8px; }

.icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #eaf2fe;
  color: var(--blue);
  margin-bottom: 20px;
}
.icon svg { width: 28px; height: 28px; }

/* Avantages */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: center; padding: 8px 12px; }
.feature .icon { margin: 0 auto 16px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Sécurité */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.trust__text p { color: var(--muted); font-size: 1.1rem; }
.trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  font-weight: 700;
  color: var(--ink);
}
.trust__item .icon { margin: 0; width: 48px; height: 48px; border-radius: 14px; }
.trust__item .icon svg { width: 24px; height: 24px; }

/* Bientôt disponible */
.soon {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 72px 48px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #3a5cf0 55%, var(--violet) 100%);
}
.soon h2 { color: #fff; }
.soon p { max-width: 620px; margin: 0 auto 32px; color: rgba(255, 255, 255, .88); font-size: 1.1rem; }
.soon .btn { background: #fff; color: var(--blue); }
.soon__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 24px;
  margin-bottom: 12px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 32px 20px 0;
  position: relative;
  font-weight: 700;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact { text-align: center; }
.contact__mail { display: inline-block; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; margin-bottom: 28px; }

/* Pied de page */
.footer { background: #0b1020; color: #b7bfd3; padding: 56px 0 32px; font-size: .95rem; }
.footer a { color: #dfe5f3; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .brand { color: #fff; }
.footer__tagline { margin: 12px 0 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer__bottom { padding-top: 24px; color: #7e88a3; font-size: .88rem; }

/* Pages juridiques */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal__meta { color: var(--muted); margin-bottom: 40px; }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .3em; }
.legal a { overflow-wrap: anywhere; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1em; }
.legal dt { font-weight: 700; color: var(--ink); }
.legal dd { margin: 0; }
.todo { background: #fff4d6; color: #7a5200; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.notice {
  background: var(--bg-soft);
  border: 1px solid #d6e4fb;
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--text);
  margin-bottom: 32px;
  font-size: .95rem;
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .steps, .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .trust { grid-template-columns: 1fr; gap: 32px; }
  .soon { padding: 56px 24px; border-radius: 24px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .trust__list { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Boutons App Store / Google Play */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  padding: 9px 18px 9px 14px;
  border-radius: 12px;
  background: #0b1020;
  color: #fff;
  line-height: 1.15;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .15s ease, opacity .15s ease;
}
.store:hover { text-decoration: none; transform: translateY(-1px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; }
.store small { font-size: .7rem; font-weight: 500; opacity: .8; }
.store.is-soon { opacity: .55; cursor: default; }
.store.is-soon:hover { transform: none; }
.stores--light .store { background: #fff; color: var(--ink); }
.stores--light .store.is-soon { opacity: .8; }
@media (max-width: 520px) { .store { flex: 1; min-width: 0; } }
