/* Formats de papier et dimensions : styles propres à l'outil. */
.o-formats-papier .o-fp-bloc { margin-bottom: 22px; }
.o-formats-papier .o-fp-bloc + .o-fp-bloc { padding-top: 8px; border-top: 1px solid var(--bord); }
.o-formats-papier .o-fp-bloc h2 { margin: 6px 0 10px; font-size: 1.25rem; }
.o-formats-papier .o-fp-bloc h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.o-formats-papier select, .o-formats-papier input[type="search"], .o-formats-papier input[type="text"], .o-formats-papier input[type="number"] { min-height: 44px; }
.o-formats-papier input:focus-visible, .o-formats-papier select:focus-visible, .o-formats-papier button:focus-visible { outline: 3px solid var(--marque); outline-offset: 1px; }
.o-formats-papier input[aria-invalid] { border-color: var(--erreur-texte); }
.o-formats-papier .reglages.sans-trait { padding-top: 4px; }
.o-fp-detail { display: block; margin-top: 14px; }
.o-fp-nom { margin: 0 0 8px; font-size: 1.1rem; }
.o-fp-nom strong { color: var(--marque); font-size: 1.5rem; }
.o-fp-nom span { color: var(--texte-2); }
.o-fp-valeurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.o-fp-valeurs li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--rayon-petit); background: var(--surface-2); }
.o-fp-valeurs li span { color: var(--texte-2); font-size: .85rem; }
.o-fp-valeurs li strong { font-size: 1.2rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.o-fp-valeurs li small { color: var(--texte-2); font-size: .8rem; }
.o-fp-note { margin: 10px 0 0; padding: 8px 12px; border-left: 4px solid var(--marque); border-radius: var(--rayon-petit); background: var(--surface-2); font-size: .95rem; }
.o-fp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }
.o-fp-message { color: var(--texte-2); font-size: .9rem; }
.o-fp-tableau-cadre { max-height: 520px; overflow: auto; border: 1px solid var(--bord); border-radius: var(--rayon-petit); }
.o-fp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.o-fp-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); color: var(--texte-2); font-size: .82rem; font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--bord); }
.o-fp-table th, .o-fp-table td { padding: 2px 10px; border-bottom: 1px solid var(--bord); text-align: left; }
.o-fp-table td { white-space: nowrap; }
.o-fp-table .o-fp-groupe th { padding: 8px 10px 6px; background: var(--surface-2); font-size: .88rem; }
.o-fp-choisir { display: block; width: 100%; min-height: 36px; padding: 4px 0; border: 0; background: none; color: var(--texte); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.o-fp-choisir:hover { color: var(--marque); text-decoration: underline; }
.o-fp-table tr[aria-current] th, .o-fp-table tr[aria-current] td { background: var(--marque); color: var(--sur-marque); }
.o-fp-table tr[aria-current] .o-fp-choisir { color: var(--sur-marque); }
.o-fp-svg { margin-top: 12px; }
.o-fp-dessin { display: block; width: 100%; max-width: 520px; max-height: 460px; margin: 0 auto; }
.o-fp-dessin text { font-family: var(--police); }
.o-fp-dessin-imp { max-width: 340px; }
.o-fp-legende { margin: 10px 0 0; padding: 0; list-style: none; line-height: 1.6; }
.o-fp-legende small { color: var(--texte-2); }
.o-fp-pastille { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 3px solid; border-radius: 3px; vertical-align: -2px; }
.o-fp-aide { margin: 0 0 10px; color: var(--texte-2); font-size: .95rem; line-height: 1.5; }
.o-fp-carte-cadre { overflow-x: auto; padding: 6px 0; }
.o-fp-carte { display: flex; align-items: flex-end; padding: 8px 10px; box-sizing: border-box; border: 2px solid var(--marque); background: linear-gradient(135deg, var(--surface-2), var(--surface)); color: var(--texte-2); font-size: .8rem; }
.o-fp-calib { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.o-fp-calib .btn { min-width: 44px; min-height: 44px; }
.o-fp-curseur { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; color: var(--texte-2); font-size: .85rem; }
.o-fp-curseur input { width: 100%; accent-color: var(--marque); }
.o-fp-reel-cadre { overflow: auto; max-height: 80vh; margin-top: 10px; padding: 6px; border: 1px dashed var(--bord); border-radius: var(--rayon-petit); }
.o-fp-reel { box-sizing: border-box; padding: 8px; border: 2px solid var(--marque); background: var(--surface); color: var(--texte-2); font-size: .85rem; }
.o-fp-iso { display: block; margin-top: 10px; }
.o-fp-iso-liste { margin: 0; padding-left: 1.2em; line-height: 1.6; font-variant-numeric: tabular-nums; }
.o-fp-imp { display: block; margin-top: 10px; }
.o-fp-imp p { margin: 0 0 6px; }
.o-fp-imp-n strong { color: var(--marque); font-size: 1.3rem; }
.o-formats-papier .o-fp-conv input[type="text"] { font: 600 1.1rem var(--mono); }
@media (max-width: 640px) {
  .o-fp-valeurs { grid-template-columns: 1fr; }
  .o-fp-nom strong { font-size: 1.3rem; }
}
.o-formats-papier .prereglages { border-top: 0; padding-top: 4px; }
@media (max-width: 640px) { .o-formats-papier .o-fp-conv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
