/* NECObot — page « 🛡️ Protection » du panel (protection du serveur Discord, demande de l'administrateur du 02/11/2026,
   CHANTIER 68, lot C ; js/protection.js). Feuille à part (comme musique.css et date-heure.css) : jetons de la marque
   seulement, aucun style en ligne (CSP). Les cartes repliables reprennent le chevron des pages Jeux des subs et Song request
   (classe jeux-reglages de style.css, section 67 du journal). */
.prot-corps { display: grid; gap: var(--space-3); }
.prot-sous-titre { margin: var(--space-4) 0 var(--space-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.prot-corps > .prot-sous-titre:first-child { margin-top: 0; }
.prot-boutons { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.prot-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--space-3) var(--space-4); align-items: start; }
.prot-form { padding-top: var(--space-3); border-top: var(--border-width) solid var(--color-border); }
.prot-form .card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
/* Demande de l'administrateur du 02/11/2026, vers 22 h 45 (« Les cases à coché sont plus classes en mode téléphone que site
   web… », 68.6) : réglages oui / non en interrupteurs du panel (.switch, libellé au-dessus comme les champs voisins) ;
   listes à choix multiples en cases dessinées, sur toute la largeur de la grille, en colonnes au bureau, une seule au
   téléphone. Cartes et grilles : un enfant ne peut plus élargir la carte (tableaux et listes défilent dans leur cadre) */
.prot-corps > *, .prot-grille > * { min-width: 0; }
.prot-champ-large { grid-column: 1 / -1; }
.prot-champ-bool .switch { align-self: flex-start; }
.prot-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--space-1) var(--space-3); max-height: 16rem; overflow: auto; padding: var(--space-2); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.prot-cases-ligne { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); max-height: none; }
.prot-case { position: relative; display: flex; align-items: flex-start; gap: var(--space-2); min-height: 2rem; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-sm); line-height: var(--lh-snug); }
.prot-case:hover { background: var(--color-hover); }
/* La case native couvre toute la ligne (clic n'importe où, clavier, lecteurs d'écran), invisible ; la boîte la suit */
.prot-case-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.prot-case-boite { position: relative; flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.0625rem; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-bg-inset); transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.prot-case:hover .prot-case-boite { border-color: var(--color-text-muted); }
.prot-case-input:checked + .prot-case-boite { border-color: var(--color-brand); background: var(--color-brand); }
/* Coche : deux bords d'un rectangle tourné, couleur sur la marque (lisible en clair comme en sombre) */
.prot-case-input:checked + .prot-case-boite::after { content: ""; position: absolute; left: 0.34rem; top: 0.12rem; width: 0.3rem; height: 0.58rem; border: solid var(--color-on-brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prot-case-input:focus-visible + .prot-case-boite { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
.prot-case-input:disabled { cursor: not-allowed; }
.prot-case-input:disabled ~ .prot-case-boite, .prot-case-input:disabled ~ .prot-case-texte { opacity: 0.5; }
.prot-case-texte { overflow-wrap: anywhere; }
@media (forced-colors: active) {
  .prot-case-boite { border-color: CanvasText; }
  .prot-case-input:checked + .prot-case-boite { background: Highlight; border-color: Highlight; }
  .prot-case-input:checked + .prot-case-boite::after { border-color: HighlightText; }
}
.prot-rs { display: grid; gap: var(--space-3); margin-bottom: var(--space-2); }
.prot-rs-ligne { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--space-2) var(--space-3); align-items: end; padding: var(--space-3); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-md); }
.prot-sortie:empty { display: none; }
.prot-resultat { margin-top: var(--space-2); padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface-2); overflow-wrap: anywhere; }
.prot-resultat-titre { margin: 0 0 var(--space-2); font-weight: var(--fw-semibold); }
.prot-liste { margin: 0; padding-left: 1.2em; }
.prot-liste li { margin: var(--space-1) 0; overflow-wrap: anywhere; }
.prot-dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: var(--space-1) var(--space-3); margin: 0; }
.prot-dl dt { color: var(--color-text-muted); font-size: var(--fs-sm); }
.prot-dl dd { margin: 0; overflow-wrap: anywhere; }
.prot-membre { display: inline-flex; flex-direction: column; }
.prot-nom { font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.prot-membre .mono { color: var(--color-text-muted); font-size: var(--fs-xs); }
.prot-zone td { vertical-align: top; overflow-wrap: break-word; }
.prot-zone td .row { flex-wrap: wrap; }
.prot-erreurs ul { margin: 0; padding-left: 1.2em; }
.prot-details > summary { cursor: pointer; color: var(--color-text-muted); }
.prot-avertissements { display: grid; gap: var(--space-2); }
.prot-pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 20rem; overflow: auto; margin: 0; font-family: var(--font-mono); font-size: var(--fs-xs); }
