:root{
  --bg:#eef3fb;
  --bg-soft:#f7f9fd;
  --panel:#ffffff;
  --card:#ffffff;
  --text:#182230;
  --text-soft:#344054;
  --muted:#667085;
  --line:#dbe4f0;
  --line-soft:#e9eef5;
  --accent:#1F5ED9;
  --accent-2:#3b82f6;
  --accent-soft:#eaf2ff;
  --ok:#16a34a;
  --ok-soft:#eafaf0;
  --warn:#d97706;
  --warn-soft:#fff4e5;
  --danger:#dc2626;
  --danger-soft:#fff1f1;
  --shadow:0 12px 32px rgba(15,23,42,.08);
  --shadow-soft:0 8px 24px rgba(15,23,42,.06);
  --radius:18px;
  --radius-sm:12px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  width:100%;
  min-height:100%;
  margin:0;
  padding:0;
  overflow-x:hidden;
}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31,94,217,.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(59,130,246,.08), transparent 55%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  color:var(--text);
  line-height:1.45;
}

a{
  color:var(--accent);
  text-decoration:none;
}

a:hover{
  opacity:.95;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

.container,
.wrap,
.pageWrap{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:18px;
}

/* ================= HEADER ================= */

.top{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(24,34,48,.08);
}

.top__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand__logo{
  width:44px;
  height:44px;
  object-fit:contain;
}

.brand__name{
  font-weight:900;
  letter-spacing:.2px;
  color:var(--text);
}

.brand__tagline{
  color:var(--muted);
  font-size:13px;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.nav__link{
  color:var(--text-soft);
  font-weight:700;
}

.nav__link:hover{
  color:var(--accent);
}

/* ================= HERO ================= */

.hero{
  display:grid;
  grid-template-columns:1.35fr .85fr;
  gap:16px;
  padding:18px 0 10px;
}

.hero__content{
  background:rgba(255,255,255,.74);
  border:1px solid rgba(31,94,217,.10);
  border-radius:26px;
  padding:22px;
  box-shadow:var(--shadow);
}

.hero h1{
  margin:0 0 8px;
  font-size:32px;
  line-height:1.08;
  color:var(--text);
}

.hero p{
  margin:0 0 14px;
  color:var(--muted);
}

.hero__note{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line-soft);
  background:#fbfcff;
}

/* ================= FILTERS ================= */

.filters{
  display:grid;
  grid-template-columns:1fr 1fr 2fr auto auto;
  gap:10px;
  align-items:end;
  margin-top:16px;
  padding:14px;
  border-radius:20px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.94));
  box-shadow:var(--shadow-soft);
}

.field{
  min-width:0;
}

.field label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:0 0 6px;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:800;
}

.field select,
.field input,
.field textarea{
  width:100%;
  max-width:100%;
  min-width:0;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  outline:none;
  box-shadow:none;
}

.field select:focus,
.field input:focus,
.field textarea:focus{
  border-color:rgba(31,94,217,.40);
  box-shadow:0 0 0 4px rgba(31,94,217,.08);
}

.field input::placeholder,
.field textarea::placeholder{
  color:#98a2b3;
}

/* ================= LAYOUT ================= */

.layout{
  display:grid;
  grid-template-columns:380px minmax(0,1fr);
  gap:16px;
  align-items:start;
}

.map,
.list,
.security__inner,
.cta,
.card,
.panelBox,
.list__bar{
  min-width:0;
}

.map{
  border:1px solid rgba(31,94,217,.10);
  border-radius:24px;
  background:rgba(255,255,255,.78);
  overflow:hidden;
  box-shadow:var(--shadow);
}

.map__top{
  padding:14px 16px;
  border-bottom:1px solid var(--line-soft);
  background:#fbfcff;
}

.map__title{
  color:var(--text);
  font-weight:900;
}

.map__hint{
  color:var(--muted);
}

.map__canvas{
  background:#fff;
}

.map__foot{
  padding:12px 16px;
  border-top:1px solid var(--line-soft);
}

.list__bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:14px 16px;
  border:1px solid rgba(31,94,217,.10);
  border-radius:24px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--shadow);
  margin-bottom:12px;
}

.list__title{
  font-weight:900;
  color:var(--text);
}

/* ================= GRID ================= */

.grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}

/* ================= CARD ================= */

.card{
  border:1px solid rgba(31,94,217,.14);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,249,253,.96));
  overflow:hidden;
  box-shadow:var(--shadow);
}

.card__head{
  padding:18px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  border-bottom:1px solid var(--line-soft);
}

.card__body{
  padding:18px;
}

.card__foot{
  padding:16px 18px;
  border-top:1px solid var(--line-soft);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ================= AGENT ================= */

.agent__name{
  margin:0;
  font-size:18px;
  line-height:1.2;
  color:var(--text);
  font-weight:900;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.agent__meta{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.agent__id{
  color:#b3bfd4;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.agentCardAvatar{
  width:54px;
  height:54px;
  border-radius:999px;
  object-fit:cover;
  flex:0 0 auto;
  border:2px solid rgba(255,255,255,.95);
  box-shadow:0 8px 18px rgba(15,23,42,.16);
  background:#eef2f7;
}

/* ================= BADGES / PILLS ================= */

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text-soft);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  max-width:100%;
}

.pill--blue{
  background:#eef4ff;
  border-color:#bfd3ff;
  color:#2457c5;
}

.pill--gray{
  background:#f2f4f7;
  border-color:#d7dde5;
  color:#475467;
}

.pill--ok{
  background:var(--ok-soft);
  border-color:#bde4c7;
  color:#166534;
}

.pill--off{
  background:#eef2f6;
  border-color:#d6dde6;
  color:#667085;
}

.pill--warn{
  background:var(--warn-soft);
  border-color:#f4d7a0;
  color:#9a6700;
}

.pill--danger{
  background:var(--danger-soft);
  border-color:#f3b4b4;
  color:#b42318;
}

/* BADGE CERTIFIÉ */
.pill.pill--verified{
  width: 70px !important;
  height: 24px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(64,140,255,.35) !important;
  background: rgba(64,140,255,.16) !important;
  overflow: hidden !important;
}

.verifiedIcon{
  width:34px;
  height:34px;
  object-fit:contain;
  flex:0 0 auto;
  filter:drop-shadow(0 1px 4px rgba(31,94,217,.20));
}


/* L’ICÔNE doit remplir le rond */
.pill.pill--verified .verifiedIcon{
  width: 80px !important;
  height: 80px !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
}

/* ================= ROW ================= */

.row{
  display:grid;
  grid-template-columns:130px minmax(0,1fr);
  gap:12px;
  padding:10px 0;
  border-bottom:1px dashed var(--line-soft);
}

.row:last-child{
  border-bottom:none;
}

.label{
  color:#8a94a6;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:900;
}

.value{
  min-width:0;
  font-size:14px;
  color:var(--text-soft);
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* ================= CHIPS ================= */

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
}

.chip{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  font-size:12px;
  padding:7px 11px;
  border-radius:999px;
  background:#fff;
  border:1px solid #dce6f8;
  color:#41536e;
  font-weight:700;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.chips--legend .chip--blue,
.chip--blue{
  background:#eef4ff;
  color:#2457c5;
  border-color:#bfd3ff;
}

.chips--legend .chip--gray,
.chip--gray{
  background:#f2f4f7;
  color:#475467;
  border-color:#d7dde5;
}

.chips--legend .chip--green,
.chip--green{
  background:#eafaf0;
  color:#166534;
  border-color:#bde4c7;
}

/* ================= BUTTON ================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  max-width:100%;
  padding:10px 14px;
  border-radius:14px;
  background:linear-gradient(180deg, var(--accent-2), var(--accent));
  color:#fff;
  font-weight:800;
  border:1px solid rgba(31,94,217,.10);
  box-shadow:0 8px 18px rgba(31,94,217,.16);
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  cursor:pointer;
}

.btn:hover{
  opacity:.96;
}

.btn--primary{
  background:linear-gradient(180deg, var(--accent-2), var(--accent));
  color:#fff;
}

.btn--ghost{
  background:#fff;
  border:1px solid #dce6f8;
  color:var(--accent);
  box-shadow:0 8px 16px rgba(15,23,42,.05);
}

.btn--danger{
  background:linear-gradient(180deg, #ef4444, #dc2626);
  color:#fff;
  border-color:transparent;
}

.btn--small{
  min-height:34px;
  padding:8px 10px;
  font-size:13px;
}

/* ================= PANELS / AVIS ================= */

.panelBox{
  margin-top:12px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line-soft);
  background:#fff;
  box-shadow:var(--shadow-soft);
  display:none;
}

.panelBox.is-open{
  display:block;
}

.panelBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid var(--line-soft);
  background:#f8fafc;
}

.panelTitle{
  font-weight:900;
  font-size:13px;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.panelClose{
  appearance:none;
  border:1px solid #d7dde5;
  background:#aaa;
  color:var(--text-soft);
  border-radius:12px;
  padding:8px 10px;
  font-weight:900;
  cursor:pointer;
}

.miniMap iframe{
  width:100%;
  height:220px;
  border:0;
  display:block;
}

.agentRatings{
  padding:14px;
}

.agentRatingsTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.agentRatingsTitle{
  font-weight:900;
  letter-spacing:.2px;
  color:var(--text);
}

.agentRatingsSummary{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--text-soft);
}

.ratingValue{
  font-weight:900;
  color:var(--text);
}

.stars{
  display:inline-flex;
  gap:3px;
}

.star{
  font-size:14px;
  opacity:.28;
  color:#c3c9d4;
}

.star--on{
  opacity:1;
  color:#f4b400;
}

.agentRatingsGrid{
  margin-top:10px;
  display:grid;
  gap:8px;
}

.rateRow{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:10px;
  align-items:center;
}

.rateLabel{
  color:var(--text-soft);
  font-weight:700;
}

.rateNum{
  width:42px;
  text-align:right;
  color:var(--text);
  font-weight:800;
}

.agentComments{
  margin-top:14px;
}

.agentCommentsTitle{
  font-weight:900;
  margin-bottom:8px;
  color:var(--text);
}

.reviews{
  display:grid;
  gap:10px;
}

.review{
  padding:12px 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--line-soft);
}

.reviewTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
  flex-wrap:wrap;
}

.reviewName{
  font-weight:900;
  color:var(--text);
}

.reviewText{
  color:var(--text-soft);
  line-height:1.5;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.reviewDate{
  font-size:12px;
  color:var(--muted);
}

.reviewForm{
  margin-top:16px;
  padding-top:14px;
  border-top:1px dashed var(--line);
}

.reviewLoginHint{
  margin-top:10px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line-soft);
  background:#f8fafc;
  font-size:13px;
  line-height:1.5;
  color:var(--text-soft);
}

/* ================= UTILS ================= */

.muted{
  color:var(--muted);
}

.notice{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1e3a8a;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.toolbar > *{
  min-width:0;
}

.rowActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  min-width:0;
}

.card__title,
.title{
  color:var(--text);
  font-weight:900;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.card__sub,
.userMeta,
.agentMeta,
.messageBox,
.reviewText,
td,
th{
  overflow-wrap:anywhere;
  word-break:break-word;
}

.metaGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}

.metaCard{
  min-width:0;
}

/* ================= COUNTERS ================= */

.complaintCounters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.counterBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  border:1px solid #dce6f8;
  background:#fff;
  color:var(--text);
  box-shadow:0 6px 14px rgba(15,23,42,.05);
}

.counterBadge--new{
  background:#eef4ff;
  border-color:#bfd3ff;
  color:#2457c5;
}

.counterBadge--progress{
  background:#fff4e5;
  border-color:#f4d7a0;
  color:#9a6700;
}

.counterBadge--total{
  background:#eafaf0;
  border-color:#bde4c7;
  color:#166534;
}

/* ================= FOOTER ================= */

.footer{
  border-top:1px solid rgba(24,34,48,.08);
  background:rgba(255,255,255,.75);
  margin-top:22px;
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:13px;
  flex-wrap:wrap;
}

/* ================= TABLES ================= */

.tableWrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

th,
td{
  padding:12px 10px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid var(--line-soft);
  color:var(--text-soft);
}

th{
  color:var(--text);
  font-size:13px;
  font-weight:900;
  background:#f8fafc;
}

/* ================= MESSAGE BOX ================= */

.messageBox{
  padding:14px;
  border-radius:16px;
  margin-top:10px;
  border:1px solid var(--line-soft);
  background:#fff;
}

.fromUser{
  background:#eef4ff;
  border-color:#bfd3ff;
}

.fromAdmin{
  background:#eafaf0;
  border-color:#bde4c7;
}

/* ================= MOBILE ================= */

@media (max-width: 1100px){
  .layout{
    grid-template-columns:1fr;
  }

  .map{
    order:2;
  }

  .list{
    order:1;
  }
}

@media (max-width: 980px){
  .hero{
    grid-template-columns:1fr;
  }

  .filters{
    grid-template-columns:1fr 1fr;
  }

  .field--search{
    grid-column:1 / -1;
  }
}

@media (max-width: 860px){
  .grid{
    grid-template-columns:1fr;
  }

  .metaGrid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 768px){
  .container,
  .wrap,
  .pageWrap{
    padding:14px !important;
  }

  .top__inner{
    align-items:flex-start;
  }

  .nav,
  .rowActions,
  .complaintCounters,
  .toolbar{
    width:100%;
  }

  .toolbar{
    flex-direction:column;
    align-items:stretch;
  }

  .rowActions{
    flex-direction:column;
    align-items:stretch;
  }

  .rowActions .btn,
  .nav .btn,
  .nav .nav__link{
    width:100%;
    justify-content:center;
    text-align:center;
  }

  .filters{
    grid-template-columns:1fr;
    padding:12px;
  }

  .hero__content,
  .card,
  .map,
  .list__bar,
  .security__inner,
  .cta{
    border-radius:20px;
  }

  .card__head{
    flex-direction:column;
    align-items:flex-start;
  }

  .agent__id{
    white-space:normal;
  }

  .row{
    grid-template-columns:1fr;
    gap:6px;
  }

  .value{
    font-size:14px;
  }

  .card__foot{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .card__foot .btn{
    width:100%;
  }

  .rateRow{
    grid-template-columns:1fr auto;
  }

  .rateNum{
    width:auto;
  }

  .tableWrap table{
    min-width:720px;
  }
}

@media (max-width: 520px){
  .container,
  .wrap,
  .pageWrap{
    padding:12px !important;
  }

  .brand__logo{
    width:40px;
    height:40px;
  }

  .brand__name{
    font-size:15px;
  }

  .brand__tagline{
    font-size:12px;
  }

  .hero h1{
    font-size:26px;
  }

  .card__head,
  .card__body,
  .card__foot{
    padding:14px;
  }

  .agentCardAvatar{
    width:48px;
    height:48px;
  }

  .pill{
    font-size:11px;
    padding:7px 10px;
  }

  .pill--verified{
    min-width:52px;
    height:34px;
  }

  .verifiedIcon{
    width:20px;
    height:20px;
  }

  .card__foot{
    grid-template-columns:1fr;
  }

  .reviewTop,
  .agentRatingsTop{
    flex-direction:column;
    align-items:flex-start;
  }

  .panelBar{
    flex-direction:column;
    align-items:flex-start;
  }

  .counterBadge{
    width:100%;
    justify-content:center;
  }
}







/* =========================
   FIX HEADER MOBILE
========================= */
@media (max-width: 768px){

  .top{
    position:relative !important;
    top:auto !important;
    backdrop-filter:none !important;
  }

  .top__inner{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:10px !important;
    padding:6px 0 !important;
  }

  .brand{
    width:100%;
    align-items:center;
  }

  .brand__logo{
    width:38px !important;
    height:38px !important;
  }

  .brand__name{
    font-size:15px !important;
    line-height:1.1;
  }

  .brand__tagline{
    font-size:11px !important;
    line-height:1.2;
  }

  .nav{
    width:100%;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  .nav__link{
    display:flex !important;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 12px;
    border-radius:12px;
    background:#fff;
    border:1px solid #dce6f8;
    font-weight:800;
  }

  .nav .btn{
    width:100% !important;
    min-height:42px !important;
    padding:10px 12px !important;
    font-size:14px !important;
  }
}




/* =========================
   FIX OVERFLOW MOBILE
========================= */

/* Empêche les débordements globaux */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html, body{
  width:100%;
  overflow-x:hidden;
}

/* Les wrappers principaux peuvent rétrécir */
.container,
.wrap,
.pageWrap,
.card,
.card__body,
.toolbar,
.rowActions,
.metaGrid,
.metaCard,
.review,
.reviewForm,
.panelBox,
.value,
.label{
  min-width:0;
}

/* Tous les textes longs doivent casser */
.card,
.card *{
  word-wrap:break-word;
  overflow-wrap:anywhere;
}

/* Inputs / textarea / select */
input,
select,
textarea{
  max-width:100%;
}

/* Images responsives */
img{
  max-width:100%;
  height:auto;
}

/* Boutons ne doivent pas casser la largeur */
.btn{
  max-width:100%;
  white-space:normal;
  text-align:center;
}

/* Lignes type label / valeur */
.row{
  display:grid;
  grid-template-columns:140px minmax(0,1fr);
  gap:10px;
}

.value{
  min-width:0;
  overflow-wrap:anywhere;
}

/* Toolbar responsive */
.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.toolbar > *{
  min-width:0;
}

/* Grilles de meta */
.metaGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}

/* Table wrapper */
.tableWrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

/* Tables */
table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

th, td{
  vertical-align:top;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Colonnes longues */
td strong,
td span,
td div,
td a{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Messages / conversation */
.messageBox,
.reviewText,
.muted,
.agentMeta,
.userMeta,
.card__sub{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Titres */
.card__title,
.title,
.agent__name{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px){

  .container,
  .wrap,
  .pageWrap{
    padding:14px !important;
  }

  .card{
    padding:16px !important;
    border-radius:18px !important;
  }

  .toolbar{
    flex-direction:column;
    align-items:stretch;
  }

  .rowActions{
    display:flex;
    flex-direction:column;
    width:100%;
    gap:10px;
  }

  .rowActions .btn{
    width:100%;
    justify-content:center;
  }

  .row{
    grid-template-columns:1fr;
    gap:6px;
  }

  .metaGrid{
    grid-template-columns:1fr;
  }

  /* Tables en mode mobile */
  table{
    font-size:14px;
  }

  th, td{
    padding:10px 8px;
  }

  /* Réduit les grosses cellules */
  .tableWrap table{
    min-width:700px;
  }
}




/* =========================
   HEADER MOBILE SIMPLE
========================= */

.menuToggle{
  display:none;
  border:1px solid #dce6f8;
  background:#fff;
  color:#1F5ED9;
  border-radius:12px;
  width:44px;
  height:44px;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(15,23,42,.06);
}

.mobileMenu{
  display:none;
  border-top:1px solid rgba(24,34,48,.08);
  background:rgba(255,255,255,.96);
}

.mobileMenu__inner{
  max-width:1180px;
  margin:0 auto;
  padding:12px 18px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mobileMenu.is-open{
  display:block;
}

@media (max-width: 768px){

  .top{
    position:relative !important; /* ne reste plus collé */
    top:auto !important;
    backdrop-filter:blur(10px);
  }

  .top__inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:nowrap !important;
  }

  .brand{
    min-width:0;
    flex:1;
  }

  .brand__logo{
    width:38px;
    height:38px;
  }

  .brand__name{
    font-size:15px;
  }

  .brand__tagline{
    font-size:11px;
  }

  .nav--desktop{
    display:none !important;
  }

  .menuToggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
  }

  .mobileMenu .nav__link{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    border-radius:12px;
    background:#fff;
    border:1px solid #dce6f8;
    color:#344054;
    font-weight:800;
  }

  .mobileMenu .btn{
    width:100%;
    justify-content:center;
  }
}






/* =========================
   HEADER MOBILE FIXE + BOUTON À DROITE
========================= */
@media (max-width: 768px){

  .top{
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: rgba(255,255,255,.94) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(24,34,48,.08) !important;
  }

  .top__inner{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }

  .brand{
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .brand__logo{
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 auto !important;
  }

  .brand > div,
  .brand__text{
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .brand__name,
  .brand__tagline{
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* cache la nav desktop sur mobile */
  .nav,
  .nav--desktop{
    display: none !important;
  }

  .menuToggle{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    border-radius: 14px !important;
    border: 1px solid #dce6f8 !important;
    background: #fff !important;
    color: #344054 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    box-shadow: 0 6px 14px rgba(15,23,42,.06) !important;
    cursor: pointer !important;
  }

  .mobileMenu{
    display: none;
    padding: 12px 14px 16px !important;
    border-top: 1px solid #e6edf7 !important;
    background: rgba(255,255,255,.98) !important;
  }

  .mobileMenu.open,
  .mobileMenu.is-open{
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .mobileMenu .navItem,
  .mobileMenu .nav__link{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 1px solid #dce6f8 !important;
    color: #344054 !important;
    font-weight: 800 !important;
  }

  .mobileMenu .btn{
    width: 100% !important;
    justify-content: center !important;
  }
}





/* =========================================================
   PATCH GLOBAL LISIBILITÉ
   Corrige les textes trop blancs sur fond clair
========================================================= */

/* Texte global */
body,
.card,
.card__body,
.card__head,
.card__foot,
.panelBox,
.review,
.reviewForm,
.metaCard,
.messageBox,
.notice,
.hero__content,
.list__bar,
.map,
.security__inner,
.cta,
.toolbar,
.wrap,
.pageWrap {
  color: #182230 !important;
}

/* Titres */
h1, h2, h3, h4,
.title,
.card__title,
.agent__name,
.panelTitle,
.agentRatingsTitle,
.agentCommentsTitle,
.security__title,
.cta__title,
.map__title {
  color: #182230 !important;
  opacity: 1 !important;
}

/* Sous-titres / textes secondaires */
p,
.muted,
.card__sub,
.brand__tagline,
.reviewDate,
.agent__id,
.map__hint,
.searchHint,
.userMeta,
.agentMeta,
.mutedSmall {
  color: #667085 !important;
  opacity: 1 !important;
}

/* Labels */
label,
.field label,
.label,
.rateLabel,
.metaTitle {
  color: #667085 !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

/* Valeurs / contenu */
.value,
.reviewText,
.reviewName,
.ratingValue,
.rateNum,
.agentRatingsSummary,
.panelTitle,
td,
th,
li,
span,
div {
  color: inherit;
}

/* Inputs */
input,
select,
textarea {
  color: #182230 !important;
  background: #ffffff !important;
  border: 1px solid #d0d5dd !important;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3 !important;
  opacity: 1 !important;
}

/* Liens */
a {
  color: #2457c5 !important;
}

a:hover {
  color: #1d4ed8 !important;
}

/* Boutons ghost */
.btn--ghost {
  color: #2457c5 !important;
}

/* Zones conversation */
.fromUser {
  color: #182230 !important;
}

.fromAdmin {
  color: #182230 !important;
}

.messageBox,
.messageBox * {
  color: #182230 !important;
}

.messageBox .mutedSmall,
.messageBox .reviewDate,
.messageBox small {
  color: #667085 !important;
}

/* Formulaires spécifiques plaintes / profil */
form,
form * {
  color: #182230;
}

/* Mais on garde les boutons en blanc */
.btn,
.btn * {
  color: #ffffff !important;
}

.btn--ghost,
.btn--ghost * {
  color: #2457c5 !important;
}

.btn--danger,
.btn--danger * {
  color: #ffffff !important;
}

/* Pills */
.pill,
.pill * {
  opacity: 1 !important;
}

/* Sécurise les titres trop pâles venant d'anciens styles inline */
[style*="color:#fff"],
[style*="color: #fff"],
[style*="color:#e9eefb"],
[style*="color: #e9eefb"],
[style*="color:#eaf0ff"],
[style*="color: #eaf0ff"] {
  color: #182230 !important;
}


/* Empêche les cartes de s'étirer à la hauteur des autres */
.grid{
  align-items:start !important;
}

.card.agent{
  align-self:start !important;
  height:auto !important;
}



.grid > .card{
  height:auto !important;
}

/* ================================
   BACKGROUND HOMEPAGE AGENT
================================ */

.agent-home {

    background-image: url('/assets/bg-agent.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 100vh;
    width: 100%;

}

/* overlay sombre pour lisibilité */

.agent-home::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background:linear-gradient(
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.55)
    );

    z-index:0;
}

/* contenu posé dessus */

.agent-home-content{
    position:relative;
    z-index:2;
}