/* ==========================================================================
   Réglages (D60) — le contenu des rubriques SMS, Écrans de la tente, Sauvegardes,
   Historique, État du serveur. (Le menu des rubriques est dans app.css : il fait
   partie du cadre de toutes les pages des Réglages.)
   ========================================================================== */

/* ---------- Écrans de la tente : deux blocs bien séparés ---------- */
.bloc-ecrans { padding: 22px 20px; margin-bottom: 20px; }
.bloc-ecrans h2 { display: flex; align-items: center; gap: 12px; }
.numero-bloc {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--jaune); color: var(--noir);
  font-family: var(--police-titre); font-weight: 800; font-size: 1.5rem; line-height: 1;
}
.bloc-ecrans .code-tente { margin-bottom: 0; }
.ecrans-connectes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--bordure); }
.ecrans-connectes h3 { margin: 0; text-transform: uppercase; }
.ecrans-connectes .ligne { background: var(--surface-2); box-shadow: none; flex-wrap: wrap; }
.ecrans-connectes .squelette-ligne { height: 56px; margin-bottom: 0; }
.ecrans-vide { margin: 0; }
/* (D72) Le deuxième code du bloc 1 : « écran d'affichage » (public, starters) ; le type de chaque écran connecté. */
.code-affichage { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--bordure); }
.code-affichage h3 { margin-bottom: 8px; text-transform: uppercase; }
.ecrans-connectes .ecran-type { margin: 4px 0 2px; }
.ecrans-connectes .ecran-type .pastille { white-space: normal; }
.ecrans-connectes .pastille-affichage { background: var(--noir); color: #fff; } /* comme les écrans d'affichage : fond noir */

.cartes-mode { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .cartes-mode { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.carte-mode {
  background: var(--noir); color: var(--blanc); border-radius: var(--rayon-grand); padding: 18px 18px 16px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center;
}
.carte-mode svg { width: 48px; height: 48px; color: var(--jaune); grid-row: 1; }
.carte-mode h3 { margin: 0; text-transform: uppercase; font-weight: 800; font-size: 1.4rem; color: var(--jaune); }
.carte-mode p { grid-column: 1 / -1; margin: 6px 0 0; color: #e4e1d6; font-size: 1.05rem; }
@media (min-width: 700px) {
  .carte-mode { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .carte-mode p { margin-top: 2px; }
}

/* ---------- SMS : quatre cartes, sur deux colonnes quand il y a la place ---------- */
.sms-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 20px; align-items: start; }
@media (min-width: 1100px) { .sms-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sms-colonne { min-width: 0; }
.sms-grille .sms-expediteur, .sms-grille .sms-texte { margin-top: 0; }
.sms-grille .sms-expediteur h2 { margin-bottom: 12px; }
.sms-grille .carte > h3 { margin-top: 18px; }
.sms-grille .carte .ligne { background: var(--surface-2); box-shadow: none; }
.sms-grille .carte > .muet:last-child, .sms-grille form > .muet:last-child, .sms-grille .sms-texte > .muet:last-child { margin-bottom: 0; }
.sms-grille .sms-details:last-child { margin-bottom: 0; }

/* ---------- Sauvegardes, historique, état ---------- */
[data-sauv-contenu] .ligne { background: var(--surface-2); box-shadow: none; }
[data-sauv-contenu] .sms-details:last-child { margin-bottom: 0; }
.bientot-ligne { font-size: .98rem; margin: 6px 4px 0; }
