/* Lot 4 : Documents (colonnes du Finder, liste, aperçu). Maquette : maquettes/app-ordinateur/melange (« n-documents »). Jetons du
   socle seulement. Préfixe dc-. Les mises en page suivent la place de l'écran (`data-l`, js/projets/mise-en-page.js). */
.dc-espace { display: block; }
.dc-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--esp-4); margin: var(--esp-2) 0 var(--esp-3); }
.dc-titre { font-size: 34px; }
.dc-titres p { margin-top: var(--esp-1); }
.dc-outils { display: flex; gap: var(--esp-2); flex-wrap: wrap; }
.dc-cherche-zone { display: flex; align-items: center; gap: var(--esp-2); min-height: var(--cible); padding: 0 var(--esp-3); margin-bottom: var(--esp-3); border-radius: var(--r-rond); background: var(--voile); color: var(--texte-doux); }
.dc-cherche { flex: 1; min-width: 0; border: 0; background: transparent; min-height: var(--cible); font-size: 16px; color: var(--texte); }
.dc-cherche:focus { outline: none; }
.dc-cherche-zone:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.dc-import { display: flex; gap: var(--esp-3); align-items: center; padding: var(--esp-3) var(--esp-4); margin-bottom: var(--esp-3); border-radius: var(--r-5); background: var(--accent-voile); }
.dc-import-corps { flex: 1; min-width: 0; display: grid; gap: var(--esp-1); }
.dc-import-barre { display: block; width: 100%; height: 6px; border-radius: 3px; }
.dc-import-barre i { border-radius: 3px; transition: width var(--duree) var(--ease-out); }

/* Liste (téléphone, espace étroit, onglet d'un projet) */
.dc-liste { display: block; }
.dc-fil { display: flex; align-items: center; flex-wrap: wrap; gap: var(--esp-1); min-height: var(--cible); font-size: 14px; color: var(--texte-doux); }
.dc-fil button { min-height: 36px; padding: 0 var(--esp-2); border-radius: var(--r-3); color: var(--accent-texte); font-weight: 600; }
.dc-fil-ici { font-weight: 600; color: var(--texte); padding: 0 var(--esp-2); }
.dc-ajouter { margin-top: var(--esp-4); }
.dc-ligne-corbeille { display: flex; align-items: center; gap: var(--esp-2); border-bottom: 1px solid var(--ligne); }
.dc-ligne-corbeille .ligne { border-bottom: 0; flex: 1; min-width: 0; }
.dc-liste.compact .vide-etat { padding-top: var(--esp-6); }

/* Colonnes du Finder */
.dc-colonnes { display: flex; overflow-x: auto; height: clamp(360px, calc(100dvh - 330px), 780px); border-radius: var(--r-5); background: var(--carte); box-shadow: inset 0 0 0 1px var(--ligne); }
.dc-colonne { flex: 0 0 264px; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--ligne); min-height: 0; }
.dc-colonne.apercu { flex: 1 0 380px; border-right: 0; overflow-y: auto; }
.dc-c-tete { margin: 0; padding: var(--esp-3) var(--esp-4) var(--esp-2); font-size: 12.5px; font-weight: 600; color: var(--texte-doux); }
.dc-c-corps { flex: 1; overflow-y: auto; padding: 0 var(--esp-2) var(--esp-3); display: grid; align-content: start; gap: 2px; }
.dc-c-ligne { display: flex; align-items: center; gap: var(--esp-2); min-height: var(--cible); padding: 0 var(--esp-3); border-radius: var(--r-4); text-align: left; transition: background var(--duree) ease; }
.dc-c-ligne:hover { background: color-mix(in srgb, var(--texte) 5%, transparent); }
.dc-c-ligne[aria-current="true"] { background: var(--accent-voile); }
.dc-c-ligne .ic-s { color: var(--texte-doux); }
.dc-c-ligne.dossier .ic-s:first-child { color: var(--accent-texte); }
.dc-c-nom { flex: 1; min-width: 0; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.dc-c-nb { font-size: 13px; color: var(--texte-doux); font-variant-numeric: tabular-nums; flex: none; }
.dc-c-vide { padding: var(--esp-4); font-size: 14px; }

/* Aperçu */
.dc-apercu { display: grid; gap: var(--esp-4); padding: var(--esp-4); align-content: start; min-width: 0; }
.dc-page-doc .dc-apercu { padding: var(--esp-2) 0 var(--esp-6); }
.dc-apercu-tete { display: flex; align-items: center; gap: var(--esp-3); }
.dc-apercu-tete h2 { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.dc-apercu-zone { min-height: 120px; display: grid; justify-items: center; align-content: start; }
.dc-image { max-width: 100%; max-height: 52dvh; object-fit: contain; border-radius: var(--r-4); box-shadow: 0 0 0 1px var(--ligne); background: var(--voile); }
.dc-cadre-pdf, .dc-cadre-texte { width: 100%; height: min(60dvh, 600px); border: 0; border-radius: var(--r-4); background: #fff; box-shadow: 0 0 0 1px var(--ligne); }
.dc-pas-apercu { display: grid; justify-items: center; gap: var(--esp-3); padding: var(--esp-6) var(--esp-4); text-align: center; max-width: 24rem; }
.dc-apercu-actions { display: flex; flex-wrap: wrap; gap: var(--esp-2); }
