/* Jarvis Card, maquette : compléments de l'espace parent.
   Couleurs uniquement par les jetons (base.css et charte de l'école). */

/* Cibles tactiles de 44 px sur cette page */
.puces button, .seg button { min-height: 44px; }
.bloc-titre a { display: inline-flex; align-items: center; min-height: 44px; }
.btn-compact { padding: 0 14px; font-size: 14px; }
.petit { font-size: 13px; }
.pile { display: grid; gap: 14px; }
.feuille-titre { font-size: 20px; }

/* Badges posés dans le sous-titre d'une ligne : garder leur couleur */
.ligne .corps .badge { font-size: 13px; color: var(--ink-2); }
.ligne .corps .badge-ok { color: var(--ok); }
.ligne .corps .badge-warn { color: var(--warn); }
.ligne .corps .badge-danger { color: var(--danger); }

/* Lignes cliquables enveloppées dans un lien */
.lien-ligne { display: block; text-decoration: none; color: inherit; border-radius: 12px; }
.lien-ligne + .lien-ligne > .ligne { border-top: 1px solid var(--line); }
.bloc-liste { padding-top: 4px; padding-bottom: 4px; }
.extrait { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.retour { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* Choix de l'enfant : deux pilules avec photo */
.enfants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.enfant-choix {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px;
  padding: 6px 14px 6px 6px; border: 2px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); text-align: left;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.enfant-choix img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.enfant-choix > span { display: grid; min-width: 0; line-height: 1.2; }
.enfant-choix strong { font-size: 15.5px; }
.enfant-choix > span > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enfant-choix[aria-pressed="true"] { border-color: var(--ecole-lite); background: var(--ecole-soft); }
.enfant-choix[aria-pressed="true"] > span > span { color: var(--ink-2); }
.enfant-choix:focus-visible { border-radius: var(--r-pill); }

/* Pointage du jour au portail */
.pointage { display: grid; gap: 12px; }
.pointage-tete { display: flex; align-items: flex-start; gap: 12px; }
.pointage-tete .corps { display: grid; gap: 2px; min-width: 0; }
.pointage-tete .etiquette { font-size: 13px; font-weight: 600; color: var(--muted); }
.pointage-tete strong { font-size: 18px; line-height: 1.3; }
.pointage-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--ink-2); }
.puce-ic.ok { background: var(--ok-soft); color: var(--ok); }
.puce-ic.warn { background: var(--warn-soft); color: var(--warn); }

/* Deux chiffres côte à côte */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.duo .bloc { display: grid; gap: 4px; align-content: start; min-width: 0; text-decoration: none; color: inherit; }
.duo .lib { font-size: 13px; font-weight: 500; color: var(--muted); }
.duo .val { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.duo .val small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.duo .det { font-size: 13.5px; color: var(--ink-2); }
a.bloc:hover { border-color: var(--ecole-lite); }

/* Alertes de l'enfant */
.alertes { display: grid; gap: 8px; }
.alertes .alerte { text-decoration: none; min-height: 44px; align-items: center; }
.alertes .alerte > span { flex: 1; }

/* Bloc « À payer » */
.apayer { display: grid; gap: 2px; padding-bottom: 6px; }
.apayer .grand-chiffre { font-size: 34px; }

/* Interrupteurs des alertes WhatsApp : toute la ligne est cliquable */
.reglage {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px;
  padding: 10px 0; border: 0; background: none; color: inherit; text-align: left;
}
.reglage + .reglage { border-top: 1px solid var(--line); }
.reglage .corps { flex: 1; min-width: 0; display: grid; gap: 2px; }
.reglage .corps strong { font-size: 15px; }
.reglage .corps span { font-size: 13.5px; color: var(--muted); }
.reglage:focus-visible { border-radius: 12px; }
.interrupteur { position: relative; flex: none; width: 50px; height: 30px; border-radius: var(--r-pill); background: var(--line-2); transition: background var(--t-fast) var(--ease); }
.interrupteur::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-1); transition: transform var(--t) var(--ease); }
.reglage[aria-checked="true"] .interrupteur { background: var(--ecole-lite); }
.reglage[aria-checked="true"] .interrupteur::after { transform: translateX(20px); }

/* En-tête d'un enfant dans un bloc */
.enfant-tete { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.enfant-tete img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.enfant-tete .corps { flex: 1; min-width: 0; display: grid; gap: 1px; }
.enfant-tete .corps strong { font-size: 16px; }
.enfant-tete .corps span { font-size: 13px; color: var(--muted); }
.enfant-tete .fin { display: grid; justify-items: end; text-align: right; }
.enfant-tete .fin strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.enfant-carte { display: grid; gap: 14px; }
.enfant-carte .enfant-tete { margin-bottom: 0; }

/* Paiement */
.pay-lignes { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pay-lignes div { display: flex; justify-content: space-between; gap: 12px; }
.pay-lignes .num { font-weight: 600; color: var(--ink); white-space: nowrap; }
.pay-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); font-weight: 700; }
.pay-total .num { font-size: 22px; white-space: nowrap; }
.pay-etat { display: grid; justify-items: center; gap: 12px; padding: 16px 0 4px; text-align: center; }
.pay-etat .puce-ic { width: 64px; height: 64px; border-radius: 20px; }
.pay-etat .puce-ic.ok { background: var(--ok-soft); color: var(--ok); }
.pay-etat h2 { font-size: 21px; }
.pay-etat .squelette { width: 70%; height: 8px; }

/* Conversation */
.fil { display: grid; gap: 10px; }
.bulle { max-width: 86%; justify-self: start; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.bulle.moi { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--ecole); color: var(--on-ecole); }
.bulle .h { display: block; margin-top: 4px; font-size: 11.5px; opacity: .78; }
.ecrit { font-size: 13px; color: var(--muted); font-style: italic; }
.rep { display: flex; gap: 8px; }
.rep .input { flex: 1; min-width: 0; }

/* Université : pas d'espace parent par défaut */
.etat-uni { display: grid; gap: 14px; justify-items: start; padding: 24px 20px; }
.etat-uni .puce-ic { width: 64px; height: 64px; border-radius: 20px; }
.etat-uni h1 { font-size: 24px; }
.etat-uni p { color: var(--ink-2); }
.etat-uni ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; width: 100%; }
.etat-uni li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.etat-uni li .ic { color: var(--ecole-lite); margin-top: 2px; }
.etat-uni .btn { width: 100%; white-space: normal; text-align: center; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; }
