
:root{
  --bg:#f4f4f1; --card:#ffffff; --ink:#121826; --muted:#6b7280;
  --line:#e8e8e4; --navy:#10233f; --green:#22a06b; --amber:#e7a62f;
  --blue:#3b82f6; --red:#e45b5b; --violet:#7c5cff;
  --shadow:0 12px 34px rgba(18,24,38,.08);
  --radius:22px;
}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;background:linear-gradient(180deg,#fafaf8 0,#f1f2ef 100%);color:var(--ink)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}
.sidebar{background:rgba(16,35,63,.98);color:#fff;padding:28px 18px;position:sticky;top:0;height:100vh}
.brand{font-weight:800;letter-spacing:.06em;font-size:23px;margin-bottom:30px}
.brand small{display:block;font-weight:500;font-size:11px;letter-spacing:.16em;color:#b9c6d8;margin-top:7px}
.nav{display:grid;gap:8px}
.nav button{border:0;background:transparent;color:#dbe4ef;text-align:left;padding:13px 14px;border-radius:14px}
.nav button.active,.nav button:hover{background:rgba(255,255,255,.12);color:#fff}
.sidebar-bottom{position:absolute;left:18px;right:18px;bottom:20px;font-size:12px;color:#aebdd0}
.main{padding:28px}
.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.eyebrow{font-size:13px;color:var(--muted)}
h1{font-size:34px;line-height:1.05;margin:4px 0 0}
.actions{display:flex;gap:10px;align-items:center}
.btn{border:0;border-radius:14px;padding:11px 15px;background:var(--navy);color:white;font-weight:700}
.btn.light{background:white;color:var(--ink);border:1px solid var(--line)}
.btn.danger{background:#fff0f0;color:#b42318;border:1px solid #f3c7c7}
.grid-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}
.card{background:var(--card);border:1px solid rgba(0,0,0,.04);box-shadow:var(--shadow);border-radius:var(--radius)}
.kpi{padding:18px}
.kpi .label{font-size:13px;color:var(--muted)}
.kpi .value{font-size:28px;font-weight:800;margin-top:6px}
.content-grid{display:grid;grid-template-columns:1.35fr .9fr;gap:16px}
.panel{padding:20px}
.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.panel h2{font-size:18px;margin:0}
.program-card{display:grid;grid-template-columns:90px 1fr auto;gap:14px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:18px;margin-top:10px;background:#fff}
.thumb{width:90px;height:70px;border-radius:14px;object-fit:cover;background:#eef1f4}
.meta{font-size:12px;color:var(--muted);margin-top:3px}
.badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.badge{font-size:11px;padding:5px 8px;border-radius:999px;background:#f3f4f6}
.badge.green{background:#e8f7f0;color:#14784e}.badge.amber{background:#fff5df;color:#9c6c00}.badge.blue{background:#eaf2ff;color:#235bb7}.badge.red{background:#ffeded;color:#b42318}
.list{display:grid;gap:10px}
.item{padding:13px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}
.item:last-child{border-bottom:0}
.muted{color:var(--muted);font-size:13px}
.view{display:none}.view.active{display:block}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.field{display:grid;gap:6px}
.field.full{grid-column:1/-1}
.field label{font-size:12px;font-weight:700;color:#4b5563}
.field input,.field select,.field textarea{width:100%;border:1px solid #dadde2;border-radius:13px;padding:11px 12px;background:#fff}
.field textarea{min-height:90px;resize:vertical}
.modal{position:fixed;inset:0;background:rgba(12,18,28,.42);display:none;align-items:center;justify-content:center;padding:18px;z-index:10}
.modal.open{display:flex}
.modal-card{width:min(760px,100%);max-height:90vh;overflow:auto;background:white;border-radius:26px;padding:22px;box-shadow:0 30px 80px rgba(0,0,0,.22)}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.modal-head h3{margin:0;font-size:22px}
.icon-btn{border:0;background:#f3f4f6;border-radius:50%;width:36px;height:36px}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px}
table{border-collapse:collapse;width:100%;min-width:900px;background:#fff}
th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);font-size:13px}
th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:#fafafa}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.tab{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:999px}
.tab.active{background:var(--navy);color:#fff}
.hero-program{display:grid;grid-template-columns:1fr 280px;gap:16px;align-items:stretch;margin-bottom:16px}
.hero-program .info{padding:22px}
.hero-program img{width:100%;height:100%;min-height:210px;object-fit:cover;border-radius:var(--radius)}
.drop{border:1.5px dashed #cfd4dc;border-radius:18px;padding:20px;text-align:center;background:#fafbfc}
.annexes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.annex{border:1px solid var(--line);border-radius:14px;padding:10px}
.login{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{width:min(430px,100%);padding:30px}
.login-card h1{margin-bottom:8px}
.login-card p{color:var(--muted)}
.demo-note{background:#fff8e8;border:1px solid #f4df9f;border-radius:14px;padding:12px;font-size:12px;margin:14px 0}
.footer-note{font-size:11px;color:var(--muted);margin-top:18px}
.mobile-bar{display:none}
@media(max-width:980px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{display:none}
  .main{padding:18px 14px 88px}
  .grid-kpis{grid-template-columns:repeat(2,1fr)}
  .content-grid{grid-template-columns:1fr}
  .hero-program{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .annexes{grid-template-columns:repeat(2,1fr)}
  .mobile-bar{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top:1px solid var(--line);z-index:5;padding:8px 4px 10px}
  .mobile-bar button{border:0;background:transparent;font-size:11px;color:#667085;padding:7px 2px}
  .mobile-bar button.active{color:var(--navy);font-weight:800}
}
@media(max-width:600px){
  h1{font-size:28px}
  .grid-kpis{grid-template-columns:1fr 1fr}
  .kpi .value{font-size:22px}
  .program-card{grid-template-columns:68px 1fr}
  .program-card .btn{grid-column:1/-1}
  .thumb{width:68px;height:62px}
}

.row-actions{display:flex;gap:6px;flex-wrap:wrap}.mini-btn{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;padding:7px 9px;font-size:12px;font-weight:700}.mini-btn:hover{background:#f7f7f5}.danger-text{color:#b42318}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.photo-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}.photo-card img{display:block;width:100%;height:150px;object-fit:cover}.photo-placeholder{height:150px;display:grid;place-items:center;background:#f3f4f6;color:var(--muted)}.photo-card-body{padding:10px;display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px}@media(max-width:700px){.photo-grid{grid-template-columns:1fr 1fr}}

.plan-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.plan-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.plan-card img{display:block;width:100%;height:190px;object-fit:contain;background:#f7f7f5}
.plan-pdf{height:190px;display:grid;place-items:center;background:#f2f3f5;color:#b42318;font-size:42px;font-weight:900;letter-spacing:.06em}
.link-btn{text-decoration:none;display:inline-flex;align-items:center}
@media(max-width:700px){.plan-list{grid-template-columns:1fr}}

.program-resources{margin:16px 0 18px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
.resource-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.resource-head h3{margin:0;font-size:18px}.resource-head p{margin:3px 0 0;color:var(--muted);font-size:13px}
.resource-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.resource-btn{border:1px solid var(--line);background:#fff;border-radius:16px;padding:14px;text-decoration:none;color:var(--ink);display:grid;gap:5px;text-align:left}
.resource-btn span{font-size:22px}.resource-btn b{font-size:14px}.resource-btn small{color:var(--muted)}
.resource-btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(18,24,38,.06)}
.resource-btn.missing{border-style:dashed;cursor:pointer}
.lot-row{cursor:pointer}.lot-row:hover{background:#fafbfc}
.open-lot-btn{border:0;background:var(--navy);color:#fff;border-radius:11px;padding:9px 12px;font-weight:800;white-space:nowrap}
.lot-dossier-head{align-items:flex-start}
.lot-dossier-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.lot-summary-card{background:#f7f8fa;border:1px solid var(--line);border-radius:16px;padding:14px;display:grid;gap:5px}
.lot-summary-card small,.detail-item small,.annex-card small{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.lot-summary-card b{font-size:21px}.lot-summary-card span{font-size:12px;color:var(--muted)}
.lot-summary-card.price{background:#f5f8fc}
.lot-dossier-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lot-section{border:1px solid var(--line);border-radius:18px;padding:16px;background:#fff}
.lot-section.wide{grid-column:1/-1}
.lot-section-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:12px}
.lot-section-head h4{margin:0;font-size:16px}.lot-section-head p{margin:3px 0 0;color:var(--muted);font-size:12px}
.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.detail-item{background:#f8f9fa;border-radius:12px;padding:10px;display:grid;gap:4px}
.annex-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.annex-card{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:13px;padding:10px}
.annex-card>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--navy);color:#fff;font-weight:900}
.annex-card div{display:grid}.annex-card b{font-size:14px}
.asset-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.asset-card{text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.asset-card img,.asset-pdf{width:100%;height:105px;object-fit:cover;background:#f3f4f6}
.asset-pdf{display:grid;place-items:center;font-weight:900;color:#b42318}
.asset-card>div:last-child{padding:9px;display:grid;gap:2px}.asset-card small{color:var(--muted);font-size:10px}.asset-card b{font-size:12px}
.empty-asset{border:1px dashed #d4d7dc;border-radius:12px;padding:16px;color:var(--muted);font-size:12px}
.document-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.document-card{border:1px solid var(--line);border-radius:13px;padding:10px;text-decoration:none;color:var(--ink);display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center}
.document-card>span{display:grid;place-items:center;height:36px;border-radius:9px;background:#fff0f0;color:#b42318;font-size:11px;font-weight:900}
.document-card div{display:grid}.document-card b{font-size:13px}.document-card small{color:var(--muted);font-size:11px}.document-card strong{font-size:18px}
.inherited-docs{background:#fbfbfa}
@media(max-width:1050px){.resource-grid{grid-template-columns:repeat(2,1fr)}.asset-strip{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){
  .lot-dossier-summary,.lot-dossier-grid{grid-template-columns:1fr}
  .lot-section.wide{grid-column:auto}
  .resource-grid,.document-cards,.asset-strip,.detail-grid,.annex-cards{grid-template-columns:1fr}
}

/* V1.5.1 — correction mobile : centrage + largeur écran */
html,body{max-width:100%;overflow-x:hidden}
#app{max-width:100%;overflow-x:hidden}
.main{min-width:0;width:100%;max-width:100%}
.view{min-width:0;max-width:100%}
.card,.panel,.hero-program,.program-resources,.content-grid{min-width:0;max-width:100%}
.table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.modal{padding:12px}
.modal-card{width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);margin:0 auto}
.topbar{gap:12px}
.topbar>div:first-child{min-width:0}
.topbar h1{overflow-wrap:anywhere}
.actions{flex-wrap:wrap;justify-content:flex-end}

@media(max-width:700px){
  .main{padding:14px 12px 88px}
  .topbar{align-items:flex-start;flex-direction:column}
  .actions{width:100%;justify-content:flex-start}
  .actions .btn{max-width:100%}
  .grid-kpis{grid-template-columns:1fr 1fr;gap:8px}
  .content-grid{grid-template-columns:1fr}
  .panel{padding:14px}
  .hero-program{grid-template-columns:1fr}
  .hero-program .info{padding:16px}
  .program-resources{padding:14px}
  .resource-grid{grid-template-columns:1fr}
  .program-card{grid-template-columns:64px 1fr}
  .program-card .btn{grid-column:1/-1;width:100%}
  .thumb{width:64px;height:58px}
  .modal{align-items:flex-start;overflow-y:auto}
  .modal-card{width:calc(100vw - 20px);max-width:calc(100vw - 20px);margin:10px auto 24px;padding:16px;border-radius:20px}
  .lot-dossier-summary{grid-template-columns:1fr}
  .lot-dossier-grid{grid-template-columns:1fr}
  .lot-section.wide{grid-column:auto}
  .detail-grid,.annex-cards,.asset-strip,.document-cards{grid-template-columns:1fr}
  .lot-section-head{flex-direction:column}
  .lot-section-head .mini-btn{width:100%}
  .table-wrap table{min-width:760px}
  .mobile-bar{grid-template-columns:repeat(4,1fr)}
}

@media(max-width:430px){
  .main{padding-left:10px;padding-right:10px}
  h1{font-size:25px}
  .grid-kpis{grid-template-columns:1fr 1fr}
  .kpi{padding:13px}
  .kpi .value{font-size:20px}
  .modal-card{width:calc(100vw - 16px);max-width:calc(100vw - 16px);margin:8px auto 20px}
}

/* V1.5.2 — navigation stable + sidebar pleine hauteur */
@media(min-width:701px){
  .app-shell{display:block;min-height:100vh}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:250px;height:auto;min-height:100vh;z-index:50;box-sizing:border-box}
  .main{margin-left:250px;width:calc(100% - 250px);min-height:100vh}
}
.program-cover{position:relative;min-height:220px}
.program-cover>img{width:100%;height:100%;min-height:220px;object-fit:cover;border-radius:22px}
.cover-actions{position:absolute;left:10px;right:10px;bottom:10px;display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}
.cover-actions .mini-btn{background:rgba(255,255,255,.94);backdrop-filter:blur(8px)}
.cover-preview{width:100%;max-height:320px;object-fit:cover;border-radius:16px;border:1px solid var(--line)}
.annex-editor{display:grid;gap:8px}
.annex-edit-row{display:grid;grid-template-columns:150px 1fr 1.4fr 42px;gap:8px;align-items:center}
.annex-edit-row select,.annex-edit-row input{width:100%;border:1px solid var(--line);border-radius:11px;padding:10px 11px;background:#fff}
.annex-remove{width:38px;height:38px}
@media(max-width:700px){
  .main{margin-left:0;width:100%}
  .program-cover{min-height:190px}
  .program-cover>img{min-height:190px}
  .cover-actions{justify-content:flex-start}
  .annex-edit-row{grid-template-columns:1fr}
  .annex-remove{justify-self:end}
}

/* V1.5.3 — filtres, carousel programme, stock mobile propre */
.lot-filters{background:#10233f;color:#fff;border-radius:20px;padding:16px;margin:0 0 14px}
.filter-title{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:12px}
.filter-title>div{display:grid;gap:2px}.filter-title b{font-size:17px}.filter-title small{color:#c8d3e1}
.filter-reset{border:0;background:rgba(255,255,255,.12);color:#fff;border-radius:10px;padding:8px 10px;font-weight:700}
.filter-grid{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:9px}
.filter-field{display:grid;gap:5px}.filter-field label{font-size:11px;color:#c8d3e1;font-weight:700}
.filter-field select,.filter-field input{width:100%;min-width:0;border:1px solid rgba(255,255,255,.16);background:#294261;color:#fff;border-radius:11px;padding:10px 11px;outline:none}
.filter-field select option{color:#111;background:#fff}
.filter-field input::placeholder{color:#cbd4df}

.program-swipe{margin:16px 0 18px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:var(--shadow)}
.swipe-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.swipe-head h3{margin:0;font-size:18px}.swipe-head p{margin:3px 0 0;color:var(--muted);font-size:12px}
.swipe-controls{display:flex;gap:6px}.swipe-controls button{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:11px;font-weight:900}
.swipe-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.swipe-track::-webkit-scrollbar{display:none}
.swipe-card{flex:0 0 min(320px,72vw);scroll-snap-align:start;border:0;background:#f6f7f8;border-radius:16px;overflow:hidden;padding:0;text-align:left;color:var(--ink)}
.swipe-card img{display:block;width:100%;height:175px;object-fit:cover}.swipe-card span{display:block;padding:9px 11px;font-weight:700;font-size:12px}

.mobile-lot-list{display:none}
.mobile-lot-card{width:100%;border:1px solid var(--line);background:#fff;border-radius:17px;padding:14px;text-align:left;color:var(--ink);display:grid;gap:12px}
.mobile-lot-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.mobile-lot-top>div{display:grid;gap:3px}.mobile-lot-ref{font-size:18px;font-weight:900}.mobile-lot-top small{color:var(--muted)}
.mobile-lot-main{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mobile-lot-main>div,.mobile-lot-price>div{display:grid;gap:3px;background:#f7f8fa;border-radius:11px;padding:9px}
.mobile-lot-main small,.mobile-lot-price small{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em}
.mobile-lot-main b,.mobile-lot-price b{font-size:13px}
.mobile-lot-price{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mobile-lot-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.mobile-lot-bottom strong{color:var(--navy)}
.mobile-lot-list{gap:10px}

@media(max-width:1180px){
  .filter-grid{grid-template-columns:repeat(3,1fr)}
}

/* Le téléphone reste en vraie interface mobile même tourné en paysage. */
@media(max-width:980px), (hover:none) and (pointer:coarse) and (max-height:600px){
  html,body,#app{width:100%;max-width:100%;overflow-x:hidden}
  .sidebar{display:none!important}
  .main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:16px 14px 92px!important}
  .mobile-bar{display:grid!important;position:fixed;left:0;right:0;bottom:0;z-index:100}
  .desktop-lot-table{display:none!important}
  .mobile-lot-list{display:grid!important}
  .lot-stock-panel{padding:14px}
  .lot-stock-panel>.panel-head{align-items:flex-start;gap:5px;flex-direction:column}
  .filter-grid{grid-template-columns:repeat(2,1fr)}
  .program-swipe{padding:14px}
  .swipe-card{flex-basis:min(310px,82vw)}
  .swipe-card img{height:165px}
}

@media(max-width:560px){
  .lot-filters{padding:13px;border-radius:17px}
  .filter-title{align-items:flex-start}.filter-title small{font-size:11px}
  .filter-grid{grid-template-columns:1fr 1fr;gap:7px}
  .filter-field select,.filter-field input{padding:9px}
  .swipe-controls{display:none}
  .swipe-card{flex-basis:86vw}
  .mobile-lot-main{grid-template-columns:repeat(3,1fr)}
}

/* En paysage téléphone : compacte mais sans tableau géant ni décalage horizontal. */
@media(orientation:landscape) and (hover:none) and (pointer:coarse) and (max-height:600px){
  .main{padding:10px 12px 76px!important}
  .topbar{margin-bottom:12px}
  .grid-kpis{grid-template-columns:repeat(4,1fr)}
  .mobile-lot-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .mobile-lot-card{padding:11px}
  .swipe-card{flex-basis:42vw}
  .mobile-bar{padding:5px 4px 6px}
}

/* V1.5.4 — lightbox photos + barre mobile KlymmoPro avec bouton central + */

/* Agrandissement des visuels */
.swipe-card{cursor:zoom-in}
.photo-zoom-btn{position:relative;width:100%;border:0;background:transparent;padding:0;display:block;cursor:zoom-in}
.photo-zoom-btn img{display:block;width:100%;height:150px;object-fit:cover}
.photo-zoom-btn span{position:absolute;right:8px;bottom:8px;background:rgba(16,35,63,.88);color:#fff;border-radius:9px;padding:6px 8px;font-size:11px;font-weight:800;backdrop-filter:blur(8px)}
.modal-card.image-viewer-modal{width:min(1200px,calc(100vw - 30px));max-width:min(1200px,calc(100vw - 30px));padding:0;background:transparent;box-shadow:none;border:0;overflow:visible}
.image-viewer{position:relative;display:grid;place-items:center;min-height:100px}
.image-viewer img{display:block;max-width:100%;max-height:86vh;object-fit:contain;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.38)}
.image-viewer-close{position:absolute;z-index:3;right:12px;top:12px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.94);font-size:26px;line-height:1;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.image-viewer-caption{position:absolute;left:14px;bottom:14px;max-width:calc(100% - 28px);background:rgba(16,35,63,.88);color:#fff;border-radius:10px;padding:8px 11px;font-size:12px;font-weight:700;backdrop-filter:blur(8px)}

/* Menu "+" mobile */
.mobile-action-sheet{display:grid;gap:8px}
.mobile-action-sheet>button{width:100%;border:1px solid var(--line);background:#fff;border-radius:16px;padding:13px;display:grid;grid-template-columns:44px 1fr auto;gap:11px;align-items:center;text-align:left;color:var(--ink)}
.mobile-action-sheet>button:hover{background:#f8f9fa}
.mobile-action-sheet>button>div{display:grid;gap:3px}
.mobile-action-sheet b{font-size:14px}
.mobile-action-sheet small{color:var(--muted);font-size:11px;line-height:1.35}
.mobile-action-sheet strong{font-size:22px;color:var(--muted)}
.action-sheet-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--navy);color:#fff;font-size:22px;font-weight:900}

@media(max-width:980px), (hover:none) and (pointer:coarse) and (max-height:600px){
  /* Les actions Admin passent dans le gros + du bas */
  #view-dashboard .topbar .actions{display:none!important}

  .mobile-bar{grid-template-columns:repeat(4,1fr)!important;align-items:end}
  .mobile-bar.mobile-bar-admin{grid-template-columns:1fr 1fr 82px 1fr 1fr!important}
  .mobile-bar .mobile-fab-wrap{position:relative;overflow:visible;padding:0 2px 5px!important;color:var(--navy)!important}
  .mobile-fab{position:absolute;left:50%;top:-35px;transform:translateX(-50%);width:64px;height:64px;border-radius:22px;display:grid;place-items:center;background:var(--navy);color:#fff;font-size:38px;font-weight:300;box-shadow:0 10px 28px rgba(16,35,63,.30);border:5px solid #fff}
  .mobile-fab-wrap small{display:block;margin-top:17px;font-size:10px;font-weight:800;color:var(--navy)}
  .image-viewer-close{right:7px;top:7px}
  .image-viewer img{max-height:82vh;border-radius:14px}
}

@media(max-width:560px){
  .modal-card.image-viewer-modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}
}

/* V1.5.5 — bouton + mobile rond */
@media(max-width:980px), (hover:none) and (pointer:coarse) and (max-height:600px){
  .mobile-fab{
    width:66px;
    height:66px;
    border-radius:50%!important;
    font-size:40px;
    line-height:1;
  }
}

/* V1.5.6 — aperçu PDF automatique + supports programme compacts sur mobile */
.asset-card{border:1px solid var(--line);padding:0;text-align:left;cursor:pointer}
.asset-card em{font-style:normal;color:var(--muted);font-size:10px;margin-top:2px}
.pdf-thumb{position:relative;width:100%;height:180px;background:#f2f3f5;overflow:hidden;display:grid;place-items:center}
.pdf-thumb canvas{width:100%;height:100%;object-fit:contain;background:#fff}
.pdf-fallback{display:none;place-items:center;width:100%;height:100%;font-size:34px;font-weight:900;color:#b42318}
.pdf-viewer-wrap{width:100%;height:min(72vh,820px);border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#f2f3f5}
.pdf-viewer-wrap iframe{width:100%;height:100%;border:0;background:#fff}
.pdf-viewer-actions{display:flex;justify-content:flex-end;margin-top:12px}
.mobile-resource-trigger{display:none}
.mobile-doc-list{display:grid;gap:8px}
.mobile-doc-row{width:100%;border:1px solid var(--line);background:#fff;border-radius:15px;padding:12px;text-decoration:none;color:var(--ink);display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;text-align:left}
.mobile-doc-row>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#f2f4f7;font-weight:900}
.mobile-doc-row>div{display:grid;gap:2px}.mobile-doc-row small{color:var(--muted);font-size:11px}.mobile-doc-row strong{font-size:22px;color:var(--muted)}

@media(max-width:980px), (hover:none) and (pointer:coarse) and (max-height:600px){
  .program-resources{padding:12px!important}
  .program-resources .resource-head{margin-bottom:10px}
  .program-resources .resource-head p{display:none}
  .program-resources .resource-grid{display:none!important}
  .desktop-resource-add{display:none!important}
  .mobile-resource-trigger{display:grid;width:100%;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;border:1px solid var(--line);background:#fff;border-radius:16px;padding:13px;text-align:left;color:var(--ink)}
  .mobile-resource-trigger>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--navy);color:#fff;font-size:21px}
  .mobile-resource-trigger>div{display:grid;gap:2px}.mobile-resource-trigger small{color:var(--muted);font-size:11px}.mobile-resource-trigger strong{font-size:22px;color:var(--muted)}
  .pdf-thumb{height:220px}
  .pdf-viewer-wrap{height:68vh}
}

/* V1.5.7 — médias plein écran + retour au dossier lot + vraie vignette PDF */
.pdf-thumb{background:#fff}
.pdf-thumb canvas{display:none;width:100%;height:100%;object-fit:contain;background:#fff}
.pdf-fallback{display:grid!important;place-items:center;width:100%;height:100%;font-size:34px;font-weight:900;color:#b42318;background:#f4f5f7}
.pdf-card.pdf-ready .pdf-fallback{display:none!important}
.pdf-card.pdf-ready canvas{display:block!important}

#modal.media-fullscreen{padding:14px;background:rgba(10,20,35,.84)}
#modal.media-fullscreen .modal-card{overflow:visible}

.pdf-media-modal{width:min(1180px,calc(100vw - 28px))!important;max-width:min(1180px,calc(100vw - 28px))!important;height:min(92vh,940px);padding:0!important;background:#111820!important;border-radius:24px!important;overflow:hidden!important}
.pdf-media-viewer{position:relative;width:100%;height:100%;display:grid;grid-template-rows:auto 1fr auto;background:#111820;color:#fff}
.pdf-media-title{padding:16px 64px 10px 18px;display:grid;gap:2px}
.pdf-media-title b{font-size:18px}.pdf-media-title small{color:#bac5d2}
.pdf-fullscreen-stage{min-height:0;display:grid;place-items:center;padding:10px;background:#222a33;overflow:auto}
.pdf-fullscreen-stage canvas{display:none;max-width:100%;max-height:100%;background:#fff;box-shadow:0 8px 28px rgba(0,0,0,.35)}
.pdf-viewer-loading{color:#d7dde5;text-align:center;padding:20px}
.pdf-original-link{margin:12px 16px 16px;justify-self:end;background:#fff;color:#10233f;text-decoration:none;border-radius:12px;padding:10px 14px;font-weight:800}
.media-close{position:absolute;z-index:20;right:14px;top:14px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.95);color:#10233f;font-size:30px;line-height:1;box-shadow:0 8px 22px rgba(0,0,0,.24)}

#modal.media-fullscreen .image-viewer-modal{width:min(1300px,calc(100vw - 28px))!important;max-width:min(1300px,calc(100vw - 28px))!important;height:min(94vh,980px);padding:0!important;background:#070b10!important;border-radius:22px!important;overflow:hidden!important}
#modal.media-fullscreen .image-viewer{width:100%;height:100%;display:grid;place-items:center;background:#070b10}
#modal.media-fullscreen .image-viewer img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:0;box-shadow:none}
#modal.media-fullscreen .image-viewer-caption{left:16px;bottom:16px}

@media(max-width:980px), (hover:none) and (pointer:coarse){
  #modal.media-fullscreen{
    padding:0!important;
    align-items:stretch!important;
    background:#05080c;
  }
  #modal.media-fullscreen .modal-card,
  #modal.media-fullscreen .image-viewer-modal,
  #modal.media-fullscreen .pdf-media-modal{
    width:100vw!important;
    max-width:100vw!important;
    height:100dvh!important;
    max-height:100dvh!important;
    margin:0!important;
    border-radius:0!important;
  }
  #modal.media-fullscreen .image-viewer{
    width:100vw;
    height:100dvh;
  }
  #modal.media-fullscreen .image-viewer img{
    width:100vw;
    height:100dvh;
    object-fit:contain;
  }
  #modal.media-fullscreen .image-viewer-caption{
    left:12px;
    right:12px;
    bottom:18px;
    max-width:none;
    text-align:center;
  }
  .pdf-media-viewer{
    width:100vw;
    height:100dvh;
    grid-template-rows:auto 1fr auto;
  }
  .pdf-media-title{padding:14px 64px 8px 14px}
  .pdf-fullscreen-stage{padding:6px}
  .pdf-fullscreen-stage canvas{max-width:100%;max-height:100%}
  .pdf-original-link{margin:8px 12px 14px;justify-self:stretch;text-align:center}
  .media-close{right:12px;top:12px;width:46px;height:46px;font-size:31px}
}

/* V1.5.8 — PDF haute définition / Retina */
.pdf-thumb canvas{
  image-rendering:auto;
}
.pdf-fullscreen-stage canvas{
  image-rendering:auto;
  transform:translateZ(0);
}

/* V1.5.9 — hero programme premium + PDF interne haute définition */
.program-hero-premium{
  position:relative;
  margin:0 0 18px;
  min-height:390px;
  border-radius:28px;
  overflow:hidden;
  background:#0d1d35;
  box-shadow:var(--shadow);
}
.program-hero-premium>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.program-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(8,22,41,.82) 0%,rgba(8,22,41,.40) 42%,rgba(8,22,41,.08) 72%,rgba(8,22,41,0) 100%);
}
.program-hero-copy{
  position:absolute;
  left:34px;
  bottom:32px;
  z-index:2;
  max-width:560px;
  color:#fff;
}
.program-hero-copy h2{
  margin:4px 0 6px;
  font-size:42px;
  line-height:1;
  color:#fff;
}
.program-hero-copy p{
  margin:0 0 16px;
  color:rgba(255,255,255,.86);
  font-size:15px;
}
.light-text{color:rgba(255,255,255,.78)!important}
.program-hero-actions{
  position:absolute;
  z-index:3;
  right:18px;
  bottom:18px;
  display:flex;
  gap:8px;
}
.program-hero-actions .mini-btn{
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px);
}
.resource-btn{cursor:pointer}

/* PDF viewer stays entirely inside KlymmoPro */
.pdf-media-modal{
  grid-template-rows:auto 1fr!important;
}
.pdf-media-viewer{
  grid-template-rows:auto 1fr!important;
}
.pdf-original-link{display:none!important}

/* Slightly sharper canvas presentation */
.pdf-fullscreen-stage canvas{
  image-rendering:auto;
  -webkit-font-smoothing:antialiased;
}

@media(max-width:980px), (hover:none) and (pointer:coarse){
  .program-hero-premium{
    min-height:470px;
    border-radius:24px;
  }
  .program-hero-overlay{
    background:linear-gradient(0deg,rgba(8,22,41,.82) 0%,rgba(8,22,41,.24) 48%,rgba(8,22,41,.02) 72%);
  }
  .program-hero-copy{
    left:20px;
    right:20px;
    bottom:72px;
    max-width:none;
  }
  .program-hero-copy h2{
    font-size:34px;
  }
  .program-hero-actions{
    left:18px;
    right:auto;
    bottom:16px;
  }
}

@media(max-width:560px){
  .program-hero-premium{
    min-height:430px;
    margin-left:0;
    margin-right:0;
  }
  .program-hero-copy h2{font-size:30px}
}

/* V1.5.9.2 — PDF multi-pages + bon libellé document */
.pdf-media-viewer{
  grid-template-rows:auto 1fr!important;
}
.pdf-pages-stage{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:18px;
  background:#222a33;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  -webkit-overflow-scrolling:touch;
}
.pdf-page-wrap{
  position:relative;
  flex:0 0 auto;
  display:flex;
  justify-content:center;
  width:100%;
}
.pdf-page-canvas{
  display:block;
  max-width:100%;
  height:auto;
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
}
.pdf-page-counter{
  position:absolute;
  z-index:2;
  top:10px;
  left:max(10px,calc(50% - 470px));
  background:rgba(255,255,255,.94);
  color:#10233f;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:800;
  box-shadow:0 4px 14px rgba(0,0,0,.16);
}

@media(max-width:980px), (hover:none) and (pointer:coarse){
  .pdf-pages-stage{
    padding:10px 8px 28px;
    gap:12px;
  }
  .pdf-page-wrap{
    width:100%;
  }
  .pdf-page-canvas{
    width:100%!important;
    height:auto!important;
    max-width:100%!important;
    box-shadow:none;
  }
  .pdf-page-counter{
    position:sticky;
    align-self:flex-start;
    top:8px;
    left:auto;
    margin:0 0 -44px 8px;
    width:max-content;
    font-size:10px;
    padding:5px 8px;
  }
}

/* V1.6 — dashboard bulles + équipe + commission programme */
.dashboard-quicks{display:flex;gap:22px;align-items:flex-start;overflow-x:auto;scrollbar-width:none;padding:4px 2px 20px;margin-bottom:8px}
.dashboard-quicks::-webkit-scrollbar{display:none}
.quick-bubble{flex:0 0 128px;border:0;background:transparent;color:var(--ink);display:grid;justify-items:center;gap:8px;cursor:pointer}
.quick-circle{position:relative;width:104px;height:104px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;box-shadow:0 14px 30px rgba(16,35,63,.18)}
.quick-icon{font-size:29px;opacity:.96}.quick-circle strong{position:absolute;right:-5px;top:-5px;min-width:34px;height:34px;padding:0 8px;border-radius:999px;background:#fff;color:var(--navy);border:3px solid var(--navy);display:grid;place-items:center;font-size:14px}
.quick-circle em{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);background:#2ec7b9;color:#06241f;border-radius:999px;padding:4px 8px;font-size:9px;font-style:normal;font-weight:900;text-transform:uppercase;letter-spacing:.04em;box-shadow:0 4px 10px rgba(0,0,0,.12)}
.quick-label{font-weight:800;font-size:13px;white-space:nowrap}
.dashboard-content{margin-top:2px}
.team-panel{margin-bottom:14px}.team-list{display:grid;gap:9px}.team-row{display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:15px;background:#fff}.team-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:900;font-size:17px}.team-main{display:grid;gap:3px;min-width:0}.team-main b{font-size:14px}.team-main b em{font-size:9px;font-style:normal;background:#e7f8f3;color:#16755d;border-radius:999px;padding:3px 6px;margin-left:5px}.team-main small{color:var(--muted);overflow:hidden;text-overflow:ellipsis}.team-actions{display:flex;gap:7px;align-items:center}.team-actions select{border:1px solid var(--line);border-radius:10px;padding:8px 9px;background:#fff}.team-self{font-size:11px;color:var(--muted)}
@media(max-width:980px), (hover:none) and (pointer:coarse){
  .dashboard-quicks{gap:15px;margin-left:-2px;margin-right:-14px;padding-right:14px;padding-bottom:16px}.quick-bubble{flex-basis:96px}.quick-circle{width:78px;height:78px}.quick-icon{font-size:23px}.quick-circle strong{min-width:29px;height:29px;font-size:12px}.quick-label{font-size:11px}.dashboard-side-panel{margin-top:0}.team-row{grid-template-columns:42px 1fr}.team-actions,.team-self{grid-column:2/-1;justify-content:flex-start}.team-actions select{max-width:180px}
}

/* V1.6.1 — correction dashboard / rôles / barre mobile */

/* Sur ordinateur on garde les anciens pavés KPI. Les bulles sont uniquement mobiles. */
.mobile-dashboard-quicks{display:none}
.desktop-dashboard-kpis{display:grid}
.commercial-kpis{grid-template-columns:repeat(3,minmax(0,1fr));max-width:760px}

/* La barre du bas Admin doit conserver le + central et Équipe à droite. */
@media(max-width:980px), (hover:none) and (pointer:coarse) and (max-height:600px){
  .desktop-dashboard-kpis{display:none!important}
  .mobile-dashboard-quicks{
    display:flex!important;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    gap:7px!important;
    margin:2px -14px 14px 0!important;
    padding:4px 14px 8px 0!important;
  }
  .mobile-dashboard-quicks::-webkit-scrollbar{display:none}

  /* plus proche des bulles Klymmo classique : plus petites, davantage visibles */
  .mobile-dashboard-quicks .quick-bubble{
    flex:0 0 82px!important;
    width:82px!important;
    gap:6px!important;
  }
  .mobile-dashboard-quicks .quick-circle{
    width:68px!important;
    height:68px!important;
    box-shadow:0 9px 22px rgba(16,35,63,.15)!important;
  }
  .mobile-dashboard-quicks .quick-icon{font-size:20px!important}
  .mobile-dashboard-quicks .quick-circle strong{
    right:-5px!important;
    top:-5px!important;
    min-width:25px!important;
    height:25px!important;
    padding:0 6px!important;
    border-width:2px!important;
    font-size:11px!important;
  }
  .mobile-dashboard-quicks .quick-circle em{
    bottom:-7px!important;
    padding:3px 6px!important;
    font-size:7px!important;
  }
  .mobile-dashboard-quicks .quick-label{
    font-size:10px!important;
    line-height:1.1!important;
  }

  /* Les actions du haut sont dans le gros + sur mobile. */
  #view-dashboard .topbar .actions{display:none!important}

  /* Admin / Super Admin = Accueil | Programmes | + | Lots | Équipe */
  .mobile-bar.mobile-bar-admin{
    grid-template-columns:1fr 1fr 82px 1fr 1fr!important;
  }
}

/* Vrai téléphone portrait : 4 bulles environ visibles, la 5e accessible au swipe */
@media(max-width:560px){
  .mobile-dashboard-quicks .quick-bubble{flex-basis:80px!important}
  .mobile-dashboard-quicks .quick-circle{width:66px!important;height:66px!important}
}


/* ============================================================
   V1.6.2 — dashboard mobile épuré + pilotage commercial
   ============================================================ */

.dashboard-programs-only{margin-top:14px}

/* Module réservé Admin/Super Admin */
.sales-follow-card{
  margin:14px 0 2px;
  padding:18px;
  border:1px solid #ead7a3;
  border-radius:22px;
  background:linear-gradient(135deg,#fffdf7 0%,#fff9e9 100%);
  box-shadow:0 14px 34px rgba(80,61,15,.07);
}
.sales-follow-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}
.sales-follow-head h2{margin:2px 0 3px;font-size:21px}
.sales-follow-head p{margin:0;color:var(--muted);font-size:12px}
.sales-kicker{
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
  color:#9a6b00;
}
.sales-alert-dot{
  width:11px;height:11px;border-radius:50%;
  background:#e3a008;
  box-shadow:0 0 0 7px rgba(227,160,8,.12);
  margin:8px 7px 0 0;
}
.sales-follow-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.sales-action{
  border:1px solid rgba(16,35,63,.10);
  background:rgba(255,255,255,.78);
  border-radius:16px;
  padding:12px;
  display:grid;
  grid-template-columns:38px 1fr auto;
  gap:10px;
  align-items:center;
  text-align:left;
  color:var(--ink);
  cursor:pointer;
}
.sales-action:hover{background:#fff}
.sales-action.is-alert{border-color:#e0b346;background:#fff}
.sales-action-icon{
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;
  background:#10233f;color:#fff;font-size:18px;
}
.sales-action>span:nth-child(2){display:grid;gap:2px}
.sales-action small{font-size:10px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.sales-action b{font-size:22px;line-height:1}
.sales-action em{font-style:normal;font-size:10px;color:var(--muted)}
.sales-action>strong{font-size:22px;color:#10233f}
.sales-coming{cursor:default;opacity:.78}
.coming-pill{
  background:#eef1f5!important;color:#667085!important;
  border-radius:999px;padding:5px 8px;font-size:9px!important;font-weight:900;
}

/* Le menu inférieur doit rester très lisible, même inactif. */
@media(max-width:980px){
  .mobile-bar button{
    color:#12385f!important;
    font-weight:800!important;
    font-size:11px!important;
  }
  .mobile-bar button>div{
    color:#12385f!important;
    font-weight:900!important;
    margin-bottom:2px;
  }
  .mobile-bar button.active{
    color:#0b6d75!important;
    font-weight:900!important;
  }
  .mobile-bar button.active>div{color:#0b6d75!important}
}

/* Téléphone : petites bulles blanches cerclées bleu, plus aérées */
@media(max-width:980px), (hover:none) and (pointer:coarse) and (max-height:600px){
  .mobile-dashboard-quicks{
    overflow:visible!important;
    overflow-x:auto!important;
    padding:14px 14px 8px 0!important; /* laisse respirer les badges chiffres */
    margin:0 -14px 12px 0!important;
    gap:5px!important;
  }
  .mobile-dashboard-quicks .quick-bubble{
    flex:0 0 78px!important;
    width:78px!important;
    gap:6px!important;
  }
  .mobile-dashboard-quicks .quick-circle{
    width:64px!important;
    height:64px!important;
    background:#fff!important;
    color:#10233f!important;
    border:2px solid #16395f!important;
    box-shadow:0 7px 18px rgba(16,35,63,.07)!important;
    overflow:visible!important;
  }
  .mobile-dashboard-quicks .quick-icon{
    color:#16395f!important;
    font-size:19px!important;
    opacity:1!important;
  }
  .mobile-dashboard-quicks .quick-circle strong{
    right:-6px!important;
    top:-8px!important;
    min-width:25px!important;
    height:25px!important;
    padding:0 6px!important;
    border:2px solid #fff!important;
    background:#16395f!important;
    color:#fff!important;
    box-shadow:0 3px 9px rgba(16,35,63,.18);
    font-size:10px!important;
  }
  .mobile-dashboard-quicks .quick-label{
    color:#12385f!important;
    font-size:10px!important;
    font-weight:800!important;
  }
  .mobile-dashboard-quicks .quick-circle em{
    bottom:-8px!important;
    font-size:7px!important;
    padding:3px 6px!important;
  }

  .sales-follow-card{
    margin:5px 0 14px;
    padding:15px;
    border-radius:20px;
  }
  .sales-follow-head{margin-bottom:11px}
  .sales-follow-head h2{font-size:20px}
  .sales-follow-head p{font-size:11px}
  .sales-follow-grid{
    grid-template-columns:1fr;
    gap:7px;
  }
  .sales-action{
    min-height:67px;
    grid-template-columns:38px 1fr auto;
    padding:10px 11px;
    border-radius:14px;
  }
  .sales-action b{font-size:19px}
  .sales-action em{font-size:10px}

  .dashboard-programs-only{margin-top:0}
}

@media(max-width:560px){
  .mobile-dashboard-quicks .quick-bubble{flex-basis:76px!important}
  .mobile-dashboard-quicks .quick-circle{width:62px!important;height:62px!important}
}


/* ============================================================
   V1.6.3 — Dashboard stock + Pilotage commercial autonome
   ============================================================ */

/* Petites bulles façon app : légères, fines, moins "bouton lourd" */
@media(max-width:980px), (hover:none) and (pointer:coarse){
  .mobile-dashboard-quicks{
    padding-top:10px!important;
    gap:3px!important;
  }
  .mobile-dashboard-quicks .quick-bubble{
    flex:0 0 74px!important;
    width:74px!important;
  }
  .mobile-dashboard-quicks .quick-circle{
    width:56px!important;
    height:56px!important;
    border:1.5px solid #c9d8e8!important;
    background:linear-gradient(145deg,#ffffff,#f8fbfe)!important;
    box-shadow:0 7px 18px rgba(17,49,82,.055)!important;
  }
  .mobile-dashboard-quicks .quick-icon{
    font-size:17px!important;
    color:#173f67!important;
  }
  .mobile-dashboard-quicks .quick-circle strong{
    min-width:23px!important;
    height:23px!important;
    right:-7px!important;
    top:-7px!important;
    background:#fff!important;
    color:#12385f!important;
    border:1.5px solid #b8cade!important;
    box-shadow:0 5px 12px rgba(17,49,82,.12)!important;
  }
  .mobile-dashboard-quicks .quick-label{
    font-size:9px!important;
    color:#34516e!important;
    font-weight:800!important;
  }
}

/* Dashboard : stock compact */
.dashboard-program-card,.dashboard-stock-card{margin-top:14px}
.dash-lots{display:grid}
.dash-lot-row{
  display:grid;
  grid-template-columns:64px minmax(130px,1.2fr) 90px 120px 100px 18px;
  align-items:center;
  gap:12px;
  padding:11px 6px;
  border:0;
  border-top:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  text-align:left;
  cursor:pointer;
}
.dash-lot-row:first-child{border-top:0}
.dash-lot-row:hover{background:#fafbfd}
.dash-lot-number{display:grid;line-height:1}
.dash-lot-number small{font-size:8px;letter-spacing:.12em;color:var(--muted);font-weight:800}
.dash-lot-number b{font-size:16px;margin-top:3px}
.dash-lot-main{display:grid;gap:2px}
.dash-lot-main b{font-size:13px}
.dash-lot-main small{font-size:10px;color:var(--muted)}
.dash-lot-surface,.dash-lot-price{font-size:12px;font-weight:800}
.dash-lot-status{
  justify-self:start;
  padding:5px 8px;
  border-radius:999px;
  font-size:9px;
  font-weight:800;
}
.dash-lot-status.available{background:#e9f8f1;color:#14805b}
.dash-lot-status.option{background:#fff4d8;color:#9c6a00}
.dash-lot-status.reserved{background:#eaf2ff;color:#2d63b5}
.dash-lot-status.sold{background:#edf0f4;color:#485568}
.dash-lot-arrow{font-size:20px;color:#8c98a8}

/* Pilotage */
.pilotage-hero{
  margin:0 0 14px;
  padding:24px 26px;
  border-radius:24px;
  color:#fff;
  background:linear-gradient(135deg,#10233f 0%,#173f67 72%,#1e547d 100%);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  box-shadow:0 18px 38px rgba(16,35,63,.15);
}
.pilotage-kicker{font-size:9px;letter-spacing:.16em;font-weight:900;color:#9fe4dc}
.pilotage-hero h2{margin:4px 0 4px;font-size:28px;color:#fff}
.pilotage-hero p{margin:0;color:rgba(255,255,255,.72);font-size:12px}
.pilotage-hero-total{display:grid;text-align:right;gap:3px}
.pilotage-hero-total small{color:rgba(255,255,255,.65);font-size:10px}
.pilotage-hero-total b{font-size:28px;white-space:nowrap}

.pilotage-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.pilot-kpi{
  display:grid;
  grid-template-columns:42px 1fr;
  align-items:center;
  gap:10px;
  padding:15px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 9px 24px rgba(16,35,63,.05);
}
.pilot-kpi-icon{
  width:40px;height:40px;border-radius:13px;
  display:grid;place-items:center;
  background:#eef4fa;color:#163f67;font-size:18px;font-weight:900;
}
.pilot-kpi>div{display:grid;gap:2px;min-width:0}
.pilot-kpi small{font-size:9px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.pilot-kpi b{font-size:20px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pilot-kpi em{font-style:normal;color:var(--muted);font-size:9px}
.pilot-kpi.avenir .pilot-kpi-icon{background:#fff4d8;color:#9c6a00}
.pilot-kpi.sru .pilot-kpi-icon{background:#eaf2ff;color:#2d63b5}
.pilot-kpi.acte .pilot-kpi-icon{background:#e9f8f1;color:#14805b}

.pilotage-pipeline,.pilotage-actions,.pilotage-programs{margin-top:14px}
.pipeline-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.pipeline-stage{
  position:relative;
  padding:10px 14px 14px 18px;
  border-left:1px solid var(--line);
  display:grid;gap:3px;
}
.pipeline-stage:first-child{border-left:0}
.pipeline-dot{width:8px;height:8px;border-radius:50%;background:#8da0b4;margin-bottom:6px}
.pipeline-stage.available .pipeline-dot{background:#2ab48a}
.pipeline-stage.option .pipeline-dot{background:#e5a000}
.pipeline-stage.reserved .pipeline-dot{background:#4b83d1}
.pipeline-stage.sold .pipeline-dot{background:#10233f}
.pipeline-stage small{font-size:9px;text-transform:uppercase;font-weight:900;color:var(--muted)}
.pipeline-stage b{font-size:24px}
.pipeline-stage em{font-style:normal;font-size:10px;color:var(--muted)}

.pilotage-empty{
  display:flex;align-items:center;gap:12px;
  padding:16px;border:1px dashed #cdd7e2;border-radius:15px;
}
.pilotage-empty>span{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:#e9f8f1;color:#14805b;font-weight:900
}
.pilotage-empty>div{display:grid;gap:2px}
.pilotage-empty small{color:var(--muted)}
.pilotage-future{
  margin-top:10px;padding:10px 12px;border-radius:12px;
  background:#f7f9fb;display:flex;gap:10px;align-items:center
}
.pilotage-future span{font-size:9px;font-weight:900;text-transform:uppercase;background:#e8edf3;padding:5px 7px;border-radius:999px}
.pilotage-future p{margin:0;font-size:10px;color:var(--muted)}

.pilotage-relances{display:grid;gap:7px}
.pilotage-action-row{
  display:grid;grid-template-columns:46px 1fr 120px 18px;align-items:center;gap:10px;
  padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left;color:var(--ink)
}
.pilotage-action-lot{width:42px;height:42px;border-radius:12px;background:#10233f;color:#fff;display:grid;place-items:center;font-weight:900}
.pilotage-action-row>span:nth-child(2){display:grid;gap:2px}
.pilotage-action-row small{color:var(--muted);font-size:10px}
.pilotage-action-row>strong{text-align:right;font-size:12px}
.pilotage-action-row>em{font-style:normal;font-size:20px}

.pilotage-program-list{display:grid}
.pilotage-program-row{
  display:grid;grid-template-columns:54px minmax(150px,1fr) repeat(4,100px) 18px;
  align-items:center;gap:10px;padding:10px 4px;border:0;border-top:1px solid var(--line);
  background:transparent;text-align:left;color:var(--ink)
}
.pilotage-program-row:first-child{border-top:0}
.pilotage-program-row img{width:50px;height:50px;border-radius:12px;object-fit:cover;background:#eef1f4}
.pilotage-program-main{display:grid;gap:2px}
.pilotage-program-main small{font-size:10px;color:var(--muted)}
.pilotage-program-row>span:not(.pilotage-program-main){display:grid;gap:1px}
.pilotage-program-row>span small{font-size:8px;text-transform:uppercase;font-weight:900;color:var(--muted)}
.pilotage-program-row>span b{font-size:15px}
.pilotage-program-row>span em{font-style:normal;font-size:8px;color:var(--muted)}
.pilotage-program-row>strong{font-size:20px}

@media(max-width:980px), (hover:none) and (pointer:coarse){
  .dashboard-program-card{margin-top:5px}
  .dashboard-stock-card{margin-top:12px}
  .dashboard-stock-card .panel-head .muted{display:none}
  .dash-lot-row{
    grid-template-columns:42px minmax(90px,1fr) auto auto 16px;
    gap:7px;padding:10px 1px;
  }
  .dash-lot-number small{display:none}
  .dash-lot-number b{font-size:13px}
  .dash-lot-main b{font-size:12px}
  .dash-lot-main small{font-size:9px;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dash-lot-surface{display:none}
  .dash-lot-price{font-size:11px;white-space:nowrap}
  .dash-lot-status{font-size:8px;padding:4px 6px}
  .dash-lot-arrow{font-size:17px}

  .pilotage-hero{
    padding:18px;border-radius:20px;display:grid;gap:16px
  }
  .pilotage-hero h2{font-size:24px}
  .pilotage-hero-total{text-align:left}
  .pilotage-hero-total b{font-size:25px}
  .pilotage-kpis{
    grid-template-columns:1fr 1fr;
    gap:8px
  }
  .pilot-kpi{padding:12px;grid-template-columns:34px 1fr;border-radius:15px}
  .pilot-kpi-icon{width:34px;height:34px;border-radius:10px;font-size:15px}
  .pilot-kpi b{font-size:16px}
  .pipeline-grid{grid-template-columns:1fr 1fr}
  .pipeline-stage{border-left:0;border-top:1px solid var(--line);padding:11px}
  .pipeline-stage:nth-child(-n+2){border-top:0}

  .pilotage-program-row{
    grid-template-columns:44px 1fr auto 16px;
  }
  .pilotage-program-row img{width:42px;height:42px}
  .pilotage-program-row>span:not(.pilotage-program-main){display:none}
  .pilotage-program-row:after{
    content:"Voir";
    font-size:9px;color:var(--muted);font-weight:800
  }
  .pilotage-action-row{grid-template-columns:40px 1fr auto 15px}
  .pilotage-action-row>strong{font-size:10px}
}


/* ============================================================
   V1.7 — Multi-promoteurs / Mon compte / Administration plateforme
   ============================================================ */
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.account-grid{display:grid;grid-template-columns:1fr;gap:14px}
.account-profile-card{margin:0}
.account-profile-top{display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:14px}
.account-profile-top h2{margin:0 0 3px}
.account-avatar{width:58px;height:58px;border-radius:50%;background:#10233f;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:900}
.account-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.account-info-grid>div{padding:12px;border-radius:14px;background:#f7f9fb;display:grid;gap:3px}
.account-info-grid small,.org-card small{color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800}
.account-info-grid b{font-size:13px}

.platform-entry-card{border:0;border-radius:22px;padding:20px;background:linear-gradient(135deg,#10233f,#174b76);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;cursor:pointer;box-shadow:0 15px 34px rgba(16,35,63,.15)}
.platform-entry-card span{font-size:9px;letter-spacing:.13em;font-weight:900;color:#80dfd6}
.platform-entry-card h2{margin:4px 0;color:#fff}
.platform-entry-card p{margin:0;color:rgba(255,255,255,.72);font-size:11px}
.platform-entry-card strong{white-space:nowrap}

.account-orgs,.team-panel{margin-top:14px}
.org-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.org-card{border:1px solid var(--line);border-radius:18px;padding:15px;background:#fff;display:grid;gap:7px}
.org-card h3{margin:0}
.org-card p{margin:0;color:var(--muted);font-size:11px;min-height:18px}
.org-type{font-size:8px;letter-spacing:.12em;font-weight:900;color:#278c83}
.org-contact{display:grid;gap:3px;color:#455568;font-size:10px}
.org-card-footer{display:flex;justify-content:space-between;align-items:center;padding-top:7px;border-top:1px solid var(--line);font-size:10px;font-weight:800}
.pending-title{font-size:10px;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:18px 0 8px}
.program-check-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
.program-check-list label{border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;gap:8px;align-items:center;font-size:11px;font-weight:700}

.agency-access-list{display:grid}
.agency-access-row{border:0;border-top:1px solid var(--line);background:transparent;padding:12px 2px;display:flex;justify-content:space-between;align-items:center;text-align:left;color:var(--ink)}
.agency-access-row:first-child{border-top:0}
.agency-access-row>div{display:grid;gap:2px}
.agency-access-row small{color:var(--muted)}

.platform-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:12px}
.platform-kpi{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;display:grid;gap:3px;box-shadow:0 8px 22px rgba(16,35,63,.04)}
.platform-kpi small,.platform-money small{font-size:9px;color:var(--muted);text-transform:uppercase;font-weight:900;letter-spacing:.04em}
.platform-kpi b{font-size:24px}
.platform-kpi em,.platform-money em{font-style:normal;color:var(--muted);font-size:9px}
.platform-money-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.platform-money{padding:17px;border-radius:18px;background:#10233f;color:#fff;display:grid;gap:4px}
.platform-money small,.platform-money em{color:rgba(255,255,255,.65)}
.platform-money b{font-size:20px}
.saas-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.saas-strip>div{display:grid;gap:4px;padding:12px 16px;border-left:1px solid var(--line)}
.saas-strip>div:first-child{border-left:0}
.saas-strip small{font-size:9px;text-transform:uppercase;color:var(--muted);font-weight:900}
.saas-strip b{font-size:20px}

.platform-org-list{display:grid}
.platform-org-row{display:grid;grid-template-columns:48px 1fr 140px 18px;gap:12px;align-items:center;border:0;border-top:1px solid var(--line);background:transparent;padding:11px 2px;text-align:left;color:var(--ink)}
.platform-org-row:first-child{border-top:0}
.platform-org-logo{width:44px;height:44px;border-radius:13px;background:#eef4fa;color:#173f67;display:grid;place-items:center;font-weight:900;font-size:18px}
.platform-org-row>span:nth-child(2){display:grid;gap:2px}
.platform-org-row>span:nth-child(2) small{color:var(--muted);font-size:10px}
.platform-org-row>span:nth-child(3){display:grid;gap:1px}
.platform-org-row>span:nth-child(3) small{font-size:8px;text-transform:uppercase;color:var(--muted);font-weight:900}
.platform-org-row>span:nth-child(3) em{font-style:normal;font-size:9px;color:var(--muted)}
.platform-modal-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.platform-modal-kpis>div{padding:12px;border-radius:14px;background:#f7f9fb;display:grid;gap:3px}
.platform-modal-kpis small{font-size:8px;color:var(--muted);text-transform:uppercase;font-weight:900}
.platform-modal-kpis b{font-size:16px}

@media(max-width:980px){
  .org-card-grid{grid-template-columns:1fr}
  .account-profile-top{grid-template-columns:50px 1fr auto}
  .account-avatar{width:50px;height:50px}
  .account-info-grid{grid-template-columns:1fr}
  .platform-entry-card{padding:17px}
  .platform-entry-card strong{font-size:11px}
  .program-check-list{grid-template-columns:1fr}
  .platform-kpis{grid-template-columns:1fr 1fr}
  .platform-money-grid{grid-template-columns:1fr 1fr}
  .saas-strip{grid-template-columns:1fr 1fr}
  .saas-strip>div:nth-child(odd){border-left:0}
  .platform-org-row{grid-template-columns:42px 1fr 16px}
  .platform-org-row>span:nth-child(3){display:none}
  .platform-modal-kpis{grid-template-columns:1fr 1fr}
}

@media(max-width:560px){
  .platform-kpis{grid-template-columns:1fr 1fr 1fr}
  .platform-kpi{padding:11px}
  .platform-kpi b{font-size:19px}
  .platform-money-grid{grid-template-columns:1fr}
}


/* ============================================================
   V1.7.1 — Aperçu sécurisé + rôles simplifiés
   ============================================================ */
.preview-banner{
  position:sticky;top:0;z-index:120;
  margin:-20px -24px 16px;padding:10px 18px;
  background:#fff7dc;border-bottom:1px solid #efd58b;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  box-shadow:0 7px 18px rgba(16,35,63,.07)
}
.preview-banner>div{display:grid;gap:2px}
.preview-banner b{font-size:12px;color:#10233f}
.preview-banner span{font-size:10px;color:#756631}
.preview-banner button{
  border:0;background:#10233f;color:#fff;border-radius:999px;
  padding:8px 12px;font-size:10px;font-weight:900;white-space:nowrap
}
.preview-user-btn,.preview-org-btn{color:#174b76!important;border-color:#b8cee3!important;background:#f6fbff!important}
.platform-org-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;align-items:center!important;
  padding:10px 2px!important;border-top:1px solid var(--line)!important
}
.platform-org-row:first-child{border-top:0!important}
.platform-org-main{
  width:100%;border:0;background:transparent;padding:0;
  display:grid;grid-template-columns:48px 1fr 140px 18px;gap:12px;
  align-items:center;text-align:left;color:var(--ink)
}
.platform-org-main>span:nth-child(2){display:grid;gap:2px}
.platform-org-main>span:nth-child(2) small{color:var(--muted);font-size:10px}
.platform-subscription{display:grid;gap:1px}
.platform-subscription small{font-size:8px;text-transform:uppercase;color:var(--muted);font-weight:900}
.platform-subscription em{font-style:normal;font-size:9px;color:var(--muted)}
.team-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.team-self{white-space:nowrap}

@media(max-width:980px){
  .preview-banner{margin:-20px -14px 14px;padding:9px 12px}
  .preview-banner span{display:none}
  .platform-org-row{grid-template-columns:1fr!important}
  .platform-org-main{grid-template-columns:42px 1fr 16px}
  .platform-subscription{display:none!important}
  .preview-org-btn{justify-self:start;margin-left:54px}
}


/* ============================================================
   V1.7.2 — Propriétaire plateforme séparé + Signalements
   ============================================================ */
.account-help-row{
  margin-top:14px;padding-top:14px;border-top:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;gap:14px
}
.account-help-row>div{display:grid;gap:2px}
.account-help-row b{font-size:12px;color:var(--ink)}
.account-help-row small{font-size:10px;color:var(--muted)}
.report-btn{border-color:#bfd7ea!important;background:#f7fbff!important;color:#174b76!important}
.report-context{
  margin-top:12px;padding:10px 12px;border-radius:14px;background:#f6f8fb;
  display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:10px
}
.platform-support-panel{margin-bottom:14px}
.report-count{
  font-size:10px;font-weight:900;color:#8b6300;background:#fff5d7;
  border:1px solid #f0d587;border-radius:999px;padding:7px 10px
}
.support-report-list{display:grid;gap:8px}
.support-report-row{
  display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:12px;
  align-items:start;border:1px solid var(--line);border-radius:16px;padding:13px;background:#fff
}
.report-dot{width:8px;height:8px;border-radius:50%;background:#e7a400;margin-top:6px}
.support-report-row.in_progress .report-dot{background:#2c78b8}
.support-report-row.resolved{opacity:.72}
.support-report-row.resolved .report-dot{background:#37a66a}
.support-report-main{display:grid;gap:5px}
.support-report-title{display:flex;gap:8px;align-items:center}
.support-report-title b{font-size:11px}
.support-report-title span{
  font-size:8px;font-weight:900;text-transform:uppercase;color:var(--muted);
  background:#f3f5f7;border-radius:999px;padding:4px 7px
}
.support-report-main p{margin:0;font-size:11px;line-height:1.45;color:var(--ink)}
.support-report-main small{font-size:9px;color:var(--muted)}
.support-report-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.report-resolve{color:#187a4c!important}
.platform-modal-team{margin-top:16px}
.platform-modal-team h4{margin:0 0 8px;font-size:12px}
.platform-modal-team .team-row{padding:10px 0}

@media(max-width:700px){
  .account-help-row{align-items:flex-start;flex-direction:column}
  .report-btn{width:100%;justify-content:center}
  .support-report-row{grid-template-columns:8px minmax(0,1fr)}
  .support-report-actions{grid-column:2;justify-content:flex-start}
}


/* ============================================================
   V1.7.4 — Mode assistance propriétaire plateforme
   ============================================================ */
.preview-action-pair{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.support-user-btn{
  border-color:#9ddfd3!important;
  background:#ecfbf8!important;
  color:#0c6c61!important;
}
.preview-banner.support-active{
  background:linear-gradient(135deg,#e8fbf7,#fff9e9);
  border-color:#8fd9cd;
  color:#0c344a;
}
.preview-banner.support-active b{color:#0b5f57}
.preview-banner.support-active button{
  background:#0f3558;
  color:#fff;
  border-color:#0f3558;
}
.platform-preview-actions{min-width:max-content}

@media(max-width:700px){
  .preview-action-pair{
    justify-content:flex-start;
    width:100%;
  }
  .team-actions .preview-action-pair{width:auto}
  .preview-banner.support-active{
    border-left:0;
    border-right:0;
  }
}


/* ============================================================
   V1.7.5 — Suivi support + statuts + réponses + notifications
   ============================================================ */
.nav button{position:relative;display:flex;align-items:center;gap:8px}
.nav-label{min-width:0;flex:1}
.nav-support-badge{
  display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;
  border-radius:999px;background:#e34f4f;color:#fff;font-size:10px;font-weight:900;
  box-shadow:0 0 0 2px rgba(255,255,255,.14)
}
.nav-support-badge[hidden]{display:none!important}
.mobile-bar button{position:relative}
.mobile-bar .nav-support-badge{position:absolute;top:0;right:13%;min-width:18px;height:18px;font-size:9px;z-index:3}
.platform-support-badge{
  display:inline-flex;margin-top:10px;background:#fff1f1;color:#b42318;border:1px solid #ffd0d0;
  border-radius:999px;padding:5px 8px;font-size:10px;font-style:normal;font-weight:900
}
.platform-support-badge[hidden]{display:none!important}
.my-support-panel{margin:14px 0}
.my-support-list{display:grid;gap:8px}
.my-support-row{
  position:relative;width:100%;border:1px solid var(--line);background:#fff;border-radius:16px;
  padding:12px 14px;display:grid;grid-template-columns:90px minmax(0,1fr) auto 8px 14px;
  align-items:center;gap:10px;text-align:left;color:var(--ink)
}
.my-support-row:hover{background:#fafbfc}
.my-support-row.has-update{border-color:#9fc5e8;background:#fbfdff}
.my-support-kind{font-size:10px;font-weight:900;text-transform:uppercase;color:#506174}
.my-support-copy{display:grid;gap:3px;min-width:0}
.my-support-copy b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.my-support-copy small{font-size:9px;color:var(--muted)}
.report-status-pill{font-size:9px;font-weight:900;border-radius:999px;padding:6px 8px;white-space:nowrap;background:#f2f4f7;color:#667085}
.report-status-pill.seen{background:#eef5ff;color:#2a64a1}
.report-status-pill.in_progress{background:#fff5da;color:#8a6200}
.report-status-pill.resolved{background:#eaf8f0;color:#177b4c}
.support-update-dot{width:8px;height:8px;border-radius:50%;background:#e34f4f;box-shadow:0 0 0 4px #fff1f1}
.report-user-unread{font-size:10px;font-weight:900;color:#b42318;background:#fff1f1;border-radius:999px;padding:6px 9px}
.support-detail-status{display:inline-flex;margin-bottom:12px;border-radius:999px;padding:7px 10px;background:#f2f4f7;font-size:10px;font-weight:900}
.support-detail-status.seen{background:#eef5ff;color:#2a64a1}
.support-detail-status.in_progress{background:#fff5da;color:#8a6200}
.support-detail-status.resolved{background:#eaf8f0;color:#177b4c}
.support-detail-block,.support-reply-box,.support-waiting-box{border-radius:16px;padding:14px;margin:10px 0}
.support-detail-block{background:#f7f8fa;border:1px solid var(--line)}
.support-detail-block small,.support-reply-box small{display:block;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:6px}
.support-detail-block p,.support-reply-box p{margin:0;line-height:1.55;font-size:13px;white-space:pre-wrap}
.support-reply-box{background:#effaf5;border:1px solid #bde6d1}
.support-reply-box em{display:block;margin-top:8px;font-size:9px;color:#5e7468;font-style:normal}
.support-waiting-box{background:#fbfbf9;border:1px dashed var(--line);font-size:12px;color:var(--muted)}
.platform-reply-preview{margin-top:3px;padding:7px 9px;border-radius:10px;background:#effaf5;color:#315f4b;font-size:10px;line-height:1.4}
.report-count-wrap{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.report-new-count{font-size:10px;font-weight:900;color:#b42318;background:#fff1f1;border:1px solid #ffd0d0;border-radius:999px;padding:7px 10px}
.support-report-row.seen .report-dot{background:#7b93ad}

@media(max-width:700px){
  .my-support-row{grid-template-columns:68px minmax(0,1fr) auto 8px 10px;padding:11px 12px;gap:7px}
  .my-support-copy b{font-size:11px}
  .report-status-pill{font-size:8px;padding:5px 6px}
  .platform-support-badge{margin-top:8px}
}


/* ============================================================
   V1.7.6 — Notifications lues + suppression propre support
   ============================================================ */
.report-delete{color:#b42318!important;border-color:#f0c6c3!important;background:#fff8f7!important}
.danger-soft{background:#fff8f7!important;color:#b42318!important;border:1px solid #f0c6c3!important}
.danger-soft:hover,.report-delete:hover{background:#fff0ee!important}


/* ============================================================
   V1.7.7 — Support plus visible + confirmation élégante + badges live
   ============================================================ */
.support-help-highlight{
  display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;
  margin-top:18px;padding:14px 16px!important;border:1px solid #f2c8c8!important;
  border-radius:18px;background:linear-gradient(135deg,#fffafa 0%,#fff5f5 100%);
}
.support-help-icon{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:#b42318;color:#fff;font-size:20px;font-weight:900;box-shadow:0 7px 18px rgba(180,35,24,.16)
}
.support-help-copy{display:grid;gap:3px;min-width:0}
.support-help-copy b{font-size:13px;color:#7d1f18}
.support-help-copy small{font-size:10px;line-height:1.4;color:#6f5b59}
.report-btn-prominent{
  background:#fff!important;color:#b42318!important;border:1px solid #e6a9a5!important;
  box-shadow:0 4px 12px rgba(180,35,24,.08);font-weight:900!important
}
.report-btn-prominent:hover{background:#fff0ef!important;border-color:#cf746d!important}
.support-success-pop{
  position:fixed;right:24px;bottom:24px;z-index:99999;max-width:min(440px,calc(100vw - 32px));
  display:grid;grid-template-columns:46px minmax(0,1fr) 32px;align-items:center;gap:12px;
  padding:16px 16px 16px 14px;border-radius:20px;border:1px solid #bce2cf;background:#fff;
  box-shadow:0 22px 70px rgba(13,32,58,.22);opacity:0;transform:translateY(14px) scale(.98);
  transition:opacity .2s ease,transform .2s ease;pointer-events:auto
}
.support-success-pop.show{opacity:1;transform:translateY(0) scale(1)}
.support-success-icon{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e9f8f0;color:#14784e;
  font-size:22px;font-weight:900
}
.support-success-pop>div:nth-child(2){display:grid;gap:3px}
.support-success-pop b{font-size:14px;color:#10233d}
.support-success-pop span{font-size:11px;line-height:1.45;color:#667085}
.support-success-pop button{
  border:0;background:#f3f4f6;width:30px;height:30px;border-radius:50%;font-size:20px;line-height:1;color:#667085;cursor:pointer
}
@media(max-width:700px){
  .support-help-highlight{grid-template-columns:38px minmax(0,1fr);padding:13px!important}
  .support-help-icon{width:34px;height:34px;font-size:18px}
  .report-btn-prominent{grid-column:1/-1;width:100%;min-height:46px;font-size:13px!important}
  .support-success-pop{left:16px;right:16px;bottom:92px;max-width:none;grid-template-columns:42px minmax(0,1fr) 30px}
}

/* ============================================================
   V1.7.8 — Support : CTA visible, confirmations Klymmo, édition
   ============================================================ */
.support-help-highlight{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:18px!important;
  align-items:center!important;
  margin-top:18px!important;
  padding:17px 18px 17px 20px!important;
  border:1px solid #efb5b1!important;
  border-left:5px solid #c93f35!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#fffafa 0%,#fff4f3 100%)!important;
  box-shadow:0 8px 24px rgba(180,35,24,.055)!important;
}
.support-help-copy{display:grid!important;gap:4px!important;min-width:0!important}
.support-help-kicker{
  display:inline-flex;align-items:center;gap:7px;width:max-content;
  font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.11em;color:#a52f27
}
.support-help-kicker i{width:7px;height:7px;border-radius:50%;background:#d64238;box-shadow:0 0 0 4px #ffe2df}
.support-help-copy b{font-size:14px!important;line-height:1.25!important;color:#151b2a!important}
.support-help-copy small{font-size:10px!important;line-height:1.45!important;color:#6d5c5b!important}
.report-btn-prominent{
  min-height:44px!important;padding:0 17px!important;border-radius:13px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  background:#b9342b!important;color:#fff!important;border:1px solid #b9342b!important;
  box-shadow:0 8px 20px rgba(185,52,43,.18)!important;font-weight:900!important
}
.report-btn-prominent:hover{background:#a52b23!important;border-color:#a52b23!important;transform:translateY(-1px)}
.report-btn-dot{width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.2)}
.support-edit-hint{
  margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#f6f8fb;border:1px dashed #cad4df;
  color:#5d6a79;font-size:10px;line-height:1.4
}
.support-user-actions{gap:8px!important}

.support-confirm-wrap{text-align:center;padding:8px 4px 2px}
.support-confirm-icon{
  width:54px;height:54px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;
  background:#fff0ee;color:#b42318;font-size:25px;font-weight:900;border:1px solid #f2c5c1
}
.support-confirm-wrap h3{margin:0 0 8px;font-size:21px;color:#111827}
.support-confirm-wrap p{max-width:460px;margin:0 auto 20px;color:#667085;font-size:12px;line-height:1.5}
.support-confirm-actions{justify-content:center!important}
.support-confirm-actions .danger{background:#b42318!important;border-color:#b42318!important;color:#fff!important}
.support-confirm-actions .danger:hover{background:#981f17!important}

.support-notice-pop{
  position:fixed;right:24px;bottom:24px;z-index:100000;max-width:min(450px,calc(100vw - 32px));
  display:grid;grid-template-columns:44px minmax(0,1fr) 30px;align-items:center;gap:12px;
  padding:15px;border-radius:18px;background:#fff;border:1px solid #d9e0e8;box-shadow:0 22px 70px rgba(13,32,58,.22);
  opacity:0;transform:translateY(12px) scale(.98);transition:.2s ease
}
.support-notice-pop.show{opacity:1;transform:translateY(0) scale(1)}
.support-notice-pop>div:nth-child(2){display:grid;gap:3px}
.support-notice-pop b{font-size:13px;color:#10233d}
.support-notice-pop span{font-size:10px;color:#667085;line-height:1.45}
.support-notice-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#eef4fa;color:#174b76;font-weight:900}
.support-notice-pop.warning .support-notice-icon{background:#fff6df;color:#956700}
.support-notice-pop.error .support-notice-icon{background:#fff0ee;color:#b42318}
.support-notice-pop button{border:0;background:#f3f4f6;width:30px;height:30px;border-radius:50%;font-size:18px;color:#667085;cursor:pointer}

@media(max-width:700px){
  .support-help-highlight{grid-template-columns:1fr!important;gap:13px!important;padding:16px!important;border-left-width:4px!important}
  .report-btn-prominent{width:100%!important;min-height:49px!important;font-size:13px!important}
  .support-help-copy b{font-size:15px!important}
  .support-help-copy small{font-size:11px!important}
  .support-confirm-wrap h3{font-size:19px}
  .support-confirm-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}
  .support-notice-pop{left:16px;right:16px;bottom:92px;max-width:none}
}

/* =====================================================================
   KlymmoPro V1.7.9 — vues globales multi-programmes + identité mobile
   ===================================================================== */

/* Logo dashboard mobile : symbole EXACT du Klymmo classique.
   Seul le wordmark devient KLYMMOPRO. */
.dashboard-brand-mark{display:none}
@media(max-width:980px), (hover:none) and (pointer:coarse){
  .dashboard-brand-mark{
    display:grid;
    justify-items:center;
    gap:8px;
    margin:2px 0 22px;
  }
  .dashboard-brand-symbol-img{
    display:block;
    width:100px;
    height:auto;
    object-fit:contain;
    filter:drop-shadow(0 12px 25px rgba(16,35,63,.10));
  }
  .dashboard-brand-word{
    color:#102f50;
    font-size:20px;
    line-height:1;
    letter-spacing:.17em;
    font-weight:900;
    padding-left:.17em;
  }
  .dashboard-brand-word span{color:#159e93}
}

/* Filtres portefeuille programmes / acquéreurs */
.portfolio-filters{
  background:#10233f;
  color:#fff;
  border-radius:20px;
  padding:16px;
  margin:0 0 14px;
  box-shadow:0 12px 28px rgba(16,35,63,.10);
}
.portfolio-filters .filter-title small{color:#c8d3e1}
.program-filter-grid{
  display:grid;
  grid-template-columns:minmax(220px,1.6fr) repeat(3,minmax(140px,1fr));
  gap:9px;
}
.program-filter-grid .filter-field select,
.program-filter-grid .filter-field input{
  width:100%;
  min-width:0;
  border:1px solid rgba(255,255,255,.16);
  background:#294261;
  color:#fff;
  border-radius:11px;
  padding:10px 11px;
  outline:none;
}
.program-filter-grid .filter-field input::placeholder{color:#cbd4df}
.program-filter-grid .filter-field select option{background:#fff;color:#111}
.program-results-panel{padding-top:10px}

/* Filtres stock : le nombre de colonnes s'adapte aux rôles et aux écrans. */
.lot-filters .filter-grid{
  grid-template-columns:repeat(auto-fit,minmax(125px,1fr));
}
.fixed-status-chip{
  min-height:39px;
  display:flex;
  align-items:center;
  padding:9px 11px;
  border-radius:11px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  color:#fff;
  font-weight:800;
}

/* En-tête des pages globales Disponibles / Options / Réservés. */
.inventory-overview{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.inventory-overview>div{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:15px 17px;
  box-shadow:0 8px 22px rgba(18,24,38,.05);
}
.inventory-overview small{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  margin-bottom:5px;
}
.inventory-overview b{font-size:21px;color:var(--navy)}
.inventory-overview.green>div:first-child{border-color:#ccebdc;background:#f7fcfa}
.inventory-overview.amber>div:first-child{border-color:#f1dfae;background:#fffbef}
.inventory-overview.blue>div:first-child{border-color:#cfe0fb;background:#f8fbff}

/* Dossiers acquéreurs globaux */
.buyer-list{display:grid;gap:8px}
.buyer-row{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  display:grid;
  grid-template-columns:46px minmax(160px,1.1fr) minmax(170px,1fr) auto 18px;
  gap:12px;
  align-items:center;
  padding:12px;
  text-align:left;
  color:var(--ink);
}
.buyer-row:hover{background:#fafbf9}
.buyer-avatar{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  background:var(--navy);color:#fff;font-weight:900;
}
.buyer-main,.buyer-program{display:grid;gap:2px;min-width:0}
.buyer-main small,.buyer-program small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:980px){
  .program-filter-grid{grid-template-columns:1fr 1fr}
  .inventory-overview{grid-template-columns:1fr 1fr}
  .inventory-overview>div:last-child{grid-column:1/-1}
  .buyer-row{grid-template-columns:42px 1fr auto}
  .buyer-program{grid-column:2/-1}
}

@media(max-width:600px){
  .portfolio-filters,.lot-filters{border-radius:17px;padding:13px}
  .program-filter-grid{grid-template-columns:1fr 1fr;gap:7px}
  .program-filter-grid .program-search{grid-column:1/-1}
  .inventory-overview{gap:7px}
  .inventory-overview>div{padding:12px;border-radius:15px}
  .inventory-overview b{font-size:17px}
  .buyer-row{grid-template-columns:38px 1fr auto;padding:11px}
  .buyer-avatar{width:36px;height:36px}
}
.kpi-link{position:relative;border:1px solid rgba(0,0,0,.04);text-align:left;color:var(--ink);width:100%}
.kpi-link:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(18,24,38,.10)}
.kpi-arrow{position:absolute;right:14px;bottom:13px;color:#a2adba;font-size:20px;font-weight:500}
.lot-promoter-name{margin-top:2px;font-size:10px}

/* ============================================================
   V1.8.3 — Agences : accès réels + négociateurs visibles
   ============================================================ */
.platform-agency-row{display:block!important}
.platform-agency-row .platform-org-main{margin-bottom:8px}
.platform-agency-users{
  margin:6px 0 4px 60px;
  display:grid;
  gap:7px;
}
.platform-agency-user{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfcfd;
}
.platform-agency-user .team-avatar{width:36px;height:36px;font-size:14px}
.platform-agency-user .team-main b{font-size:12px}
.platform-agency-user .team-main small{font-size:9px}
.platform-agency-user .preview-action-pair{width:auto}
.platform-agency-users-empty{margin:4px 0 8px 60px;font-size:10px}

@media(max-width:700px){
  .platform-agency-users{margin:8px 0 4px}
  .platform-agency-user{grid-template-columns:38px minmax(0,1fr)}
  .platform-agency-user .preview-action-pair{grid-column:2/-1;justify-content:flex-start;width:100%}
  .platform-agency-users-empty{margin:8px 0}
}

/* ============================================================
   V1.8.6 — Stock promoteur / acquéreurs / annexes vendues seules
   ============================================================ */

/* Lecture immédiate du stock : une teinte très légère par statut. */
.desktop-lot-table tbody tr.lot-status-available{background:#f2fbf7}
.desktop-lot-table tbody tr.lot-status-option{background:#fff8e8}
.desktop-lot-table tbody tr.lot-status-reserved{background:#f1f6ff}
.desktop-lot-table tbody tr.lot-status-sold{background:#fff1f1}
.desktop-lot-table tbody tr.lot-status-withdrawn{background:#f4f4f5}
.desktop-lot-table tbody tr.lot-row:hover{filter:brightness(.985)}

.mobile-lot-card.lot-status-available{background:#f5fcf9;border-color:#d9eee5}
.mobile-lot-card.lot-status-option{background:#fffbf0;border-color:#f2dfaa}
.mobile-lot-card.lot-status-reserved{background:#f5f8ff;border-color:#d9e5f9}
.mobile-lot-card.lot-status-sold{background:#fff6f6;border-color:#f1dada}
.mobile-lot-card.lot-status-withdrawn{background:#f7f7f8;border-color:#e3e3e6}

.lot-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}
.lot-stock-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}

/* Le filtre Programme est désormais un vrai sélecteur, pas une recherche à taper. */
.program-filter-grid .program-search select{width:100%}

/* Création acquéreur : popup structurée, simple et lisible. */
.buyer-form-sections{display:grid;gap:14px}
.buyer-form-section{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:#fbfcfd;
}
.buyer-form-title{display:flex;gap:11px;align-items:center;margin-bottom:14px}
.buyer-form-title>span{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:var(--navy);color:#fff;font-weight:900;flex:0 0 auto;
}
.buyer-form-title>div{display:grid;gap:2px}
.buyer-form-title b{font-size:16px}
.buyer-form-title small{color:var(--muted);font-size:12px}

/* Miniatures pilotage : même comportement fiable que les autres écrans. */
.pilotage-program-row img{object-fit:cover;background:#eef2f5}

@media(max-width:700px){
  .lot-stock-actions{width:100%;justify-content:stretch}
  .lot-stock-actions .mini-btn{flex:1;text-align:center}
  .buyer-form-section{padding:13px;border-radius:16px}
  .buyer-form-title b{font-size:15px}
}

/* V1.8.7 — polish stock dashboard, programme creation and buyer dossiers */
.dashboard-stock-head{gap:18px;align-items:flex-end}
.dashboard-stock-filter-wrap{display:grid;gap:4px;min-width:210px}
.dashboard-stock-filter-wrap label{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:900}
.dashboard-stock-filter-wrap select{width:100%;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:12px;padding:10px 12px;font-weight:800}
.dash-lot-row.lot-status-available{background:#f2fbf7}
.dash-lot-row.lot-status-option{background:#fff8e8}
.dash-lot-row.lot-status-reserved{background:#f1f6ff}
.dash-lot-row.lot-status-sold{background:#f5f6f8}
.dash-lot-row.lot-status-withdrawn{background:#f4f4f5}
.dash-lot-row.lot-status-available:hover{background:#eaf8f2}
.dash-lot-row.lot-status-option:hover{background:#fff3d8}
.dash-lot-row.lot-status-reserved:hover{background:#e8f0ff}
.dash-lot-row.lot-status-sold:hover,.dash-lot-row.lot-status-withdrawn:hover{background:#eceff3}

.address-autocomplete-field{position:relative}
.address-suggestions{display:none;position:absolute;z-index:80;top:calc(100% - 2px);left:0;right:0;background:#fff;border:1px solid #d8dde5;border-radius:14px;box-shadow:0 16px 34px rgba(17,39,66,.16);overflow:hidden;max-height:290px;overflow-y:auto}
.address-suggestions.open{display:grid}
.address-suggestions button{border:0;border-bottom:1px solid #edf0f3;background:#fff;padding:11px 13px;text-align:left;display:grid;gap:2px;color:var(--ink);cursor:pointer}
.address-suggestions button:last-child{border-bottom:0}
.address-suggestions button:hover{background:#f5f8fb}
.address-suggestions button b{font-size:13px}
.address-suggestions button small{font-size:10px;color:var(--muted)}
.field-hint{display:block;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.35}

.buyer-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.buyer-property-card{grid-column:1/-1}
.buyer-property-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fafbfd}
.buyer-property-summary b{font-size:16px}
.buyer-property-summary span:not(.badge){color:var(--muted)}
.lot-buyers-list{display:grid;gap:8px}
.lot-buyer-card{width:100%;border:1px solid var(--line);border-radius:14px;background:#fafbfd;padding:10px 12px;display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;text-align:left;color:var(--ink);cursor:pointer}
.lot-buyer-card:hover{background:#f3f7fa}
.lot-buyer-card>span:nth-child(2){display:grid;gap:2px;min-width:0}
.lot-buyer-card small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:760px){
  .dashboard-stock-head{align-items:stretch;display:grid}
  .dashboard-stock-filter-wrap{min-width:0;width:100%}
  .buyer-detail-grid{grid-template-columns:1fr}
  .buyer-property-card{grid-column:auto}
}

/* V1.8.8 — lisibilité stock + actions sécurisées */
.dash-lot-row.lot-status-available{background:#eefaf4!important}
.dash-lot-row.lot-status-option{background:#fff6df!important}
.dash-lot-row.lot-status-reserved{background:#edf4ff!important}
.dash-lot-row.lot-status-sold{background:#f1f3f6!important}
.program-edit-actions{display:flex;align-items:center;gap:10px;margin-top:18px}
.modal-actions-spacer{flex:1}
.btn.danger-soft{background:#fff;border:1px solid #f0c7c7;color:#b42318}
.btn.danger{background:#b42318;color:#fff;border-color:#b42318}
.confirm-copy{padding:14px 0;color:var(--muted);line-height:1.45}
#createProgramBtn:disabled,#createLotBtn:disabled{opacity:.65;cursor:wait}

/* ==========================================================
   KLYMMOPRO V1.8.9 — agences, confidentialité & assistance
   ========================================================== */

/* Le support doit être impossible à confondre avec le compte réel. */
.app-shell.preview-readonly-shell .main{
  background:linear-gradient(180deg,#fffdf4 0,#f8f8f5 360px,#f7f7f5 100%);
}
.app-shell.preview-support-shell .main{
  background:linear-gradient(180deg,#effcf7 0,#f6fbf8 360px,#f7f7f5 100%);
}
.app-shell.preview-readonly-shell .card,
.app-shell.preview-readonly-shell .panel{box-shadow:0 14px 34px rgba(115,92,24,.07)}
.app-shell.preview-support-shell .card,
.app-shell.preview-support-shell .panel{box-shadow:0 14px 34px rgba(16,112,91,.075)}
.app-shell.preview-readonly-shell .sidebar{box-shadow:inset -3px 0 0 rgba(224,177,39,.35)}
.app-shell.preview-support-shell .sidebar{box-shadow:inset -3px 0 0 rgba(46,199,185,.52)}

.dashboard-stock-filters{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.dashboard-stock-filters .dashboard-stock-filter-wrap{min-width:205px}
.dash-lot-main small{line-height:1.35}

.confidential-pill{
  display:inline-flex;
  align-items:center;
  margin-left:6px;
  padding:3px 7px;
  border-radius:999px;
  font-size:9px;
  line-height:1;
  font-style:normal;
  font-weight:900;
  letter-spacing:.04em;
  color:#704f00;
  background:#fff3cb;
  border:1px solid #f0d889;
  vertical-align:middle;
}
.confidential-buyer-notice{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin:4px 0 16px;
  padding:16px 18px;
  border:1px solid #f0d889;
  border-radius:18px;
  background:#fffaf0;
  color:var(--ink);
}
.confidential-buyer-notice>span{font-size:25px}
.confidential-buyer-notice b{display:block;font-size:16px;margin-bottom:4px}
.confidential-buyer-notice p{margin:0;color:var(--muted);line-height:1.45;font-size:13px}
.agency-inherit-note{
  margin-top:14px;
  padding:13px 15px;
  border:1px solid #b9e7de;
  border-radius:15px;
  background:#f0fbf8;
  color:#245d55;
  font-size:12px;
  font-weight:700;
  line-height:1.45;
}

@media(max-width:780px){
  .app-shell.preview-readonly-shell .main{background:linear-gradient(180deg,#fffcef 0,#f8f8f5 330px,#f7f7f5 100%)}
  .app-shell.preview-support-shell .main{background:linear-gradient(180deg,#eafbf5 0,#f6faf7 330px,#f7f7f5 100%)}
  .dashboard-stock-filters{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
  .dashboard-stock-filters .dashboard-stock-filter-wrap{min-width:0;width:100%}
  .dashboard-stock-filter-wrap select{font-size:13px;padding:10px}
  .buyer-main .confidential-pill{display:inline-flex;margin:3px 0 0 0}
  .confidential-buyer-notice{padding:14px;gap:10px;border-radius:16px}
}

/* ============================================================
   V1.9.0 — CRM entreprise + confidentialité inter-agences
   ============================================================ */
.buyer-scope-switch{
  display:inline-flex;
  gap:4px;
  padding:4px;
  margin:0 0 12px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:13px;
  background:rgba(255,255,255,.08);
}
.buyer-scope-switch button{
  border:0;
  border-radius:10px;
  padding:8px 12px;
  background:transparent;
  color:#cad5e2;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.buyer-scope-switch button.active{
  background:#fff;
  color:var(--navy);
  box-shadow:0 3px 12px rgba(0,0,0,.10);
}
.lot-client-line{
  display:block;
  margin-top:4px;
  color:#566579!important;
  font-size:9px!important;
  font-weight:750;
  line-height:1.3;
}
.lot-client-line span{
  color:#8591a0;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-right:4px;
}
.lot-client-line.confidential{color:#8a6a16!important}
.lot-client-line em{
  display:inline-block;
  margin-left:5px;
  padding:2px 5px;
  border-radius:999px;
  background:#fff3c8;
  color:#8a6200;
  font-size:8px;
  font-style:normal;
  font-weight:900;
}
.lot-buyer-card.confidential{
  background:#fffaf0;
  border-color:#eedca9;
}
.agency-owner-note{margin-top:10px}

@media(max-width:600px){
  .buyer-scope-switch{display:flex;width:100%}
  .buyer-scope-switch button{flex:1;padding:9px 8px;font-size:11px}
  .lot-client-line{white-space:normal!important;max-width:none!important}
}

/* =====================================================================
   V1.9.1 — TUNNEL COMMERCIAL + SWITCH SUPER ADMIN / COMMERCIAL
   ===================================================================== */
.work-switch-nav{margin-top:4px!important;border:1px solid rgba(46,199,185,.34)!important;background:rgba(46,199,185,.08)!important;color:#d9fffa!important}
.work-switch-nav:hover{background:rgba(46,199,185,.16)!important}
.work-switch-nav.active-work{background:rgba(46,199,185,.16)!important;border-color:rgba(46,199,185,.62)!important}
.work-mode-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-28px -28px 20px;padding:11px 22px;background:linear-gradient(90deg,#e8fbf5 0%,#f4fbf5 58%,#fff9e7 100%);border-bottom:1px solid rgba(46,199,185,.55)}
.work-mode-banner>div{display:grid;gap:2px}.work-mode-banner b{font-size:13px;color:#0a675f}.work-mode-banner span{font-size:11px;color:#55736f}.work-mode-banner button{border:0;border-radius:999px;background:#102c4e;color:#fff;padding:9px 16px;font-weight:850;cursor:pointer}
.app-shell.work-mode-shell .main{background:linear-gradient(180deg,#edf9f5 0,#f8faf8 360px,#f7f7f5 100%)}
.app-shell.work-mode-shell .sidebar{box-shadow:inset -3px 0 0 rgba(46,199,185,.62)}
.app-shell.work-mode-shell .card,.app-shell.work-mode-shell .panel{box-shadow:0 14px 34px rgba(15,111,93,.055)}
.work-context-list{display:grid;gap:10px}.work-context-row{width:100%;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:13px;text-align:left;border:1px solid #dfe6e3;background:#fff;border-radius:18px;padding:14px;cursor:pointer}.work-context-row:hover{border-color:#8ad9ce;background:#f7fffd}.work-context-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#e8fbf5;color:#0a7167;font-size:22px;font-weight:900}.work-context-row b{display:block;color:#10213a;font-size:15px}.work-context-row small{display:block;color:#738094;margin-top:3px;line-height:1.35}.work-context-row>strong{font-size:24px;color:#7d8998}

.commercial-stage-card{border:1px solid #dfe5ea!important;background:linear-gradient(180deg,#fff,#fbfcfd);position:relative;overflow:hidden}.commercial-stage-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#7c8a99}.commercial-stage-card.stage-available:before{background:#32b58b}.commercial-stage-card.stage-option:before{background:#e1a21c}.commercial-stage-card.stage-reserved:before{background:#4f86d9}.commercial-stage-card.stage-sold:before{background:#102c4e}.commercial-stage-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.commercial-stage-head h4{font-size:21px;margin:3px 0 4px}.commercial-stage-head p{margin:0;color:#677386}.commercial-kicker{font-size:10px;letter-spacing:.16em;font-weight:900;color:#758296}.commercial-buyer{margin-top:14px;display:flex;align-items:center;gap:12px;border:1px solid #e4e8ec;border-radius:16px;padding:12px;background:#fff}.commercial-buyer>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#102c4e;color:#fff;font-weight:900}.commercial-buyer small{display:block;font-size:9px;letter-spacing:.12em;font-weight:900;color:#7b8798}.commercial-buyer b{display:block;margin-top:2px}.commercial-buyer p{margin:2px 0 0;color:#748093;font-size:12px}.commercial-buyer.confidential{background:#fffaf0;border-color:#f1d594}.commercial-buyer em{font-style:normal;font-size:9px;background:#fff0bd;color:#805d00;padding:3px 7px;border-radius:999px;margin-left:6px}.commercial-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.commercial-primary{background:#0d6f67!important}.commercial-locked{margin-top:13px;border-radius:13px;padding:10px 12px;background:#fff7df;border:1px solid #f0d183;color:#765a0c;font-size:12px;font-weight:700}.commercial-warning{margin-top:12px;padding:11px 13px;border-radius:13px;background:#fff7e8;border:1px solid #efd296;color:#775b20;font-size:12px}.commercial-modal-card{display:flex;align-items:center;gap:11px;margin-bottom:14px}.commercial-step-num{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#e8fbf5;color:#0b7067;font-weight:900}.commercial-modal-card b{display:block}.commercial-modal-card small{display:block;color:#7b8796;margin-top:2px}.inline-create-buyer{margin-top:8px;border:0;background:transparent;color:#0b6d75;font-weight:850;cursor:pointer;padding:5px 0;text-align:left}

@media(max-width:820px){
  .work-mode-banner{margin:-16px -14px 14px;padding:9px 12px}.work-mode-banner span{display:none}.work-mode-banner button{padding:8px 11px;font-size:11px}
  .commercial-stage-head h4{font-size:19px}.commercial-stage-head{gap:8px}.commercial-actions{display:grid;grid-template-columns:1fr}.commercial-actions .btn{width:100%}
  .work-context-row{grid-template-columns:42px 1fr auto;padding:12px}.work-context-icon{width:40px;height:40px}
}

/* V1.9.2 — option programmée + dossier acquéreur enrichi */
.buyer-fixed-property{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.buyer-fixed-property>div{background:#f5f7fa;border:1px solid #e2e7ec;border-radius:18px;padding:14px 16px;display:flex;flex-direction:column;gap:3px}
.buyer-fixed-property small{font-size:11px;letter-spacing:.08em;color:#7a8493;font-weight:800}
.buyer-fixed-property b{font-size:18px;color:#0c1930}
.buyer-fixed-property span{color:#6d7889}
.buyer-spouse-section{border-color:#dce8e5;background:linear-gradient(180deg,#fbfffe 0%,#fff 100%)}
.buyer-spouse-detail{margin-top:18px;padding-top:16px;border-top:1px solid #e7e9ec}
.buyer-spouse-detail h5{margin:0 0 12px;font-size:15px;color:#0c1930}
.commercial-fixed-validity .fixed-validity-box{display:flex;align-items:center;gap:12px;background:#f5fbf9;border:1px solid #cfe8df;border-radius:16px;padding:14px 16px}
.fixed-validity-box b{font-size:20px;color:#087b69;white-space:nowrap}
.fixed-validity-box span{color:#627083;line-height:1.35}
@media(max-width:720px){
  .buyer-fixed-property{grid-template-columns:1fr}
  .commercial-fixed-validity .fixed-validity-box{align-items:flex-start;flex-direction:column;gap:4px}
}
