/* Boîte de dépôt commune des outils en ligne · 18.10.2026 · Victor : « je veux ce format de boîtes partout ».
 * Même aspect que BoiteDepot de l’application (Daunou « Choisir le dossier ») : fond clair, bordure fine en tirets, petite tuile blanche
 * portant une icône du contexte, UNE ligne de texte, les pastilles des types acceptés, un bouton principal (`btn-primary btn--petit`).
 * Les pastilles sont écrites par boite-depot.js depuis l’attribut `accept` du champ fichier : seule source, aucune pastille à la main.
 * Tailles : compact (défaut, une rangée ~64 px) · moyen (~120 px) · grand (action principale d’un écran, Volney).
 * Jetons de la charte seulement. Fond sombre : `.on-dark` / `.pal-nuit` (alias rebranchés plus bas, aucune couleur en dur). */
.boite-depot { box-sizing: border-box; position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; padding: 10px 14px; min-height: 64px; border: 1px dashed var(--rule-field, var(--pal-muted)); border-radius: 10px; background: var(--bg1, var(--pal-canvas)); color: var(--fg1); text-align: left; cursor: default; transition: border-color .15s, background-color .15s; }
.boite-depot--survole { border-style: solid; border-color: var(--fg-accent, var(--pal-navy)); background: var(--bg2, var(--pal-canvas-pure)); }
.boite-depot:focus-within { outline: 2px solid var(--fg-accent, var(--pal-navy)); outline-offset: 2px; }
.boite-depot input[type="file"] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boite-depot__tuile { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg2, var(--pal-canvas-pure)); border: 1px solid var(--rule, var(--pal-hairline)); color: var(--fg-accent, var(--pal-navy)); }
.boite-depot__titre { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boite-depot__tuile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.boite-depot__ligne { margin: 0; flex: 0 1 auto; min-width: 0; font: inherit; font-size: 15px; color: var(--fg1); }
.boite-depot__types { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.boite-depot__type { margin: 0; padding: 2px 8px 2px 6px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; border: 1px solid var(--rule, var(--pal-hairline)); background: var(--bg2, var(--pal-canvas-pure)); color: var(--fg2); font: 600 11px/1.4 var(--font-mono, ui-monospace, monospace); letter-spacing: .03em; }
.boite-depot__type::before { content: ""; flex: none; width: 7px; height: 9px; background: currentColor; clip-path: polygon(0 0, 62% 0, 100% 30%, 100% 100%, 0 100%); }
.boite-depot__type--pdf { color: var(--fg-signal, var(--pal-red-ink)); }
.boite-depot__type--word { color: var(--fg-accent, var(--pal-navy)); }
.boite-depot__type--excel { color: var(--fg-success, var(--pal-green-ink)); }
.boite-depot__type--max { border-style: dashed; color: var(--fg3); }
.boite-depot__type--max::before { content: none; }
.boite-depot__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.boite-depot__actions > :is(button, label) { min-height: 44px; cursor: pointer; } /* 18.10 · cible tactile 44 px (banc_accessibilite Méneval, bouton mesuré 153×39) */
.boite-depot__nom { font-size: 13px; color: var(--fg2); overflow-wrap: anywhere; }
.boite-depot--moyen, .boite-depot--grand { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 22px 16px; }
.boite-depot--moyen { min-height: 120px; justify-content: flex-start; } /* 18.10 · « Autres documents » décalé en --moyen : deux boîtes côte à côte s’alignent par le haut */
.boite-depot--moyen .boite-depot__tuile, .boite-depot--grand .boite-depot__tuile { width: 44px; height: 44px; }
.boite-depot--moyen .boite-depot__tuile svg, .boite-depot--grand .boite-depot__tuile svg { width: 22px; height: 22px; }
.boite-depot--moyen .boite-depot__types, .boite-depot--grand .boite-depot__types, .boite-depot--moyen .boite-depot__actions, .boite-depot--grand .boite-depot__actions { justify-content: center; }
.boite-depot--grand { min-height: 220px; padding-block: 40px; }
.boite-depot--grand .boite-depot__ligne { font-size: 17px; }
@media (max-width: 560px) { .boite-depot:not(.boite-depot--moyen):not(.boite-depot--grand) { padding: 10px 12px; } .boite-depot--grand { min-height: 180px; padding-block: 28px; } }
.on-dark .boite-depot, .pal-nuit .boite-depot { --fg1: var(--pal-canvas); --fg2: var(--pal-text-on-dark); --fg3: var(--pal-muted-dark); --bg1: var(--bg-dark); --bg2: var(--bg-dark2); --rule: var(--rule-dark); --rule-field: var(--pal-muted-dark); --fg-accent: var(--pal-text-on-dark); --fg-signal: var(--pal-red-on-dark); --fg-success: var(--pal-green-ink-dark); }
/* BOITE-DEPOT:FIN */
