/* ==========================================================
   Mongombo — Design system
   Palette : encre nuit (#151B33 / #1E2A55), bleu signal (#2346FF),
   ambre opportunité (#F5A623), papier (#F6F7FB), texte (#14151C)
   Typo : Sora (display) + Plus Jakarta Sans (texte)
   Signature : motif "épingle de carte" + trait pointillé de connexion
   ========================================================== */

:root {
  --ink-900: #12142099;
  --ink: #14151C;
  --navy-900: #151B33;
  --navy-800: #1E2A55;
  --navy-700: #283a72;
  --blue: #2346FF;
  --blue-dark: #17309e;
  --amber: #F5A623;
  --amber-dark: #d68a0c;
  --paper: #F6F7FB;
  --paper-alt: #ECEFF7;
  --white: #FFFFFF;
  --line: #E2E5F0;
  --muted: #6B7086;
  --green: #1a9c6b;
  --red: #d64545;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(20, 21, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 26, 60, 0.09);
  --shadow-lg: 0 20px 50px rgba(20, 26, 60, 0.16);
  --font-display: 'Sora', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.1rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.text-danger { color: var(--red); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-fluid { max-width: 1600px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 660px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--navy-900); letter-spacing: -0.01em; }
.brand-mark { flex-shrink: 0; display: block; }
.main-nav { display: flex; gap: 22px; flex: 1; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 0.94rem; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { position: relative; display: flex; padding: 8px; border-radius: 999px; color: var(--navy-900); }
.icon-btn:hover { background: var(--paper-alt); }
.badge-dot {
  position: absolute; top: -2px; right: -2px; background: var(--amber); color: var(--navy-900);
  font-size: 0.65rem; font-weight: 800; min-width: 16px; height: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.user-menu { position: relative; }
.user-menu-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 6px 8px; border-radius: 999px; }
.user-menu-btn:hover { background: var(--paper-alt); }
.user-name-sm { font-weight: 600; font-size: 0.9rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy-800); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.avatar-lg {
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy-800); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.5rem; flex-shrink: 0;
}
.dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  min-width: 190px; padding: 6px; z-index: 50;
}
.dropdown.open { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--ink); font-weight: 500; font-size: 0.92rem; }
.dropdown a:hover { background: var(--paper-alt); text-decoration: none; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  border: 1.5px solid transparent; cursor: pointer; transition: all .15s ease; text-decoration: none;
  font-family: var(--font-body);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; box-shadow: 0 4px 14px rgba(35,70,255,0.28); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(35,70,255,0.38); transform: translateY(-1px); }
.btn { transition: all .15s ease, transform .15s ease; }
.btn-outline { background: #fff; color: var(--navy-900); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--navy-900); }
.btn-ghost:hover { background: var(--paper-alt); }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-sm { padding: 6px 13px; font-size: 0.82rem; }

/* ---------------- Flash ---------------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-weight: 600; font-size: 0.92rem; transition: opacity .4s; }
.flash-hide { opacity: 0; }
.flash-success { background: #E4F7EE; color: #106b46; border: 1px solid #b8ecd2; }
.flash-error { background: #FCEBEB; color: #a52222; border: 1px solid #f5c2c2; }

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(circle at 12% 15%, rgba(35,70,255,0.16), transparent 42%),
              radial-gradient(circle at 90% 5%, rgba(245,166,35,0.16), transparent 38%),
              var(--navy-900);
  color: #fff; padding: 76px 0 70px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .55; pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(245,166,35,0.16); color: var(--amber);
  padding: 7px 15px; border-radius: 999px; font-weight: 700; font-size: 0.78rem; letter-spacing: .02em; margin-bottom: 18px;
}
.eyebrow-dark { background: #EAF0FF; color: var(--blue-dark); }
.hero-text h1 { color: #fff; font-size: 2.9rem; margin-bottom: 18px; letter-spacing: -0.02em; }
.hero-text h1 em { font-style: normal; color: var(--amber); }
.hero-text > p { color: #cfd4ea; font-size: 1.08rem; max-width: 480px; }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; padding: 8px; border-radius: 999px; margin: 26px 0 16px; box-shadow: var(--shadow-lg); }
.hero-search-icon { color: var(--muted); margin-left: 10px; flex-shrink: 0; }
.hero-search input { border: none; padding: 10px 8px; flex: 1; font-size: 0.92rem; font-family: var(--font-body); border-radius: 999px; min-width: 0; }
.hero-search input:focus { outline: none; background: var(--paper-alt); }
.hero-cta-row { display: flex; gap: 10px; margin-bottom: 26px; }
.hero-cta-row .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.hero-cta-row .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.hero-trust-row { display: flex; align-items: center; gap: 12px; }
.avatar-cluster { display: flex; }
.avatar-cluster img {
  width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--navy-900); object-fit: cover;
  margin-left: -10px; background: var(--navy-800);
}
.avatar-cluster img:first-child { margin-left: 0; }
.hero-trust-text { color: #b9bfd9; font-size: 0.86rem; }
.hero-trust-text strong { color: #fff; }

/* Carte "vitrine" en direct dans le hero, façon mockup navigateur */
.hero-map-card {
  background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg); border: 1px solid rgba(255,255,255,0.08);
}
.hero-map-card-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hero-map-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hero-map-card-label { margin-left: 8px; font-size: 0.76rem; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.hero-mini-map { width: 100%; height: 300px; }
.hero-map-card-footer { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 0.82rem; font-weight: 600; color: var(--navy-900); background: var(--paper); }
.pin-marker { background: none; border: none; filter: drop-shadow(0 3px 5px rgba(20,26,60,0.35)); }
.leaflet-tooltip { font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; border: none; box-shadow: var(--shadow-sm); }

/* ---------------- Stat cards ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 32px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-highlight { border-color: var(--amber); background: #FFF8EB; }
.stat-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--navy-900); }
.stat-label { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* ---------------- How it works : piste en pointillés, comme un trajet ---------------- */
.how-it-works { padding: 76px 0 60px; }
.section-head-center { text-align: center; max-width: 560px; margin: 0 auto 46px; }
.section-head-center .eyebrow { margin-bottom: 12px; }
.route-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.route-track::before {
  content: ''; position: absolute; top: 11px; left: 12.5%; right: 12.5%; height: 0;
  border-top: 2px dashed var(--line); z-index: 0;
}
.route-step { position: relative; z-index: 1; padding-top: 4px; }
.route-pin { position: relative; display: inline-flex; color: var(--blue); margin-bottom: 14px; }
.route-pin-num {
  position: absolute; top: 3px; left: 0; right: 0; text-align: center; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 0.72rem;
}
.route-step h3 { font-size: 1rem; margin-bottom: 6px; }
.route-step p { font-size: 0.88rem; color: var(--muted); }

/* ---------------- Map teaser ---------------- */
.map-teaser { padding: 50px 0; }
.map-teaser-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: 22px; padding: 46px; color: #fff;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(245,166,35,0.16), transparent 42%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
}
.map-teaser-text { max-width: 460px; }
.map-teaser-text .eyebrow { margin-bottom: 12px; }
.map-teaser-inner h2 { color: #fff; }
.map-teaser-inner p { color: #cfd4ea; margin: 0 0 20px; }
.map-teaser-visual { flex-shrink: 0; }

/* ---------------- Job cards / listings ---------------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.recent-listings { padding: 20px 0 60px; }
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.job-card {
  display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius);
  padding: 18px; color: var(--ink); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.job-card h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.job-card-head { display: flex; justify-content: space-between; align-items: center; }
.job-card-company { color: var(--muted); font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.job-card-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.job-card-salary { font-weight: 700; color: var(--navy-900); font-size: 0.92rem; }
.job-card-date { color: var(--muted); font-size: 0.78rem; margin-top: 6px; }
.job-card-cdi { border-left-color: #1a9c6b; }
.job-card-cdd { border-left-color: var(--blue); }
.job-card-stage { border-left-color: var(--amber); }
.job-card-freelance { border-left-color: #7024b8; }
.job-card-journalier { border-left-color: #d64545; }
.job-card-temps-partiel { border-left-color: var(--blue); }

/* ---------------- Testimonials ---------------- */
.testimonials { padding: 70px 0 90px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.testimonial-card p { font-size: 0.94rem; color: var(--ink); margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 0.88rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--muted); }

/* ---------------- Leaflet popup (offres carte) ---------------- */
.map-popup { display: flex; flex-direction: column; gap: 3px; min-width: 180px; }
.map-popup-tag { align-self: flex-start; color: #fff; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.map-popup strong { font-size: 0.92rem; color: var(--navy-900); }
.map-popup-line { font-size: 0.8rem; color: var(--muted); }
.map-popup a { font-size: 0.82rem; font-weight: 700; margin-top: 4px; }
.leaflet-popup-content-wrapper { border-radius: 12px; }

.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.tag-cdi { background: #E4F7EE; color: #106b46; }
.tag-cdd { background: #EAF0FF; color: var(--blue-dark); }
.tag-stage { background: #FFF3DE; color: var(--amber-dark); }
.tag-freelance { background: #F3E8FF; color: #7024b8; }
.tag-default { background: var(--paper-alt); color: var(--navy-800); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-verified { background: #E4F7EE; color: #106b46; }
.badge-pending { background: #FFF3DE; color: var(--amber-dark); }
.badge-rejected { background: #FCEBEB; color: #a52222; }

/* ---------------- Search bar ---------------- */
.listings-section { padding: 36px 0 60px; }
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; background: #fff; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); margin: 18px 0 8px; }
.search-bar input, .search-bar select { flex: 1; min-width: 140px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); font-family: var(--font-body); font-size: 0.9rem; }
.search-bar-compact { margin: 0; }

/* ---------------- Forms ---------------- */
.auth-section { padding: 48px 0 80px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-sm); }
.auth-sub { color: var(--muted); margin-bottom: 18px; }
.auth-switch { text-align: center; margin-top: 14px; font-size: 0.9rem; }
.role-switch { display: flex; gap: 10px; margin-bottom: 22px; }
.role-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--navy-900); font-weight: 700; font-size: 0.88rem;
}
.role-btn.active { border-color: var(--blue); background: #EAF0FF; color: var(--blue-dark); }
.role-btn:hover { text-decoration: none; }

.stack-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.88rem; color: var(--navy-900); }
.form-row .opt, .form-row .hint { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number],
textarea, select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.92rem; background: #fff; color: var(--ink);
}
input[type=file] {
  padding: 10px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--paper); font-size: 0.86rem;
}
input[type=file]:invalid { border-color: var(--red); background: #FCEBEB; }
.file-size-warning {
  color: var(--red); font-size: 0.8rem; font-weight: 600; margin-top: 6px; padding: 8px 12px;
  background: #FCEBEB; border-radius: 8px; border: 1px solid #f5c2c2;
}
textarea { resize: vertical; font-family: var(--font-body); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); }

/* ---------------- Map widgets ---------------- */
.map-picker { width: 100%; height: 320px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); margin-top: 8px; z-index: 1; }
.map-view { width: 100%; height: 300px; border-radius: var(--radius); border: 1px solid var(--line); margin: 12px 0 24px; }
.map-full { width: 100%; height: calc(100vh - 210px); min-height: 480px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }

/* Bouton flottant "Utiliser ma position actuelle" (style Yango/Uber) */
.locate-control { margin: 0 10px 10px 0 !important; }
.locate-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.locate-btn:hover { background: var(--paper-alt); transform: scale(1.05); }
.locate-btn:active { transform: scale(0.96); }
.locate-btn:disabled { cursor: wait; }
.locate-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--paper-alt);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: locate-spin 0.7s linear infinite;
}
@keyframes locate-spin { to { transform: rotate(360deg); } }
.locate-status {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.locate-status-error { color: var(--red); }
.geocode-results {
  display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-md); z-index: 500; max-height: 220px; overflow-y: auto; margin-top: 4px;
}
.geocode-result-item { padding: 10px 12px; font-size: 0.86rem; cursor: pointer; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.geocode-result-item svg { flex-shrink: 0; color: var(--muted); }
.geocode-result-item:last-child { border-bottom: none; }
.geocode-result-item:hover { background: var(--paper-alt); }
.geocode-loading, .geocode-empty { color: var(--muted); cursor: default; }
.geocode-loading:hover, .geocode-empty:hover { background: none; }

.quick-city-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.quick-city-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy-900); font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: all .12s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue-dark); }
.chip-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.map-section { padding: 22px 0 40px; }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.map-layout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.map-list { max-height: calc(100vh - 210px); min-height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.map-list-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; }
.map-list-item:hover { border-color: var(--blue); }

/* Leaflet cluster color override to match brand */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(35,70,255,0.18); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: var(--blue); color: #fff; font-weight: 700; }

/* ---------------- Dashboard ---------------- */
.dash-section { padding: 32px 0 70px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; margin-top: 26px; }
.list-stack { display: flex; flex-direction: column; gap: 10px; }
.listing-row {
  display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; gap: 12px; flex-wrap: wrap;
}
.listing-row-title { font-weight: 700; color: var(--navy-900); }
.listing-row-meta { display: flex; gap: 10px; font-size: 0.8rem; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.listing-row-actions { display: flex; align-items: center; gap: 10px; }
.app-count { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.empty-state { background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 36px; text-align: center; }
.conv-stack { display: flex; flex-direction: column; gap: 8px; }
.conv-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--ink); }
.conv-item:hover { border-color: var(--blue); text-decoration: none; }
.conv-item strong { display: block; font-size: 0.88rem; }
.conv-item small { color: var(--muted); font-size: 0.78rem; }

.status-pill { padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.status-en_attente { background: #FFF3DE; color: var(--amber-dark); }
.status-vue { background: #EAF0FF; color: var(--blue-dark); }
.status-validee { background: #E4F7EE; color: #106b46; }
.status-refusee { background: #FCEBEB; color: #a52222; }
.status-active { color: #106b46; font-weight: 700; }
.status-pourvue, .status-fermee { color: var(--muted); font-weight: 700; }

/* ---------------- Listing detail ---------------- */
.listing-detail-section { padding: 34px 0 70px; }
.listing-detail-head { display: flex; gap: 10px; margin-bottom: 10px; }
.listing-employer { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 600; }
.listing-meta-line { color: var(--muted); font-size: 0.9rem; }
.listing-salary { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--navy-900); margin: 10px 0 20px; }
.listing-description { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 4px; }
.listing-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.apply-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.already-applied { background: var(--paper-alt); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.back-link { display: inline-block; margin-bottom: 14px; font-weight: 600; font-size: 0.88rem; }

/* ---------------- Applicant list ---------------- */
.applicant-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.applicant-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.applicant-head { display: flex; align-items: center; gap: 12px; }
.applicant-message { background: var(--paper-alt); padding: 10px 14px; border-radius: 10px; margin: 12px 0; font-size: 0.9rem; }
.applicant-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------------- Profile ---------------- */
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 16px; }
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item { display: flex; justify-content: space-between; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; font-size: 0.86rem; }
.doc-type { font-weight: 700; color: var(--navy-900); }
.doc-manage-list { display: flex; flex-direction: column; gap: 10px; }
.doc-manage-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.doc-manage-info { display: flex; flex-direction: column; gap: 3px; }
.doc-manage-info a { font-size: 0.82rem; }
.doc-manage-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-manage-form input[type=file] { flex: 1; min-width: 160px; padding: 8px; font-size: 0.8rem; }

/* ---------------- Chat ---------------- */
.chat-section { padding: 28px 0 60px; }
.chat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 68vh; min-height: 440px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.chat-msg { max-width: 72%; display: flex; flex-direction: column; }
.chat-msg-mine { align-self: flex-end; align-items: flex-end; }
.chat-msg-theirs { align-self: flex-start; align-items: flex-start; }
.chat-bubble { padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; white-space: pre-wrap; word-break: break-word; }
.chat-msg-mine .chat-bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg-theirs .chat-bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-time { font-size: 0.68rem; color: var(--muted); margin-top: 3px; }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input-row textarea { flex: 1; resize: none; }
.conv-full-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.conv-full-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); }
.conv-full-item:hover { border-color: var(--blue); text-decoration: none; }
.conv-full-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.conv-full-body strong { font-size: 0.92rem; }
.conv-full-body small { color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-full-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-900); color: #cfd4ea; padding: 50px 0 0; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 34px; }
.footer-inner .brand { color: #fff; margin-bottom: 10px; }
.footer-tagline { font-size: 0.86rem; color: #9aa1c2; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.footer-col a { display: block; color: #b9bfd9; font-size: 0.88rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; font-size: 0.8rem; color: #8891b5; }

/* ---------------- Bannière d'installation (PWA) ---------------- */
.install-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400; max-width: 480px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 14px; display: flex; align-items: center; gap: 12px;
}
.install-banner-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--paper-alt); display: flex; align-items: center; justify-content: center; }
.install-banner-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.install-banner-text strong { font-size: 0.88rem; color: var(--navy-900); }
.install-banner-text span { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.install-banner-close { background: none; border: none; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; flex-shrink: 0; }
.install-banner-close:hover { color: var(--navy-900); }
@media (max-width: 560px) {
  .install-banner { flex-wrap: wrap; }
  .install-banner-text { order: 2; width: 100%; }
  .install-banner-icon { order: 1; }
  .install-banner-action, #installBannerAction { order: 3; }
}

/* ---------------- Admin ---------------- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy-900); color: #cfd4ea; padding: 22px 16px; }
.admin-sidebar a { display: block; color: #cfd4ea; padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.admin-main { padding: 30px 34px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.data-table th { background: var(--paper-alt); font-weight: 700; color: var(--navy-900); }
.data-table tr:last-child td { border-bottom: none; }
.pill-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-map-card { transform: none; max-width: 480px; }
  .route-track { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .route-track::before { display: none; }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-list { max-height: 320px; min-height: unset; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; gap: 4px; padding: 12px; }
  .map-teaser-inner { flex-direction: column; text-align: center; }
  .map-teaser-text { max-width: none; }
}
@media (max-width: 700px) {
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 24px; border-bottom: 1px solid var(--line); display: none; gap: 4px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .user-name-sm { display: none; }
  .hero-text h1 { font-size: 2rem; }
  .hero-search { flex-direction: column; border-radius: 18px; }
  .hero-search-icon { display: none; }
  .hero-mini-map { height: 220px; }
  .job-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .route-track { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .map-teaser-visual svg { width: 140px; height: 140px; }
}
