/* Touitou Family — feuille de style unique. Pensée pour deux téléphones en portrait, une main.
   Zones de toucher : 48 px au moins. Encoche et barre du bas : env(safe-area-inset-*). */

:root {
  --fond: #FBF7F2; --surface: #FFFFFF; --surface-2: #F4EDE4; --texte: #2B2622; --doux: #6E655C;
  --bord: #E8DFD3; --prim: #C2552F; --prim-fonce: #A2431F; --prim-txt: #FFFFFF; --prim-pale: #F8E3D9;
  --vert: #2F6F62; --vert-pale: #DCEDE8; --rouge: #B3261E; --rouge-pale: #F9DEDC; --orange: #9A5B00;
  --orange-pale: #FBEBD0; --ombre: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 14px rgba(60, 40, 20, .07);
  --r: 16px; --r-petit: 12px; --haut: 56px; --bas: 64px;
  --c1: #C2552F; --c2: #2F6F62; --c3: #5B5BB0; --c4: #B0457E; --c5: #8A6D1D; --c6: #2E6E9E; --c7: #6B8E23; --c8: #7A5C99;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
:root[data-theme="sombre"] {
  --fond: #1C1916; --surface: #26221E; --surface-2: #302A25; --texte: #F3EDE6; --doux: #B3A89C;
  --bord: #3A342E; --prim: #E9875F; --prim-fonce: #F09C79; --prim-txt: #1C1916; --prim-pale: #4A2E22;
  --vert: #7CC2B0; --vert-pale: #1F3A33; --rouge: #F2938C; --rouge-pale: #4A2320; --orange: #F0B860;
  --orange-pale: #45331A; --ombre: 0 1px 2px rgba(0, 0, 0, .4);
  --c1: #E9875F; --c2: #7CC2B0; --c3: #A3A3EE; --c4: #E58BBE; --c5: #D8B962; --c6: #7BB6E3; --c7: #A9CC6A; --c8: #C2A3E0;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --fond: #1C1916; --surface: #26221E; --surface-2: #302A25; --texte: #F3EDE6; --doux: #B3A89C;
    --bord: #3A342E; --prim: #E9875F; --prim-fonce: #F09C79; --prim-txt: #1C1916; --prim-pale: #4A2E22;
    --vert: #7CC2B0; --vert-pale: #1F3A33; --rouge: #F2938C; --rouge-pale: #4A2320; --orange: #F0B860;
    --orange-pale: #45331A; --ombre: 0 1px 2px rgba(0, 0, 0, .4);
    --c1: #E9875F; --c2: #7CC2B0; --c3: #A3A3EE; --c4: #E58BBE; --c5: #D8B962; --c6: #7BB6E3; --c7: #A9CC6A; --c8: #C2A3E0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--fond); color: var(--texte); }
body {
  font: 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 17px; }
a { color: var(--prim); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8;
      stroke-linecap: round; stroke-linejoin: round; }
.ic.petit { width: 18px; height: 18px; }
.ic.grand { width: 32px; height: 32px; }
.cache { display: none !important; }
.lecteur-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 2rem; text-align: center; }

/* ---------- coquille ---------- */
.appli { min-height: 100dvh; display: flex; flex-direction: column; }
.demarrage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
             color: var(--doux); font-weight: 600; }
.entete {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fond) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: calc(var(--sat) + 4px) calc(var(--sar) + 8px) 4px calc(var(--sal) + 8px);
  display: flex; align-items: center; gap: 4px; min-height: calc(var(--haut) + var(--sat));
  border-bottom: 1px solid transparent;
}
.entete.ombre { border-bottom-color: var(--bord); }
.entete h1 { flex: 1; margin: 0 4px; font-size: 21px; font-weight: 750; letter-spacing: -.01em;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etat-reseau { font-size: 13px; color: var(--orange); background: var(--orange-pale); border-radius: 999px;
               padding: 4px 10px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.contenu { flex: 1; padding: 8px calc(var(--sar) + 14px) calc(var(--bas) + var(--sab) + 96px) calc(var(--sal) + 14px);
           width: 100%; max-width: 760px; margin: 0 auto; }
.barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--bord);
  padding: 4px calc(var(--sar) + 4px) calc(var(--sab) + 4px) calc(var(--sal) + 4px);
}
.barre a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
           min-height: var(--bas); color: var(--doux); text-decoration: none; font-size: 12px; font-weight: 600;
           border-radius: 14px; position: relative; }
.barre a[aria-current="page"] { color: var(--prim); }
.barre a[aria-current="page"] .ic { stroke-width: 2.3; }
.pastille-nav { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px;
                background: var(--prim); color: var(--prim-txt); font-size: 11px; line-height: 18px; text-align: center;
                padding: 0 4px; font-weight: 700; }
.ajout-rapide { position: fixed; right: calc(var(--sar) + 16px); bottom: calc(var(--bas) + var(--sab) + 18px); z-index: 25;
                width: 60px; height: 60px; border-radius: 30px; border: 0; background: var(--prim); color: var(--prim-txt);
                box-shadow: 0 6px 18px rgba(162, 67, 31, .35); display: flex; align-items: center; justify-content: center; }
.ajout-rapide .ic { width: 30px; height: 30px; stroke-width: 2.4; }

/* ---------- éléments ---------- */
.bouton { min-height: 52px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--prim);
          color: var(--prim-txt); font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
          gap: 8px; cursor: pointer; text-decoration: none; }
.bouton:active { transform: scale(.98); }
.bouton.secondaire { background: var(--surface-2); color: var(--texte); }
.bouton.discret { background: transparent; color: var(--prim); padding: 0 12px; }
.bouton.danger { background: var(--rouge-pale); color: var(--rouge); }
.bouton.plein { width: 100%; }
.bouton[disabled] { opacity: .5; }
.bouton-icone { width: 48px; height: 48px; min-width: 48px; border-radius: 24px; border: 0; background: transparent;
                color: var(--texte); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
                text-decoration: none; }
.bouton-icone:active { background: var(--surface-2); }
.rangee { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rangee.etalee { justify-content: space-between; }
.pile { display: flex; flex-direction: column; gap: 10px; }
.carte { background: var(--surface); border-radius: var(--r); box-shadow: var(--ombre); padding: 14px 16px; margin: 0 0 12px; }
.carte h2, .section-titre { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--doux);
                             margin: 0 0 8px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.section-titre { margin: 18px 4px 8px; }
.carte.lien { display: block; color: inherit; text-decoration: none; }
.vide { color: var(--doux); padding: 18px 6px; text-align: center; }
.doux { color: var(--doux); }
.petit-txt { font-size: 14px; }
.gras { font-weight: 700; }
.alerte { background: var(--orange-pale); color: var(--texte); border-radius: var(--r-petit); padding: 12px 14px;
          margin: 0 0 12px; display: flex; gap: 10px; align-items: flex-start; }
.alerte.rouge { background: var(--rouge-pale); }
.alerte.verte { background: var(--vert-pale); }
.puces { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.puces::-webkit-scrollbar { display: none; }
.puce { flex: none; min-height: 48px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--bord);
        background: var(--surface); display: inline-flex; align-items: center; gap: 6px; font-size: 15px;
        cursor: pointer; white-space: nowrap; }
.puce[aria-pressed="true"] { background: var(--prim); color: var(--prim-txt); border-color: var(--prim); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px;
         border-radius: 12px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--doux); }
.badge.prim { background: var(--prim-pale); color: var(--prim-fonce); }
.badge.rouge { background: var(--rouge-pale); color: var(--rouge); }
.badge.orange { background: var(--orange-pale); color: var(--orange); }
.badge.vert { background: var(--vert-pale); color: var(--vert); }
.initiale { width: 26px; height: 26px; border-radius: 13px; flex: none; display: inline-flex; align-items: center;
            justify-content: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--c1); }
.coul-1 { --coul: var(--c1); } .coul-2 { --coul: var(--c2); } .coul-3 { --coul: var(--c3); } .coul-4 { --coul: var(--c4); }
.coul-5 { --coul: var(--c5); } .coul-6 { --coul: var(--c6); } .coul-7 { --coul: var(--c7); } .coul-8 { --coul: var(--c8); }
.initiale[class*="coul-"] { background: var(--coul); }
:root[data-theme="sombre"] .initiale { color: #1C1916; }

/* ---------- listes ---------- */
.liste { background: var(--surface); border-radius: var(--r); box-shadow: var(--ombre); overflow: hidden; margin: 0 0 12px; }
.ligne { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 8px 6px 14px;
         border-bottom: 1px solid var(--bord); background: var(--surface); width: 100%; text-align: left;
         border-left: 0; border-right: 0; border-top: 0; color: inherit; text-decoration: none; }
.ligne:last-child { border-bottom: 0; }
.ligne .corps { flex: 1; min-width: 0; }
.ligne .titre { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ligne .sous { display: block; font-size: 14px; color: var(--doux); overflow-wrap: anywhere; }
.ligne.faite .titre { text-decoration: line-through; color: var(--doux); font-weight: 500; }
.ligne.retard .sous { color: var(--rouge); font-weight: 600; }
button.ligne { cursor: pointer; }
.ligne button.corps { background: transparent; border: 0; text-align: left; padding: 4px 0; min-height: 46px; color: inherit;
                      cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.ligne a.corps { color: inherit; text-decoration: none; min-height: 46px; display: flex; flex-direction: column; justify-content: center; }
.case { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--doux); flex: none; display: inline-flex;
        align-items: center; justify-content: center; background: transparent; color: var(--prim-txt); padding: 0; }
.case.ronde { border-radius: 15px; }
.case.cochee { background: var(--vert); border-color: var(--vert); }
.case.cochee .ic { stroke-width: 3; width: 20px; height: 20px; }
.case-zone { width: 52px; height: 52px; margin: -6px 0 -6px -10px; border: 0; background: transparent; display: flex;
             align-items: center; justify-content: center; cursor: pointer; flex: none; }
.priorite-2 .titre::before { content: "‼ "; color: var(--rouge); }
.priorite-1 .titre::before { content: "! "; color: var(--orange); }

/* ---------- formulaires ---------- */
.champ { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.champ > span { font-size: 14px; font-weight: 650; color: var(--doux); }
.champ input, .champ select, .champ textarea, .saisie {
  min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--bord); background: var(--surface);
  width: 100%; outline: none; -webkit-appearance: none; appearance: none;
}
.champ textarea { min-height: 110px; resize: vertical; }
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--doux) 50%), linear-gradient(135deg, var(--doux) 50%, transparent 50%);
                background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.champ input:focus, .champ select:focus, .champ textarea:focus, .saisie:focus { border-color: var(--prim); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.interrupteur input { width: 52px; height: 30px; }
.barre-ajout { display: flex; gap: 8px; position: sticky; top: calc(var(--haut) + var(--sat)); z-index: 10; padding: 6px 0 10px;
               background: var(--fond); }
.barre-ajout input { flex: 1; }
.barre-ajout .bouton { min-width: 56px; padding: 0 14px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: 12px;
            padding: 4px; gap: 4px; margin: 0 0 12px; }
.segments button { min-height: 48px; border: 0; border-radius: 9px; background: transparent; font-weight: 650; color: var(--doux); }
.segments button[aria-pressed="true"] { background: var(--surface); color: var(--texte); box-shadow: var(--ombre); }

/* ---------- feuille (fenêtre du bas) ---------- */
.feuille-fond { position: fixed; inset: 0; z-index: 60; background: rgba(20, 12, 6, .45); display: flex; align-items: flex-end;
                justify-content: center; animation: apparait .15s ease-out; }
.feuille { background: var(--fond); width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto; border-radius: 22px 22px 0 0;
           padding: 8px calc(var(--sar) + 18px) calc(var(--sab) + 18px) calc(var(--sal) + 18px); animation: monte .18s ease-out;
           overscroll-behavior: contain; }
.feuille .poignee { width: 44px; height: 5px; border-radius: 3px; background: var(--bord); margin: 4px auto 10px; }
.feuille h2 { margin: 0 0 14px; font-size: 21px; }
.feuille .actions { display: flex; gap: 10px; margin-top: 8px; position: sticky; bottom: calc(-18px - var(--sab));
                    background: var(--fond); padding: 10px 0 calc(var(--sab) + 4px); }
.feuille .actions .bouton { flex: 1; }
@keyframes apparait { from { opacity: 0; } }
@keyframes monte { from { transform: translateY(30px); opacity: .6; } }
#toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--bas) + var(--sab) + 90px); z-index: 70; display: flex;
          flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: #2B2622; color: #FBF7F2; border-radius: 14px; padding: 12px 16px; display: flex; gap: 14px; align-items: center;
         pointer-events: auto; max-width: 560px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); font-size: 16px; }
.toast button { background: transparent; border: 0; color: #F2B79C; font-weight: 800; min-height: 48px; padding: 0 8px; }

/* ---------- accès : code à 4 chiffres ---------- */
.ecran-acces { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
               padding: calc(var(--sat) + 24px) 24px calc(var(--sab) + 24px); gap: 14px; text-align: center; }
.ecran-acces h1 { margin: 6px 0 0; font-size: 24px; }
.ecran-acces p { margin: 0; color: var(--doux); max-width: 340px; }
.ecran-acces form { width: 100%; max-width: 360px; text-align: left; }
.points { display: flex; gap: 18px; margin: 10px 0; }
.points span { width: 18px; height: 18px; border-radius: 9px; border: 2px solid var(--doux); }
.points span.plein { background: var(--prim); border-color: var(--prim); }
.points.secoue { animation: secoue .35s; }
@keyframes secoue { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.clavier { display: grid; grid-template-columns: repeat(3, 78px); gap: 14px; margin-top: 8px; }
.clavier button { width: 78px; height: 78px; border-radius: 39px; border: 0; background: var(--surface); box-shadow: var(--ombre);
                  font-size: 30px; font-weight: 600; }
.clavier button:active { background: var(--prim-pale); }
.clavier button.vide-touche { background: transparent; box-shadow: none; font-size: 15px; color: var(--doux); }
.message-acces { min-height: 24px; color: var(--rouge); font-weight: 600; }

/* ---------- accueil ---------- */
.salut { margin: 6px 4px 14px; }
.salut .jour { font-size: 15px; color: var(--doux); font-weight: 600; }
.salut .jour::first-letter, .jour-titre::first-letter, .navig .gras::first-letter { text-transform: uppercase; }
.salut .bonjour { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.raccourcis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px; }
.raccourcis button, .raccourcis a { min-height: 74px; border-radius: 16px; border: 0; background: var(--surface); box-shadow: var(--ombre);
                     display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
                     font-size: 13px; font-weight: 650; color: var(--texte); text-decoration: none; }
.raccourcis .ic { color: var(--prim); }
.carte .ligne { padding-left: 0; padding-right: 0; min-height: 50px; }
.carte .ligne:first-of-type { border-top: 0; }

/* ---------- courses ---------- */
.rayon-titre { font-size: 14px; font-weight: 750; color: var(--doux); margin: 14px 4px 6px; display: flex; gap: 6px; align-items: center; }
.qte { color: var(--prim-fonce); font-weight: 700; }
.mode-magasin .ligne { min-height: 74px; font-size: 21px; }
.mode-magasin .case { width: 40px; height: 40px; border-radius: 12px; }
.mode-magasin .case.cochee .ic { width: 26px; height: 26px; }
.grande-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tuile { background: var(--surface); border-radius: var(--r); box-shadow: var(--ombre); padding: 16px; min-height: 108px; border: 0;
         text-align: left; display: flex; flex-direction: column; justify-content: space-between; color: inherit; text-decoration: none; }
.tuile .emoji { font-size: 28px; }
.tuile .nom { font-weight: 750; font-size: 18px; }

/* ---------- agenda ---------- */
.mois { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: var(--surface); border-radius: var(--r);
        box-shadow: var(--ombre); padding: 8px; margin: 0 0 12px; }
.mois .jsem { text-align: center; font-size: 12px; font-weight: 700; color: var(--doux); padding: 4px 0; }
.mois button { min-height: 50px; border: 0; background: transparent; border-radius: 10px; display: flex; flex-direction: column;
               align-items: center; justify-content: flex-start; padding: 6px 0 4px; gap: 3px; font-weight: 600; }
.mois button.autre-mois { color: var(--doux); opacity: .45; }
.mois button.aujourdhui span:first-child { background: var(--prim); color: var(--prim-txt); border-radius: 13px; width: 26px; height: 26px; line-height: 26px; }
.mois button.choisi { background: var(--prim-pale); }
.mois .pts { display: flex; gap: 2px; height: 6px; }
.mois .pts i { width: 6px; height: 6px; border-radius: 3px; background: var(--coul, var(--prim)); }
.jour-titre { font-weight: 750; margin: 16px 4px 6px; }
.jour-titre.aujourdhui { color: var(--prim); }
.jour-ligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 4px 2px; }
.jour-ligne .petit-txt { font-weight: 400; }
.jour-ligne > span:first-child::first-letter { text-transform: uppercase; }
.heure { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--doux); min-width: 52px; font-size: 15px; }
.cat-rdv { --coul: var(--c6); } .cat-ecole { --coul: var(--c2); } .cat-activite { --coul: var(--c7); }
.cat-anniversaire { --coul: var(--c4); } .cat-autre { --coul: var(--c5); } .cat-echeance { --coul: var(--c1); }
.trait { width: 5px; align-self: stretch; border-radius: 3px; background: var(--coul, var(--prim)); flex: none; margin: 4px 0; }
.navig { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.navig .gras { display: inline-block; flex: 1; text-align: center; padding: 0 4px; }
.centre { display: flex; justify-content: center; margin: 0 0 10px; }

/* ---------- repas ---------- */
.semaine-repas .jour { background: var(--surface); border-radius: var(--r); box-shadow: var(--ombre); margin: 0 0 10px; padding: 10px 12px; }
.semaine-repas .jour.aujourdhui { outline: 2px solid var(--prim); }
.semaine-repas .moment { display: flex; gap: 10px; align-items: center; min-height: 48px; border: 0; background: transparent;
                         width: 100%; text-align: left; padding: 0; color: inherit; }
.semaine-repas .moment b { width: 52px; font-size: 13px; color: var(--doux); text-transform: uppercase; }

/* ---------- dépenses ---------- */
.montant { font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }
.grand-montant { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.jauge { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.jauge i { display: block; height: 100%; background: var(--prim); border-radius: 5px; }

/* ---------- coffre ---------- */
.coffre-ferme { text-align: center; padding: 26px 10px; }
.coffre-ferme .ic { width: 64px; height: 64px; color: var(--prim); }
.rubrique { display: flex; align-items: center; gap: 12px; }
.rubrique .emoji { font-size: 26px; width: 36px; text-align: center; }
.minuteur-coffre { font-size: 13px; color: var(--doux); }
.visionneuse { position: fixed; inset: 0; z-index: 80; background: #111; color: #eee; display: flex; flex-direction: column; }
.visionneuse .haut { display: flex; align-items: center; gap: 6px; padding: calc(var(--sat) + 4px) 8px 4px; background: #000; }
.visionneuse .haut .titre { flex: 1; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.visionneuse .haut .bouton-icone { color: #eee; }
.visionneuse .pages { flex: 1; overflow: auto; padding: 10px 0 calc(var(--sab) + 10px); display: flex; flex-direction: column;
                      align-items: center; gap: 10px; -webkit-overflow-scrolling: touch; }
.visionneuse canvas, .visionneuse img { background: #fff; max-width: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.visionneuse img { max-width: 100%; height: auto; }
.grille-pieces { width: 100%; border-collapse: collapse; }
.vignette { width: 52px; height: 52px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center;
            justify-content: center; flex: none; overflow: hidden; }
.mot-phrase { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 22px; font-weight: 700;
              background: var(--surface-2); border-radius: 12px; padding: 14px; word-spacing: .3em; text-align: center; }
.jauge-progres { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.jauge-progres i { display: block; height: 100%; width: 0; background: var(--vert); transition: width .2s; }

/* ---------- feuille de secours (impression) ---------- */
.secours { display: none; }
@media print {
  body.impression-secours > *:not(.secours) { display: none !important; }
  body.impression-secours .secours { display: block !important; color: #000; background: #fff; font-size: 13pt; padding: 0 8mm; }
  .secours h1 { font-size: 20pt; margin: 0 0 6mm; }
  .secours .phrase { font: 700 20pt ui-monospace, Menlo, Consolas, monospace; border: 2px solid #000; padding: 6mm; margin: 6mm 0;
                     word-spacing: .4em; text-align: center; }
  .secours li { margin: 0 0 3mm; }
}

/* ---------- tablette ---------- */
@media (min-width: 700px) {
  .raccourcis { grid-template-columns: repeat(4, 1fr); }
  .grande-liste { grid-template-columns: repeat(3, 1fr); }
  .barre { max-width: 760px; margin: 0 auto; border-radius: 20px 20px 0 0; border-left: 1px solid var(--bord);
           border-right: 1px solid var(--bord); }
  .ajout-rapide { right: calc(50% - 360px); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
button.badge { min-height: 48px; min-width: 84px; border: 0; justify-content: center; cursor: pointer; }
