/* Styles de l'écran bibliotheque. Tout est préfixé par .e-bibliotheque et passe par les variables de core.css. */

/* Vignette réelle d'une créa (image du serveur, repli propre si elle manque) */
.e-bibliotheque .cv { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-2); overflow: hidden; background: var(--teinte-doux); color: var(--teinte); }
.e-bibliotheque .cv.carre { aspect-ratio: 1; }
.e-bibliotheque .cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.e-bibliotheque .cv .cv-vide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; text-align: center; color: var(--teinte); }
.e-bibliotheque .cv .cv-vide .ico { width: 26px; height: 26px; }
.e-bibliotheque .cv.carre .cv-vide .ico { width: 18px; height: 18px; }
.e-bibliotheque .cv .cv-vide small { font-size: var(--t-11); font-weight: 700; color: var(--encre-2); }
.e-bibliotheque .cv .cv-etq { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 12px); padding: 2px 7px 2px 5px; border-radius: 6px; background: var(--encre); color: var(--fond); font-size: var(--t-11); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.e-bibliotheque .cv .cv-etq .ico { position: static; width: 11px; height: 11px; flex: none; }
.e-bibliotheque .cv .cv-coin { position: absolute; right: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: var(--surface); color: var(--encre); font-size: var(--t-11); font-weight: 800; }
.e-bibliotheque .mini { width: 36px; flex: none; display: block; }
.e-bibliotheque .mini .cv { border-radius: 8px; }
.e-bibliotheque .sans { color: var(--encre-3); }

/* Recherche, filtres, vue */
.e-bibliotheque .rech { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--trait-fort); color: var(--encre-2); }
.e-bibliotheque .rech:focus-within { box-shadow: inset 0 0 0 2px var(--famille); }
.e-bibliotheque .rech .ico { width: 18px; height: 18px; flex: none; }
.e-bibliotheque .rech-in { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--encre); font: inherit; font-size: var(--t-15); outline: 0; }
.e-bibliotheque .barre-bib { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.e-bibliotheque .btn-filtres { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 99px; font-weight: 700; font-size: var(--t-13); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--trait-fort); }
.e-bibliotheque .btn-filtres[aria-expanded="true"] { background: var(--creux); }
.e-bibliotheque .btn-filtres em { font-style: normal; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--famille); color: var(--sur-accent); font-size: var(--t-11); text-align: center; }
.e-bibliotheque .vue { display: flex; background: var(--creux); border-radius: var(--r-2); padding: 3px; }
.e-bibliotheque .vue button { height: 34px; min-width: 0; padding: 0 10px; border-radius: 9px; font-weight: 700; font-size: var(--t-13); color: var(--encre-2); }
.e-bibliotheque .vue button[aria-pressed="true"] { background: var(--surface); color: var(--encre); box-shadow: var(--ombre); }
.e-bibliotheque .filtres-det { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--surface); border-radius: var(--r-3); box-shadow: var(--ombre); }
.e-bibliotheque .filtres-det[hidden] { display: none; }
.e-bibliotheque .filtre { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.e-bibliotheque .compte { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.e-bibliotheque .compte .btn { min-height: 40px; }

/* La grille de cartes */
.e-bibliotheque .grille { display: grid; gap: 12px; min-width: 0; }
.e-bibliotheque .grille.v-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.e-bibliotheque .grille.v-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.e-bibliotheque .grille.v-liste, .e-bibliotheque .grille.v-tableau { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.e-bibliotheque .grille .pleine { grid-column: 1 / -1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.e-bibliotheque .bc { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border-radius: var(--r-3) var(--r-3) var(--r-3) var(--r-1); box-shadow: var(--ombre); overflow: hidden; }
.e-bibliotheque .bc.ecartee .cv, .e-bibliotheque .bl-ligne.ecartee .mini { opacity: .55; }
.e-bibliotheque .bc-ouvre { display: flex; flex-direction: column; text-align: left; padding: 6px 6px 0; min-width: 0; width: 100%; color: var(--encre); transition: transform .14s; }
.e-bibliotheque .bc-ouvre:active { transform: scale(.975); }
.e-bibliotheque .bc-ouvre .cv { border-radius: 12px 12px 4px 4px; }
.e-bibliotheque .bc-t { display: flex; flex-direction: column; gap: 5px; padding: 9px 5px 12px; min-width: 0; }
.e-bibliotheque .bc-angle { display: flex; align-items: center; gap: 6px; font-size: var(--t-11); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--teinte); min-width: 0; }
.e-bibliotheque .bc-angle i { width: 8px; height: 8px; border-radius: 2px; background: var(--teinte); flex: none; }
.e-bibliotheque .bc-t > b { font-weight: 700; font-size: var(--t-13); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.e-bibliotheque .bc-t > em { font-style: normal; color: var(--encre-2); font-size: var(--t-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-bibliotheque .bc-r { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.e-bibliotheque .bc-r > b { font-size: var(--t-30); line-height: 1; color: var(--encre); }
.e-bibliotheque .bc-r > b.sans { font-size: var(--t-15); line-height: 1.2; font-family: inherit; font-stretch: normal; }
.e-bibliotheque .bc-r small { color: var(--encre-2); font-size: var(--t-11); font-weight: 700; }
.e-bibliotheque .bc-p { display: flex; flex-wrap: wrap; gap: 5px; }
.e-bibliotheque .lot-b { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--encre); box-shadow: var(--ombre); }
.e-bibliotheque .lot-b .ico { width: 18px; height: 18px; }
.e-bibliotheque .lot-b.dedans { background: var(--famille); color: var(--sur-accent); }
.e-bibliotheque .bc .cv-coin { right: auto; left: 6px; top: 6px; }
.e-bibliotheque .grille.v-trio .bc-t { padding: 7px 3px 10px; gap: 3px; }
.e-bibliotheque .grille.v-trio .bc-r > b { font-size: var(--t-22); }
.e-bibliotheque .grille.v-trio .bc-r small { display: none; }
.e-bibliotheque .grille.v-trio .lot-b { width: 32px; height: 32px; right: 5px; top: 5px; }
.e-bibliotheque .grille.v-trio .lot-b .ico { width: 14px; height: 14px; }
.e-bibliotheque .bl-ligne { position: relative; display: flex; align-items: stretch; min-width: 0; background: var(--surface); border-radius: var(--r-3) var(--r-3) var(--r-3) var(--r-1); box-shadow: var(--ombre); }
.e-bibliotheque .bl { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 8px 8px 8px; text-align: left; color: var(--encre); min-height: 64px; }
.e-bibliotheque .bl-v { width: 48px; flex: none; }
.e-bibliotheque .bl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.e-bibliotheque .bl-t b { font-size: var(--t-15); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-bibliotheque .bl-t small { color: var(--encre-2); font-size: var(--t-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-bibliotheque .bl-t em { font-style: normal; font-size: var(--t-11); font-weight: 800; color: var(--teinte); text-transform: uppercase; letter-spacing: .04em; }
.e-bibliotheque .bl-r { flex: none; font-size: var(--t-22); color: var(--encre); }
.e-bibliotheque .bl-r.sans { font-size: var(--t-13); font-family: inherit; font-stretch: normal; max-width: 70px; text-align: right; }
.e-bibliotheque .bl-ligne .lot-b { position: static; align-self: center; margin: 0 8px; flex: none; box-shadow: inset 0 0 0 1.5px var(--trait-fort); }
.e-bibliotheque .bl-ligne .lot-b.dedans { box-shadow: none; }

/* La fiche (feuille du bas) */
.e-bibliotheque.fiche { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.e-bibliotheque.fiche > * { min-width: 0; }
.e-bibliotheque .f-tete { display: flex; gap: 14px; align-items: flex-start; }
.e-bibliotheque .f-vis { flex: 0 0 38%; }
.e-bibliotheque .f-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
.e-bibliotheque .f-id small { color: var(--encre-2); font-size: var(--t-13); }
.e-bibliotheque .f-nom { font-family: var(--f-titre); font-weight: 800; font-size: var(--t-22); line-height: 1.1; overflow-wrap: anywhere; }
.e-bibliotheque .f-puces { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.e-bibliotheque .f-liens { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.e-bibliotheque .lien-ext { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: var(--t-13); font-weight: 700; color: var(--accent); }
.e-bibliotheque .lien-ext .ico { width: 14px; height: 14px; }
.e-bibliotheque .etq-angle { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 99px; background: var(--teinte-doux); color: var(--teinte); font-size: var(--t-11); font-weight: 800; }
.e-bibliotheque .etq-angle i { width: 8px; height: 8px; border-radius: 2px; background: var(--teinte); }
.e-bibliotheque .f-bloc { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.e-bibliotheque .f-copier { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.e-bibliotheque .f-copier .champ { flex: 1 1 200px; }
.e-bibliotheque .duo-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.e-bibliotheque .f-dem { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.e-bibliotheque .f-dem .champ { align-self: stretch; }
.e-bibliotheque .notre-v { display: flex; flex-direction: column; gap: 6px; }
.e-bibliotheque .notre-v video, .e-bibliotheque .scene video, .e-bibliotheque .cmp video { width: 100%; max-height: 320px; border-radius: var(--r-2); background: var(--encre); display: block; }
.e-bibliotheque .scene { display: flex; justify-content: center; border-radius: var(--r-2); overflow: hidden; background: var(--creux); }
.e-bibliotheque .scene img { max-width: 100%; max-height: 360px; display: block; object-fit: contain; }
.e-bibliotheque .champ textarea { min-height: 76px; }

/* Le lecteur : vitesse, texte, frise, transcription */
.e-bibliotheque .lecteur { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.e-bibliotheque .reglage { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.e-bibliotheque .reglage > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.e-bibliotheque .frise { position: relative; display: flex; height: 30px; border-radius: 8px; overflow: hidden; background: var(--creux); gap: 2px; }
.e-bibliotheque .seg { min-width: 0; height: 100%; padding: 0 4px; background: var(--teinte); color: var(--fond); font-size: var(--t-11); font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; text-align: center; line-height: 30px; }
.e-bibliotheque .seg.neutre { background: var(--encre-3); }
.e-bibliotheque .seg span { display: block; overflow: hidden; text-overflow: ellipsis; }
.e-bibliotheque .curseur { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1px; background: var(--encre); border-radius: 2px; pointer-events: none; box-shadow: 0 0 0 1.5px var(--surface); }
.e-bibliotheque .legende-et { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--t-11); font-weight: 700; color: var(--encre-2); }
.e-bibliotheque .legende-et span { display: inline-flex; align-items: center; gap: 5px; }
.e-bibliotheque .legende-et i { width: 9px; height: 9px; border-radius: 2px; background: var(--teinte); }
.e-bibliotheque .legende-et .neutre i { background: var(--encre-3); }
.e-bibliotheque .transcript { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; padding: 6px; border-radius: var(--r-2); background: var(--surface-2); position: relative; }
.e-bibliotheque .ligne-tr { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 7px 8px; border-radius: 8px; color: var(--encre); min-height: 40px; }
.e-bibliotheque .ligne-tr.now { background: var(--accent-doux); box-shadow: inset 3px 0 0 var(--accent); }
.e-bibliotheque .ligne-tr .tc { flex: none; width: 34px; color: var(--accent); font-weight: 800; font-size: var(--t-13); }
.e-bibliotheque .tr-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--t-13); line-height: 1.35; }
.e-bibliotheque .tr-t .fr { font-weight: 700; }
.e-bibliotheque .tr-t .en { color: var(--encre-2); }
.e-bibliotheque .transcript.seul-fr .en, .e-bibliotheque .transcript.seul-en .fr { display: none; }
.e-bibliotheque .transcript.seul-fr .fr, .e-bibliotheque .transcript.seul-en .en { color: var(--encre); font-weight: 700; }
.e-bibliotheque .ts { display: inline; padding: 0 5px; border-radius: 6px; background: var(--accent-doux); color: var(--accent); font-weight: 800; font-size: inherit; font-variant-numeric: tabular-nums; }

/* Notre copie : étapes, journal */
.e-bibliotheque .etapes { display: flex; flex-direction: column; gap: 4px; }
.e-bibliotheque .etapes li { display: flex; align-items: center; gap: 9px; font-size: var(--t-13); color: var(--encre-2); min-height: 26px; }
.e-bibliotheque .etapes li .ico { width: 16px; height: 16px; flex: none; }
.e-bibliotheque .etapes li.ok { color: var(--encre); }
.e-bibliotheque .etapes li.ok .ico { color: var(--bon); }
.e-bibliotheque .etapes li.now { color: var(--encre); font-weight: 700; }
.e-bibliotheque .etapes li.now .ico { color: var(--attention); }
.e-bibliotheque .journal { margin: 0; padding: 10px 12px; border-radius: var(--r-2); background: var(--surface-2); color: var(--encre); font-size: var(--t-11); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow-y: auto; font-family: ui-monospace, Consolas, monospace; }
.e-bibliotheque .veille-txt { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: var(--t-13); color: var(--encre-2); }
.e-bibliotheque .devis-box { display: flex; flex-direction: column; gap: 8px; }
.e-bibliotheque .devis-box:empty { display: none; }

/* Listes, citation, audience, objections */
.e-bibliotheque .liste { display: flex; flex-direction: column; gap: 9px; }
.e-bibliotheque .liste li { display: flex; gap: 9px; align-items: flex-start; font-size: var(--t-15); line-height: 1.4; }
.e-bibliotheque .liste li .ico { width: 18px; height: 18px; margin-top: 2px; flex: none; color: var(--bon); }
.e-bibliotheque .liste li span { min-width: 0; overflow-wrap: anywhere; }
.e-bibliotheque .etiquette.risque { color: var(--critique); display: block; margin: 6px 0 4px; }
.e-bibliotheque .citation { margin: 0; padding: 16px; border-radius: var(--r-3) var(--r-3) var(--r-3) var(--r-1); background: var(--teinte-doux); display: flex; flex-direction: column; gap: 6px; box-shadow: inset 4px 0 0 var(--teinte); }
.e-bibliotheque .citation .etiquette { color: var(--teinte); }
.e-bibliotheque .citation p { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: var(--t-22); line-height: 1.2; color: var(--encre); overflow-wrap: anywhere; }
.e-bibliotheque .citation small { color: var(--encre-2); font-size: var(--t-13); font-style: italic; }
.e-bibliotheque .hook-pq { font-size: var(--t-13); color: var(--encre-2); }
.e-bibliotheque .obj { display: flex; flex-direction: column; gap: 10px; }
.e-bibliotheque .obj-l { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-15); line-height: 1.35; }
.e-bibliotheque .obj-l span { color: var(--encre-2); font-size: var(--t-13); }
.e-bibliotheque .kv { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.e-bibliotheque .kv div { display: flex; flex-direction: column; gap: 1px; }
.e-bibliotheque .kv dt { font-size: var(--t-11); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--encre-2); }
.e-bibliotheque .kv dd { margin: 0; font-size: var(--t-15); overflow-wrap: anywhere; }
.e-bibliotheque .texte-pub { margin: 0; font-size: var(--t-15); line-height: 1.45; overflow-wrap: anywhere; }
.e-bibliotheque .ages { display: flex; flex-direction: column; gap: 7px; }
.e-bibliotheque .age { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: var(--t-13); font-variant-numeric: tabular-nums; }
.e-bibliotheque .age > span { color: var(--encre-2); font-weight: 700; }
.e-bibliotheque .age > b { text-align: right; }
.e-bibliotheque .age-p { height: 14px; border-radius: 7px; background: var(--creux); overflow: hidden; }
.e-bibliotheque .age-b { display: flex; height: 100%; border-radius: 7px; overflow: hidden; min-width: 4px; }
.e-bibliotheque .age-b i { display: block; height: 100%; }
.e-bibliotheque .age-b .f, .e-bibliotheque .legende-age .f { background: var(--c2); }
.e-bibliotheque .age-b .h, .e-bibliotheque .legende-age .h { background: var(--c1); }
.e-bibliotheque .age-b .x, .e-bibliotheque .legende-age .x { background: var(--encre-3); }
.e-bibliotheque .legende-age { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--t-13); color: var(--encre-2); }
.e-bibliotheque .legende-age span { display: inline-flex; align-items: center; gap: 6px; }
.e-bibliotheque .legende-age i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.e-bibliotheque .legende-age .tranche { margin-left: auto; color: var(--encre); }

/* Atelier de script */
.e-bibliotheque .bloc { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-3) var(--r-3) var(--r-3) var(--r-1); background: var(--surface); box-shadow: var(--ombre); min-width: 0; }
.e-bibliotheque .bloc-tete { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.e-bibliotheque .bloc-tete .chiffre { font-size: var(--t-22); color: var(--accent); }
.e-bibliotheque .bloc-orig { padding: 10px 12px; border-radius: var(--r-2); background: var(--surface-2); display: flex; flex-direction: column; gap: 3px; }
.e-bibliotheque .bloc-orig p { margin: 0; font-size: var(--t-15); overflow-wrap: anywhere; }
.e-bibliotheque .len { font-size: var(--t-13); color: var(--encre-2); font-weight: 700; }
.e-bibliotheque .len.trop { color: var(--critique); }
.e-bibliotheque .alerte { font-size: var(--t-13); color: var(--attention); font-weight: 700; min-height: 0; }
.e-bibliotheque .alerte:empty { display: none; }

/* Comparateur */
.e-bibliotheque .cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.e-bibliotheque .cmp-c { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.e-bibliotheque .cmp video { max-height: 240px; }
.e-bibliotheque input[type="range"] { width: 100%; accent-color: var(--accent); }

/* Ressorts */
.e-bibliotheque .ress-l { display: flex; flex-direction: column; gap: 14px; }
.e-bibliotheque .ress { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--trait); min-width: 0; }
.e-bibliotheque .ress:last-child { border-bottom: 0; padding-bottom: 0; }
.e-bibliotheque .ress-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.e-bibliotheque .ress-t b { font-size: var(--t-15); line-height: 1.25; overflow-wrap: anywhere; min-width: 0; }
.e-bibliotheque .ress-n { flex: none; font-weight: 800; color: var(--teinte); font-size: var(--t-15); }
.e-bibliotheque .bande { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.e-bibliotheque .bande-v { display: block; padding: 0; min-width: 0; min-height: 36px; border-radius: 9px; overflow: hidden; transition: transform .12s; }
.e-bibliotheque .bande-v:active { transform: scale(.94); }
.e-bibliotheque .bande-v .cv { border-radius: 0; }
.e-bibliotheque .banque { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.e-bibliotheque .bq { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: var(--r-2); background: var(--surface-2); min-width: 0; }
.e-bibliotheque .bq-g { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.e-bibliotheque .bq-g p { margin: 0; font-weight: 700; font-size: var(--t-15); line-height: 1.3; overflow-wrap: anywhere; }
.e-bibliotheque .bq-g small { display: inline-flex; align-items: center; gap: 6px; color: var(--encre-2); font-size: var(--t-11); font-weight: 700; }
.e-bibliotheque .bq-g small i { width: 8px; height: 8px; border-radius: 2px; background: var(--teinte); flex: none; }
.e-bibliotheque .bq .btn { flex: none; min-width: 44px; min-height: 44px; }

/* Demandes */
.e-bibliotheque .dm-liste { display: flex; flex-direction: column; gap: 8px; }
.e-bibliotheque .dm { display: flex; align-items: center; gap: 12px; padding: 12px; text-align: left; min-width: 0; min-height: 56px; background: var(--surface); border-radius: var(--r-3) var(--r-3) var(--r-3) var(--r-1); box-shadow: var(--ombre); color: var(--encre); }
.e-bibliotheque .dm .ico-rond { width: 36px; height: 36px; flex: none; border-radius: 12px 12px 12px 4px; background: var(--teinte-doux); color: var(--teinte); display: grid; place-items: center; }
.e-bibliotheque .dm .ico-rond .ico { width: 18px; height: 18px; }
.e-bibliotheque .dm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.e-bibliotheque .dm-t b { font-size: var(--t-15); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.e-bibliotheque .dm-t small { color: var(--encre-2); font-size: var(--t-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-bibliotheque .dm > .chevron { width: 18px; height: 18px; color: var(--encre-3); flex: none; }
.e-bibliotheque .dm-texte { margin: 0; font-size: var(--t-15); line-height: 1.45; overflow-wrap: anywhere; }

/* Ordinateur et grands écrans */
@container app (min-width: 700px) {
  .e-bibliotheque .grille.v-duo { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
  .e-bibliotheque .grille.v-trio { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .e-bibliotheque .grille.v-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .e-bibliotheque .filtres-det { flex-direction: row; flex-wrap: wrap; gap: 14px 28px; }
  .e-bibliotheque .ress-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px 22px; }
  .e-bibliotheque .ress { border-bottom: 0; padding-bottom: 0; }
  .e-bibliotheque .banque { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .e-bibliotheque .dm-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-bibliotheque.fiche .cmp video { max-height: 320px; }
}

/* 03/12 : cliente SaaS, clé manquante : bandeau + bouton vers le tuto du portail */
.cles-manquantes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cles-manquantes .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 03/12 : la cliente ajoute une pub repérée (bouton « Ajouter une pub », feuille d'ajout, retrait de ses pubs) */
.e-bibliotheque.ajout .aj-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 14px; }
.e-bibliotheque.ajout .aj-fichier { display: none; }
.e-bibliotheque.ajout .btn, .vide-ajout .btn { min-height: 44px; }
.vide-ajout { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.e-bibliotheque .f-liens .btn.petit { margin-top: 6px; }
