/* Taille d'écran et distance de recul : styles propres à l'outil. */
.o-taille-ecran [hidden] { display: none !important; }
.o-taille-ecran-bloc { padding: 4px 0 18px; }
.o-taille-ecran-bloc + .o-taille-ecran-bloc { padding-top: 18px; border-top: 1px solid var(--bord); }
.o-taille-ecran-bloc h2 { margin: 0 0 12px; font-size: 1.2rem; }
.o-taille-ecran-sous { margin: 18px 0 10px; font-size: 1.05rem; }
.o-taille-ecran-bloc .prereglages { padding-bottom: 0; margin-top: 12px; }
.o-taille-ecran-bloc .prereglages .btn span { color: var(--texte-2); font-family: var(--mono); font-size: .82rem; }
.o-taille-ecran .reglages label > input[type="text"] { min-height: 44px; text-align: right; font: 600 1.1rem var(--mono); }
.o-taille-ecran .reglages label > select { min-height: 44px; }
.o-taille-ecran input:focus-visible, .o-taille-ecran select:focus-visible { outline: 3px solid var(--marque); outline-offset: 0; }
.o-taille-ecran-aide { margin: 0 0 12px; color: var(--texte-2); font-size: .92rem; }
.o-taille-ecran-erreur { margin: 12px 0 0; color: var(--erreur-texte); }
.o-taille-ecran-erreur:empty { display: none; }
.o-taille-ecran-resultat { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding: 12px 14px; border-radius: var(--rayon-petit); background: var(--ok-fond); color: var(--ok-texte); min-width: 0; }
.o-taille-ecran-resultat > span { font-size: .85rem; font-weight: 600; }
.o-taille-ecran-resultat output { font: 700 1.25rem/1.4 var(--mono); overflow-wrap: anywhere; }
.o-taille-ecran-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 0; font-size: .95rem; }
.o-taille-ecran-details dt { font-weight: 600; }
.o-taille-ecran-details dd { margin: 0; overflow-wrap: anywhere; }
.o-taille-ecran-note { margin: 8px 0 0; font-size: .9rem; }
.o-taille-ecran-note:empty { display: none; }
.o-taille-ecran-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .9rem; }
.o-taille-ecran-table caption { text-align: left; font-weight: 600; padding-bottom: 4px; }
.o-taille-ecran-table th, .o-taille-ecran-table td { padding: 4px 6px; border-top: 1px solid currentColor; text-align: left; vertical-align: top; }
.o-taille-ecran-table thead th { border-top: 0; font-size: .82rem; }
.o-taille-ecran-table tbody th { font-weight: 500; }
.o-taille-ecran-table tr.o-taille-ecran-choisi th, .o-taille-ecran-table tr.o-taille-ecran-choisi td { font-weight: 700; }
.o-taille-ecran-formules { margin-top: 12px; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--surface-2); font-size: .9rem; }
.o-taille-ecran-formules summary { cursor: pointer; font-weight: 600; }
.o-taille-ecran-formules ul { margin: 8px 0; padding-left: 1.2em; }
.o-taille-ecran-formules code { font-family: var(--mono); overflow-wrap: anywhere; }
.o-taille-ecran-formules p { margin: 0; color: var(--texte-2); }
.o-taille-ecran-duo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.o-taille-ecran-notes { margin: 6px 0 0; padding-left: 1.2em; font-size: .92rem; }
.o-taille-ecran-figure { margin: 14px 0 0; padding: 10px; border-radius: var(--rayon-petit); background: var(--surface-2); }
.o-taille-ecran-figure svg { display: block; width: 100%; height: 200px; }
.o-taille-ecran-figure figcaption { margin-top: 8px; font-size: .85rem; color: var(--texte-2); }
.o-taille-ecran-r-a { fill: var(--marque); fill-opacity: .35; stroke: var(--marque); stroke-width: 2; }
.o-taille-ecran-r-b { fill: none; stroke: var(--texte); stroke-width: 2; stroke-dasharray: 6 4; }
.o-taille-ecran-svg-texte { fill: var(--texte); font: 700 11px var(--police); }
.o-taille-ecran-pastille { display: inline-block; width: 12px; height: 12px; margin: 0 5px -1px 0; border-radius: 3px; }
figcaption .o-taille-ecran-pastille:not(:first-child) { margin-left: 10px; }
.o-taille-ecran-p-a { background: var(--marque); opacity: .6; }
.o-taille-ecran-p-b { border: 2px dashed var(--texte); }
.o-taille-ecran-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 10px; }
.o-taille-ecran-prive { margin: 8px 0 0; color: var(--texte-2); font-size: .88rem; }
@media (max-width: 640px) {
  .o-taille-ecran .reglages { grid-template-columns: 1fr 1fr; }
  .o-taille-ecran-duo { grid-template-columns: 1fr; }
  .o-taille-ecran-resultat output { font-size: 1.05rem; }
  .o-taille-ecran-details { grid-template-columns: 1fr; gap: 0 12px; }
  .o-taille-ecran-details dd { margin-bottom: 4px; }
  .o-taille-ecran-figure svg { height: 170px; }
}
