/* Feuille de app_calcul_mental/templates/app_calcul_mental/configuration.html — sortie du gabarit le 2026-10-06 (carnet #36, lot 2).
   Chargée par {% feuille 'app_calcul_mental/css/configuration.css' %} : l'URL porte l'empreinte du fichier, le cache suit. */
.page-title { margin-bottom: 6px; font-weight: 700; color: var(--lfis-blue-dark); }
.page-sub { color: #718096; margin-bottom: 24px; }

.section-title { display: flex; align-items: center; margin-bottom: 16px; font-size: 1.05rem; font-weight: 700; color: var(--lfis-blue); }
.section-title span { margin-right: 8px; font-size: 1.3rem; }

.form-label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 6px; color: var(--lfis-blue); }
.form-select, .form-input { width: 100%; padding: 10px; border: 1px solid #d8dee9; border-radius: 8px; font-family: inherit; background: #fff; box-sizing: border-box; }

.grille-generaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }

.switch-group { display: flex; align-items: center; gap: 10px; }
.switch { position: relative; display: inline-block; width: 44px; height: 22px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; transition: .3s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; transition: .3s; border-radius: 50%; }
input:checked + .slider { background: var(--lfis-red); }
input:checked + .slider:before { transform: translateX(22px); }

/* Lignes de type d'exercice */
.type-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 12px 14px; border: 1px solid #edf2f7; border-radius: 10px; margin-bottom: 10px; transition: all .2s; }
.type-row.actif { border-color: var(--lfis-blue); background: #f5f9ff; }
.type-check { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 230px; cursor: pointer; }
.type-check input { width: 18px; height: 18px; }
.qte { width: 80px; padding: 7px; border: 1px solid #d8dee9; border-radius: 6px; text-align: center; }
.type-params { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: #555; }
.type-params input[type=number] { width: 64px; padding: 6px; border: 1px solid #d8dee9; border-radius: 6px; text-align: center; }
.mini-tables { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-tables input { display: none; }
.mini-tables label { padding: 4px 8px; border: 1px solid #ddd; border-radius: 5px; cursor: pointer; font-size: 0.8rem; }
.mini-tables input:checked + label { background: var(--lfis-blue); color: #fff; border-color: var(--lfis-blue); }
.chk-inline { display: inline-flex; align-items: center; gap: 4px; }

.alert-err { background: #fde8ec; color: #c10024; border: 1px solid #f5c2cd; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }

@media (max-width: 767px) {
    .type-check {
        min-width: 0;
        width: 100%;
    }
    .type-params {
        width: 100%;
        padding-left: 26px;
    }
}
