/* ==========================================================================
   Préfac Plus — marketing site design system
   Lightweight, static, low-bandwidth-friendly. One self-hosted display face.
   ========================================================================== */

/* critical:base:start
   The build extracts this range into each HTML document. Keep only rules
   needed for the header and first viewport here; later sections stay in the
   asynchronously loaded full stylesheet. */

/* --- Font ------------------------------------------------------------------ */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-var-v1.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  /* Slow connections keep the stable system fallback instead of shifting the
     whole page several seconds after first paint. */
  font-display: optional;
}

/* --- Tokens ---------------------------------------------------------------- */
:root {
  /* brand */
  --blue: #1e4db7;
  --blue-600: #1c47a8;
  --blue-700: #163f9c;
  --blue-800: #12357f;
  --navy: #0b1b3f;
  --navy-2: #102450;
  --teal: #0f766e;
  --mint: #7fd4b8;
  --green: #0f766e;
  --amber: #d97706;
  --red: #b91c1c;

  /* neutrals */
  --ink: #0f172a;
  --slate: #334155;
  --muted: #4a5a72;
  --faint: #5b6b82;
  --line: #e4e9f1;
  --line-soft: #eef2f8;
  --surface: #f6f8fc;
  --surface-2: #eef3fb;
  --tint: #e9f0ff;
  --white: #ffffff;

  /* system */
  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --wrap: 1180px;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 24px -14px rgba(15, 23, 42, 0.28);
  --shadow-lg: 0 30px 60px -32px rgba(13, 27, 63, 0.45);
  --ring: 0 0 0 3px rgba(30, 77, 183, 0.32);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset ----------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4,
.nav,
.btn,
.eyebrow,
.stat strong,
.chip,
.kicker {
  font-family: var(--sans);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-700);
}

/* remove tap delay / double-tap zoom hesitation on interactive elements */
a,
button,
.btn,
.menu-button,
.nav a,
.mobile-links a,
[role="button"] {
  touch-action: manipulation;
}

img,
svg {
  display: block;
  max-width: 100%;
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font: 700 14px var(--sans);
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout ---------------------------------------------------------------- */
.wrap {
  width: min(100% - 44px, var(--wrap));
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-band {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.dark-band {
  position: relative;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(127, 212, 184, 0.16), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(30, 77, 183, 0.5), transparent 55%),
    var(--navy);
  color: var(--white);
  overflow: hidden;
}

.dark-band .h2,
.dark-band h2,
.dark-band h3 {
  color: #fff;
}

.dark-band p,
.dark-band .muted {
  color: #b9c7dc;
}

/* --- Icons ----------------------------------------------------------------- */
.i {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-sm {
  width: 18px;
  height: 18px;
}

/* --- Header ---------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(15, 23, 42, 0.4);
}

.header-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  color: var(--ink);
}

.brand-lockup {
  display: block;
  width: 160px;
  height: auto;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  position: relative;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav a:hover {
  color: var(--blue);
  background: var(--tint);
}

.nav a.active {
  color: var(--blue);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.menu-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.menu-button .icon-close {
  display: none;
}

body.menu-open .menu-button .icon-open {
  display: none;
}

body.menu-open .menu-button .icon-close {
  display: block;
}

/* Backdrop behind the mobile menu */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(11, 27, 63, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}

body.menu-open .menu-scrim {
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel {
  position: fixed;
  top: 74px;
  right: 0;
  /* explicit viewport height: the header's backdrop-filter makes it the
     containing block, so top+bottom alone would collapse to zero height */
  height: calc(100vh - 74px);
  height: calc(100dvh - 74px);
  overflow-y: auto;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  border-left: 1px solid var(--line-soft);
  background: var(--white);
  box-shadow: -30px 0 60px -40px rgba(15, 23, 42, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.mobile-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.mobile-links {
  display: grid;
  gap: 2px;
  padding: 16px 18px 22px;
}

/* Enfants directs seulement : les boutons de .mobile-cta gardent leurs propres
   couleurs (le texte blanc de .btn-primary était écrasé par `color: var(--ink)`,
   ce qui donnait du texte sombre sur fond bleu). */
.mobile-links > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 650;
}

.mobile-links > a:hover {
  background: var(--tint);
  color: var(--blue);
}

.mobile-links > a .i {
  color: var(--faint);
}

.mobile-cta {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.14s var(--ease), box-shadow 0.16s var(--ease),
    background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.btn .i {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  /* Dégradé volontairement foncé : le haut clair précédent (#2456c6) ne donnait
     que ~5,9:1 avec le texte blanc, trop juste sur mobile (bouton du menu). */
  background: linear-gradient(180deg, var(--blue), var(--blue-700));
  color: var(--white);
  box-shadow: 0 12px 26px -14px rgba(30, 77, 183, 0.7);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--blue-700), var(--blue-800));
  color: var(--white);
  box-shadow: 0 16px 30px -14px rgba(30, 77, 183, 0.75);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.5);
}

.btn-white:hover {
  color: var(--blue-700);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 15.5px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--blue);
}

.btn-link .i {
  width: 17px;
  height: 17px;
  transition: transform 0.16s var(--ease);
}

.btn-link:hover .i {
  transform: translateX(3px);
}

/* --- Chips / eyebrows ------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.dark-band .eyebrow {
  color: var(--mint);
}

.dark-band .eyebrow::before {
  background: var(--mint);
}

.chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chip .i {
  width: 14px;
  height: 14px;
}

.chip-blue {
  color: var(--blue);
  background: var(--tint);
  border-color: #c5d8ff;
}

.chip-green {
  color: #057a55;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.chip-amber {
  color: #b45309;
  background: #fff7ed;
  border-color: #fed7aa;
}

.chip-teal {
  color: var(--teal);
  background: #effcf9;
  border-color: #9decdd;
}

.chip-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* --- Type scale ------------------------------------------------------------ */
.h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  max-width: 640px;
}

.muted {
  color: var(--muted);
}

.kicker {
  font-weight: 700;
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 88% -6%, rgba(30, 77, 183, 0.12), transparent 60%),
    radial-gradient(760px 520px at -4% 8%, rgba(15, 118, 110, 0.08), transparent 58%),
    linear-gradient(180deg, #fbfcff, var(--surface));
  border-bottom: 1px solid var(--line-soft);
}

.hero::before {
  content: "";
  position: absolute;
  right: -18px;
  top: -30px;
  width: 560px;
  height: 520px;
  background-image: radial-gradient(circle, rgba(30, 77, 183, 0.16) 2px, transparent 2.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at 58% 42%, #000 0, transparent 68%);
  mask-image: radial-gradient(circle at 58% 42%, #000 0, transparent 68%);
  opacity: 0.75;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: 7%;
  top: 52px;
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background:
    linear-gradient(rgba(34, 197, 139, 0.42), rgba(34, 197, 139, 0.42)) center / 66px 14px no-repeat,
    linear-gradient(rgba(34, 197, 139, 0.42), rgba(34, 197, 139, 0.42)) center / 14px 66px no-repeat,
    rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(30, 77, 183, 0.08);
  box-shadow: 0 18px 48px rgba(30, 77, 183, 0.08);
  transform: rotate(7deg);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 78px 0 88px;
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  margin-top: 20px;
}

.hero .lead {
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}

.hero-proof strong {
  color: var(--ink);
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid var(--white);
  display: grid;
  place-items: center;
  color: var(--white);
  font: 800 12px var(--sans);
  box-shadow: var(--shadow-sm);
}

.avatar + .avatar {
  margin-left: -12px;
}

/* Hero product preview (real-looking app mock) */
.preview {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
}

.preview-glow {
  position: absolute;
  inset: -8% -6% -10%;
  background: radial-gradient(closest-side, rgba(30, 77, 183, 0.2), transparent 72%);
  filter: blur(10px);
  z-index: 0;
}

.device {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.device::before {
  content: "";
  display: block;
  width: 92px;
  height: 6px;
  margin: 2px auto 16px;
  border-radius: 999px;
  background: var(--line);
}

.app-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.app-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}

.app-logo svg {
  width: 24px;
  height: 24px;
}

.app-hello {
  display: grid;
  gap: 3px;
}

.app-hello b {
  font: 750 14px var(--sans);
  color: var(--ink);
}

.app-hello span {
  font-size: 11.5px;
  color: var(--faint);
}

.app-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--white);
  margin-bottom: 11px;
  box-shadow: var(--shadow-sm);
}

.app-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-card .label {
  font: 750 13.5px var(--sans);
  color: var(--ink);
}

.app-card .sub {
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 2px;
}

.app-card .pct {
  font: 800 13px var(--sans);
  color: var(--green);
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #e6ecf6;
  overflow: hidden;
  margin-top: 11px;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
  width: var(--w, 64%);
}

.ring {
  --p: 72;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background:
    conic-gradient(var(--green) calc(var(--p) * 1%), #e6ecf6 0);
  display: grid;
  place-items: center;
}

.ring::after {
  content: attr(data-label);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  font: 800 11px var(--sans);
  color: var(--ink);
}

.quiz-q {
  font: 750 13px var(--sans);
  color: var(--ink);
  margin-bottom: 10px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12.5px;
  color: var(--slate);
  margin-bottom: 7px;
}

.choice .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.6px solid var(--line);
  flex: none;
}

.choice.ok {
  border-color: #9be7c8;
  background: #f0fdf7;
  color: #067a52;
  font-weight: 650;
}

.choice.ok .dot {
  border-color: var(--green);
  background: var(--green);
  display: grid;
  place-items: center;
}

.choice.ok .dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.float-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font: 750 12.5px var(--sans);
  color: var(--ink);
}

.float-badge .i {
  width: 16px;
  height: 16px;
}

.float-badge.tr {
  top: 14px;
  right: -22px;
  color: var(--teal);
}

.float-badge.bl {
  bottom: 22px;
  left: -26px;
  color: var(--green);
}

/* critical:base:end */

/* --- Stats ----------------------------------------------------------------- */
.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--white);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 30px 20px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line-soft);
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 33px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

/* --- Grids ----------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
  gap: 52px;
}

.split.center {
  align-items: center;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head p {
  max-width: 440px;
}

.section-head .h2 {
  margin-top: 14px;
  max-width: 620px;
}

/* --- Cards ----------------------------------------------------------------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
}

.card .h3 {
  margin-bottom: 9px;
}

.card-hover {
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d3ddec;
}

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eff4ff, var(--tint));
  color: var(--blue);
  border: 1px solid #d9e5ff;
  margin-bottom: 16px;
}

.icon-tile .i {
  width: 24px;
  height: 24px;
}

.icon-tile.teal {
  background: linear-gradient(180deg, #effcf9, #dff7f0);
  color: var(--teal);
  border-color: #b3ecdf;
}

.icon-tile.num {
  font: 800 19px var(--sans);
}

.icon-tile.dark {
  background: rgba(127, 212, 184, 0.12);
  border-color: rgba(127, 212, 184, 0.28);
  color: var(--mint);
}

.feature-card {
  background: linear-gradient(180deg, #132a58, #0e2148);
  border-color: #274372;
}

.feature-card .h3 {
  color: #fff;
}

.feature-card p {
  color: #b9c7dc;
}

/* path / offer cards */
.path-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 0;
}

.path-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-800));
}

.path-top.teal {
  background: linear-gradient(135deg, var(--teal), #0c5b55);
}

.path-top .i {
  width: 26px;
  height: 26px;
  opacity: 0.9;
}

.path-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.path-body p {
  color: var(--muted);
  font-size: 14.5px;
}

.path-body .btn-link {
  margin-top: 2px;
}

/* mini list */
.mini-list {
  display: grid;
  gap: 11px;
  margin-top: 4px;
}

.mini-list li,
.mini-list div {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--slate);
  font-size: 14.5px;
  list-style: none;
}

.mini-list {
  padding: 0;
  margin-block: 4px 0;
}

.mini-list .i {
  width: 20px;
  height: 20px;
  color: var(--green);
  margin-top: 1px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
}

.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--slate);
  font-size: 15px;
  list-style: none;
}

.check-list .i {
  width: 21px;
  height: 21px;
  color: var(--green);
  flex: none;
  margin-top: 1px;
}

/* timeline */
.timeline {
  display: grid;
  gap: 6px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding-bottom: 22px;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 46px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--line), transparent);
}

.timeline-num {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--blue), var(--blue-800));
  color: var(--white);
  font: 800 17px var(--sans);
  box-shadow: 0 10px 20px -12px rgba(30, 77, 183, 0.7);
}

.timeline-item h3 {
  margin-top: 9px;
}

/* roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.roadmap-item {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.roadmap-item.now {
  border-color: #bcd0ff;
  background: linear-gradient(180deg, #f5f8ff, var(--white));
  box-shadow: var(--shadow-md);
}

.roadmap-item h3 {
  font-size: 16px;
  margin: 12px 0 6px;
}

.roadmap-item p {
  color: var(--muted);
  font-size: 13.5px;
}

.roadmap-tick {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--blue);
  font: 800 14px var(--sans);
}

.roadmap-item.now .roadmap-tick {
  background: var(--blue);
  color: #fff;
}

/* --- FAQ ------------------------------------------------------------------- */
.faq-grid {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 20px 22px;
}

.faq-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 16.5px;
}

.faq-item h3 .i {
  width: 19px;
  height: 19px;
  color: var(--blue);
}

/* --- CTA ------------------------------------------------------------------- */
.cta {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  gap: 18px;
  text-align: center;
  justify-items: center;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 15% 0%, rgba(127, 212, 184, 0.2), transparent 60%),
    radial-gradient(700px 420px at 100% 120%, rgba(30, 77, 183, 0.55), transparent 55%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
}

.cta .h2 {
  color: #fff;
  max-width: 640px;
}

.cta p {
  color: #c8d5ea;
  max-width: 600px;
  font-size: 17px;
}

/* --- Page hero (interior) -------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 66px 0 58px;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 92% -20%, rgba(30, 77, 183, 0.1), transparent 60%),
    linear-gradient(180deg, #fbfcff, var(--surface));
  border-bottom: 1px solid var(--line-soft);
}

.page-hero .h1 {
  margin-top: 16px;
  font-size: clamp(34px, 4.6vw, 52px);
}

.page-hero .lead {
  margin-top: 18px;
  max-width: 720px;
}

.page-hero .action-row {
  margin-top: 26px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 13.5px;
  margin-bottom: 18px;
  font-weight: 550;
}

.breadcrumb a {
  color: var(--muted);
  font-weight: 650;
}

.breadcrumb .i {
  width: 14px;
  height: 14px;
  color: var(--faint);
}

/* --- Prose content --------------------------------------------------------- */
.content {
  max-width: 780px;
}

.content h2 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  margin-top: 26px;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
}

.content p,
.content li {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.7;
}

.content p + p {
  margin-top: 13px;
}

.content ul,
.content ol {
  padding-left: 20px;
  margin: 12px 0;
}

.content li {
  margin: 6px 0;
}

.content a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-meta {
  margin-top: 8px;
  color: var(--faint);
  font-size: 13.5px;
}

/* --- Contact / forms ------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 30px;
  align-items: start;
}

.contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-card .icon-tile {
  margin-bottom: 0;
}

.contact-card .h3 {
  margin-bottom: 4px;
}

.contact-card a {
  font-weight: 650;
}

.form-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  color: var(--ink);
  font: 650 14px var(--sans);
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  font: 500 15px var(--body);
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.form-card textarea {
  min-height: 136px;
  resize: vertical;
}

.notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid #cfe0ff;
  background: #f2f7ff;
  color: #244b8f;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-weight: 550;
  font-size: 13.5px;
}

.notice .i {
  width: 19px;
  height: 19px;
  color: var(--blue);
  flex: none;
  margin-top: 1px;
}

/* --- People / leadership --------------------------------------------------- */
.person {
  display: grid;
  gap: 4px;
  align-content: start;
}

.avatar-lg {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 23px var(--sans);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.person h3 {
  margin-bottom: 1px;
}

.person .role {
  color: var(--blue);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13.5px;
}

.person .role.teal {
  color: var(--teal);
}

.person .bio {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 11px;
}

/* --- Footer ---------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 34px;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.footer-brand-lockup {
  width: 160px;
}

.footer p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 300px;
}

.footer h2 {
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
}

.footer-links {
  display: grid;
  gap: 0;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 12.5px;
}

/* --- Reveal on scroll (hidden only when JS is present) --------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal.d1 {
  transition-delay: 0.06s;
}

.js .reveal.d2 {
  transition-delay: 0.12s;
}

.js .reveal.d3 {
  transition-delay: 0.18s;
}

/* --- Smooth first-paint (JS present only, respects reduced motion) --------- */
@keyframes cb-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.js .hero-content {
  animation: cb-rise 0.5s var(--ease) both;
}

.js .preview {
  animation: cb-rise 0.5s 0.08s var(--ease) both;
}
/* interior pages appear instantly — no entrance animation, so tapping a
   menu item feels immediate rather than fading in */

/* critical:responsive:start */
/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1023px) {
  .nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0 64px;
  }

  .preview {
    justify-self: center;
    width: min(400px, 92%);
  }

  .split,
  .contact-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 24px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .section {
    padding: 56px 0;
  }

  .section-tight {
    padding: 44px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .stat + .stat {
    border-left: 0;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--line-soft);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .roadmap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .cta {
    padding: 40px 24px;
  }

  .float-badge.tr {
    right: 6px;
  }

  .float-badge.bl {
    left: 6px;
  }

  .hero::before {
    right: -210px;
    top: 300px;
  }

  .hero::after {
    right: -34px;
    top: 360px;
    width: 88px;
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * ,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .reveal,
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* critical:responsive:end */

/* Boutons jamais soulignés, même dans les zones de contenu rédactionnel. */
.content .btn {
  text-decoration: none;
}

/* Grilles de cartes tarifaires : hauteurs égales, bouton calé en bas. */
.cards-equal .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cards-equal .card .btn {
  margin-top: auto;
}

/* Garantit un minimum d'air au-dessus du bouton, même dans la carte la plus haute. */
.cards-equal .card p:last-of-type,
.cards-equal .card ul:last-of-type {
  margin-bottom: 18px;
}

/* Tarifs : carte MonCash vedette (2 colonnes internes, empilées sur mobile). */
.pay-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  box-shadow: 0 0 0 2px #1e4db7;
}

@media (max-width: 760px) {
  .pay-featured {
    grid-template-columns: 1fr;
  }
}

.pay-steps {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: start;
}

.pay-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pay-step p {
  margin: 0;
}

.pay-step span {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e4db7;
  font-weight: 800;
  font-size: 14px;
}

.pay-numbers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
  background: #eff6ff;
  border-radius: 14px;
  padding: 22px;
}

.pay-number {
  font-size: 23px;
  letter-spacing: 0.01em;
}

.pay-numbers .btn {
  margin-top: 12px;
}

/* Bandeaux photo (images licenciées, servies en WebP responsive). */
.photo-band {
  margin: 0;
}

.photo-band img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.5);
}

/* --- Bandeau défilant des entités (accueil, avant les chiffres clés) -------
   Version plus affirmée que celle de l'application : fond teinté, pastilles
   plus grandes, défilement un peu plus vif. */
.entity-marquee {
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.entity-marquee-label {
  margin: 0 0 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.entity-marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.entity-marquee-track {
  display: flex;
  width: max-content;
  animation: entity-marquee 34s linear infinite;
}

.entity-marquee ul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 7px;
  list-style: none;
}

.entity-marquee li {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

@keyframes entity-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Moins d'animation : bandeau figé, mais toujours explorable au doigt. */
@media (prefers-reduced-motion: reduce) {
  .entity-marquee-track {
    animation: none !important;
    width: auto;
  }
  .entity-marquee-viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .entity-marquee ul[aria-hidden="true"] {
    display: none;
  }
}

/* --- Page Méthodologie ---------------------------------------------------- */
.method-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .method-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.method-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.method-stat strong {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.method-stat span {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

/* Schéma de la chaîne éditoriale : décoratif, retiré quand il deviendrait
   trop petit pour être lu. */
.method-flow {
  display: block;
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: 4px auto 0;
}

@media (max-width: 760px) {
  .method-flow {
    display: none;
  }
}

.method-step-rank {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.method-step .icon-tile {
  margin-top: 12px;
}
