/* ===== Réglages > Modules ===== */
.mod-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mod-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.mod-row:first-child { border-top: 0; }
.mod-row.off { background: #f7f9f8; }
.mod-ico { width: 36px; height: 36px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-dark); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mod-row.off .mod-ico { background: #e9ecea; color: var(--ink-soft); }
.mod-ico svg { width: 18px; height: 18px; }
.mod-txt { flex: 1; min-width: 0; }
.mod-nom { font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mod-desc { color: var(--ink-soft); font-size: 0.85rem; margin-top: 2px; }
.mod-etat { font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 8px; text-transform: uppercase; letter-spacing: .04em; }
.mod-etat.on { background: #e1f2e7; color: #2e7d4f; }
.mod-etat.off { background: #eceeed; color: var(--ink-soft); }
.mod-etat.fixe { background: var(--blue-soft); color: var(--blue); }
/* Interrupteur */
.mod-switch { position: relative; width: 52px; height: 30px; flex-shrink: 0; }
.mod-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; z-index: 1; }
.mod-switch span { position: absolute; inset: 0; background: #c9d1cd; border-radius: 15px; transition: background .15s; }
.mod-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.mod-switch input:checked + span { background: var(--teal); }
.mod-switch input:checked + span::after { transform: translateX(22px); }
.mod-switch input:focus-visible + span { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.mod-switch input:disabled { cursor: not-allowed; }
.mod-switch input:disabled + span { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .mod-switch span, .mod-switch span::after { transition: none; } }

/* En-tête du panneau (titre + formule souscrite) */
.mod-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.mod-head h2 { margin: 0; }
.formule-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-soft); color: var(--teal-dark); border-radius: 20px; padding: 6px 14px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.formule-chip svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Lecture seule (administrateur de l'école) */
.mod-etat.hors { background: var(--amber-soft); color: #8a5420; }
.mod-lock { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mod-lock svg { width: 18px; height: 18px; }
.mod-lock.mod-ok { color: var(--teal); }
.btn-demande {
  font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--teal-dark);
  background: #fff; border: 1px solid var(--teal); border-radius: 6px; padding: 7px 12px;
  cursor: pointer; white-space: nowrap; min-height: 36px;
}
.btn-demande:hover { background: var(--teal-soft); }

/* Encart d'explication, école uniquement */
.mod-pied { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; background: #f7f9f8; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); font-size: .85rem; }
.mod-pied svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal-dark); margin-top: 1px; }
.mod-pied a { color: var(--teal-dark); font-weight: 600; }

@media (max-width: 600px) {
  .mod-row { flex-wrap: wrap; }
  .btn-demande { margin-left: 52px; }
}
