/* Liste des documents et dossiers (liste.js). Téléphone : capture 2026-11-16/034 (iPhone 14 émulé, 390 × 844) ;
   iPad (768 px et plus) : 042 (iPad émulé, 820 × 1180). Mesures du relevé (telephone-2026-11-16.md § 1) et lues sur
   les captures (1 px = 1 px CSS) :
   téléphone — ☰ dans une zone de 56 × 48 à (16, 16), titre 24 px graisse 700 à x 80 ; recherche pleine largeur
   (358 × 32) à y 76 ; pastilles de 32 px à y 124, rayon 24, icône + nombre seulement ; date du groupe 14 px graisse 500
   gray-40 ; lignes de 48 px, tuile 32 × 32 (filet gray-10, rayon 6) à x 20, titre 14 px à x 60, dossier dessous 12 px
   gray-60 ;
   iPad — bouton de barre 44 × 44 en haut à gauche, titre 28 px / 36 px sur sa ligne à x 16 ; recherche 191 × 32,
   trait, pastilles « icône Nom · n » (padding 4 × 8, 12 px ; active : filet 1 px gray-60, texte gray-100 graisse 600 ;
   inactive : gray-60, 400) ; titre des lignes 16 px à x 64.
   Cibles tactiles de 44 px (règle du lot) : la recherche et les pastilles gardent leur dessin de 32 px, la zone qu'on
   touche fait 44 px (6 px de plus dessus et dessous, sans changer les écarts visibles). */

.liste-page { padding: 0 16px 24px; }
.liste-haut { display: flex; align-items: center; gap: 8px; padding-top: 16px; }
.bouton-barre {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 56px; height: 48px; color: var(--rn-texte);
}
.bouton-barre svg { width: 26px; height: 26px; }
.bouton-barre .ic-panneau { display: none; }
.liste-titres { min-width: 0; flex: 1; }
.liste-titre { margin: 0; font: 700 24px/32px var(--rn-police); color: var(--rn-texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font: 400 14px/20px var(--rn-police); color: var(--rn-texte-2); }
.fil button { min-height: var(--cible); color: var(--rn-texte-2); }
.fil span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.fil + .liste-titre { margin-top: -6px; }

.outils { display: flex; flex-direction: column; margin-top: 6px; }

/* recherche : boîte dessinée de 32 px dans une zone de 44 px */
.recherche { position: relative; display: block; height: var(--cible); color: var(--rn-texte-2); }
.recherche::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 32px;
  border: 1px solid var(--rn-bord); border-radius: 6px; background: var(--rn-fond);
}
.recherche:focus-within::before { border-color: var(--rn-bleu-60); }
.recherche svg { position: absolute; left: 10px; top: 14.5px; width: 15px; height: 15px; }
.recherche input {
  position: relative; display: block; width: 100%; height: var(--cible);
  padding: 0 10px 0 33px; border: 0; outline: 0; background: transparent;
  font: 400 14px/20px var(--rn-police); color: var(--rn-texte);
  -webkit-appearance: none; appearance: none;
}
.recherche input::placeholder { color: var(--rn-texte-3); }
.recherche input::-webkit-search-decoration { -webkit-appearance: none; }

/* pastilles : rangée qui défile, « ‹ » / « › » aux bords quand elle dépasse (Mac, 042) */
.pastilles-cadre { position: relative; display: flex; align-items: center; min-width: 0; margin-top: 4px; }
.pastilles { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.pastilles::-webkit-scrollbar { display: none; }
.pastille { flex: none; display: flex; align-items: center; height: var(--cible); }
.pastille .forme {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px;
  border: 1px solid transparent; border-radius: 24px; background: var(--rn-gris-5);
  font: 400 12px/16px var(--rn-police); color: var(--rn-texte-2); white-space: nowrap;
}
.pastille strong { font-weight: inherit; }
.pastille .nombre { font: 500 14px/20px var(--rn-police); }
.pastille strong, .pastille .point { display: none; }
.pastille.actif .forme { border-color: var(--rn-texte-2); color: var(--rn-texte); font-weight: 600; }
.pastille.actif .nombre { font-weight: 600; }
.pastille svg { width: 14px; height: 14px; }
.ic-doc { display: inline-flex; color: #e59a3c; }
.ic-dossier { display: inline-flex; color: rgb(51, 120, 230); }
.ic-haut { display: inline-flex; color: rgb(232, 80, 79); }
.ic-pdf { display: inline-grid; place-items: center; font: 800 8px/1 var(--rn-police); color: #4954e8; letter-spacing: -.02em; }
.pastille .ic-pdf { width: 16px; height: 16px; border-radius: 3px; background: var(--rn-bleu-5); }
.defiler { position: absolute; top: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: var(--cible); height: var(--cible); }
.defiler[data-defiler="-1"] { left: -7px; }
.defiler[data-defiler="1"] { right: -7px; }
.defiler span {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border: 1px solid var(--rn-bord); border-radius: 50%; background: var(--rn-gris-5); color: var(--rn-texte-2);
  box-shadow: 0 0 0 6px var(--rn-fond);
}
.defiler svg { width: 14px; height: 14px; }

/* groupes et lignes */
.jour { margin: 18px 4px 6px; font: 500 14px/20px var(--rn-police); color: var(--rn-texte-3); }
.lignes { margin-top: 2px; }
.ligne {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 4px;
  border-radius: 8px; text-align: left; color: var(--rn-texte);
}
button.ligne:active { background: var(--rn-gris-5); }
.tuile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border: 1px solid var(--rn-bord); border-radius: 6px; background: var(--rn-fond);
}
.tuile svg { width: 17px; height: 17px; }
/* couleurs des tuiles : celles de la page du Mac (organisation.css : dossier --org-violet, document #e59a3c) */
.tuile.ic-dossier { color: rgb(167, 139, 250); }
.tuile.ic-pdf { background: var(--rn-bleu-5); }
.tuile .emoji { font-size: 17px; line-height: 1; }
.textes { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.titre { font: 400 14px/20px var(--rn-police); color: var(--rn-texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lieu { font: 400 12px/16px var(--rn-police); color: var(--rn-texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vide { margin: 24px 4px; font: 400 14px/20px var(--rn-police); color: var(--rn-texte-2); }

/* iPad (042) */
@media (min-width: 768px) {
  .liste-page { padding: 0 16px 24px; }
  .liste-haut { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 0; }
  .bouton-barre { width: var(--cible); height: var(--cible); margin-left: -4px; color: var(--rn-texte-2); }
  .bouton-barre svg { width: 18px; height: 18px; }
  .bouton-barre .ic-menu { display: none; }
  .bouton-barre .ic-panneau { display: block; }
  .liste-titres { width: 100%; }
  .liste-titre { font-size: 28px; line-height: 36px; }
  .outils { flex-direction: row; align-items: center; gap: 0; margin-top: 4px; }
  .recherche { width: 191px; flex: none; }
  .pastilles-cadre { flex: 1; margin: 0 0 0 9px; padding-left: 9px; }
  .pastilles-cadre::before { content: ""; position: absolute; left: 0; top: 10px; width: 1px; height: 24px; background: var(--rn-bord); }
  .pastille .forme { padding: 4px 8px; }
  .pastille strong, .pastille .point { display: inline; }
  .pastille .nombre { font: inherit; color: var(--rn-texte-3); }
  .pastille.actif .nombre { color: var(--rn-texte-2); }
  .jour { margin-top: 20px; }
  .ligne { gap: 12px; }
  .titre { font-size: 16px; line-height: 24px; }
}
