@font-face { font-family: 'Gloock'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(polices/Gloock-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Gloock'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(polices/Gloock-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(polices/NunitoSans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(polices/NunitoSans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  :root {
    --rose: #F6AFA6;
    --rose-clair: #FCE7E3;
    --rose-fonce: #EE9488;
    --ardoise: #53556F;
    --ardoise-fonce: #3F4157;
    --gris: #EDEEF0;
    --gris-texte: #6B6D80;
    --texte: #212121;
    --blanc: #FFFFFF;
    --vert: #2E7D5B;
    --vert-clair: #E3F2EA;
    --alerte: #A12A1E;
    --titre: 'Gloock', Georgia, serif;
    --corps: 'Nunito Sans', 'Avenir Next', 'Segoe UI', sans-serif;
    --rayon: 14px;
    --ombre: 0 2px 10px rgba(83, 85, 111, 0.10);
    /* Rôles des couleurs : seul ce bloc change entre le jour et la nuit. */
    --fond: #F7F4F3;           /* page */
    --surface: #FFFFFF;        /* cartes, champs, barre d'onglets */
    --bordure: #D9D6DE;        /* bord des champs */
    --filet: #ECE9EE;          /* séparateurs fins */
    --accent: #53556F;         /* liens, bords, textes d'accent */
    --bouton: #53556F;         /* fond des boutons foncés (texte blanc) */
    --sur-rose: #3F4157;       /* texte sur fond rose */
    --sur-rose-clair: #3F4157; /* texte des pastilles et initiales */
    --entete-fond: #F6AFA6;
    --entete-texte: #3F4157;
    --touche: rgba(255,255,255,.65); /* touches du clavier du code */
    --attente-fond: #FFF1D6;
    --attente-texte: #7A5200;
    --toast-fond: #212121;
    --toast-texte: #FFFFFF;
    --sur-alerte: #FFFFFF;
    color-scheme: light;
  }
  /* Nuit : choisie dans l'application, ou suivie du téléphone (mode Système). */
  :root[data-theme="nuit"] { --fond: #17171D; --surface: #23232C; --bordure: #3A3B48; --filet: #30313C;
    --accent: #C3C6E6; --bouton: #5A5D7E; --texte: #ECECF1; --gris-texte: #A3A5B8; --gris: #2E2F3A;
    --rose: #E9A39A; --rose-fonce: #E9A39A; --sur-rose: #2A2B38; --rose-clair: #3E2C30; --sur-rose-clair: #F4D3CE;
    --entete-fond: #2B2329; --entete-texte: #F4D3CE; --touche: rgba(255,255,255,.08);
    --attente-fond: #3D321C; --attente-texte: #F0CF8A; --vert-clair: #1F3A2D; --vert: #7FD1A8; --alerte: #F08A7E;
    --toast-fond: #ECECF1; --toast-texte: #17171D; --sur-alerte: #17171D; --ombre: 0 2px 10px rgba(0, 0, 0, 0.45); color-scheme: dark; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="jour"]) { --fond: #17171D; --surface: #23232C; --bordure: #3A3B48; --filet: #30313C;
    --accent: #C3C6E6; --bouton: #5A5D7E; --texte: #ECECF1; --gris-texte: #A3A5B8; --gris: #2E2F3A;
    --rose: #E9A39A; --rose-fonce: #E9A39A; --sur-rose: #2A2B38; --rose-clair: #3E2C30; --sur-rose-clair: #F4D3CE;
    --entete-fond: #2B2329; --entete-texte: #F4D3CE; --touche: rgba(255,255,255,.08);
    --attente-fond: #3D321C; --attente-texte: #F0CF8A; --vert-clair: #1F3A2D; --vert: #7FD1A8; --alerte: #F08A7E;
    --toast-fond: #ECECF1; --toast-texte: #17171D; --sur-alerte: #17171D; --ombre: 0 2px 10px rgba(0, 0, 0, 0.45); color-scheme: dark; } }
  * { box-sizing: border-box; }
  html, body { margin: 0; background: var(--fond); color: var(--texte); font: 17px/1.45 var(--corps); -webkit-text-size-adjust: 100%; }
  button, input, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

  .appli { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--fond); }
  .bandeau-maquette { background: var(--bouton); color: var(--blanc); font-size: 13px; text-align: center; padding: 6px 12px; }

  /* En-tête */
  /* Fixe en haut ; réduit à une ligne dès qu'on fait défiler (classe compact). */
  header { position: sticky; top: 0; z-index: 10; background: var(--entete-fond); color: var(--entete-texte); padding: 14px 20px 20px;
           display: grid; grid-template-columns: 1fr auto; grid-template-areas: "marque coin" "texte ajout"; align-items: center; column-gap: 12px; }
  header .marque { grid-area: marque; }
  header .texte { grid-area: texte; min-width: 0; }
  header .ajouts { grid-area: ajout; display: flex; justify-self: end; }
  /* Sans bouton d'ajout (accueil, assistant), le titre prend toute la largeur :
     sinon la colonne des icônes le coupe (« Bonjour / Marguerite »). */
  header:not(.compact):not(:has(.ajouts > button:not([hidden]))) .texte { grid-column: 1 / -1; }
  header .coin { grid-area: coin; display: flex; gap: 8px; justify-self: end; }
  .icone-entete { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--entete-texte); background: none; color: var(--entete-texte);
                  display: grid; place-items: center; padding: 0; }
  .icone-entete svg { width: 20px; height: 20px; }
  header .marque { font-family: var(--titre); font-size: 15px; letter-spacing: .04em; opacity: .85; }
  header h1 { font-family: var(--titre); font-weight: 400; font-size: 28px; margin: 4px 0 2px; line-height: 1.15; }
  header .sous { font-size: 15px; }
  header.compact { padding: 8px 16px; box-shadow: 0 4px 8px -6px rgba(0,0,0,.3); grid-template-columns: 1fr auto auto; grid-template-areas: "texte ajout coin"; }
  header.compact .icone-entete { width: 34px; height: 34px; }
  header.compact .marque { display: none; }
  header.compact .texte { display: flex; align-items: baseline; gap: 8px; }
  header.compact h1 { font-size: 20px; margin: 0; white-space: nowrap; }
  header.compact .sous { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ajout-rond { flex: none; border: 0; border-radius: 999px; background: var(--bouton); color: var(--blanc); font-weight: 700;
                font-size: 16px; min-height: 44px; padding: 0 16px; }
  header.compact .ajout-rond { min-height: 34px; font-size: 15px; padding: 0 14px; }

  main { flex: 1; padding: 16px 16px 110px; }
  .ecran[hidden], [hidden] { display: none !important; }
  #contenu { display: contents; }
  h2 { font-family: var(--titre); font-weight: 400; font-size: 21px; color: var(--accent); margin: 22px 4px 10px; }
  h2:first-child { margin-top: 4px; }

  /* Cartes */
  .carte { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px; margin-bottom: 12px; }
  .carte-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
  .nom { font-weight: 700; font-size: 19px; }
  .pastille { display: inline-block; background: var(--rose-clair); color: var(--sur-rose-clair); border-radius: 999px; padding: 3px 11px; font-size: 14px; font-weight: 600; white-space: nowrap; }
  .pastille.attente { background: var(--attente-fond); color: var(--attente-texte); }
  .pastille.ok { background: var(--vert-clair); color: var(--vert); }
  .ligne { display: flex; gap: 8px; align-items: baseline; margin-top: 6px; color: var(--gris-texte); font-size: 15px; }
  .ligne b { color: var(--texte); font-weight: 600; }
  .message { margin-top: 10px; background: var(--gris); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
  .telephone { font-size: 17px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }

  /* Boutons */
  .actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
  .bouton { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 12px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none; padding: 8px 10px; text-align: center; line-height: 1.15; }
  .bouton-appel { background: var(--bouton); color: var(--blanc); }
  .bouton-appel:active { background: var(--ardoise-fonce); }
  .bouton-fait { background: var(--gris); color: var(--texte); }
  .bouton-rdv { background: var(--rose); color: var(--sur-rose); }
  .bouton-large { width: 100%; }
  .bouton-secondaire { background: var(--surface); color: var(--accent); border: 2px solid var(--accent); }
  .pied-ecran { text-align: center; margin-top: 32px; }
  /* Mes soins : jour affiché, flèches, choix d'une date (champ date invisible
     posé sur le libellé : le toucher ouvre le calendrier du téléphone). */
  .jour { display: flex; align-items: center; gap: 8px; }
  .fleche { flex: none; width: 52px; min-height: 52px; border-radius: 999px; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); font-size: 26px; line-height: 1; }
  .fleche:disabled { opacity: .3; }
  .jour-choix { flex: 1; position: relative; min-height: 52px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--bordure); border-radius: 14px; font-weight: 700; font-size: 17px; text-align: center; padding: 0 8px; }
  .jour-choix input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; }
  .pied-jour { margin: 6px 0 10px; min-height: 8px; }
  .nom-soin { padding: 0; font-size: 18px; text-align: left; }
  .proposition { display: block; width: 100%; text-align: left; background: var(--surface); border: 0; border-bottom: 1px solid var(--filet); padding: 12px 4px; font-size: 17px; color: var(--texte); }
  .choisie { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
  .historique { margin-top: 4px; }
  .lien.lien-danger { color: var(--alerte); }
  .lien { background: none; border: 0; color: var(--accent); text-decoration: underline; font-weight: 600; padding: 8px 0; }
  svg.ic { width: 20px; height: 20px; flex: none; }

  /* Résumé */
  .resume { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .resume .carte { margin: 0; padding: 14px; }
  .resume .chiffre { font-family: var(--titre); font-size: 34px; color: var(--accent); line-height: 1; }
  .resume .legende { font-size: 14px; color: var(--gris-texte); margin-top: 4px; }
  /* Accès au bilan du mois, sous le résumé. */
  .vers-mois { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 10px; border: 0; text-align: left;
               background: var(--surface); color: var(--texte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 16px; font-weight: 600; }
  .vers-mois::after { content: "›"; font-size: 24px; color: var(--accent); }
  /* Bilan du mois : une barre par prestation ou par lieu. */
  .barre-ligne { margin-top: 10px; }
  .barre-ligne .carte-tete { font-size: 15px; }
  .barre { height: 10px; border-radius: 999px; background: var(--gris); margin-top: 4px; overflow: hidden; }
  .barre span { display: block; height: 100%; border-radius: 999px; background: var(--rose-fonce); }
  .evolution { font-size: 13px; color: var(--gris-texte); margin-top: 6px; }
  /* Modèles de SMS : liste dépliée sous le bouton. */
  .modeles { display: grid; gap: 8px; margin-top: 8px; }
  #voir-textes { margin-top: 10px; }
  .apercu { white-space: pre-line; font-size: 15px; background: var(--gris); border-radius: 10px; padding: 10px 12px; margin-top: 8px; color: var(--texte); }
  .mots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
  .mots .filtre { min-height: 34px; padding: 4px 10px; font-size: 14px; }
  .modele-sms { display: block; text-decoration: none; background: var(--gris); color: var(--texte); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
  .modele-sms b { display: block; color: var(--accent); }
  .modele-sms span { display: block; color: var(--gris-texte); font-size: 14px; margin-top: 2px; }
  .actions-2 { grid-template-columns: 1fr 1fr; }

  .vide { text-align: center; padding: 26px 16px; color: var(--gris-texte); }
  .vide .grand { font-family: var(--titre); font-size: 22px; color: var(--accent); margin-bottom: 6px; }

  details.replie { margin-top: 4px; }
  details.replie summary { list-style: none; cursor: pointer; color: var(--accent); font-weight: 600; padding: 10px 4px; }
  details.replie summary::-webkit-details-marker { display: none; }
  .carte.faite { opacity: .75; padding: 12px 16px; }

  /* Recherche */
  .barre-recherche { position: sticky; top: var(--entete, 0px); z-index: 5; background: var(--fond); margin: 0 -16px; padding: 10px 16px 2px; box-shadow: 0 6px 8px -8px rgba(0,0,0,.25); }
  .recherche { position: relative; margin-bottom: 14px; }
  .recherche input { width: 100%; min-height: 54px; border-radius: 14px; border: 2px solid var(--bordure); background: var(--surface); padding: 12px 16px 12px 46px; font-size: 17px; }
  .recherche input:focus { border-color: var(--accent); outline: none; }
  .recherche svg { position: absolute; left: 15px; top: 17px; width: 20px; height: 20px; color: var(--gris-texte); }
  /* Les filtres restent visibles : retour à la ligne plutôt que défilement caché. */
  .filtres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  .filtres .filtre { padding: 6px 9px; font-size: 14px; }
  .ligne-recherche { display: flex; gap: 8px; align-items: stretch; margin-bottom: 14px; }
  .ligne-recherche .recherche { flex: 1; min-width: 0; margin-bottom: 0; }
  .tri { flex: none; min-height: 54px; border-radius: 999px; border: 2px solid var(--accent); background: var(--surface); color: var(--accent);
         font: 600 15px var(--corps); padding: 0 10px; }
  .filtre { border: 2px solid var(--accent); background: var(--surface); color: var(--accent); border-radius: 999px; padding: 6px 14px; min-height: 40px; font-weight: 600; font-size: 15px; white-space: nowrap; }
  .filtre[aria-pressed="true"] { background: var(--bouton); color: var(--blanc); }

  .cliente { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 12px 14px; margin-bottom: 10px; }
  .initiales { width: 46px; height: 46px; border-radius: 50%; background: var(--rose-clair); color: var(--sur-rose-clair); display: grid; place-items: center; font-family: var(--titre); font-size: 18px; flex: none; }
  .cliente .infos { flex: 1; min-width: 0; }
  .cliente .infos .sous-ligne { font-size: 14px; color: var(--gris-texte); }
  .cliente .sms-rond { width: 48px; height: 48px; border-radius: 50%; background: var(--rose); color: var(--sur-rose); display: grid; place-items: center; flex: none; }
  .cliente .appel-rond { width: 48px; height: 48px; border-radius: 50%; background: var(--bouton); color: var(--blanc); display: grid; place-items: center; flex: none; }

  /* Fiche */
  .retour { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--accent); font-weight: 700; padding: 8px 0; margin-bottom: 6px; }
  .fiche-tete { text-align: center; padding: 6px 0 14px; }
  .fiche-tete .initiales { width: 72px; height: 72px; font-size: 28px; margin: 0 auto 10px; }
  .fiche-tete .nom { font-size: 23px; font-family: var(--titre); font-weight: 400; }
  .fiche-tete .courriel { display: inline-block; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
  .fiche-tete .lien.courriel { padding: 4px 0; }
  /* Barre d'actions : Appeler, SMS, Itinéraire, Modifier, côte à côte. */
  .actions-fiche { display: flex; gap: 8px; }
  .action-fiche { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 76px; padding: 10px 4px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--ombre);
    color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; }
  .action-fiche .rond { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gris); }
  .action-fiche.principale .rond { background: var(--bouton); color: var(--blanc); }
  .action-fiche[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
  .fiche-soin { margin-top: 12px; }
  .carte-titre { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-texte); }
  .carte-titre + .champ { padding-top: 6px; }
  .champ { padding: 12px 0; border-bottom: 1px solid var(--gris); }
  .champ:last-child { border-bottom: 0; }
  .champ .etiquette { font-size: 14px; color: var(--gris-texte); }
  .champ .valeur { font-weight: 600; }
  .choix { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
  .note { font-size: 14px; color: var(--gris-texte); background: var(--gris); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }

  /* Assistant */
  textarea { width: 100%; min-height: 96px; border-radius: 12px; border: 2px solid var(--bordure); padding: 12px; font-size: 16px; resize: vertical; background: var(--surface); }
  textarea:focus { border-color: var(--accent); outline: none; }
  .saisie { width: 100%; min-height: 52px; border-radius: 12px; border: 2px solid var(--bordure); background: var(--surface); padding: 10px 14px; font-size: 17px; margin-top: 6px; }
  input, select, textarea { color: var(--texte); }
  .saisie:focus { border-color: var(--accent); outline: none; }
  #ajouter-cliente { margin-bottom: 14px; }
  .aide { font-size: 14px; color: var(--gris-texte); margin-top: 6px; }
  .question { font-weight: 700; font-size: 18px; }
  .rubrique-texte { font-size: 15px; white-space: pre-line; color: var(--texte); }

  /* Barre d'onglets */
  nav.onglets { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); box-shadow: 0 -2px 12px rgba(83, 85, 111, .12); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
  nav.onglets .interieur { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
  nav.onglets button { background: none; border: 0; min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--gris-texte); font-size: 13px; font-weight: 600; position: relative; }
  nav.onglets button[aria-current="page"] { color: var(--accent); }
  nav.onglets button[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 4px; border-radius: 0 0 4px 4px; background: var(--rose-fonce); }
  nav.onglets svg { width: 26px; height: 26px; }
  .badge { position: absolute; top: 8px; left: calc(50% + 6px); background: var(--alerte); color: var(--sur-alerte); border-radius: 999px; font-size: 12px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
  .badge:empty, .badge[data-n="0"] { display: none; }

  /* Message éphémère */
  .sms-texte { background: var(--gris); border-radius: 12px; padding: 10px 12px; font-size: 15px; margin-top: 8px; white-space: pre-wrap; }
  .compteur { font-size: 14px; color: var(--gris-texte); margin-top: 6px; }
  .compteur:empty { display: none; }
  .liste-choix { max-height: 340px; overflow-y: auto; border: 2px solid var(--bordure); border-radius: 12px; padding: 4px; margin-top: 6px; }
  .ligne-choix { display: flex; align-items: center; gap: 12px; padding: 8px 10px; min-height: 52px; border-radius: 10px; cursor: pointer; }
  .ligne-choix + .ligne-choix { border-top: 1px solid var(--bordure); }
  .ligne-choix input { width: 24px; height: 24px; flex: none; accent-color: var(--bouton); }
  .ligne-choix .nom { display: block; font-size: 17px; }
  .ligne-choix .sous-ligne { display: block; font-size: 14px; color: var(--gris-texte); overflow-wrap: anywhere; }
  .compteur.alerte { color: var(--attente-texte); background: var(--attente-fond); border-radius: 8px; padding: 6px 10px; }
  .hors-ligne { background: var(--attente-fond); color: var(--attente-texte); border-radius: 12px; padding: 10px 14px; font-size: 15px; margin-bottom: 12px; }
  .tirer { height: 0; overflow: hidden; display: grid; place-items: center; color: var(--gris-texte); font-size: 14px; }
  .tirer.relache { transition: height .2s ease; }
  .toast { position: fixed; left: 16px; right: 16px; bottom: 86px; max-width: 448px; margin: 0 auto; background: var(--toast-fond); color: var(--toast-texte); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; z-index: 10; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .toast.visible { opacity: 1; visibility: visible; transform: translateY(0); }
  .toast button { background: none; border: 0; color: var(--rose); font-weight: 700; padding: 6px; }

  /* Code d'accès */
  .acces { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; text-align: center; background: var(--entete-fond); color: var(--entete-texte); }
  .acces .marque { font-family: var(--titre); font-size: 30px; line-height: 1.1; }
  .acces p { margin: 8px 0 22px; }
  .points { display: flex; gap: 14px; justify-content: center; margin-bottom: 24px; }
  .points span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--entete-texte); }
  .points span.plein { background: var(--entete-texte); }
  .clavier { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; }
  .clavier button { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--touche); color: var(--entete-texte); font-size: 28px; font-family: var(--titre); }
  .clavier button:active { background: var(--surface); color: var(--texte); }
  .acces .erreur { color: var(--alerte); min-height: 22px; font-weight: 600; }
  .chargement { text-align: center; color: var(--gris-texte); padding: 30px 0; }
  .rubrique-texte ul { margin: 6px 0; padding-left: 20px; }
  .rubrique-texte p { margin: 6px 0; }
  .rubrique-texte table { border-collapse: collapse; font-size: 14px; margin: 6px 0; }
  .rubrique-texte td, .rubrique-texte th { border-bottom: 1px solid var(--gris); padding: 4px 6px; text-align: left; vertical-align: top; }
  .rubrique-texte { white-space: normal; }
  .inactive { opacity: .55; }
  .rubrique-titre { flex: 1; background: none; border: 0; padding: 4px 0; text-align: left; font-weight: 700; font-size: 17px; color: var(--texte); display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; }
  .rubrique-titre::after { content: "›"; font-size: 24px; color: var(--accent); transition: transform .15s; }
  .rubrique-titre[aria-expanded="true"]::after { transform: rotate(90deg); }
