/* ── Page layout ─────────────────────────────────────────── */

.settings-page__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.settings-page__icon {
    font-size: 1.5rem;
    color: var(--mts-primary-600, #1a6676);
}

.settings-page__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mts-primary-700, #0e3f4a);
    margin: 0;
}

.settings-page__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    padding-top: 1rem;
}

/* ── Carte paramètre ─────────────────────────────────────── */

.sc {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--mts-primary-200, #a8d9e4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 360px;
}

.sc__profile-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sc__actions--profile {
    justify-content: space-between;
}

/* ── Danger zone ─────────────────────────────────────────── */

.sc__danger-zone {
    margin-top: 0.5rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    overflow: hidden;
}

.sc__danger-zone-label {
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid #fecaca;
}

.sc__danger-zone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem;
    background: white;
}

.sc__danger-zone-description {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.875rem;
    color: #334155;
}

.sc__danger-zone-description strong {
    color: #1e293b;
}

.sc__danger-zone-description span {
    color: #64748b;
    font-size: 0.82rem;
}

/* ── Modale quitter l'école ──────────────────────────────── */

.sc__leave-confirm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sc__leave-confirm-icon {
    font-size: 2rem;
    color: #dc2626;
    text-align: center;
}

.sc__leave-confirm ul {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #475569;
}

.sc__leave-confirm p {
    margin: 0;
    font-size: 0.9rem;
}

.sc__leave-confirm-final {
    color: #b91c1c;
    font-size: 0.875rem;
}

.sc__header {
    background: var(--mts-primary-600, #1a6676);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sc__header-icon {
    font-size: 1.1rem;
    color: var(--mts-secondary-400, #d4a017);
}

.sc__header-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    color: var(--mts-secondary-400, #d4a017);
}

.sc__body {
    background: white;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sc__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--mts-primary-100, #d0eaf0);
}

/* ── Emplois du temps : lignes horaires ─────────────────── */

.sc__time-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sc__time-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sc__time-row:last-child {
    border-bottom: none;
}

.sc__time-label {
    flex: 1;
    font-size: 0.88rem;
    color: #334155;
    font-weight: 500;
    padding-bottom: 0.4rem;
}

.sc__time-inputs {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

/* ── Toggle row ─────────────────────────────────────────── */

.sc__toggle-row {
    padding: 0.6rem 0.75rem;
    background: color-mix(in srgb, var(--mts-primary-500, #155767) 4%, white);
    border: 1px solid var(--mts-primary-100, #d0eaf0);
    border-radius: 8px;
}

/* ── Tickets : lignes couleur ────────────────────────────── */

.sc__color-section {
    display: flex;
    flex-direction: column;
}

.sc__color-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sc__color-row:last-child {
    border-bottom: none;
}

.sc__color-label {
    flex: 1;
    font-size: 0.88rem;
    color: #334155;
    font-weight: 500;
}

/* ── Barème de notation : lignes seuil ───────────────────── */

.sc__threshold-section {
    display: flex;
    flex-direction: column;
}

.sc__threshold-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sc__threshold-row:last-child {
    border-bottom: none;
}

.sc__threshold-range {
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
    padding-bottom: 0.4rem;
}

/* Masque le champ hex dans les cartes settings — swatch uniquement */
.sc .mts-color-picker__hex-input {
    display: none;
}

/* Champ libellé seuil : largeur réduite */
.sc__threshold-row .mts-field--auto {
    width: 90px;
}

.sc__threshold-fixed {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mts-primary-600, #1a6676);
    padding-bottom: 0.4rem;
    min-width: 68px;
    text-align: center;
}
