/* Mes étoiles : styles. Interface enfant (grosse, colorée) et interface parent (sobre). */
:root {
  --ink: #1f2340;
  --muted: #5d6485;
  --bg: #f3f4fb;
  --card: #ffffff;
  --line: #dfe3f1;
  --brand: #4b3fb3;
  --brand-fonce: #3a3090;
  --brand-pale: #ecebfa;
  --star: #f5b301;
  --ok: #1d9a60;
  --ok-pale: #e3f6ec;
  --danger: #cf3f39;
  --danger-pale: #fdeceb;
  --attente: #b36b00;
  --attente-pale: #fff3dc;
  --accent: #4b3fb3;
  --rayon: 18px;
  --ombre: 0 2px 10px rgba(31, 35, 64, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
h1, h2, h3 { margin: 0; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
:focus-visible { outline: 3px solid #8c7cff; outline-offset: 2px; }

.chargement { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.aide { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0 0.75rem; }
.erreur { color: var(--danger); font-weight: 600; min-height: 1.2em; margin: 0.4rem 0; }
.vide { color: var(--muted); text-align: center; padding: 1.5rem 0.5rem; font-size: 1.1rem; }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0.55rem 1.1rem;
  border: 2px solid var(--line); border-radius: 14px; background: var(--card);
  font-weight: 650; text-align: center;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-primaire { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-danger { background: var(--danger-pale); border-color: #f0bcb9; color: var(--danger); }
.btn-grand { width: 100%; min-height: 56px; font-size: 1.1rem; margin: 0.5rem 0; }
.btn-petit { min-height: 40px; padding: 0.3rem 0.8rem; font-size: 0.95rem; border-radius: 12px; }
.btn-clair { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-rond {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: var(--card);
  font-size: 1.3rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-refaire { color: var(--attente); border-color: #f0d49a; background: var(--attente-pale); }

/* ----- Champs ----- */
.champ {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; font: inherit;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
textarea.champ { resize: vertical; }
.champ-nombre { max-width: 9rem; font-size: 1.3rem; font-weight: 700; text-align: center; }
.champ-bloc { display: block; margin: 0 0 1.1rem; }
.champ-etiquette { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.champ-aide { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }
.case { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 600; }
.case input { width: 24px; height: 24px; accent-color: var(--brand); }

.stepper { display: inline-flex; align-items: center; gap: 0.5rem; }
.stepper-btn {
  width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
  font-size: 1.5rem; font-weight: 800; line-height: 1;
}
.stepper-val { min-width: 3.2rem; text-align: center; font-weight: 800; font-size: 1.2rem; }

.segmente { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.seg {
  flex: 1 1 auto; min-height: 48px; padding: 0.4rem 0.8rem; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; font-weight: 650;
}
.seg.actif { background: var(--brand-pale); border-color: var(--brand); color: var(--brand-fonce); }

.emoji-haut { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.5rem; }
.emoji-apercu {
  width: 64px; height: 64px; flex: none; border-radius: 16px; background: var(--brand-pale);
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}
.emoji-champ { max-width: 12rem; }
.emoji-groupe-titre { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin: 0.5rem 0 0.2rem; }
.emoji-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; }
.emoji-case {
  height: 46px; border: 2px solid transparent; background: #f5f6fb; border-radius: 10px; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.emoji-case.actif { border-color: var(--brand); background: var(--brand-pale); }

.pastilles { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pastille { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); padding: 0; }
.pastille.actif { box-shadow: 0 0 0 3px var(--ink); }

/* ----- Fenêtres ----- */
.modal-fond {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 22, 45, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--card); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.25);
}
.modal-large { max-width: 640px; }
.modal-titre { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 1.1rem 0.4rem; }
.modal-titre h2 { flex: 1; font-size: 1.2rem; }
.modal-x { width: 44px; height: 44px; border-radius: 50%; border: none; background: #f0f1f8; font-size: 1.1rem; }
.modal-corps { padding: 0.5rem 1.1rem 0.8rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-pied { display: flex; gap: 0.6rem; justify-content: flex-end; padding: 0.7rem 1.1rem 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-pied .btn-danger { margin-right: auto; }
.confirm { font-size: 1.05rem; margin: 0.5rem 0; }
.confirm-grand { font-size: 1.35rem; font-weight: 650; margin: 0.8rem 0; text-align: center; }
@media (min-width: 700px) {
  .modal-fond { align-items: center; }
  .modal { border-radius: 22px; }
}

.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 80; transform: translate(-50%, 20px);
  max-width: min(92vw, 520px); background: #1f2340; color: #fff; padding: 0.8rem 1.2rem;
  border-radius: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  text-align: center;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ----- NIP ----- */
.nip { text-align: center; }
.nip-sous { color: var(--muted); margin: 0.2rem 0 0.6rem; }
.nip-points { display: flex; gap: 1rem; justify-content: center; margin: 0.8rem 0 1rem; }
.nip-point { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--brand); }
.nip-point.plein { background: var(--brand); }
.nip-pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; max-width: 300px; margin: 0 auto; }
.nip-touche {
  height: 64px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-size: 1.7rem; font-weight: 700;
}
.nip-touche:active:not(:disabled) { background: var(--brand-pale); }
.nip-vide { visibility: hidden; }

/* ----- Célébration ----- */
.celebration {
  position: fixed; inset: 0; z-index: 90; background: rgba(40, 30, 110, 0.82);
  display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: hidden;
}
.pluie { position: absolute; inset: 0; pointer-events: none; }
.pluie span { position: absolute; top: -50px; animation: chute linear infinite; }
@keyframes chute { to { transform: translateY(115vh) rotate(300deg); } }
.celebration-carte {
  position: relative; background: #fff; border-radius: 28px; padding: 1.6rem 1.4rem; text-align: center;
  max-width: 420px; width: 100%; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); animation: apparition 0.35s ease-out;
}
.celebration-carte h2 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.celebration-carte p { font-size: 1.3rem; margin: 0.25rem 0; font-weight: 600; }
.celebration-emoji { font-size: 4.2rem; line-height: 1; margin-bottom: 0.4rem; animation: rebond 0.9s ease-in-out infinite; }
@keyframes apparition { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rebond { 50% { transform: translateY(-10px) scale(1.08); } }

/* ----- Cartes et listes (commun) ----- */
.carte { background: var(--card); border: 1px solid var(--line); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 0.9rem 1rem; margin: 0 0 1rem; display: block; }
.carte.vide, .carte.vide-ok { text-align: center; color: var(--muted); }
.vide-ok { font-size: 1.1rem; }
.page-centre { max-width: 460px; margin: 0 auto; padding: 2.5rem 1.2rem; text-align: center; }
.page-centre h1 { margin-bottom: 1rem; }
.logo { font-size: 3.4rem; }
.connexion { text-align: left; }
.connexion .champ { margin-bottom: 0.7rem; }
.choix { width: 100%; display: flex; flex-direction: column; gap: 0.3rem; text-align: left; font: inherit; border: 2px solid var(--line); }
.choix.actif { border-color: var(--brand); background: var(--brand-pale); }
.choix-emoji { font-size: 2.2rem; }
.choix span:not(.choix-emoji) { color: var(--muted); font-size: 0.95rem; }

/* ===================== Interface enfant ===================== */
.page-enfant { min-height: 100vh; padding-bottom: 96px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, #fff) 0%, #fff7e6 100%); font-size: 18px; -webkit-user-select: none; user-select: none; }
.bandeau-apercu { background: #1f2340; color: #fff; text-align: center; padding: 0.35rem; font-size: 0.9rem; }
.entete-accueil { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; max-width: 960px; margin: 0 auto; }
.entete-accueil h1 { font-size: 1.6rem; }
.btn-parent { min-height: 48px; min-width: 48px; padding: 0 1rem; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-size: 1.05rem; white-space: nowrap; }
.contenu-enfant { max-width: 960px; margin: 0 auto; padding: 0.6rem 1rem 1rem; }
.invite { text-align: center; font-size: 1.6rem; font-weight: 800; margin: 0.8rem 0 1.2rem; }
.cartes-enfants { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.carte-enfant {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1.4rem 1rem; text-align: center;
  background: #fff; border: 4px solid var(--accent); border-radius: 28px; box-shadow: var(--ombre);
}
.carte-enfant:active { transform: scale(0.98); }
.avatar-grand { font-size: 5rem; line-height: 1.1; }
.carte-enfant-nom { font-size: 2rem; font-weight: 800; color: var(--accent); }
.solde-pastille { background: #fff3c4; border: 2px solid var(--star); border-radius: 999px; padding: 0.15rem 1rem; font-size: 1.5rem; font-weight: 800; }
.carte-enfant-info { color: var(--muted); font-weight: 600; margin-top: 0.2rem; }

.entete-profil {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; background: var(--accent); color: #fff;
}
.retour { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: rgba(255, 255, 255, 0.2); border-radius: 50%; }
.entete-avatar { font-size: 2.6rem; line-height: 1; }
.entete-nom { flex: 1; font-size: 1.7rem; font-weight: 800; }
.solde-grand { background: #fff; color: var(--ink); border-radius: 999px; padding: 0.2rem 1rem; font-size: 1.6rem; font-weight: 800; border: 3px solid var(--star); }
.progression { max-width: 960px; margin: 0.7rem auto 0; padding: 0 1rem; }
.progression-texte { font-weight: 700; margin-bottom: 0.25rem; }
.barre { height: 16px; background: #e6e8f3; border-radius: 999px; overflow: hidden; }
.barre-mince { height: 10px; margin-top: 0.4rem; }
.barre-plein { height: 100%; background: linear-gradient(90deg, #ffcf3f, #ff9d1f); border-radius: 999px; transition: width 0.5s; }

.groupe { margin: 1rem 0 1.4rem; }
.groupe-titre { display: flex; align-items: center; justify-content: space-between; font-size: 1.5rem; margin-bottom: 0.6rem; }
.groupe-compte { font-size: 1rem; background: #fff; border-radius: 999px; padding: 0.1rem 0.7rem; color: var(--muted); border: 2px solid var(--line); }
.message-bravo { text-align: center; font-size: 1.3rem; font-weight: 800; background: var(--ok-pale); border-radius: 18px; padding: 0.7rem; color: var(--ok); }
.grille-taches, .grille-recompenses { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0.9rem; }

.tache, .recompense {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'emoji corps voix' 'action action action';
  gap: 0.4rem 0.8rem; align-items: center; background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 0.8rem; box-shadow: var(--ombre);
}
.tache-emoji { grid-area: emoji; font-size: 3.2rem; line-height: 1; }
.tache-corps { grid-area: corps; min-width: 0; }
.tache-nom { font-size: 1.3rem; font-weight: 800; overflow-wrap: anywhere; }
.tache-etoiles { font-weight: 800; color: #9a6a00; font-size: 1.1rem; }
.btn-voix { grid-area: voix; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); background: #f5f6fb; font-size: 1.5rem; }
.tache-action { grid-area: action; }
.btn-fini {
  width: 100%; min-height: 60px; font-size: 1.35rem; font-weight: 800; border-radius: 16px; border: none; color: #fff;
  background: linear-gradient(180deg, #2fbf78, #1d9a60); box-shadow: 0 4px 0 #157a4b;
}
.btn-fini:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #157a4b; }
.etat { border-radius: 14px; padding: 0.6rem 0.8rem; font-weight: 700; font-size: 1.1rem; text-align: center; display: flex; flex-direction: column; gap: 0.3rem; align-items: center; }
.etat-attente { background: var(--attente-pale); color: var(--attente); }
.etat-ok { background: var(--ok-pale); color: var(--ok); font-size: 1.25rem; }
.etat-refaire { background: var(--danger-pale); color: var(--danger); }
.etat-refaire .btn-fini { margin-top: 0.3rem; }
.etat-manque { background: #f0f1f8; color: var(--muted); }
.commentaire { font-weight: 600; color: var(--ink); font-size: 1rem; }
.lien-discret { background: none; border: none; color: var(--muted); text-decoration: underline; min-height: 36px; font-size: 0.95rem; }
.tache-confirmee { border-color: #b4e5cb; background: #f6fcf9; }
.tache-confirmee .tache-emoji { opacity: 0.6; }
.tache-en_attente { border-color: #f2d9a2; }
.tache-a_refaire { border-color: #f0bcb9; }
.recompense-hors { opacity: 0.85; }

.liste-puces { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.puce { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 999px; font-weight: 700; font-size: 1.15rem; background: #fff; border: 3px solid var(--line); }
.puce-active { border-color: var(--ok); background: var(--ok-pale); }
.puce-attente { border-color: #f2d9a2; background: var(--attente-pale); }
.puce-emoji { font-size: 1.7rem; }
.puce-note { font-size: 0.9rem; color: var(--attente); }

.total-gagne { text-align: center; font-size: 1.5rem; font-weight: 800; margin: 0.4rem 0 1rem; }
.echelle { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.palier { display: flex; align-items: center; gap: 0.9rem; background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 0.8rem 1rem; }
.palier-emoji { font-size: 2.8rem; line-height: 1; width: 3.4rem; text-align: center; }
.palier-corps { flex: 1; min-width: 0; }
.palier-nom { font-size: 1.35rem; font-weight: 800; }
.palier-privilege { font-weight: 600; color: var(--muted); }
.palier-seuil { font-size: 1.2rem; font-weight: 800; }
.palier-atteint { border-color: var(--ok); background: var(--ok-pale); }
.palier-prochain { border-color: var(--star); background: #fff8dd; }
.palier-verrou { opacity: 0.7; }

.onglets {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: #fff; border-top: 2px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.onglet { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.55rem 0.3rem; font-weight: 700; font-size: 1rem; color: var(--muted); min-height: 72px; justify-content: center; }
.onglet-emoji { font-size: 1.8rem; line-height: 1; }
.onglet.actif { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); }

/* ===================== Interface parent ===================== */
.page-parent { min-height: 100vh; padding-bottom: 90px; }
.barre-parent { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem; background: var(--brand); color: #fff; }
.barre-parent h1 { flex: 1; font-size: 1.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.retour-p { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: rgba(255, 255, 255, 0.18); border-radius: 50%; flex: none; }
.bandeau-demo { background: #fff3dc; color: #7a4a00; text-align: center; padding: 0.35rem 0.6rem; font-size: 0.9rem; font-weight: 600; }
.contenu { max-width: 720px; margin: 0 auto; padding: 1rem; }
.page-parent section { margin-bottom: 0.4rem; }
.section-entete { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0.6rem 0 0.5rem; }
.section-entete h2 { font-size: 1.1rem; }

.nav-bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0.5rem 0.2rem; font-size: 0.8rem; font-weight: 650; color: var(--muted); min-height: 62px; justify-content: center; }
.nav-item.actif { color: var(--brand); background: var(--brand-pale); }
.nav-emoji { position: relative; font-size: 1.5rem; line-height: 1.1; }
.badge { position: absolute; top: -6px; right: -14px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.badge-inline { position: static; margin-left: 0.2rem; }

.resume-enfants { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.resume-carte { display: flex; align-items: center; gap: 0.5rem; background: #fff; border: 2px solid var(--accent); border-radius: 16px; padding: 0.55rem 0.8rem; }
.resume-avatar { font-size: 1.8rem; line-height: 1; flex: none; }
.resume-avatar.grand { font-size: 2.4rem; }
.resume-avatar.enorme { font-size: 3.2rem; }
.resume-nom { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.resume-solde { font-weight: 800; }
.neg { color: var(--danger); }
.carte-entete { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--accent); }
.carte-entete strong { flex: 1; font-size: 1.1rem; }

.ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: none; border-right: none; border-top: none; text-align: left; }
.ligne:last-child { border-bottom: none; }
.ligne-bouton { cursor: pointer; font: inherit; }
.ligne-emoji { font-size: 1.9rem; line-height: 1; flex: none; width: 2.2rem; text-align: center; }
.ligne-texte { flex: 1 1 8rem; min-width: 0; }
.ligne-boutons { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.ligne-titre { font-weight: 700; overflow-wrap: anywhere; }
.ligne-sous { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.inactive { opacity: 0.55; }
.chip-etoiles { flex: none; background: #fff3c4; border-radius: 999px; padding: 0.15rem 0.7rem; font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.chip-etoiles.pos { background: var(--ok-pale); color: var(--ok); }
.chip-etoiles.neg { background: var(--danger-pale); color: var(--danger); }
.chip-etoiles.zero { background: #f0f1f8; color: var(--muted); }
.section-entete .btn-primaire { min-height: 44px; }

.carte-lien { display: flex; align-items: center; gap: 0.8rem; border-left: 6px solid var(--accent); }
.fleche { font-size: 1.8rem; color: var(--muted); }
.profil-haut { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.8rem; }
.profil-nom { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.stat { background: #f5f6fb; border-radius: 14px; padding: 0.6rem 0.4rem; text-align: center; }
.stat-val { font-size: 1.25rem; font-weight: 800; }
.stat-titre { font-size: 0.8rem; color: var(--muted); }
.stat.fort { background: #fff3c4; }
.stat.neg { background: var(--danger-pale); }
.boutons-ligne { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.boutons-ligne .btn { flex: 1 1 45%; }
.puces-choix { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.reglage p { margin: 0 0 0.7rem; }
.pied-reglages { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1.5rem; }
.assign-ligne { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.4rem 0.6rem; margin-bottom: 0.4rem; border-left: 5px solid var(--accent); background: #f8f9fd; border-radius: 10px; flex-wrap: wrap; }

.assistant-haut { text-align: center; margin-bottom: 1rem; }
.assistant-etoile { font-size: 3.4rem; }
.assistant-enfant { border-left: 6px solid var(--accent); }
.assistant-ligne { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.assistant-ligne .champ { flex: 1; min-width: 0; }
.bouton-avatar { background: #f5f6fb; border: 2px solid var(--line); border-radius: 16px; width: 64px; height: 64px; }
.assistant-pied { display: flex; gap: 0.6rem; margin-top: 1rem; }
.assistant-pied .btn { flex: 1; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .pluie span, .celebration-emoji, .celebration-carte { animation: none; }
}
@media (max-width: 380px) {
  .tache-emoji { font-size: 2.6rem; }
  .avatar-grand { font-size: 4rem; }
}
