/* ═══════════════════════════════════════════════════════════════════════════════
   FIHARY DESIGN SYSTEM v3 — stylesheet unifiée des 6 pages marketing
   Direction : Apple · Palantir · Stripe · Linear
   Palette imposée : #22217B #4F29BD #1189A9 #115183 #142B64
                     #F5F8FE #d6e2fe #3b5fd6 #523ee1 #bbc0fc
   Règles brand : cartes = fond blanc, bordure 1px, radius ≤ 12px, ZERO ombre.
                  Teal (#1189A9) réservé à l'argent entrant. Purple (#4F29BD)
                  réservé au premium. Inter exclusif. Aucun emoji d'interface.
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette imposée — utilisée à ~5-8% */
  --navy: #22217B;
  --navy-deep: #142B64;
  --navy-mid: #115183;
  --purple: #4F29BD;
  --violet: #523ee1;
  --blue: #3b5fd6;
  --teal: #1189A9;
  --lavender: #bbc0fc;
  --wash: #d6e2fe;
  --pale: #F5F8FE;

  /* Neutres — 90%+ de l'interface */
  --bg: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-soft: #FAFBFC;
  --bg-muted: #F4F6F8;
  --border: #E8EAED;
  --border-strong: #D1D5DB;
  --text: #0A0D14;
  --text-body: #3C4257;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;

  /* États */
  --success: #059669;
  --success-bg: #ECFDF5;
  --success-border: #A7F3D0;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --danger-border: #FECACA;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;
  --money-in: #1189A9; /* Teal : exclusivement argent entrant */

  /* Typo */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 12px; /* brand : radius ≤ 12px */
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(10, 13, 20, 0.04);
  --shadow: 0 4px 24px rgba(10, 13, 20, 0.06);
  --shadow-lg: 0 24px 80px rgba(10, 13, 20, 0.10);
  --header-h: 72px;
  --max-width: 1200px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  font-size: 16px;
  transition: background 300ms ease, color 300ms ease;
}

h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }

[hidden] { display: none !important; }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.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;
}

/* ═══════ UTILITAIRES ═══════ */
/* 09/09/2026 : pilules « eyebrow » (point vert + mots) retirées de tout le
   site — l'espace est rendu aux titres de section. */

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

.section-head {
  margin-bottom: 56px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

section { padding: 100px 0; }
section.alt { background: var(--bg-soft); }

/* ═══════ BOUTONS ═══════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
  border: 1px solid transparent;
  background: transparent;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 33, 123, 0.22);
}

.btn-primary:hover {
  background: var(--navy-deep);
  box-shadow: 0 6px 20px rgba(34, 33, 123, 0.28);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}

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

.btn-white {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.btn-white:hover { background: var(--pale); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }

/* ═══════ Bandeau prospectus (fermable) ═══════ */
.prospectus-bar{ position:fixed; left:0; right:0; bottom:0; z-index:60; background:var(--navy); color:#fff;
  display:flex; align-items:center; justify-content:center; gap:14px; padding:10px 16px; font-size:13.5px;
  box-shadow:0 -6px 24px rgba(15,23,42,.18); }
.prospectus-bar span{ color:rgba(230,233,255,.9); }
.prospectus-bar a{ color:#fff; font-weight:600; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.35);
  border-radius:10px; padding:7px 14px; text-decoration:none; white-space:nowrap; }
.prospectus-bar a:hover{ background:rgba(255,255,255,.28); }
.prospectus-bar button{ background:none; border:none; color:rgba(255,255,255,.75); cursor:pointer; padding:4px; display:inline-flex; }
.prospectus-bar button:hover{ color:#fff; }
.prospectus-bar svg{ width:14px; height:14px; }
@media (max-width:768px){
  .prospectus-bar{ flex-direction:column; gap:8px; text-align:center; padding:12px 16px; }
}

/* ═══════ Bandeau cookies (consentement) ═══════ */
.cookie-banner{ position:fixed; left:12px; bottom:12px; z-index:61; max-width:420px;
  background:#fff; color:var(--text); border:1px solid var(--border); border-radius:12px;
  padding:14px 16px; font-size:12.5px; line-height:1.5; display:flex; flex-direction:column; gap:10px;
  box-shadow:0 10px 30px rgba(15,23,42,.18); opacity:0; transform:translateY(8px);
  transition:opacity .3s ease, transform .3s ease; }
.cookie-banner.is-visible{ opacity:1; transform:translateY(0); }
.cookie-banner a{ color:var(--navy); font-weight:600; }
.cookie-banner .cookie-accept{ background:var(--navy); color:#fff; border:none; border-radius:10px;
  padding:9px 14px; font-weight:600; font-size:13px; cursor:pointer; }
.cookie-banner .cookie-accept:hover{ background:var(--navy-deep); }
.btn-block { width: 100%; }

/* ═══════ FORMULAIRES ═══════ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-group textarea { min-height: 140px; padding: 12px 14px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(34, 33, 123, 0.08);
}

/* ═══════ HEADER ═══════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.brand img { width: 32px; height: 32px; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 150ms ease;
  position: relative;
}

.nav-desktop a:hover { color: var(--navy); }
.nav-desktop a.is-active { color: var(--navy); font-weight: 600; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 999;
  padding: 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 300ms ease, opacity 300ms ease, visibility 300ms ease;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu a {
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-menu .btn { width: 100%; margin-top: 16px; }

/* ═══════ PAGE HERO (pages internes) ═══════ */
.page-hero {
  background: var(--navy);
  color: #FFFFFF;
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
}

.page-hero h1 {
  color: #FFFFFF;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 16px;
  max-width: 760px;
}

.page-hero p {
  color: var(--wash);
  font-size: 17px;
  line-height: 1.7;
  max-width: 680px;
}

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

/* ═══════ HERO (accueil) ═══════ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 120px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 20%, rgba(0,0,0,0.45) 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, rgba(0,0,0,0.45) 0%, transparent 60%);
  opacity: 0.6;
}

.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wash) 0%, transparent 70%);
  top: -180px;
  right: -160px;
  opacity: 0.45;
  filter: blur(40px);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

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

.hero-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--navy);
  position: relative;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust li::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
}

/* Dashboard mockup (hero + démo) */
.hero-visual {
  position: relative;
  perspective: 1200px;
}

.dashboard-mockup {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 500ms ease;
}

.dashboard-mockup:hover { transform: rotateY(-4deg) rotateX(2deg); }

.dash-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.r { background: #FF5F57; }
.dash-dot.y { background: #FFBD2E; }
.dash-dot.g { background: #28CA41; }

.dash-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 420px;
}

.dash-sidebar {
  background: var(--bg-muted);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.dash-sidebar span {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--border);
}

.dash-sidebar span.active { background: var(--navy); }

.dash-main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-greeting {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.dash-greeting span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.dash-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--wash);
  padding: 5px 10px;
  border-radius: 99px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dash-stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.dash-stat label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

.dash-stat strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.dash-stat.up strong { color: var(--money-in); }
.dash-stat.down strong { color: var(--danger); }

.dash-chart {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  flex: 1;
  min-height: 160px;
  position: relative;
}

.dash-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dash-chart-title { font-size: 13px; font-weight: 600; color: var(--text); }

.dash-chart-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.dash-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dash-chart-legend i { width: 6px; height: 6px; border-radius: 50%; }

.dash-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  height: 110px;
  padding-top: 10px;
}

.dash-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dash-bar-pair {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}

.dash-bar {
  width: 8px;
  border-radius: 3px 3px 0 0;
  background: var(--navy);
  opacity: 0.9;
}

.dash-bar.secondary { background: var(--lavender); }

.dash-bar-label { font-size: 10px; color: var(--text-faint); }

.dash-table {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dash-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dash-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
}

.dash-table td {
  padding: 10px 12px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.dash-table tr:last-child td { border-bottom: none; }

.dash-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.dash-amount.in { color: var(--money-in); font-weight: 600; }
.dash-amount.out { color: var(--danger); font-weight: 600; }

/* ═══════ BANDEAU DE CONFIANCE ═══════ */
.trust-bar {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.trust-bar p {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.trust-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-faint);
  transition: color 200ms ease;
}

.trust-logo:hover { color: var(--text-muted); }

/* ═══════ DÉMONSTRATION ═══════ */
.demo { background: var(--bg); }

.demo-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.demo-tab {
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 150ms ease, color 150ms ease;
}

.demo-tab:hover { color: var(--text); }

.demo-tab.is-active {
  background: var(--bg-elevated);
  color: var(--text);
}

.demo-panes { position: relative; }

.demo-pane {
  display: none;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}

.demo-pane.is-active { display: grid; }

.demo-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.demo-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.demo-card-body { padding: 20px; }

.demo-mobile {
  max-width: 280px;
  margin: 0 auto;
  border-radius: 28px; /* silhouette téléphone : exception device, pas une carte */
  border: 8px solid var(--text);
  background: var(--bg-elevated);
  overflow: hidden;
}

.demo-mobile .demo-card { border: none; border-radius: 0; }

.mobile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.mobile-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.mobile-item-icon.mv { background: #FFF8E1; color: #B45309; }
.mobile-item-icon.om { background: #FFF3E0; color: #D97706; }
.mobile-item-icon.airtel { background: #FFEBEE; color: #C62828; }

.mobile-item-main { flex: 1; min-width: 0; }
.mobile-item-main strong { font-size: 14px; color: var(--text); }
.mobile-item-main span { font-size: 12px; color: var(--text-muted); display: block; }
.mobile-item-amount { font-size: 14px; font-weight: 600; }
.mobile-item-amount.in { color: var(--money-in); }
.mobile-item-amount.out { color: var(--danger); }

/* ═══════ FONCTIONNALITÉS ═══════ */
.features { background: var(--bg-soft); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-visual {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-body);
}

.feature-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322217B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.feature-desc { font-size: 16px; color: var(--text-muted); line-height: 1.7; }

/* Mini widgets inside feature visuals */
.mini-widget { padding: 20px; }
.mini-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mini-widget-title { font-size: 14px; font-weight: 600; color: var(--text); }
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.mini-row:last-child { border-bottom: none; }
.mini-op { display: inline-flex; align-items: center; gap: 8px; color: var(--text-body); }
.mini-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ═══════ GRILLE DE FONCTIONNALITÉS (cartes) ═══════ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 150ms ease;
}

.feature-card:hover { border-color: var(--border-strong); }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(34, 33, 123, 0.08);
  color: var(--navy);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 { font-size: 16px; font-weight: 600; color: var(--navy-deep); }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.feature-card .feature-meta { font-size: 12px; font-weight: 600; color: var(--navy); margin-top: auto; }

/* ═══════ POURQUOI FIHARY ═══════ */
.why { background: var(--bg); }

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

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 200ms ease;
}

.stat-card:hover { transform: translateY(-3px); }

.stat-number {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-number em {
  font-style: normal;
  color: var(--navy);
}

.stat-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════ TÉMOIGNAGE ═══════ */
.testimonial { background: var(--bg-soft); }

.testimonial-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
}

.quote-mark {
  position: absolute;
  top: 28px;
  left: 36px;
  font-size: 120px;
  line-height: 1;
  color: var(--wash);
  font-family: var(--font);
  opacity: 0.6;
  pointer-events: none;
}

.testimonial-text {
  position: relative;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 32px;
}

.testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--border);
}

.testimonial-name { font-size: 16px; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 14px; color: var(--text-muted); }

/* ═══════ TARIFS ═══════ */
.pricing { background: var(--bg); }

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius);
}

.pricing-toggle button {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  transition: background-color 150ms ease, color 150ms ease;
}

.pricing-toggle button.is-active {
  background: var(--bg-elevated);
  color: var(--navy-deep);
  font-weight: 600;
}

/* Badge pilule (toggle : "Économisez 2 mois") — premium */
.pricing-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple);
  background: rgba(79, 41, 189, 0.10);
  border-radius: var(--radius-pill);
}

/* Badge "Populaire" sur la carte mise en avant */
.pricing-card.featured .pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, transform 200ms ease;
}

.pricing-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.pricing-card.featured {
  border-color: var(--navy);
}

.pricing-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
}

.pricing-save {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  align-self: flex-start;
}

.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-cta {
  width: 100%;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.pricing-card.featured .pricing-cta {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.pricing-cta:hover {
  background: var(--bg-muted);
  border-color: var(--navy);
  color: var(--navy);
}

.pricing-card.featured .pricing-cta:hover {
  background: var(--navy-deep);
  color: #fff;
}

.pricing-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-footer a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══════ TABLEAU COMPARATIF ═══════ */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.compare-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--bg-soft);
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 13px;
  text-transform: none;
}

.compare-table thead th:first-child { text-align: left; }

.compare-table thead th.plan-pro { color: var(--purple); }

.compare-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text-body);
}

.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th { border-bottom: none; }

.compare-table tbody tr:hover { background: var(--bg-soft); }

.check { color: var(--success); }
.check svg { width: 15px; height: 15px; margin: 0 auto; }
.dash { color: var(--text-faint); font-weight: 400; }
.cell-value { font-weight: 600; color: var(--navy-deep); }

/* ═══════ PARRAINAGE ═══════ */
.referral-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.referral-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 820px) {
  .referral-grid { grid-template-columns: 1.2fr 1fr; }
}

.referral-grid h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.referral-grid > div > p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.referral-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.referral-perk {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
}

.referral-perk svg { width: 15px; height: 15px; color: var(--navy); }

.referral-illustration {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #FFFFFF;
}

.referral-illustration h3 {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.referral-illustration p {
  color: var(--wash);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.referral-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.referral-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.referral-step strong { display: block; color: #FFFFFF; font-size: 14px; }
.referral-step span { font-size: 13px; color: var(--wash); line-height: 1.6; }

/* ═══════ FAQ ═══════ */
.faq { background: var(--bg-soft); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 150ms ease-out;
}

.faq-item.is-open .faq-question svg { transform: rotate(180deg); }

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-muted);
  transition: transform 200ms ease;
}

.faq-icon::before { width: 12px; height: 2px; top: 9px; left: 4px; }
.faq-icon::after { width: 2px; height: 12px; top: 4px; left: 9px; }

.faq-item.is-open .faq-icon::after { transform: rotate(90deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ═══════ CTA FINAL ═══════ */
.cta-final {
  position: relative;
  padding: 100px 0;
  background: var(--navy);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(82, 62, 225, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(17, 137, 169, 0.25) 0%, transparent 45%);
  pointer-events: none;
}

.cta-final .container { position: relative; }

.cta-final h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-final p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.cta-final .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-final .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.cta-final .btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cta-final .btn-primary:hover { background: var(--pale); }

/* ═══════ FOOTER ═══════ */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 150ms ease;
}

.footer-col a:hover { color: var(--navy); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* ═══════ CONTACT ═══════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-deep);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-list svg {
  width: 20px;
  height: 20px;
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-list div strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-info-list a {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}

.contact-info-list a:hover { text-decoration: underline; }

.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ═══════ SÉCURITÉ ═══════ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.security-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 150ms ease;
}

.security-card:hover { border-color: var(--border-strong); }

.security-card h3 { font-size: 16px; font-weight: 600; color: var(--navy-deep); }

.security-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.security-card p strong { color: var(--text); font-weight: 600; }

/* ═══════ RÉVÉLATIONS / ANIMATIONS ═══════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual { transform: none; }
  html { scroll-behavior: auto; }
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-content { max-width: 680px; }
  .hero-visual { max-width: 720px; margin: 0 auto; }
  .dashboard-mockup { transform: none; }
  .dashboard-mockup:hover { transform: none; }

  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 40px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-desktop,
  .header-actions .btn { display: none; }

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

  .header-actions { gap: 8px; }

  .hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: 80px; }
  .hero-title { font-size: 36px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .page-hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 56px; }
  .page-hero-actions { flex-direction: column; }
  .page-hero-actions .btn { width: 100%; }

  .dash-body { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-table { display: none; }

  .demo-pane { grid-template-columns: 1fr; }
  .demo-mobile { order: -1; }

  section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

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

  .testimonial-card { padding: 32px 24px; }
  .testimonial-text { font-size: 18px; }
  .quote-mark { font-size: 72px; top: 12px; left: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-final h2 { font-size: 30px; }
  .cta-final .btn { width: 100%; }

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

@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr; }
}
