/* Pivoter un PDF : styles propres à l'outil. */
.o-pivoter-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-pivoter-pdf-depot.o-pivoter-pdf-survol { border-color: var(--marque); background: var(--surface); }
.o-pivoter-pdf-depot p { margin: 0; }
.o-pivoter-pdf-depot-titre { font-size: 1.15rem; font-weight: 700; }
.o-pivoter-pdf-depot-limites { color: var(--texte-2); font-size: .88rem; line-height: 1.45; max-width: 60ch; }
.o-pivoter-pdf-local { color: var(--ok-texte); background: var(--ok-fond); padding: 6px 12px; border-radius: var(--rayon-petit); font-size: .9rem; }
.o-pivoter-pdf-choisir { position: relative; min-height: 46px; padding-inline: 22px; cursor: pointer; }
.o-pivoter-pdf-choisir input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.o-pivoter-pdf-choisir:focus-within { outline: 3px solid var(--marque-fort); outline-offset: 2px; }
.o-pivoter-pdf-message { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); }
.o-pivoter-pdf-fichier { margin: 14px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.o-pivoter-pdf-reglages { margin-top: 6px; }
.o-pivoter-pdf .reglages select, .o-pivoter-pdf .reglages input[type="text"] { min-height: 44px; }
.o-pivoter-pdf-boutons, .o-pivoter-pdf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.o-pivoter-pdf-aide { margin: 8px 0 0; color: var(--texte-2); font-size: .9rem; }
.o-pivoter-pdf-plan { margin: 10px 0 0; font-weight: 600; }
.o-pivoter-pdf-plan:empty { display: none; }
.o-pivoter-pdf-plan.o-pivoter-pdf-ko { color: var(--erreur-texte); }
.o-pivoter-pdf-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; max-height: 600px; overflow-y: auto; }
.o-pivoter-pdf-pages:empty { display: none; }
.o-pivoter-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-pivoter-pdf-pages li.o-pivoter-pdf-change { border-color: var(--marque); box-shadow: inset 0 0 0 1px var(--marque); }
.o-pivoter-pdf-cadre { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; flex: 0 0 auto; }
/* feuille schématique : volontairement blanche, comme le papier ; le numéro tourne avec elle */
.o-pivoter-pdf-feuille { display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; box-sizing: border-box; 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); transition: transform .2s; }
.o-pivoter-pdf-info { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.o-pivoter-pdf-titre { font-weight: 600; }
.o-pivoter-pdf-detail { color: var(--texte-2); font-size: .85rem; }
.o-pivoter-pdf-outils { display: flex; gap: 6px; flex: 0 0 auto; }
.o-pivoter-pdf-outils .btn { min-height: 40px; min-width: 40px; padding: 0 8px; font-size: 1.15rem; line-height: 1; }
.o-pivoter-pdf-resume { display: block; margin-top: 10px; font-weight: 600; }
.o-pivoter-pdf-resume:empty { display: none; }
.o-pivoter-pdf-lien { margin: 10px 0 0; }
.o-pivoter-pdf-lien .btn { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .o-pivoter-pdf-pages { grid-template-columns: 1fr; }
  .o-pivoter-pdf-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .o-pivoter-pdf-depot, .o-pivoter-pdf-feuille { transition: none; } }
