/* ============ Classofus — administration ============ */

:root{
  --bg:#0f1117;
  --surface:#171a23;
  --surface-2:#1e222d;
  --line:#2a2f3d;
  --text:#e8eaf0;
  --muted:#9aa1b4;
  --accent:#4f8ef7;
  --accent-soft:rgba(79,142,247,.14);
  --ok:#4ec27f;
  --err:#e0616a;
  --warn:#f2b544;
  --radius:10px;
}

*,*::before,*::after{box-sizing:border-box}

body{
  margin:0;background:var(--bg);color:var(--text);
  font:15px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
a{color:var(--accent)}
code{background:var(--surface-2);padding:1px 5px;border-radius:4px;font-size:.88em}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Connexion / installation ---------- */

.login-page{display:grid;place-items:center;min-height:100vh;padding:20px}
.login-box{
  width:min(400px,100%);padding:34px;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;
}
.login-box h1{
  margin:0;font-size:1.7rem;text-align:center;
  background:linear-gradient(90deg,#7db2ff,#c9a6ff);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.login-box .sub{margin:4px 0 24px;text-align:center;color:var(--muted);font-size:.9rem}
.login-box .back{margin:18px 0 0;text-align:center;font-size:.85rem}

/* ---------- En-tête admin ---------- */

.admin-header{background:var(--surface);border-bottom:1px solid var(--line)}
.admin-header-inner{
  display:flex;align-items:center;gap:24px;flex-wrap:wrap;
  padding-top:14px;padding-bottom:14px;
}
.admin-brand{font-weight:700;text-decoration:none;color:var(--text);font-size:1.05rem}
.admin-brand span{color:var(--muted);font-weight:400;font-size:.8rem}

.admin-nav{display:flex;gap:4px;flex-wrap:wrap;flex:1}
.admin-nav a{
  padding:7px 13px;border-radius:8px;text-decoration:none;
  color:var(--muted);font-size:.9rem;font-weight:500;
}
.admin-nav a:hover{background:var(--surface-2);color:var(--text)}
.admin-nav a.on{background:var(--accent-soft);color:#9dc0ff}

.admin-right{display:flex;gap:16px}
.link-muted{color:var(--muted);text-decoration:none;font-size:.85rem}
.link-muted:hover{color:var(--text)}

.admin-main{padding-top:28px;padding-bottom:60px}

/* ---------- Titres & cartes ---------- */

.page-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:16px;flex-wrap:wrap;margin-bottom:20px;
}
.page-head h1{margin:0;font-size:1.5rem}
.page-head p{margin:4px 0 0;color:var(--muted);font-size:.88rem}

.card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:22px;margin-bottom:20px;
}
.card h2{margin:0 0 4px;font-size:1.05rem}
.card .card-sub{margin:0 0 18px;color:var(--muted);font-size:.85rem}

/* ---------- Alertes ---------- */

.alert{
  padding:11px 15px;border-radius:8px;margin-bottom:16px;
  font-size:.9rem;border:1px solid transparent;
}
.alert.ok  {background:rgba(78,194,127,.1);border-color:rgba(78,194,127,.35);color:#9fe0bd}
.alert.err {background:rgba(224,97,106,.1);border-color:rgba(224,97,106,.35);color:#f0a8ad}
.alert.warn{background:rgba(242,181,68,.1);border-color:rgba(242,181,68,.35);color:#f5d493}

/* ---------- Formulaires ---------- */

label{display:block;margin-bottom:14px;font-size:.85rem;font-weight:600;color:var(--muted)}
label small{font-weight:400;text-transform:none;letter-spacing:0}

input[type=text],input[type=password],input[type=file],
input[type=number],textarea,select{
  display:block;width:100%;margin-top:6px;padding:9px 11px;
  background:var(--bg);border:1px solid var(--line);border-radius:8px;
  color:var(--text);font:inherit;font-size:.92rem;font-weight:400;
}
textarea{resize:vertical;min-height:90px;line-height:1.6}
input:focus,textarea:focus,select:focus{
  outline:2px solid var(--accent);outline-offset:1px;border-color:transparent;
}
input[type=file]{padding:7px;font-size:.85rem;color:var(--muted)}
input[type=file]::file-selector-button{
  margin-right:10px;padding:5px 11px;border:0;border-radius:6px;
  background:var(--surface-2);color:var(--text);cursor:pointer;font:inherit;font-size:.85rem;
}

.field-hint{margin:5px 0 0;color:var(--muted);font-size:.78rem;font-weight:400}

.row{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
@media(max-width:640px){.row{grid-template-columns:1fr}}

/* ---------- Boutons ---------- */

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:9px 16px;border:1px solid var(--line);border-radius:8px;
  background:var(--surface-2);color:var(--text);
  font:inherit;font-size:.9rem;font-weight:600;
  cursor:pointer;text-decoration:none;
}
.btn:hover{border-color:var(--accent)}
.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn-primary:hover{background:#3d7ce6}
.btn-danger{background:transparent;border-color:rgba(224,97,106,.45);color:var(--err)}
.btn-danger:hover{background:rgba(224,97,106,.12);border-color:var(--err)}
.btn-sm{padding:5px 10px;font-size:.8rem}
.btn-block{width:100%;margin-top:6px}

.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}

/* ---------- Tableaux admin ---------- */

.tbl{width:100%;border-collapse:collapse}
.tbl th,.tbl td{
  padding:11px 12px;border-bottom:1px solid var(--line);
  text-align:left;vertical-align:middle;font-size:.9rem;
}
.tbl thead th{
  color:var(--muted);font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;
}
.tbl tbody tr:hover{background:var(--surface-2)}
.tbl tbody tr:last-child td{border-bottom:0}
.tbl .right{text-align:right}
.tbl .thumb{
  width:44px;height:44px;border-radius:8px;object-fit:cover;
  border:1px solid var(--line);display:block;
}
.tbl .thumb.ph{
  display:grid;place-items:center;background:var(--surface-2);
  color:var(--muted);font-weight:700;font-size:.8rem;
}
.tbl .name{font-weight:600}
.tbl .id{color:var(--muted);font-size:.78rem;font-family:ui-monospace,monospace}

.table-scroll{
  overflow:auto;
  max-height:calc(100vh - 200px);
}

.badge{
  display:inline-block;padding:2px 9px;border-radius:99px;
  background:var(--accent-soft);color:#9dc0ff;font-size:.74rem;font-weight:600;
}

/* ---------- Grille de notes ---------- */

.notes-grid{border-collapse:separate;border-spacing:0;width:100%;min-width:900px}
.notes-grid th,.notes-grid td{
  border-bottom:1px solid var(--line);padding:6px 8px;text-align:center;
}
.notes-grid thead th{
  position:sticky;top:0;z-index:3;background:var(--surface-2);
  padding:10px 6px;font-size:.7rem;color:var(--muted);
  text-transform:uppercase;letter-spacing:.05em;font-weight:600;
}
.notes-grid .col-class{
  position:sticky;left:0;z-index:2;background:var(--surface);
  text-align:left;min-width:170px;font-weight:600;font-size:.9rem;
  box-shadow:1px 0 0 var(--line);
}
.notes-grid thead .col-class{z-index:4;background:var(--surface-2)}
.notes-grid tbody tr:hover .col-class{background:var(--surface-2)}

.notes-grid .role-h{display:flex;flex-direction:column;align-items:center;gap:5px}
.notes-grid .role-h img,.notes-grid .role-h .ph{
  width:28px;height:28px;border-radius:6px;object-fit:cover;
}
.notes-grid .role-h .ph{
  display:grid;place-items:center;background:var(--accent-soft);
  color:#9dc0ff;font-size:.62rem;font-weight:700;
}

.note-input{
  width:62px;margin:0 auto;padding:6px 4px;text-align:center;
  background:var(--bg);border:1px solid var(--line);border-radius:6px;
  color:var(--text);font:inherit;font-size:.88rem;font-variant-numeric:tabular-nums;
}
.note-input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.note-input.dirty{border-color:var(--warn);background:rgba(242,181,68,.07)}

.sticky-save{
  position:sticky;bottom:0;z-index:5;margin-top:16px;padding:14px 0;
  background:linear-gradient(180deg,transparent,var(--bg) 22%);
}

/* ---------- Aperçu d'image ---------- */

.img-preview{
  display:flex;align-items:center;gap:14px;margin-top:8px;
}
.img-preview img,.img-preview .ph{
  width:72px;height:72px;border-radius:10px;object-fit:cover;
  border:1px solid var(--line);flex:none;
}
.img-preview .ph{
  display:grid;place-items:center;background:var(--surface-2);
  color:var(--muted);font-size:.72rem;text-align:center;padding:4px;
}

/* ---------- Listes dynamiques (points forts/faibles) ---------- */

.dyn-list{margin:0 0 8px;padding:0;list-style:none}
.dyn-item{display:flex;gap:8px;margin-bottom:8px}
.dyn-item input{margin-top:0}
.dyn-del{
  flex:none;width:36px;border:1px solid var(--line);border-radius:8px;
  background:var(--surface-2);color:var(--muted);cursor:pointer;font-size:1.1rem;line-height:1;
}
.dyn-del:hover{color:var(--err);border-color:rgba(224,97,106,.45)}

.empty-state{text-align:center;color:var(--muted);padding:40px 0;font-size:.92rem}

/* ---------- Efficacité (3 colonnes) ---------- */

.eff-row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
@media(max-width:640px){.eff-row{grid-template-columns:1fr}}

/* ---------- Tutoriels ---------- */

.tuto-list{display:flex;flex-direction:column;gap:14px;margin-bottom:16px}

.tuto-item{
  border:1px solid var(--line);border-radius:var(--radius);
  padding:14px;background:var(--surface-2);
}
.tuto-item[data-type="texte"]{border-left:3px solid var(--accent)}
.tuto-item[data-type="video"]{border-left:3px solid var(--warn)}

.tuto-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.tuto-kind{flex:none}
.tuto-titre{flex:1;margin:0}
.tuto-del{flex:none;align-self:stretch}

.tuto-source{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:10px}
.tuto-radio{
  display:flex;align-items:center;gap:7px;margin:0;
  font-weight:400;text-transform:none;color:var(--text);font-size:.88rem;cursor:pointer;
}
.tuto-radio input{width:auto;margin:0}

.tuto-lien-field input,.tuto-fichier-field input,.tuto-texte textarea{margin-top:0}
.tuto-fichier-field .field-hint{margin-top:0;margin-bottom:6px}

.tuto-add{display:flex;gap:10px;flex-wrap:wrap}

.dash-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}
.stat{
  position:relative;overflow:hidden;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:20px;
}
.stat .n{font-size:2rem;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.stat .l{color:var(--muted);font-size:.82rem;margin-top:4px}
.stat .stat-ic{
  position:absolute;top:14px;right:14px;font-size:1.4rem;opacity:.5;line-height:1;
}
/* Variantes de couleur d'accent, discrètes */
.stat.is-accent{border-color:rgba(79,142,247,.35);background:linear-gradient(180deg,var(--accent-soft),var(--surface))}
.stat.is-ok    {border-color:rgba(78,194,127,.3)}
.stat.is-ok .n {color:#7fd6a4}
.stat.is-warn  {border-color:rgba(242,181,68,.35)}
.stat.is-warn .n{color:#f0c766}

/* Petite jauge sous une stat */
.stat-bar{height:6px;border-radius:99px;background:var(--surface-2);margin-top:12px;overflow:hidden}
.stat-bar span{display:block;height:100%;border-radius:99px;background:var(--accent)}

/* Carte « moyennes par rôle » : mini barres horizontales */
.dash-bars{display:flex;flex-direction:column;gap:10px}
.dash-bar-row{display:grid;grid-template-columns:130px 1fr 44px;align-items:center;gap:12px}
.dash-bar-row .lbl{font-size:.86rem;color:var(--text)}
.dash-bar-row .track{height:10px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.dash-bar-row .track span{display:block;height:100%;border-radius:99px}
.dash-bar-row .val{font-size:.82rem;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:560px){.dash-bar-row{grid-template-columns:96px 1fr 40px;gap:8px}}

/* Liste de complétude */
.dash-complete{display:flex;align-items:center;gap:10px;font-size:.95rem}
.dash-complete.ok{color:#9fe0bd}
.completeness-list{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.completeness-list li{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;
  padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);font-size:.88rem;
}
.completeness-list .cl-name{font-weight:600}
.completeness-list .cl-miss{color:var(--warn);font-size:.82rem}
.completeness-list a{margin-left:auto;font-size:.82rem}

@media(max-width:720px){
  .admin-header-inner{gap:12px}
  .admin-nav{order:3;width:100%}
  .admin-right{margin-left:auto}
}

/* ---------- Aide à la mise en forme Markdown ---------- */
.md-help{
  margin:0 0 18px;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--surface-2);overflow:hidden;
}
.md-help>summary{
  cursor:pointer;padding:10px 14px;font-size:.85rem;font-weight:600;
  color:var(--muted);list-style:none;user-select:none;
}
.md-help>summary::-webkit-details-marker{display:none}
.md-help>summary::before{content:"▸ ";color:var(--accent)}
.md-help[open]>summary::before{content:"▾ "}
.md-help>summary:hover{color:var(--text)}
.md-help-body{padding:4px 14px 14px;border-top:1px solid var(--line)}
.md-help-intro{margin:12px 0 10px;color:var(--muted);font-size:.83rem}
.md-help-table{width:100%;border-collapse:collapse;font-size:.83rem}
.md-help-table th{
  text-align:left;padding:6px 10px;color:var(--muted);font-weight:600;
  border-bottom:1px solid var(--line);
}
.md-help-table td{padding:6px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.md-help-table tr:last-child td{border-bottom:0}
.md-help-table td:first-child{white-space:nowrap;width:1%}
.md-help-table code{background:var(--bg);color:var(--text)}
.md-help-note{margin:12px 0 0;color:var(--muted);font-size:.8rem;line-height:1.5}

/* ---------- Tutoriels (admin) ---------- */
.btn-ok{background:transparent;border-color:rgba(78,194,127,.45);color:var(--ok)}
.btn-ok:hover{background:rgba(78,194,127,.12);border-color:var(--ok)}

.tuto-statut{
  display:inline-block;padding:2px 9px;border-radius:999px;font-size:.72rem;
  font-weight:700;border:1px solid transparent;white-space:nowrap;
}
.tuto-statut--a_jour{background:rgba(78,194,127,.16);color:#7ddba3;border-color:rgba(78,194,127,.35)}
.tuto-statut--a_confirmer{background:rgba(242,181,68,.16);color:#f2c877;border-color:rgba(242,181,68,.35)}
.tuto-statut--depasse{background:rgba(224,97,106,.16);color:#e88b92;border-color:rgba(224,97,106,.35)}

.tuto-toolbar{
  display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;
  margin-bottom:14px;
}
.seg{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.seg-label{color:var(--muted);font-size:.82rem;margin-right:2px}
.seg-btn{
  padding:5px 11px;border-radius:8px;border:1px solid var(--line);background:var(--surface);
  color:var(--muted);text-decoration:none;font-size:.82rem;font-weight:600;
}
.seg-btn:hover{color:var(--text);border-color:var(--accent)}
.seg-btn.on{background:var(--accent-soft);color:#9dc0ff;border-color:var(--accent)}

.tbl-tutos .tuto-ico{font-size:1.3rem;text-align:center}
.tbl-tutos .name{font-weight:600}

/* Sélecteur d'icône */
.icone-picker{
  display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 6px;
}
.icone-opt{margin:0;cursor:pointer;position:relative}
.icone-opt input{position:absolute;opacity:0;width:0;height:0}
.icone-glyphe{
  display:flex;align-items:center;justify-content:center;width:42px;height:42px;
  font-size:1.4rem;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);
  transition:border-color .12s,background .12s;
}
.icone-opt:hover .icone-glyphe{border-color:var(--accent)}
.icone-opt input:checked + .icone-glyphe{
  border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 2px var(--accent-soft);
}

/* Bascule type / source dans l'éditeur de tuto */
.tuto-type-switch,.tuto-source{display:flex;flex-wrap:wrap;gap:16px;margin:0 0 14px}
.tuto-radio{
  display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:500;
  text-transform:none;color:var(--text);font-size:.9rem;cursor:pointer;
}
.tuto-radio input{width:auto;margin:0}

/* ---------- Communauté (admin) ---------- */
.linklike{
  background:none;border:0;padding:0;color:var(--accent);cursor:pointer;
  font:inherit;font-weight:600;text-align:left;text-decoration:underline;
}
.linklike:hover{color:#7fb0ff}

.tbl .num{text-align:center}
.tbl-comm th.num,.tbl-comm td.num{text-align:center}
.comm-val{font-weight:700;white-space:nowrap}
.comm-off{color:var(--muted);font-weight:400;font-size:.78em}
.ec-up{color:#7ddba3}
.ec-down{color:#e88b92}
.ec-eq{color:var(--text)}
.ec-legend{margin-left:8px;font-size:.8rem}
.ec-legend .ec-up,.ec-legend .ec-down,.ec-legend .ec-eq{margin-right:6px}

.prop-meta{color:var(--muted);font-size:.88rem;margin:2px 0 16px}
.prop-corps{border-top:1px solid var(--line);padding-top:16px}

/* Rendu Markdown dans l'aperçu admin (miroir léger du front) */
.prop-corps .tuto-md{color:var(--text);line-height:1.7;font-size:.94rem}
.prop-corps .tuto-md h1{font-size:1.3rem;margin:16px 0 8px}
.prop-corps .tuto-md h2{font-size:1.15rem;margin:16px 0 8px}
.prop-corps .tuto-md h3{font-size:1.02rem;margin:14px 0 6px}
.prop-corps .tuto-md :first-child{margin-top:0}
.prop-corps .tuto-md p{margin:0 0 12px}
.prop-corps .tuto-md ul,.prop-corps .tuto-md ol{margin:0 0 12px;padding-left:22px}
.prop-corps .tuto-md blockquote{margin:0 0 12px;padding:8px 14px;color:var(--muted);border-left:3px solid var(--line);background:var(--bg);border-radius:0 8px 8px 0}
.prop-corps .tuto-md code{background:var(--bg);padding:2px 6px;border-radius:5px;font-size:.86em}
.prop-corps .tuto-md a{color:var(--accent)}
.prop-corps .tuto-md-img,.prop-corps .tuto-md-figure img{max-width:100%;height:auto;border-radius:8px;border:1px solid var(--line)}
.prop-corps .tuto-md-figure{margin:0 0 14px}
.prop-corps .tuto-embed{position:relative;width:100%;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#000;margin-bottom:12px}
.prop-corps .tuto-embed iframe,.prop-corps .tuto-embed video{position:absolute;inset:0;width:100%;height:100%;border:0}
.prop-corps .tuto-link{display:inline-block;padding:8px 14px;border-radius:8px;background:var(--accent);color:#fff;text-decoration:none;font-weight:600}

/* ---------- Modale (aperçu propositions) ---------- */
.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px}
.modal[hidden]{display:none}
.modal-backdrop{position:absolute;inset:0;background:rgba(6,8,13,.78)}
.modal-box{
  position:relative;width:min(720px,100%);max-height:88vh;overflow-y:auto;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;
}
.modal-close{
  position:absolute;top:12px;right:14px;z-index:2;width:34px;height:34px;border-radius:8px;
  border:1px solid var(--line);background:var(--surface-2);color:var(--muted);
  font-size:1.4rem;line-height:1;cursor:pointer;
}
.modal-close:hover{color:var(--text);border-color:var(--accent)}
.modal-body{padding:26px}

/* Pastille de moyenne proposée (colorée comme les notes du site) */
.comm-pill{
  display:inline-block;min-width:34px;padding:3px 9px;border-radius:999px;
  font-weight:700;font-size:.82rem;color:#0f1117;
  background:var(--pill,var(--surface-2));
}

/* ---------- Médias ---------- */
.media-upload{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.fld-inline{display:flex;flex-direction:column;gap:4px;font-size:.82rem;color:var(--muted);font-weight:600}
.fld-inline input{padding:8px 11px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;font:inherit;min-width:200px}
.media-upload input[type=file]{color:var(--muted);font-size:.85rem}

.seg-n{opacity:.7;font-size:.75em}

.media-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;
}
.media-card{
  margin:0;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);
  overflow:hidden;display:flex;flex-direction:column;
}
.media-card.is-orphan{border-color:rgba(242,181,68,.5)}
.media-thumb{
  position:relative;aspect-ratio:1;background:
    repeating-conic-gradient(#20242f 0% 25%, #1a1d26 0% 50%) 50%/18px 18px;
  display:grid;place-items:center;overflow:hidden;
}
.media-thumb img,.media-thumb video{max-width:100%;max-height:100%;object-fit:contain}
.media-badge-type{
  position:absolute;top:6px;right:6px;padding:1px 7px;border-radius:999px;
  background:rgba(0,0,0,.6);color:#fff;font-size:.68rem;font-weight:600;
}
.media-card figcaption{padding:10px 11px;display:flex;flex-direction:column;gap:5px}
.media-name{font-weight:600;font-size:.83rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-meta{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:.74rem}
.media-dir{padding:0 6px;border:1px solid var(--line);border-radius:999px}
.media-usage{font-size:.78rem}
.media-usage a{color:var(--accent)}
.media-usage.orphan{color:#f2c877;font-weight:600}

/* Icônes de tuto affichées dans les tableaux/listes */
.tuto-ico-media{width:26px;height:26px;border-radius:6px;object-fit:cover;vertical-align:middle}
.tbl-tutos .tuto-ico{text-align:center}

/* ---------- Faits marquants dans les tuiles de stats ---------- */
/* Valeur textuelle (nom de classe) : plus petite que les grands nombres,
   et tronquée proprement si elle dépasse. */
.stat .n-sm{
  font-size:1.15rem;line-height:1.2;padding-right:26px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
}

/* Icône inutilisée (disponible mais rattachée à aucun tuto) */
.media-card.is-unused{border-color:rgba(154,161,180,.45)}
.media-usage.unused{color:var(--muted);font-weight:600}
