/* ─────────────────────────────────────────────────────────────
   ROSACE — shared/base.css
   Remplace styles.css. Utilisé avec Tailwind CDN v4.
   Contient : reset, sidebar (dark + .client-theme), layout,
   sim-bar, header, modal, messaging, timeline, badges, buttons,
   cards, et toutes les règles impossibles à exprimer en Tailwind
   (CSS vars, pseudo-éléments, états JS-toggled, panels glissants).
───────────────────────────────────────────────────────────── */

/* ── RESET ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:13px;background:#F0F0F0;color:#212121;display:flex;min-height:100vh}

/* ── SIM BAR ── */
#sim-bar{position:fixed;top:0;left:0;right:0;height:40px;background:#7B1010;border-bottom:1px solid #5A0C0C;z-index:300;display:flex;align-items:center;padding:0 16px;gap:14px}
.simb-label{font-size:10px;font-weight:700;color:#E8A0A0;text-transform:uppercase;letter-spacing:1px;white-space:nowrap;flex-shrink:0}
.simb-div{width:1px;height:20px;background:#9B2020;flex-shrink:0}
.simb-steps{display:flex;gap:3px;flex:1;overflow:hidden}
.simb-step{padding:3px 9px;background:transparent;border:1px solid #9B2020;border-radius:4px;color:#E8A0A0;font-size:11px;font-family:inherit;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}
.simb-step:hover{background:#9B2020;color:#FFF;border-color:#B03030}
.simb-step.done{color:#C07070;border-color:#7B1818}
.simb-step.active{background:#FFF;color:#7B1010;border-color:#FFF;font-weight:600}
.simb-switch{padding:3px 10px;background:transparent;border:1px solid #9B2020;border-radius:3px;color:#E8A0A0;font-size:11px;font-family:inherit;cursor:pointer;white-space:nowrap;flex-shrink:0;}
.simb-switch:hover{background:#9B2020;color:#FFF;}
.simb-reset{padding:3px 10px;background:transparent;border:1px solid #9B2020;border-radius:4px;color:#E8A0A0;font-size:11px;font-family:inherit;cursor:pointer;white-space:nowrap;flex-shrink:0;transition:background .15s,color .15s}
.simb-reset:hover{background:#9B2020;color:#FFF;border-color:#B03030}

/* ── SIDEBAR — thème dark/entreprise (défaut) ── */
#sidebar{
  --s-bg:#1A1A1A; --s-text:#E0E0E0; --s-border:#333;
  --s-logo-box:#333; --s-logo-box-border:#555; --s-logo-text:#FFF;
  --s-item-text:#B0B0B0; --s-item-hover-bg:#2A2A2A; --s-item-hover-text:#E0E0E0;
  --s-active-bg:#2E2E2E; --s-active-text:#FFF; --s-active-bar:#FFF;
  --s-icon-bg:#3A3A3A; --s-icon-text:#888; --s-active-icon-bg:#4A4A4A; --s-active-icon-text:#CCC;
  --s-footer-text:#777; --s-footer-hover:#CCC;
  --s-btn-bg:#2A2A2A; --s-btn-border:#404040; --s-btn-text:#B0B0B0;
  --s-btn-hover-bg:#333; --s-btn-hover-text:#FFF;
  --s-section-text:#555; --s-section-hover:#999;
  --s-client-text:#777; --s-client-hover-bg:#222;
  --s-subitem-text:#777; --s-subitem-hover-bg:#2A2A2A; --s-subitem-hover-text:#CCC;
  --s-active-subitem-bg:#2E2E2E;
  width:220px;min-width:220px;
  background:var(--s-bg);color:var(--s-text);
  display:flex;flex-direction:column;position:fixed;top:40px;left:0;bottom:0;
  z-index:100;transition:width .2s,min-width .2s;overflow:hidden
}

/* ── SIDEBAR — thème light/client (classe .client-theme sur #sidebar) ── */
#sidebar.client-theme{
  --s-bg:#FFF; --s-text:#1A1A1A; --s-border:#EBEBEB;
  --s-logo-box:#1A1A1A; --s-logo-box-border:#1A1A1A; --s-logo-text:#FFF;
  --s-item-text:#666; --s-item-hover-bg:#F5F5F5; --s-item-hover-text:#1A1A1A;
  --s-active-bg:#F0F0F0; --s-active-text:#1A1A1A; --s-active-bar:#1A1A1A;
  --s-icon-bg:#EBEBEB; --s-icon-text:#888; --s-active-icon-bg:#DCDCDC; --s-active-icon-text:#333;
  --s-footer-text:#888; --s-footer-hover:#1A1A1A;
  --s-btn-bg:#F5F5F5; --s-btn-border:#E0E0E0; --s-btn-text:#666;
  --s-btn-hover-bg:#EBEBEB; --s-btn-hover-text:#1A1A1A;
  --s-section-text:#BBB; --s-section-hover:#555;
  --s-client-text:#AAA; --s-client-hover-bg:#F8F8F8;
  --s-subitem-text:#AAA; --s-subitem-hover-bg:#F5F5F5; --s-subitem-hover-text:#333;
  --s-active-subitem-bg:#F0F0F0;
}

#sidebar.collapsed{width:48px;min-width:48px}
.slogo{display:flex;align-items:center;gap:10px;padding:18px 14px;border-bottom:1px solid var(--s-border);flex-shrink:0}
.slogo-box{width:28px;height:28px;background:var(--s-logo-box);border:1px solid var(--s-logo-box-border);border-radius:4px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--s-logo-text)}
.slogo .slabel{font-weight:700;font-size:15px;color:var(--s-text);white-space:nowrap}
#sidebar.collapsed .slabel{display:none}
.snav{flex:1;overflow-y:auto;padding:8px 0}
.nitem{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer;color:var(--s-item-text);text-decoration:none;white-space:nowrap;overflow:hidden;position:relative;transition:background .15s}
.nitem:hover{background:var(--s-item-hover-bg);color:var(--s-item-hover-text)}
.nitem.active{background:var(--s-active-bg);color:var(--s-active-text);font-weight:600}
.nitem.active::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--s-active-bar)}
.nicon{width:20px;height:20px;background:var(--s-icon-bg);border-radius:3px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:10px;color:var(--s-icon-text)}
.nitem.active .nicon{background:var(--s-active-icon-bg);color:var(--s-active-icon-text)}
.nlabel{overflow:hidden}
#sidebar.collapsed .nlabel{display:none}
.sfooter{border-top:1px solid var(--s-border);padding:12px 14px;flex-shrink:0}
.sflinks{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}
.sfl{color:var(--s-footer-text);font-size:12px;cursor:pointer;white-space:nowrap;overflow:hidden;padding:3px 0}
.sfl:hover{color:var(--s-footer-hover)}
#sidebar.collapsed .sflinks{display:none}
.sbtn{width:100%;padding:7px 10px;background:var(--s-btn-bg);border:1px solid var(--s-btn-border);border-radius:4px;color:var(--s-btn-text);font-size:11px;cursor:pointer;text-align:center;white-space:nowrap;overflow:hidden}
.sbtn:hover{background:var(--s-btn-hover-bg);color:var(--s-btn-hover-text)}

/* ── SIDEBAR SECTIONS (menu hiérarchique entreprise) ── */
.nsection{display:flex;align-items:center;gap:10px;padding:8px 14px;cursor:pointer;color:var(--s-section-text);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;user-select:none;white-space:nowrap;overflow:hidden;position:relative;transition:background .15s}
.nsection:hover{color:var(--s-section-hover)}
.nsection .nicon{background:#222;color:var(--s-section-text)}
.nsection.active{color:var(--s-active-text);background:var(--s-active-bg)}
.nsection.active::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--s-active-bar)}
.nsection.active .nicon{background:var(--s-active-icon-bg);color:var(--s-active-icon-text)}
.nsarrow{margin-left:auto;font-size:9px;transition:transform .2s;color:#444;flex-shrink:0}
.nsarrow.open{transform:rotate(180deg)}
.nsubsec{display:none}
.nsubsec.open{display:block}
.nclient{padding:5px 14px 5px 28px;cursor:pointer;color:var(--s-client-text);font-size:12px;white-space:nowrap;overflow:hidden;user-select:none}
.nclient:hover{color:var(--s-item-hover-text);background:var(--s-client-hover-bg)}
.nclientsub{display:none}
.nclientsub.open{display:block}
.nsubitem{display:block;padding:5px 14px 5px 40px;cursor:pointer;color:var(--s-subitem-text);font-size:12px;white-space:nowrap;overflow:hidden;text-decoration:none;position:relative}
.nsubitem:hover{background:var(--s-subitem-hover-bg);color:var(--s-subitem-hover-text)}
.nsubitem.active{color:var(--s-active-text);font-weight:600;background:var(--s-active-subitem-bg)}
.nsubitem.active::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--s-active-bar)}
.nsection .nlabel-link{color:inherit;text-decoration:none;flex:1}
.nsection.active .nlabel-link{color:var(--s-active-text);font-weight:600}
#sidebar.collapsed .nsection .nlabel,
#sidebar.collapsed .nsarrow,
#sidebar.collapsed .nsubsec{display:none}

/* Bouton "Demander une modification" dans sidebar client */
#sidebar.collapsed #sidebar-modif-btn{display:none !important}

/* ── MAIN ── */
#main{margin-left:220px;padding-top:40px;flex:1;display:flex;flex-direction:column;transition:margin-left .2s;min-width:0}
body.sc #main{margin-left:48px}

/* ── HEADER ── */
#hdr{position:sticky;top:40px;z-index:50;height:64px;background:#FFF;border-bottom:1px solid #EBEBEB;display:flex;align-items:center;padding:0 24px;gap:16px}
.htitle{font-size:15px;font-weight:700;color:#1A1A1A;flex:1;white-space:nowrap}
.hperspective{font-size:11px;color:#AAA;font-weight:400;margin-left:6px}

/* Header: satisfaction dots (entreprise) */
.csat-w{display:flex;align-items:center;gap:6px}
.csat-label{font-size:11px;color:#888;white-space:nowrap}
.stars{display:flex;gap:2px}
.star{width:12px;height:12px;background:#DDD;border-radius:50%}
.star.on{background:#444}
.csat-score{font-size:11px;font-weight:600;color:#444}

/* Header: barre de progression (entreprise) */
.prog-w{display:flex;align-items:center;gap:8px;border-left:1px solid #EBEBEB;padding-left:14px}
.prog-bar-wrap{background:#EBEBEB;border-radius:4px;height:8px;width:80px;overflow:hidden}
.prog-bar-fill{height:100%;background:#333;border-radius:4px;transition:width .3s}
.prog-label{font-size:11px;color:#666;white-space:nowrap}

/* Header: météo (client) */
.meteo-w{display:flex;align-items:center;gap:7px}
.meteo-lbl{font-size:10px;color:#888;white-space:nowrap}
.mbar{display:flex;gap:3px}
.mseg{width:16px;height:7px;border-radius:2px}
.mseg.on{background:#555}
.mseg.off{background:#D8D8D8}
.mstatus{font-size:11px;font-weight:500;color:#444;white-space:nowrap}

/* Header: satisfaction (client) */
.sat-w{display:flex;align-items:center;gap:6px;border-left:1px solid #EBEBEB;padding-left:14px}
.sat-meta{font-size:10px;color:#999;white-space:nowrap}

/* Header: compteur phases (client) */
.hdr-phase-ct{font-size:11px;color:#777;white-space:nowrap;border-left:1px solid #EBEBEB;padding-left:14px}

/* Cloche notifications */
.nw{position:relative;border-left:1px solid #EBEBEB;padding-left:14px}
.bell{width:34px;height:34px;background:#F5F5F5;border:1px solid #E0E0E0;border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;font-size:15px}
.bell:hover{background:#EBEBEB}
.nbadge{position:absolute;top:-4px;right:-4px;background:#1A1A1A;color:#FFF;font-size:9px;font-weight:700;width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.ndrop{display:none;position:absolute;top:42px;right:0;width:290px;background:#FFF;border:1px solid #E0E0E0;border-radius:6px;box-shadow:0 4px 16px rgba(0,0,0,.1);z-index:200}
.ndrop.open{display:block}
.ndhd{padding:10px 14px;font-weight:600;font-size:12px;border-bottom:1px solid #EBEBEB}
.nrow{padding:9px 14px;border-bottom:1px solid #F5F5F5;display:flex;gap:8px;align-items:flex-start}
.nrow:last-child{border:none}
.ndot{width:7px;height:7px;background:#444;border-radius:50%;margin-top:3px;flex-shrink:0}
.ntext{font-size:12px;color:#444;line-height:1.4}
.ntime{font-size:10px;color:#AAA;margin-top:2px}
.nempty{padding:16px 14px;font-size:12px;color:#AAA;text-align:center}

/* ── SYNC BANNER ── */
#sync-banner{display:none;position:sticky;top:104px;z-index:40;background:#2A2A2A;color:#CCC;font-size:11px;padding:7px 24px;text-align:center}
#sync-banner.show{display:block}

/* ── CONTENT ── */
#content{padding:24px}

/* ── PROJECT CARD ── */
.pcard{background:#FFF;border:1px solid #EBEBEB;border-radius:8px;padding:20px;margin-bottom:24px}
.pcard-title{font-size:11px;font-weight:600;color:#AAA;text-transform:uppercase;letter-spacing:.5px;margin-bottom:14px}
.pmeta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 20px;margin-bottom:12px}
.pmk{font-size:10px;color:#AAA;text-transform:uppercase;letter-spacing:.4px;margin-bottom:2px}
.pmv{font-size:13px;color:#222;font-weight:500}
.pdesc{font-size:12px;color:#777;line-height:1.5;border-top:1px solid #F0F0F0;padding-top:12px}

/* ── TIMELINE ── */
.tl-hd{font-size:11px;font-weight:600;color:#AAA;text-transform:uppercase;letter-spacing:.5px;margin-bottom:14px}

/* ── STEP NAV (horizontal timeline) ── */
#step-nav{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:14px}
.snav-btn{padding:4px 10px;background:transparent;border:1px solid #E0E0E0;border-radius:4px;color:#BBB;font-size:11px;font-family:inherit;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.snav-btn:hover{background:#F5F5F5;color:#555;border-color:#CCC}
.snav-btn.done{color:#666;border-color:#CCC}
.snav-btn.current{background:#1A1A1A;color:#FFF;border-color:#1A1A1A;font-weight:600}

/* ── TIMELINE OUTER LAYOUT ── */
.tl-outer{display:flex;gap:12px;align-items:flex-start}
.tl-left{width:280px;flex-shrink:0;display:flex;flex-direction:column;gap:12px}
.tl-right{flex:1;min-width:0}
.tl-above-flow{margin-bottom:4px}
#above-timeline:not(:empty){margin-bottom:20px}

/* ── MODIFICATION REQUEST LEFT CARD ── */
.modif-left-card{background:#FFF;border:1px solid #1A1A1A;border-radius:6px;overflow:hidden;border-right:3px solid #1A1A1A}

/* ── MODIFICATION REQUEST ALERT ── */
.phase-modif-alert{display:flex;gap:8px;align-items:flex-start;background:#FFFBF0;border:1px solid #E8D090;border-radius:4px;padding:8px 10px;margin-top:10px;margin-bottom:12px;font-size:12px;color:#555}
.phase-modif-alert-icon{font-size:13px;flex-shrink:0;line-height:1.4}
.phase-modif-alert-text{flex:1;line-height:1.5}

.timeline{position:relative}
.timeline::before{content:'';position:absolute;left:10px;top:10px;bottom:10px;width:2px;background:#D8D8D8;z-index:0}

/* ── PHASE BLOCK ── */
.phase-block{position:relative;margin-bottom:12px;padding-left:34px}
.pnode{position:absolute;left:4px;top:16px;width:14px;height:14px;border-radius:50%;z-index:1;border:2px solid #F0F0F0;outline-width:2px;outline-style:solid}
.phase-block.past .pnode{background:#888;outline-color:#888}
.phase-block.current .pnode{background:#1A1A1A;outline-color:#1A1A1A}
.phase-block.future .pnode{background:#D0D0D0;outline-color:#D0D0D0}
.pinner{background:#FFF;border:1px solid #E8E8E8;border-radius:6px;overflow:hidden}
.phase-block.current .pinner{border-color:#1A1A1A;border-left-width:3px}
.phase-block.future .pinner{border-style:dashed;border-color:#D0D0D0}
.phdr{display:flex;align-items:center;gap:8px;padding:12px 14px;flex-wrap:wrap}
.phdr.clickable{cursor:pointer}
.phdr.clickable:hover{background:#FAFAFA}
.pnum{font-size:11px;color:#BBB;font-weight:600;width:14px;flex-shrink:0}
.pname{font-size:13px;font-weight:600;color:#222;flex:1;min-width:0}
.phase-block.future .pname{color:#BBB}
.pdate{font-size:11px;color:#AAA;white-space:nowrap}
.tbtn{padding:3px 9px;background:#F5F5F5;border:1px solid #E0E0E0;border-radius:4px;font-size:11px;cursor:pointer;color:#555;white-space:nowrap;flex-shrink:0}
.tbtn:hover{background:#EBEBEB}
.pbody{padding:0 14px 14px}
.pbody.hidden{display:none}

/* ── BADGES ── */
.bdone{display:inline-block;padding:2px 7px;border-radius:10px;font-size:10px;font-weight:500;background:#E8E8E8;color:#555}
.bcurrent{display:inline-block;padding:2px 7px;border-radius:10px;font-size:10px;font-weight:700;background:#1A1A1A;color:#FFF}
.bfuture{display:inline-block;padding:2px 7px;border-radius:10px;font-size:10px;font-weight:500;background:#F0F0F0;color:#BBB;border:1px solid #E0E0E0}
.btype{display:inline-block;padding:2px 7px;border-radius:10px;font-size:11px;background:#EBEBEB;color:#555;border:1px solid #DDD}
.bok{display:inline-block;padding:1px 7px;border-radius:3px;font-size:10px;background:#FAFAFA;color:#777;border:1px solid #DDD}
.bblocking{display:inline-block;padding:3px 8px;border-radius:3px;font-size:11px;line-height:1;background:#E8E8E8;color:#555;border:1px solid #CCC}
.bpending{display:inline-block;padding:1px 7px;border-radius:3px;font-size:10px;background:#F8F8F8;color:#AAA;border:1px solid #E0E0E0}
.bsat{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600;background:#F0F0F0;color:#555}

/* ── INFO ROWS ── */
.irow{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #F5F5F5;font-size:12px}
.irow:last-child{border:none}
.ikey{color:#AAA;width:180px;flex-shrink:0}
.ival{color:#333;font-weight:500}

/* ── PEDAGOGICAL BOX ── */
.peda{background:#F8F8F8;border:1px solid #EBEBEB;border-radius:4px;padding:10px 12px;margin-bottom:12px;font-size:12px;color:#555;line-height:1.5}
.peda strong{color:#333}

/* ── WAIT BOX ── */
.wait-box{padding:14px;text-align:center;color:#AAA;font-size:12px;border:1px dashed #E0E0E0;border-radius:6px;margin-bottom:12px}
.wait-box .wicon{font-size:18px;margin-bottom:4px}

/* ── ACTION BUTTONS ── */
.abtn{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:5px;font-size:13px;font-weight:500;cursor:pointer;border:none;margin-top:4px}
.abtn-primary{background:#1A1A1A;color:#FFF}
.abtn-primary:hover{background:#333}
.abtn-primary:disabled,.abtn-primary[disabled]{background:#D0D0D0;color:#AAA;cursor:not-allowed}
.abtn-secondary{background:#F5F5F5;color:#333;border:1px solid #DDD}
.abtn-secondary:hover{background:#EBEBEB}
.abtn-done{background:#E8E8E8;color:#666;cursor:default}
.abtn-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;align-items:center}

/* ── SECTION DIVIDER ── */
.sdivider{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:#AAA;margin:14px 0 8px;display:flex;align-items:center;gap:8px}
.sdivider::after{content:'';flex:1;height:1px;background:#EBEBEB}

/* ── HYPOTHESIS CARDS ── */
.hypo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
.hypo-card{border:1px solid #E0E0E0;border-radius:6px;padding:12px;background:#FAFAFA;cursor:pointer;transition:border-color .15s}
.hypo-card:hover{border-color:#AAA}
.hypo-card.selected{border-color:#1A1A1A;background:#FFF;outline:2px solid #1A1A1A}
.hypo-title{font-size:12px;font-weight:600;color:#333;margin-bottom:4px}
.hypo-range{font-size:13px;color:#444;font-weight:500;margin-bottom:6px}
.hypo-desc{font-size:11px;color:#888}
.hypo-sel-badge{font-size:10px;font-weight:600;color:#1A1A1A;background:#E0E0E0;border-radius:3px;padding:2px 6px;display:inline-block;margin-top:4px}
.hypo-opts{font-size:10px;color:#888;margin-top:5px}
.hypo-opts-lbl{font-weight:600}
.hypo-opts-none{color:#CCC;font-style:italic}

/* ── CHOICES (client) ── */
.choice-row{display:flex;align-items:center;gap:8px;padding:8px;border-bottom:1px solid #F5F5F5;flex-wrap:wrap}
.choice-row:last-child{border:none}
.choice-label{font-size:12px;color:#333;min-width:200px;flex:1}
.choice-select{padding:5px 8px;border:1px solid #D0D0D0;border-radius:4px;font-size:12px;color:#333;background:#FFF;cursor:pointer}
.choice-select:disabled{background:#F5F5F5;color:#AAA}
.choice-done{font-size:12px;color:#777;font-style:italic}

/* ── CHOICES TABLE (entreprise) ── */
.choices-table{width:100%;border-collapse:collapse;font-size:12px;margin-bottom:10px}
.choices-table th{text-align:left;padding:6px 8px;color:#AAA;font-weight:500;border-bottom:1px solid #EBEBEB;background:#F8F8F8}
.choices-table td{padding:7px 8px;border-bottom:1px solid #F5F5F5;color:#444}
.choices-table tr:last-child td{border:none}

/* ── SELECT INPUT (entreprise) ── */
.fselect{padding:7px 10px;border:1px solid #D0D0D0;border-radius:4px;font-size:12px;color:#333;background:#FFF;font-family:inherit;width:100%;margin-bottom:8px}
.fselect:not(.w-full){max-width:300px;}

/* ── SEARCH INPUT (filtre choix) ── */
.finput{padding:6px 10px 6px 28px;border:1px solid #D0D0D0;border-radius:4px;font-size:12px;color:#333;background:#FFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23AAA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 9px center;font-family:inherit;width:100%;max-width:320px;outline:none}
.finput:focus{border-color:#888;}
.finput::placeholder{color:#BBB;}

/* ── DOC LINK ── */
.doclink{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#444;border:1px solid #D0D0D0;border-radius:4px;padding:5px 10px;background:#FAFAFA;cursor:pointer;text-decoration:none}
.doclink:hover{background:#F0F0F0}
.dicon{width:14px;height:16px;background:#C0C0C0;border-radius:2px;font-size:8px;display:flex;align-items:center;justify-content:center;color:#FFF;flex-shrink:0}

/* ── CR REPORTS ── */
.cr-list{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.cr-item{background:#F8F8F8;border:1px solid #EBEBEB;border-radius:4px;padding:10px}
.cr-item-head{font-size:11px;font-weight:600;color:#666;margin-bottom:4px}
.cr-item-body{font-size:12px;color:#444;line-height:1.4}

/* ── RESERVATIONS ── */
.res-list{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.res-item{display:flex;align-items:center;gap:8px;font-size:12px;padding:6px 8px;border-radius:4px;border:1px solid #E8E8E8}
.res-item.levee{background:#F5F5F5;color:#AAA;text-decoration:line-through}
.res-item.open{background:#FFF;color:#333}

/* ── CLIENT STATUS (entreprise) ── */
.client-status{background:#F5F5F5;border:1px solid #E8E8E8;border-radius:4px;padding:8px 12px;display:flex;align-items:center;gap:10px;font-size:12px;color:#555;margin-bottom:10px}
.cs-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.cs-dot.waiting{background:#D0D0D0}
.cs-dot.confirmed{background:#666}
.cs-dot.done{background:#1A1A1A}

/* ── PROGRESS BAR (client) ── */
.prog-wrap{background:#EBEBEB;border-radius:4px;height:6px;margin-bottom:8px;overflow:hidden}
.prog-fill{height:100%;background:#555;border-radius:4px;transition:width .3s}

/* ── CTA BOX (client) ── */
.cta-box{padding:14px;background:#F8F8F8;border:1px solid #EBEBEB;border-radius:6px;margin-top:12px}
.cta-warn{display:flex;align-items:center;gap:6px;font-size:12px;color:#888;margin-bottom:8px}
.warnicon{width:16px;height:16px;border-radius:50%;background:#CCC;color:#FFF;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}

/* ── SATISFACTION STARS (interactive, client) ── */
.sat-input{display:flex;gap:8px;margin:8px 0 12px}
.si-star{width:28px;height:28px;background:#EBEBEB;border-radius:50%;border:2px solid #D0D0D0;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;color:#CCC}
.si-star:hover,.si-star.on{background:#1A1A1A;color:#FFF;border-color:#1A1A1A}

/* ── DONE SUMMARY ── */
.done-summary{padding:6px 0}
.done-row{display:flex;align-items:center;gap:8px;font-size:12px;color:#555;padding:4px 0}
.done-check{width:16px;height:16px;border-radius:50%;background:#555;color:#FFF;font-size:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.done-sat{display:flex;gap:3px;margin-left:auto}
.done-sat .star{width:11px;height:11px}

/* ── PROJECT DONE ── */
.project-done-box{background:#1A1A1A;color:#FFF;border-radius:8px;padding:32px;text-align:center;margin-bottom:24px}
.pd-title{font-size:22px;font-weight:700;margin-bottom:8px}
.pd-sub{font-size:14px;color:#888;margin-bottom:16px}
.pd-stars{display:flex;justify-content:center;gap:8px;margin-bottom:8px}
.pd-star{font-size:24px}

/* ── MODAL ── */
#overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:500;align-items:center;justify-content:center}
#overlay.open{display:flex}
.modal{background:#FFF;border-radius:8px;padding:28px;width:460px;max-width:90vw;box-shadow:0 8px 40px rgba(0,0,0,.16)}
.modal-title{font-size:15px;font-weight:700;color:#1A1A1A;margin-bottom:8px}
.modal-body{font-size:12px;color:#666;line-height:1.6;margin-bottom:16px}
.modal-warn{background:#F5F5F5;border:1px solid #E0E0E0;border-radius:4px;padding:10px;font-size:12px;color:#666;margin-bottom:16px;line-height:1.5}
.modal-sec{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:#AAA;margin-bottom:8px}
.modal-comment{width:100%;border:1px solid #D0D0D0;border-radius:4px;padding:8px;font-size:12px;color:#333;resize:none;height:60px;margin-bottom:16px;font-family:inherit}
.modal-comment::placeholder{color:#CCC}
.modal-actions{display:flex;gap:10px;justify-content:flex-end}
.mbtn-cancel{padding:8px 16px;background:#FFF;border:1px solid #CCC;border-radius:4px;font-size:13px;cursor:pointer;color:#555}
.mbtn-cancel:hover{background:#F5F5F5}
.mbtn-confirm{padding:8px 16px;background:#1A1A1A;border:none;border-radius:4px;font-size:13px;cursor:pointer;color:#FFF;font-weight:600}
.mbtn-confirm:hover{background:#333}

/* ── MESSAGERIE ── */
#msg-widget{position:fixed;bottom:24px;right:24px;z-index:300;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.msg-pill{display:flex;align-items:center;gap:8px;padding:10px 18px;background:#1A1A1A;color:#FFF;border-radius:24px;cursor:pointer;font-size:13px;font-weight:500;box-shadow:0 2px 12px rgba(0,0,0,.2)}
.msg-pill:hover{background:#333}
.mpbadge{background:#FFF;color:#1A1A1A;font-size:10px;font-weight:700;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.msg-panel{display:none;flex-direction:column;width:300px;height:340px;background:#FFF;border:1px solid #E0E0E0;border-radius:8px;box-shadow:0 4px 24px rgba(0,0,0,.12);overflow:hidden}
.msg-panel.open{display:flex}
.mphdr{padding:10px 14px;background:#1A1A1A;color:#FFF;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:space-between}
.mpclose{cursor:pointer;color:#CCC;font-size:16px;line-height:1}
.mpclose:hover{color:#FFF}
.mplist{flex:1;overflow-y:auto;padding:10px;display:flex;flex-direction:column;gap:8px}
.mpbubble{max-width:80%;padding:8px 10px;border-radius:8px;font-size:12px;line-height:1.4}
.mpbubble.them{background:#F0F0F0;color:#333;align-self:flex-start}
.mpbubble.us{background:#1A1A1A;color:#FFF;align-self:flex-end}
.mpsender{font-size:10px;color:#AAA;margin-bottom:2px}
.mpbubble.us .mpsender{text-align:right}
.mpinput-row{display:flex;border-top:1px solid #EBEBEB;padding:8px;gap:6px}
.mpinput{flex:1;border:1px solid #D0D0D0;border-radius:4px;padding:6px 8px;font-size:12px;font-family:inherit}
.mpinput::placeholder{color:#CCC}
.mpsend{padding:6px 12px;background:#1A1A1A;border:none;border-radius:4px;color:#FFF;font-size:12px;cursor:pointer}
.mpsend:hover{background:#333}

/* ── ACTION HINT ── */
.action-hint{border-left:3px solid #1A1A1A;background:#F5F5F5;padding:10px 12px;margin-bottom:12px;font-size:12px;color:#333;border-radius:0 4px 4px 0;line-height:1.5}
.action-hint strong{font-weight:600;color:#1A1A1A}
.act-badge{display:inline-block;padding:2px 6px;border-radius:10px;font-size:10px;font-weight:600;background:#E8E8E8;color:#333;border:1px solid #CCC;margin-left:4px;vertical-align:middle}
.next-evt{display:block;font-size:11px;color:#999;font-style:italic;margin-top:6px}

/* ── SLIDING PANELS (entreprise/notre-projet.html) ── */
#hypo-overlay,#planning-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:310;opacity:0;pointer-events:none;transition:opacity .25s}
#hypo-overlay.open,#planning-overlay.open{opacity:1;pointer-events:all}
#hypo-panel,#planning-panel{position:fixed;top:0;right:0;bottom:0;width:90%;background:#FFF;z-index:311;transform:translateX(100%);transition:transform .25s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;border-left:1px solid #EBEBEB}
#hypo-panel.open,#planning-panel.open{transform:translateX(0)}
#config-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:310;opacity:0;pointer-events:none;transition:opacity .25s}
#config-overlay.open{opacity:1;pointer-events:all}
#config-panel{position:fixed;top:0;right:0;bottom:0;width:90%;background:#FFF;z-index:311;transform:translateX(100%);transition:transform .25s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;border-left:1px solid #EBEBEB}
#config-panel.open{transform:translateX(0)}
.cp-branch-hdr{display:flex;align-items:center;gap:6px;padding:6px 8px;cursor:pointer;border-radius:4px;font-size:12px;font-weight:600;color:#1A1A1A;user-select:none}
.cp-branch-hdr:hover{background:#F5F5F5}
.cp-l1-block{margin-bottom:8px}
.cp-l1-hdr{background:#EFEFEF;color:#1A1A1A;border-radius:6px;padding:10px 12px;font-size:13px;letter-spacing:0.3px}
.cp-l1-hdr:hover{background:#E6E6E6}
.cp-branch-body{overflow:hidden}
.cp-branch-body.collapsed{display:none}
.cp-toggle-ico{font-size:10px;color:#888;transition:transform .15s;display:inline-block;width:12px}
.cp-toggle-ico.open{transform:rotate(90deg)}
.cp-leaf{display:block;padding:3px 8px;font-size:12px;color:#333}
.cp-leaf-row{display:flex;align-items:center;gap:8px}
.cp-leaf-row>label{display:flex;align-items:center;gap:6px;cursor:pointer}
.cp-leaf input[type=checkbox]{width:14px;height:14px;accent-color:#7B1010;cursor:pointer;flex-shrink:0}
.cp-comments{display:flex;align-items:center;gap:8px;flex-shrink:0}
.cp-opt-lbl{display:flex;align-items:center;gap:5px;font-size:11px;color:#555;cursor:pointer;user-select:none}
.cp-opt-cb{width:13px;height:13px;accent-color:#7B1010;cursor:pointer}
.cp-prec-btn{border:1px solid #D8D8D8;border-radius:4px;padding:2px 8px;font-size:11px;font-family:inherit;color:#555;background:#F5F5F5;cursor:pointer}
.cp-prec-btn:hover{background:#EBEBEB}
.cp-sel-btns{display:flex;gap:3px;flex-shrink:0}
.cp-sel-btn{border:1px solid #D8D8D8;border-radius:4px;padding:2px 8px;font-size:11px;font-family:inherit;color:#555;background:#F5F5F5;cursor:pointer;white-space:nowrap}
.cp-sel-btn:hover{background:#E0E0E0;color:#1A1A1A}
.cp-prec-zone{margin-top:2px}
.cp-prec-input{width:100%;border:1px solid #E0E0E0;border-radius:4px;padding:3px 8px;font-size:11px;font-family:inherit;color:#222;background:#FFF;outline:none;box-sizing:border-box}
.cp-prec-input:focus{border-color:#BBB}
/* Config summary (fiche projet) */
.cs-l1{font-size:11px;font-weight:700;color:#1A1A1A;text-transform:uppercase;letter-spacing:0.4px;margin:10px 0 3px;padding-bottom:3px;border-bottom:1px solid #EBEBEB}
.cs-l1:first-child{margin-top:0}
.cs-l2-hdr{font-size:11px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:0.3px;margin:6px 0 2px 2px}
.cs-item{font-size:12px;color:#444;padding:2px 0 2px 12px;line-height:1.4}
.cs-opt-badge{display:inline-block;font-size:10px;font-weight:600;color:#7B1010;background:#FAF0F0;border:1px solid #E8CCCC;border-radius:3px;padding:0 5px;margin-left:5px;vertical-align:middle}
.cs-prec-text{font-style:italic;color:#888;margin-left:4px}
/* Filtre "afficher la sélection" */
#config-panel-body.cp-filter-on .cp-leaf:not(:has(input:checked)){display:none}
#config-panel-body.cp-filter-on .cp-branch-body>div:not(:has(input:checked)){display:none}
#config-panel-body.cp-filter-on .cp-branch-body{display:block!important}
#cp-filter-btn.active{background:#1A1A1A;color:#FFF;border-color:#1A1A1A}
.hp-hdr{display:flex;align-items:center;justify-content:space-between;padding:0 24px;height:64px;border-bottom:1px solid #EBEBEB;flex-shrink:0}
.hp-hdr-title{font-size:15px;font-weight:600;color:#1A1A1A}
.hp-close{width:32px;height:32px;border:none;background:#F5F5F5;border-radius:4px;cursor:pointer;font-size:14px;color:#555;display:flex;align-items:center;justify-content:center;line-height:1}
.hp-close:hover{background:#EBEBEB;color:#1A1A1A}
.hp-body{flex:1;overflow-y:auto;padding:20px 24px}
.hp-add-row{margin-bottom:20px}
.hp-list{display:flex;flex-direction:column;gap:10px}
.hp-item{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 16px;background:#FFF;border:1px solid #EBEBEB;border-radius:8px}
.hp-item-main{flex:1}
.hp-item-name{font-size:13px;font-weight:600;color:#1A1A1A;margin-bottom:3px}
.hp-item-range{font-size:12px;color:#555;margin-bottom:2px}
.hp-item-desc{font-size:12px;color:#888}
.hp-item-opts{font-size:11px;color:#888;margin-top:3px;font-style:italic}
.hp-item-opts-none{color:#CCC}
.hf-opts{display:flex;flex-direction:column;gap:5px;padding:10px 12px;background:#FFF;border:1px solid #E8E8E8;border-radius:5px}
.hf-opts-lbl{font-size:10px;font-weight:600;color:#AAA;text-transform:uppercase;letter-spacing:.5px;margin-bottom:2px}
.hf-opt-item{display:flex;align-items:flex-start;gap:7px;font-size:12px;color:#444;cursor:pointer;line-height:1.4}
.hf-opt-item input{margin-top:2px;flex-shrink:0;cursor:pointer}
.hf-opt-path{font-size:10px;color:#AAA}
.hf-opts-empty{font-size:11px;color:#AAA;font-style:italic;padding:4px 0}
.hp-del{padding:4px 10px;font-size:11px;background:#FFF;border:1px solid #E0E0E0;color:#888;border-radius:4px;cursor:pointer;white-space:nowrap;flex-shrink:0}
.hp-del:hover{background:#FFF0F0;border-color:#FFCCCC;color:#C44}
.hp-form{display:flex;flex-direction:column;gap:8px;padding:14px 16px;background:#F8F8F8;border:1px solid #EBEBEB;border-radius:8px;margin-bottom:20px}
.hp-form-lbl{font-size:11px;font-weight:600;color:#AAA;text-transform:uppercase;letter-spacing:.5px}
.hp-empty{font-size:12px;color:#AAA;font-style:italic;padding:8px 0}
.hp-footer{padding:14px 24px;border-top:1px solid #EBEBEB;flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;gap:10px}
