/* Fusionner et diviser des PDF : styles propres à l'outil. */
.o-pdf-depot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; border: 2px dashed var(--bord); border-radius: var(--rayon); background: var(--surface-2); text-align: center; transition: border-color .15s, background-color .15s; }
.o-pdf-depot.o-pdf-survol { border-color: var(--marque); background: var(--surface); }
.o-pdf-depot p { margin: 0; }
.o-pdf-depot-titre { font-size: 1.15rem; font-weight: 700; }
.o-pdf-depot-limites { color: var(--texte-2); font-size: .88rem; line-height: 1.45; max-width: 60ch; }
.o-pdf-local { color: var(--ok-texte); background: var(--ok-fond); padding: 6px 12px; border-radius: var(--rayon-petit); font-size: .9rem; }
.o-pdf-choisir { position: relative; min-height: 46px; padding-inline: 22px; cursor: pointer; }
.o-pdf-choisir input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.o-pdf-choisir:focus-within { outline: 3px solid var(--marque-fort); outline-offset: 2px; }
.o-pdf-message { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); }

.o-pdf-bloc { margin: 18px 0; }
.o-pdf-bloc h2 { margin: 6px 0 10px; font-size: 1.2rem; }
.o-pdf-compte { color: var(--texte-2); font-weight: 400; font-size: 1rem; }
.o-pdf-docs, .o-pdf-pages { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.o-pdf-docs li, .o-pdf-pages li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: var(--surface); min-width: 0; }
.o-pdf-doc-info, .o-pdf-page-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; flex: 1 1 auto; min-width: 0; }
.o-pdf-num { font-weight: 700; }
.o-pdf-nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.o-pdf-detail { color: var(--texte-2); font-size: .85rem; flex-basis: 100%; }
.o-pdf-page-titre { font-weight: 600; }
.o-pdf-outils { display: flex; gap: 6px; flex: 0 0 auto; }
.o-pdf-outils .btn { min-height: 40px; min-width: 40px; padding: 0 8px; font-size: 1.1rem; line-height: 1; }
.o-pdf-outils .o-pdf-sup { font-size: .9rem; }
.o-pdf-outils .btn:disabled { opacity: .4; }

.o-pdf-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 18px 0 12px; padding: 0; border: 0; }
.o-pdf-modes legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 1.05rem; }
.o-pdf-modes label { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: var(--surface); cursor: pointer; }
.o-pdf-modes label:has(input:checked) { border-color: var(--marque); box-shadow: inset 0 0 0 1px var(--marque); }
.o-pdf-modes input { width: 18px; height: 18px; accent-color: var(--marque); flex: 0 0 auto; }
.o-pdf-panneau { margin-bottom: 8px; }
.o-pdf-panneau > p { margin: 0 0 10px; }
.o-pdf-aide { color: var(--texte-2); font-size: .9rem; }
.o-pdf .reglages select, .o-pdf .reglages input[type="text"], .o-pdf .reglages input[type="number"] { min-height: 44px; }
.o-pdf .reglages input:disabled { opacity: .5; }
.o-pdf-tout { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.o-pdf-pages { max-height: 560px; overflow-y: auto; }
.o-pdf-pages li.o-pdf-suppr { background: var(--surface-2); }
.o-pdf-pages li.o-pdf-suppr .o-pdf-page-titre { text-decoration: line-through; color: var(--texte-2); }
.o-pdf-cadre { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: 0 0 auto; }
/* feuille schématique : volontairement blanche, comme le papier */
.o-pdf-feuille { display: flex; align-items: center; justify-content: center; background: #fff; color: #333; font-size: .8rem; font-weight: 700; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 1px 3px rgba(0, 0, 0, .15); }
.o-pdf-suppr .o-pdf-feuille { opacity: .35; }
.o-pdf-apercu { margin: 6px 0 0; font-weight: 600; }
.o-pdf-apercu:empty { display: none; }
.o-pdf-apercu-ko { color: var(--erreur-texte); }
.o-pdf-reglages { margin-top: 14px; }
.o-pdf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.o-pdf-resume { display: block; margin-top: 10px; font-weight: 600; }
.o-pdf-resume:empty { display: none; }
.o-pdf-liens { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.o-pdf-liens .btn { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .o-pdf-docs li, .o-pdf-pages li { flex-wrap: wrap; }
  .o-pdf-doc-info, .o-pdf-page-info { flex: 1 1 160px; }
  .o-pdf-outils { margin-left: auto; }
  .o-pdf-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .o-pdf-depot { transition: none; } }
