/* =====================================================================
   SAHLA FACILITÉ — Design System v3 « Bleu Roi & Or »
   Thème clair, bilingue FR/AR (RTL), mobile-first, sans dépendance build.
   Signature visuelle : l'étoile à 8 branches (khatam) — motif, logo, 3D.
   ===================================================================== */

:root {
  /* Bleu roi */
  --royal-950: #07123F;
  --royal-900: #0A1A5C;
  --royal-800: #10247A;
  --royal-700: #1733A6;
  --royal-600: #1F43C8;
  --royal-500: #3A5EE0;
  --royal-300: #9DB1F5;
  --royal-100: #E6ECFD;
  --royal-50:  #F4F7FF;
  /* Or (touche) */
  --gold-700: #8F6A1C;
  --gold-600: #B8892A;
  --gold-500: #D4A537;
  --gold-300: #EBCB7A;
  --gold-100: #FBF3DE;
  /* Encre & lignes */
  --ink-900: #0D1533;
  --ink-700: #2A3457;
  --ink-600: #4A5578;
  --ink-400: #8590B0;
  --line: #DCE3F5;
  --line-soft: #EBF0FB;
  --white: #FFFFFF;
  /* Sémantique */
  --success: #0F8A5F;
  --success-bg: #E5F6EF;
  --danger: #C62D3A;
  --danger-bg: #FDECEE;
  --warning-bg: #FFF6E0;

  /* Compatibilité avec les anciennes vues */
  --primary: var(--royal-600);
  --primary-light: var(--royal-500);
  --primary-dark: var(--royal-800);
  --secondary: var(--gold-500);
  --text: var(--ink-900);
  --text-light: var(--ink-600);
  --text-secondary: var(--ink-600);
  --bg: var(--royal-50);
  --bg-alt: var(--white);
  --border: var(--line);
  --brand-primary: var(--royal-600);
  --brand-gold: var(--gold-500);
  --brand-bg-main: var(--royal-50);
  --card-glass-border: var(--line);

  --font-display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 51, .06), 0 1px 1px rgba(13, 21, 51, .04);
  --shadow: 0 10px 30px -12px rgba(16, 36, 122, .22), 0 2px 6px rgba(13, 21, 51, .05);
  --shadow-lg: 0 30px 60px -20px rgba(16, 36, 122, .35), 0 8px 20px -8px rgba(13, 21, 51, .12);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%231F43C8' stroke-opacity='.07' stroke-width='1.2'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--royal-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { line-height: 1.85; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--royal-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-300); color: var(--ink-900); }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 200; background: var(--royal-700); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-900); line-height: 1.18; letter-spacing: -0.015em; font-weight: 600; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.4; }
.num, .font-mono-tech, .tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: 760px; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; }
.section-alt { background: var(--white); border-block: 1px solid var(--line-soft); }
.section-royal { background: linear-gradient(160deg, var(--royal-800), var(--royal-950)); color: #E8EDFF; }
.section-royal h2, .section-royal h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .6rem; }
.section-subtitle, .lead { color: var(--ink-600); font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 62ch; }
.section-head.center .section-subtitle { margin-inline: auto; }
.section .section-title + .section-subtitle { margin-bottom: 2.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--royal-700); margin-bottom: .9rem; }
.eyebrow .star-dot { width: 14px; height: 14px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.muted { color: var(--ink-600); }
.gold { color: var(--gold-700); }

/* ---------- Typo display (compat) ---------- */
.heading-display-1, .page-hero-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.1; color: var(--ink-900); }
.heading-display-2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 600; }
.text-gradient-primary { color: var(--royal-600); }
.text-gradient-vip { color: var(--gold-600); }
.label-caps { font-size: .78rem; font-weight: 600; color: var(--gold-700); }
.font-display { font-family: var(--font-display); }

/* ---------- Boutons ---------- */
.btn, .btn-primary, .btn-gold, .btn-vip, .btn-secondary, .btn-outline, .btn-glass, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.35rem; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:active, .btn-primary:active, .btn-gold:active, .btn-vip:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--royal-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(31, 67, 200, .65); }
.btn-primary:hover { background: var(--royal-700); transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(31, 67, 200, .7); }
.btn-gold, .btn-vip, .btn-secondary { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--royal-950); border-color: var(--gold-500); box-shadow: 0 8px 20px -10px rgba(184, 137, 42, .8); }
.btn-gold:hover, .btn-vip:hover, .btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(184, 137, 42, .85); }
.btn-outline, .btn-glass { background: var(--white); color: var(--royal-700); border-color: var(--line); }
.btn-outline:hover, .btn-glass:hover { border-color: var(--royal-500); color: var(--royal-800); background: var(--royal-50); }
.btn-ghost { background: transparent; color: var(--royal-700); }
.btn-ghost:hover { background: var(--royal-100); }
.section-royal .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.section-royal .btn-outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-lg { min-height: 54px; padding: .9rem 1.8rem; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: .45rem .9rem; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
button[disabled], .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
[dir="rtl"] .i-flip { transform: scaleX(-1); }

/* ---------- Cartes ---------- */
.card, .card-glass, .glass, .product-card-glass, .step-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.5rem; position: relative;
}
.card-hover { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--royal-300); }
.card-gold { border-color: var(--gold-300); background: linear-gradient(180deg, #fff, var(--gold-100)); }
.card-royal { background: linear-gradient(150deg, var(--royal-700), var(--royal-900)); color: #E8EDFF; border: 0; }
.card-royal h3, .card-royal h4 { color: #fff; }

/* ---------- Badges ---------- */
.badge, .badge-electric, .badge-vip, .badge-success {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; line-height: 1.3;
}
.badge-electric, .badge { background: var(--royal-100); color: var(--royal-800); }
.badge-vip { background: var(--gold-100); color: var(--gold-700); border: 1px solid var(--gold-300); }
.badge-success { background: var(--success-bg); color: var(--success); }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-700); margin-bottom: .4rem; }
.form-input, select.form-input, textarea.form-input {
  width: 100%; min-height: 48px; padding: .7rem .95rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink-900);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder { color: var(--ink-400); }
.form-input:hover { border-color: var(--royal-300); }
.form-input:focus { outline: none; border-color: var(--royal-600); box-shadow: 0 0 0 4px rgba(31, 67, 200, .14); }
.form-input[readonly], .form-input:disabled { background: var(--royal-50); color: var(--ink-600); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5578' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-inline-end: 2.5rem; }
[dir="rtl"] select.form-input { background-position: left 1rem center; }
.form-error { color: var(--danger); font-size: .85rem; margin-top: .35rem; font-weight: 500; }
.form-hint { color: var(--ink-600); font-size: .84rem; margin-top: .35rem; }

input[type="range"].range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: var(--royal-100); cursor: pointer; }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 3px solid var(--royal-600); box-shadow: 0 4px 10px rgba(31,67,200,.35); }
input[type="range"].range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--royal-600); }

/* ---------- Wizard ---------- */
.ui-wizard-progress { display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; max-width: 520px; }
.ui-wizard-step { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.wizard-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: .95rem; border: 2px solid var(--line); background: var(--white); color: var(--ink-400); transition: all .3s var(--ease); }
.wizard-dot.active { background: var(--royal-600); border-color: var(--royal-600); color: #fff; box-shadow: 0 0 0 6px rgba(31,67,200,.15); }
.wizard-dot.completed { background: var(--gold-500); border-color: var(--gold-500); color: var(--royal-950); }
.wizard-line { flex: 1; height: 3px; background: var(--line); margin-inline: .4rem; border-radius: 3px; min-width: 24px; }
.wizard-line.completed { background: var(--gold-500); }
.wizard-page { padding-block: clamp(2rem, 5vw, 4rem); }
.wizard-page .card-glass { padding: clamp(1.4rem, 4vw, 2.5rem) !important; box-shadow: var(--shadow); }
@media (max-width: 560px) {
  .wizard-page .grid-2 { grid-template-columns: 1fr; }
  .wizard-page [style*="justify-content: space-between"] { gap: .75rem; }
}

/* ---------- En-tête ---------- */
.topbar { background: var(--royal-900); color: #DCE4FF; font-size: .86rem; padding: .5rem 0; text-align: center; }
.topbar a { color: var(--gold-300); font-weight: 600; }
.navbar { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line-soft); transition: box-shadow .3s; }
.navbar.is-scrolled { box-shadow: 0 8px 24px -16px rgba(16,36,122,.35); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--royal-800); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--gold-600); font-weight: 700; }
.nav-links { display: none; list-style: none; gap: .25rem; align-items: center; }
.nav-links a { display: inline-flex; align-items: center; padding: .55rem .8rem; border-radius: 10px; color: var(--ink-700); font-weight: 500; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--royal-50); color: var(--royal-700); }
.nav-links a[aria-current="page"] { color: var(--royal-700); background: var(--royal-100); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-actions .nav-desktop { display: none; }
.mobile-toggle { width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--royal-800); font-size: 1.15rem; cursor: pointer; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-actions .nav-desktop { display: inline-flex; }
  .mobile-toggle { display: none; }
}
.lang-switch-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .8rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-700); font-weight: 600; font-size: .88rem; cursor: pointer; transition: border-color .2s; }
.lang-switch-btn:hover { border-color: var(--royal-500); color: var(--royal-700); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: rgba(7, 18, 63, .45); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-drawer { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(86vw, 340px); background: var(--white); padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .35s var(--ease); overflow-y: auto; }
[dir="rtl"] .mobile-drawer { transform: translateX(100%); }
.mobile-menu.open .mobile-drawer { transform: none; }
.mobile-drawer-links { list-style: none; display: grid; gap: .25rem; }
.mobile-drawer-links a { display: flex; align-items: center; gap: .8rem; padding: .85rem .9rem; border-radius: 12px; color: var(--ink-900); text-decoration: none; font-weight: 500; }
.mobile-drawer-links a:hover, .mobile-drawer-links a[aria-current="page"] { background: var(--royal-50); color: var(--royal-700); }
.mobile-drawer-links i { width: 20px; text-align: center; color: var(--royal-600); }

.flash { padding: .9rem 1rem; text-align: center; font-weight: 600; }
.flash-success { background: var(--success-bg); color: var(--success); }
.flash-error { background: var(--danger-bg); color: var(--danger); }

/* ---------- Héros public (pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); background: linear-gradient(180deg, var(--white), var(--royal-50)); border-bottom: 1px solid var(--line-soft); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--star); opacity: .9; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
[dir="rtl"] .page-hero::before { mask-image: linear-gradient(-90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(-90deg, transparent, #000 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 22ch; }
.page-hero p { color: var(--ink-600); margin-top: .8rem; max-width: 60ch; font-size: 1.05rem; }
.crumbs { font-size: .85rem; color: var(--ink-600); margin-bottom: .9rem; }
.crumbs a { color: var(--ink-600); text-decoration: none; }

/* ---------- Héros 3D accueil ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 20%, rgba(58,94,224,.14), transparent 60%), linear-gradient(180deg, #fff 0%, var(--royal-50) 100%); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--star); mask-image: radial-gradient(70% 80% at 80% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 80% at 80% 40%, #000, transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.hero h1 { font-size: clamp(2.15rem, 5.6vw, 3.9rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; max-width: 15ch; }
[dir="rtl"] .hero h1 { line-height: 1.3; letter-spacing: 0; }
.hero h1 .royal { color: var(--royal-600); }
.hero-sub { margin-top: 1.1rem; font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: var(--ink-600); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.75rem; list-style: none; color: var(--ink-700); font-size: .93rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts i { color: var(--gold-600); }

.hero-stage { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; }
.hero-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-fallback { position: absolute; inset: 8%; display: grid; place-items: center; }
.hero-fallback svg { width: 78%; height: auto; animation: spin-slow 40s linear infinite; filter: drop-shadow(0 30px 40px rgba(16,36,122,.25)); }
.hero-stage.is-3d .hero-fallback { opacity: 0; transition: opacity .6s; }
.plan-card { position: absolute; inset-inline-end: 0; bottom: 6%; width: min(290px, 78%); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1rem 1.1rem; z-index: 2; }
.plan-card .pc-label { font-size: .8rem; color: var(--ink-600); }
.plan-card .pc-name { font-weight: 600; font-family: var(--font-display); font-size: .98rem; margin-top: .1rem; }
.plan-card .pc-amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--royal-700); line-height: 1.1; margin-top: .45rem; }
.plan-card .pc-amount small { font-size: .9rem; font-weight: 500; color: var(--ink-600); }
.plan-card .pc-bar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: .7rem; }
.plan-card .pc-bar span { height: 6px; border-radius: 3px; background: var(--royal-100); }
.plan-card .pc-bar span.paid { background: var(--gold-500); }
.plan-card .pc-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-600); margin-top: .5rem; }
.trust-chip { position: absolute; inset-inline-start: 0; top: 10%; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .85rem; border-radius: 999px; background: var(--white); border: 1px solid var(--gold-300); box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; color: var(--gold-700); }

/* ---------- Bandeau banques ---------- */
.banks { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.banks span { padding: .55rem 1rem; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-family: var(--font-display); color: var(--ink-700); font-size: .92rem; }
.banks-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.85rem; }
.bank-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 58px;
  box-shadow: 0 2px 6px rgba(16, 36, 122, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bank-card:hover {
  transform: translateY(-2px);
  border-color: var(--royal-400);
  box-shadow: 0 6px 14px rgba(16, 36, 122, 0.08);
}
.bank-card img {
  max-height: 40px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Étapes ---------- */
.steps { list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.3rem 1.3rem; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; top: 1.2rem; inset-inline-end: 1.2rem; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--royal-100); line-height: 1; }
.steps .s-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--royal-600); color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.steps li:last-child .s-icon { background: var(--gold-500); color: var(--royal-950); }
.steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.steps p { color: var(--ink-600); font-size: .94rem; }

/* ---------- Règles / chiffres ---------- */
.rules { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .rules { grid-template-columns: repeat(4, 1fr); } }
.rule { padding: 1.25rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.rule .r-val { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--gold-300); line-height: 1.1; }
.rule .r-lbl { margin-top: .35rem; font-size: .92rem; color: #C9D3FA; }

/* ---------- Produits ---------- */
.p-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; transform-style: preserve-3d; }
.p-card:hover { box-shadow: var(--shadow); border-color: var(--royal-300); }
.p-media { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, #fff, var(--royal-50) 70%); display: grid; place-items: center; overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.p-media.contain img { object-fit: contain; padding: 6%; }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-media .p-ph { font-size: 2.6rem; color: var(--royal-300); }
.p-tag { position: absolute; top: .75rem; inset-inline-start: .75rem; }
.p-body { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.p-cat { font-size: .8rem; color: var(--ink-600); }
.p-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.35; color: var(--ink-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-desc { font-size: .88rem; color: var(--ink-600); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-price-row { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem; }
.p-price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink-900); }
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink-900); }
.p-monthly, .product-monthly { display: inline-flex; align-items: baseline; gap: .25rem; padding: .25rem .6rem; border-radius: 8px; background: var(--gold-100); color: var(--gold-700); font-weight: 600; font-size: .85rem; }
.p-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }
.p-actions .btn-primary, .p-actions .btn-outline { min-height: 42px; padding-inline: .6rem; font-size: .88rem; }

/* Catalogue */
.catalog { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 260px 1fr; align-items: start; } }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem; }
@media (min-width: 1024px) { .filters { position: sticky; top: 88px; } }
.filters .form-group:last-child { margin-bottom: 0; }
.filters-row { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 560px) and (max-width: 1023px) { .filters-row { grid-template-columns: 2fr 1fr 1fr; } .filters .form-group { margin-bottom: 0; } }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-700); font-weight: 500; font-size: .9rem; cursor: pointer; }
.chip.active, .chip[aria-pressed="true"] { background: var(--royal-600); border-color: var(--royal-600); color: #fff; }
.p-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.result-count { color: var(--ink-600); font-size: .9rem; margin-bottom: .9rem; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--ink-600); }
.empty i { font-size: 2rem; color: var(--royal-300); margin-bottom: .6rem; display: block; }

/* Pagination Laravel */
nav[role="navigation"] { margin-top: 2rem; }
nav[role="navigation"] svg { width: 18px; height: 18px; }
nav[role="navigation"] > div:first-child { display: flex; justify-content: space-between; gap: .5rem; }
nav[role="navigation"] a, nav[role="navigation"] span[aria-current] span, nav[role="navigation"] span[aria-disabled] span { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .8rem; border: 1px solid var(--line); background: var(--white); border-radius: 10px; color: var(--ink-700); text-decoration: none; font-size: .9rem; }
nav[role="navigation"] .hidden { display: none; }
@media (min-width: 640px) { nav[role="navigation"] .sm\:flex-1, nav[role="navigation"] .sm\:hidden { display: none; } nav[role="navigation"] .hidden.sm\:flex-1 { display: flex; flex: 1; align-items: center; justify-content: space-between; } }

/* ---------- Simulateur ---------- */
.sim { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .sim { grid-template-columns: 1.1fr .9fr; } }
.sim-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.sim-field + .sim-field { margin-top: 1.6rem; }
.sim-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .6rem; }
.sim-field-head .val { font-family: var(--font-display); font-weight: 700; color: var(--royal-700); font-size: 1.05rem; }
.ticks { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-400); margin-top: .4rem; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: .45rem; }
.seg button { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-700); font-family: var(--font-display); font-weight: 600; cursor: pointer; transition: all .2s var(--ease); }
.seg button:hover { border-color: var(--royal-300); }
.seg button[aria-pressed="true"] { background: var(--royal-600); border-color: var(--royal-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(31,67,200,.8); }
.opt { display: flex; gap: .9rem; align-items: center; justify-content: space-between; padding: 1rem; border: 1.5px solid var(--line); border-radius: 14px; margin-top: 1.4rem; cursor: pointer; }
.opt input { width: 22px; height: 22px; accent-color: var(--royal-600); flex: none; }
.sim-result { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--royal-700), var(--royal-950)); color: #E8EDFF; border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-lg); }
@media (min-width: 960px) { .sim-result { position: sticky; top: 90px; } }
.sim-result::after { content: ""; position: absolute; width: 260px; height: 260px; inset-inline-end: -80px; top: -80px; background: var(--star); background-size: 52px; opacity: .9; filter: invert(1); mix-blend-mode: screen; pointer-events: none; }
.sim-result .lbl { font-size: .9rem; color: #C9D3FA; }
.sim-result .big { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 700; color: #fff; line-height: 1.05; margin-top: .3rem; }
.sim-result .big small { font-size: 1rem; color: var(--gold-300); font-weight: 600; }
.sim-result .per { color: #C9D3FA; font-size: .92rem; margin-top: .2rem; }
.split { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 1.3rem 0 .6rem; background: rgba(255,255,255,.12); }
.split span { display: block; height: 100%; transition: width .5s var(--ease); }
.split .s-apport { background: #7FE3BE; } .split .s-fin { background: var(--royal-300); } .split .s-marge { background: var(--gold-500); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: #C9D3FA; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: .35rem; vertical-align: -1px; }
.breakdown { margin-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: .9rem; display: grid; gap: .5rem; font-size: .94rem; }
.breakdown div { display: flex; justify-content: space-between; gap: 1rem; }
.breakdown dt { color: #C9D3FA; } .breakdown dd { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.breakdown .total { border-top: 1px solid rgba(255,255,255,.14); padding-top: .7rem; margin-top: .2rem; font-size: 1.02rem; }
.breakdown .total dd { color: var(--gold-300); }
.sim-note { margin-top: 1rem; font-size: .82rem; color: #AFBCEB; }

/* ---------- Fidélité ---------- */
.tier-bar { height: 10px; border-radius: 99px; background: var(--royal-100); overflow: hidden; }
.tier-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); border-radius: 99px; }
.tiers { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-600); margin-top: .45rem; }
.tiers .on { color: var(--gold-700); font-weight: 600; }
.gift-points { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--gold-700); font-family: var(--font-display); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.2rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 600; font-family: var(--font-display); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--royal-600); line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; color: var(--ink-600); }

/* ---------- Modale ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(7, 18, 63, .55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 1rem; }
.modal { position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-top { height: 6px; background: linear-gradient(90deg, var(--royal-600), var(--gold-500)); }
.modal-body { padding: 1.6rem 1.5rem 1.5rem; }
.modal-close { position: absolute; top: .8rem; inset-inline-end: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--royal-50); color: var(--ink-700); cursor: pointer; font-size: 1.05rem; }
.modal-close:hover { background: var(--royal-100); }

/* ---------- Pied de page ---------- */
.footer { background: var(--royal-950); color: #B7C3EE; padding-block: 3.5rem 1.5rem; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background-image: var(--star); filter: invert(1); opacity: .35; pointer-events: none; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.footer .container { position: relative; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer .brand { color: #fff; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer a { color: #B7C3EE; text-decoration: none; }
.footer a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--gold-500); color: var(--royal-950); }

/* Bouton WhatsApp flottant */
.fab-wa { position: fixed; bottom: 1rem; inset-inline-end: 1rem; z-index: 70; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1FA855; color: #fff; font-size: 1.6rem; box-shadow: 0 12px 24px -8px rgba(31,168,85,.7); text-decoration: none; }

/* ---------- Mouvements ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.tilt { transform-style: preserve-3d; will-change: transform; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes float-y { 50% { transform: translateY(-8px); } }
.anim-float { animation: float-y 6s ease-in-out infinite; }
.fx-fade-up { animation: fade-up .7s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
/* Ambient Glows */
.ambient-glow-blue, .ambient-glow-purple, .ambient-glow-gold { display: block !important; }

/* Partner Logo Wrapper */
.partner-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.partner-logo-wrapper:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(245,166,35,0.35);
  box-shadow: 0 0 20px rgba(245,166,35,0.12);
}
.partner-logo-wrapper .partner-badge-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748B;
}
.partner-logo-wrapper .partner-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.1);
}
.partner-logo-wrapper .partner-logo-img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.partner-logo-wrapper:hover .partner-logo-img {
  opacity: 1;
}
.partner-logo-wrapper .partner-name-fallback {
  font-size: 0.88rem;
  font-weight: 800;
  color: #F5A623;
  text-shadow: 0 0 12px rgba(245,166,35,0.5);
}
@media (max-width: 991px) {
  .partner-logo-wrapper { display: none; }
}

/* VIP Progression Bar */
.vip-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.vip-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #F5A623, #FBBF24, #F59E0B);
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.6);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Text Gradients */
.text-gradient-primary {
  background: linear-gradient(135deg, #4F6EF7 0%, #A78BFA 60%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.text-gradient-vip {
  background: linear-gradient(135deg, #F5A623 0%, #F43F5E 70%, #E8006A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.text-gradient-gold {
  background: linear-gradient(135deg, #FCD34D 0%, #F5A623 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glass & Kinetic Enhancements */
.card-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-glass:hover {
  border-color: rgba(245, 166, 35, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(79, 110, 247, 0.15);
}

.badge-electric {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(79, 110, 247, 0.16);
  border: 1px solid rgba(79, 110, 247, 0.4);
  color: #708BF9;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.anim-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(79, 110, 247, 0.3); }
  50% { box-shadow: 0 0 25px rgba(124, 58, 237, 0.5); }
}

.bg-aurora {
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.08) 0%, rgba(124, 58, 237, 0.12) 50%, rgba(245, 166, 35, 0.06) 100%);
  background-size: 200% 200%;
  animation: aurora-shift 12s ease infinite;
}
@keyframes aurora-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.page-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.page-hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: #94A3B8;
  max-width: 65ch;
  line-height: 1.65;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Divers compat ---------- */
.hero-badge { display: inline-flex; padding: .3rem .8rem; border-radius: 999px; background: var(--royal-100); color: var(--royal-800); font-weight: 600; font-size: .85rem; margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; }
.table { width: 100%; font-size: .92rem; }
.table th, .table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line-soft); text-align: start; }
.table th { color: var(--ink-600); font-weight: 600; font-size: .82rem; }

