/* Observatoire IPP — Espace collaborateur ergonomique v2.13.88 */
body.ipp-collab-enhanced {
  --ipp-navy:#17233a;
  --ipp-navy-2:#24334f;
  --ipp-teal:#007f79;
  --ipp-teal-dark:#006963;
  --ipp-teal-soft:#e9f7f5;
  --ipp-blue-soft:#eef5ff;
  --ipp-ink:#18243a;
  --ipp-muted:#67758b;
  --ipp-border:#dce5ec;
  --ipp-surface:#ffffff;
  --ipp-bg:#f5f8fb;
  --ipp-shadow:0 10px 28px rgba(21,38,63,.08);
  background:var(--ipp-bg)!important;
}

body.ipp-collab-enhanced .entry-content,
body.ipp-collab-enhanced .site-main,
body.ipp-collab-enhanced main,
body.ipp-collab-enhanced .wp-site-blocks {
  overflow:visible;
}

body.ipp-collab-enhanced #ipp-collab-dashboard {
  width:min(1500px, calc(100% - 44px));
  margin:34px auto 64px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ipp-ink);
}

.ipp-collab-original-hidden { display:none!important; }

.ipp-collab-shell * { box-sizing:border-box; }
.ipp-collab-shell button,
.ipp-collab-shell input,
.ipp-collab-shell select,
.ipp-collab-shell textarea { font:inherit; }

.ipp-collab-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:center;
  padding:30px 32px;
  border:1px solid var(--ipp-border);
  border-radius:22px;
  background:linear-gradient(135deg,#fff 0%,#fbfefe 60%,#eef8f7 100%);
  box-shadow:var(--ipp-shadow);
}
.ipp-collab-kicker {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
  color:var(--ipp-teal);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ipp-collab-kicker::before {
  content:"";
  width:9px;height:9px;border-radius:99px;background:var(--ipp-teal);
  box-shadow:0 0 0 5px rgba(0,127,121,.10);
}
.ipp-collab-title {
  margin:0;
  color:var(--ipp-navy);
  font-size:clamp(30px,3.3vw,50px);
  line-height:1.04;
  letter-spacing:-.035em;
  font-weight:800;
}
.ipp-collab-subtitle {
  margin:12px 0 0;
  max-width:900px;
  color:var(--ipp-muted);
  font-size:15px;
  line-height:1.55;
}
.ipp-collab-hero-actions { display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end; }

.ipp-collab-btn {
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 16px;
  border:1px solid transparent;
  border-radius:12px;
  text-decoration:none!important;
  cursor:pointer;
  font-weight:750;
  line-height:1;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease;
}
.ipp-collab-btn:hover { transform:translateY(-1px); }
.ipp-collab-btn-primary { background:var(--ipp-teal);color:#fff!important;box-shadow:0 8px 18px rgba(0,127,121,.18); }
.ipp-collab-btn-primary:hover { background:var(--ipp-teal-dark); }
.ipp-collab-btn-secondary { background:#fff;color:var(--ipp-navy)!important;border-color:var(--ipp-border); }
.ipp-collab-btn-secondary:hover { border-color:#afc2ce;background:#f9fbfc; }
.ipp-collab-btn-dark { background:var(--ipp-navy);color:#fff!important; }

.ipp-collab-stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:16px 0;
}
.ipp-collab-stat {
  min-height:112px;
  padding:19px 20px;
  border:1px solid var(--ipp-border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 4px 14px rgba(21,38,63,.04);
}
.ipp-collab-stat-label { display:block;color:var(--ipp-muted);font-size:13px;font-weight:650;margin-bottom:9px; }
.ipp-collab-stat-value { display:block;color:var(--ipp-navy);font-size:30px;line-height:1;font-weight:850;letter-spacing:-.03em; }
.ipp-collab-stat-meta { display:block;margin-top:8px;color:#8491a3;font-size:12px; }

.ipp-collab-toolbar {
  position:sticky;
  top:12px;
  z-index:25;
  display:grid;
  grid-template-columns:auto minmax(260px,1fr) auto;
  gap:12px;
  align-items:center;
  margin:16px 0;
  padding:12px;
  border:1px solid rgba(215,226,234,.94);
  border-radius:16px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 22px rgba(21,38,63,.07);
  backdrop-filter:blur(10px);
}
.ipp-collab-tabs { display:flex;gap:6px;flex-wrap:wrap; }
.ipp-collab-tab {
  appearance:none;border:0;background:transparent;color:#5d6a7f;border-radius:10px;
  padding:11px 14px;font-weight:750;cursor:pointer;white-space:nowrap;
}
.ipp-collab-tab[aria-selected="true"] { background:var(--ipp-navy);color:#fff;box-shadow:0 5px 12px rgba(23,35,58,.15); }
.ipp-collab-tab .ipp-count { margin-left:7px;padding:2px 7px;border-radius:99px;background:rgba(255,255,255,.14);font-size:11px; }
.ipp-collab-tab[aria-selected="false"] .ipp-count { background:#edf1f5;color:#6b7788; }

.ipp-collab-search { position:relative; }
.ipp-collab-search input {
  width:100%;height:44px;padding:0 42px 0 42px;border:1px solid var(--ipp-border);border-radius:12px;
  background:#f9fbfc;color:var(--ipp-ink);outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.ipp-collab-search input:focus { background:#fff;border-color:#67aaa4;box-shadow:0 0 0 4px rgba(0,127,121,.08); }
.ipp-collab-search::before { content:"⌕";position:absolute;left:15px;top:50%;transform:translateY(-52%);font-size:22px;color:#6d7a8c;pointer-events:none; }
.ipp-collab-search-clear { position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;border-radius:9px;background:transparent;color:#7a8799;cursor:pointer;font-size:18px; }
.ipp-collab-search-clear:hover { background:#eef2f5;color:#25334a; }

.ipp-collab-create-panel {
  display:none;
  margin:16px 0;
  border:1px solid #b9ded9;
  border-radius:18px;
  background:#fff;
  box-shadow:var(--ipp-shadow);
  overflow:hidden;
}
.ipp-collab-create-panel.is-open { display:block; }
.ipp-collab-create-head { display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid var(--ipp-border);background:linear-gradient(90deg,#eff9f8,#fff); }
.ipp-collab-create-head h2 { margin:0;color:var(--ipp-navy);font-size:24px;letter-spacing:-.02em; }
.ipp-collab-create-head p { margin:6px 0 0;color:var(--ipp-muted);font-size:13px; }
.ipp-collab-create-body { padding:22px 24px; }
.ipp-collab-create-choice { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px; }
.ipp-create-choice-btn { display:flex;align-items:center;gap:13px;text-align:left;padding:16px;border:1px solid var(--ipp-border);border-radius:14px;background:#fff;color:var(--ipp-ink);cursor:pointer; }
.ipp-create-choice-btn:hover,.ipp-create-choice-btn.is-active { border-color:#75bcb5;background:var(--ipp-teal-soft); }
.ipp-create-choice-icon { display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#eff4f7;font-size:20px;flex:0 0 auto; }
.ipp-create-choice-btn strong { display:block;font-size:14px;color:var(--ipp-navy); }
.ipp-create-choice-btn small { display:block;margin-top:3px;color:var(--ipp-muted);font-size:12px; }
.ipp-collab-create-inline > *:first-child { margin-top:0!important; }
.ipp-collab-create-frame { width:100%;height:min(760px,72vh);border:1px solid var(--ipp-border);border-radius:14px;background:#fff; }
.ipp-collab-create-empty { padding:18px;border:1px dashed #b9c8d3;border-radius:13px;background:#f9fbfc;color:#607084;font-size:13px;line-height:1.55; }

.ipp-collab-content-card {
  margin-top:16px;
  padding:0;
  border:1px solid var(--ipp-border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--ipp-shadow);
  overflow:hidden;
}
.ipp-collab-section-head { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--ipp-border); }
.ipp-collab-section-head h2 { margin:0;color:var(--ipp-navy);font-size:25px;letter-spacing:-.025em; }
.ipp-collab-section-head p { margin:5px 0 0;color:var(--ipp-muted);font-size:13px; }
.ipp-collab-section-count { display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:30px;padding:0 10px;border-radius:99px;background:var(--ipp-teal-soft);color:var(--ipp-teal-dark);font-weight:800;font-size:12px; }

.ipp-organ-nav { display:flex;gap:8px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid var(--ipp-border);background:#fbfcfd; }
.ipp-organ-filter { appearance:none;border:1px solid #dfe6ec;border-radius:99px;background:#fff;color:#59677a;padding:8px 11px;cursor:pointer;font-size:12px;font-weight:700; }
.ipp-organ-filter:hover,.ipp-organ-filter.is-active { border-color:#70b6b0;background:var(--ipp-teal-soft);color:var(--ipp-teal-dark); }
.ipp-organ-filter .ipp-count { margin-left:5px;opacity:.72; }

.ipp-organ-groups { padding:4px 16px 16px; }
.ipp-organ-group { margin-top:12px;border:1px solid #e2e9ee;border-radius:14px;overflow:hidden;background:#fff; }
.ipp-organ-group[hidden] { display:none!important; }
.ipp-organ-summary { display:flex;align-items:center;gap:12px;width:100%;padding:15px 16px;border:0;background:#f9fbfc;color:var(--ipp-navy);cursor:pointer;text-align:left; }
.ipp-organ-summary:hover { background:#f2f8f7; }
.ipp-organ-chevron { width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:#e9eef2;color:#667486;transition:transform .18s ease; }
.ipp-organ-group.is-open .ipp-organ-chevron { transform:rotate(90deg); }
.ipp-organ-name { font-size:14px;font-weight:800;flex:1; }
.ipp-organ-count { display:inline-grid;place-items:center;min-width:29px;height:24px;padding:0 8px;border-radius:99px;background:#edf3f5;color:#637184;font-size:11px;font-weight:800; }
.ipp-organ-body { display:none; }
.ipp-organ-group.is-open .ipp-organ-body { display:block; }

.ipp-collab-table-wrap { overflow:auto; }
.ipp-collab-table { width:100%;border-collapse:collapse;margin:0!important;min-width:780px;background:#fff; }
.ipp-collab-table th { padding:11px 13px!important;border:0!important;border-bottom:1px solid var(--ipp-border)!important;background:#fff!important;color:#718095!important;font-size:11px!important;letter-spacing:.04em;text-transform:uppercase;text-align:left;white-space:nowrap; }
.ipp-collab-table td { padding:13px!important;border:0!important;border-bottom:1px solid #edf1f4!important;color:#2d394d!important;font-size:13px!important;vertical-align:middle!important; }
.ipp-collab-table tr:last-child td { border-bottom:0!important; }
.ipp-collab-table tbody tr:hover td { background:#fbfefd; }
.ipp-collab-table td:first-child { font-weight:700;color:var(--ipp-navy)!important; }
.ipp-collab-table a { color:var(--ipp-teal-dark);text-decoration:none;font-weight:700; }
.ipp-collab-table a:hover { text-decoration:underline; }
.ipp-collab-table button,
.ipp-collab-table input[type="submit"],
.ipp-collab-table .button,
.ipp-collab-table a.button { min-height:34px!important;padding:7px 10px!important;border-radius:9px!important;font-size:12px!important;line-height:1.1!important; }

.ipp-collab-empty-results { padding:42px 24px;text-align:center;color:var(--ipp-muted); }
.ipp-collab-empty-results strong { display:block;margin-bottom:5px;color:var(--ipp-navy);font-size:16px; }

.ipp-collab-source-bucket { display:none!important; }

@media (max-width:980px) {
  body.ipp-collab-enhanced #ipp-collab-dashboard { width:min(100% - 24px,1500px);margin-top:18px; }
  .ipp-collab-hero { grid-template-columns:1fr;padding:24px; }
  .ipp-collab-hero-actions { justify-content:flex-start; }
  .ipp-collab-toolbar { position:relative;top:auto;grid-template-columns:1fr; }
  .ipp-collab-stats { grid-template-columns:1fr; }
  .ipp-collab-create-choice { grid-template-columns:1fr; }
}

@media (max-width:620px) {
  body.ipp-collab-enhanced #ipp-collab-dashboard { width:calc(100% - 16px);margin:10px auto 36px; }
  .ipp-collab-hero { padding:19px;border-radius:16px; }
  .ipp-collab-title { font-size:31px; }
  .ipp-collab-stat { min-height:92px; }
  .ipp-collab-section-head,.ipp-collab-create-head { padding:18px; }
  .ipp-collab-create-body { padding:16px; }
  .ipp-organ-groups { padding:4px 8px 10px; }
  .ipp-collab-tabs { width:100%; }
  .ipp-collab-tab { flex:1 1 auto;padding-inline:10px; }
}

/* v2.13.88 — espace collaborateur plus dense + mode éditeur complet */
body.ipp-collab-enhanced #ipp-collab-dashboard{width:min(1540px,calc(100% - 28px));margin:18px auto 52px}
.ipp-collab-hero{padding:20px 22px;border-radius:16px;box-shadow:0 5px 18px rgba(21,38,63,.05)}
.ipp-collab-title{font-size:clamp(28px,2.7vw,42px)}
.ipp-collab-subtitle{margin-top:7px;font-size:13px}
.ipp-collab-hero-actions{gap:8px}
.ipp-collab-btn{min-height:40px;padding:9px 13px;border-radius:9px;font-size:13px}
.ipp-collab-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0}
.ipp-collab-stat{min-height:76px;padding:12px 14px;border-radius:11px;box-shadow:none}
.ipp-collab-stat-label{margin-bottom:5px;font-size:11px}
.ipp-collab-stat-value{font-size:23px}
.ipp-collab-stat-meta{margin-top:4px;font-size:10.5px}
.ipp-collab-toolbar{top:8px;grid-template-columns:auto minmax(320px,1fr) auto;margin:10px 0;padding:8px;border-radius:12px;box-shadow:0 5px 16px rgba(21,38,63,.055)}
.ipp-collab-tab{padding:9px 11px;border-radius:8px;font-size:12.5px}
.ipp-collab-search input{height:39px;border-radius:9px;font-size:13px}
.ipp-collab-content-card{margin-top:10px;border-radius:14px;box-shadow:0 5px 18px rgba(21,38,63,.04)}
.ipp-collab-section-head{padding:15px 17px}
.ipp-collab-section-head h2{font-size:20px}
.ipp-collab-section-head p{margin-top:3px;font-size:11.5px}
.ipp-organ-nav{padding:9px 11px;gap:6px}
.ipp-organ-filter{padding:6px 9px;font-size:10.8px}
.ipp-organ-groups{padding:2px 9px 10px}
.ipp-organ-group{margin-top:8px;border-radius:10px}
.ipp-organ-summary{padding:10px 12px;gap:8px}
.ipp-organ-chevron{width:21px;height:21px;border-radius:6px}
.ipp-organ-name{font-size:12.8px}
.ipp-organ-count{height:21px;font-size:10px}
.ipp-collab-table{min-width:700px}
.ipp-collab-table th{padding:8px 10px!important;font-size:9.5px!important}
.ipp-collab-table td{padding:9px 10px!important;font-size:11.8px!important;line-height:1.35!important}
.ipp-collab-table td:first-child{font-size:12.3px!important}
.ipp-collab-table button,.ipp-collab-table input[type="submit"],.ipp-collab-table .button,.ipp-collab-table a.button{min-height:30px!important;padding:6px 9px!important;border-radius:7px!important;font-size:10.8px!important;text-decoration:none!important}
.ipp-collab-table td:last-child{white-space:nowrap}

.ipp-collab-create-panel{margin:10px 0;border-radius:14px;box-shadow:0 6px 18px rgba(21,38,63,.05)}
.ipp-collab-create-head{padding:15px 17px}
.ipp-collab-create-head h2{font-size:20px}
.ipp-collab-create-head p{margin-top:4px;font-size:11.5px}
.ipp-collab-create-body{padding:14px 16px}
.ipp-collab-create-choice{gap:8px;margin-bottom:10px}
.ipp-create-choice-btn{padding:11px;border-radius:10px}
.ipp-create-choice-icon{width:34px;height:34px;border-radius:8px;font-size:16px}
.ipp-collab-create-frame{height:980px;max-height:calc(100vh - 120px);border-radius:10px}

/* Quand ?edit_fiche=... est ouvert, ne jamais reconstruire/masquer le formulaire historique. */
body.ipp-collab-editor-mode{background:#f5f8fb!important}
body.ipp-collab-editor-mode .entry-content,
body.ipp-collab-editor-mode main,
body.ipp-collab-editor-mode .site-main{overflow:visible!important}
.ipp-collab-editorbar{
  position:sticky;top:8px;z-index:2000;display:flex;align-items:center;justify-content:space-between;gap:16px;
  width:min(1500px,calc(100% - 28px));margin:14px auto 10px;padding:10px 12px;border:1px solid #d7e5e7;border-radius:12px;
  background:rgba(255,255,255,.96);backdrop-filter:blur(10px);box-shadow:0 6px 20px rgba(21,38,63,.07)
}
.ipp-collab-editorbar-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.ipp-collab-editorbar-copy strong{color:var(--ipp-navy);font-size:13px}
.ipp-collab-editorbar-copy span{color:var(--ipp-muted);font-size:10.8px}
.ipp-collab-editorbar-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.ipp-collab-full-editor{
  width:min(1500px,calc(100% - 28px))!important;margin:0 auto 52px!important;padding:18px!important;
  border:1px solid #dce5ec!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 18px rgba(21,38,63,.045)!important
}
.ipp-collab-full-editor form{max-width:none!important}
.ipp-collab-full-editor label{color:#23344d!important;font-weight:750!important}
.ipp-collab-full-editor input[type="text"],.ipp-collab-full-editor input[type="search"],.ipp-collab-full-editor input[type="url"],.ipp-collab-full-editor input[type="number"],.ipp-collab-full-editor select,.ipp-collab-full-editor textarea{
  width:100%!important;min-height:40px!important;border:1px solid #cfdbe3!important;border-radius:8px!important;background:#fff!important;padding:8px 10px!important;box-shadow:none!important
}
.ipp-collab-full-editor textarea{min-height:130px!important;line-height:1.5!important}
.ipp-collab-full-editor input:focus,.ipp-collab-full-editor select:focus,.ipp-collab-full-editor textarea:focus{outline:0!important;border-color:#4ea39c!important;box-shadow:0 0 0 3px rgba(0,127,121,.09)!important}
.ipp-collab-full-editor .wp-editor-wrap,.ipp-collab-full-editor .tox-tinymce,.ipp-collab-full-editor .mce-tinymce{border-radius:10px!important;overflow:hidden!important;border-color:#cfdbe3!important}

@media(max-width:900px){
  .ipp-collab-toolbar{grid-template-columns:1fr}
  .ipp-collab-stats{grid-template-columns:1fr 1fr 1fr}
  .ipp-collab-editorbar{position:relative;top:auto;align-items:flex-start;flex-direction:column}
  .ipp-collab-editorbar-actions{justify-content:flex-start}
}
@media(max-width:620px){
  body.ipp-collab-enhanced #ipp-collab-dashboard{width:calc(100% - 12px);margin-top:8px}
  .ipp-collab-stats{grid-template-columns:1fr}
  .ipp-collab-create-frame{height:760px;max-height:none}
  .ipp-collab-full-editor,.ipp-collab-editorbar{width:calc(100% - 12px)!important}
}


/* v2.13.89 — retouches de confort dans l'espace collaborateur */
#ipp-collab-app .ipp-collab-toolbar{position:sticky;top:8px;z-index:15}
#ipp-collab-app .ipp-collab-card{box-shadow:0 4px 18px rgba(20,43,60,.04)!important}
#ipp-collab-app .ipp-collab-table tbody tr:hover td{background:#f8fbfb!important}
#ipp-collab-app .ipp-collab-action-link,#ipp-collab-app .ipp-collab-action-button{min-height:38px!important}

/* v2.13.90 — création intégrée + contraste des actions */
.ipp-collab-table a[href*="edit_fiche="],
.ipp-collab-table a[href*="edit_fiche="]:link,
.ipp-collab-table a[href*="edit_fiche="]:visited{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:32px!important;padding:7px 11px!important;border:1px solid #08766f!important;border-radius:8px!important;
  background:#087f78!important;color:#fff!important;text-decoration:none!important;font-weight:800!important;
  box-shadow:none!important;text-shadow:none!important;
}
.ipp-collab-table a[href*="edit_fiche="]:hover,
.ipp-collab-table a[href*="edit_fiche="]:focus-visible{
  background:#075f5b!important;border-color:#075f5b!important;color:#fff!important;text-decoration:none!important;
  outline:3px solid rgba(8,127,120,.16)!important;outline-offset:2px!important;
}

.ipp-collab-native-editor{display:grid;gap:14px}
.ipp-collab-native-type{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ipp-collab-native-form{display:grid;gap:14px}
.ipp-collab-native-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;border:1px solid var(--ipp-border);border-radius:12px;background:#fbfcfd}
.ipp-collab-field{display:grid;gap:6px;min-width:0;color:var(--ipp-navy);font-size:12px;font-weight:800}
.ipp-collab-field>span{display:block}
.ipp-collab-field input,.ipp-collab-field select,.ipp-collab-field textarea{width:100%;min-height:42px;border:1px solid #cfdbe3;border-radius:9px;background:#fff;color:var(--ipp-ink);padding:9px 11px;outline:none;font-size:13px;font-weight:500;box-shadow:none}
.ipp-collab-field textarea{min-height:78px;resize:vertical}
.ipp-collab-field input:focus,.ipp-collab-field select:focus,.ipp-collab-field textarea:focus{border-color:#4a9f98;box-shadow:0 0 0 3px rgba(0,127,121,.09)}
.ipp-collab-native-sections{display:grid;gap:10px}
.ipp-collab-editor-section{overflow:hidden;border:1px solid var(--ipp-border);border-radius:12px;background:#fff}
.ipp-collab-editor-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:9px 10px;border-bottom:1px solid var(--ipp-border);background:#f8fbfb}
.ipp-collab-editor-section-head h3{margin:0;color:var(--ipp-navy);font-size:13px;font-weight:850}
.ipp-collab-rich-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.ipp-rich-tool{appearance:none;min-height:30px;padding:5px 8px;border:1px solid #d6e1e7;border-radius:7px;background:#fff;color:#263851;font-size:11px;font-weight:800;cursor:pointer}
.ipp-rich-tool:hover,.ipp-rich-tool:focus-visible{border-color:#72b7b1;background:#eef8f6;color:#075f5b;outline:none}
.ipp-collab-rich-editor{min-height:116px;padding:12px 13px;color:#24384c;font-size:13.5px;line-height:1.55;outline:none;overflow-wrap:anywhere}
.ipp-collab-rich-editor:focus{box-shadow:inset 0 0 0 2px rgba(0,127,121,.12)}
.ipp-collab-rich-editor:empty::before{content:attr(data-placeholder);color:#98a4b2;pointer-events:none}
.ipp-collab-rich-editor h4{margin:10px 0 6px;color:var(--ipp-navy);font-size:14px}
.ipp-collab-rich-editor ul,.ipp-collab-rich-editor ol{margin:7px 0;padding-left:22px}
.ipp-collab-native-actions{position:sticky;bottom:8px;z-index:12;display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;padding:9px 10px;border:1px solid #d8e5e6;border-radius:11px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);box-shadow:0 6px 18px rgba(21,38,63,.07)}
.ipp-collab-native-status{margin-right:auto;color:var(--ipp-muted);font-size:11.5px;font-weight:700}
.ipp-collab-native-status.is-success{color:#08766f}
.ipp-collab-native-status.is-error{color:#a43b3b}
.ipp-collab-native-editor.is-busy{opacity:.78}
.ipp-collab-native-editor button:disabled{cursor:not-allowed;opacity:.55;transform:none!important}
.ipp-collab-preview{scroll-margin-top:84px;padding:18px;border:1px solid #b9ded9;border-radius:13px;background:#fff}
.ipp-collab-preview[hidden]{display:none!important}
.ipp-collab-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--ipp-border)}
.ipp-collab-preview-kicker{display:block;margin-bottom:4px;color:var(--ipp-teal);font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.ipp-collab-preview-head h2{margin:0;color:var(--ipp-navy);font-size:26px}
.ipp-collab-preview-head p{margin:5px 0 0;color:var(--ipp-muted);font-size:12px}
.ipp-collab-preview-meta{display:inline-flex;margin-top:11px;padding:5px 8px;border-radius:99px;background:var(--ipp-teal-soft);color:var(--ipp-teal-dark);font-size:11px;font-weight:800}
.ipp-collab-preview-section{padding:14px 0;border-bottom:1px solid #edf1f4}
.ipp-collab-preview-section:last-child{border-bottom:0}
.ipp-collab-preview-section h3{margin:0 0 7px;color:var(--ipp-navy);font-size:15px}
.ipp-collab-preview-html{color:#31475a;font-size:13.5px;line-height:1.6}
.ipp-collab-preview-html p{margin:0 0 8px}

@media(max-width:760px){
  .ipp-collab-native-type,.ipp-collab-native-meta{grid-template-columns:1fr}
  .ipp-collab-native-actions{position:static;justify-content:stretch}
  .ipp-collab-native-actions .ipp-collab-btn{flex:1 1 100%}
  .ipp-collab-native-status{flex:1 1 100%;margin:0 0 4px}
  .ipp-collab-preview-head{flex-direction:column}
}

/* v2.13.92 — création d'une fiche médicament identique à l'éditeur WordPress */
.ipp-collab-create-panel.ipp-collab-medication-create{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.ipp-collab-medication-create .ipp-collab-create-body{
  padding:0!important;
}
.ipp-med-editor-card{
  width:100%;
  border:1px solid #e1e6eb;
  border-radius:14px;
  background:#fff;
  box-shadow:0 2px 10px rgba(24,36,58,.035);
  overflow:hidden;
}
.ipp-med-editor-heading{
  padding:24px 28px 19px;
  border-bottom:1px solid #edf0f3;
  background:#fff;
}
.ipp-med-editor-heading h2{
  margin:0!important;
  color:#111827!important;
  font-size:22px!important;
  line-height:1.2!important;
  font-weight:800!important;
  letter-spacing:-.015em!important;
}
.ipp-med-editor-heading p{
  margin:7px 0 0!important;
  color:#667085!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.ipp-med-editor-form{
  padding:22px 28px 20px;
}
.ipp-med-editor-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  gap:26px;
  align-items:start;
}
.ipp-med-editor-main{
  min-width:0;
}
.ipp-med-meta-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:22px;
  row-gap:14px;
}
.ipp-med-field{
  display:block;
  margin:0 0 14px!important;
}
.ipp-med-meta-grid .ipp-med-field{
  margin-bottom:0!important;
}
.ipp-med-label{
  display:block;
  margin:0 0 6px;
  color:#202938!important;
  font-size:12px!important;
  line-height:1.3!important;
  font-weight:750!important;
}
.ipp-med-input,
.ipp-med-textarea{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  border:1px solid #e4e9ee!important;
  border-radius:7px!important;
  background:#f8fafb!important;
  color:#202938!important;
  box-shadow:none!important;
  outline:0!important;
  font-size:13px!important;
  line-height:1.45!important;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease!important;
}
.ipp-med-input{
  height:38px!important;
  min-height:38px!important;
  padding:7px 10px!important;
}
.ipp-med-textarea{
  min-height:112px!important;
  padding:9px 10px!important;
  resize:vertical!important;
}
.ipp-med-field:has(.ipp-med-textarea) .ipp-med-textarea{
  min-height:112px!important;
}
.ipp-med-meta-grid + .ipp-med-field{
  margin-top:14px!important;
}
.ipp-med-input:focus,
.ipp-med-textarea:focus{
  border-color:#2a8b86!important;
  background:#fff!important;
  box-shadow:0 0 0 3px rgba(0,127,121,.08)!important;
}
.ipp-med-field.has-error .ipp-med-input,
.ipp-med-field.has-error .ipp-med-textarea{
  border-color:#d92d20!important;
  background:#fffafa!important;
}
.ipp-med-editor-side{
  min-width:0;
}
.ipp-med-tags-card{
  position:sticky;
  top:88px;
  border:1px solid #e3e8ed;
  border-radius:8px;
  background:#fff;
  overflow:hidden;
}
.ipp-med-tags-card h3{
  margin:0!important;
  padding:13px 14px!important;
  border-bottom:1px solid #edf0f3;
  background:#fbfcfd;
  color:#202938!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:800!important;
}
.ipp-med-tag-option{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:36px!important;
  margin:0!important;
  padding:8px 13px!important;
  border-bottom:1px solid #f0f2f4!important;
  color:#364152!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:600!important;
  cursor:pointer!important;
  background:#fff!important;
}
.ipp-med-tag-option:last-child{border-bottom:0!important}
.ipp-med-tag-option:hover{background:#f8fbfb!important}
.ipp-med-tag-option input[type="checkbox"]{
  appearance:auto!important;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  margin:0!important;
  accent-color:#13837c;
}
.ipp-med-editor-status{
  min-height:20px;
  margin:13px 0 0;
  color:#667085;
  font-size:12px;
  font-weight:650;
}
.ipp-med-editor-status.is-error{color:#b42318!important}
.ipp-med-editor-status.is-success{color:#067647!important}
.ipp-med-editor-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding-top:12px;
  border-top:1px solid #edf0f3;
}
.ipp-med-editor-actions .ipp-collab-btn{
  min-height:34px!important;
  padding:7px 13px!important;
  border-radius:7px!important;
  font-size:12px!important;
  font-weight:750!important;
  transform:none!important;
  box-shadow:none!important;
}
.ipp-med-editor-actions .ipp-med-cancel{
  border:1px solid #d7dde3!important;
  background:#fff!important;
  color:#344054!important;
}
.ipp-med-editor-actions .ipp-med-cancel:hover{
  border-color:#bbc5ce!important;
  background:#f8fafb!important;
}
.ipp-med-editor-actions .ipp-med-submit{
  border:1px solid #13837c!important;
  background:#13837c!important;
  color:#fff!important;
}
.ipp-med-editor-actions .ipp-med-submit:hover{
  border-color:#0d6f69!important;
  background:#0d6f69!important;
}
.ipp-med-editor-card.is-busy{
  opacity:.78;
  pointer-events:none;
}

@media(max-width:900px){
  .ipp-med-editor-layout{grid-template-columns:1fr}
  .ipp-med-tags-card{position:relative;top:auto}
  .ipp-med-editor-side{order:-1}
  .ipp-med-tags-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
  .ipp-med-tags-card h3{grid-column:1/-1}
  .ipp-med-tag-option{border-right:1px solid #f0f2f4!important}
}
@media(max-width:620px){
  .ipp-med-editor-heading{padding:19px 17px 15px}
  .ipp-med-editor-form{padding:17px}
  .ipp-med-meta-grid{grid-template-columns:1fr}
  .ipp-med-tags-card{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ipp-med-editor-actions{justify-content:stretch}
  .ipp-med-editor-actions .ipp-collab-btn{flex:1}
}
