/* ============================================================
   SOUK EL TAJIR — Design System
   Theme: Deep Navy + Gold | RTL Arabic + LTR French
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-950: #030712; --navy-900: #0a1628; --navy-800: #0f2044;
  --navy-700: #1a3a6b; --navy-600: #1e4db7; --navy-500: #2563eb;
  --gold-400: #fbbf24; --gold-500: #f59e0b; --gold-600: #d97706;
  --emerald: #10b981; --rose: #f43f5e; --violet: #7c3aed; --cyan: #06b6d4;
  --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-400: #94a3b8;
  --slate-500: #64748b; --slate-700: #334155; --slate-800: #1e293b;
  --white: #ffffff;
  --font-ar: 'Cairo', 'Tajawal', sans-serif;
  --font-en: 'Inter', sans-serif;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.12);
  --shadow-md: 0 8px 30px rgba(0,0,0,.18);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.28);
  --shadow-gold: 0 8px 30px rgba(245,158,11,.25);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font-ar);
  line-height: 1.7;
  overflow-x: hidden;
}
body[data-lang="fr"] { font-family: var(--font-en); direction: ltr; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(60px); } to { opacity:1; transform:translateX(0); } }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }
@keyframes pulse-ring { 0%{transform:scale(.9);opacity:.7;} 100%{transform:scale(1.3);opacity:0;} }
@keyframes shimmer { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }
@keyframes countUp { from{opacity:0;} to{opacity:1;} }
@keyframes orb-drift { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(30px,-20px) scale(1.08);} 66%{transform:translate(-20px,15px) scale(.95);} }

.animate-fade-up { animation: fadeUp .7s ease both; }
.animate-fade-up-delay-1 { animation: fadeUp .7s .15s ease both; }
.animate-fade-up-delay-2 { animation: fadeUp .7s .3s ease both; }
.animate-fade-up-delay-3 { animation: fadeUp .7s .45s ease both; }
.animate-fade-up-delay-4 { animation: fadeUp .7s .6s ease both; }
.animate-slide-in { animation: slideInRight .9s .3s ease both; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .6rem 1.4rem; border-radius: var(--radius-sm);
  font-family: inherit; font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer; transition: var(--transition);
  white-space: normal; text-align: center; line-height: 1.4;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.5); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-ghost-sm { background: transparent; color: var(--gold-400); font-size:.85rem; padding:.4rem .8rem; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn-white { background: #fff; color: var(--navy-900); font-weight: 700; }
.btn-white:hover { background: var(--gold-400); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }
.btn-danger { background: var(--rose); color: #fff; }
.btn-success { background: var(--emerald); color: #fff; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(3,7,18,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(3,7,18,.97); }
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem; height: 70px;
}
.nav-logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.logo-icon { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-ar { font-size: 1.05rem; font-weight: 800; color: var(--gold-400); letter-spacing: -.02em; }
.logo-fr { font-size: .65rem; color: var(--slate-400); font-family: var(--font-en); letter-spacing: .05em; }
.nav-links { display: flex; align-items: center; gap: .25rem; flex: 1; justify-content: center; }
.nav-link { padding: .45rem .9rem; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 500; color: var(--slate-400); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.lang-switcher { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.07); border-radius: 20px; padding: 3px 8px; }
.lang-btn { background: none; border: none; color: var(--slate-400); font-size: .78rem; font-weight: 700; cursor: pointer; padding: 2px 5px; border-radius: 12px; transition: var(--transition); }
.lang-btn.active { background: var(--gold-500); color: var(--navy-950); }
.lang-divider { color: rgba(255,255,255,.2); font-size: .7rem; }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; background: var(--navy-900); padding: 1rem 2rem 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.mobile-menu.open { display: flex; }
.mobile-link { padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--slate-400); font-size: .95rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 2rem 80px;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35;
  animation: orb-drift 12s ease-in-out infinite;
}
.hero-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--navy-600), transparent); top: -200px; right: -150px; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--gold-600), transparent); bottom: -100px; left: 10%; opacity: .2; animation-delay: -4s; }
.hero-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, var(--violet), transparent); top: 30%; left: 40%; opacity: .15; animation-delay: -8s; }
.hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-container {
  max-width: 600px; position: relative; z-index: 1;
  margin: 0 auto 0 5%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3);
  border-radius: 100px; padding: .4rem 1rem; font-size: .82rem; color: var(--gold-400);
  margin-bottom: 1.5rem;
}
.badge-dot { width: 7px; height: 7px; background: var(--gold-400); border-radius: 50%; animation: pulse-ring 1.5s ease-in-out infinite; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.2; margin-bottom: 1.25rem; }
.title-line { display: block; }
.title-line.highlight { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.05rem; color: var(--slate-400); max-width: 520px; margin-bottom: 2rem; line-height: 1.8; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--slate-400); }
/* Hero Visual */
.hero-visual {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: min(480px, 42vw); z-index: 1;
}
.dashboard-preview {
  background: var(--navy-900); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.05);
}
.preview-bar { background: var(--navy-800); padding: .6rem 1rem; display: flex; align-items: center; gap: .4rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red{background:#f87171;} .dot.yellow{background:#fbbf24;} .dot.green{background:#34d399;}
.preview-url { font-family: var(--font-en); font-size: .7rem; color: var(--slate-500); margin: 0 auto; background: rgba(255,255,255,.05); padding: .2rem .8rem; border-radius: 30px; }
.preview-content { padding: 1rem; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.preview-greeting { font-size: .85rem; font-weight: 700; }
.preview-date { font-size: .7rem; color: var(--slate-500); }
.preview-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin-bottom: .75rem; }
.preview-stat { padding: .6rem; border-radius: var(--radius-sm); }
.preview-stat.blue{background:rgba(37,99,235,.2);border:1px solid rgba(37,99,235,.3);}
.preview-stat.green{background:rgba(16,185,129,.15);border:1px solid rgba(16,185,129,.25);}
.preview-stat.amber{background:rgba(245,158,11,.15);border:1px solid rgba(245,158,11,.25);}
.stat-label { font-size: .62rem; color: var(--slate-400); margin-bottom: .2rem; }
.stat-value { font-size: .82rem; font-weight: 700; }
.stat-change { font-size: .6rem; }
.stat-change.positive{color:var(--emerald);} .stat-change.neutral{color:var(--slate-400);}
.preview-chart { margin-bottom: .75rem; }
.chart-bars { display: flex; align-items: flex-end; gap: 5px; height: 60px; }
.chart-bar { flex: 1; background: rgba(37,99,235,.3); border-radius: 4px 4px 0 0; transition: var(--transition); position: relative; }
.chart-bar.active { background: linear-gradient(to top, var(--navy-500), var(--gold-500)); }
.bar-label { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: .55rem; color: var(--slate-500); }
.preview-orders { display: flex; flex-direction: column; gap: .4rem; }
.preview-order { display: flex; align-items: center; gap: .6rem; padding: .4rem; background: rgba(255,255,255,.04); border-radius: var(--radius-sm); }
.order-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,var(--navy-600),var(--violet)); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.order-name { font-size: .72rem; font-weight: 600; }
.order-meta { font-size: .6rem; color: var(--slate-500); }
.order-badge { font-size: .58rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; flex-shrink: 0; }
.order-badge.confirmed{background:rgba(16,185,129,.2);color:#34d399;border:1px solid rgba(16,185,129,.3);}
.order-badge.pending{background:rgba(245,158,11,.2);color:#fbbf24;border:1px solid rgba(245,158,11,.3);}
/* Floating cards */
.float-card {
  position: absolute; background: var(--navy-800); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md); padding: .7rem 1rem; display: flex; align-items: center; gap: .6rem;
  box-shadow: var(--shadow-md); animation: float 4s ease-in-out infinite;
  min-width: 160px;
}
.float-card-1 { bottom: -20px; left: -40px; animation-delay: 0s; }
.float-card-2 { top: -20px; left: -30px; animation-delay: -2s; }
.float-card-3 { top: 38%; right: -35px; animation-delay: -1s; }
.float-icon { font-size: 1.3rem; }
.float-num { font-size: .88rem; font-weight: 800; color: var(--gold-400); }
.float-label { font-size: .62rem; color: var(--slate-400); }

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); padding: 2.5rem 2rem; }
.stats-container { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-around; align-items: center; gap: 2rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 900; color: var(--gold-400); font-family: var(--font-en); }
.stat-item .stat-label { font-size: .85rem; color: var(--slate-400); margin-top: .25rem; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,.1); }

/* ── Sections shared ──────────────────────────────────────── */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge { display: inline-block; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25); color: var(--gold-400); font-size: .8rem; font-weight: 700; padding: .35rem 1rem; border-radius: 100px; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: .75rem; line-height: 1.3; }
.section-subtitle { font-size: 1rem; color: var(--slate-400); max-width: 560px; margin: 0 auto; }

/* ── Features ─────────────────────────────────────────────── */
.features { padding: 6rem 2rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 1.25rem; }
.feature-card {
  background: var(--navy-900); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,.25); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.feature-card-large { grid-column: span 2; }
.feature-icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.feature-icon-wrap.blue{background:rgba(37,99,235,.2);color:#60a5fa;}
.feature-icon-wrap.green{background:rgba(16,185,129,.15);color:#34d399;}
.feature-icon-wrap.amber{background:rgba(245,158,11,.15);color:#fbbf24;}
.feature-icon-wrap.purple{background:rgba(124,58,237,.15);color:#a78bfa;}
.feature-icon-wrap.red{background:rgba(244,63,94,.15);color:#fb7185;}
.feature-icon-wrap.cyan{background:rgba(6,182,212,.15);color:#22d3ee;}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .87rem; color: var(--slate-400); line-height: 1.7; }
.feature-tag { display: inline-block; margin-top: .85rem; background: rgba(245,158,11,.12); color: var(--gold-400); font-size: .72rem; font-weight: 700; padding: .25rem .75rem; border-radius: 20px; border: 1px solid rgba(245,158,11,.25); }

/* ── How it works ─────────────────────────────────────────── */
.how-it-works { padding: 5rem 2rem; background: var(--navy-900); }
.steps-grid { display: flex; align-items: center; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.step-card { background: var(--navy-950); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 2rem 1.5rem; max-width: 280px; text-align: center; transition: var(--transition); }
.step-card:hover { border-color: rgba(245,158,11,.3); transform: translateY(-4px); }
.step-num { font-family: var(--font-en); font-size: 3rem; font-weight: 900; color: rgba(245,158,11,.15); line-height: 1; margin-bottom: .5rem; }
.step-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; }
.step-card p { font-size: .85rem; color: var(--slate-400); line-height: 1.7; }
.step-arrow { font-size: 1.8rem; color: var(--gold-500); opacity: .5; margin-top: -1.5rem; }

/* ── Categories ───────────────────────────────────────────── */
.categories { padding: 5rem 2rem; }
.categories .section-header { display: flex; justify-content: space-between; align-items: center; text-align: right; margin-bottom: 2rem; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.category-card {
  background: var(--navy-900); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md); padding: 1.5rem 1rem; text-align: center;
  transition: var(--transition); cursor: pointer;
}
.category-card:hover { border-color: rgba(245,158,11,.3); background: var(--navy-800); transform: translateY(-3px); }
.category-card-more { border-style: dashed; background: transparent; }
.cat-emoji { font-size: 2.2rem; margin-bottom: .6rem; }
.cat-name { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.cat-count { font-size: .75rem; color: var(--slate-500); }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials { padding: 5rem 2rem; background: var(--navy-900); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial-card {
  background: var(--navy-950); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); }
.featured-testimonial { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.04); }
.testimonial-stars { color: var(--gold-400); font-size: 1rem; margin-bottom: .75rem; letter-spacing: 2px; }
.testimonial-card p { font-size: .9rem; color: var(--slate-300); line-height: 1.8; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-600), var(--navy-700)); display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 700; color: #fff; flex-shrink: 0; border: 2px solid rgba(255,255,255,.1); }
.author-avatar.gold { background: linear-gradient(135deg, var(--gold-600), var(--gold-400)); color: var(--navy-950); }
.author-name { font-size: .85rem; font-weight: 700; }
.author-role { font-size: .72rem; color: var(--slate-500); }
.author-badge { margin-right: auto; font-size: .72rem; }

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section { padding: 6rem 2rem; text-align: center; position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,64,183,.25), rgba(245,158,11,.08)); }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(60px); }
.cta-orb-1 { width: 350px; height: 350px; background: radial-gradient(circle,rgba(37,99,235,.4),transparent); top:-100px; left:10%; }
.cta-orb-2 { width: 300px; height: 300px; background: radial-gradient(circle,rgba(245,158,11,.3),transparent); bottom:-80px; right:10%; }
.cta-container { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 1rem; }
.cta-subtitle { font-size: 1rem; color: var(--slate-400); margin-bottom: 2.5rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.07); padding: 4rem 2rem 0; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 2fr; gap: 4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand p { font-size: .85rem; color: var(--slate-500); margin: .75rem 0 1.25rem; line-height: 1.7; }
.footer-logo { display: flex; align-items: center; gap: .6rem; }
.footer-social { display: flex; gap: .5rem; }
.social-btn { width: 36px; height: 36px; background: rgba(255,255,255,.07); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: var(--transition); }
.social-btn:hover { background: rgba(255,255,255,.14); }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.footer-col h4 { font-size: .85rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .82rem; color: var(--slate-500); margin-bottom: .6rem; transition: var(--transition); }
.footer-col a:hover { color: var(--gold-400); }
.payment-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.pay-badge { font-family: var(--font-en); font-size: .68rem; font-weight: 700; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: .25rem .6rem; border-radius: 6px; }
.app-badges { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.app-badge { font-size: .75rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: .4rem .8rem; border-radius: var(--radius-sm); }
.footer-bottom { text-align: center; padding: 1.25rem 0; font-size: .78rem; color: var(--slate-500); }

/* ── Shared page components ───────────────────────────────── */
.page-wrapper { padding-top: 70px; min-height: 100vh; }
.page-header { background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08); padding: 2.5rem 2rem; }
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-title { font-size: 1.8rem; font-weight: 800; margin-bottom: .35rem; }
.page-subtitle { font-size: .9rem; color: var(--slate-400); }
.page-content { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* ── Cards ────────────────────────────────────────────────── */
.card { background: var(--navy-900); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 1rem; font-weight: 700; }
.card-body { padding: 1.5rem; }

/* ── KPI Card ─────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.kpi-card { background: var(--navy-900); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 1.5rem; transition: var(--transition); }
.kpi-card:hover { border-color: rgba(245,158,11,.25); transform: translateY(-2px); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .85rem; }
.kpi-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.kpi-trend { font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 20px; }
.kpi-trend.up { background: rgba(16,185,129,.15); color: var(--emerald); }
.kpi-trend.down { background: rgba(244,63,94,.15); color: var(--rose); }
.kpi-trend.neutral { background: rgba(100,116,139,.15); color: var(--slate-400); }
.kpi-value { font-size: 1.7rem; font-weight: 900; font-family: var(--font-en); margin-bottom: .2rem; }
.kpi-label { font-size: .8rem; color: var(--slate-400); }

/* ── Badge variants ───────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.badge-success { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.25); }
.badge-warning { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.25); }
.badge-info { background: rgba(37,99,235,.15); color: #60a5fa; border: 1px solid rgba(37,99,235,.25); }
.badge-danger { background: rgba(244,63,94,.15); color: #fb7185; border: 1px solid rgba(244,63,94,.25); }
.badge-gold { background: rgba(245,158,11,.2); color: var(--gold-400); border: 1px solid rgba(245,158,11,.4); }
.badge-verified { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.3); }

/* ── Table ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { font-size: .75rem; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: .05em; padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.07); text-align: right; }
td { padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .85rem; vertical-align: middle; }
tbody tr:hover { background: rgba(255,255,255,.03); }

/* ── Sidebar layout ───────────────────────────────────────── */
.sidebar-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 70px); }
.sidebar { background: var(--navy-900); border-left: 1px solid rgba(255,255,255,.07); padding: 1.5rem 0; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; }
body[data-lang="fr"] .sidebar { border-left: none; border-right: 1px solid rgba(255,255,255,.07); }
.sidebar-label { font-size: .65rem; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: .08em; padding: .5rem 1.25rem; margin-top: .5rem; }
.sidebar-item { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.25rem; font-size: .88rem; color: var(--slate-400); transition: var(--transition); cursor: pointer; position: relative; }
.sidebar-item:hover, .sidebar-item.active { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-item.active::after { content:''; position:absolute; right:0; top:10%; bottom:10%; width:3px; background:var(--gold-400); border-radius:2px 0 0 2px; }
body[data-lang="fr"] .sidebar-item.active::after { right:auto; left:0; border-radius:0 2px 2px 0; }
.sidebar-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-badge { margin-right: auto; }
body[data-lang="fr"] .sidebar-badge { margin-right:0; margin-left:auto; }
.main-content { padding: 2rem; overflow-y: auto; }

/* ── Form elements ────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--slate-300); margin-bottom: .45rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); padding: .7rem 1rem; color: #fff; font-family: inherit; font-size: .9rem;
  transition: var(--transition); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--navy-500); background: rgba(37,99,235,.08); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.form-select { cursor: pointer; }
.form-select option { background: var(--navy-900); }
.form-textarea { resize: vertical; min-height: 100px; }
.input-group { position: relative; }
.input-icon { position: absolute; top: 50%; transform: translateY(-50%); right: .9rem; color: var(--slate-500); font-size: .9rem; pointer-events: none; }
body[data-lang="fr"] .input-icon { right:auto; left:.9rem; }
.input-group .form-input { padding-right: 2.5rem; }
body[data-lang="fr"] .input-group .form-input { padding-right:1rem; padding-left:2.5rem; }

/* ── Progress / Stepper ───────────────────────────────────── */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; }
.step { display: flex; align-items: center; flex: 1; }
.step-circle { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; transition: var(--transition); }
.step.active .step-circle { border-color: var(--navy-500); background: var(--navy-500); }
.step.done .step-circle { border-color: var(--emerald); background: var(--emerald); }
.step-line { flex: 1; height: 2px; background: rgba(255,255,255,.1); }
.step.done .step-line { background: var(--emerald); }

/* ── Toggle / Switch ──────────────────────────────────────── */
.toggle { position: relative; width: 42px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: rgba(255,255,255,.15); border-radius: 24px; cursor: pointer; transition: var(--transition); }
.toggle-slider::before { content:''; position:absolute; width:18px; height:18px; border-radius:50%; background:#fff; top:3px; right:3px; transition:var(--transition); }
body[data-lang="fr"] .toggle-slider::before { right:auto; left:3px; }
.toggle input:checked + .toggle-slider { background: var(--emerald); }
.toggle input:checked + .toggle-slider::before { transform: translateX(-18px); }
body[data-lang="fr"] .toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs { display: flex; gap: .25rem; background: rgba(255,255,255,.05); border-radius: var(--radius-sm); padding: .25rem; margin-bottom: 1.5rem; width: fit-content; }
.tab { padding: .5rem 1.1rem; border-radius: 6px; font-size: .85rem; font-weight: 600; color: var(--slate-400); cursor: pointer; transition: var(--transition); border: none; background: none; font-family: inherit; }
.tab.active { background: var(--navy-700); color: #fff; }
.tab:hover:not(.active) { color: var(--slate-300); }

/* ── Alert ────────────────────────────────────────────────── */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); font-size: .85rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.alert-info { background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.25); color: #93c5fd; }
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.25); color: #6ee7b7; }
.alert-warning { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); color: #fcd34d; }
.alert-danger { background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.25); color: #fda4af; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-visual { position: relative; right: auto; top: auto; transform: none; width: 100%; margin-top: 3rem; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-container { max-width: 100%; margin: 0; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .feature-card-large { grid-column: span 2; }
  .categories-grid { grid-template-columns: repeat(3,1fr); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: auto; height: auto; display: flex; flex-wrap: wrap; gap: .25rem; padding: .75rem; border-left: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .sidebar-label { display: none; }
  .sidebar-item { border-radius: var(--radius-sm); padding: .5rem .85rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2,1fr); }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .float-card { display: none; }
}
