/* =========================================================
   PAVIGA, /premium
   Direction : clair, épuré, aéré (type Apple)
   Page 100% statique, indépendante de style.css
   Une seule police (Inter), pas d'italique,
   pas de dégradés colorés (blanc / gris / noir uniquement).
   ========================================================= */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f6f7f9;
  --bg-mute:   #eef0f3;
  --line:      rgba(15,20,30,0.09);
  --line-soft: rgba(15,20,30,0.06);
  --fg:        #0e1116;
  --fg-muted:  #565d6b;
  --fg-dim:    #8b909c;
  --blue:      #1a367e;
  --blue-mid:  #22439a;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1180px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Reveal --- */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.16,.84,.36,1), transform .9s cubic-bezier(.16,.84,.36,1);
  will-change: opacity, transform;
}
.reveal-up { transform: translateY(54px) scale(0.99); }
.is-in { opacity: 1 !important; transform: none !important; }

/* --- Buttons --- */
.pbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: all .22s ease; white-space: nowrap;
}
.pbtn-sm { padding: 9px 18px; font-size: 14px; }
.pbtn-lg { padding: 16px 34px; font-size: 16px; }
.pbtn-primary { color: #fff; background: var(--blue); }
.pbtn-primary:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(26,54,126,.55); }
.pbtn-ghost { color: var(--fg); border-color: var(--line); background: #fff; }
.pbtn-ghost:hover { border-color: rgba(15,20,30,.25); background: var(--bg-soft); }

/* =========================================================
   Phone mockups (partagé)
   ========================================================= */
.phone {
  width: 288px; padding: 9px; border-radius: 42px;
  background: #0e1116;
  box-shadow: 0 30px 70px -34px rgba(15,20,30,.45), 0 0 0 1px rgba(15,20,30,.06);
}
.phone-sm { width: 258px; }
.phone-screen { border-radius: 33px; overflow: hidden; background: #000; aspect-ratio: 9/19.5; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   NAV
   ========================================================= */
.pnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.pnav.is-scrolled {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: var(--line-soft);
}
.pnav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.pnav-logo img { height: 28px; }
.pnav-links { display: flex; gap: 34px; margin-left: auto; }
.pnav-links a { font-size: 14px; color: var(--fg-muted); transition: color .2s ease; }
.pnav-links a:hover { color: var(--fg); }
.pnav-actions { display: flex; align-items: center; gap: 14px; }
.pnav-login { font-size: 14px; color: var(--fg-muted); transition: color .2s; }
.pnav-login:hover { color: var(--fg); }

/* =========================================================
   HERO
   ========================================================= */
.phero {
  position: relative;
  padding: 172px 0 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background:
    radial-gradient(120% 70% at 50% -10%, var(--bg-soft), transparent 60%);
}
.phero-inner { max-width: 860px; padding: 0 32px; }
.phero-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .04em;
  color: var(--blue); margin-bottom: 26px;
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 100px; background: #fff;
}
.phero-title {
  font-weight: 800; font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  line-height: 1.02; letter-spacing: -0.035em; color: var(--fg);
}
.phero-sub {
  margin: 28px auto 0; max-width: 600px;
  font-size: clamp(1.05rem, 1.6vw, 1.26rem); line-height: 1.6; color: var(--fg-muted);
}
.phero-cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.phero-note { margin-top: 20px; font-size: 13.5px; color: var(--fg-dim); }
.phero-stage { margin-top: 68px; }

/* =========================================================
   STATS
   ========================================================= */
.pstats { padding: 40px 0 96px; }
.pstats-grid {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.pstat { flex: 1; min-width: 200px; padding: 34px 24px; text-align: center; border-left: 1px solid var(--line-soft); }
.pstat:first-child { border-left: none; }
.pstat strong { display: block; font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; color: var(--fg); }
.pstat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--fg-dim); }

/* =========================================================
   Section helpers
   ========================================================= */
.psection-index { font-size: 13px; letter-spacing: .06em; color: var(--blue); margin-bottom: 20px; }
.psection-title {
  font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  letter-spacing: -0.03em; line-height: 1.1; color: var(--fg); max-width: 760px;
}

/* =========================================================
   STORY
   ========================================================= */
.pstory { padding: 96px 0; background: var(--bg-soft); }
.pstory-lead {
  font-weight: 700; font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  line-height: 1.2; letter-spacing: -0.025em; color: var(--fg); max-width: 880px;
}
.pstory-lead .pmuted { display: block; margin-top: .35em; color: var(--fg-dim); font-weight: 600; }
.pstory-transition { margin-top: 64px; text-align: center; }
.ptransition-arrow { display: inline-block; font-size: 24px; color: var(--blue); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.pstory-transition p {
  margin-top: 16px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--fg);
}

/* =========================================================
   SHOWCASE (texte + visuel, aéré)
   ========================================================= */
.pshowcase { padding: 120px 0; }
.pshowcase-row {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px;
}
.pshowcase-row + .pshowcase-row { margin-top: 120px; }
.pshowcase-row--reverse .pshowcase-text { order: 2; }
.pshowcase-title { margin: 16px 0 20px; font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--fg); }
.pshowcase-body { font-size: 1.08rem; line-height: 1.65; color: var(--fg-muted); max-width: 440px; }
.pshowcase-visual { display: flex; justify-content: center; }
.pshowcase-row--reverse .pshowcase-visual { justify-content: center; }

/* =========================================================
   FEATURES
   ========================================================= */
.pfeatures { padding: 40px 0 120px; }
.pfeatures .psection-title { margin-bottom: 56px; }
.pfeatures-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft);
}
.pfeature {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  transition: background .35s ease;
}
.pfeature:hover { background: var(--bg-soft); }
.pfeature h3 { margin-bottom: 12px; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.pfeature p { font-size: 15px; line-height: 1.6; color: var(--fg-muted); }

/* =========================================================
   PREVIEW (scroll horizontal)
   ========================================================= */
.ppreview { padding: 40px 0 120px; background: var(--bg-soft); }
.ppreview .psection-title { margin-bottom: 48px; }
.ppreview-scroll { overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 0 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ppreview-scroll::-webkit-scrollbar { display: none; }
.ppreview-track { display: flex; gap: 32px; padding: 0 32px; width: max-content; }
.ppreview-track::after { content: ""; flex: 0 0 8px; }
.pss { flex: 0 0 258px; scroll-snap-align: center; }
.pss .phone { margin-bottom: 22px; transition: transform .35s ease; }
.pss:hover .phone { transform: translateY(-8px); }
.pss figcaption { padding: 0 4px; }
.pss-num { display: block; font-size: 12.5px; color: var(--fg-dim); letter-spacing: .08em; margin-bottom: 8px; }
.pss strong { display: block; font-size: 1.08rem; font-weight: 700; color: var(--fg); letter-spacing: -0.01em; }
.pss p { margin-top: 6px; font-size: 14px; color: var(--fg-muted); line-height: 1.5; }

/* =========================================================
   CLOSING CTA
   ========================================================= */
.pclose { padding: 150px 0; text-align: center; }
.pclose-title { font-weight: 800; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.035em; color: var(--fg); }
.pclose-sub { margin: 24px auto 0; max-width: 500px; font-size: 1.1rem; color: var(--fg-muted); }
.pclose-cta { margin-top: 38px; }
.pclose-stores { margin-top: 28px; display: flex; gap: 14px; justify-content: center; align-items: center; font-size: 14px; color: var(--fg-dim); }
.pclose-stores a { color: var(--fg-muted); transition: color .2s; }
.pclose-stores a:hover { color: var(--fg); }

/* =========================================================
   FOOTER
   ========================================================= */
.pfooter { padding: 64px 0 48px; border-top: 1px solid var(--line-soft); background: var(--bg-soft); }
.pfooter-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.pfooter-brand img { height: 24px; margin-bottom: 14px; }
.pfooter-brand p { font-size: 14px; color: var(--fg-dim); }
.pfooter-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.pfooter-links a { font-size: 14px; color: var(--fg-muted); transition: color .2s; }
.pfooter-links a:hover { color: var(--fg); }
.pfooter-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pfooter-bottom p { font-size: 13px; color: var(--fg-dim); }
.pfooter-bottom a { color: var(--fg-muted); transition: color .2s; }
.pfooter-bottom a:hover { color: var(--fg); }
.pfooter-credit a { color: var(--blue); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .pnav-links { display: none; }
  .pfeatures-grid { grid-template-columns: repeat(2, 1fr); }
  .pshowcase-row { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .pshowcase-row--reverse .pshowcase-text { order: 0; }
  .pshowcase-body { margin: 0 auto; }
}
@media (max-width: 620px) {
  .container { padding: 0 22px; }
  .phero { padding: 132px 0 32px; }
  .phero-inner { padding: 0 22px; }
  .phero-stage { margin-top: 52px; }
  .phone { width: 240px; }
  .phone-sm { width: 232px; }
  .pstats { padding-bottom: 64px; }
  .pstat { min-width: 100%; border-left: none; border-top: 1px solid var(--line-soft); }
  .pstat:first-child { border-top: none; }
  .pstory, .pshowcase, .pfeatures, .ppreview { padding-top: 72px; padding-bottom: 72px; }
  .pshowcase-row + .pshowcase-row { margin-top: 72px; }
  .pfeatures-grid { grid-template-columns: 1fr; }
  .pnav-login { display: none; }
  .pclose { padding: 100px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up { transition: none; opacity: 1; transform: none; }
  .ptransition-arrow { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   BROWSER MOCKUP (Paviga Pro est une app web, pas mobile)
   ========================================================= */
.pbrowser {
  width: 100%; max-width: 560px; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -34px rgba(15,20,30,.35), 0 0 0 1px rgba(15,20,30,.04);
}
.pbrowser-sm { max-width: 480px; }
.pbrowser-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); }
.pbrowser-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pbrowser-url { margin-left: 10px; flex: 1; height: 24px; border-radius: 7px; background: #fff; border: 1px solid var(--line-soft); display: flex; align-items: center; padding: 0 10px; font-size: 11.5px; color: var(--fg-dim); }
.pbrowser-body { padding: 22px 24px; background: #fcfcfd; }

.pmock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pmock-head strong { font-size: 13.5px; color: var(--fg); }
.pmock-head span { font-size: 12px; color: var(--fg-dim); }

.pmock-table { border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.pmock-row { display: grid; grid-template-columns: 1.5fr .8fr .8fr; align-items: center; gap: 10px; padding: 12px 14px; font-size: 12.5px; }
.pmock-row + .pmock-row { border-top: 1px solid var(--line-soft); }
.pmock-row.head { background: var(--bg-soft); color: var(--fg-dim); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.pmock-row b { font-weight: 600; color: var(--fg); }
.pmock-tag { justify-self: start; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; white-space: nowrap; }
.pmock-tag.ok { color: #1a7a4c; background: #e4f5ea; }
.pmock-tag.pending { color: #a3670c; background: #fbeed3; }

.pmock-doclist { display: flex; flex-direction: column; gap: 8px; }
.pmock-doc { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line-soft); border-radius: 10px; }
.pmock-doc-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-mute); flex: 0 0 auto; }
.pmock-doc b { display: block; font-size: 12.5px; color: var(--fg); }
.pmock-doc small { font-size: 11px; color: var(--fg-dim); }
.pmock-doc strong { margin-left: auto; font-size: 12.5px; color: var(--fg); }

.pmock-send { text-align: center; padding: 6px 0; }
.pmock-send-score { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; border: 5px solid #1a7a4c; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pmock-send-score strong { font-size: 19px; color: #1a7a4c; line-height: 1; }
.pmock-send-score span { font-size: 9px; color: var(--fg-dim); margin-top: 2px; }
.pmock-send-list { list-style: none; display: flex; flex-direction: column; gap: 6px; text-align: left; width: max-content; margin: 0 auto 18px; }
.pmock-send-list li { font-size: 12px; color: var(--fg-muted); }
.pmock-send-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; }

@media (max-width: 620px) {
  .pbrowser, .pbrowser-sm { max-width: 100%; }
  .pmock-row { grid-template-columns: 1.3fr .8fr .7fr; font-size: 11.5px; }
}
