:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#172033;background:#f5f7fb}*{box-sizing:border-box}body{margin:0}header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:14px 5%;background:white;border-bottom:1px solid #e5e7eb}.brand{font-weight:750;font-size:1.15rem;color:#172033;text-decoration:none}nav{display:flex;gap:14px;flex-wrap:wrap}nav a{color:#334155;text-decoration:none}main{max-width:1120px;margin:28px auto;padding:0 18px}footer{text-align:center;padding:30px;color:#64748b}.card{background:white;border:1px solid #e5e7eb;border-radius:14px;padding:20px;margin-bottom:18px;box-shadow:0 2px 10px #00000008}.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.btn,button{display:inline-block;border:0;border-radius:9px;background:#2563eb;color:white;padding:11px 15px;text-decoration:none;font-weight:650;cursor:pointer}.btn.secondary,button.secondary{background:#e2e8f0;color:#1e293b}.danger{background:#b91c1c!important}input,select,textarea{width:100%;padding:11px;border:1px solid #cbd5e1;border-radius:9px;background:white;font:inherit}label{display:block;font-weight:650;margin:10px 0 6px}.muted{color:#64748b}.slots{display:flex;flex-wrap:wrap;gap:9px}.slot{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.appt{border-left:5px solid #64748b;padding:12px;margin:8px 0;background:#f8fafc;border-radius:8px}.week{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));gap:8px;overflow-x:auto}.day{min-height:320px;background:white;border:1px solid #e5e7eb;border-radius:10px;padding:9px}.day h3{font-size:.9rem;margin:0 0 8px}.pill{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef2ff;font-size:.8rem}.notice{padding:12px;border-radius:9px;background:#ecfdf5;border:1px solid #a7f3d0;margin-bottom:14px}.error{background:#fef2f2;border-color:#fecaca}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.switch{display:flex;align-items:center;gap:9px}.switch input{width:auto}@media(max-width:650px){header{align-items:flex-start;gap:10px;flex-direction:column}nav{font-size:.92rem}.card{padding:15px}main{margin-top:16px}.week{grid-template-columns:1fr}.day{min-height:auto}.btn,button{min-height:44px}.slots .btn{flex:1 1 42%}}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:650px){
  header{
    position:static;
  }
}/* Ajouts compacts : outils, indicateurs, historique, écrans tactiles. */
.cppl-toolbar{margin:0 0 14px}.cppl-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cppl-item{padding:12px 0;border-bottom:1px solid #e2e8f0}.cppl-item .row{margin-top:8px}
.cppl-command{display:block;white-space:normal;overflow-wrap:anywhere;padding:10px;background:#f1f5f9}
.cppl-note-marker{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #64748b;border-radius:4px;font-size:13px;line-height:1;width:19px;height:19px;margin-left:5px;color:#334155}
.jour-colonne .cppl-note-marker{position:absolute;right:2px;top:2px;pointer-events:none}
.jour-colonne .appt:has(.cppl-note-marker){padding-right:24px}
.cppl-block{position:absolute;left:2px;right:2px;z-index:1;overflow:hidden;background:repeating-linear-gradient(135deg,#e2e8f0 0px,#e2e8f0 8px,#f1f5f9 8px,#f1f5f9 16px);border:1px solid #94a3b8;color:#334155;font-size:11px;padding:3px;text-decoration:none;box-sizing:border-box}
.cppl-block-mobile{display:block;background:#e2e8f0;border-left:4px solid #64748b;padding:12px;margin:8px 0;color:#334155;text-decoration:none}
#cppl-historique{border:1px solid #dce5ef;border-radius:12px;padding:18px;width:calc(100% - 24px);max-width:470px;max-height:85vh;overflow:auto}
#cppl-historique h3{margin-top:0}button:focus-visible,a:focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}
@media(max-width:650px){
 .grid{grid-template-columns:minmax(0,1fr)!important}.cppl-fields{grid-template-columns:1fr}
 main{padding:0 10px}nav{gap:10px}nav a{padding:4px 0}
 dialog{max-height:88dvh!important;max-width:calc(100vw - 20px)!important}
 dialog input:not([type=checkbox]):not([type=radio]),dialog select,dialog textarea,
 #fiche-client input:not([type=checkbox]):not([type=radio]),#fiche-client textarea{font-size:16px!important}
 #fiche-client{max-width:calc(100vw - 20px)!important;max-height:88dvh!important;overflow:auto!important}
 #fiche-client .btn,#fiche-client button{min-height:44px}
 #fiche-client [role=tablist]{gap:8px!important}
 #cppl-historique{inset:auto!important;margin:auto!important}
}
