/* ─── Jobbeur Landing Page CSS ──────────────────────────────────────────────
   Prefix : jb-
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --jb-primary   : #f59e0b;
  --jb-primary-dk: #d97706;
  --jb-dark      : #0f172a;
  --jb-muted     : #64748b;
  --jb-light     : #f8fafc;
  --jb-border    : #e2e8f0;
  --jb-radius    : 14px;
  --jb-radius-sm : 8px;
  --jb-shadow    : 0 4px 24px rgba(0,0,0,.08);
  --jb-shadow-md : 0 8px 40px rgba(0,0,0,.13);
}

/* ── Reset / Global ──────────────────────────────────────────────────────── */
.jb-page { font-family: 'DM Sans', 'Inter', system-ui, sans-serif; color: var(--jb-dark); }

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.jb-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #2d3a52 100%);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.jb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(245,158,11,.18) 0%, transparent 65%);
  pointer-events: none;
}
.jb-hero-eyebrow {
  display: inline-block;
  background: rgba(245,158,11,.18);
  color: var(--jb-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.jb-hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.jb-hero h1 span { color: var(--jb-primary); }
.jb-hero-sub {
  color: #94a3b8;
  font-size: 16px;
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Search bar */
.jb-search-wrap {
  background: #fff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 20px;
  gap: 10px;
  max-width: 560px;
  box-shadow: var(--jb-shadow-md);
}
.jb-search-wrap i { color: var(--jb-muted); font-size: 16px; flex-shrink: 0; }
.jb-search-wrap input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 15px;
  background: transparent;
  color: var(--jb-dark);
}
.jb-search-wrap input::placeholder { color: #94a3b8; }
.jb-search-btn {
  background: var(--jb-primary);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .12s;
  white-space: nowrap;
}
.jb-search-btn:hover { background: var(--jb-primary-dk); transform: scale(1.03); }

/* Stats */
.jb-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.jb-hero-stat { color: #cbd5e1; font-size: 13px; }
.jb-hero-stat strong { display: block; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.1; }

/* Hero image side */
.jb-hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.jb-hero-bubbles {
  position: relative;
  width: 320px;
  height: 320px;
}
.jb-bubble {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: var(--jb-shadow-md);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--jb-dark);
}
.jb-bubble i { font-size: 20px; margin-bottom: 4px; color: var(--jb-primary); }
.jb-bubble-lg { width: 120px; height: 120px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.jb-bubble-sm { width: 80px; height: 80px; }
.jb-bubble-sm:nth-child(2) { top: 0; left: 30px; }
.jb-bubble-sm:nth-child(3) { top: 0; right: 20px; }
.jb-bubble-sm:nth-child(4) { bottom: 10px; left: 10px; }
.jb-bubble-sm:nth-child(5) { bottom: 10px; right: 20px; }

/* ══════════════════════════════════════════════════════
   SECTION TITLES
══════════════════════════════════════════════════════ */
.jb-section { padding: 64px 0; }
.jb-section-alt { background: var(--jb-light); }

.jb-section-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: var(--jb-dark);
  margin-bottom: 8px;
  text-align: center;
}
.jb-section-sub {
  font-size: 15px;
  color: var(--jb-muted);
  text-align: center;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════════════════ */
.jb-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.jb-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px 16px;
  background: #fff;
  border: 2px solid var(--jb-border);
  border-radius: var(--jb-radius);
  text-decoration: none;
  color: var(--jb-dark);
  transition: border-color .18s, box-shadow .18s, transform .13s;
  cursor: pointer;
}
.jb-cat-card:hover, .jb-cat-card.active {
  border-color: var(--jb-primary);
  box-shadow: 0 4px 16px rgba(245,158,11,.18);
  transform: translateY(-3px);
  color: var(--jb-dark);
  text-decoration: none;
}
.jb-cat-card.active { background: #fffbeb; }
.jb-cat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #fef3c7;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: background .18s;
}
.jb-cat-card:hover .jb-cat-icon,
.jb-cat-card.active .jb-cat-icon { background: var(--jb-primary); }
.jb-cat-name { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.3; }
.jb-cat-count { font-size: 11px; color: var(--jb-muted); }

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════ */
.jb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.jb-step { text-align: center; }
.jb-step-num {
  width: 56px; height: 56px;
  background: var(--jb-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 18px;
  position: relative;
}
.jb-step-num::after {
  content: '';
  position: absolute;
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 2px dashed rgba(245,158,11,.3);
  top: -7px; left: -7px;
}
.jb-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.jb-step p  { font-size: 14px; color: var(--jb-muted); line-height: 1.6; margin: 0; }

/* ══════════════════════════════════════════════════════
   JOBBEUR CARDS
══════════════════════════════════════════════════════ */
.jb-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.jb-filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--jb-border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--jb-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.jb-filter-pill:hover  { border-color: var(--jb-primary); color: var(--jb-primary-dk); text-decoration: none; }
.jb-filter-pill.active { border-color: var(--jb-primary); background: #fffbeb; color: var(--jb-primary-dk); }

.jb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.jb-card {
  background: #fff;
  border-radius: var(--jb-radius);
  border: 1.5px solid var(--jb-border);
  overflow: hidden;
  transition: box-shadow .18s, transform .14s;
  display: flex;
  flex-direction: column;
}
.jb-card:hover { box-shadow: var(--jb-shadow-md); transform: translateY(-4px); }

.jb-card-header {
  padding: 24px 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.jb-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fef3c7;
  flex-shrink: 0;
  background: #f1f5f9;
}
.jb-avatar-placeholder {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jb-primary) 0%, var(--jb-primary-dk) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  border: 3px solid #fef3c7;
}
.jb-card-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.jb-card-location {
  font-size: 12px; color: var(--jb-muted);
  display: flex; align-items: center; gap: 4px;
}
.jb-card-location i { font-size: 10px; }

.jb-card-tags {
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.jb-tag {
  background: #f1f5f9;
  color: var(--jb-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.jb-tag-more {
  background: #fef3c7;
  color: var(--jb-primary-dk);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.jb-card-footer {
  margin-top: auto;
  padding: 12px 20px;
  border-top: 1px solid var(--jb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.jb-card-nb { font-size: 12px; color: var(--jb-muted); }
.jb-card-nb strong { color: var(--jb-dark); }
.jb-card-btn {
  background: var(--jb-primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  display: inline-block;
}
.jb-card-btn:hover { background: var(--jb-primary-dk); color: #fff; text-decoration: none; }

/* Vide */
.jb-vide {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--jb-muted);
}
.jb-vide i { font-size: 40px; margin-bottom: 12px; display: block; opacity: .4; }
.jb-vide p { font-size: 15px; margin-bottom: 0; }

/* ══════════════════════════════════════════════════════
   TRUST BANNER
══════════════════════════════════════════════════════ */
.jb-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  padding: 40px 0;
}
.jb-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--jb-dark);
}
.jb-trust-item i { font-size: 22px; color: var(--jb-primary); }

/* ══════════════════════════════════════════════════════
   CTA DEVENIR JOBBEUR
══════════════════════════════════════════════════════ */
.jb-cta {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  margin: 0 0 64px;
}
.jb-cta h2 { font-size: clamp(22px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.jb-cta p  { font-size: 16px; opacity: .9; max-width: 480px; margin: 0 auto 28px; line-height: 1.6; }
.jb-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--jb-primary-dk);
  font-weight: 800;
  font-size: 15px;
  padding: 13px 36px;
  border-radius: 40px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.jb-cta-btn:hover { transform: scale(1.05); box-shadow: 0 8px 28px rgba(0,0,0,.2); color: var(--jb-primary-dk); text-decoration: none; }
.jb-cta-ghost {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 36px;
  border-radius: 40px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.5);
  transition: border-color .15s, background .15s;
  margin-left: 12px;
}
.jb-cta-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .jb-hero { padding: 50px 0 44px; }
  .jb-hero-img { display: none; }
  .jb-search-wrap { max-width: 100%; }
  .jb-cta { padding: 40px 20px; border-radius: 16px; }
  .jb-cta-ghost { margin-left: 0; margin-top: 10px; }
  .jb-cat-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .jb-trust { gap: 20px 28px; }
  .jb-section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .jb-search-wrap { border-radius: 14px; padding: 10px 12px; flex-wrap: wrap; }
  .jb-search-btn  { width: 100%; justify-content: center; padding: 10px; }
  .jb-hero-stats  { gap: 20px; }
  .jb-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   PAGE PROFIL JOBBEUR
══════════════════════════════════════════════════════ */
.jb-profil-card {
  background: #fff;
  border: 1.5px solid var(--jb-border);
  border-radius: var(--jb-radius);
  padding: 28px 24px;
  position: sticky;
  top: 80px;
  text-align: center;
}

/* Avatar */
.jb-profil-avatar-wrap { position: relative; display: inline-block; margin-bottom: 16px; }
.jb-profil-avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #000000;
}
.jb-profil-avatar-placeholder {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jb-primary) 0%, var(--jb-primary-dk) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  border: 4px solid #fef3c7;
  margin: 0 auto;
}
.jb-profil-badge-valide {
  position: absolute;
  bottom: 2px; right: -8px;
  background: #16a34a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.jb-profil-nom { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.jb-profil-role {
  font-size: 13px; color: var(--jb-muted);
  background: #f1f5f9;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Méta */
.jb-profil-meta { text-align: left; margin-bottom: 20px; }
.jb-profil-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--jb-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--jb-border);
}
.jb-profil-meta-row:last-child { border-bottom: none; }
.jb-profil-meta-row i { color: var(--jb-primary); width: 16px; text-align: center; flex-shrink: 0; }

/* Stats */
.jb-profil-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.jb-profil-stat {
  flex: 1;
  background: var(--jb-light);
  border-radius: var(--jb-radius-sm);
  padding: 12px 8px;
  text-align: center;
}
.jb-profil-stat strong { display: block; font-size: 22px; font-weight: 800; color: var(--jb-dark); line-height: 1.1; }
.jb-profil-stat span   { font-size: 11px; color: var(--jb-muted); font-weight: 600; }

/* Boutons */
.jb-profil-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 40px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background .15s;
  border: none;
  cursor: pointer;
}
.jb-profil-cta:hover { background: #1e293b; color: #fff; text-decoration: none; }
.jb-profil-retour {
  display: block;
  color: var(--jb-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.jb-profil-retour:hover { color: var(--jb-dark); text-decoration: none; }

/* Prestations */
.jb-profil-section-titre {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--jb-dark);
}
.jb-profil-cat-card {
  background: #fff;
  border: 1.5px solid var(--jb-border);
  border-radius: var(--jb-radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.jb-profil-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--jb-light);
  border-bottom: 1px solid var(--jb-border);
}
.jb-profil-cat-icon { font-size: 20px; }
.jb-profil-cat-nom  { font-size: 14px; font-weight: 700; flex: 1; color: var(--jb-dark); }
.jb-profil-cat-count {
  background: #fef3c7;
  color: var(--jb-primary-dk);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.jb-profil-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
}
.jb-profil-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.jb-profil-chip i { font-size: 10px; color: #94a3b8; }

@media (max-width: 991px) {
  .jb-profil-card { position: static; }
}

/* ══════════════════════════════════════════════════════
   MODAL CONTACT / RÉSERVATION
══════════════════════════════════════════════════════ */
.jb-modal-bd {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.jb-modal-bd.open { display: flex; }

.jb-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  overflow: hidden;
}

/* Header */
.jb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--jb-border);
  flex-shrink: 0;
}
.jb-modal-header-info { display: flex; align-items: center; gap: 14px; }
.jb-modal-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fef3c7;
  flex-shrink: 0;
}
.jb-modal-avatar-ph {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jb-primary), var(--jb-primary-dk));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  flex-shrink: 0;
}
.jb-modal-titre { font-size: 15px; font-weight: 800; color: var(--jb-dark); }
.jb-modal-sous  { font-size: 12px; color: var(--jb-muted); margin-top: 2px; }
.jb-modal-close {
  background: #f1f5f9;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--jb-muted);
  transition: background .15s, color .15s;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.jb-modal-close:hover { background: #e2e8f0; color: var(--jb-dark); }

/* Body (scrollable) */
.jb-modal-body {
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Champs */
.jb-field { display: flex; flex-direction: column; gap: 8px; }
.jb-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--jb-dark);
  display: flex;
  align-items: center;
  gap: 7px;
}
.jb-label i { color: var(--jb-primary); }
.jb-required { color: #ef4444; }

.jb-input, .jb-textarea {
  width: 100%;
  border: 1.5px solid var(--jb-border);
  border-radius: var(--jb-radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--jb-dark);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.jb-input:focus, .jb-textarea:focus {
  border-color: var(--jb-primary);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.jb-textarea { resize: vertical; min-height: 100px; }
.jb-char-count { font-size: 11px; color: var(--jb-muted); text-align: right; }

/* Grille prestations */
.jb-prest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jb-prest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  transition: all .15s;
  user-select: none;
}
.jb-prest-chip input { display: none; }
.jb-prest-icon { font-size: 14px; }
.jb-prest-check { display: none; font-size: 10px; color: #16a34a; }
.jb-prest-chip:hover { border-color: var(--jb-primary); color: var(--jb-dark); }
.jb-prest-chip.selected {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
.jb-prest-chip.selected .jb-prest-check { display: inline; color: #fff; }

.jb-prest-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--jb-primary-dk);
  font-weight: 600;
  background: #fffbeb;
  border-radius: 8px;
  padding: 6px 10px;
}
.jb-prest-hint i { font-size: 13px; }

/* Zone upload */
.jb-upload-zone {
  border: 2px dashed var(--jb-border);
  border-radius: var(--jb-radius-sm);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--jb-muted);
}
.jb-upload-zone:hover, .jb-upload-zone.drag {
  border-color: var(--jb-primary);
  background: #fffbeb;
}
.jb-upload-zone i { font-size: 28px; margin-bottom: 8px; display: block; color: var(--jb-primary); }
.jb-upload-zone p { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--jb-dark); }
.jb-upload-zone span { font-size: 11px; color: var(--jb-muted); }

/* Prévisualisations */
.jb-photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.jb-photo-thumb {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 10px;
  overflow: visible;
}
.jb-photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid var(--jb-border);
}
.jb-thumb-del {
  position: absolute;
  top: -7px; right: -7px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: 2px solid #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Erreur */
.jb-form-error {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #dc2626;
  border-radius: var(--jb-radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Footer */
.jb-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}
.jb-btn-ghost {
  background: #f1f5f9;
  border: none;
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--jb-muted);
  cursor: pointer;
  transition: background .15s;
}
.jb-btn-ghost:hover { background: #e2e8f0; }
.jb-btn-submit {
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.jb-btn-submit:hover    { background: #1e293b; }
.jb-btn-submit:disabled { opacity: .6; cursor: default; }

/* Succès */
.jb-contact-ok {
  text-align: center;
  padding: 40px 20px;
}
.jb-contact-ok i  { font-size: 48px; color: #16a34a; display: block; margin-bottom: 16px; }
.jb-contact-ok h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.jb-contact-ok p  { font-size: 14px; color: var(--jb-muted); margin: 0; }

@media (max-width: 480px) {
  .jb-modal { border-radius: 20px 20px 0 0; max-height: 96vh; margin-top: auto; }
  .jb-modal-bd { align-items: flex-end; padding: 0; }
}

/* Boutons dans la zone d'upload */
.jb-upload-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.jb-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--jb-border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--jb-dark);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.jb-upload-btn:hover       { border-color: var(--jb-primary); color: var(--jb-primary-dk); background: #fffbeb; }
.jb-upload-btn i           { font-size: 14px; }
.jb-upload-btn-cam         { border-color: #0f172a; color: #0f172a; }
.jb-upload-btn-cam:hover   { background: #0f172a; color: #fff; border-color: #0f172a; }
.jb-upload-btn-cam i       { color: inherit; }

/* ══════════════════════════════════════════════════════
   MES TÂCHES
══════════════════════════════════════════════════════ */
.jb-tache-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 18px;
  overflow: hidden;
}

.jb-tache-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.jb-tache-client {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.jb-tache-date-creation {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Badges statut */
.jb-tache-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.jb-tache-badge-en_attente { background: #fef3c7; color: #b45309; }
.jb-tache-badge-vue        { background: #e0f2fe; color: #0369a1; }
.jb-tache-badge-acceptee   { background: #dcfce7; color: #16a34a; }
.jb-tache-badge-refusee    { background: #fee2e2; color: #dc2626; }

/* Lignes info */
.jb-tache-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}
.jb-tache-row:last-child { border-bottom: none; }
.jb-tache-row strong { color: #0f172a; }

/* Photos */
.jb-tache-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.jb-tache-photos a { display: block; }
.jb-tache-photos img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  transition: transform .15s;
}
.jb-tache-photos img:hover { transform: scale(1.06); }

/* Footer actions */
.jb-tache-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
}
.jb-tache-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.jb-tache-btn:hover    { transform: translateY(-1px); }
.jb-tache-btn:disabled { opacity: .6; cursor: default; transform: none; }

.jb-tache-btn-vue      { background: #e0f2fe; color: #0369a1; }
.jb-tache-btn-vue:hover      { background: #bae6fd; }
.jb-tache-btn-accepter { background: #0f172a; color: #fff; }
.jb-tache-btn-accepter:hover { background: #1e293b; }
.jb-tache-btn-refuser  { background: #fee2e2; color: #dc2626; }
.jb-tache-btn-refuser:hover  { background: #fecaca; }

/* ══════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════ */
.jb-lb-bd {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.jb-lb-bd.open { display: flex; }

.jb-lb-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.jb-lb-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity .2s;
}
.jb-lb-counter {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 600;
}
.jb-lb-close {
  position: fixed;
  top: 18px; right: 22px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 9001;
}
.jb-lb-close:hover { background: rgba(255,255,255,.3); }

.jb-lb-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 9001;
}
.jb-lb-nav:hover { background: rgba(255,255,255,.3); }
.jb-lb-prev { left: 14px; }
.jb-lb-next { right: 14px; }

@media (max-width: 480px) {
  .jb-lb-prev { left: 6px; }
  .jb-lb-next { right: 6px; }
  .jb-lb-nav  { width: 36px; height: 36px; font-size: 22px; }
}

/* ── Filtres Mes tâches ────────────────────────────────────────────────── */
.jb-tache-filtre {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: all .15s;
}
.jb-tache-filtre:hover { border-color: #0f172a; color: #0f172a; background: #f1f5f9; text-decoration: none; }
.jb-tache-filtre.active { background: #0f172a; color: #fff; border-color: #0f172a; }

.jb-tache-filtre-en_attente.active { background: #b45309; border-color: #b45309; color: #fff; }
.jb-tache-filtre-vue.active        { background: #0369a1; border-color: #0369a1; color: #fff; }
.jb-tache-filtre-acceptee.active   { background: #16a34a; border-color: #16a34a; color: #fff; }
.jb-tache-filtre-refusee.active    { background: #dc2626; border-color: #dc2626; color: #fff; }

/* ══════════════════════════════════════════════════════
   MES DEMANDES (vue client)
══════════════════════════════════════════════════════ */
.jb-dem-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 18px;
  overflow: hidden;
}
.jb-dem-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.jb-dem-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fef3c7;
  flex-shrink: 0;
}
.jb-dem-avatar-ph {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  flex-shrink: 0;
}
.jb-dem-jobbeur-nom  { font-size: 14px; font-weight: 700; color: #0f172a; }
.jb-dem-date-creation { font-size: 12px; color: #94a3b8; margin-top: 2px; }

.jb-dem-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
}
.jb-dem-btn-profil {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.jb-dem-btn-profil:hover { background: #1e293b; color: #fff; text-decoration: none; }
.jb-dem-btn-annuler {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.jb-dem-btn-annuler:hover    { background: #fecaca; }
.jb-dem-btn-annuler:disabled { opacity: .6; cursor: default; }
.jb-dem-btn-scanner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  background: #f0fdf4;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.jb-dem-btn-scanner:hover { background: #dcfce7; }
