/* ============================================================
   X-PROFESSO CLEANER PRESSING — Feuille de Style Principale
   Design : Futuriste · Premium · Mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Variables CSS ──────────────────────────────────────── */
:root {
  --blue-dark:    #1B4F72;
  --blue-mid:     #2471A3;
  --blue-light:   #3498DB;
  --green:        #27AE60;
  --green-light:  #2ECC71;
  --amber:        #F39C12;
  --amber-light:  #F5B041;
  --bg:           #F8F9FA;
  --bg-card:      #FFFFFF;
  --text:         #1A1A2E;
  --text-muted:   #6C757D;
  --border:       rgba(27,79,114,0.12);
  --shadow-sm:    0 2px 12px rgba(27,79,114,0.08);
  --shadow-md:    0 8px 32px rgba(27,79,114,0.15);
  --shadow-lg:    0 24px 64px rgba(27,79,114,0.20);
  --gradient-primary: linear-gradient(135deg, #1B4F72 0%, #2471A3 50%, #3498DB 100%);
  --gradient-green:   linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
  --gradient-amber:   linear-gradient(135deg, #F39C12 0%, #F5B041 100%);
  --gradient-hero:    linear-gradient(135deg, #0D2137 0%, #1B4F72 40%, #2471A3 70%, #1a6b3c 100%);
  --glass-bg:     rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.40);
  --radius-sm:    8px;
  --radius:       16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --transition:   all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ─── Scrollbar Custom ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-dark); }

/* ─── Navbar ─────────────────────────────────────────────── */
.xp-navbar {
  background: rgba(27, 79, 114, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.xp-navbar.scrolled {
  background: rgba(27, 79, 114, 0.98);
  box-shadow: var(--shadow-md);
}

.xp-logo {
  height: 44px;
  width: auto;
}

.xp-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.xp-navbar .nav-link:hover,
.xp-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
}

.xp-navbar .navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 0.6rem;
}

.xp-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Badge notifications */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue-dark);
}

/* ─── Hero Section ───────────────────────────────────────── */
.xp-hero {
  background: var(--gradient-hero);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.xp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") center bottom no-repeat;
  background-size: cover;
}

.xp-hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,174,96,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.xp-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.xp-hero-title span {
  background: var(--gradient-amber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.xp-hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 540px;
}

.xp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  margin-bottom: 1rem;
}

.xp-hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--amber-light);
}

.stat-item span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Floating card hero */
.hero-float-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* ─── Boutons ────────────────────────────────────────────── */
.btn-xp {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.75rem;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-xp::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn-xp:hover::after { background: rgba(255,255,255,0.1); }

.btn-xp-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(36,113,163,0.4);
}

.btn-xp-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(36,113,163,0.5);
  color: #fff;
}

.btn-xp-green {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(39,174,96,0.35);
}

.btn-xp-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(39,174,96,0.45);
  color: #fff;
}

.btn-xp-amber {
  background: var(--gradient-amber);
  color: #fff;
  box-shadow: 0 4px 20px rgba(243,156,18,0.35);
}

.btn-xp-amber:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn-xp-outline {
  background: transparent;
  border: 2px solid var(--blue-mid);
  color: var(--blue-mid);
}

.btn-xp-outline:hover {
  background: var(--blue-mid);
  color: #fff;
  transform: translateY(-2px);
}

.btn-xp-lg { padding: 1rem 2.5rem; font-size: 1rem; border-radius: var(--radius); }
.btn-xp-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-xp-icon { padding: 0.6rem; border-radius: var(--radius-sm); }

/* ─── Cards ──────────────────────────────────────────────── */
.xp-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.xp-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.xp-card-header {
  background: var(--gradient-primary);
  color: #fff;
  padding: 1.25rem 1.5rem;
}

.xp-card-header h5 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

/* Glass card */
.xp-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Stat card */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card.green::before  { background: var(--gradient-green); }
.stat-card.amber::before  { background: var(--gradient-amber); }

.stat-card .stat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: rgba(36,113,163,0.1);
  color: var(--blue-mid);
}

.stat-card.green .stat-icon { background: rgba(39,174,96,0.1); color: var(--green); }
.stat-card.amber .stat-icon { background: rgba(243,156,18,0.1); color: var(--amber); }

.stat-card .stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.5rem 0 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ─── Service Cards (Catalogue) ──────────────────────────── */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::before { opacity: 0.05; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: var(--blue-light); }

.service-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(36,113,163,0.3);
}

.service-card.amidon .service-icon {
  background: var(--gradient-green);
  box-shadow: 0 8px 24px rgba(39,174,96,0.3);
}

.service-card .price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.service-card.amidon .price { color: var(--green); }

.service-card .category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 1rem;
  background: rgba(36,113,163,0.1);
  color: var(--blue-mid);
}

.service-card.amidon .category-badge {
  background: rgba(39,174,96,0.1);
  color: var(--green);
}

/* ─── Formulaire commande ────────────────────────────────── */
.form-xp .form-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-xp .form-control,
.form-xp .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition);
  background: #fff;
}

.form-xp .form-control:focus,
.form-xp .form-select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(36,113,163,0.15);
  outline: none;
}

.form-xp .input-group-text {
  background: rgba(36,113,163,0.07);
  border: 1.5px solid var(--border);
  color: var(--blue-mid);
  font-size: 1rem;
}

/* Quantité selector */
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}

.qty-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover { transform: scale(1.1); }
.qty-value { font-family: 'Montserrat', sans-serif; font-weight: 700; min-width: 28px; text-align: center; }

/* ─── Devis Summary ──────────────────────────────────────── */
.devis-summary {
  background: linear-gradient(135deg, #1B4F72, #2471A3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #fff;
  position: sticky;
  top: 90px;
}

.devis-summary h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.devis-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.devis-line.total {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.devis-line.total span:last-child {
  color: var(--amber-light);
  font-size: 1.3rem;
}

/* ─── Timeline Suivi ─────────────────────────────────────── */
.tracking-timeline {
  position: relative;
  padding-left: 2.5rem;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-mid), var(--green));
}

.tracking-step {
  position: relative;
  padding-bottom: 2rem;
}

.tracking-step:last-child { padding-bottom: 0; }

.tracking-dot {
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.tracking-step.active .tracking-dot {
  background: var(--gradient-primary);
  border-color: var(--blue-mid);
  color: #fff;
  box-shadow: 0 4px 16px rgba(36,113,163,0.4);
  animation: pulse-dot 2s infinite;
}

.tracking-step.done .tracking-dot {
  background: var(--gradient-green);
  border-color: var(--green);
  color: #fff;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 4px 16px rgba(36,113,163,0.4), 0 0 0 0 rgba(36,113,163,0.3); }
  50%       { box-shadow: 0 4px 16px rgba(36,113,163,0.4), 0 0 0 12px rgba(36,113,163,0); }
}

.tracking-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.tracking-step.active .tracking-content {
  border-color: var(--blue-light);
  box-shadow: 0 4px 20px rgba(36,113,163,0.15);
}

/* ─── Wallet ─────────────────────────────────────────────── */
.wallet-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(27,79,114,0.35);
}

.wallet-card::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -80px; right: -80px;
}

.wallet-card::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(39,174,96,0.1);
  bottom: -60px; left: -40px;
}

.wallet-balance {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
}

/* ─── Tables Admin ───────────────────────────────────────── */
.xp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.xp-table thead th {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  background: transparent;
  border-bottom: 2px solid var(--border);
}

.xp-table tbody tr {
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.xp-table tbody tr:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.xp-table tbody td {
  padding: 1rem;
  font-size: 0.875rem;
  vertical-align: middle;
  border: none;
}

.xp-table tbody td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.xp-table tbody td:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ─── Badges Statut ──────────────────────────────────────── */
.badge-xp {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-xp.warning  { background: rgba(243,156,18,0.12);  color: #B7770D; }
.badge-xp.info     { background: rgba(52,152,219,0.12);  color: #2471A3; }
.badge-xp.primary  { background: rgba(36,113,163,0.12);  color: var(--blue-dark); }
.badge-xp.success  { background: rgba(39,174,96,0.12);   color: #1E8449; }
.badge-xp.danger   { background: rgba(231,76,60,0.12);   color: #C0392B; }
.badge-xp.secondary{ background: rgba(108,117,125,0.12); color: #5a6268; }

/* ─── Sidebar Admin ──────────────────────────────────────── */
.xp-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--gradient-primary);
  padding: 1.5rem 1rem;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 900;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.xp-sidebar-brand {
  padding: 0.5rem 0.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 1.5rem;
}

.xp-sidebar-brand img { height: 36px; }

.xp-sidebar .sidebar-section {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  padding: 0.75rem 0.75rem 0.35rem;
  margin-top: 0.5rem;
}

.xp-sidebar .nav-item .nav-link {
  color: rgba(255,255,255,0.75) !important;
  padding: 0.65rem 0.75rem !important;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}

.xp-sidebar .nav-item .nav-link:hover,
.xp-sidebar .nav-item .nav-link.active {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

.xp-sidebar .nav-item .nav-link i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.xp-main-content {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg);
  padding: 1.5rem;
}

/* Mobile sidebar */
@media (max-width: 768px) {
  .xp-sidebar { transform: translateX(-100%); }
  .xp-sidebar.open { transform: translateX(0); }
  .xp-main-content { margin-left: 0; padding: 1rem; }
}

/* ─── Dashboard top bar ──────────────────────────────────── */
.dash-topbar {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* ─── Notifications panel ────────────────────────────────── */
.notif-panel {
  position: fixed;
  top: 0; right: -380px;
  width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 1050;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}

.notif-panel.open { right: 0; }

.notif-panel-header {
  background: var(--gradient-primary);
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: var(--transition);
}

.notif-item:hover  { background: #f8f9fa; }
.notif-item.unread { background: rgba(36,113,163,0.04); }

.notif-item.unread::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-mid);
  margin-right: 8px;
  flex-shrink: 0;
}

/* ─── Flash messages ─────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 80px; right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.flash-msg {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: slideIn 0.35s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.flash-msg.success { background: #d4edda; color: #155724; border-left: 4px solid var(--green); }
.flash-msg.error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.flash-msg.info    { background: #cce5ff; color: #004085; border-left: 4px solid var(--blue-mid); }
.flash-msg.warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--amber); }

/* ─── QR Code container ──────────────────────────────────── */
.qr-container {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: inline-block;
}

/* ─── PWA Install Banner ─────────────────────────────────── */
.pwa-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  max-width: 380px;
  width: calc(100% - 40px);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ─── Mode paiement selector ─────────────────────────────── */
.payment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
}

.payment-option:hover { border-color: var(--blue-mid); background: rgba(36,113,163,0.03); }
.payment-option.selected {
  border-color: var(--blue-mid);
  background: rgba(36,113,163,0.05);
  box-shadow: 0 0 0 3px rgba(36,113,163,0.15);
}

.payment-option .radio-custom {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.payment-option.selected .radio-custom {
  border-color: var(--blue-mid);
  background: var(--blue-mid);
}

.payment-option.selected .radio-custom::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* ─── Footer ─────────────────────────────────────────────── */
.xp-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.xp-footer h6 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.xp-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.4rem;
}

.xp-footer a:hover { color: var(--amber); }

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
}

.footer-bottom span { color: var(--amber); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 576px) {
  .xp-hero-stats { gap: 1.2rem; }
  .stat-item strong { font-size: 1.4rem; }
  .wallet-balance { font-size: 2rem; }
  .devis-summary { position: static; }
  .xp-table { font-size: 0.8rem; }
  .xp-table tbody td { padding: 0.75rem 0.5rem; }
}

/* ─── Utilitaires ────────────────────────────────────────── */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-amber {
  background: var(--gradient-amber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-green   { background: var(--gradient-green) !important; }
.bg-gradient-amber   { background: var(--gradient-amber) !important; }

.rounded-xp    { border-radius: var(--radius) !important; }
.rounded-xp-lg { border-radius: var(--radius-lg) !important; }
.shadow-xp     { box-shadow: var(--shadow-md) !important; }

/* Pulse animation */
.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Overlay sidebar mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 899;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.show { display: block; }

/* ── Overlay notifications ─────────────────────────────── */
#notifOverlay.show { display: block !important; }

/* Section title */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.section-divider {
  width: 60px; height: 4px;
  border-radius: 2px;
  background: var(--gradient-primary);
  margin: 0.75rem 0 2rem;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — X-Professo
   Toutes les tables deviennent des listes de cartes sur mobile
   ══════════════════════════════════════════════════════════════ */

/* ── Table → cards sur mobile ── */
/* Responsive géré par Bootstrap et app.css */
