/* ==========================================================================
   P'EPS — feuille de style commune (accueil + pages secondaires)
   Polices auto-hébergées : aucune requête vers Google (RGPD).
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0A1E4A;
  --navy-deep: #071535;
  --blue: #1A46A8;
  --orange: #F07D00;
  --orange-text: #B35C00;
  --orange-soft: #F7A54A;
  --ink: #1B2333;
  --body: #3A4458;
  --muted: #5A6478;
  --pale: #C8D5F0;
  --mist: #F3F4F9;
  --line: #D9DCE6;
  --pad: 40px;
  --sec: 112px;
  --h1: 96px;
  --h2: 52px;
  --header-h: 72px;
}
@media (max-width: 900px) {
  :root { --pad: 20px; --sec: 64px; --h1: 48px; --h2: 32px; --header-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.h2 {
  margin: 12px 0 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--h2);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--navy);
  text-wrap: balance;
}
.lead { margin: 16px 0 0; font-size: 18px; color: var(--body); max-width: 640px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: #FFFFFF; color: var(--navy); padding: 10px 14px; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---- boutons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-navy { background: var(--navy); color: #FFFFFF; }
.btn-ghost { color: #FFFFFF; border: 1px solid rgba(255,255,255,.4); }
.badge-store { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .18s ease; }
.badge-store:hover { transform: translateY(-2px); }
.badge-store img { height: 54px; width: auto; }
@media (prefers-reduced-motion: reduce) {
  .btn, .badge-store { transition: none; }
  .btn:hover, .badge-store:hover { transform: none; }
}

/* ---- en-tête ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,30,74,.97);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 24px;
  color: #FFFFFF; text-decoration: none; letter-spacing: -.01em;
}
.logo span { color: var(--orange); }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.site-nav a { color: var(--pale); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #FFFFFF; }
.site-nav .btn { padding: 10px 18px; color: var(--navy); font-size: 15px; }
.nav-mobile { display: none; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-mobile { display: inline-block; padding: 11px 16px; font-size: 15px; }
}

/* ---- pied de page ----------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--pale); font-size: 14px; }
.site-footer .wrap {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between;
}
.site-footer .logo { font-size: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer nav a { color: var(--pale); }
.site-footer nav a:hover { color: #FFFFFF; }
.footer-legal { flex-basis: 100%; margin: 0; color: rgba(200,213,240,.7); font-size: 13px; }

/* ==========================================================================
   ACCUEIL
   ========================================================================== */

/* ---- hero ------------------------------------------------------------- */
.hero { background: var(--navy); color: #FFFFFF; overflow: hidden; }
.hero-text { max-width: 980px; margin: 0 auto; padding: 88px var(--pad) 0; text-align: center; }
.hero-eyebrow {
  margin: 0 0 22px; font-family: 'Archivo', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-soft);
}
.hero h1 {
  margin: 0; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: var(--h1);
  line-height: .98; letter-spacing: -.035em;
}
.hero h1 span { color: var(--orange); }
.hero-sub { margin: 28px auto 0; max-width: 620px; font-size: 20px; color: var(--pale); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.hero-meta { margin: 18px 0 0; font-size: 14px; color: var(--pale); }
.hero-shot { max-width: 1080px; margin: 56px auto 0; padding: 0 var(--pad); }
.hero-shot .frame {
  background: #11151F; border-radius: 22px 22px 0 0; padding: 12px 12px 0;
  box-shadow: 0 -10px 60px rgba(0,0,0,.35);
}
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 12px 12px 0 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(var(--from, 28px)); } to { opacity: 1; transform: none; } }
.hero-text { animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-shot { --from: 120px; animation: fadeUp 1.2s cubic-bezier(.2,.7,.2,1) .4s both; }
@media (max-width: 900px) {
  .hero-text { padding-top: 40px; }
  .hero-sub { font-size: 18px; }
  .hero-eyebrow { font-size: 12px; letter-spacing: .1em; }
  .hero-shot { margin-top: 40px; }
  .hero-shot .frame { border-radius: 14px 14px 0 0; padding: 6px 6px 0; }
  .hero-shot img { border-radius: 8px 8px 0 0; }
}

/* ---- de l'activité à la note : animation au défilement ---------------- */
.flow-head { padding-top: var(--sec); }
.flow-head .h2 { max-width: 760px; }

.story { display: none; }
.story-m { display: flex; flex-direction: column; gap: 24px; padding: 32px var(--pad) var(--sec); }
@media (min-width: 1000px) and (min-height: 540px) {
  .story { display: block; }
  .story-m { display: none; }
}
.story-track { position: relative; height: 4300px; margin-top: 48px; }
.story-stage {
  position: sticky; top: var(--header-h);
  height: min(800px, calc(100vh - var(--header-h)));
  overflow: hidden; background: var(--navy);
}
.story-inner { position: relative; max-width: 1280px; height: 100%; margin: 0 auto; }
.story-dev-pos {
  position: absolute; left: 50%; top: 50%;
  width: min(720px, 56vw, calc((100vh - var(--header-h) - 120px) * 1.45));
  transform: translate(-50%, -52%);
}
.story-dev {
  background: #11151F; border-radius: 28px; padding: 14px;
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.6);
  will-change: transform;
}
.screen { position: relative; aspect-ratio: 1600 / 1079; border-radius: 14px; overflow: hidden; background: #E8E9F3; }
.screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.screen img.is-on { opacity: 1; }

.story-card-pos { position: absolute; top: 50%; transform: translateY(-50%); width: 340px; }
.story-card-pos.left { left: 40px; }
.story-card-pos.right { right: 40px; }
.story-card {
  opacity: 0; transform: translateY(40px); pointer-events: none;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.story-card.is-on { opacity: 1; transform: none; pointer-events: auto; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.story-card .card {
  background: #FFFFFF; border-radius: 16px; padding: 24px 26px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.45);
  animation: float 4.5s ease-in-out infinite;
}
.num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: var(--navy);
  align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif; font-weight: 800;
}
.story-card h3, .step-m h3 {
  margin: 14px 0 0; font-family: 'Archivo', sans-serif; font-size: 28px; line-height: 1.1;
  font-weight: 800; letter-spacing: -.02em; color: var(--navy);
}
.story-card p, .step-m p { margin: 10px 0 0; font-size: 16px; color: var(--body); }
.story-card ul { margin: 12px 0 0; padding: 0 0 0 18px; font-size: 15px; color: var(--body); }
.story-card li + li { margin-top: 4px; }
.story-card .note, .step-m .note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.story-card .badge-store { margin-top: 18px; }
.story-card .badge-store img { height: 48px; }
.story-dots { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; gap: 10px; justify-content: center; }
.story-dots span {
  height: 6px; width: 16px; border-radius: 3px; background: rgba(255,255,255,.35);
  transition: width .4s ease, background .4s ease;
}
.story-dots span.is-on { width: 40px; background: #FFFFFF; }

.step-m { background: var(--mist); border-radius: 16px; overflow: hidden; }
.step-m .txt { padding: 24px 24px 0; }
.step-m .num { width: 40px; height: 40px; background: var(--navy); color: #FFFFFF; }
.step-m h3 { font-size: 24px; margin-top: 16px; }
.step-m p { margin-top: 8px; }
.step-m img { display: block; width: calc(100% - 24px); height: auto; margin: 24px 0 0 24px; border-radius: 10px 0 0 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-text, .hero-shot, .story-card .card { animation: none; }
  .story-card, .screen img, .story-dots span { transition: none; }
}

/* ---- tarifs ----------------------------------------------------------- */
.pricing { background: var(--orange); color: var(--navy); }
.pricing .wrap { padding-top: 96px; padding-bottom: var(--sec); }
@media (max-width: 900px) { .pricing .wrap { padding-top: var(--sec); } }
.pricing .eyebrow { color: var(--navy); }
.pricing .h2 { color: var(--navy); }
.pricing .lead { color: var(--navy); font-weight: 500; }
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 920px; }
.plan { border-radius: 16px; padding: 32px; }
.plan-free { border: 2px solid rgba(10,30,74,.4); }
.plan-premium { background: var(--navy); color: #FFFFFF; box-shadow: 0 30px 60px -30px rgba(10,30,74,.7); }
.plan h3 { margin: 0; font-family: 'Archivo', sans-serif; font-size: 20px; font-weight: 700; }
.price { margin: 10px 0 0; font-family: 'Archivo', sans-serif; font-size: 48px; font-weight: 800; line-height: 1; }
.price small { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500; }
.plan-premium .price small, .plan-premium .alt, .plan-premium ul { color: var(--pale); }
.plan .alt { margin: 6px 0 0; font-size: 14px; }
.plan ul { margin: 22px 0 0; padding: 0 0 0 18px; }
.plan-free ul { font-weight: 500; }
.plan li + li { margin-top: 8px; }
.pricing-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font-size: 14px; font-weight: 500; }

/* ---- explorateur ------------------------------------------------------ */
.explore { background: var(--mist); }
.explore .wrap { padding-top: var(--sec); padding-bottom: var(--sec); }
.ex-grid { margin-top: 56px; display: flex; gap: 56px; align-items: center; }
.ex-list { flex: 0 0 420px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ex-item {
  position: relative; overflow: hidden; width: 100%; text-align: left;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer; font: inherit; color: inherit;
  transition: background .3s ease, box-shadow .3s ease;
}
.ex-item:hover { background: rgba(255,255,255,.6); }
.ex-item.is-on { background: #FFFFFF; box-shadow: inset 3px 0 0 var(--orange), 0 14px 30px -20px rgba(10,30,74,.5); }
.ex-item svg { flex: none; margin-top: 1px; stroke: var(--navy); }
.ex-item.is-on svg { stroke: var(--orange-text); }
.ex-item .t { display: block; font-size: 18px; font-weight: 600; color: var(--navy); }
.ex-item .d { display: block; margin-top: 4px; font-size: 15px; color: var(--body); }
.ex-item .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--orange); }
@keyframes prog { from { width: 0; } to { width: 100%; } }
.explore.is-auto .ex-item.is-on .bar.run { animation: prog 5s linear forwards; }
.ex-view { flex: 1 1 auto; min-width: 0; width: 100%; perspective: 1600px; }
.ex-device {
  background: #11151F; border-radius: 24px; padding: 12px;
  box-shadow: 0 40px 70px -40px rgba(10,30,74,.55);
  transform: rotateY(var(--tilt, -3deg)) rotateX(2deg);
  transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .6s ease;
}
.js .explore:not(.is-in) .ex-device { transform: rotateY(-18deg) rotateX(12deg) scale(.9); opacity: .4; }
.screen.ex-screen img { transition-duration: .55s; }
.shots-note { margin: 28px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .ex-grid { margin-top: 28px; flex-direction: column-reverse; gap: 24px; }
  .ex-list { flex: 0 0 auto; width: 100%; }
  .ex-item { padding: 14px 16px; }
  .ex-device { border-radius: 18px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-item, .ex-device { transition: none; }
  .ex-device, .js .explore:not(.is-in) .ex-device { transform: none; opacity: 1; }
  .explore.is-auto .ex-item.is-on .bar.run { animation: none; }
}

/* ---- données ---------------------------------------------------------- */
.data .wrap { padding-top: var(--sec); padding-bottom: var(--sec); display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.data .col { flex: 1 1 380px; min-width: 0; }
.data .lead { max-width: none; }
.data .more { display: inline-block; margin-top: 20px; color: var(--navy); font-weight: 600; }
.data ul { flex: 1 1 420px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.data li { background: var(--navy); color: #FFFFFF; border-radius: 12px; padding: 22px 24px; }
.data li strong { font-weight: 600; }
.data li span { display: block; margin-top: 4px; color: var(--pale); }

/* ---- auteur + téléchargement ------------------------------------------ */
.closing { background: var(--navy); color: #FFFFFF; }
.closing .wrap {
  padding-top: var(--sec); padding-bottom: var(--sec);
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between;
}
.closing figure { flex: 1 1 520px; min-width: 0; margin: 0; }
.closing blockquote { margin: 0; }
.closing blockquote p {
  margin: 0; font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: 34px; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance;
}
.closing figcaption { margin-top: 16px; font-weight: 500; color: var(--pale); }
.closing .get { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.closing .get span { font-size: 14px; color: var(--pale); }
.closing .get a:not(.badge-store) { color: #FFFFFF; }
@media (max-width: 900px) { .closing blockquote p { font-size: 24px; } }
