/* ================================================================
   RabidPOS — Landing page styles (porté depuis landing-mockup.html)
   Palette : Navy #0A1A35 · Bleu #0077B6 · Or #D4AF37 · Crème #F5E8D5
   Display : Sora · Body : Inter
   Toutes les classes ici sont nouvelles — pas de conflit avec
   rabidpos.css existant (sh-*, kp-*, ed-*).
   ================================================================ */

:root {
  --rp-navy:       #0A1A35;
  --rp-navy-soft:  #1A2A48;
  --rp-bleu:       #0077B6;
  --rp-bleu-deep:  #005a8a;
  --rp-or:         #D4AF37;
  --rp-or-soft:    #E8C766;
  --rp-or-deep:    #b8961e;
  --rp-cream:      #FAF6EE;
  --rp-sand:       #F5E8D5;
  --rp-paper:      #FFFFFF;
  --rp-ink:        #0F172A;
  --rp-ink-soft:   #475569;
  --rp-line:       #E5E7EB;
}

/* ── Typo display ── */
.rp-display {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.rp-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rp-bleu);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.rp-eyebrow::before,
.rp-eyebrow::after {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
  opacity: .5;
}
.rp-eyebrow.no-rule::before, .rp-eyebrow.no-rule::after { display: none; }

/* ── Containers ── */
.rp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.rp-wrap-tight { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* ── CTAs ── */
.rp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.rp-btn-or {
  background: linear-gradient(180deg, var(--rp-or-soft) 0%, var(--rp-or) 50%, var(--rp-or-deep) 100%);
  color: var(--rp-navy);
  box-shadow: 0 8px 20px rgba(212,175,55,.35), inset 0 1px 0 rgba(255,255,255,.6);
}
.rp-btn-or:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(212,175,55,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.rp-btn-or:active { transform: translateY(0); }

.rp-btn-ghost {
  background: transparent;
  color: var(--rp-paper);
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.rp-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

.rp-btn-navy {
  background: var(--rp-navy);
  color: var(--rp-paper);
}
.rp-btn-navy:hover { background: var(--rp-bleu); }

.rp-btn-arrow svg { transition: transform .2s; }
.rp-btn-arrow:hover svg { transform: translateX(3px); }

/* ════════════════════════════════════════════════════════════════
   1. HEADER STICKY
   ════════════════════════════════════════════════════════════════ */
.rp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: backdrop-filter .25s, background .25s, box-shadow .25s, padding .25s;
}
.rp-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(15,23,42,.08);
  padding: 12px 0;
}
.rp-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.rp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.rp-brand-logo {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--rp-paper);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  overflow: hidden;
  flex-shrink: 0;
}
.rp-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.rp-brand-name {
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--rp-paper);
  transition: color .25s;
}
.rp-header.scrolled .rp-brand-name { color: var(--rp-navy); }

.rp-nav-menu { display: flex; gap: 32px; align-items: center; }
.rp-nav-menu a {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s;
  text-decoration: none;
}
.rp-nav-menu a:hover { color: var(--rp-paper); }
.rp-header.scrolled .rp-nav-menu a { color: var(--rp-ink-soft); }
.rp-header.scrolled .rp-nav-menu a:hover { color: var(--rp-navy); }

.rp-header-cta { display: flex; gap: 12px; align-items: center; }
.rp-header-cta .rp-login {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.95);
  padding: 8px 14px;
  transition: color .2s;
  background: none; border: 0; cursor: pointer;
  font-family: inherit;
}
.rp-header.scrolled .rp-header-cta .rp-login { color: var(--rp-navy); }
.rp-header-cta .rp-btn { padding: 10px 18px; font-size: 13.5px; }

.rp-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--rp-paper);
}
.rp-header.scrolled .rp-burger { border-color: var(--rp-line); color: var(--rp-navy); }

@media (max-width: 900px) {
  /* Plus de burger : on garde Connexion + Commencer, en version compacte. */
  .rp-nav-menu { display: none; }
  .rp-burger { display: none; }
  .rp-header-cta { gap: 8px; }
  .rp-header-cta .rp-login { display: inline-flex; padding: 8px 10px; font-size: 13px; }
  .rp-header-cta .rp-btn { padding: 9px 14px; font-size: 13px; }
}
/* Header fixe : décale l'ancre du formulaire pour qu'il ne soit pas
   masqué quand on clique sur Connexion / Commencer. */
#main-card { scroll-margin-top: 84px; }

/* ════════════════════════════════════════════════════════════════
   2. HERO
   ════════════════════════════════════════════════════════════════ */
.rp-hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 110px;
  background:
    linear-gradient(180deg, #081530 0%, #0A1A35 45%, #14233f 100%);
  color: var(--rp-paper);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
/* Grille pointillée subtile */
.rp-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.045) 1px, transparent 1.5px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Aurora qui respire (inspiré 21st.dev) ── */
.rp-hero-aurora {
  position: absolute;
  top: 38%; left: 50%;
  width: 90vw; height: 75vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%,
    rgba(212,175,55,.20) 0%,
    rgba(0,119,182,.22) 38%,
    transparent 68%);
  filter: blur(70px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: rp-hero-breathe 9s ease-in-out infinite alternate;
}
@keyframes rp-hero-breathe {
  0%   { transform: translate(-50%, -50%) scale(1);    opacity: .7; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 1;  }
}

/* ── Giant text de fond masqué ── */
.rp-hero-giant {
  position: absolute;
  left: 50%; bottom: -2vh;
  transform: translateX(-50%);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 23vw;
  line-height: .8;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.05);
  background: linear-gradient(180deg, rgba(255,255,255,.07) 0%, transparent 65%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.rp-hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.rp-hero-text .rp-eyebrow {
  color: var(--rp-or-soft);
  margin-bottom: 28px;
}
.rp-hero-title {
  font-size: clamp(40px, 6vw, 76px);
  margin-bottom: 24px;
  color: var(--rp-paper);
}
.rp-hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--rp-or-soft) 0%, var(--rp-or) 50%, var(--rp-or-deep) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.rp-hero-sub {
  font-size: clamp(16px, 1.2vw, 19px);
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  max-width: 520px;
}
.rp-hero-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.rp-hero-fine {
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
}
.rp-hero-fine strong { color: rgba(255,255,255,.8); font-weight: 600; }

.rp-hero-visual {
  position: relative;
  max-width: 560px;
  margin-left: auto;
}
/* Halo doré derrière l'image */
.rp-hero-visual::before {
  content: ''; position: absolute; inset: -12%;
  background: radial-gradient(circle, rgba(212,175,55,.30) 0%, rgba(0,119,182,.12) 45%, transparent 65%);
  filter: blur(50px);
  z-index: 0;
}
.rp-hero-visual-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1.05;
  border-radius: 26px;
  padding: 8px;
  background: linear-gradient(150deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.04) 40%, rgba(212,175,55,.18) 100%);
  box-shadow: 0 40px 90px rgba(0,0,0,.45);
  animation: rp-hero-rise 1s cubic-bezier(.16,1,.3,1) both;
}
.rp-hero-visual-frame img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
@keyframes rp-hero-rise {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Indicateur de scroll centré (remplace le bloc trust) ── */
.rp-hero-scroll {
  position: relative; z-index: 2;
  margin-top: 64px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-decoration: none;
  cursor: pointer;
}
.rp-hero-scroll-lbl {
  font-family: 'Sora', sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  color: rgba(255,255,255,.78);
  text-align: center;
  letter-spacing: .01em;
  transition: color .2s;
}
.rp-hero-scroll:hover .rp-hero-scroll-lbl { color: var(--rp-or-soft); }
.rp-hero-scroll-mouse {
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 7px;
  transition: border-color .2s;
}
.rp-hero-scroll:hover .rp-hero-scroll-mouse { border-color: var(--rp-or-soft); }
.rp-hero-scroll-wheel {
  width: 4px; height: 8px; border-radius: 2px;
  background: var(--rp-or-soft);
  animation: rp-hero-wheel 1.6s ease-in-out infinite;
}
@keyframes rp-hero-wheel {
  0%   { opacity: 0; transform: translateY(-4px); }
  35%  { opacity: 1; }
  70%  { opacity: 1; transform: translateY(8px); }
  100% { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .rp-hero-aurora, .rp-hero-scroll-wheel, .rp-hero-visual-frame { animation: none; }
}

.rp-hero-chips { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.rp-hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.8);
}
.rp-hero-chip .d { width: 6px; height: 6px; border-radius: 50%; background: var(--rp-or); }

@media (max-width: 980px) {
  .rp-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .rp-hero-text { display: flex; flex-direction: column; align-items: center; }
  .rp-hero-sub { margin-left: auto; margin-right: auto; }
  .rp-hero-chips, .rp-hero-cta-row { justify-content: center; }
  .rp-hero-visual { max-width: 380px; margin: 0 auto; order: -1; }
  .rp-hero { padding: 110px 0 64px; min-height: auto; }
  .rp-hero-giant { font-size: 34vw; bottom: 2vh; opacity: .8; }
  .rp-hero-scroll { margin-top: 44px; }
}
@media (max-width: 560px) {
  .rp-hero-title { font-size: clamp(34px, 11vw, 48px); }
  .rp-hero-visual { max-width: 320px; }
  .rp-hero-giant { font-size: 42vw; }
  .rp-hero-chip { font-size: 11px; padding: 5px 10px; }
}

/* ════════════════════════════════════════════════════════════════
   3. LIVE DASHBOARD
   ════════════════════════════════════════════════════════════════ */
.rp-section { padding: 100px 0; }
.rp-section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.rp-section-head .rp-eyebrow { margin-bottom: 20px; }
.rp-section-title {
  font-size: clamp(32px, 4.4vw, 52px);
  margin-bottom: 16px;
  color: var(--rp-navy);
}
.rp-section-sub {
  font-size: 17px;
  color: var(--rp-ink-soft);
  max-width: 580px; margin: 0 auto;
}

.rp-dash-section { background: var(--rp-cream); padding: 100px 0; position: relative; }
.rp-dash-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(212,175,55,.06) 1px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

.rp-dash {
  position: relative; z-index: 2;
  background: var(--rp-paper);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(15,23,42,.04),
    0 30px 80px rgba(15,23,42,.12),
    0 0 0 1px rgba(15,23,42,.04);
  overflow: hidden;
  max-width: 1080px; margin: 0 auto;
}
.rp-dash-head {
  padding: 20px 28px;
  border-bottom: 1px solid var(--rp-line);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}
.rp-dash-head-l { display: flex; align-items: center; gap: 12px; }
.rp-dash-head-l .rp-dot-green { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.15); flex-shrink: 0; }
.rp-dash-head-l .rp-dash-lbl { font-weight: 700; color: var(--rp-navy); font-size: 14px; }
.rp-dash-head-l .rp-dash-sub { font-size: 12px; color: var(--rp-ink-soft); }
.rp-dash-head-r { display: flex; gap: 4px; }
.rp-dash-head-r span { width: 12px; height: 12px; border-radius: 50%; background: var(--rp-line); }
.rp-dash-head-r span:nth-child(1) { background: #fb7185; }
.rp-dash-head-r span:nth-child(2) { background: #fbbf24; }
.rp-dash-head-r span:nth-child(3) { background: #34d399; }

.rp-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--rp-line);
}
.rp-dash-kpi {
  padding: 24px 28px;
  border-right: 1px solid var(--rp-line);
}
.rp-dash-kpi:last-child { border-right: 0; }
.rp-dash-kpi-lbl {
  font-size: 11px; font-weight: 700;
  color: var(--rp-ink-soft);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 8px;
}
.rp-dash-kpi-val {
  font-family: 'Sora', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--rp-navy);
  display: flex; align-items: baseline; gap: 6px;
  letter-spacing: -0.02em;
}
.rp-dash-kpi-val .rp-unit { font-size: 13px; font-weight: 600; color: var(--rp-ink-soft); }
.rp-dash-kpi-trend {
  margin-top: 4px;
  font-size: 12px; font-weight: 600;
  color: #10b981;
  display: inline-flex; align-items: center; gap: 4px;
}
.rp-dash-kpi-trend.down { color: #ef4444; }
.rp-dash-kpi[data-counter] .rp-dash-kpi-val { opacity: 0; transition: opacity .4s; }
.rp-dash-kpi[data-counter].on .rp-dash-kpi-val { opacity: 1; }

.rp-dash-body { padding: 28px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.rp-dash-chart-title { font-size: 12px; font-weight: 700; color: var(--rp-ink-soft); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.rp-dash-chart-svg { width: 100%; height: 180px; }
.rp-dash-chart-svg .rp-bar { transform-origin: bottom; transform: scaleY(0); transition: transform .8s cubic-bezier(.5,1.2,.5,1); }
.rp-dash-chart-svg.on .rp-bar { transform: scaleY(1); }

.rp-dash-top {
  background: var(--rp-cream);
  border-radius: 12px;
  padding: 16px;
}
.rp-dash-top-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(15,23,42,.08);
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s, transform .5s;
}
.rp-dash-top-row:last-child { border-bottom: 0; }
.rp-dash-top.on .rp-dash-top-row { opacity: 1; transform: translateY(0); }
.rp-dash-top.on .rp-dash-top-row:nth-child(1) { transition-delay: .1s; }
.rp-dash-top.on .rp-dash-top-row:nth-child(2) { transition-delay: .25s; }
.rp-dash-top.on .rp-dash-top-row:nth-child(3) { transition-delay: .4s; }
.rp-dash-top.on .rp-dash-top-row:nth-child(4) { transition-delay: .55s; }
.rp-dash-top-name { font-size: 13px; font-weight: 600; color: var(--rp-navy); }
.rp-dash-top-qty  { font-size: 11px; color: var(--rp-ink-soft); margin-top: 2px; }
.rp-dash-top-val  { font-size: 13px; font-weight: 700; color: var(--rp-bleu); }

@media (max-width: 800px) {
  .rp-dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .rp-dash-kpi { border-bottom: 1px solid var(--rp-line); }
  .rp-dash-kpi:nth-child(odd) { border-right: 1px solid var(--rp-line); }
  .rp-dash-kpi:nth-child(even) { border-right: 0; }
  .rp-dash-body { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .rp-dash-kpi-val { font-size: 22px; }
}

/* ════════════════════════════════════════════════════════════════
   4. STORYTELLING — Auto-slide infini
   ════════════════════════════════════════════════════════════════ */
.rp-story-section {
  background: linear-gradient(180deg, #050d1c 0%, #0a1a35 100%);
  color: var(--rp-paper);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}
.rp-story-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(212,175,55,.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(0,119,182,.10) 0%, transparent 50%);
  pointer-events: none;
}
.rp-story-section .rp-section-head { position: relative; z-index: 2; }
.rp-story-section .rp-section-title { color: var(--rp-paper); }
.rp-story-section .rp-section-sub   { color: rgba(255,255,255,.7); }

.rp-story-scroll-container {
  position: relative; z-index: 2;
  margin-top: 60px;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  /* Scroll natif : auto-défile via JS, mais l'utilisateur peut aussi
     scroller/swiper/glisser manuellement (la barre est masquée). */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  cursor: grab;
}
.rp-story-scroll-container::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.rp-story-scroll-container.is-grabbing { cursor: grabbing; }
.rp-story-scroll-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 16px 0;
}

.rp-story-card {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .4s cubic-bezier(.2,.6,.3,1), box-shadow .4s;
}
.rp-story-card:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(212,175,55,.3);
}
.rp-story-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.6,.3,1);
}
.rp-story-card:hover img { transform: scale(1.08); }

.rp-story-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,26,53,.05) 0%,
    rgba(10,26,53,.20) 40%,
    rgba(10,26,53,.78) 75%,
    rgba(5,13,28,.95) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  pointer-events: none;
}
.rp-story-card-num {
  position: absolute;
  top: 16px; left: 16px;
  background: linear-gradient(180deg, var(--rp-or-soft) 0%, var(--rp-or-deep) 100%);
  color: var(--rp-navy);
  font-family: 'Sora', sans-serif;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .12em;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(212,175,55,.35);
}
.rp-story-card-hour {
  font-family: 'Sora', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--rp-or-soft);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.rp-story-card-hour::before {
  content: ''; width: 20px; height: 1px;
  background: var(--rp-or-soft); opacity: .6;
}
.rp-story-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 21px; font-weight: 800;
  color: var(--rp-paper);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.rp-story-card-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .rp-story-section { padding: 70px 0 90px; }
  .rp-story-scroll-track { gap: 16px; animation-duration: 38s; }
  .rp-story-card { width: 260px; height: 360px; border-radius: 18px; }
  .rp-story-card-title { font-size: 18px; }
  .rp-story-card-desc { font-size: 13px; }
}
@media (max-width: 480px) {
  .rp-story-card { width: 230px; height: 320px; }
  .rp-story-card-overlay { padding: 18px; }
  .rp-story-card-title { font-size: 16.5px; }
}

/* ── Carte interlude "globe RabidPOS" entre les boucles ────── */
.rp-story-card-logo {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(212,175,55,.18) 0%, transparent 55%),
    radial-gradient(circle at 50% 60%, rgba(0,119,182,.15) 0%, transparent 60%),
    linear-gradient(180deg, #050d1c 0%, #0a1a35 50%, #050d1c 100%);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(212,175,55,.2);
  /* Globe centré au milieu de la carte */
  display: flex;
  align-items: center; justify-content: center;
}
.rp-story-card-logo::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(212,175,55,.55) 60deg,
    transparent 120deg,
    transparent 240deg,
    rgba(0,119,182,.45) 300deg,
    transparent 360deg
  );
  filter: blur(20px);
  opacity: .9;
  animation: rp-logo-orbit 9s linear infinite;
  z-index: 1;
}
/* ── Globe RabidPOS : logo sur fond blanc qui tourne (technique globe.tsx) ──
   La texture (logo) est répétée et balayée horizontalement via
   background-position → effet de planète qui tourne sur son axe, sans
   jamais retourner le logo. L'éclairage sphérique 3D est fait en
   box-shadow inset (highlight à gauche, terminator/ombre à droite). */
.rp-story-card-logo-globe {
  position: relative;
  z-index: 3;
  width: 158px; height: 158px;
  border-radius: 50%;
  background-color: #fff;
  background-image: url('/img/rabidpos-logo.webp');
  background-repeat: repeat-x;
  background-size: 158px 158px;       /* 1 logo = diamètre du globe */
  background-position: 0 center;
  box-shadow:
    0 0 24px rgba(212,175,55,.45),                 /* halo doré externe */
    -6px 0 10px rgba(255,255,255,.95) inset,       /* highlight bord gauche */
    18px 2px 26px rgba(0,0,0,.20) inset,           /* ombre douce droite */
    -26px -2px 34px rgba(255,255,255,.55) inset,   /* reflet haut-gauche */
    92px 0 52px rgba(0,0,0,.14) inset,             /* terminator (face cachée) */
    60px 0 38px rgba(0,0,0,.20) inset;
  animation: rp-globe-rotate 16s linear infinite;
}
@keyframes rp-globe-rotate {
  from { background-position: 0 center; }
  to   { background-position: -158px center; }     /* pan d'un tuile = boucle seamless */
}
.rp-story-card-logo-name {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  z-index: 3;
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 800;
  color: var(--rp-paper);
  letter-spacing: .35em;
  text-transform: uppercase;
  text-align: center;
}
.rp-story-card-logo-name span {
  display: block;
  font-size: 10px; font-weight: 600;
  color: var(--rp-or-soft);
  letter-spacing: .25em;
  margin-top: 6px;
  opacity: .9;
}
@keyframes rp-logo-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@media (max-width: 760px) {
  .rp-story-card-logo { width: 260px; height: 360px; border-radius: 18px; }
  .rp-story-card-logo::before { width: 240px; height: 240px; }
  .rp-story-card-logo-globe   { width: 130px; height: 130px; }
}
@media (max-width: 480px) {
  .rp-story-card-logo { width: 230px; height: 320px; }
  .rp-story-card-logo::before { width: 210px; height: 210px; }
  .rp-story-card-logo-globe   { width: 116px; height: 116px; }
  .rp-story-card-logo-name { font-size: 12px; }
}

/* ════════════════════════════════════════════════════════════════
   5. AVANT / APRÈS
   ════════════════════════════════════════════════════════════════ */
.rp-compare-section {
  background: linear-gradient(180deg, var(--rp-cream) 0%, #fff 100%);
  padding: 100px 0;
}
.rp-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 60px;
}
.rp-compare-side {
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--rp-line);
  background: var(--rp-paper);
}
.rp-compare-side.before {
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  border-color: #e5e7eb;
}
.rp-compare-side.after {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border-color: #bae6fd;
  box-shadow: 0 20px 60px rgba(0,119,182,.12);
}
.rp-compare-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  display: inline-block;
  margin-bottom: 18px;
}
.rp-compare-side.before .rp-compare-tag { background: #f4f4f5; color: #71717a; }
.rp-compare-side.after  .rp-compare-tag { background: #DBEAFE; color: #1D4ED8; }
.rp-compare-side h3 {
  font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--rp-navy);
  margin-bottom: 24px;
}
.rp-compare-list { list-style: none; padding: 0; margin: 0; }
.rp-compare-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--rp-ink-soft);
  font-size: 14.5px;
  border-bottom: 1px dashed var(--rp-line);
}
.rp-compare-list li:last-child { border-bottom: 0; }
.rp-compare-list li::before {
  position: absolute; left: 0; top: 10px;
  font-size: 18px; font-weight: 800;
  line-height: 1;
}
.rp-compare-side.before .rp-compare-list li::before { content: '×'; color: #ef4444; }
.rp-compare-side.after  .rp-compare-list li::before { content: '✓'; color: #10b981; }

.rp-compare-arrow {
  display: flex; align-items: center; justify-content: center;
}
.rp-compare-arrow svg {
  width: 48px; height: 48px;
  color: var(--rp-or);
  filter: drop-shadow(0 4px 8px rgba(212,175,55,.3));
}
@media (max-width: 880px) {
  .rp-compare-grid { grid-template-columns: 1fr; gap: 16px; }
  .rp-compare-arrow svg { transform: rotate(90deg); }
}

/* ════════════════════════════════════════════════════════════════
   6. MODES DE PAIEMENT (marquee)
   ════════════════════════════════════════════════════════════════ */
.rp-pay-section {
  background: var(--rp-navy);
  color: var(--rp-paper);
  padding: 80px 0;
  overflow: hidden;
}
.rp-pay-head { text-align: center; margin-bottom: 50px; }
.rp-pay-head .rp-eyebrow { color: var(--rp-or-soft); }
.rp-pay-head h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin-top: 14px;
  letter-spacing: -0.02em;
}
.rp-marquee {
  display: flex;
  gap: 60px;
  animation: rp-marquee 28s linear infinite;
  width: max-content;
}
.rp-marquee-item {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 16px;
}
.rp-marquee-item .rp-pay-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.rp-marquee-item .rp-pay-ico img { width: 100%; height: 100%; object-fit: contain; }
.rp-marquee-item .rp-pay-ico.cash { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.rp-marquee-item .rp-pay-ico.card { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; }
.rp-marquee-item .rp-pay-ico.debt { background: linear-gradient(135deg, var(--rp-or-soft), var(--rp-or-deep)); color: white; }
@keyframes rp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════════════
   7. FONCTIONNALITÉS
   ════════════════════════════════════════════════════════════════ */
.rp-features-section { background: var(--rp-paper); padding: 120px 0; }
.rp-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rp-feature {
  border: 1px solid var(--rp-line);
  border-radius: 18px;
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  background: var(--rp-paper);
  position: relative;
  overflow: hidden;
}
.rp-feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--rp-or), transparent);
  opacity: 0; transition: opacity .3s;
}
.rp-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15,23,42,.08);
  border-color: var(--rp-bleu);
}
.rp-feature:hover::before { opacity: 1; }
.rp-feature-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--rp-cream), var(--rp-sand));
  color: var(--rp-navy);
  margin-bottom: 18px;
}
.rp-feature h3 {
  font-family: 'Sora', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--rp-navy);
  margin-bottom: 8px;
}
.rp-feature p {
  font-size: 14px;
  color: var(--rp-ink-soft);
  line-height: 1.55;
}
@media (max-width: 1080px) { .rp-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .rp-features-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════
   8. TARIFS
   ════════════════════════════════════════════════════════════════ */
.rp-pricing-section { background: var(--rp-paper); padding: 120px 0; }
.rp-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px; margin: 0 auto;
}
.rp-price-card {
  border-radius: 22px;
  padding: 40px;
  position: relative;
  background: var(--rp-paper);
  border: 1.5px solid var(--rp-line);
  transition: transform .25s, box-shadow .25s;
}
.rp-price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15,23,42,.1); }
.rp-price-card.featured {
  background: linear-gradient(180deg, #0a1a35 0%, #1A2A48 100%);
  color: var(--rp-paper);
  border-color: var(--rp-or);
  box-shadow: 0 20px 50px rgba(15,23,42,.2);
}
.rp-price-card.featured::before {
  content: 'RECOMMANDÉ';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--rp-or-soft), var(--rp-or-deep));
  color: var(--rp-navy);
  font-size: 10px; font-weight: 800;
  letter-spacing: .15em;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(212,175,55,.4);
}
.rp-price-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 18px;
  color: var(--rp-navy);
  margin-bottom: 8px;
}
.rp-price-card.featured .rp-price-name { color: var(--rp-or-soft); }
.rp-price-tagline {
  font-size: 13px;
  color: var(--rp-ink-soft);
  margin-bottom: 24px;
}
.rp-price-card.featured .rp-price-tagline { color: rgba(255,255,255,.6); }
.rp-price-value {
  font-family: 'Sora', sans-serif;
  font-size: 44px; font-weight: 800;
  color: var(--rp-navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.rp-price-card.featured .rp-price-value { color: var(--rp-paper); }
.rp-price-suffix {
  font-size: 14px;
  color: var(--rp-ink-soft);
  margin-bottom: 32px;
}
.rp-price-card.featured .rp-price-suffix { color: rgba(255,255,255,.6); }
.rp-price-features { list-style: none; margin: 0 0 32px; padding: 0; }
.rp-price-features li {
  font-size: 14px;
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--rp-navy);
  border-bottom: 1px solid var(--rp-line);
}
.rp-price-features li:last-child { border-bottom: 0; }
.rp-price-features li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--rp-cream);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230077B6' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.rp-price-card.featured .rp-price-features li { color: rgba(255,255,255,.9); border-bottom-color: rgba(255,255,255,.08); }
.rp-price-card.featured .rp-price-features li::before {
  background: rgba(212,175,55,.2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.rp-price-card .rp-btn { width: 100%; }

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

/* ════════════════════════════════════════════════════════════════
   9. FAQ
   ════════════════════════════════════════════════════════════════ */
.rp-faq-section { background: var(--rp-cream); padding: 100px 0; }
.rp-faq-list { max-width: 780px; margin: 60px auto 0; }
.rp-faq-item {
  background: var(--rp-paper);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--rp-line);
  transition: box-shadow .2s, border-color .2s;
}
.rp-faq-item:hover { border-color: #cbd5e1; }
.rp-faq-item.open { box-shadow: 0 8px 24px rgba(15,23,42,.06); border-color: var(--rp-bleu); }
.rp-faq-q {
  width: 100%; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: none; border: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--rp-navy);
  text-align: left;
  cursor: pointer;
}
.rp-faq-q svg { flex-shrink: 0; transition: transform .25s; color: var(--rp-ink-soft); }
.rp-faq-item.open .rp-faq-q svg { transform: rotate(45deg); color: var(--rp-bleu); }
.rp-faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  color: var(--rp-ink-soft);
  font-size: 15px;
  line-height: 1.65;
}
.rp-faq-item.open .rp-faq-a { max-height: 240px; padding: 0 24px 22px; }

/* ════════════════════════════════════════════════════════════════
   10. CTA FINAL
   ════════════════════════════════════════════════════════════════ */
.rp-cta-section { padding: 0; background: var(--rp-paper); }
.rp-cta-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(212,175,55,.25) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,119,182,.18) 0%, transparent 50%),
    linear-gradient(180deg, #0a1a35 0%, #1A2A48 100%);
  color: var(--rp-paper);
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rp-cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
}
.rp-cta-eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--rp-or-soft);
  margin-bottom: 24px;
}
.rp-cta-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.rp-cta-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--rp-or-soft), var(--rp-or));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.rp-cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
}
.rp-cta-banner .rp-btn { padding: 18px 32px; font-size: 16px; }

/* ════════════════════════════════════════════════════════════════
   Scroll reveal (utilise .rp-reveal pour ne pas conflicter
   avec le .reveal existant dans rabidpos.js)
   ════════════════════════════════════════════════════════════════ */
.rp-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.6,.3,1), transform .8s cubic-bezier(.2,.6,.3,1);
}
.rp-reveal.on { opacity: 1; transform: translateY(0); }

/* ── Préférences accessibilité ── */
@media (prefers-reduced-motion: reduce) {
  .rp-marquee,
  .rp-story-card-logo::before, .rp-story-card-logo::after,
  .rp-story-card-logo-globe,
  .rp-hero-aurora, .rp-hero-scroll-wheel {
    animation-duration: 0.001ms !important;
  }
}