:root{
  --kb-primary:#006233;
  --kb-secondary:#D21034;
  --kb-dark:#06251A;
  --kb-light:#F6FAF8;
  --kb-text:#0F172A;
  --kb-muted:#64748B;
  --kb-ring:0 20px 60px rgba(0,98,51,.20);
}
*{box-sizing:border-box}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--kb-text);background:linear-gradient(180deg,#fff 0,#f7fbf9 55%,#fff 100%)}
a{text-decoration:none}.text-kb{color:var(--kb-primary)}
.kb-navbar{background:rgba(255,255,255,.86);backdrop-filter:blur(14px);border-bottom:1px solid rgba(0,98,51,.12)}
.kb-logo-mark{width:42px;height:42px;border-radius:15px;background:linear-gradient(135deg,var(--kb-primary),var(--kb-secondary));color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:var(--kb-ring)}
.navbar-brand small{display:block;font-size:.72rem;color:var(--kb-muted);line-height:1}
.btn-kb{background:linear-gradient(135deg,var(--kb-primary),#039855);border:0;color:#fff;box-shadow:0 12px 28px rgba(0,98,51,.18)}
.btn-kb:hover{color:#fff;filter:brightness(.96)}
.btn-kb-outline{border:1px solid rgba(0,98,51,.35);color:var(--kb-primary);background:#fff}.btn-kb-outline:hover{background:var(--kb-primary);color:#fff}
.kb-hero{position:relative;overflow:hidden;border-radius:34px;background:radial-gradient(circle at top left,rgba(210,16,52,.16),transparent 30%),linear-gradient(135deg,#06251A,#006233);color:#fff;box-shadow:var(--kb-ring)}
.kb-hero:after{content:"";position:absolute;right:-80px;top:-80px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.12)}
.kb-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;box-shadow:0 18px 50px rgba(15,23,42,.06)}
.kb-search-panel{margin-top:-42px;position:relative;z-index:3}.kb-input{border-radius:16px;border:1px solid rgba(15,23,42,.12);padding:.9rem 1rem}.kb-input:focus{border-color:var(--kb-primary);box-shadow:0 0 0 .25rem rgba(0,98,51,.12)}
.kb-map{height:calc(100vh - 88px);min-height:560px;border-radius:28px;overflow:hidden;border:1px solid rgba(15,23,42,.12);box-shadow:var(--kb-ring)}
.kb-map-sidebar{position:absolute;z-index:800;left:24px;top:24px;width:min(440px,calc(100% - 48px));max-height:calc(100% - 48px);overflow:auto;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border:1px solid rgba(15,23,42,.10);border-radius:26px;box-shadow:0 25px 70px rgba(15,23,42,.16)}
.kb-map-shell{position:relative}.leaflet-popup-content-wrapper{border-radius:20px}.leaflet-popup-content{margin:14px;min-width:240px}.kb-popup-head{display:flex;gap:12px;align-items:center}.kb-avatar{width:56px;height:56px;border-radius:18px;object-fit:cover;border:2px solid #fff;box-shadow:0 10px 25px rgba(15,23,42,.18)}.kb-avatar-lg{width:104px;height:104px;border-radius:30px}.kb-avatar-initials{display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--kb-primary),var(--kb-secondary));font-weight:900}
.kb-marker{width:42px;height:42px;border-radius:16px;background:linear-gradient(135deg,var(--kb-primary),var(--kb-secondary));color:#fff;display:grid;place-items:center;border:3px solid #fff;box-shadow:0 14px 30px rgba(0,0,0,.25);font-weight:900}
.kb-stars{letter-spacing:1px;color:#F59E0B;font-size:.98rem}.kb-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-size:.78rem;font-weight:700;background:#EAF7F0;color:var(--kb-primary);margin:3px}.kb-badge-red{background:#FFE4E6;color:#BE123C}
.kb-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.kb-gallery img{width:100%;height:110px;object-fit:cover;border-radius:16px;cursor:pointer;transition:.2s}.kb-gallery img:hover{transform:translateY(-2px) scale(1.02)}
.kb-footer{background:linear-gradient(135deg,#031A12,#06251A);color:#fff}.kb-footer a{color:rgba(255,255,255,.78);margin-left:14px}.kb-footer a:hover{color:#fff}
.kb-admin-table{font-size:.92rem}.kb-status{border-radius:999px;padding:5px 10px;font-weight:800;font-size:.76rem}.kb-status.pending{background:#FEF3C7;color:#92400E}.kb-status.accepted{background:#DCFCE7;color:#166534}.kb-status.refused{background:#FFE4E6;color:#BE123C}
@media(max-width:768px){.kb-hero{border-radius:0;margin-inline:-12px}.kb-map{height:calc(100vh - 74px);border-radius:0}.kb-map-sidebar{left:10px;top:10px;width:calc(100% - 20px);max-height:50vh}.kb-footer a{display:inline-block;margin:6px 10px 0 0}.kb-search-panel{margin-top:-18px}}

/* Correctif carte mobile / Leaflet */
.kb-map-shell{position:relative;min-height:650px}
.kb-map{height:calc(100vh - 88px);min-height:620px;width:100%;background:#e8eef2;z-index:1}
.kb-map .leaflet-container{height:100%;width:100%}
.kb-map-loading,.kb-map-error{height:100%;min-height:420px;display:grid;place-items:center;text-align:center;padding:24px;color:#0f172a;background:linear-gradient(135deg,#f8fafc,#eef7f2)}
.kb-map-error{color:#b91c1c}
@media(max-width:768px){.kb-map-shell{min-height:calc(100vh - 90px)}.kb-map{height:calc(100vh - 76px);min-height:560px}.kb-map-sidebar{max-height:42vh;overflow:auto}}


/* i18n / RTL */
html[dir="rtl"] body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif;text-align:right}
html[dir="rtl"] .navbar-nav{padding-right:0}
html[dir="rtl"] .ms-auto{margin-left:0!important;margin-right:auto!important}
html[dir="rtl"] .me-1{margin-right:0!important;margin-left:.25rem!important}
html[dir="rtl"] .me-2{margin-right:0!important;margin-left:.5rem!important}
html[dir="rtl"] .float-end{float:left!important}
html[dir="rtl"] .text-md-end{text-align:left!important}
html[dir="rtl"] .kb-map-sidebar{left:auto;right:24px}
html[dir="rtl"] .leaflet-popup-content{text-align:right}
html[dir="rtl"] .input-group>:not(:first-child){border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:16px;border-bottom-left-radius:16px}
html[dir="rtl"] .input-group>:not(:last-child){border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:16px;border-bottom-right-radius:16px}
@media(max-width:768px){html[dir="rtl"] .kb-map-sidebar{right:10px;left:auto}}

/* ================================================================
   V2.3 - Carte ergonomique : panneau flottant, opacité, auto-cache
   ================================================================ */
.kb-map-page{background:#e8eef2;}
.kb-map-shell--immersive{position:relative;min-height:calc(100dvh - 88px);overflow:hidden;background:#dbe7e2;}
.kb-map-shell--immersive .kb-map{height:calc(100dvh - 88px);min-height:680px;width:100%;border:0;border-radius:0;box-shadow:none;z-index:1;background:#e8eef2;}
.kb-map-panel{--kb-map-tools-opacity:.92;position:absolute;z-index:850;left:24px;top:24px;width:min(440px,calc(100% - 48px));max-height:calc(100% - 48px);overflow:hidden;background:rgba(255,255,255,var(--kb-map-tools-opacity));backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(15,23,42,.10);border-radius:28px;box-shadow:0 26px 80px rgba(15,23,42,.20);transition:opacity .22s ease,transform .22s ease,visibility .22s ease;}
.kb-map-panel.is-collapsed{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-12px) scale(.985);}
.kb-map-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid rgba(15,23,42,.08);}
.kb-map-panel-body{padding:18px 20px 20px;max-height:calc(100dvh - 220px);overflow:auto;overscroll-behavior:contain;}
.kb-map-panel-icon{width:38px;height:38px;flex:0 0 38px;border-radius:16px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--kb-primary),var(--kb-secondary));box-shadow:0 14px 30px rgba(0,98,51,.20);}
.kb-icon-btn{width:46px;height:46px;display:inline-grid;place-items:center;padding:0;flex:0 0 46px;}
.kb-map-panel-hint{font-size:.82rem;color:#64748b;background:rgba(0,98,51,.07);border:1px solid rgba(0,98,51,.10);border-radius:16px;padding:10px 12px;}
.kb-map-opacity-box{background:rgba(248,250,252,.72);border:1px solid rgba(15,23,42,.07);border-radius:18px;padding:12px 14px;}
.kb-map-fab-tools{position:absolute;z-index:860;left:24px;top:24px;display:none;align-items:center;gap:10px;border:0;border-radius:999px;padding:12px 16px;background:linear-gradient(135deg,var(--kb-primary),#039855);color:#fff;font-weight:800;box-shadow:0 18px 50px rgba(0,98,51,.28);}
.kb-map-fab-tools.is-visible{display:inline-flex;}
.kb-map-fab-tools i{font-size:1rem;}
#kbPanelPin.is-active{background:var(--kb-primary);color:#fff;border-color:var(--kb-primary);}
.kb-map-panel.is-user-active{box-shadow:0 30px 90px rgba(0,98,51,.24);}
.kb-map-shell--immersive .leaflet-control-zoom{border:0!important;box-shadow:0 12px 35px rgba(15,23,42,.20)!important;}
.kb-map-shell--immersive .leaflet-control-zoom a{border:0!important;color:#0f172a!important;}
@media(max-width:992px){
  .kb-map-shell--immersive{min-height:calc(100dvh - 86px);}
  .kb-map-shell--immersive .kb-map{height:calc(100dvh - 86px);min-height:660px;}
  .kb-map-panel{left:12px;right:12px;top:12px;width:auto;max-height:min(64vh,620px);border-radius:28px;}
  .kb-map-panel-head{padding:16px 16px 12px;}
  .kb-map-panel-body{padding:14px 16px 16px;max-height:calc(min(64vh,620px) - 86px);}
  .kb-map-fab-tools{left:12px;top:12px;}
  .kb-map-panel .h4{font-size:1.45rem;}
}
@media(max-width:576px){
  .kb-map-shell--immersive .kb-map{height:calc(100dvh - 82px);min-height:620px;}
  .kb-map-panel{top:10px;left:10px;right:10px;max-height:58vh;border-radius:24px;}
  .kb-map-panel-head{gap:8px;padding:14px;}
  .kb-map-panel-body{padding:12px 14px 14px;max-height:calc(58vh - 82px);}
  .kb-map-panel-icon{display:none;}
  .kb-icon-btn{width:42px;height:42px;flex-basis:42px;border-radius:15px!important;}
  .kb-map-panel .h4{font-size:1.35rem;}
  .kb-map-fab-tools{top:10px;left:10px;padding:11px 14px;}
  .kb-map-fab-tools span{font-size:.92rem;}
}
html[dir="rtl"] .kb-map-panel{left:auto;right:24px;}
html[dir="rtl"] .kb-map-fab-tools{left:auto;right:24px;}
@media(max-width:992px){html[dir="rtl"] .kb-map-panel{right:12px;left:12px;}html[dir="rtl"] .kb-map-fab-tools{right:12px;left:auto;}}
@media(max-width:576px){html[dir="rtl"] .kb-map-panel{right:10px;left:10px;}html[dir="rtl"] .kb-map-fab-tools{right:10px;left:auto;}}

/* ================================================================
   V2.4 ULTIMATE - Contraste, accessibilité et ergonomie formulaires
   ================================================================ */
:root{
  --kb-primary-strong:#00562d;
  --kb-primary-bright:#008f4c;
  --kb-success-bg:#dcfce7;
  --kb-success-text:#14532d;
  --kb-warning-bg:#fff7ed;
  --kb-warning-text:#9a3412;
  --kb-danger-bg:#fee2e2;
  --kb-danger-text:#991b1b;
  --kb-focus:0 0 0 .26rem rgba(0,98,51,.18);
}

/* Boutons lisibles sur iPhone/Safari et liens Bootstrap dans les popups */
.btn-kb,
a.btn-kb,
button.btn-kb,
.kb-popup a.btn-kb,
.kb-popup .btn-kb,
.input-group .btn-kb{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:linear-gradient(135deg,var(--kb-primary-strong),var(--kb-primary-bright))!important;
  border:1px solid rgba(255,255,255,.18)!important;
  font-weight:850!important;
  text-shadow:0 1px 1px rgba(0,0,0,.20);
  box-shadow:0 14px 34px rgba(0,98,51,.24);
}
.btn-kb:hover,
.btn-kb:focus,
.kb-popup a.btn-kb:hover,
.kb-popup a.btn-kb:focus{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  filter:brightness(.94);
  transform:translateY(-1px);
}
.btn-kb:focus-visible,
.btn-kb-outline:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus{
  box-shadow:var(--kb-focus)!important;
}
.btn-kb-outline{
  color:var(--kb-primary-strong)!important;
  -webkit-text-fill-color:var(--kb-primary-strong)!important;
  border:1px solid rgba(0,86,45,.36)!important;
  background:#fff!important;
  font-weight:800;
}
.btn-kb-outline:hover,
.btn-kb-outline:focus{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:var(--kb-primary-strong)!important;
}

/* Popups carte : contraste + meilleur rendu mobile */
.leaflet-popup-content-wrapper{
  border-radius:26px!important;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 26px 70px rgba(15,23,42,.23)!important;
}
.leaflet-popup-tip{box-shadow:0 10px 28px rgba(15,23,42,.18)!important;}
.kb-popup{min-width:260px;max-width:min(340px,calc(100vw - 64px));color:var(--kb-text);}
.kb-popup-head{align-items:flex-start;gap:14px;}
.kb-popup-title{font-size:1.02rem;line-height:1.15;color:#111827;font-weight:900;}
.kb-popup-job{display:block;color:#475569!important;font-weight:650;margin-top:2px;}
.kb-popup-rating{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:4px;}
.kb-rating-score{font-size:.86rem;color:#334155;font-weight:850;white-space:nowrap;}
.kb-stars{color:#d97706!important;text-shadow:none;font-size:1rem;line-height:1;}
.kb-popup-location{color:#334155;font-weight:650;}
.kb-popup-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px;}
.kb-popup-actions .btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:.58rem .9rem;border-radius:15px!important;}
.kb-availability-badge,
.kb-badge.kb-availability-badge{
  display:inline-flex;align-items:center;gap:7px;
  min-height:42px;
  border-radius:999px;
  padding:.55rem .85rem;
  background:var(--kb-success-bg)!important;
  color:var(--kb-success-text)!important;
  border:1px solid #86efac;
  font-weight:900;
  box-shadow:none;
}
.kb-availability-badge::before{content:"";width:8px;height:8px;border-radius:999px;background:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.13);}
.kb-marker{color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 1px 1px rgba(0,0,0,.25);}
.leaflet-container a{color:inherit;}

/* Panneau carte : champ plus lisible et boutons tactiles */
.kb-map-panel .form-label{color:#0f172a;font-weight:850;}
.kb-map-panel .kb-input{background:rgba(255,255,255,.96);font-size:1rem;}
.kb-map-panel .input-group .btn{min-width:78px;border-top-right-radius:16px;border-bottom-right-radius:16px;}
.kb-map-fab-tools{color:#fff!important;-webkit-text-fill-color:#fff!important;}
.kb-icon-btn{color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;}
#kbPanelPin.is-active{color:#fff!important;-webkit-text-fill-color:#fff!important;}

/* Ergonomie générale formulaires client/artisan/admin */
.kb-card form .form-label,
form.kb-card .form-label,
.kb-card .form-label{
  color:#111827;
  font-weight:800;
  margin-bottom:.45rem;
}
.form-control,
.form-select,
.kb-input{
  min-height:52px;
  border-radius:17px!important;
  border:1px solid rgba(15,23,42,.14)!important;
  background:#fff;
  color:#111827;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
textarea.form-control,
textarea.kb-input{min-height:120px;line-height:1.45;}
.form-control::placeholder,
.form-select::placeholder{color:#94a3b8;opacity:1;}
.form-control:focus,
.form-select:focus,
.kb-input:focus{
  border-color:var(--kb-primary-strong)!important;
  background:#fff;
}
.form-check-input{width:3.1em;height:1.55em;cursor:pointer;}
.form-check-input:checked{background-color:var(--kb-primary-strong);border-color:var(--kb-primary-strong);}
.form-check-label{cursor:pointer;color:#334155;font-weight:650;}
.kb-form-help,.form-text{color:#64748b!important;font-size:.86rem;}
.kb-card h2,.kb-card h3,.kb-card h4{letter-spacing:-.02em;}
.kb-card .row.g-3{--bs-gutter-y:1.15rem;}
.kb-file-preview{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;}
.kb-file-thumb{width:76px;height:76px;border-radius:16px;object-fit:cover;border:1px solid rgba(15,23,42,.12);box-shadow:0 10px 24px rgba(15,23,42,.08);background:#f8fafc;display:grid;place-items:center;font-size:.72rem;text-align:center;padding:6px;color:#475569;overflow:hidden;}
.kb-field-error{margin-top:7px;color:var(--kb-danger-text);font-size:.86rem;font-weight:700;}
.was-validated .form-control:invalid,
.was-validated .form-select:invalid{border-color:#dc2626!important;box-shadow:0 0 0 .22rem rgba(220,38,38,.12)!important;}
.was-validated .form-control:valid,
.was-validated .form-select:valid{border-color:rgba(22,163,74,.55)!important;}
.kb-submit-locked{pointer-events:none;opacity:.84;}

/* Actions importantes en bas de formulaire sur mobile */
@media(max-width:576px){
  body{font-size:16px;}
  .container.py-4{padding-top:1.1rem!important;}
  .kb-card{border-radius:24px;padding:1.1rem!important;}
  .btn,.form-control,.form-select{font-size:1rem;}
  .btn-lg{min-height:54px;}
  .kb-popup{min-width:250px;}
  .leaflet-popup-content{margin:12px!important;}
  .kb-popup-actions .btn,
  .kb-availability-badge{width:100%;}
  .kb-popup-head .kb-avatar{width:54px;height:54px;border-radius:17px;}
}


/* ================================================================
   V3 Services : prestataires dynamiques
   ================================================================ */
.kb-provider-dashboard .kb-card,
.kb-provider-dashboard .kb-card-soft{scroll-margin-top:110px}
.kb-card-soft{background:linear-gradient(180deg,#ffffff,#f8fafc);border:1px solid rgba(15,23,42,.08);border-radius:26px;box-shadow:0 16px 45px rgba(15,23,42,.06)}
.kb-check-grid{display:flex;flex-wrap:wrap;gap:.55rem}.kb-check-pill{display:inline-flex;align-items:center;gap:.45rem;padding:.6rem .8rem;border:1px solid rgba(0,98,51,.18);background:#fff;border-radius:999px;color:#0f172a;font-weight:700;cursor:pointer;user-select:none;transition:.18s ease;min-height:42px}.kb-check-pill input{accent-color:#006233}.kb-check-pill:has(input:checked),.kb-check-pill.is-on{background:#eaf7f0;border-color:#006233;color:#00512b;box-shadow:0 8px 20px rgba(0,98,51,.12)}.kb-check-grid-static .kb-check-pill{cursor:default}.kb-template-block[style*="none"]{display:none!important}.kb-dynamic-service-fields{padding:1rem;border:1px dashed rgba(0,98,51,.25);background:linear-gradient(180deg,#fbfffd,#fff);border-radius:24px}.kb-badge-strong{background:#006233!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#006233!important}.kb-provider-dashboard .form-label{font-weight:800;color:#0f172a}.kb-provider-dashboard .form-text{color:#64748b}.kb-provider-dashboard textarea.kb-input{min-height:54px}.kb-provider-dashboard .btn-kb,.kb-provider-dashboard .btn-kb *{color:#fff!important;-webkit-text-fill-color:#fff!important}.kb-provider-dashboard code{color:#006233;background:#eaf7f0;padding:.12rem .35rem;border-radius:.45rem}.kb-gallery img{cursor:zoom-in}.kb-popup-job{font-weight:700;color:#334155}.kb-popup-title{color:#0f172a}.kb-popup-primary-action{color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:800}.kb-rating-score{color:#334155;font-weight:700}
@media (max-width: 575.98px){.kb-check-grid{gap:.42rem}.kb-check-pill{width:100%;justify-content:flex-start;border-radius:16px}.kb-provider-dashboard .display-6{font-size:2rem}.kb-provider-dashboard .kb-card{padding:1rem!important}}

/* ================================================================
   V3.1 ULTIMATE - Recherche autocomplétion + contraste fiche publique
   ================================================================ */
.kb-autocomplete{
  position:relative;
  z-index:920;
  margin-top:.55rem;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  box-shadow:0 20px 55px rgba(15,23,42,.14);
  overflow:hidden;
  max-height:280px;
  overflow-y:auto;
}
.kb-autocomplete-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:.78rem;
  padding:.78rem .9rem;
  border:0;
  border-bottom:1px solid rgba(15,23,42,.06);
  background:#fff;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  text-align:left;
  cursor:pointer;
}
.kb-autocomplete-item:hover,
.kb-autocomplete-item:focus{background:#f0fdf4;outline:0;}
.kb-autocomplete-icon{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:#eaf7f0;color:#006233;flex:0 0 38px;}
.kb-autocomplete-main{display:flex;flex-direction:column;line-height:1.2;min-width:0;flex:1;}
.kb-autocomplete-main strong{font-size:.98rem;color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.kb-autocomplete-main small{font-size:.78rem;color:#64748b!important;-webkit-text-fill-color:#64748b!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:.18rem;}
.kb-autocomplete-add{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:#006233;color:#fff;font-weight:900;flex:0 0 30px;}
.kb-autocomplete-pill{font-size:.72rem;font-weight:900;border-radius:999px;background:#fff7ed;color:#9a3412;padding:.32rem .55rem;white-space:nowrap;}
.kb-selected-chips{display:flex;flex-wrap:wrap;gap:.45rem;}
.kb-service-chip{display:inline-flex;align-items:center;gap:.45rem;border:1px solid rgba(0,98,51,.18);background:#eaf7f0;color:#00512b!important;-webkit-text-fill-color:#00512b!important;border-radius:999px;padding:.45rem .65rem;font-weight:850;font-size:.86rem;}
.kb-service-chip:hover{background:#dcfce7;border-color:#006233;}
html[dir="rtl"] .kb-autocomplete-item{text-align:right;}
@media(max-width:576px){.kb-autocomplete{max-height:230px}.kb-autocomplete-item{padding:.72rem}.kb-autocomplete-icon{width:34px;height:34px;flex-basis:34px}.kb-autocomplete-main strong{font-size:.94rem}}

/* Fiche prestataire : le texte ne doit jamais se retrouver noir sur une couverture sombre */
.kb-profile-hero{position:relative;overflow:hidden;}
.kb-profile-cover{height:260px;background:linear-gradient(135deg,#06251A,#006233);background-size:cover!important;background-position:center!important;}
.kb-profile-body{position:relative;margin-top:-86px;}
.kb-profile-summary-card{background:rgba(255,255,255,.97);border:1px solid rgba(15,23,42,.08);border-radius:30px;padding:18px;box-shadow:0 24px 70px rgba(15,23,42,.16);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
.kb-profile-provider-word{color:#006233!important;-webkit-text-fill-color:#006233!important;letter-spacing:.08em;}
.kb-profile-name{color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;font-weight:950;line-height:1.02;}
.kb-profile-job{color:#475569!important;-webkit-text-fill-color:#475569!important;font-weight:750;}
.kb-profile-summary-card .kb-stars{font-size:1.1rem;}
.kb-profile-summary-card .text-secondary{color:#475569!important;-webkit-text-fill-color:#475569!important;}
.kb-profile-summary{color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;line-height:1.55;}
.kb-profile-hero .kb-avatar-lg{background:#fff;border:4px solid #fff;box-shadow:0 18px 45px rgba(15,23,42,.18);}
@media(max-width:576px){.kb-profile-cover{height:210px}.kb-profile-body{margin-top:-72px;padding-left:1rem!important;padding-right:1rem!important}.kb-profile-summary-card{border-radius:26px;padding:14px;align-items:center!important}.kb-profile-name{font-size:1.75rem}.kb-profile-hero .kb-avatar-lg{width:92px;height:92px;border-radius:26px}}


/* ================================================================
   V3.2 - Contraste fiche + recherche/autocomplétion plus lisible
   ================================================================ */
.kb-profile-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.42));pointer-events:none;}
.kb-profile-cover{position:relative;overflow:hidden;border-radius:22px 22px 0 0;}
.kb-profile-summary-card{position:relative;z-index:2;color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;}
.kb-profile-summary-card *{text-shadow:none!important;}
.kb-profile-provider-word{background:#eaf7f0;color:#00512b!important;-webkit-text-fill-color:#00512b!important;display:inline-flex;align-items:center;width:max-content;padding:.24rem .55rem;border-radius:999px;font-weight:950;}
.kb-profile-name{color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;letter-spacing:-.03em;}
.kb-profile-job{color:#334155!important;-webkit-text-fill-color:#334155!important;}
.kb-profile-summary{font-size:1.05rem;}
.kb-autocomplete{z-index:1200;box-shadow:0 22px 60px rgba(15,23,42,.18);}
.kb-autocomplete-item strong{color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;}
.kb-autocomplete-item small{color:#64748b!important;-webkit-text-fill-color:#64748b!important;}
.kb-autocomplete-pill{margin-inline-start:auto;background:#eaf7f0;color:#00512b!important;-webkit-text-fill-color:#00512b!important;border-radius:999px;padding:.18rem .5rem;font-weight:900;font-size:.76rem;}
.kb-selected-chips{display:flex;flex-wrap:wrap;gap:.45rem;}
.kb-service-chip{border:1px solid rgba(0,98,51,.22);background:#fff;color:#00512b!important;-webkit-text-fill-color:#00512b!important;border-radius:999px;padding:.48rem .68rem;font-weight:850;display:inline-flex;align-items:center;gap:.42rem;box-shadow:0 8px 22px rgba(0,98,51,.08);}
.kb-service-chip:hover{background:#eaf7f0;}
@media(max-width:576px){.kb-profile-body{margin-top:-58px!important}.kb-profile-summary-card{margin-inline:.1rem}.kb-profile-summary{font-size:1rem}.kb-profile-cover{height:190px!important}}

/* ================================================================
   V3.3 - Autocomplétion visible + corrections contraste finales
   ================================================================ */
.kb-autocomplete{display:block;position:relative;z-index:5000!important;background:#fff!important;border:1px solid rgba(0,98,51,.18)!important;box-shadow:0 26px 70px rgba(15,23,42,.22)!important;}
.kb-autocomplete.d-none{display:none!important;}
.kb-autocomplete-status{padding:.9rem 1rem;color:#334155!important;-webkit-text-fill-color:#334155!important;font-weight:750;background:#fff;}
.kb-autocomplete-status.is-error{color:#991b1b!important;-webkit-text-fill-color:#991b1b!important;background:#fff1f2;}
.kb-autocomplete-item{min-height:58px;}
.kb-autocomplete-add,.kb-autocomplete-pill{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#006233!important;}
.kb-autocomplete-icon i{color:#006233!important;-webkit-text-fill-color:#006233!important;}
.kb-map-panel{overflow:visible!important;}
.kb-map-panel-body{overflow:auto!important;}
.kb-profile-summary-card,.kb-profile-summary-card *{color:inherit;}
.kb-profile-summary-card .kb-profile-name{color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;}
.kb-profile-summary-card .kb-profile-job,.kb-profile-summary-card .kb-rating-score{color:#334155!important;-webkit-text-fill-color:#334155!important;}
.btn-kb,.btn-kb:link,.btn-kb:visited,.btn-kb:hover,.btn-kb:focus,.btn-kb *{color:#fff!important;-webkit-text-fill-color:#fff!important;}
@media(max-width:576px){.kb-autocomplete{max-height:280px!important}.kb-map-panel{max-height:70vh!important}.kb-map-panel-body{max-height:calc(70vh - 82px)!important}}

/* V3.9 - Messagerie : lien email vers message ciblé */
.kb-message-bubble{transition:box-shadow .25s ease, transform .25s ease, border-color .25s ease;}
.kb-message-highlight{border:2px solid #006233!important;box-shadow:0 0 0 .25rem rgba(0,98,51,.14),0 16px 42px rgba(0,98,51,.16)!important;transform:translateY(-2px);}

/* ============================================================
   V3.11 - Messagerie temps réel : badge + popup premium
   ============================================================ */
.kb-menu-message-link{
  position:relative;
  display:inline-flex !important;
  align-items:center;
  gap:.45rem;
  border-radius:999px;
  padding:.55rem .8rem !important;
}
.kb-menu-message-icon{font-size:1.08rem;line-height:1;filter:drop-shadow(0 4px 8px rgba(0,98,51,.16));}
.kb-message-badge,
.kb-thread-unread{
  min-width:1.65rem;
  height:1.65rem;
  padding:0 .42rem;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.78rem;
  font-weight:900;
  line-height:1;
  background:#eef2f7;
  color:#64748b;
  border:1px solid rgba(100,116,139,.18);
  transition:all .22s ease;
}
.kb-message-badge.is-hot,
.kb-thread-unread.is-hot{
  background:linear-gradient(135deg,#d21034,#ff345d);
  color:#fff;
  border-color:rgba(210,16,52,.26);
  box-shadow:0 12px 26px rgba(210,16,52,.28);
  animation:kbPulseBadge 1.8s ease-in-out infinite;
}
.kb-message-badge.is-zero,
.kb-thread-unread.is-zero{opacity:.72;}
.kb-thread-unread.is-zero{display:none;}
@keyframes kbPulseBadge{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}

.kb-live-toast-zone{
  position:fixed;
  right:18px;
  bottom:calc(18px + env(safe-area-inset-bottom));
  z-index:2147483000;
  display:flex;
  flex-direction:column;
  gap:12px;
  width:min(94vw,440px);
  pointer-events:none;
}
.kb-live-message-toast{
  pointer-events:auto;
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:12px;
  padding:14px;
  border-radius:24px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(226,232,240,.92);
  box-shadow:0 22px 60px rgba(15,23,42,.18),0 0 0 1px rgba(255,255,255,.35) inset;
  backdrop-filter:blur(16px);
  transform:translateY(18px) scale(.98);
  opacity:0;
  transition:all .24s ease;
}
.kb-live-message-toast.is-visible{transform:translateY(0) scale(1);opacity:1;}
.kb-live-toast-icon{
  width:46px;height:46px;border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#006233,#0bb36d);
  color:#fff;font-size:1.35rem;
  box-shadow:0 12px 24px rgba(0,98,51,.22);
}
.kb-live-toast-body{min-width:0;}
.kb-live-toast-body strong{display:block;color:#0f172a;font-size:1rem;line-height:1.2;}
.kb-live-toast-body span{display:block;color:#64748b;font-size:.88rem;line-height:1.35;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.kb-live-toast-btn{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;
  padding:.62rem .9rem;
  background:#006233;
  color:#fff !important;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(0,98,51,.25);
}
.kb-live-toast-close{
  border:0;background:#f1f5f9;color:#475569;
  width:34px;height:34px;border-radius:999px;
  font-size:1.3rem;line-height:1;
  display:flex;align-items:center;justify-content:center;
}
.kb-message-live-in{animation:kbMessageIn .28s ease both;outline:2px solid rgba(0,98,51,.08);}
@keyframes kbMessageIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media (max-width:576px){
  .kb-live-toast-zone{left:10px;right:10px;bottom:calc(14px + env(safe-area-inset-bottom));width:auto;}
  .kb-live-message-toast{grid-template-columns:auto 1fr auto;padding:12px;border-radius:22px;}
  .kb-live-toast-close{display:none;}
  .kb-live-toast-btn{padding:.58rem .78rem;}
  .kb-menu-message-link{width:100%;justify-content:flex-start;}
  .kb-message-badge{margin-left:auto;}
}

/* =========================================================
   MyKhadma V4.0 - Messagerie sécurisée ergonomique
   ========================================================= */
.kb-menu-message-link{display:inline-flex!important;align-items:center;gap:.45rem;position:relative;font-weight:800}
.kb-menu-message-icon{font-size:1.08rem;line-height:1}
.kb-message-badge,.kb-thread-total-badge,.kb-thread-unread{display:inline-flex;align-items:center;justify-content:center;min-width:1.55rem;height:1.55rem;padding:0 .45rem;border-radius:999px;font-size:.78rem;font-weight:950;line-height:1;border:1px solid rgba(15,23,42,.08)}
.kb-message-badge.is-zero,.kb-thread-total-badge.is-zero,.kb-thread-unread.is-zero{background:#e5e7eb;color:#334155}
.kb-message-badge.is-hot,.kb-thread-total-badge.is-hot,.kb-thread-unread.is-hot{background:#dc2626;color:#fff;box-shadow:0 8px 20px rgba(220,38,38,.28);animation:kbBadgePulse 1.6s infinite}
@keyframes kbBadgePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.kb-messages-page .kb-card{border:1px solid rgba(15,23,42,.08);box-shadow:0 18px 45px rgba(15,23,42,.08)}
.kb-thread-panel{position:sticky;top:95px;max-height:calc(100vh - 120px);overflow:auto}
.kb-thread-list{max-height:65vh;overflow:auto;padding-right:.15rem}
.kb-thread-link{color:#0f172a;text-decoration:none;background:#fff;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.kb-thread-link:hover,.kb-thread-link.is-active{border-color:rgba(0,98,51,.28)!important;box-shadow:0 12px 30px rgba(0,98,51,.12);transform:translateY(-1px)}
.kb-thread-link.is-active{background:linear-gradient(135deg,rgba(0,98,51,.08),rgba(255,255,255,.9))}
.kb-conversation-card{min-height:70vh;display:flex;flex-direction:column}
.kb-message-list{flex:1;max-height:58vh;overflow:auto;padding:.25rem .25rem 1rem;scroll-behavior:smooth}
.kb-message-bubble{max-width:88%;border:1px solid rgba(15,23,42,.08);box-shadow:0 8px 22px rgba(15,23,42,.06);word-break:break-word;white-space:normal}
.kb-message-bubble.is-mine{margin-left:auto;background:linear-gradient(135deg,#e8fff2,#f7fffa);border-color:rgba(0,98,51,.16)}
.kb-message-bubble.is-other{margin-right:auto;background:#f8fafc;border-color:#e2e8f0}
.kb-message-body{font-size:1rem;line-height:1.55;color:#0f172a}
.kb-message-compose{background:rgba(255,255,255,.85);backdrop-filter:blur(10px);position:sticky;bottom:0;z-index:4;padding-bottom:.25rem}
.kb-message-highlight{outline:3px solid rgba(0,98,51,.25);animation:kbHighlight 2s ease 1}
@keyframes kbHighlight{0%{background:#fff7cc}100%{background:inherit}}
.kb-message-live-in{animation:kbMessageIn .28s ease-out both}
@keyframes kbMessageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.kb-live-toast-zone{position:fixed;right:18px;bottom:18px;z-index:3000;display:grid;gap:10px;max-width:min(420px,calc(100vw - 28px))}
.kb-live-message-toast{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;background:#fff;border:1px solid rgba(0,98,51,.16);border-radius:22px;padding:14px 14px;box-shadow:0 18px 50px rgba(15,23,42,.22);transform:translateY(16px);opacity:0;transition:.24s ease;color:#0f172a}
.kb-live-message-toast.is-visible{transform:translateY(0);opacity:1}
.kb-live-toast-icon{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#006233,#00a65a);color:#fff;font-size:1.28rem;box-shadow:0 10px 22px rgba(0,98,51,.25)}
.kb-live-toast-body{display:grid;gap:2px;min-width:0}.kb-live-toast-body strong{font-size:.98rem}.kb-live-toast-body span{font-size:.86rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kb-live-toast-btn{background:#006233;color:#fff!important;text-decoration:none;font-weight:900;border-radius:14px;padding:10px 13px;white-space:nowrap;box-shadow:0 8px 20px rgba(0,98,51,.22)}
.kb-live-toast-close{border:0;background:#f1f5f9;color:#0f172a;border-radius:999px;width:30px;height:30px;font-size:1.2rem;line-height:1;display:grid;place-items:center}
@media (max-width: 991.98px){.kb-thread-panel{position:static;max-height:none}.kb-thread-list{max-height:36vh}.kb-message-list{max-height:54vh}.kb-message-bubble{max-width:96%}}
@media (max-width: 575.98px){.kb-live-toast-zone{right:10px;left:10px;bottom:10px}.kb-live-message-toast{grid-template-columns:auto 1fr auto;padding:12px}.kb-live-toast-close{display:none}.kb-live-toast-btn{padding:9px 11px}.kb-message-compose{bottom:0}.kb-message-list{max-height:52vh}}

/* ================================================================
   V6 ULTIMATE RESTORED - Thème high-tech bleu nuit / cyan / carbone
   Toutes les fonctionnalités V1 -> V4 sont conservées, uniquement le style est modernisé.
   ================================================================ */
:root{
  --kb-primary:#22D3EE;
  --kb-secondary:#6366F1;
  --kb-accent:#14F195;
  --kb-danger:#FF3B6B;
  --kb-dark:#07111F;
  --kb-darker:#020617;
  --kb-light:#F8FAFC;
  --kb-text:#0F172A;
  --kb-muted:#64748B;
  --kb-ring:0 24px 70px rgba(34,211,238,.20);
  --kb-glow:0 0 0 1px rgba(34,211,238,.16),0 24px 80px rgba(15,23,42,.12);
}
body{
  background:
    radial-gradient(circle at 12% 0%,rgba(34,211,238,.18),transparent 28%),
    radial-gradient(circle at 90% 10%,rgba(99,102,241,.16),transparent 26%),
    linear-gradient(180deg,#F8FAFC 0%,#EEF6FF 45%,#F8FAFC 100%);
}
.kb-navbar{
  background:rgba(248,250,252,.88)!important;
  border-bottom:1px solid rgba(34,211,238,.22)!important;
  box-shadow:0 18px 50px rgba(15,23,42,.06);
}
.kb-logo-mark{
  background:linear-gradient(135deg,#07111F 0%,#0F766E 45%,#6366F1 100%)!important;
  color:#fff!important;
  box-shadow:0 14px 34px rgba(34,211,238,.28)!important;
}
.btn-kb,.kb-map-fab-tools{
  background:linear-gradient(135deg,#0891B2 0%,#2563EB 55%,#4F46E5 100%)!important;
  color:#fff!important;
  border:0!important;
  box-shadow:0 16px 38px rgba(37,99,235,.28)!important;
  -webkit-text-fill-color:#fff!important;
}
.btn-kb:hover,.kb-map-fab-tools:hover{filter:brightness(1.06);color:#fff!important;transform:translateY(-1px)}
.btn-kb-outline{
  border:1px solid rgba(8,145,178,.35)!important;
  color:#075985!important;
  background:rgba(255,255,255,.92)!important;
}
.btn-kb-outline:hover{background:#0891B2!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
.kb-hero{
  background:
    radial-gradient(circle at top left,rgba(34,211,238,.24),transparent 30%),
    radial-gradient(circle at 80% 0%,rgba(99,102,241,.30),transparent 35%),
    linear-gradient(135deg,#020617,#0F172A 45%,#0E7490)!important;
  box-shadow:0 28px 90px rgba(2,6,23,.24)!important;
}
.kb-card,.kb-auth-card{
  background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(34,211,238,.18)!important;
  box-shadow:var(--kb-glow)!important;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.kb-input,.form-control,.form-select{
  border-color:rgba(15,23,42,.14)!important;
  background:rgba(255,255,255,.94)!important;
  color:#0F172A!important;
}
.kb-input:focus,.form-control:focus,.form-select:focus{
  border-color:#22D3EE!important;
  box-shadow:0 0 0 .25rem rgba(34,211,238,.18)!important;
}
.kb-chip{
  display:inline-flex;align-items:center;gap:.45rem;border-radius:999px;
  padding:.45rem .75rem;font-weight:800;font-size:.82rem;
  color:#075985;background:linear-gradient(135deg,rgba(34,211,238,.18),rgba(99,102,241,.10));
  border:1px solid rgba(34,211,238,.25);
}
.kb-footer{
  background:radial-gradient(circle at 10% 0%,rgba(34,211,238,.16),transparent 25%),linear-gradient(135deg,#020617,#07111F 60%,#0F172A)!important;
}
.kb-badge:not(.kb-badge-red){background:rgba(20,241,149,.13)!important;color:#047857!important;border:1px solid rgba(20,241,149,.20)}
.kb-map-panel,.kb-map-sidebar{
  background:rgba(255,255,255,.90)!important;
  border-color:rgba(34,211,238,.20)!important;
  box-shadow:0 26px 90px rgba(2,6,23,.18)!important;
}
.kb-marker,.kb-avatar-initials{background:linear-gradient(135deg,#0891B2,#4F46E5)!important}
.kb-stars{color:#F59E0B!important}
.kb-menu-message-link{position:relative;display:flex!important;align-items:center;gap:.35rem}
.kb-message-badge{min-width:1.55rem;height:1.55rem;border-radius:999px;display:inline-grid;place-items:center;font-size:.74rem;font-weight:900;background:#CBD5E1;color:#0F172A;padding:0 .35rem;box-shadow:0 8px 20px rgba(15,23,42,.12)}
.kb-message-badge.is-hot{background:linear-gradient(135deg,#EF4444,#F97316);color:#fff;animation:kbPulse 1.4s infinite;box-shadow:0 10px 28px rgba(239,68,68,.35)}
@keyframes kbPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
.alert-danger{background:#FFF1F2!important;border-color:#FDA4AF!important;color:#9F1239!important}
.alert-success{background:#ECFDF5!important;border-color:#86EFAC!important;color:#065F46!important}

/* ==============================================================
   MyKhadma V6.4 - Messagerie boîte email premium
   ============================================================== */
.kb-mailbox-page .fw-black,
.fw-black{font-weight:900!important;letter-spacing:-.02em}
.kb-eyebrow{font-size:.78rem;text-transform:uppercase;font-weight:900;letter-spacing:.12em;color:#0f766e}
.kb-mailbox-hero{background:radial-gradient(circle at 0 0,rgba(34,211,238,.22),transparent 38%),linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,250,252,.9));border:1px solid rgba(103,232,249,.35)!important;box-shadow:0 22px 60px rgba(15,23,42,.08)}
.kb-mailbox-counter-badge,.kb-thread-total-badge{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;border-radius:999px;font-weight:900;background:#e5e7eb;color:#475569;border:1px solid rgba(15,23,42,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.kb-mailbox-counter-badge.is-hot,.kb-thread-total-badge.is-hot{background:linear-gradient(135deg,#ef4444,#be123c);color:#fff;box-shadow:0 14px 28px rgba(239,68,68,.25);animation:kbPulseBadge 1.7s infinite}
.kb-mailbox-counter-badge.is-zero,.kb-thread-total-badge.is-zero{background:#e5e7eb;color:#64748b}
@keyframes kbPulseBadge{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.kb-mailbox-card{border:1px solid rgba(103,232,249,.28)!important;box-shadow:0 22px 70px rgba(15,23,42,.08)}
.kb-mailbox-toolbar{background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(241,245,249,.88))}
.kb-mailbox-table thead th{font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b;background:#f8fafc;border-bottom:1px solid #e2e8f0;white-space:nowrap}
.kb-mailbox-table tbody tr{transition:background .18s ease, transform .18s ease, box-shadow .18s ease;cursor:pointer}
.kb-mailbox-table tbody tr:hover{background:rgba(14,165,233,.08);box-shadow:inset 4px 0 0 #06b6d4}
.kb-mailbox-row.has-unread{background:linear-gradient(90deg,rgba(14,165,233,.13),rgba(255,255,255,.98))}
.kb-mailbox-unread{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:14px;font-weight:900;border:1px solid #e2e8f0;background:#f8fafc;color:#64748b}
.kb-mailbox-unread.is-hot{background:linear-gradient(135deg,#ef4444,#be123c);color:#fff;border-color:transparent;box-shadow:0 10px 24px rgba(239,68,68,.25)}
.kb-mailbox-unread.is-zero{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.kb-mailbox-preview{max-width:620px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kb-message-modal .modal-content{box-shadow:0 30px 90px rgba(2,6,23,.35)}
.kb-message-modal-header{background:radial-gradient(circle at 10% 10%,rgba(34,211,238,.28),transparent 34%),linear-gradient(135deg,#020617,#0f172a 48%,#0f766e);color:#fff;border:0;padding:1.25rem 1.5rem}
.kb-message-modal-grid{min-height:min(74vh,760px)}
.kb-message-history-panel{background:linear-gradient(180deg,#f8fafc,#fff);max-height:74vh;overflow:auto}
.kb-message-dialog-panel{min-height:74vh;background:linear-gradient(180deg,#ffffff,#f8fafc)}
.kb-message-modal-list{flex:1;overflow:auto;max-height:54vh;scroll-behavior:smooth}
.kb-modal-loading{display:flex;align-items:center;justify-content:center;padding:3rem;color:#64748b}
.kb-history-item{width:100%;border:1px solid #e2e8f0;background:#fff;border-radius:18px;padding:.85rem;text-align:left;display:grid;gap:.15rem;transition:all .16s ease;color:#0f172a}
.kb-history-item:hover{border-color:#67e8f9;box-shadow:0 14px 28px rgba(14,165,233,.12);transform:translateY(-1px)}
.kb-history-item.is-current{background:linear-gradient(135deg,rgba(14,165,233,.12),rgba(16,185,129,.1));border-color:#22d3ee}
.kb-history-item strong{font-size:.95rem}.kb-history-item span{font-size:.78rem;color:#64748b}.kb-history-item em{font-size:.72rem;font-style:normal;text-transform:uppercase;letter-spacing:.08em;color:#0f766e;font-weight:900}
.kb-message-bubble{max-width:84%;border:1px solid rgba(226,232,240,.9);box-shadow:0 12px 28px rgba(15,23,42,.06)}
.kb-message-bubble.is-mine{margin-left:auto;background:linear-gradient(135deg,#dcfce7,#ecfeff);border-color:#a7f3d0}
.kb-message-bubble.is-other{margin-right:auto;background:#fff;border-color:#e2e8f0}
.kb-message-body{white-space:normal;word-break:break-word;line-height:1.55;color:#0f172a}
.kb-message-attachments{display:flex;gap:.5rem;flex-wrap:wrap}
.kb-message-attachment{display:inline-flex;align-items:center;gap:.4rem;border:1px solid #dbeafe;background:#eff6ff;border-radius:14px;padding:.45rem .65rem;text-decoration:none;font-weight:800;color:#1d4ed8}
.kb-message-attachment-image{display:grid;grid-template-columns:54px minmax(0,1fr);max-width:240px;color:#0f172a;background:#fff}
.kb-message-attachment-image img{width:54px;height:54px;object-fit:cover;border-radius:10px}
.kb-message-modal-compose{background:rgba(255,255,255,.92);backdrop-filter:blur(12px)}
@media (max-width: 575.98px){
  .kb-mailbox-table{min-width:780px}.kb-message-modal-header{padding:1rem}.kb-message-history-panel{max-height:26vh;border-right:0!important;border-bottom:1px solid #e2e8f0}.kb-message-modal-list{max-height:43vh}.kb-message-bubble{max-width:94%}
}

/* ==============================================================
   MyKhadma V6.7 - Clôture de demande + consentement médias
   ============================================================== */
.kb-closure-box{
  background:linear-gradient(135deg,rgba(236,254,255,.92),rgba(255,255,255,.96));
  border:1px solid rgba(34,211,238,.36);
  border-radius:26px;
  padding:1rem;
  box-shadow:0 18px 48px rgba(8,145,178,.10);
}
@media (min-width:768px){.kb-closure-box{padding:1.25rem}}
.kb-closure-closed-alert{
  display:grid;gap:.25rem;
  border-radius:22px;
  padding:1rem 1.15rem;
  background:linear-gradient(135deg,rgba(16,185,129,.13),rgba(34,211,238,.10));
  border:1px solid rgba(16,185,129,.28);
  color:#064e3b;
}
.kb-closure-closed-alert strong{font-weight:900;color:#065f46}.kb-closure-closed-alert span{color:#334155}.kb-closure-closed-alert em{font-style:normal;color:#9a3412;font-weight:800}
.kb-switch-line{display:flex;gap:.75rem;align-items:flex-start;border:1px solid rgba(34,211,238,.28);background:#fff;border-radius:18px;padding:.8rem 1rem;font-weight:800;color:#0f172a}
.kb-switch-line input{width:1.2rem;height:1.2rem;accent-color:#0891b2;margin-top:.1rem;flex:0 0 auto}
.kb-consent-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.85rem}
.kb-consent-media-item{display:grid;gap:.45rem;text-decoration:none;color:#0f172a;border:1px solid #e2e8f0;border-radius:20px;background:#fff;padding:.65rem;box-shadow:0 12px 28px rgba(15,23,42,.06);transition:.18s ease}
.kb-consent-media-item:hover{transform:translateY(-2px);border-color:#22d3ee;box-shadow:0 18px 36px rgba(14,165,233,.13)}
.kb-consent-media-item img{width:100%;height:120px;object-fit:cover;border-radius:15px;background:#f1f5f9}.kb-consent-file-icon{display:grid;place-items:center;height:120px;font-size:2.4rem;background:#f8fafc;border-radius:15px}.kb-consent-media-item strong{font-size:.82rem;word-break:break-word}


/* =============================================================
   V6.8 - Clôture Airbnb-like, sans checkbox inutile
   ============================================================= */
.kb-closure-box-safe{background:linear-gradient(135deg,rgba(240,253,250,.92),rgba(239,246,255,.96));border:1px solid rgba(6,182,212,.42);border-radius:28px;box-shadow:0 18px 45px rgba(15,23,42,.10);}
.kb-info-soft{background:rgba(14,165,233,.10);border:1px solid rgba(14,165,233,.22);border-radius:18px;padding:14px 16px;color:#0f172a;font-weight:700;line-height:1.5;}
.kb-message-modal-header .btn-outline-light{border-width:2px;color:#fff!important;}
.kb-message-modal-header .btn-light{color:#052e2b!important;box-shadow:0 12px 28px rgba(255,255,255,.18);}
.kb-closure-closed-alert{display:grid;gap:5px;background:linear-gradient(135deg,#ecfdf5,#eff6ff);border:1px solid rgba(16,185,129,.24);border-radius:22px;padding:16px 18px;color:#0f172a;}
.kb-closure-closed-alert strong{font-weight:950;color:#064e3b;}
.kb-closure-closed-alert em{font-style:normal;color:#9f1239;font-weight:800;}
@media(max-width:576px){.kb-message-modal-header{align-items:flex-start}.kb-message-modal-header .btn{font-size:.85rem;padding:.45rem .65rem}.kb-closure-box-safe{border-radius:22px}.kb-info-soft{font-size:.95rem}}

/* =============================================================
   V7 - Messagerie clôture ultra-safe et ergonomique
   ============================================================= */
.kb-closure-actions{display:grid;gap:.75rem}
.kb-closure-details{border:1px solid rgba(14,165,233,.24);border-radius:24px;background:rgba(255,255,255,.86);box-shadow:0 12px 32px rgba(15,23,42,.06);overflow:hidden}
.kb-closure-details>summary{list-style:none;cursor:pointer;padding:1rem 1.1rem;font-weight:950;color:#0f172a;display:grid;gap:.25rem;background:linear-gradient(135deg,rgba(236,254,255,.95),rgba(255,255,255,.96));}
.kb-closure-details>summary::-webkit-details-marker{display:none}
.kb-closure-details>summary span{font-size:.9rem;color:#64748b;font-weight:700;line-height:1.35}
.kb-closure-details[open]>summary{border-bottom:1px solid rgba(14,165,233,.18);background:linear-gradient(135deg,rgba(209,250,229,.95),rgba(224,242,254,.95));}
.kb-closure-details .kb-closure-box{margin:.85rem;border:0;background:transparent;box-shadow:none;padding:.25rem}
.kb-message-modal-header button[data-kb-open-details]{white-space:nowrap}
@media(max-width:576px){.kb-closure-details>summary{padding:.9rem}.kb-message-modal-header .d-flex{width:100%;justify-content:flex-start!important}.kb-message-modal-header button[data-kb-open-details]{flex:1 1 auto}}

/* V7.1 - Conversations uniques par mission */
.kb-conv-chip{
  display:inline-flex;align-items:center;gap:.35rem;margin-top:.35rem;
  padding:.28rem .62rem;border-radius:999px;
  background:linear-gradient(135deg,rgba(34,211,238,.15),rgba(99,102,241,.12));
  border:1px solid rgba(34,211,238,.28);color:#0f766e;font-weight:900;font-size:.78rem;
}
.kb-conv-number,.kb-modal-conv-number{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.12rem .48rem;border-radius:999px;
  background:#e0f2fe;color:#075985;font-weight:950;font-size:.85em;
}
.kb-modal-conv-number{background:rgba(255,255,255,.17);color:#fff;border:1px solid rgba(255,255,255,.22);}
.kb-new-conversation-box{
  border:1px solid rgba(34,211,238,.35);border-radius:24px;background:linear-gradient(135deg,rgba(240,253,250,.96),rgba(239,246,255,.96));
  box-shadow:0 16px 40px rgba(15,23,42,.08);overflow:hidden;
}
.kb-new-conversation-box>summary{
  cursor:pointer;list-style:none;padding:18px 20px;font-weight:950;color:#0f172a;display:flex;flex-direction:column;gap:.2rem;
}
.kb-new-conversation-box>summary::-webkit-details-marker{display:none;}
.kb-new-conversation-box>summary span{font-weight:700;color:#64748b;font-size:.93rem;}
.kb-new-thread-form{background:rgba(255,255,255,.72);border-top:1px solid rgba(34,211,238,.22);}
.kb-history-item strong{line-height:1.25;}
@media(max-width:767px){
  .kb-conv-chip{font-size:.72rem;padding:.22rem .52rem;}
  .kb-new-conversation-box>summary{padding:15px 16px;}
}

/* ================================================================
   V7.3 - Avis double-aveugle messagerie
   ================================================================ */
.kb-review-status-box{
  border:1px solid rgba(34,211,238,.35);
  background:linear-gradient(135deg,rgba(236,254,255,.96),rgba(255,255,255,.98));
  border-radius:28px;
  padding:18px;
  box-shadow:0 18px 50px rgba(15,23,42,.08);
}
.kb-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.kb-review-card{border:1px solid rgba(148,163,184,.35);background:#fff;border-radius:22px;padding:16px;box-shadow:0 12px 32px rgba(15,23,42,.06)}
.kb-review-card.is-mine{background:linear-gradient(135deg,#eff6ff,#fff)}
.kb-review-card.is-other{background:linear-gradient(135deg,#ecfdf5,#fff)}
.kb-review-stars{font-size:1.05rem;margin-top:6px;color:#f59e0b;font-weight:900}
.kb-review-stars span{color:#334155;margin-left:6px}
.kb-review-todo-alert{border:1px solid rgba(245,158,11,.35);background:linear-gradient(135deg,#fffbeb,#ffffff)}
.kb-public-review-media{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.kb-public-review-thumb{display:block;width:92px;height:76px;border-radius:16px;overflow:hidden;border:1px solid rgba(148,163,184,.35);box-shadow:0 8px 20px rgba(15,23,42,.08)}
.kb-public-review-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.kb-public-review-file{display:inline-flex;align-items:center;gap:6px;padding:10px 12px;border:1px solid rgba(148,163,184,.35);border-radius:16px;background:#f8fafc;text-decoration:none;font-weight:800;color:#0f172a}
@media (max-width: 768px){.kb-review-grid{grid-template-columns:1fr}.kb-review-status-box{padding:14px;border-radius:22px}.kb-review-card{border-radius:18px}}

/* ================================================================
   V7.4 - Page avis publique Airbnb-like + lien compteur avis
   ================================================================ */
.kb-profile-rating-line{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}
.kb-review-count-link{
  color:#0f172a!important;
  font-weight:900;
  text-decoration:underline!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:4px!important;
  cursor:pointer;
}
.kb-review-count-link:hover{color:#0891b2!important}
.kb-review-count-link-soft{color:#64748b!important;font-weight:900}
.kb-public-reviews-page .fw-black{font-weight:950!important;letter-spacing:-.035em}
.kb-public-reviews-cover{
  min-height:270px;
  background:radial-gradient(circle at 0 0,rgba(34,211,238,.34),transparent 35%),linear-gradient(135deg,#020617,#0f172a 58%,#0f766e);
  display:flex;align-items:end;
}
.kb-public-reviews-hero-inner{width:100%;padding:clamp(1.25rem,4vw,3rem)}
.text-white-75{color:rgba(255,255,255,.78)!important}
.kb-review-score-big,
.kb-review-distribution,
.kb-review-rule-box{
  border:1px solid rgba(34,211,238,.25);
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,250,252,.92));
  border-radius:28px;
  padding:1.25rem;
  box-shadow:0 16px 42px rgba(15,23,42,.07);
}
.kb-review-score-big{display:grid;align-content:center;justify-items:center;text-align:center;min-height:210px}
.kb-review-stars-xl .kb-stars,.kb-review-stars-xl{font-size:1.7rem;letter-spacing:.06em;color:#f59e0b!important}
.kb-review-score-number{font-size:clamp(3rem,8vw,5.25rem);font-weight:950;line-height:.95;color:#0f172a;letter-spacing:-.08em;margin-top:.35rem}
.kb-review-score-number span{font-size:1.4rem;color:#64748b;letter-spacing:0;margin-left:.25rem}
.kb-review-score-count{font-weight:900;color:#0f766e;margin-top:.25rem}
.kb-review-distribution{display:grid;gap:.72rem;align-content:center}
.kb-review-dist-row{display:grid;grid-template-columns:42px 1fr 34px;align-items:center;gap:.65rem;font-weight:900;color:#0f172a}
.kb-review-dist-row div{height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden;box-shadow:inset 0 1px 2px rgba(15,23,42,.06)}
.kb-review-dist-row div i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#06b6d4,#10b981)}
.kb-review-dist-row em{font-style:normal;text-align:right;color:#64748b}
.kb-review-rule-box{display:grid;align-content:center;gap:.65rem;color:#334155;line-height:1.6}
.kb-review-rule-box strong{display:block;color:#0f172a;font-size:1.08rem;font-weight:950}
.kb-review-media-rail{
  display:flex;gap:.9rem;overflow-x:auto;scroll-snap-type:x mandatory;
  padding:.2rem .2rem .85rem;scrollbar-width:thin;
}
.kb-review-media-rail::-webkit-scrollbar{height:8px}.kb-review-media-rail::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
.kb-review-media-tile{
  flex:0 0 176px;height:132px;border-radius:22px;overflow:hidden;position:relative;text-decoration:none;color:#fff;
  background:linear-gradient(135deg,#0f172a,#0f766e);box-shadow:0 16px 36px rgba(15,23,42,.16);scroll-snap-align:start;border:1px solid rgba(255,255,255,.55);
  display:grid;place-items:center;text-align:center;padding:.75rem;
}
.kb-review-media-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .22s ease}
.kb-review-media-tile:hover img{transform:scale(1.05)}
.kb-review-media-tile span:not(.kb-review-media-icon){position:absolute;left:.65rem;right:.65rem;bottom:.55rem;background:rgba(2,6,23,.70);border-radius:999px;padding:.28rem .55rem;font-size:.75rem;font-weight:900;color:#fff}
.kb-review-media-icon{font-size:2.1rem;line-height:1}.kb-review-media-tile strong{font-weight:950;font-size:1rem}.kb-review-media-tile small{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:rgba(255,255,255,.78)}
.kb-review-media-file{background:linear-gradient(135deg,#1e293b,#0891b2)}
.kb-review-media-video{background:linear-gradient(135deg,#111827,#7c3aed)}
.kb-review-media-rail-small{margin-top:.5rem;padding-bottom:.55rem}.kb-review-media-rail-small .kb-review-media-tile{flex-basis:138px;height:102px;border-radius:18px}
.kb-review-list-airbnb{display:grid;gap:1rem}
.kb-review-airbnb-card{
  border:1px solid rgba(148,163,184,.28);border-radius:30px;background:linear-gradient(135deg,#ffffff,#f8fafc);
  padding:clamp(1rem,3vw,1.4rem);box-shadow:0 18px 48px rgba(15,23,42,.07);
}
.kb-review-card-head{display:flex;gap:1rem;justify-content:space-between;align-items:flex-start;margin-bottom:1rem}
.kb-review-client-avatar{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#0891b2,#4f46e5);color:#fff;font-weight:950;box-shadow:0 12px 30px rgba(8,145,178,.18)}
.kb-review-comment{font-size:1.05rem;line-height:1.65;color:#0f172a;margin-bottom:.5rem}
.kb-review-reciprocal{margin-top:1rem;border-radius:22px;border:1px solid rgba(16,185,129,.22);background:linear-gradient(135deg,#ecfdf5,#ffffff);padding:1rem}
.kb-review-reciprocal strong{display:block;color:#065f46;font-weight:950;margin-bottom:.25rem}.kb-review-reciprocal p{margin:.5rem 0 0;color:#334155;line-height:1.55}
.kb-review-lightbox{position:fixed;inset:0;background:rgba(2,6,23,.92);z-index:99999;display:grid;place-items:center;padding:20px;cursor:zoom-out}
.kb-review-lightbox img{max-width:min(96vw,1200px);max-height:88vh;border-radius:24px;box-shadow:0 30px 90px rgba(0,0,0,.45)}
.kb-review-lightbox button{position:fixed;top:18px;right:18px;width:48px;height:48px;border:0;border-radius:999px;background:#fff;color:#0f172a;font-size:2rem;line-height:1;box-shadow:0 12px 30px rgba(0,0,0,.25)}
@media(max-width:768px){
  .kb-public-reviews-cover{min-height:220px}.kb-review-card-head{display:grid}.kb-review-card-head .text-end{text-align:left!important}.kb-review-media-tile{flex-basis:148px;height:112px}.kb-review-score-big{min-height:170px}.kb-review-score-number{font-size:3.6rem}
}
.kb-profile-hero-v2 {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(103, 232, 249, .35);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.kb-profile-hero-v2 .kb-profile-cover {
  height: 190px;
  min-height: 190px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, #041f18, #005f3f);
  background-size: cover;
  background-position: center;
}

.kb-profile-body-v2 {
  padding: 0 28px 28px;
}

.kb-profile-summary-card-v2 {
  margin-top: -72px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 70px rgba(15,23,42,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  backdrop-filter: blur(18px);
}

.kb-profile-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.kb-profile-main-text {
  min-width: 0;
}

.kb-profile-provider-word {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #065f46;
  letter-spacing: .08em;
}

.kb-profile-name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: .95;
  color: #0f172a;
}

.kb-profile-job {
  color: #334155;
  font-weight: 800;
}

.kb-profile-rating-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.kb-review-count-link {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.kb-profile-top-status .kb-badge-strong {
  white-space: nowrap;
  color: #064e3b !important;
  background: #d1fae5 !important;
  border: 2px solid #047857;
  font-weight: 900;
}

.kb-profile-summary-box {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fafc, #eefaff);
  border: 1px solid rgba(14,165,233,.18);
  color: #1e293b;
  font-size: 1.08rem;
  line-height: 1.75;
}

.kb-profile-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* On masque l’ancien badge dupliqué si jamais il reste dans un autre bloc */
.kb-profile-summary + .mt-3 .kb-badge-strong,
.kb-profile-body > .mt-3 > .kb-badge-strong {
  display: none !important;
}

@media (max-width: 768px) {
  .kb-profile-hero-v2 .kb-profile-cover {
    height: 145px;
    min-height: 145px;
  }

  .kb-profile-body-v2 {
    padding: 0 16px 20px;
  }

  .kb-profile-summary-card-v2 {
    margin-top: -54px;
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .kb-profile-left {
    align-items: flex-start;
    gap: 12px;
  }

  .kb-profile-top-status {
    width: 100%;
  }

  .kb-profile-top-status .kb-badge-strong {
    display: inline-flex;
    justify-content: center;
    max-width: 100%;
  }

  .kb-profile-name {
    font-size: 2rem;
  }
}
/* ================================================================
   V7.26 - Menu professionnel : demande client vs prestation
   ================================================================ */
.kb-main-menu .nav-link{
  display:inline-flex;
  align-items:center;
  gap:.2rem;
  font-weight:750;
}
.kb-nav-main-action{
  border-radius:999px;
  padding:.48rem .78rem!important;
  background:rgba(0,98,51,.06);
  color:var(--kb-primary)!important;
  border:1px solid rgba(0,98,51,.12);
}
.kb-nav-main-action:hover,
.kb-nav-main-action:focus{
  background:rgba(0,98,51,.11);
  color:var(--kb-primary-strong,#00562d)!important;
}
.kb-menu-action-panel{
  min-width:min(360px,calc(100vw - 24px));
  padding:10px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  box-shadow:0 24px 70px rgba(15,23,42,.16);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.kb-menu-action-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  white-space:normal;
  border-radius:17px;
  padding:12px!important;
  color:#0f172a!important;
}
.kb-menu-action-card:hover,
.kb-menu-action-card:focus{
  background:rgba(0,98,51,.07)!important;
}
.kb-menu-action-card strong{
  display:block;
  font-size:.98rem;
  line-height:1.15;
  color:#0f172a;
}
.kb-menu-action-card small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:.78rem;
  line-height:1.25;
}
.kb-menu-action-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.13);
}
.kb-menu-action-icon-client{background:linear-gradient(135deg,#2563eb,#4f46e5);}
.kb-menu-action-icon-provider{background:linear-gradient(135deg,var(--kb-primary),#039855);}
.kb-menu-action-icon-add{background:linear-gradient(135deg,#0f766e,#14b8a6);}
.kb-menu-message-link{
  gap:6px!important;
}
.kb-menu-logout{
  border-radius:999px;
  font-weight:800;
  border:1px solid rgba(15,23,42,.12);
}
@media(max-width:991.98px){
  .kb-main-menu{
    align-items:stretch!important;
    padding-top:14px;
  }
  .kb-main-menu .nav-item,
  .kb-main-menu .nav-link,
  .kb-main-menu .btn{
    width:100%;
  }
  .kb-main-menu .nav-link{
    justify-content:flex-start;
    padding:.78rem .9rem;
    border-radius:16px;
  }
  .kb-nav-main-action{
    justify-content:space-between!important;
  }
  .kb-menu-action-panel{
    width:100%;
    min-width:0;
    margin-top:6px;
    box-shadow:none;
    border-radius:18px;
  }
}

/* ================================================================
   V7.27 - Retour au style menu classique + nouveau menu Publier
   Objectif : garder la logique client/prestataire de la V7.26,
   mais retrouver l'affichage simple aligné à gauche comme avant.
   ================================================================ */
.kb-main-menu,
.kb-main-menu .nav-item,
.kb-main-menu .nav-link,
.kb-main-menu .dropdown-menu,
.kb-main-menu .dropdown-item{
  text-align:start!important;
}
.kb-main-menu .nav-link{
  justify-content:flex-start!important;
  font-weight:750;
  color:rgba(15,23,42,.72)!important;
}
.kb-main-menu .nav-link:hover,
.kb-main-menu .nav-link:focus{
  color:var(--kb-primary)!important;
}
.kb-nav-main-action{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x)!important;
  color:rgba(15,23,42,.72)!important;
  gap:.35rem!important;
}
.kb-nav-main-action:hover,
.kb-nav-main-action:focus,
.kb-nav-main-action.show{
  background:transparent!important;
  color:var(--kb-primary)!important;
}
.kb-menu-action-panel{
  min-width:260px!important;
  padding:.35rem 0!important;
  border:1px solid rgba(15,23,42,.10)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 14px 36px rgba(15,23,42,.12)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.kb-menu-action-card{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:.65rem!important;
  width:100%!important;
  padding:.68rem 1rem!important;
  border-radius:0!important;
  background:transparent!important;
  color:rgba(15,23,42,.78)!important;
  white-space:nowrap!important;
}
.kb-menu-action-card:hover,
.kb-menu-action-card:focus{
  background:rgba(0,98,51,.07)!important;
  color:var(--kb-primary)!important;
}
.kb-menu-action-card strong{
  display:inline!important;
  font-size:1rem!important;
  font-weight:750!important;
  line-height:1.2!important;
  color:inherit!important;
}
.kb-menu-action-card small{
  display:none!important;
}
.kb-menu-action-icon{
  width:1.45rem!important;
  height:1.45rem!important;
  flex:0 0 1.45rem!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:rgba(15,23,42,.66)!important;
  font-size:1.05rem!important;
}
.kb-menu-action-card:hover .kb-menu-action-icon,
.kb-menu-action-card:focus .kb-menu-action-icon{
  color:var(--kb-primary)!important;
}
.kb-action-dropdown .dropdown-divider{
  display:none!important;
}

@media(max-width:991.98px){
  .kb-main-menu{
    align-items:stretch!important;
    gap:0!important;
    padding-top:1rem!important;
  }
  .kb-main-menu .nav-item,
  .kb-main-menu .nav-link,
  .kb-main-menu .btn{
    width:100%!important;
  }
  .kb-main-menu .nav-link{
    min-height:48px!important;
    padding:.72rem .25rem!important;
    border-radius:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    font-size:1.12rem!important;
    line-height:1.2!important;
    color:rgba(15,23,42,.68)!important;
  }
  .kb-main-menu .nav-link i{
    width:1.6rem;
    text-align:center;
    font-size:1.1em;
    color:rgba(15,23,42,.66)!important;
  }
  .kb-main-menu .nav-link:hover i,
  .kb-main-menu .nav-link:focus i{
    color:var(--kb-primary)!important;
  }
  .kb-nav-main-action{
    justify-content:flex-start!important;
    padding:.72rem .25rem!important;
  }
  .kb-nav-main-action::after{
    margin-left:.45rem!important;
  }
  html[dir="rtl"] .kb-nav-main-action::after{
    margin-left:0!important;
    margin-right:.45rem!important;
  }
  .kb-menu-action-panel{
    width:100%!important;
    min-width:0!important;
    margin:.1rem 0 .4rem 0!important;
    padding:.1rem 0 .25rem 2.05rem!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  html[dir="rtl"] .kb-menu-action-panel{
    padding:.1rem 2.05rem .25rem 0!important;
  }
  .kb-menu-action-card{
    padding:.52rem .25rem!important;
    font-size:1.06rem!important;
    color:rgba(15,23,42,.68)!important;
  }
  .kb-menu-action-card:hover,
  .kb-menu-action-card:focus{
    background:transparent!important;
    color:var(--kb-primary)!important;
  }
  .kb-menu-action-card strong{
    font-size:1.06rem!important;
  }
  .kb-menu-action-icon{
    width:1.35rem!important;
    height:1.35rem!important;
    flex-basis:1.35rem!important;
    color:rgba(15,23,42,.66)!important;
  }
  .kb-main-menu .btn-kb,
  .kb-main-menu .kb-menu-logout{
    margin-top:.55rem!important;
    border-radius:8px!important;
    min-height:44px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:1.02rem!important;
  }
}


/* ================================================================
   MyKhadma V7.28 - Mes prestations : bannières horizontales
   Corrige l'affichage revenu en simples liens bleus après le patch menu.
   ================================================================ */
.kb-provider-dashboard .kb-multi-profile-manager{
  position:relative!important;
  overflow:hidden!important;
}
.kb-provider-dashboard .kb-multi-profile-manager::before{
  content:"";
  position:absolute;
  top:-110px;
  right:-130px;
  width:300px;
  height:300px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(0,98,51,.14),rgba(0,98,51,0) 70%);
  pointer-events:none;
}
.kb-provider-dashboard .kb-profile-tabs-scroll{
  position:relative;
  z-index:1;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:.9rem!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:.3rem .2rem 1rem!important;
  margin-top:.35rem!important;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,98,51,.38) rgba(15,23,42,.07);
}
.kb-provider-dashboard .kb-profile-tabs-scroll::-webkit-scrollbar{
  height:8px;
}
.kb-provider-dashboard .kb-profile-tabs-scroll::-webkit-scrollbar-track{
  background:rgba(15,23,42,.06);
  border-radius:999px;
}
.kb-provider-dashboard .kb-profile-tabs-scroll::-webkit-scrollbar-thumb{
  background:linear-gradient(90deg,rgba(0,98,51,.35),rgba(0,128,88,.48));
  border-radius:999px;
}
.kb-provider-dashboard .kb-profile-tabs-scroll::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(90deg,rgba(0,98,51,.52),rgba(0,128,88,.62));
}
.kb-provider-dashboard .kb-profile-tab,
.kb-provider-dashboard .kb-profile-tab:visited{
  min-width:310px!important;
  max-width:390px!important;
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:.85rem!important;
  padding:.95rem 1rem!important;
  border:1px solid rgba(148,163,184,.35)!important;
  border-radius:24px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,250,252,.92))!important;
  box-shadow:0 10px 28px rgba(15,23,42,.07)!important;
  color:#0f172a!important;
  text-decoration:none!important;
  scroll-snap-align:start;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.kb-provider-dashboard .kb-profile-tab:hover,
.kb-provider-dashboard .kb-profile-tab:focus{
  transform:translateY(-2px);
  border-color:rgba(0,98,51,.36)!important;
  background:linear-gradient(135deg,rgba(255,255,255,1),rgba(240,253,244,.94))!important;
  box-shadow:0 16px 38px rgba(15,23,42,.11)!important;
  color:#0f172a!important;
  text-decoration:none!important;
}
.kb-provider-dashboard .kb-profile-tab.is-active{
  border-color:rgba(0,98,51,.55)!important;
  background:linear-gradient(135deg,rgba(236,253,245,.98),rgba(239,246,255,.94))!important;
  box-shadow:0 18px 42px rgba(0,98,51,.14)!important;
}
.kb-provider-dashboard .kb-profile-tab-icon{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border-radius:17px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(135deg,#006233,#14a46d)!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(0,98,51,.24)!important;
}
.kb-provider-dashboard .kb-profile-tab-icon i{
  color:#fff!important;
  font-size:1.08rem!important;
}
.kb-provider-dashboard .kb-profile-tab-main{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:.1rem!important;
  flex:1 1 auto!important;
}
.kb-provider-dashboard .kb-profile-tab-main strong{
  display:block!important;
  max-width:100%!important;
  color:#0f172a!important;
  font-weight:950!important;
  line-height:1.18!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.kb-provider-dashboard .kb-profile-tab-main small{
  display:block!important;
  max-width:100%!important;
  color:#64748b!important;
  font-weight:700!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.kb-provider-dashboard .kb-profile-status{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  padding:.36rem .58rem!important;
  border:1px solid rgba(148,163,184,.3)!important;
  background:#f8fafc!important;
  color:#334155!important;
  font-size:.72rem!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
.kb-provider-dashboard .kb-profile-status.active{
  background:#dcfce7!important;
  color:#166534!important;
  border-color:#bbf7d0!important;
}
.kb-provider-dashboard .kb-profile-status.draft{
  background:#f1f5f9!important;
  color:#475569!important;
}
.kb-provider-dashboard .kb-profile-status.suspended{
  background:#fee2e2!important;
  color:#991b1b!important;
  border-color:#fecaca!important;
}
.kb-provider-dashboard .kb-profile-status.deleted{
  background:#111827!important;
  color:#fff!important;
}
.kb-provider-dashboard .kb-keyword-help-card{
  background:linear-gradient(135deg,rgba(240,253,244,.92),rgba(255,255,255,.94));
  border:1px solid rgba(0,98,51,.16);
  border-radius:22px;
  padding:1rem;
}
.kb-provider-dashboard .kb-abuse-warning{
  background:linear-gradient(135deg,#fff7ed,#ffffff);
  border:1px solid #fed7aa;
  border-radius:22px;
  padding:1rem;
}
.kb-provider-dashboard .kb-abuse-warning .form-check-input:checked{
  background-color:#006233;
  border-color:#006233;
}
@media (max-width:575.98px){
  .kb-provider-dashboard .kb-multi-profile-manager{
    padding:1.15rem!important;
    border-radius:28px!important;
  }
  .kb-provider-dashboard .kb-multi-profile-manager .d-flex.flex-wrap.justify-content-between.align-items-center.gap-2.mb-3{
    align-items:flex-start!important;
  }
  .kb-provider-dashboard .kb-profile-tabs-scroll{
    gap:.75rem!important;
    padding:.25rem .05rem .7rem!important;
    scrollbar-width:none;
  }
  .kb-provider-dashboard .kb-profile-tabs-scroll::-webkit-scrollbar{
    display:none;
  }
  .kb-provider-dashboard .kb-profile-tab,
  .kb-provider-dashboard .kb-profile-tab:visited{
    min-width:82vw!important;
    max-width:82vw!important;
    padding:.85rem!important;
    border-radius:22px!important;
  }
  .kb-provider-dashboard .kb-profile-tab-icon{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border-radius:15px!important;
  }
  .kb-provider-dashboard .kb-profile-tab-main strong{
    font-size:1rem!important;
  }
  .kb-provider-dashboard .kb-profile-tab-main small{
    font-size:.82rem!important;
  }
  .kb-provider-dashboard .kb-profile-status{
    position:absolute;
    right:.7rem;
    bottom:.65rem;
    font-size:.68rem!important;
    padding:.3rem .5rem!important;
  }
  .kb-provider-dashboard .kb-profile-tab{
    position:relative;
    padding-bottom:2.15rem!important;
  }
}


/* ================================================================
   MyKhadma V7.29 - Compteurs Mes prestations
   ================================================================ */
.kb-provider-dashboard .kb-profile-manager-title-row{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:.55rem .75rem!important;
}
.kb-provider-dashboard .kb-profile-manager-title-row h2{
  line-height:1.15!important;
}
.kb-provider-dashboard .kb-profile-stats-pills{
  display:inline-flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:.38rem!important;
}
.kb-provider-dashboard .kb-profile-stat-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:.35rem!important;
  min-height:30px!important;
  padding:.36rem .62rem!important;
  border-radius:999px!important;
  border:1px solid rgba(148,163,184,.28)!important;
  background:rgba(248,250,252,.96)!important;
  color:#334155!important;
  box-shadow:0 8px 20px rgba(15,23,42,.05)!important;
  font-size:.78rem!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
.kb-provider-dashboard .kb-profile-stat-pill i{
  font-size:.78rem!important;
}
.kb-provider-dashboard .kb-profile-stat-pill.is-total{
  background:linear-gradient(135deg,rgba(239,246,255,.98),rgba(255,255,255,.98))!important;
  border-color:rgba(59,130,246,.22)!important;
  color:#1e3a8a!important;
}
.kb-provider-dashboard .kb-profile-stat-pill.is-active{
  background:linear-gradient(135deg,rgba(220,252,231,.98),rgba(240,253,244,.98))!important;
  border-color:rgba(34,197,94,.26)!important;
  color:#166534!important;
}
.kb-provider-dashboard .kb-profile-stat-pill.is-inactive{
  background:linear-gradient(135deg,rgba(255,247,237,.98),rgba(255,255,255,.98))!important;
  border-color:rgba(251,146,60,.26)!important;
  color:#9a3412!important;
}
@media (max-width:575.98px){
  .kb-provider-dashboard .kb-profile-manager-title-row{
    align-items:flex-start!important;
    gap:.5rem!important;
  }
  .kb-provider-dashboard .kb-profile-stats-pills{
    width:100%!important;
    gap:.32rem!important;
  }
  .kb-provider-dashboard .kb-profile-stat-pill{
    min-height:28px!important;
    padding:.32rem .5rem!important;
    font-size:.72rem!important;
  }
}

/* ================================================================
   MyKhadma V7.30 - Demandes client + géocodage obligatoire
   ================================================================ */
.kb-client-dashboard .kb-profile-manager-title-row{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:.55rem .75rem!important;
}
.kb-client-dashboard .kb-profile-manager-title-row h2{
  line-height:1.15!important;
}
.kb-client-dashboard .kb-profile-stats-pills{
  display:inline-flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:.38rem!important;
}
.kb-client-dashboard .kb-profile-stat-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:.35rem!important;
  min-height:30px!important;
  padding:.36rem .62rem!important;
  border-radius:999px!important;
  border:1px solid rgba(148,163,184,.28)!important;
  background:rgba(248,250,252,.96)!important;
  color:#334155!important;
  box-shadow:0 8px 20px rgba(15,23,42,.05)!important;
  font-size:.78rem!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
.kb-client-dashboard .kb-profile-stat-pill i{
  font-size:.78rem!important;
}
.kb-client-dashboard .kb-profile-stat-pill.is-total{
  background:linear-gradient(135deg,rgba(239,246,255,.98),rgba(255,255,255,.98))!important;
  border-color:rgba(59,130,246,.22)!important;
  color:#1e3a8a!important;
}
.kb-client-dashboard .kb-profile-stat-pill.is-active{
  background:linear-gradient(135deg,rgba(220,252,231,.98),rgba(240,253,244,.98))!important;
  border-color:rgba(34,197,94,.26)!important;
  color:#166534!important;
}
.kb-client-dashboard .kb-profile-stat-pill.is-inactive{
  background:linear-gradient(135deg,rgba(255,247,237,.98),rgba(255,255,255,.98))!important;
  border-color:rgba(251,146,60,.26)!important;
  color:#9a3412!important;
}
.kb-client-dashboard #kbProjectGeocode,
.kb-provider-dashboard #kbProfileGeocode,
.kb-client-dashboard #kbClientGeocode{
  min-height:48px;
  font-weight:950;
}
@media (max-width:575.98px){
  .kb-client-dashboard .kb-profile-manager-title-row{
    align-items:flex-start!important;
    gap:.5rem!important;
  }
  .kb-client-dashboard .kb-profile-stats-pills{
    width:100%!important;
    gap:.32rem!important;
  }
  .kb-client-dashboard .kb-profile-stat-pill{
    min-height:28px!important;
    padding:.32rem .5rem!important;
    font-size:.72rem!important;
  }
}

/* ================================================================
   V7.42 - Fiche publique : badge "Disponible maintenant" lisible
   Correction iPhone/Safari : l'ancien -webkit-text-fill-color blanc
   pouvait rester prioritaire sur fond vert clair.
   ================================================================ */
.kb-profile-hero-v2 .kb-profile-top-status .kb-badge-strong,
.kb-profile-top-status .kb-badge.kb-badge-strong,
.kb-profile-top-status .kb-badge-strong{
  background: #d1fae5 !important;
  color: #064e3b !important;
  -webkit-text-fill-color: #064e3b !important;
  border: 2px solid #047857 !important;
  box-shadow: 0 10px 24px rgba(4,120,87,.13) !important;
  text-shadow: none !important;
}
.kb-profile-hero-v2 .kb-profile-top-status .kb-badge-strong *,
.kb-profile-top-status .kb-badge.kb-badge-strong *,
.kb-profile-top-status .kb-badge-strong *{
  color: #064e3b !important;
  -webkit-text-fill-color: #064e3b !important;
  text-shadow: none !important;
}

/* ================================================================
   V7.43 - Champs multilingues utilisateur FR / EN / AR
   ================================================================ */
.kb-i18n-manager{
  border:1px solid rgba(0,130,100,.18);
  background:linear-gradient(135deg,rgba(0,154,115,.08),rgba(61,106,255,.05));
  border-radius:24px;
  padding:16px;
  margin:0 0 18px;
}
.kb-i18n-manager-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px;color:#0f172a}
.kb-i18n-manager-head strong{font-weight:900;color:#064e3b}
.kb-i18n-manager-head span{font-size:.9rem;color:#64748b;max-width:720px}
.kb-i18n-lang-checks{display:flex;gap:10px;overflow-x:auto;padding:12px 2px 4px;scrollbar-width:thin}
.kb-i18n-check{flex:0 0 auto;display:flex;align-items:center;gap:8px;border:1px solid rgba(15,23,42,.12);background:#fff;border-radius:999px;padding:8px 12px;box-shadow:0 8px 20px rgba(15,23,42,.05);cursor:pointer;user-select:none}
.kb-i18n-check input{width:18px;height:18px;accent-color:#008f64}
.kb-i18n-check b{font-size:.85rem;color:#0f172a;letter-spacing:.04em}
.kb-i18n-check small{font-weight:700;color:#64748b}
.kb-i18n-flag{font-size:1.1rem;line-height:1}
.kb-i18n-manager-note{font-size:.86rem;color:#64748b;margin-top:10px}
.kb-i18n-field{margin-bottom:14px}
.kb-i18n-field-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.kb-i18n-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.kb-i18n-tabs::-webkit-scrollbar{display:none}
.kb-i18n-tab{border:1px solid rgba(15,23,42,.12);background:#fff;color:#334155;border-radius:999px;padding:5px 9px;display:inline-flex;align-items:center;gap:5px;font-weight:900;line-height:1;box-shadow:0 6px 14px rgba(15,23,42,.04)}
.kb-i18n-tab span{font-size:1rem}.kb-i18n-tab b{font-size:.76rem;letter-spacing:.04em}
.kb-i18n-tab.is-active{background:#007a55;color:#fff;border-color:#007a55;box-shadow:0 10px 24px rgba(0,122,85,.22)}
.kb-i18n-tab.is-disabled{opacity:.35;text-decoration:line-through}
.kb-i18n-control{display:none}.kb-i18n-control.is-active{display:block}
.kb-i18n-control:disabled{background:#f8fafc;color:#94a3b8}
.kb-i18n-field .form-text{margin-top:7px}
html[dir="rtl"] .kb-i18n-manager-head, html[dir="rtl"] .kb-i18n-field-top{direction:rtl}
html[dir="rtl"] .kb-i18n-tabs, html[dir="rtl"] .kb-i18n-lang-checks{direction:rtl}
@media (max-width: 575.98px){
  .kb-i18n-manager{padding:14px;border-radius:20px}
  .kb-i18n-field-top{align-items:flex-start;flex-direction:column}
  .kb-i18n-tabs{width:100%}
  .kb-i18n-check{padding:7px 10px}
}

/* ================================================================
   V7.45 - Dashboard prestataire : plaquette tarifaire clarifiée
   ================================================================ */
.kb-price-info-alert{
  border:1px solid rgba(14,165,233,.20);
  background:linear-gradient(135deg,rgba(240,249,255,.96),rgba(236,253,245,.88));
  color:#0f172a;
  font-weight:650;
}
.kb-price-panel{
  overflow:hidden;
}
.kb-price-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1.15rem;
}
.kb-price-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:max-content;
  padding:.45rem .8rem;
  border-radius:999px;
  background:rgba(16,185,129,.12);
  color:#047857;
  border:1px solid rgba(16,185,129,.22);
  font-weight:900;
}
.kb-price-form{
  padding:1rem;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(248,250,252,.98),rgba(240,253,250,.72));
  border:1px solid rgba(148,163,184,.20);
}
.kb-price-public{
  width:100%;
  justify-content:flex-start;
}
.kb-price-list{
  display:grid;
  gap:.75rem;
}
.kb-price-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:.75rem;
  padding:1rem;
  border-radius:22px;
  border:1px solid rgba(16,185,129,.20);
  background:rgba(255,255,255,.88);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.kb-price-row-main{
  display:grid;
  gap:.25rem;
  min-width:0;
}
.kb-price-row-main strong{
  color:#0f172a;
  font-size:1rem;
}
.kb-price-row-main span{
  color:#047857;
  font-weight:900;
}
.kb-price-row-main small{
  color:#64748b;
  line-height:1.35;
}
.kb-price-row-actions{
  display:flex;
  align-items:center;
  gap:.5rem;
  flex-shrink:0;
}
.kb-price-visibility{
  display:inline-flex;
  align-items:center;
  padding:.25rem .55rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:900;
}
.kb-price-visibility.is-public{
  color:#047857;
  background:#dcfce7;
}
.kb-price-visibility.is-private{
  color:#9f1239;
  background:#ffe4e6;
}
.kb-empty-mini{
  padding:1rem;
  border-radius:18px;
  background:rgba(248,250,252,.95);
  color:#64748b;
  border:1px dashed rgba(148,163,184,.45);
  font-weight:700;
}
.kb-public-price-panel .kb-public-price-row{
  padding:.9rem 0;
  border-top:1px solid rgba(148,163,184,.25);
  display:grid;
  gap:.25rem;
}
.kb-public-price-panel .kb-public-price-row:first-of-type{
  border-top:0;
}
.kb-public-price-row strong{
  color:#0f172a;
}
.kb-public-price-row span{
  color:#047857;
  font-weight:900;
}
@media (max-width: 767.98px){
  .kb-price-head,
  .kb-price-row{
    flex-direction:column;
  }
  .kb-price-row-actions{
    width:100%;
    justify-content:space-between;
  }
  .kb-price-count{
    align-self:flex-start;
  }
}

/* ================================================================
   MyKhadma V7.47 - Page dédiée "Mes demandes" client
   ================================================================ */
.kb-client-demands-page .kb-client-demands-hero{
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(236,253,245,.88))!important;
}
.kb-client-demands-page .kb-form-help-alert{
  display:flex;
  align-items:flex-start;
  gap:.45rem;
  padding:.8rem .95rem;
  border:1px solid rgba(14,165,233,.22);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(240,249,255,.95),rgba(236,253,245,.75));
  color:#0f4f4a;
  font-weight:800;
  line-height:1.35;
}
.kb-client-demands-page .kb-demand-switch{
  width:100%;
  min-height:52px;
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:.65rem .85rem;
  border:1px solid rgba(226,232,240,.9);
  border-radius:18px;
  background:#fff;
}
.kb-client-demands-list{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.kb-demand-card{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:18px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:24px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 16px 36px rgba(15,23,42,.06);
}
.kb-demand-card.is-editable{
  border-color:rgba(0,137,85,.22);
  background:linear-gradient(135deg,#ffffff 0%,#f0fdf4 100%);
}
.kb-demand-card-main{min-width:0;flex:1 1 auto;}
.kb-demand-status-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.5rem;
  margin-bottom:.45rem;
}
.kb-demand-status{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:.32rem .62rem;
  font-size:.76rem;
  font-weight:950;
  border:1px solid rgba(148,163,184,.25);
  background:#f8fafc;
  color:#334155;
}
.kb-demand-status.is-published,
.kb-demand-status.is-in_discussion,
.kb-demand-status.is-assigned{
  background:#dcfce7;
  color:#166534;
  border-color:rgba(34,197,94,.24);
}
.kb-demand-status.is-closed{background:#e0f2fe;color:#075985;border-color:rgba(14,165,233,.24);}
.kb-demand-status.is-cancelled{background:#fff7ed;color:#9a3412;border-color:rgba(251,146,60,.26);}
.kb-demand-status.is-draft{background:#f1f5f9;color:#475569;}
.kb-demand-date{font-size:.82rem;color:#64748b;font-weight:800;}
.kb-demand-card h3{
  margin:0 0 .45rem;
  color:#0f172a;
  font-weight:950;
  letter-spacing:-.02em;
  font-size:1.1rem;
}
.kb-demand-card p{
  color:#475569;
  margin:0 0 .7rem;
  font-weight:650;
  line-height:1.45;
}
.kb-demand-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
}
.kb-demand-meta span{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  border-radius:999px;
  padding:.34rem .58rem;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(226,232,240,.9);
  color:#475569;
  font-size:.78rem;
  font-weight:850;
}
.kb-demand-meta span.is-map{color:#047857;background:#ecfdf5;border-color:rgba(16,185,129,.22);}
.kb-demand-card-actions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.45rem;
  flex:0 0 auto;
  min-width:138px;
}
.kb-demand-card-actions .btn{font-weight:900;}
.kb-empty-state{
  text-align:center;
  padding:28px 14px;
  border:1px dashed rgba(148,163,184,.38);
  border-radius:24px;
  background:linear-gradient(135deg,#f8fafc,#ffffff);
}
.kb-empty-icon{
  width:64px;
  height:64px;
  margin:0 auto 12px;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:linear-gradient(135deg,#008a55,#2563eb);
  color:#fff;
  font-size:1.45rem;
  box-shadow:0 18px 38px rgba(0,137,85,.2);
}
.kb-empty-state h3{font-weight:950;color:#0f172a;margin-bottom:6px;}
.kb-empty-state p{max-width:620px;margin:0 auto 16px;color:#64748b;font-weight:700;}
@media(max-width:768px){
  .kb-demand-card{flex-direction:column;padding:15px;border-radius:21px;}
  .kb-demand-card-actions{width:100%;min-width:0;flex-direction:row;flex-wrap:wrap;}
  .kb-demand-card-actions form{flex:1 1 120px;}
  .kb-demand-card-actions .btn{width:100%;}
  .kb-client-demands-page .kb-profile-stats-pills{width:100%;}
}

/* ================================================================
   V7.49 - Fiche publique : actions modernes téléphone / email / maps / diplôme
   ================================================================ */
.kb-public-info-card{
  position:relative;
  overflow:hidden;
}
.kb-public-info-card:before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width:240px;
  height:240px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(0,98,51,.12),transparent 68%);
  pointer-events:none;
}
.kb-info-mini-badge{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  border-radius:999px;
  padding:.48rem .8rem;
  background:rgba(0,98,51,.08);
  color:#006233;
  border:1px solid rgba(0,98,51,.14);
  font-size:.82rem;
  font-weight:900;
}
.kb-info-action-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.9rem;
}
.kb-info-action-card{
  display:flex;
  align-items:center;
  gap:.72rem;
  min-height:92px;
  border-radius:24px;
  padding:.9rem;
  color:#0f172a;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(248,250,252,.92));
  border:1px solid rgba(148,163,184,.24);
  box-shadow:0 18px 42px rgba(15,23,42,.07);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.kb-info-action-card:hover{
  color:#0f172a;
  transform:translateY(-2px);
  border-color:rgba(0,98,51,.28);
  box-shadow:0 24px 54px rgba(15,23,42,.12);
  background:linear-gradient(135deg,#fff,#f0fdf4);
}
.kb-info-action-card.is-disabled{
  opacity:.62;
  filter:saturate(.75);
  cursor:not-allowed;
  box-shadow:none;
}
.kb-info-action-icon{
  width:50px;
  height:50px;
  flex:0 0 50px;
  border-radius:18px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:1.15rem;
  background:linear-gradient(135deg,#64748b,#94a3b8);
  box-shadow:0 14px 30px rgba(15,23,42,.14);
}
.kb-info-action-phone{background:linear-gradient(135deg,#006233,#10b981);}
.kb-info-action-email{background:linear-gradient(135deg,#2563eb,#06b6d4);}
.kb-info-action-map{background:linear-gradient(135deg,#dc2626,#f97316);}
.kb-info-action-diploma{background:linear-gradient(135deg,#7c3aed,#ec4899);}
.kb-info-action-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.kb-info-action-content strong{
  font-weight:950;
  font-size:.98rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.kb-info-action-content small{
  margin-top:.24rem;
  color:#64748b;
  font-weight:800;
}
.kb-info-action-arrow{
  margin-inline-start:auto;
  color:#94a3b8;
  font-size:.82rem;
}
.kb-info-detail-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.8rem;
}
.kb-info-detail-item{
  border-radius:20px;
  border:1px solid rgba(148,163,184,.20);
  background:rgba(248,250,252,.78);
  padding:.95rem 1rem;
}
.kb-info-detail-item span{
  display:block;
  margin-bottom:.25rem;
  color:#64748b;
  font-size:.82rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.025em;
}
.kb-info-detail-item strong{
  display:block;
  color:#0f172a;
  font-weight:850;
  line-height:1.45;
}
.kb-info-detail-wide{grid-column:1 / -1;}
html[dir="rtl"] .kb-info-action-card{direction:rtl;text-align:right;}
html[dir="rtl"] .kb-info-action-arrow{margin-inline-start:0;margin-inline-end:auto;transform:scaleX(-1);}
@media(max-width:992px){
  .kb-info-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:576px){
  .kb-info-action-grid{gap:.65rem;}
  .kb-info-action-card{min-height:82px;border-radius:21px;padding:.72rem;gap:.58rem;}
  .kb-info-action-icon{width:44px;height:44px;flex-basis:44px;border-radius:16px;font-size:1rem;}
  .kb-info-action-content strong{font-size:.9rem;}
  .kb-info-action-content small{font-size:.75rem;}
  .kb-info-detail-grid{grid-template-columns:1fr;}
  .kb-info-mini-badge{width:100%;justify-content:center;}
}

/* ================================================================
   V7.50 - Paramètres admin : visibilité des icônes de fiche publique
   ================================================================ */
.kb-admin-param-page .kb-admin-hero{
  background:linear-gradient(135deg,rgba(0,98,51,.10),rgba(59,130,246,.08));
  border:1px solid rgba(125,211,252,.45);
  border-radius:28px;
  padding:1.35rem;
  box-shadow:0 18px 50px rgba(15,23,42,.08);
}
.kb-admin-settings-group{
  border:1px solid rgba(148,163,184,.24);
  border-radius:24px;
  padding:1rem;
  background:linear-gradient(180deg,#fff,rgba(248,250,252,.75));
}
.kb-admin-setting-card{
  border:1px solid rgba(148,163,184,.28);
  border-radius:22px;
  padding:1rem;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.kb-admin-help-btn{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#006233;
}
.kb-admin-help-box{
  background:rgba(0,98,51,.06);
  border:1px solid rgba(0,98,51,.15);
  border-radius:20px;
  padding:1rem;
  color:#0f172a;
  line-height:1.65;
}
.kb-public-info-card .kb-info-action-grid:empty{display:none;}

/* ================================================================
   V7.51 - Visibilité publique à la main du prestataire / client
   Admin = autorisation globale, propriétaire = choix final.
   ================================================================ */
.kb-public-visibility-owner-panel{
  border:1px solid rgba(0,98,51,.16);
  background:linear-gradient(135deg,rgba(236,253,245,.78),rgba(239,246,255,.72));
  border-radius:26px;
  padding:1rem;
  box-shadow:0 16px 36px rgba(15,23,42,.06);
}
.kb-public-visibility-icon{
  width:48px;
  height:48px;
  border-radius:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 48px;
  color:#006233;
  background:#fff;
  border:1px solid rgba(0,98,51,.16);
  box-shadow:0 10px 24px rgba(0,98,51,.10);
}
.kb-public-visibility-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.75rem;
}
.kb-public-visibility-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:.35rem;
  min-height:128px;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(255,255,255,.86);
  border-radius:22px;
  padding:1rem .95rem .9rem;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
  user-select:none;
}
.kb-public-visibility-card:hover{
  transform:translateY(-2px);
  border-color:rgba(0,98,51,.34);
  box-shadow:0 15px 30px rgba(15,23,42,.09);
}
.kb-public-visibility-card input[type="checkbox"]{
  position:absolute;
  top:.85rem;
  right:.85rem;
  width:1.35rem;
  height:1.35rem;
  accent-color:#006233;
}
html[dir="rtl"] .kb-public-visibility-card input[type="checkbox"]{right:auto;left:.85rem;}
.kb-public-visibility-card span{
  width:44px;
  height:44px;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#006233;
  background:linear-gradient(135deg,#e8fff3,#eef6ff);
  border:1px solid rgba(0,98,51,.12);
  font-size:1.05rem;
}
.kb-public-visibility-card strong{font-size:.98rem;color:#0f172a;line-height:1.2;padding-right:1.6rem;}
.kb-public-visibility-card small{font-weight:700;color:#64748b;line-height:1.3;}
.kb-public-visibility-card:has(input[type="checkbox"]:checked){
  background:linear-gradient(135deg,rgba(220,252,231,.95),rgba(240,253,250,.86));
  border-color:rgba(0,98,51,.38);
}
.kb-public-visibility-card:has(input[type="checkbox"]:checked) strong{color:#006233;}
@media(max-width:992px){.kb-public-visibility-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:576px){
  .kb-public-visibility-owner-panel{border-radius:22px;padding:.9rem;}
  .kb-public-visibility-grid{grid-template-columns:1fr;gap:.65rem;}
  .kb-public-visibility-card{min-height:96px;padding:.85rem .9rem;}
}

/* === V7.53 - Espace client : avatar visible === */
.kb-client-dashboard-hero{
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(236,253,245,.92));
  border: 1px solid rgba(16,185,129,.18);
}
.kb-client-dashboard-avatar .kb-avatar,
.kb-client-dashboard-avatar .kb-avatar-initials{
  width: 86px;
  height: 86px;
  min-width: 86px;
  border-radius: 28px;
  box-shadow: 0 16px 34px rgba(15,23,42,.14);
  border: 4px solid rgba(255,255,255,.95);
  object-fit: cover;
}
.kb-client-avatar-status{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .7rem;
  border-radius: 999px;
  background: rgba(16,185,129,.10);
  color: #047857;
  font-weight: 700;
}
.kb-client-avatar-upload-card{
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 20px;
  background: rgba(248,250,252,.85);
}
.kb-client-avatar-upload-preview .kb-avatar,
.kb-client-avatar-upload-preview .kb-avatar-initials{
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
}
@media (max-width: 575.98px){
  .kb-client-dashboard-hero .d-flex{
    align-items: flex-start !important;
  }
  .kb-client-dashboard-avatar .kb-avatar,
  .kb-client-dashboard-avatar .kb-avatar-initials{
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 22px;
  }
  .kb-client-avatar-upload-card{
    align-items: flex-start;
  }
}

/* === V7.54 - Demandes clients : conversation déjà lancée === */
.kb-client-demand-card.has-thread {
    border-color: rgba(0, 123, 91, .25);
    background: linear-gradient(135deg, rgba(240,255,248,.98), rgba(255,255,255,.98));
}
.kb-demand-existing-thread {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid rgba(0,123,91,.18);
    border-radius: 1.25rem;
    background: rgba(236, 253, 245, .78);
}
.kb-demand-existing-thread-text {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    color: #0f172a;
}
.kb-demand-existing-thread-text small {
    color: #64748b;
    font-weight: 700;
}
.kb-demand-thread-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #d1fae5;
    color: #047857;
    font-weight: 900;
    font-size: .82rem;
}
.kb-demand-open-thread-btn {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
}
.kb-dir-rtl .kb-demand-existing-thread,
.kb-dir-rtl .kb-demand-existing-thread-text {
    text-align: right;
    align-items: flex-end;
}
@media (max-width: 575.98px) {
    .kb-demand-existing-thread { padding: .85rem; }
    .kb-demand-open-thread-btn { width: 100%; }
}


/* ================================================================
   MyKhadma V7.55 - Admin ludique + application mobile ready
   ================================================================ */
.kb-admin-page{background:radial-gradient(circle at top left,rgba(34,211,238,.13),transparent 32rem),radial-gradient(circle at top right,rgba(99,102,241,.12),transparent 28rem);min-height:calc(100vh - 80px)}
.kb-admin-hero,.kb-admin-subhero{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.55);border-radius:28px;padding:clamp(1.2rem,2.5vw,2.4rem);background:linear-gradient(135deg,rgba(7,17,31,.96),rgba(15,23,42,.92));color:#fff;box-shadow:0 24px 70px rgba(15,23,42,.18)}
.kb-admin-subhero{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(241,245,249,.88));color:#0f172a}
.kb-admin-pill{display:inline-flex;align-items:center;gap:.35rem;padding:.42rem .75rem;border-radius:999px;background:rgba(34,211,238,.14);border:1px solid rgba(34,211,238,.32);color:#67e8f9;font-weight:800;font-size:.82rem;margin-bottom:.75rem}.kb-admin-subhero .kb-admin-pill{color:#0369a1;background:#e0f2fe;border-color:#bae6fd}
.fw-black{font-weight:900}.kb-admin-score-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:24px;padding:1rem;backdrop-filter:blur(14px)}
.kb-admin-health-ring{--score:75%;width:132px;height:132px;margin:auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#22d3ee var(--score),rgba(255,255,255,.16) 0);position:relative}.kb-admin-health-ring:after{content:"";position:absolute;inset:12px;border-radius:50%;background:#07111f}.kb-admin-health-ring span{position:relative;z-index:1;font-size:1.7rem;font-weight:900;color:#fff}
.kb-mini-kpi{border-radius:16px;padding:.55rem;background:rgba(255,255,255,.1);display:flex;flex-direction:column}.kb-mini-kpi strong{font-size:1.25rem}.kb-mini-kpi small{opacity:.75}.kb-mini-kpi.ok strong{color:#86efac}.kb-mini-kpi.warn strong{color:#fde68a}.kb-mini-kpi.danger strong{color:#fca5a5}
.kb-admin-stat-card{height:100%;display:flex;align-items:center;gap:.85rem;padding:1rem;border-radius:22px;background:rgba(255,255,255,.92);border:1px solid rgba(226,232,240,.95);box-shadow:0 18px 44px rgba(15,23,42,.08);text-decoration:none;color:#0f172a;transition:.2s ease}.kb-admin-stat-card:hover{transform:translateY(-3px);box-shadow:0 26px 62px rgba(15,23,42,.12);color:#0f172a}.kb-admin-stat-icon{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#22d3ee,#6366f1);color:#fff}.kb-admin-stat-card small{display:block;color:#64748b;font-weight:800}.kb-admin-stat-card strong{display:block;font-size:1.65rem;line-height:1;font-weight:900}
.kb-admin-panel{border:1px solid rgba(226,232,240,.95);box-shadow:0 22px 60px rgba(15,23,42,.08)}.kb-admin-action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.8rem}.kb-admin-action-card{display:flex;min-height:132px;flex-direction:column;gap:.45rem;padding:1rem;border-radius:22px;text-decoration:none;color:#0f172a;background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #e2e8f0;transition:.2s ease}.kb-admin-action-card:hover{transform:translateY(-3px);color:#0f172a;box-shadow:0 18px 42px rgba(15,23,42,.1)}.kb-admin-action-card i{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:#e0f2fe;color:#0284c7;font-size:1.1rem}.kb-admin-action-card strong{font-weight:900}.kb-admin-action-card small{color:#64748b}.kb-admin-action-card.priority{background:linear-gradient(135deg,#ecfeff,#eef2ff);border-color:#bae6fd}
.kb-empty-state{display:grid;place-items:center;text-align:center;gap:.35rem;padding:1.4rem;border:1px dashed #cbd5e1;border-radius:22px;background:#f8fafc;color:#64748b}.kb-empty-state i{font-size:1.6rem;color:#22c55e}.kb-empty-state strong{color:#0f172a}.kb-empty-state small{display:block}.kb-empty-state.compact{padding:1rem}.kb-admin-todo,.kb-admin-thread{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.85rem;border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0;text-decoration:none;color:#0f172a}.kb-admin-todo:hover,.kb-admin-thread:hover{background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.08);color:#0f172a}.kb-admin-todo strong,.kb-admin-thread strong{display:block}.kb-admin-todo small,.kb-admin-thread small{display:block;color:#64748b}
.kb-admin-check{display:flex;align-items:flex-start;gap:.8rem;padding:.9rem;border-radius:18px;border:1px solid #e2e8f0;background:#fff}.kb-admin-check i{margin-top:.1rem}.kb-admin-check span{flex:1}.kb-admin-check strong{display:block}.kb-admin-check small{display:block;color:#64748b}.kb-admin-check em{font-style:normal;font-weight:900;border-radius:999px;padding:.25rem .55rem;background:#f1f5f9}.kb-admin-check.success{border-color:#bbf7d0;background:#f0fdf4}.kb-admin-check.success i{color:#16a34a}.kb-admin-check.warning{border-color:#fde68a;background:#fffbeb}.kb-admin-check.warning i{color:#d97706}.kb-admin-check.danger{border-color:#fecaca;background:#fef2f2}.kb-admin-check.danger i{color:#dc2626}.kb-admin-check.wide{align-items:center}.kb-admin-fix{margin-top:.35rem;color:#334155!important;font-weight:700}.kb-admin-status-box{border-radius:24px;padding:1.2rem;text-align:center;border:1px solid #e2e8f0;background:#fff;box-shadow:0 16px 38px rgba(15,23,42,.06)}.kb-admin-status-box strong{display:block;font-size:2rem;font-weight:900}.kb-admin-status-box span{font-weight:800;color:#64748b}.kb-admin-status-box.success strong{color:#16a34a}.kb-admin-status-box.warning strong{color:#d97706}.kb-admin-status-box.danger strong{color:#dc2626}
.kb-admin-table{--bs-table-bg:transparent}.kb-admin-table thead th{color:#475569;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}.kb-code{padding:1rem;border-radius:18px;background:#0f172a;color:#e0f2fe;white-space:pre-wrap}.kb-admin-roadmap{display:grid;gap:.75rem}.kb-admin-roadmap>div{padding:.9rem;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc}.kb-admin-roadmap strong{display:block}.kb-admin-roadmap small{display:block;color:#64748b}.kb-admin-clean-list{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}.kb-admin-clean-list li{display:flex;gap:.7rem;align-items:flex-start;padding:.8rem;border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0}.kb-admin-clean-list i{color:#16a34a;margin-top:.18rem}
@media(max-width:768px){.kb-admin-subhero{align-items:flex-start}.kb-admin-health-ring{width:108px;height:108px}.kb-admin-action-card{min-height:auto}.kb-admin-stat-card{padding:.85rem}.kb-admin-stat-card strong{font-size:1.35rem}}

/* ================================================================
   V7.57 - Page accès refusé jolie avec header/menu/footer
   ================================================================ */
.kb-access-denied-page{
  min-height:calc(100dvh - 220px);
  display:flex;
  align-items:center;
}
.kb-access-denied-card{
  position:relative;
  width:min(980px,100%);
  overflow:hidden;
  border-radius:34px;
  background:
    radial-gradient(circle at 10% 0%, rgba(210,16,52,.11), transparent 32%),
    radial-gradient(circle at 90% 8%, rgba(0,98,51,.13), transparent 34%),
    linear-gradient(180deg,#ffffff,#f8fbfa);
}
.kb-access-denied-card:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:34px;
  border:1px solid rgba(255,255,255,.75);
}
.kb-access-denied-icon{
  width:86px;
  height:86px;
  margin:0 auto 18px;
  display:grid;
  place-items:center;
  border-radius:30px;
  color:#fff;
  font-size:2.1rem;
  background:linear-gradient(135deg,var(--kb-secondary),var(--kb-primary));
  box-shadow:0 20px 50px rgba(0,98,51,.22);
}
.kb-access-denied-card .fw-black{font-weight:950;letter-spacing:-.04em;color:#0f172a;}
.kb-access-info-box{
  height:100%;
  padding:18px 20px;
  border-radius:24px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 14px 35px rgba(15,23,42,.05);
}
.kb-access-info-box span{
  display:block;
  color:#64748b;
  font-size:.86rem;
  font-weight:850;
  margin-bottom:6px;
}
.kb-access-info-box strong{
  display:block;
  color:#0f172a;
  font-size:1.15rem;
  font-weight:950;
}
.kb-access-help{
  background:linear-gradient(135deg,rgba(0,98,51,.08),rgba(210,16,52,.06));
  border:1px solid rgba(0,98,51,.10);
}
@media(max-width:576px){
  .kb-access-denied-page{align-items:flex-start;padding-top:24px!important;}
  .kb-access-denied-card{border-radius:28px;padding:24px!important;}
  .kb-access-denied-icon{width:72px;height:72px;border-radius:24px;font-size:1.7rem;}
  .kb-access-denied-card .display-6{font-size:1.75rem;}
}

/* V7.58 - validation admin fiches */
.kb-provider-dashboard .kb-profile-status.pending_review{
  background:#fef3c7!important;
  color:#92400e!important;
  border-color:#fde68a!important;
}
.kb-provider-dashboard .kb-profile-status.refused{
  background:#fee2e2!important;
  color:#991b1b!important;
  border-color:#fecaca!important;
}
.kb-admin-setting-switch .form-check-input{
  width:3.25rem;
  height:1.65rem;
  cursor:pointer;
}
.kb-admin-profile-approval-page table,
.kb-admin-profile-approvals-page table{
  font-size:.92rem;
}

/* V7.62 - Aperçu public des demandes clients */
.kb-request-preview-page .fw-black{font-weight:950;letter-spacing:-.03em;}
.kb-request-preview-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(20,241,149,.14),rgba(34,211,238,.12),#fff)!important;border:1px solid rgba(34,211,238,.22)!important;}
.kb-request-preview-hero.is-limited{background:linear-gradient(135deg,rgba(99,102,241,.12),rgba(245,158,11,.10),#fff)!important;}
.kb-request-preview-icon{width:72px;height:72px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(135deg,#006233,#14f195);color:#fff;font-size:1.75rem;box-shadow:0 18px 45px rgba(0,98,51,.18);margin-bottom:1rem;}
.kb-request-preview-icon.is-muted{margin-left:auto;margin-right:auto;background:linear-gradient(135deg,#64748b,#94a3b8);}
.kb-request-preview-mini{min-width:min(100%,260px);border-radius:24px;background:rgba(255,255,255,.88);border:1px solid rgba(148,163,184,.22);padding:1rem 1.1rem;box-shadow:0 16px 36px rgba(15,23,42,.08);display:flex;flex-direction:column;gap:.4rem;}
.kb-request-preview-mini span{font-size:.88rem;color:#64748b;font-weight:800;}
.kb-request-preview-mini strong{font-size:1.65rem;color:#006233;line-height:1;}
.kb-request-preview-public-info,.kb-request-detail-box{border-radius:22px;border:1px solid rgba(148,163,184,.22);background:#f8fafc;padding:1rem;}
.kb-request-preview-public-info span,.kb-request-detail-box span{display:block;color:#64748b;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;font-weight:900;margin-bottom:.35rem;}
.kb-request-preview-public-info strong,.kb-request-detail-box strong{display:block;color:#0f172a;font-size:1rem;font-weight:950;overflow-wrap:anywhere;}
.kb-request-preview-actions{border-radius:28px;background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid rgba(148,163,184,.22);padding:1rem;box-shadow:0 18px 48px rgba(15,23,42,.08);}
.kb-popup-request.is-limited .kb-popup-title{color:#0f172a!important;}
.kb-popup-limited-note{margin-top:.55rem;border-radius:14px;background:#fff7ed;border:1px solid rgba(245,158,11,.28);color:#92400e;font-weight:800;font-size:.78rem;line-height:1.25;padding:.55rem .65rem;}
@media(max-width:768px){.kb-request-preview-icon{width:60px;height:60px;border-radius:20px;font-size:1.45rem}.kb-request-preview-mini{width:100%;}.kb-request-preview-page{padding-top:1rem!important;}}
.kb-client-demand-card.is-selected-project{outline:4px solid rgba(20,241,149,.22);box-shadow:0 24px 70px rgba(0,98,51,.18)!important;}
.kb-client-demand-card.is-selected-project::before{content:"Demande sélectionnée";display:inline-flex;width:max-content;max-width:100%;border-radius:999px;background:#dcfce7;color:#166534;font-weight:950;font-size:.78rem;padding:.35rem .7rem;margin-bottom:.55rem;}

/* =========================================================
   V7.63 - Admin cockpit premium + parcours mobile/app
   ========================================================= */
.kb-admin-v763 .fw-black{font-weight:900}.kb-admin-superhero{position:relative;overflow:hidden;border:1px solid rgba(34,211,238,.22);border-radius:30px;padding:28px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(236,253,245,.88));box-shadow:0 22px 70px rgba(15,23,42,.08)}.kb-admin-superhero-glow{position:absolute;inset:auto -8% -45% auto;width:420px;height:420px;background:radial-gradient(circle,rgba(34,211,238,.22),transparent 65%);filter:blur(6px)}.kb-admin-kpi-card{display:flex;align-items:center;gap:14px;height:100%;padding:17px 18px;border:1px solid rgba(148,163,184,.22);border-radius:24px;background:rgba(255,255,255,.93);box-shadow:0 16px 44px rgba(15,23,42,.07);color:#0f172a;text-decoration:none;transition:.18s ease}.kb-admin-kpi-card:hover{transform:translateY(-2px);box-shadow:0 22px 60px rgba(15,23,42,.1);color:#0f172a}.kb-admin-kpi-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:18px;background:linear-gradient(135deg,#e0f2fe,#dcfce7);color:#047857;font-size:1.2rem}.kb-admin-kpi-body{display:flex;flex-direction:column;line-height:1.1}.kb-admin-kpi-body strong{font-size:1.75rem;font-weight:900;letter-spacing:-.04em}.kb-admin-kpi-body small{color:#64748b;font-weight:700}.kb-admin-kpi-card.is-warning .kb-admin-kpi-icon{background:#fef3c7;color:#92400e}.kb-admin-kpi-card.is-danger .kb-admin-kpi-icon{background:#fee2e2;color:#b91c1c}.kb-admin-kpi-card.is-info .kb-admin-kpi-icon{background:#dbeafe;color:#1d4ed8}.kb-admin-kpi-card.is-success .kb-admin-kpi-icon{background:#dcfce7;color:#15803d}.kb-admin-health-ring{--score:0;display:grid;place-items:center;width:132px;height:132px;border-radius:50%;background:conic-gradient(#16a34a calc(var(--score)*1%),#e2e8f0 0);box-shadow:inset 0 0 0 12px rgba(255,255,255,.7),0 18px 45px rgba(15,23,42,.12);position:relative}.kb-admin-health-ring:after{content:"";position:absolute;inset:16px;background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(148,163,184,.18)}.kb-admin-health-ring strong,.kb-admin-health-ring span{position:relative;z-index:1}.kb-admin-health-ring strong{font-size:1.65rem;font-weight:900}.kb-admin-health-ring span{font-size:.75rem;color:#64748b;font-weight:800;text-transform:uppercase}.kb-admin-action-list{display:grid;gap:12px}.kb-admin-action-row{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid rgba(148,163,184,.2);border-radius:20px;background:#fff}.kb-admin-action-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:16px;background:#ecfdf5;color:#047857}.kb-admin-action-row strong{display:block;font-weight:900}.kb-admin-action-row small{display:block;color:#64748b}.kb-admin-app-score{display:flex;align-items:baseline;gap:8px;padding:16px;border-radius:22px;background:linear-gradient(135deg,#ecfeff,#f0fdf4);border:1px solid rgba(34,211,238,.18)}.kb-admin-app-score strong{font-size:2rem;font-weight:900}.kb-admin-check-list{display:grid;gap:9px}.kb-admin-check-list.is-two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.kb-admin-check-list>div{display:flex;gap:9px;align-items:flex-start;padding:11px 12px;border-radius:16px;background:#f8fafc;border:1px solid rgba(148,163,184,.18)}.kb-admin-check-list i{margin-top:3px}.kb-admin-check-list .is-ok i{color:#16a34a}.kb-admin-check-list .is-ko i{color:#dc2626}.kb-admin-check-list strong{display:block}.kb-admin-check-list small{display:block;color:#64748b}.kb-admin-mini-list{display:grid;gap:9px}.kb-admin-mini-list a{display:block;padding:12px 14px;border:1px solid rgba(148,163,184,.18);border-radius:17px;text-decoration:none;background:#fff;color:#0f172a}.kb-admin-mini-list a:hover{background:#f8fafc}.kb-admin-mini-list strong{display:block;font-weight:900}.kb-admin-mini-list small{display:block;color:#64748b}.kb-admin-module-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}.kb-admin-module-grid a{display:flex;flex-direction:column;gap:7px;padding:17px;border-radius:22px;background:#fff;border:1px solid rgba(148,163,184,.18);box-shadow:0 12px 34px rgba(15,23,42,.05);text-decoration:none;color:#0f172a}.kb-admin-module-grid a i{font-size:1.35rem;color:#047857}.kb-admin-module-grid a strong{font-weight:900}.kb-admin-module-grid a small{color:#64748b}.kb-admin-flow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.kb-admin-flow-grid>div{padding:18px;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid rgba(148,163,184,.2)}.kb-admin-flow-grid strong{display:block;font-size:1.05rem;font-weight:900;margin-bottom:8px}.kb-admin-flow-grid span{display:block;color:#047857;font-weight:800;margin-bottom:8px}.kb-admin-flow-grid small{color:#64748b}.kb-admin-table th{white-space:nowrap}.kb-code{padding:14px 16px;border-radius:18px;background:#0f172a;color:#d1fae5;white-space:pre-wrap}.text-kb{color:#047857!important}@media (max-width:1199px){.kb-admin-module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.kb-admin-flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:767px){.kb-admin-superhero{padding:21px;border-radius:24px}.kb-admin-health-ring{width:112px;height:112px}.kb-admin-module-grid,.kb-admin-flow-grid,.kb-admin-check-list.is-two-columns{grid-template-columns:1fr}.kb-admin-kpi-card{padding:14px}.kb-admin-kpi-icon{width:42px;height:42px;flex-basis:42px}.kb-admin-kpi-body strong{font-size:1.35rem}}

/* ================================================================
   MyKhadma V7.67 - Correctif marge droite dashboard mobile/iPhone
   Objectif : empêcher un élément trop large du dashboard de créer
   une largeur de page artificielle sur Safari mobile.
   ================================================================ */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
body{
  min-width:0;
}
.kb-navbar{
  width:100%;
  max-width:100vw;
  overflow-x:hidden;
}
@supports (overflow: clip){
  .kb-navbar{overflow-x:clip;}
}
.kb-navbar .container,
.kb-navbar .container-fluid{
  min-width:0;
  max-width:100%;
}
.kb-provider-dashboard,
.kb-client-dashboard,
.kb-admin-v763,
main.container,
main.container-fluid{
  min-width:0;
}
.kb-provider-dashboard .d-flex,
.kb-provider-dashboard .row,
.kb-provider-dashboard [class*="col-"],
.kb-client-dashboard .d-flex,
.kb-client-dashboard .row,
.kb-client-dashboard [class*="col-"]{
  min-width:0;
}
.kb-provider-dashboard img,
.kb-provider-dashboard video,
.kb-client-dashboard img,
.kb-client-dashboard video{
  max-width:100%;
}
@media (max-width:575.98px){
  main.container.kb-provider-dashboard,
  main.container.kb-client-dashboard{
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:12px!important;
    padding-right:12px!important;
    overflow-x:hidden!important;
  }
  .kb-provider-dashboard .row,
  .kb-client-dashboard .row{
    --bs-gutter-x:1rem;
    margin-left:0!important;
    margin-right:0!important;
  }
  .kb-provider-dashboard .row > *,
  .kb-client-dashboard .row > *{
    min-width:0!important;
    padding-left:.5rem!important;
    padding-right:.5rem!important;
  }
  .kb-provider-dashboard .ms-3,
  .kb-client-dashboard .ms-3{
    margin-left:0!important;
  }
  html[dir="rtl"] .kb-provider-dashboard .ms-3,
  html[dir="rtl"] .kb-client-dashboard .ms-3{
    margin-right:0!important;
  }
  .kb-provider-dashboard .kb-card,
  .kb-provider-dashboard .kb-card-soft,
  .kb-provider-dashboard form.kb-card,
  .kb-client-dashboard .kb-card,
  .kb-client-dashboard .kb-card-soft,
  .kb-client-dashboard form.kb-card{
    max-width:100%!important;
    overflow-wrap:anywhere;
  }
  .kb-provider-dashboard .kb-profile-tabs-scroll{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain;
  }
  .kb-provider-dashboard .kb-profile-tab,
  .kb-provider-dashboard .kb-profile-tab:visited{
    min-width:min(82vw,330px)!important;
    max-width:min(82vw,330px)!important;
  }
  .kb-provider-dashboard .input-group,
  .kb-client-dashboard .input-group{
    flex-wrap:wrap;
  }
  .kb-provider-dashboard .input-group > .form-control,
  .kb-client-dashboard .input-group > .form-control{
    min-width:0;
  }
}

/* ================================================================
   MyKhadma V7.68 - Correctif toggle switch dashboard mobile
   Problème : Bootstrap place .form-check-input avec float + marge
   négative. Dans les lignes du dashboard client/prestataire, le
   switch sortait à gauche sur iPhone/Safari.
   ================================================================ */
.kb-client-dashboard .form-check.form-switch,
.kb-provider-dashboard .form-check.form-switch{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:.8rem!important;
  min-width:0!important;
  width:100%!important;
  min-height:52px!important;
  padding-left:0!important;
  padding-right:0!important;
  margin-left:0!important;
  margin-right:0!important;
}
html[dir="rtl"] .kb-client-dashboard .form-check.form-switch,
html[dir="rtl"] .kb-provider-dashboard .form-check.form-switch{
  padding-left:0!important;
  padding-right:0!important;
  margin-left:0!important;
  margin-right:0!important;
}
.kb-client-dashboard .form-check.form-switch .form-check-input,
.kb-provider-dashboard .form-check.form-switch .form-check-input{
  float:none!important;
  flex:0 0 3.15em!important;
  width:3.15em!important;
  height:1.62em!important;
  margin:0!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
}
.kb-client-dashboard .form-check.form-switch .form-check-label,
.kb-provider-dashboard .form-check.form-switch .form-check-label{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  line-height:1.28!important;
  overflow-wrap:anywhere!important;
}
@media (max-width:575.98px){
  .kb-client-dashboard .form-check.form-switch,
  .kb-provider-dashboard .form-check.form-switch{
    align-items:flex-start!important;
    gap:.7rem!important;
    padding:.15rem 0!important;
  }
  .kb-client-dashboard .form-check.form-switch .form-check-input,
  .kb-provider-dashboard .form-check.form-switch .form-check-input{
    margin-top:.12rem!important;
  }
}

/* ================================================================
   MyKhadma V7.71 - Correctif enregistrement prestation iPhone
   - formulaire principal sans formulaire imbriqué
   - bloc anti-abus plus lisible sur mobile
   - vérifications séparées du formulaire principal
   ================================================================ */
.kb-provider-dashboard .kb-abuse-confirm-card{
  background:linear-gradient(135deg,#fff7d6,#fffdf3)!important;
  border:1px solid rgba(245,158,11,.28)!important;
  border-radius:26px!important;
  box-shadow:0 18px 48px rgba(146,64,14,.08)!important;
  padding:1.2rem!important;
}
.kb-provider-dashboard .kb-abuse-check-row{
  display:flex!important;
  align-items:flex-start!important;
  gap:1rem!important;
  width:100%!important;
  cursor:pointer;
  margin:0!important;
}
.kb-provider-dashboard .kb-abuse-check-row .form-check-input{
  float:none!important;
  flex:0 0 3.05rem!important;
  width:3.05rem!important;
  height:2.05rem!important;
  margin:0!important;
  border-radius:.7rem!important;
  border:1px solid rgba(0,98,51,.25)!important;
  box-shadow:0 10px 22px rgba(0,98,51,.08)!important;
}
.kb-provider-dashboard .kb-abuse-check-row .form-check-input:checked{
  background-color:#006233!important;
  border-color:#006233!important;
}
.kb-provider-dashboard .kb-abuse-check-content{
  flex:1 1 auto!important;
  min-width:0!important;
  display:block!important;
  color:#334155!important;
  font-weight:800!important;
  line-height:1.45!important;
}
.kb-provider-dashboard .kb-abuse-check-content strong{
  display:block;
  color:#0f172a!important;
  margin-bottom:.25rem;
}
.kb-provider-dashboard .kb-abuse-check-content em{
  display:block;
  font-style:normal;
  color:#334155!important;
}
.kb-provider-dashboard .kb-provider-save-zone{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.15rem;
  padding-bottom:1.25rem;
}
.kb-provider-dashboard .kb-provider-save-button{
  min-height:58px;
  padding-left:1.35rem!important;
  padding-right:1.35rem!important;
  box-shadow:0 16px 38px rgba(0,98,51,.24)!important;
}
.kb-provider-dashboard .kb-provider-verification-summary{
  background:linear-gradient(135deg,#f8fafc,#ffffff)!important;
}
.kb-provider-dashboard .kb-provider-verifications-card{
  scroll-margin-top:110px;
}
.kb-provider-dashboard .kb-verification-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.9rem;
}
.kb-provider-dashboard .kb-verification-item{
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border-radius:22px;
  padding:1rem;
  min-width:0;
}
.kb-provider-dashboard .kb-verification-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:.75rem;
}
.kb-provider-dashboard .kb-verification-form .form-control{
  min-height:46px;
}
@media (max-width:575.98px){
  .kb-provider-dashboard .kb-abuse-confirm-card{
    padding:1rem!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .kb-provider-dashboard .kb-abuse-check-row{
    gap:.75rem!important;
  }
  .kb-provider-dashboard .kb-abuse-check-row .form-check-input{
    flex-basis:2.75rem!important;
    width:2.75rem!important;
    height:1.85rem!important;
  }
  .kb-provider-dashboard .kb-abuse-check-content{
    font-size:1rem!important;
    line-height:1.42!important;
    overflow-wrap:anywhere!important;
  }
  .kb-provider-dashboard .kb-provider-save-zone{
    align-items:stretch;
  }
  .kb-provider-dashboard .kb-provider-save-button{
    width:100%!important;
    min-height:56px;
    white-space:normal!important;
  }
  .kb-provider-dashboard .kb-verification-list{
    grid-template-columns:1fr;
  }
  .kb-provider-dashboard .kb-verification-head{
    flex-direction:column;
    gap:.25rem;
  }
}


/* ================================================================
   V7.72 - Correctif CRUD admin : liens, modales et mobile
   ================================================================ */
.kb-admin-param-page{position:relative;z-index:1;overflow-x:hidden;}
.kb-admin-param-page a[href],
.kb-admin-param-page button{position:relative;z-index:2;touch-action:manipulation;}
.kb-admin-sidebar{max-height:calc(100dvh - 96px);overflow:auto;}
.kb-admin-table-list{display:grid;gap:.35rem;max-height:none;}
.kb-admin-group-title{font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#047857;margin:.65rem .35rem .35rem;}
.kb-admin-table-link{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.72rem .82rem;border:1px solid rgba(148,163,184,.24);border-radius:18px;background:#fff;color:#0f172a;text-decoration:none;box-shadow:0 10px 24px rgba(15,23,42,.045);}
.kb-admin-table-link:hover{color:#006233;background:#f8fffb;border-color:rgba(0,98,51,.24);}
.kb-admin-table-link.active{background:linear-gradient(135deg,#006233,#059669);color:#fff;border-color:transparent;}
.kb-admin-table-link span{display:flex;flex-direction:column;min-width:0;line-height:1.12;}
.kb-admin-table-link strong{font-size:.88rem;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.kb-admin-table-link small{font-size:.72rem;opacity:.75;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.kb-admin-table-link em{font-style:normal;font-size:.68rem;font-weight:900;padding:.18rem .42rem;border-radius:999px;background:rgba(15,23,42,.06);}
.kb-admin-table-link.active em{background:rgba(255,255,255,.22);}
.kb-admin-data-wrap{border:1px solid rgba(148,163,184,.18);border-radius:22px;background:#fff;}
.kb-admin-data-wrap .table{margin-bottom:0;}
.kb-admin-help-box{white-space:pre-line;}
.kb-admin-delete-pk{white-space:pre-wrap;background:#0f172a;color:#d1fae5;border-radius:16px;padding:.85rem;max-height:220px;overflow:auto;}
@media(max-width:1199.98px){
  .kb-admin-sidebar{position:relative!important;top:auto!important;max-height:none;}
}
@media(max-width:575.98px){
  .kb-admin-param-page{padding-left:.75rem!important;padding-right:.75rem!important;}
  .kb-admin-param-page .kb-card{border-radius:24px!important;padding:1rem!important;}
  .kb-admin-search-form{width:100%;}
  .kb-admin-search-form .input-group{flex-wrap:nowrap;}
  .kb-admin-table-link{border-radius:16px;padding:.7rem .75rem;}
  .kb-admin-table th,.kb-admin-table td{font-size:.82rem;}
}


/* ================================================================
   MyKhadma V7.73 - Validation admin / email après renommage
   - alerte validation plus compacte
   - bloc confirmation plus propre sur iPhone
   ================================================================ */
.kb-provider-dashboard .kb-approval-status-alert{
  display:flex!important;
  align-items:flex-start!important;
  gap:.8rem!important;
  padding:1rem 1.1rem!important;
  border-radius:24px!important;
  line-height:1.35!important;
}
.kb-provider-dashboard .kb-approval-status-icon{
  width:2.35rem;
  height:2.35rem;
  border-radius:16px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:rgba(255,255,255,.72);
  box-shadow:0 10px 28px rgba(15,23,42,.08);
}
.kb-provider-dashboard .kb-approval-status-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:.15rem;
}
.kb-provider-dashboard .kb-approval-status-content span,
.kb-provider-dashboard .kb-approval-status-content small{
  overflow-wrap:anywhere;
}
.kb-provider-dashboard .kb-abuse-confirm-card{
  max-width:100%;
  overflow:hidden;
}
@media (max-width:575.98px){
  .kb-provider-dashboard .kb-approval-status-alert{
    padding:.9rem!important;
    gap:.65rem!important;
  }
  .kb-provider-dashboard .kb-approval-status-icon{
    width:2.1rem;
    height:2.1rem;
    border-radius:14px;
  }
  .kb-provider-dashboard .kb-abuse-check-content strong{
    font-size:1.02rem!important;
  }
  .kb-provider-dashboard .kb-abuse-check-content em{
    font-size:.96rem!important;
    line-height:1.38!important;
  }
}

/* V7.75 - Renvoi manuel des emails de validation admin */
.kb-approval-resend-box,
.kb-approval-inline-resend{
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(0,98,51,.16);
  border-radius: 18px;
  padding: .75rem;
}
.kb-approval-inline-resend{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem;
  max-width:100%;
}
.kb-approval-resend-box .btn:disabled,
.kb-approval-inline-resend .btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
@media (max-width: 575.98px){
  .kb-approval-resend-box form,
  .kb-approval-inline-resend{
    flex-direction:column;
    align-items:stretch!important;
  }
  .kb-approval-resend-box .btn,
  .kb-approval-inline-resend .btn{
    width:100%;
  }
}

/* V7.77 — boutons de retrait avatar/couverture */
.kb-media-remove-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.45rem 0 .9rem;}
.kb-media-remove-actions .btn{font-weight:800;border-radius:999px;}
.kb-privacy-name-note{font-size:.88rem;color:#64748b;margin-top:.35rem;}
@media (max-width: 575.98px){
  .kb-media-remove-actions{width:100%;}
  .kb-media-remove-actions .btn{width:100%;justify-content:center;}
}


/* V7.82 - Suppression directe d'une prestation depuis Mes prestations */
.kb-provider-dashboard .kb-profile-tab-wrap{
  min-width:310px!important;
  max-width:390px!important;
  flex:0 0 auto!important;
  scroll-snap-align:start;
}
.kb-provider-dashboard .kb-profile-tab-wrap .kb-profile-tab,
.kb-provider-dashboard .kb-profile-tab-wrap .kb-profile-tab:visited{
  min-width:100%!important;
  max-width:100%!important;
}
.kb-provider-dashboard .kb-profile-tab-delete-form{
  display:flex!important;
  justify-content:flex-end!important;
  margin-top:.45rem!important;
}
.kb-provider-dashboard .kb-profile-delete-btn{
  font-weight:850!important;
  background:rgba(255,255,255,.92)!important;
}
@media (max-width: 768px){
  .kb-provider-dashboard .kb-profile-tab-wrap{
    min-width:82vw!important;
    max-width:82vw!important;
  }
  .kb-provider-dashboard .kb-profile-tab-delete-form{
    justify-content:stretch!important;
  }
  .kb-provider-dashboard .kb-profile-delete-btn{
    width:100%!important;
  }
}


/* =========================================================
   MyKhadma V7.85 - Ajout prestation rapide / détaillé
   ========================================================= */
.kb-provider-entry-switch-card{
  border:1px solid rgba(34,211,238,.45)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(236,253,245,.88))!important;
}
.kb-provider-entry-toggle{
  display:inline-flex;
  gap:.45rem;
  padding:.35rem;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-radius:1.25rem;
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
.kb-provider-entry-toggle-btn{
  border:0;
  background:transparent;
  color:#334155;
  font-weight:850;
  border-radius:1rem;
  padding:.72rem 1rem;
  transition:.18s ease;
}
.kb-provider-entry-toggle-btn.is-active{
  background:linear-gradient(135deg,#008955,#00b894);
  color:#fff;
  box-shadow:0 12px 26px rgba(0,137,85,.22);
}
.kb-provider-entry-mode-panel[hidden]{
  display:none!important;
}
.kb-quick-provider-form{
  border-radius:1.5rem;
  background:rgba(255,255,255,.72);
}
.kb-quick-address-box{
  border:1px solid rgba(15,23,42,.10);
  background:rgba(248,250,252,.88);
  border-radius:1.25rem;
  padding:1rem;
}
@media (max-width:768px){
  .kb-provider-entry-toggle{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .kb-provider-entry-toggle-btn{
    padding:.7rem .55rem;
    font-size:.9rem;
  }
}


/* =========================================================
   V7.90 - Inscription : choix explicite Client / Prestataire
   ========================================================= */
.kb-auth-role-toggle{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.65rem;
  padding:.45rem;
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(135deg,rgba(240,253,244,.82),rgba(239,246,255,.92));
  border-radius:24px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 12px 26px rgba(15,23,42,.04);
}
.kb-auth-role-radio{
  position:absolute!important;
  opacity:0!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
.kb-auth-role-option{
  min-height:82px;
  display:flex;
  align-items:center;
  gap:.8rem;
  padding:.9rem 1rem;
  margin:0;
  border:1px solid rgba(15,23,42,.10);
  border-radius:20px;
  background:rgba(255,255,255,.82);
  color:#0f172a;
  cursor:pointer;
  user-select:none;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.kb-auth-role-option:hover{
  transform:translateY(-1px);
  border-color:rgba(0,98,51,.25);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}
.kb-auth-role-icon{
  width:46px;
  height:46px;
  flex:0 0 46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(0,98,51,.09);
  color:#006233;
  font-size:1.15rem;
}
.kb-auth-role-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  line-height:1.25;
}
.kb-auth-role-copy strong{
  font-weight:950;
  font-size:1.02rem;
}
.kb-auth-role-copy small{
  margin-top:.18rem;
  color:#64748b;
  font-weight:700;
  font-size:.82rem;
}
.kb-auth-role-radio:focus-visible + .kb-auth-role-option{
  outline:3px solid rgba(34,211,238,.40);
  outline-offset:3px;
}
.kb-auth-role-radio:checked + .kb-auth-role-option{
  border-color:rgba(0,98,51,.55);
  background:linear-gradient(135deg,#006233,#00a66a);
  color:#fff;
  box-shadow:0 18px 36px rgba(0,98,51,.24);
}
.kb-auth-role-radio:checked + .kb-auth-role-option .kb-auth-role-icon{
  background:rgba(255,255,255,.20);
  color:#fff;
}
.kb-auth-role-radio:checked + .kb-auth-role-option .kb-auth-role-copy small{
  color:rgba(255,255,255,.88);
}
@media (max-width:575.98px){
  .kb-auth-role-toggle{
    grid-template-columns:1fr;
    border-radius:22px;
  }
  .kb-auth-role-option{
    min-height:74px;
    padding:.82rem .9rem;
  }
}


/* V7.93 - Présence en ligne / géolocalisation live */
.kb-live-presence-card{
  border:1px solid rgba(0,137,85,.18);
  background:linear-gradient(135deg,rgba(236,253,245,.94),rgba(239,246,255,.92));
  box-shadow:0 18px 50px rgba(15,23,42,.08);
}
.kb-live-presence-head{display:flex;gap:1rem;align-items:flex-start;margin-bottom:1rem;}
.kb-live-presence-icon{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:#fff;color:#007a4d;box-shadow:0 12px 34px rgba(0,98,51,.12);font-size:1.25rem;flex:0 0 auto;}
.kb-live-presence-actions{display:grid;gap:.75rem;}
.kb-live-switch-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid rgba(148,163,184,.26);background:rgba(255,255,255,.78);border-radius:22px;padding:.85rem 1rem;}
.kb-live-switch-row strong{display:block;color:#0f172a;}
.kb-live-switch-row small{display:block;color:#64748b;font-weight:650;}
.kb-live-status{display:inline-flex;align-items:center;gap:.45rem;border-radius:999px;padding:.45rem .75rem;background:#f1f5f9;color:#64748b;font-weight:800;}
.kb-live-status::before{content:'';width:.62rem;height:.62rem;border-radius:999px;background:#94a3b8;}
.kb-live-status.is-ok{background:#dcfce7;color:#047857;}
.kb-live-status.is-ok::before{background:#10b981;box-shadow:0 0 0 6px rgba(16,185,129,.15);}
.kb-live-status.is-off{background:#f8fafc;color:#64748b;}
.kb-marker.is-online{box-shadow:0 0 0 4px rgba(16,185,129,.24),0 14px 32px rgba(16,185,129,.22)!important;}
.kb-marker.is-offline{opacity:.78;}
.kb-marker-live-dot{position:absolute;right:-2px;top:-2px;width:15px;height:15px;border-radius:999px;background:#10b981;border:3px solid #fff;box-shadow:0 0 0 5px rgba(16,185,129,.18);}
.kb-provider-option-badge.is-online,.kb-request-badge.is-online{background:#dcfce7!important;color:#047857!important;}
.kb-map-live-filters{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.65rem;}
.kb-map-live-filter{display:inline-flex;align-items:center;gap:.5rem;border:1px solid rgba(14,165,233,.18);background:rgba(255,255,255,.82);border-radius:999px;padding:.55rem .8rem;font-weight:850;color:#0f172a;cursor:pointer;user-select:none;}
.kb-map-live-filter input{accent-color:#009b63;}
.kb-map-live-filter i{color:#00875a;}
.kb-map-live-filter:has(input:checked){background:#dcfce7;border-color:rgba(16,185,129,.34);color:#065f46;}
@media(max-width:768px){
  .kb-live-switch-row{align-items:flex-start;flex-direction:column;}
  .kb-map-live-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.25rem;-webkit-overflow-scrolling:touch;}
  .kb-map-live-filter{flex:0 0 auto;}
}


/* V7.95 - Badges matching IA public */
.kb-ai-match-badge{
  background:linear-gradient(135deg,#0f766e,#2563eb)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.28)!important;
  box-shadow:0 10px 28px rgba(37,99,235,.18);
}


/* ================================================================
   V7.97 - Accueil bureau premium
   Base reprise depuis le nouveau ZIP fourni par l'utilisateur.
   Objectif : corriger l'affichage desktop de la home.
   ================================================================ */
.kb-home-page-v797{
  max-width:1480px;
  margin-left:auto;
  margin-right:auto;
}
.kb-home-hero-v797{
  isolation:isolate;
}
.kb-home-search-card-v797{
  position:relative;
  overflow:visible;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 28px 80px rgba(2,6,23,.22);
}
.kb-home-search-card-v797 .form-label{
  color:#0f172a;
  margin-bottom:.45rem;
}
.kb-home-search-card-v797 .kb-unified-field{
  min-height:56px;
}
.kb-home-search-card-v797 .kb-input{
  min-height:56px;
}
.kb-home-ai-badge-v797{
  vertical-align:middle;
  font-size:.72rem;
  margin-inline-start:.35rem;
}
.kb-home-feature-card-v797{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kb-home-feature-card-v797:hover{
  transform:translateY(-3px);
  box-shadow:0 24px 70px rgba(15,23,42,.10);
  border-color:rgba(0,98,51,.18);
}

@media (min-width:992px){
  .kb-home-page-v797{
    padding-top:32px!important;
  }
  .kb-home-hero-v797{
    width:min(100%, 1320px);
    margin-left:auto;
    margin-right:auto;
    min-height:430px;
    display:flex;
    align-items:center;
    border-radius:36px;
    padding:clamp(2.4rem, 4vw, 4.4rem)!important;
  }
  .kb-home-hero-v797::after{
    width:360px;
    height:360px;
    right:-105px;
    top:-105px;
  }
  .kb-home-badge-v797{
    padding:.55rem .85rem;
    font-weight:800;
    letter-spacing:.01em;
  }
  .kb-home-title-v797{
    max-width:720px;
    font-size:clamp(3rem, 4.2vw, 4.9rem);
    line-height:1.03;
    letter-spacing:-.055em;
    text-wrap:balance;
  }
  .kb-home-lead-v797{
    max-width:640px;
    font-size:clamp(1.05rem, 1.22vw, 1.32rem);
    line-height:1.65;
  }
  .kb-home-search-card-v797{
    max-width:520px;
    margin-inline-start:auto;
    border-radius:30px;
  }
  .kb-home-search-form-v797{
    --bs-gutter-x:1rem;
    --bs-gutter-y:1rem;
  }
  .kb-home-search-form-v797 > [class*="col-"]{
    min-width:0;
  }
  .kb-home-search-card-v797 .btn-kb{
    min-height:56px;
    font-weight:900;
    white-space:nowrap;
    padding-left:1.2rem;
    padding-right:1.2rem;
  }
  .kb-home-cards-v797{
    width:min(100%, 1180px);
  }
  .kb-home-feature-card-v797{
    min-height:185px;
    border-radius:28px;
  }
}

@media (min-width:1200px){
  .kb-home-search-card-v797{
    max-width:560px;
  }
  .kb-home-hero-v797{
    min-height:455px;
  }
}

@media (min-width:1400px){
  .kb-home-page-v797{
    max-width:1540px;
  }
  .kb-home-hero-v797{
    width:min(100%, 1380px);
  }
}

@media (max-width:991.98px){
  .kb-home-hero-v797{
    border-radius:28px;
  }
  .kb-home-title-v797{
    text-wrap:balance;
  }
  .kb-home-search-card-v797{
    border-radius:26px;
  }
}


/* =========================================================
   HOME REGISTER BLOCK — COMPACT + INTUITIF + COULEURS REGISTER
========================================================= */

.kb-home-register-choice-v797{
  margin-top:0;
}

.kb-home-register-card-v797{
  border-radius:30px;
  border:1px solid rgba(186,230,253,.85)!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:
    0 10px 28px rgba(15,23,42,.05),
    inset 0 1px 0 rgba(255,255,255,.75)!important;
  overflow:hidden;
}

/* ===== EN-TÊTE DU BLOC ===== */

.kb-home-register-head-v797{
  display:block!important;
  margin-bottom:20px!important;
}

.kb-home-register-head-v797 .kb-chip{
  margin-bottom:14px!important;
}

.kb-home-register-head-v797 h2{
  display:block!important;
  margin:0 0 10px!important;
  font-size:clamp(1.65rem,4vw,2.15rem)!important;
  font-weight:950!important;
  color:#0b132f!important;
  line-height:1.08!important;
  letter-spacing:-.03em;
}

.kb-home-register-head-v797 p{
  display:block!important;
  max-width:760px!important;
  margin:0!important;
  color:#667085!important;
  font-size:1rem!important;
  line-height:1.55!important;
}

/* ===== GRILLE DES CHOIX ===== */

.kb-home-register-grid-v797{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

/* ===== CARTES CLIENT / PRESTATAIRE NEUTRES ===== */

.kb-home-register-option-v797,
.kb-home-register-client-v797,
.kb-home-register-provider-v797{
  position:relative;
  display:flex;
  align-items:center;
  gap:16px;
  min-height:82px!important;
  padding:14px 16px;
  border-radius:24px;
  background:linear-gradient(135deg,#ffffff,#f8fafc)!important;
  border:1px solid rgba(15,23,42,.09)!important;
  color:#0b132f!important;
  text-decoration:none!important;
  box-shadow:0 7px 20px rgba(15,23,42,.05)!important;
  transition:.18s ease;
}

.kb-home-register-option-v797:hover,
.kb-home-register-client-v797:hover,
.kb-home-register-provider-v797:hover{
  transform:translateY(-2px);
  border-color:rgba(0,98,51,.32)!important;
  box-shadow:0 14px 34px rgba(0,98,51,.12)!important;
  color:#0b132f!important;
  background:linear-gradient(135deg,#ffffff,#f0fdf4)!important;
}

/* ===== ICÔNES ===== */

.kb-home-register-icon-v797{
  width:52px;
  height:52px;
  border-radius:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,98,51,.09)!important;
  color:#006233!important;
  font-size:1.25rem;
  flex:0 0 auto;
}

/* ===== TEXTE ===== */

.kb-home-register-copy-v797{
  min-width:0;
  flex:1 1 auto;
}

.kb-home-register-option-v797 strong{
  display:block;
  font-size:1.08rem;
  font-weight:900;
  line-height:1.12;
  color:#0b132f!important;
}

.kb-home-register-option-v797 small{
  display:block;
  margin-top:4px;
  font-size:.9rem;
  line-height:1.35;
  color:#64748b!important;
  font-weight:650;
}

/* ===== BOUTON CHOISIR ===== */

.kb-home-register-action-v797{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:36px;
  padding:8px 12px;
  border-radius:999px;
  background:linear-gradient(135deg,#006233,#00a66a)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:.8rem;
  font-weight:950;
  box-shadow:0 10px 22px rgba(0,98,51,.18);
  white-space:nowrap;
}

.kb-home-register-action-v797 i{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

.kb-home-register-option-v797:hover .kb-home-register-action-v797{
  box-shadow:0 14px 28px rgba(0,98,51,.25);
}

/* Ancien fallback si tu as encore seulement l’icône flèche */
.kb-home-register-arrow-v797{
  margin-left:auto;
  width:36px;
  height:36px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#006233,#00a66a)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  font-size:.95rem;
  box-shadow:0 10px 22px rgba(0,98,51,.18);
}

/* ===== BLOC CONNECTÉ ===== */

.kb-home-account-v797{
  display:flex;
  align-items:center;
  gap:18px;
}

.kb-home-account-icon-v797{
  width:64px;
  height:64px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#006233,#00a66a)!important;
  color:#fff!important;
  font-size:1.45rem;
  box-shadow:0 14px 30px rgba(0,98,51,.18);
  flex:0 0 auto;
}

.kb-home-account-content-v797{
  flex:1 1 auto;
  min-width:0;
}

.kb-home-account-content-v797 h2{
  margin:0 0 8px;
  font-size:clamp(1.65rem,4vw,2.15rem);
  font-weight:950;
  color:#0b132f;
}

.kb-home-account-content-v797 p{
  margin:0 0 16px;
  color:#667085;
  font-size:1rem;
  line-height:1.55;
}

/* ===== MOBILE ===== */

@media(max-width:575.98px){

  .kb-home-register-card-v797{
    padding:24px!important;
    border-radius:26px;
  }

  .kb-home-register-head-v797{
    margin-bottom:16px!important;
  }

  .kb-home-register-head-v797 h2{
    font-size:1.65rem!important;
  }

  .kb-home-register-head-v797 p{
    font-size:.96rem!important;
    line-height:1.52!important;
  }

  .kb-home-register-grid-v797{
    gap:12px;
  }

  .kb-home-register-option-v797,
  .kb-home-register-client-v797,
  .kb-home-register-provider-v797{
    min-height:78px!important;
    padding:13px;
    border-radius:22px;
    gap:12px;
  }

  .kb-home-register-icon-v797{
    width:48px;
    height:48px;
    border-radius:16px;
    font-size:1.12rem;
  }

  .kb-home-register-option-v797 strong{
    font-size:1.02rem;
  }

  .kb-home-register-option-v797 small{
    font-size:.84rem;
    line-height:1.3;
  }

  .kb-home-register-action-v797{
    min-width:auto!important;
    min-height:34px;
    padding:7px 10px;
    font-size:.76rem;
  }

  .kb-home-account-v797{
    align-items:flex-start;
    flex-direction:column;
  }

  .kb-home-account-icon-v797{
    width:58px;
    height:58px;
    border-radius:20px;
    font-size:1.3rem;
  }
}

/* Très petit écran : évite que le bouton Choisir écrase le texte */
@media(max-width:390px){
  .kb-home-register-option-v797{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .kb-home-register-copy-v797{
    flex:1 1 calc(100% - 64px);
  }

  .kb-home-register-action-v797{
    margin-left:64px;
  }
}