/* Calculateur chmod : styles propres à l'outil. */
.o-chmod [hidden] { display: none !important; }
.o-chmod-saisie label { display: block; font-weight: 600; margin-bottom: 6px; }
.o-chmod-saisie input { width: 100%; box-sizing: border-box; min-height: 52px; font: 600 1.4rem var(--mono); letter-spacing: .04em; }
.o-chmod-saisie input[aria-invalid="true"] { border-color: var(--erreur-texte); }
.o-chmod-aide { margin: 6px 0 0; color: var(--texte-2); font-size: .88rem; line-height: 1.45; }
.o-chmod-erreur { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); font-size: .92rem; }
.o-chmod-resume { display: block; margin: 16px 0 6px; padding: 14px 16px; border-radius: var(--rayon); background: var(--surface-2); font: 700 1.6rem/1.3 var(--mono); text-align: center; overflow-wrap: anywhere; }
.o-chmod-risque .o-chmod-resume { background: var(--erreur-fond); color: var(--erreur-texte); }
.atelier .o-chmod .prereglages .o-chmod-danger { border-color: var(--erreur-texte); color: var(--erreur-texte); }
.o-chmod .prereglages .btn { font-family: var(--mono); min-width: 58px; min-height: 40px; }
.o-chmod-bloc { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--bord); border-radius: var(--rayon); min-width: 0; }
.o-chmod-bloc legend { padding: 0 6px; font-weight: 700; }
.o-chmod-bloc h2 { margin: 0 0 10px; font-size: 1.15rem; }
.o-chmod-grille { width: 100%; border-collapse: collapse; table-layout: fixed; }
.o-chmod-grille th, .o-chmod-grille td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.o-chmod-grille thead th { font-size: .85rem; font-weight: 600; color: var(--texte-2); }
.o-chmod-grille tbody th { text-align: left; font-weight: 600; width: 30%; }
.o-chmod-grille th small { display: block; font: 400 .78rem var(--mono); color: var(--texte-2); }
.o-chmod-grille input[type="checkbox"] { width: 26px; height: 26px; margin: 0; accent-color: var(--marque); cursor: pointer; }
.o-chmod-grille thead th:last-child, .o-chmod-chiffre { width: 16%; }
.o-chmod-chiffre { font: 700 1.4rem var(--mono); }
.o-chmod-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.o-chmod-speciaux { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding-top: 10px; }
.o-chmod-speciaux strong { font-size: .9rem; color: var(--texte-2); font-weight: 600; flex-basis: 100%; }
.o-chmod-speciaux label.case { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.o-chmod-speciaux input { width: 20px; height: 20px; accent-color: var(--marque); }
.o-chmod-speciaux small, .o-chmod-type small { color: var(--texte-2); font-family: var(--mono); }
.o-chmod-options { margin-top: 16px; }
.o-chmod-type { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; min-width: 0; }
.o-chmod-type legend { font-size: .88rem; color: var(--texte-2); padding: 0; margin-bottom: 4px; }
.o-chmod-type label.case { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--texte); cursor: pointer; }
.o-chmod-type input { width: 20px; height: 20px; accent-color: var(--marque); }
.o-chmod-resultats { margin: 16px 0 0; display: grid; gap: 10px; }
.o-chmod-resultats > div { display: grid; gap: 4px; }
.o-chmod-resultats dt { font-size: .88rem; color: var(--texte-2); }
.o-chmod-resultats dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.o-chmod-resultats code { flex: 1 1 13em; min-width: 0; padding: 8px 12px; border-radius: var(--rayon-petit); background: var(--surface-2); color: var(--texte); font: 600 1.05rem var(--mono); overflow-wrap: anywhere; user-select: all; }
.o-chmod-resultats .btn { flex: 0 0 auto; min-height: 40px; }
.o-chmod-explication ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.5; }
.o-chmod-special { color: var(--texte-2); }
.o-chmod-alerte { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); font-weight: 600; }
@media (max-width: 480px) {
  .o-chmod-resume { font-size: 1.3rem; }
  .o-chmod-grille thead th { font-size: .75rem; }
  .o-chmod-grille th, .o-chmod-grille td { padding: 6px 2px; }
  .o-chmod-grille tbody th { font-size: .86rem; width: 32%; overflow-wrap: anywhere; }
  .o-chmod-resultats code { font-size: .95rem; }
}
