/* ═══ Charte Tatbiki : 3 couleurs seulement — JAUNE, NOIR, GRIS (+ blanc neutre) ═══
   Jaune repris de tatbiki.pro (tailwind brand.yellow). Jamais de texte blanc sur jaune. */
:root {
  --tatbiki-jaune: #FFCC00;
  --noir: #0F0F0F;
  --gris-fonce: #3A3A3A;
  --gris-clair: #EDEDED;
  --blanc: #FFFFFF;
  /* Exceptions : danger/alerte uniquement, et WhatsApp uniquement */
  --danger: #C62828;
  --alerte: #F57C00;
  --whatsapp: #25D366;

  /* Rôles (mode clair) */
  --fond: #F5F5F5;
  --surface: var(--blanc);
  --texte: var(--noir);
  --texte2: #4D4D4D;
  --bord: #D0D0D0;
  --focus: var(--noir);
  --entete-fond: #000000;
  --entete-surface: #1A1A1A;
  --rayon: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: var(--noir);
    --surface: #1A1A1A;
    --texte: #F5F5F5;
    --texte2: #B3B3B3;
    --bord: #383838;
    --focus: var(--gris-clair);
    --entete-fond: #000000;
    --entete-surface: #262626;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
[hidden] { display: none !important; }
.ecran { max-width: 480px; margin: 0 auto; padding: 16px 16px 40px; }
.centre { padding-top: 6vh; }
.logo { font-size: 56px; text-align: center; }
h1 { font-size: 1.6rem; margin: .2em 0; }
.centre h1 { text-align: center; }
.sous { color: var(--texte2); text-align: center; margin: 0 0 24px; }
.note { color: var(--texte2); font-size: .92rem; text-align: center; margin-top: 20px; }
label, .label { display: block; font-weight: 700; margin: 18px 0 6px; }
input {
  width: 100%; font: inherit; font-size: 1.2rem; padding: 14px; border-radius: var(--rayon);
  border: 2px solid var(--bord); background: var(--surface); color: var(--texte);
}
input::placeholder { color: var(--texte2); opacity: .8; }
input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.champ-code { font-size: 2rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.champ-montant { font-size: 2.4rem; font-weight: 800; text-align: center; }

/* Erreurs : rouge danger (texte rouge foncé sur gris clair + barre rouge + ⚠️) */
.erreur { margin: 10px 0 0; font-weight: 700; color: var(--danger); }
.erreur:not(:empty) {
  background: var(--gris-clair); border-inline-start: 6px solid var(--danger);
  border-radius: 10px; padding: 10px 12px;
}
.erreur:not(:empty)::before { content: "⚠️ "; }

/* Boutons */
.btn {
  display: block; width: 100%; min-height: 56px; margin-top: 14px; padding: 14px 18px;
  font: inherit; font-weight: 800; font-size: 1.1rem; border-radius: var(--rayon);
  border: 2px solid transparent; cursor: pointer; touch-action: manipulation;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .filtre:focus-visible, .rub:focus-visible, .langue:focus-visible, .ligne:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Jaune réservé : bouton photo + bandeau d'annonce. Ailleurs : gris clair. */
.btn { background-clip: padding-box; }
.btn-principal { background: var(--gris-clair); color: var(--noir); border-color: var(--noir); }
/* Contour net : le NOIR est peint jusqu'au bord extérieur (border-box), le JAUNE seulement à l'intérieur (padding-box).
   Aucun pixel jaune ne peut sortir du contour, même sur écran haute définition. */
.statut.essai, .statut.actif {
  border: 3px solid transparent;
  background: linear-gradient(var(--tatbiki-jaune), var(--tatbiki-jaune)) padding-box, var(--noir) border-box;
  color: var(--noir);
}
/* Bouton photo : gris foncé, texte blanc. Saisie rapide : gris un peu plus clair, texte blanc. */
.btn-photo { background: #5C5C5C; color: var(--blanc); border: none; }
#btn-saisie { background: #757575; color: var(--blanc); border: none; }
.btn-photo { min-height: 84px; font-size: 1.35rem; }
.btn-secondaire { background: var(--surface); color: var(--texte); border-color: var(--texte); }
.btn-lien { background: none; color: var(--texte); min-height: 48px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.btn-danger { background: var(--danger); color: var(--blanc); border-color: var(--danger); }
.btn-danger-lien { background: var(--surface); color: var(--danger); border-color: var(--danger); }
@media (prefers-color-scheme: dark) {
  .btn-danger-lien { background: var(--gris-clair); }
}

/* En-tête noir, texte jaune/blanc */
.barre {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: -16px -16px 14px; padding: 12px 16px; background: var(--entete-fond); color: var(--blanc);
}
.barre h1 { flex: 1; margin: 0; color: var(--gris-clair); }
.btn-icone {
  min-width: 48px; min-height: 48px; font-size: 1.5rem; border: none; border-radius: 12px;
  background: var(--entete-surface); color: var(--gris-clair); cursor: pointer;
}

/* Bandeau de statut */
.statut { border-radius: var(--rayon); padding: 12px 14px; font-weight: 800; margin-bottom: 12px; border: 2px solid var(--noir); }
.statut.expire { background: var(--danger); color: var(--blanc); border-color: var(--danger); }
.statut.expire::before { content: "⚠️ "; }
.statut .btn { margin-top: 10px; background: var(--blanc); color: var(--danger); border-color: var(--blanc); }
@media (prefers-color-scheme: dark) { .statut.expire { border-color: var(--danger); } }
/* Alerte (orange) : réservée aux dépassements de budget (phase à venir) */
.alerte { background: var(--alerte); color: var(--noir); border-radius: var(--rayon); padding: 12px 14px; font-weight: 800; }
.alerte::before { content: "⚠️ "; }

/* Cartes de totaux */
.cartes { display: grid; grid-template-columns: 1fr; gap: 10px; }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 12px 14px; }
.carte h2 { font-size: .95rem; margin: 0; color: var(--texte2); font-weight: 700; }
.carte .total { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.repart { display: flex; gap: 8px; flex-wrap: wrap; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 400px) {
  .cartes { grid-template-columns: 1fr 1fr; }
  #carte-jour { grid-column: 1 / -1; }
}

/* Badges : PERSO = gris foncé, PRO = jaune texte noir */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 800; }
.badge.perso { background: var(--gris-fonce); color: var(--blanc); }
.badge.pro { background: var(--gris-clair); color: var(--noir); box-shadow: inset 0 0 0 1px var(--texte2); }
@media (prefers-color-scheme: dark) { .badge.perso { background: #555555; } }

/* Filtres */
.filtres { display: flex; gap: 8px; margin: 22px 0 10px; }
.filtre {
  flex: 1; min-height: 46px; font: inherit; font-weight: 800; border-radius: 999px;
  border: 2px solid var(--bord); background: var(--surface); color: var(--texte); cursor: pointer;
}
.filtre.actif { background: var(--noir); color: var(--gris-clair); border-color: var(--noir); }
@media (prefers-color-scheme: dark) { .filtre.actif { background: var(--gris-clair); color: var(--noir); border-color: var(--gris-clair); } }

/* Liste */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { margin-bottom: 8px; }
.ligne {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: start;
  background: var(--surface); color: var(--texte); border: 1px solid var(--bord); border-radius: var(--rayon);
  font: inherit; cursor: pointer; min-height: 64px;
}
.ligne .ico { font-size: 1.6rem; }
.ligne .milieu { flex: 1; min-width: 0; }
.ligne .lib { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ligne .meta { color: var(--texte2); font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.ligne .mt { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vide { color: var(--texte2); text-align: center; padding: 24px 0; }

/* Grille des rubriques */
#rubriques h3 { display: inline-block; font-size: .9rem; font-weight: 800; margin: 14px 0 8px; padding: 2px 12px; border-radius: 999px; }
#rubriques h3.perso { background: var(--gris-fonce); color: var(--blanc); }
#rubriques h3.pro { background: var(--gris-clair); color: var(--noir); box-shadow: inset 0 0 0 1px var(--texte2); }
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rub {
  min-height: 84px; padding: 8px 4px; border-radius: var(--rayon); border: 2px solid var(--bord);
  background: var(--surface); color: var(--texte); font: inherit; font-size: .82rem; font-weight: 700;
  line-height: 1.2; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.rub .e { font-size: 1.6rem; }
.rub.choisie { border-color: var(--noir); outline: 3px solid var(--noir); }
.rub.choisie.perso { background: var(--gris-fonce); color: var(--blanc); }
.rub.choisie.pro { background: var(--gris-clair); color: var(--noir); }
@media (prefers-color-scheme: dark) { .rub.choisie { border-color: var(--gris-clair); outline-color: var(--gris-clair); } }

/* Confirmation de suppression */
.confirm { background: var(--surface); border: 2px solid var(--danger); border-radius: var(--rayon); padding: 14px; margin-top: 14px; }
.confirm p { margin: 0; font-weight: 800; color: var(--danger); }
@media (prefers-color-scheme: dark) { .confirm { background: var(--gris-clair); } }
.confirm p::before { content: "⚠️ "; }
.ligne-btns { display: flex; gap: 10px; }
.ligne-btns .btn { flex: 1; }

/* Menu : noir, texte blanc/jaune */
.panneau { position: fixed; inset: 0; z-index: 20; }
.panneau-fond { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.panneau-contenu {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(86vw, 340px); overflow-y: auto;
  background: var(--entete-fond); color: var(--blanc); border-left: 4px solid var(--gris-clair);
  padding: calc(14px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  animation: tiroir .22s ease-out;
}
@keyframes tiroir { from { transform: translateX(100%); } to { transform: translateX(0); } }
/* [CHARTE §16 2026-11-19] français/anglais : le menu s'ouvre depuis la GAUCHE, du côté du bouton ☰ */
[dir="ltr"] .panneau-contenu { right: auto; left: 0; border-left: none; border-right: 4px solid var(--gris-clair); animation-name: tiroir-g; }
@keyframes tiroir-g { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.panneau-fond { animation: fondu .22s ease-out; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.menu-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.menu-tete h2 { margin: 0; }
.menu-lien {
  display: block; width: 100%; min-height: 54px; margin-top: 8px; padding: 12px 14px; text-align: start;
  font: inherit; font-weight: 800; font-size: 1.1rem; border-radius: var(--rayon);
  background: var(--entete-surface); color: var(--blanc); border: 2px solid #444444; cursor: pointer;
}
.panneau hr { border: none; border-top: 1px solid #444444; margin: 18px 0 12px; }
.panneau-contenu h2 { margin-top: 0; color: var(--gris-clair); }
.panneau-contenu b { color: var(--gris-clair); }
.panneau .btn-secondaire { background: var(--entete-surface); color: var(--blanc); border-color: #555555; }
.panneau .btn-lien { color: var(--blanc); }

/* Toast */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30;
  max-width: 448px; margin: 0 auto; background: var(--noir); color: var(--blanc); border: 2px solid var(--gris-clair);
  padding: 14px 16px; border-radius: var(--rayon); font-weight: 800; text-align: center;
}

/* ── Langues + arabe (droite à gauche) ── */
.zone-langues .langues { display: flex; gap: 6px; justify-content: center; margin-bottom: 4px; }
.langue {
  flex: 1; max-width: 140px; min-height: 44px; font: inherit; font-weight: 800; font-size: .95rem;
  border-radius: 999px; border: 2px solid var(--bord); background: var(--surface); color: var(--texte); cursor: pointer;
}
.langue.actif { background: var(--gris-clair); color: var(--noir); border-color: var(--noir); border-width: 3px; }
.panneau .zone-langues .langues { justify-content: stretch; }
.panneau .langue { max-width: none; background: var(--entete-surface); color: var(--blanc); border-color: #555555; }
.panneau .langue.actif { background: var(--gris-clair); color: var(--noir); border-color: var(--gris-clair); }
[dir="rtl"] body { line-height: 1.6; }
[dir="rtl"] .fleche { transform: scaleX(-1); }
[dir="rtl"] .rub { font-size: .9rem; }
.mt, .total, .repart .badge, #menu-tel { unicode-bidi: isolate; }
/* Arabe : le texte d'exemple (placeholder) s'affiche de droite à gauche ; la saisie reste en chiffres LTR */
[dir="rtl"] #tel:placeholder-shown, [dir="rtl"] #libelle:placeholder-shown { direction: rtl; }

/* WhatsApp : vert réservé à ce qui concerne WhatsApp (texte noir sur vert, lisible) */
.whatsapp {
  display: block; width: fit-content; margin: 20px auto 0; padding: 8px 14px; border-radius: 999px;
  background: var(--whatsapp); color: var(--noir); font-weight: 700; font-size: .92rem; text-align: center;
}

/* Bandeau d'annonce : défilement continu de gauche à droite, sans vide */
.statut { overflow: hidden; isolation: isolate; }
.statut .defile { border-radius: 8px; }
.defile { overflow: hidden; width: 100%; direction: ltr; }
.piste { display: flex; width: max-content; direction: ltr; animation: defile var(--duree, 12s) linear infinite; }
.piste .item { flex: none; white-space: nowrap; padding-inline: 1.2em; }
.piste .item::after { content: "•"; padding-inline-start: 2.4em; opacity: .6; }
@keyframes defile { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Bandeau défilant : le texte glisse jusqu'au contour (pas de marge où il serait coupé net) */
.statut.essai, .statut.actif { padding-inline: 0; }
.statut .defile { border-radius: 10px; }

/* En-tête accueil : logo Tatbiki à gauche, « Dépenses » au centre, menu à droite (même ordre en arabe) */
.barre-accueil { display: grid; grid-template-columns: 1fr auto 1fr; direction: ltr; }
.barre-accueil .logo-tatbiki { justify-self: start; height: 40px; width: auto; display: block; }
.barre-accueil h1 { text-align: center; flex: none; }
.barre-accueil #btn-menu { justify-self: end; }

/* Filtre du détail : rubrique + nature */
.filtres-detail { margin: 0 0 10px; }
.select {
  width: 100%; min-height: 50px; font: inherit; font-weight: 700; padding: 10px 12px; border-radius: var(--rayon);
  border: 2px solid var(--bord); background: var(--surface); color: var(--texte);
}
.select:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.natures { display: flex; gap: 6px; margin-top: 8px; }
.nature {
  flex: 1; min-height: 42px; font: inherit; font-weight: 800; font-size: .95rem; border-radius: 10px;
  border: 2px solid var(--bord); background: var(--surface); color: var(--texte); cursor: pointer;
}
.nature.actif { background: var(--gris-fonce); color: var(--blanc); border-color: var(--gris-fonce); }
@media (prefers-color-scheme: dark) { .nature.actif { background: var(--gris-clair); color: var(--noir); border-color: var(--gris-clair); } }
.filtre-resume {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--gris-clair); color: var(--noir); font-weight: 800;
}
.btn-effacer { font: inherit; font-weight: 700; font-size: .9rem; background: none; border: none; color: var(--noir); text-decoration: underline; cursor: pointer; min-height: 40px; }

/* Écran « Par rubrique » */
.resume-rub { margin-bottom: 4px; }
#rub-nature { margin: 10px 0 12px; }
.ligne-rub .meta { flex-wrap: wrap; }
.barre-rub { display: block; height: 8px; margin-top: 6px; border-radius: 999px; background: var(--gris-clair); overflow: hidden; }
.barre-rub-pleine { display: block; height: 100%; border-radius: 999px; background: var(--gris-fonce); }
.barre-rub-pleine.pro { background: #8A8A8A; }
@media (prefers-color-scheme: dark) { .barre-rub { background: #333333; } .barre-rub-pleine { background: var(--gris-clair); } .barre-rub-pleine.pro { background: #9A9A9A; } }

/* Photo du ticket : aperçu dans la saisie + écran de lecture */
.info-photo { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; padding: 10px; border-radius: var(--rayon); background: var(--gris-clair); color: var(--noir); }
.info-photo img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; background: var(--blanc); }
.info-photo p { margin: 0; font-weight: 700; font-size: .95rem; }
.chargement { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(0, 0, 0, .75); color: var(--blanc); font-weight: 800; font-size: 1.15rem; }
.chargement p { margin: 0; }
.roue { width: 54px; height: 54px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .25); border-top-color: var(--blanc); animation: tourne 0.9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .roue { animation-duration: 2.5s; } }

/* [PAIEMENT 2026-11-07] Bouton « Payer » + écran abonnement */
.statut .btn-payer { margin-top: 10px; }
.statut.essai .btn-payer, .statut.actif .btn-payer { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.menu-payer { font-weight: 800; }
.abo-statut { font-weight: 800; }
.abo-formules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.abo-formule { min-height: 72px; font: inherit; font-weight: 800; font-size: 1.05rem; border-radius: var(--rayon);
  border: 2px solid var(--bord); background: var(--surface); color: var(--texte); cursor: pointer; }
.abo-formule[aria-pressed="true"] { border: 3px solid transparent;
  background: linear-gradient(var(--tatbiki-jaune), var(--tatbiki-jaune)) padding-box, var(--noir) border-box; color: var(--noir); }
.abo-formule small { display: block; font-weight: 600; font-size: .85rem; }
.abo-etape { margin-top: 12px; }
.abo-num { font-weight: 800; margin: 0; }
.abo-tel { font-size: 1.9rem; text-align: center; margin: 8px 0 0; letter-spacing: 1px; }
.abo-qr { display: block; margin: 12px auto 0; width: 220px; max-width: 70%; height: auto; border-radius: 10px; background: #fff; }
.abo-resultat { margin: 12px 0 0; font-weight: 800; padding: 12px; border-radius: 10px; background: var(--gris-clair); color: var(--noir); }
.abo-h2 { font-size: 1rem; margin: 18px 0 6px; }
.abo-paiement { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--bord); }
.abo-paiement .st-valide { color: #1B7F3B; font-weight: 800; }
.abo-paiement .st-en_attente { color: var(--alerte); font-weight: 800; }
.abo-paiement .st-refuse { color: var(--danger); font-weight: 800; }

/* [PAIEMENT] situation + prix bien lisibles */
.abo-situation h2, .abo-prix h2 { font-size: .95rem; margin: 0 0 6px; color: var(--texte2); font-weight: 700; }
.abo-situation-texte { font-size: 1.35rem; font-weight: 800; margin: 0; }
.abo-situation-reste { font-size: 1.05rem; font-weight: 700; margin: 4px 0 0; }
.abo-situation.essai, .abo-situation.actif { border: 3px solid transparent;
  background: linear-gradient(var(--tatbiki-jaune), var(--tatbiki-jaune)) padding-box, var(--noir) border-box; color: var(--noir); }
.abo-situation.essai h2, .abo-situation.actif h2 { color: var(--noir); }
.abo-situation.expire { background: var(--danger); color: var(--blanc); border-color: var(--danger); }
.abo-situation.expire h2 { color: var(--blanc); }
.abo-prix { margin-top: 12px; }
.abo-prix-ligne { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 0; font-size: 1.15rem; font-weight: 700; }
.abo-prix-ligne b { font-size: 1.7rem; font-weight: 800; }
.abo-formule small { font-size: 1.25rem; font-weight: 800; margin-top: 2px; }

/* [BARRE-BAS 2026-11-07] raccourcis du menu en bas de l'écran */
.barre-bas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--entete-fond); border-top: 1px solid #333;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.barre-bas[hidden] { display: none; }
.bas-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; border: none; border-radius: 12px; background: none; cursor: pointer;
  color: var(--gris-clair); font: inherit; font-size: .78rem; font-weight: 700; touch-action: manipulation;
}
.bas-ico { font-size: 1.45rem; line-height: 1; }
.bas-btn.actif { background: var(--tatbiki-jaune); color: var(--noir); }
.bas-btn:focus-visible { outline: 3px solid var(--tatbiki-jaune); outline-offset: 2px; }
body.avec-barre-bas { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.avec-barre-bas .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }

/* [TAILLE 2026-11-07] app réduite de 15 % ; cartes Semaine et Mois réduites de 20 % */
html { zoom: .85; }
#carte-semaine, #carte-mois { padding: 10px 11px; }
#carte-semaine h2, #carte-mois h2 { font-size: .76rem; }
#carte-semaine .total, #carte-mois .total { font-size: 1.44rem; }
#carte-semaine .repart, #carte-mois .repart { gap: 6px; }
#carte-semaine .badge, #carte-mois .badge { font-size: .68rem; padding: 2px 8px; }

/* [THEME-B] icônes SVG de la barre du bas : visibles seulement dans le thème B */
.bas-svg { display: none; }

/* [ACCUEIL-B 2026-11-07] disposition maquette B (base, valable aussi pour le thème classique de secours) */
.barre-accueil .titre-bloc { flex: 1; min-width: 0; }
.barre-accueil .sur-titre { display: block; font-size: .8rem; font-weight: 600; opacity: .75; }
.barre-accueil h1 { margin: 0; font-size: 1.15rem; line-height: 1.2; }
.puce-statut { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bord); background: var(--surface);
  color: var(--texte); font: inherit; font-size: .8rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.puce-statut.expire { background: var(--danger); color: #FFFFFF; border-color: var(--danger); }
#ecran-accueil > .filtres { margin: 4px 0 12px; }
.carte-total { display: flex; align-items: center; gap: 18px; }
.donut { width: 104px; height: 104px; flex-shrink: 0; }
.donut-fond { stroke: #EDEDEA; } .donut-pro { stroke: #FFCC00; } .donut-perso { stroke: #111111; }
.total-bloc { flex: 1; min-width: 0; }
.total-bloc h2 { margin: 0; }
.legende { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: .85rem; font-weight: 600; }
.legende div { display: flex; align-items: center; gap: 6px; }
.legende b { margin-inline-start: auto; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.pastille { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.pastille.pro { background: #FFCC00; box-shadow: inset 0 0 0 1px #C9A200; }
.pastille.perso { background: #111111; }
.mini-cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.carte.mini { display: flex; flex-direction: column; align-items: flex-start; text-align: start; font: inherit; color: var(--texte); cursor: pointer; }
.mini-titre { font-size: .8rem; font-weight: 600; color: var(--texte2); }
.carte.mini .total { font-size: 1.3rem; }
.carte-rub { margin-top: 14px; }
.carte-rub .tete { display: flex; justify-content: space-between; align-items: center; }
.carte-rub h2 { margin: 0; font-size: .95rem; font-weight: 800; color: var(--texte); }
.lien { min-height: 44px; padding: 0 4px; background: none; border: none; font: inherit; font-weight: 700; color: var(--texte); text-decoration: underline; cursor: pointer; }
.rub-barre { margin-top: 8px; }
.rub-barre .haut { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; font-weight: 600; }
.rub-barre .rb-piste { display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: #EDEDEA; }
.rub-barre .rb-plein { display: block; height: 100%; border-radius: 999px; }
.rub-barre .rb-plein.pro { background: #FFCC00; } .rub-barre .rb-plein.perso { background: #111111; }
.carte-rub .vide { padding: 10px 0 4px; }
.titre-liste { font-size: 1rem; margin: 20px 0 8px; }

/* [PAGES-B 2026-11-07] éléments communs aux 2 thèmes */
.logo-b { display: none; }
.abo-situation { display: flex; align-items: center; gap: 14px; }
.abo-sit-txt { flex: 1; min-width: 0; }
.abo-jours { display: none; }
.abo-num { display: flex; align-items: center; gap: 10px; }
.abo-rond { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; background: var(--noir); color: var(--blanc); }
.abo-lib { display: flex; flex-direction: column; text-align: start; }
.abo-sous { font-size: .8rem; font-weight: 600; opacity: .75; }
.abo-radio { display: none; }

/* [LANGUES 2026-11-07] sélecteur de langue compact dans l'en-tête de l'accueil */
.langues-mini .langues { display: flex; gap: 2px; padding: 3px; margin: 0; border-radius: 12px; background: var(--entete-surface); }
.langues-mini .langue { flex: none; min-width: 40px; min-height: 36px; max-width: none; padding: 0 8px; border: none; border-radius: 9px;
  background: transparent; color: var(--gris-clair); font-size: .82rem; font-weight: 800; }
.langues-mini .langue.actif { background: var(--gris-clair); color: var(--noir); border: none; }

/* [CIH 2026-11-07] RIB plus long qu'un numéro de téléphone */
.abo-tel.rib { font-size: 1.15rem; letter-spacing: 0; word-break: break-all; }
.abo-titulaire { margin: 4px 0 0; font-size: .85rem; font-weight: 600; opacity: .85; }
.abo-modes { margin-bottom: 4px; }

/* [ETUDIANT 2026-11-07] carte tarif étudiant + ancien prix barré */
.abo-etudiant { margin-top: 12px; }
.abo-etu-titre { margin: 0; font-weight: 800; }
.abo-etu-texte { margin: 4px 0 0; font-size: .9rem; }
.abo-etudiant .btn { min-height: 48px; margin-top: 10px; }
.abo-barre { opacity: .6; font-size: .9rem; margin-inline-start: auto; margin-inline-end: 8px; }

/* [BUDGET-JOUR 2026-11-08] Carte budget du jour : barre grise → orange (80 %) → rouge (dépassé) */
.carte-budget { display: block; width: 100%; margin-top: 10px; text-align: start; font: inherit; color: var(--texte); cursor: pointer; }
.carte-budget .bj-haut { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.carte-budget .bj-haut b { font-variant-numeric: tabular-nums; }
.carte-budget .bj-piste { display: block; height: 12px; margin-top: 8px; border-radius: 999px; background: var(--gris-clair); overflow: hidden; }
.carte-budget .bj-plein { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--gris-fonce); transition: width .4s ease; }
.carte-budget .bj-message { display: block; margin-top: 6px; font-size: .9rem; font-weight: 700; color: var(--texte2); }
.carte-budget.proche .bj-plein { background: var(--alerte); }
.carte-budget.proche .bj-message { color: var(--alerte); }
.carte-budget.depasse { border: 2px solid var(--danger); }
.carte-budget.depasse .bj-plein { background: var(--danger); }
.carte-budget.depasse .bj-message { color: var(--danger); }
.toast.alerte-budget { background: var(--danger); border-color: var(--danger); color: var(--blanc); }
#form-budget p:not(.erreur) { color: inherit; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .carte-budget .bj-plein { transition: none; } }

/* [MODES-JAUNE 2026-11-08] Mode de paiement sélectionné (CIH / Cash Plus) : fond jaune Tatbiki, texte noir — tous thèmes */
.abo-modes .nature.actif, html.theme-b #ecran-abonnement .abo-modes .nature.actif {
  background: var(--tatbiki-jaune); color: var(--noir); border-color: var(--tatbiki-jaune); font-weight: 800;
}

/* [PAYPAL 2026-11-08] bouton « Payer avec PayPal » */
.btn-paypal { display: flex; align-items: center; justify-content: center; margin-top: 8px; text-decoration: none;
  background: var(--tatbiki-jaune); color: var(--noir); border-color: var(--noir); }

/* [MENU-COMPTE 2026-11-08] */
.menu-compte { display: flex; align-items: center; justify-content: space-between; }
.menu-compte[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.chevron { transition: transform .2s; }
.compte-details { padding: 4px 4px 0; }
/* [SERVICES-UTILES 2026-11-08] écran plein avec flèche jaune */
.ecran-services { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; background: var(--fond); }
.services-tete { display: flex; align-items: center; gap: 12px; background: var(--noir); color: var(--blanc);
  padding: calc(10px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left)); }
.services-tete h1 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--blanc); }
.btn-retour-jaune { width: 46px; height: 46px; flex: none; border-radius: 50%; border: none; cursor: pointer;
  background: var(--tatbiki-jaune); color: var(--noir); font-size: 1.6rem; font-weight: 900; line-height: 1; }
[dir="rtl"] .btn-retour-jaune { transform: scaleX(-1); }
.btn-retour-jaune:focus-visible { outline: 3px solid var(--blanc); outline-offset: 2px; }
#cadre-services { flex: 1; width: 100%; border: 0; background: #F8FAFC; }

/* [LOGOS-PAIEMENT 2026-11-08] 3 cartes logo + fenêtre de paiement */
.abo-modes, html.theme-b #ecran-abonnement .abo-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; padding: 0; background: none; }
.abo-logo { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; min-height: 104px;
  padding: 12px 8px 10px; background: #FFFFFF; color: #111111; border: 2px solid var(--bord); border-radius: 16px; cursor: pointer; font: inherit; }
.abo-logo img { width: 100%; height: 52px; object-fit: contain; }
.abo-logo span { font-weight: 800; font-size: .9rem; text-align: center; }
.abo-logo.actif { border-color: var(--tatbiki-jaune); box-shadow: 0 0 0 3px var(--tatbiki-jaune); }
.abo-logo:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.abo-fenetre { position: fixed; inset: 0; z-index: 22; display: flex; align-items: flex-end; justify-content: center; }
.abo-fenetre-fond { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); animation: fondu .2s ease-out; }
.abo-fenetre-contenu { position: relative; width: min(100%, 480px); max-height: 92vh; overflow-y: auto; background: var(--fond); color: var(--texte);
  border-radius: 22px 22px 0 0; padding: 14px max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  animation: monte .22s ease-out; }
@keyframes monte { from { transform: translateY(100%); } to { transform: none; } }
.abo-fenetre-tete { display: flex; align-items: center; gap: 12px; }
.abo-fenetre-tete h2 { flex: 1; margin: 0; font-size: 1.15rem; }
.abo-fenetre-logo { height: 40px; width: auto; max-width: 110px; object-fit: contain; background: #FFFFFF; border-radius: 8px; padding: 4px; }
.abo-fenetre .abo-cp, html.theme-b .abo-fenetre .abo-cp { display: block; text-align: center; }
.abo-fenetre .abo-qr, html.theme-b .abo-fenetre .abo-cp .abo-qr { width: 190px; height: 190px; max-width: 70%; margin: 10px auto; }
.abo-fenetre .abo-tel, html.theme-b .abo-fenetre .abo-cp .abo-tel { text-align: center; word-break: break-all; }
html.theme-b .abo-fenetre .abo-cp .btn { width: 100%; }
body.fenetre-ouverte { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .abo-fenetre-contenu, .abo-fenetre-fond { animation: none; } }

/* [RUBRIQUES-PERSO 2026-11-08] « + Nouvelle rubrique » */
.rub-nouvelle-bloc { display: contents; }
.rub-nouvelle { border-style: dashed !important; }
.rub-nouvelle-zone { grid-column: 1 / -1; display: flex; gap: 8px; align-items: stretch; }
.rub-nouvelle-zone[hidden] { display: none; }
.rub-nouvelle-champ { flex: 1; min-width: 0; margin: 0; }
.rub-nouvelle-ok { width: auto; min-height: 48px; margin: 0; padding: 0 16px; }

/* [SAISIE-GRIS 2026-11-08] bouton « + Saisie rapide » en gris foncé à 30 %, texte noir (tous thèmes) */
#btn-saisie, html.theme-b body #btn-saisie { background: rgba(58, 58, 58, .3); color: var(--noir); border: 1.5px solid var(--noir); }

/* [MENU-RUBRIQUES 2026-11-08] */
.mr-sous-titre { margin-top: 22px; font-size: 1rem; }
.mr-liste { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.mr-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--bord); border-radius: 12px; }
.mr-ligne span { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.mr-suppr { flex: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--bord); background: transparent; font-size: 1.1rem; cursor: pointer; }
#panneau-rubriques .vide { opacity: .7; }

/* [MODIF-RUBRIQUE 2026-11-08] */
.mr-actions { display: flex; gap: 6px; flex: none; }
.mr-edition { display: flex; gap: 6px; width: 100%; align-items: stretch; }

/* [QUOTA-PHOTOS 2026-11-08] */
.photos-restantes { margin: 6px 0 10px; text-align: center; font-size: .9rem; font-weight: 700; color: var(--texte2); }
.photos-restantes.epuise { color: var(--danger); }

/* [PACKS 2026-11-08] carte photos supplémentaires */
.abo-pack { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--bord); }
.abo-pack.actif { border-color: var(--tatbiki-jaune); box-shadow: 0 0 0 3px var(--tatbiki-jaune); }
.abo-pack-titre { margin: 0; font-weight: 800; font-size: 1.05rem; }
.abo-pack-unite { margin: 0; color: var(--texte2); font-weight: 600; }
.abo-pack-ligne { display: flex; align-items: center; gap: 12px; }
.pack-pm { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2px solid var(--noir); background: var(--tatbiki-jaune); color: var(--noir); font-size: 1.7rem; font-weight: 900; line-height: 1; cursor: pointer; }
.pack-pm:disabled { opacity: .35; cursor: default; }
.abo-pack-total { flex: 1; display: flex; flex-direction: column; align-items: center; }
.abo-pack-total b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.abo-pack-total span { font-weight: 700; color: var(--texte2); font-variant-numeric: tabular-nums; }

/* [EXPORT-PRO 2026-11-08] */
.exp-dates { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; margin-top: 10px; }
.exp-dates label { margin: 0; }
.exp-dates input { margin: 0; }
#panneau-export .natures { flex-wrap: wrap; }

/* [PCM 2026-11-08] */
.mr-compte { display: block; margin-top: 2px; font-weight: 600; opacity: .75; }

/* [DECLARATIONS 2026-11-08] */
.decl-pays { font-weight: 800; margin: 0 0 6px; }
.decl-choix { flex-wrap: wrap; }
.decl-liste { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.decl-ligne { display: flex; gap: 12px; padding: 10px 12px; border: 1px solid var(--bord); border-radius: 12px; }
.decl-ligne.proche { border: 2px solid var(--alerte); }
.decl-date { flex: none; width: 92px; display: flex; flex-direction: column; font-weight: 800; font-variant-numeric: tabular-nums; }
.decl-date small, .decl-txt small { font-weight: 600; opacity: .75; }
.decl-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.decl-note { margin-top: 12px; font-size: .85rem; opacity: .75; }
.decl-lien { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.alerte-decl { display: block; width: 100%; margin: 0 0 10px; padding: 12px 14px; border-radius: var(--rayon); border: 2px solid var(--alerte);
  background: rgba(245, 124, 0, .12); color: var(--texte); font: inherit; font-weight: 800; text-align: start; cursor: pointer; }
.alerte-decl.urgent { border-color: var(--danger); background: rgba(198, 40, 40, .12); }

/* [DEVISE-PAYS 2026-11-08] */
.menu-devise { width: 100%; min-height: 46px; margin: 4px 0 12px; border-radius: 10px; font: inherit; font-weight: 700; padding: 0 10px; }

/* [ETRANGER 2026-11-08] PayPal seul */
.abo-modes.un-seul, html.theme-b #ecran-abonnement .abo-modes.un-seul { grid-template-columns: minmax(0, 220px); justify-content: center; }

/* [MODES-PERSO-PRO 2026-11-12] bascule Perso / Pro */
.modes { display: flex; gap: 6px; margin: 10px 16px 0; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.06); }
.modes .mode { flex: 1; border: 0; border-radius: 10px; padding: 10px 8px; font: inherit; font-weight: 700; background: transparent; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.modes .mode.actif { background: #0F0F0F; color: #fff; }
.modes .mode.verrouille { opacity: .45; }
.modes .mode .cadenas { font-size: .85em; }

/* [RETOUR-JAUNE 2026-11-12] flèche de retour jaune, léger contour noir, sur tous les écrans et menus */
.fleche, html.theme-b .barre .fleche, html.theme-b .btn-icone.fleche { background: #FFCC00 !important; color: #111 !important; border: 1.5px solid #111 !important; border-radius: 50% !important;
  width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; }
.fleche svg { pointer-events: none; }
.menu-tete { justify-content: flex-start; gap: 12px; }
.menu-tete h2 { flex: 1; }

/* [FLECHE-VRAIE 2026-11-12] vraie flèche ←, plus grande et plus visible */
.fleche, html.theme-b .barre .fleche, html.theme-b .btn-icone.fleche { width: 50px !important; min-width: 50px !important; height: 50px !important; min-height: 50px !important; border-width: 2px !important; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.fleche .fleche-svg { width: 28px; height: 28px; }

/* [EXCEL-ACTIONS 2026-11-12] */
.exp-actions { margin-top: 12px; padding: 12px; border: 1.5px solid #111; border-radius: 14px; background: #FFF8D6; }
.exp-actions-titre { margin: 0 0 10px; font-weight: 700; word-break: break-all; }
.exp-actions-btns { display: flex; flex-direction: column; gap: 8px; }

/* [TEL-INTL 2026-11-12] pays + indicatif */
.pays-tel { margin-bottom: 12px; }
.tel-ligne { display: flex; align-items: stretch; gap: 8px; }
.tel-ligne input { flex: 1; min-width: 0; }
.tel-indicatif { display: flex; align-items: center; padding: 0 12px; border-radius: var(--rayon); border: 2px solid var(--bord); background: var(--surface); font-weight: 800; font-size: 1.1rem; }
.tel-indicatif[hidden] { display: none; }

/* [PARRAINAGE 2026-11-12] */
.parr-solde { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--rayon); background: #FFD21F; color: #111; font-weight: 800; margin: 6px 0 10px; }
.parr-solde b { font-size: 1.6rem; }
.parr-regle { font-size: .95rem; line-height: 1.4; margin: 0 0 12px; }
#ecran-parrainage label { display: block; font-weight: 700; margin-bottom: 4px; }
#parr-lien { width: 100%; box-sizing: border-box; margin-bottom: 10px; font-size: .95rem; }
.parr-boutons { display: flex; gap: 8px; margin: 8px 0 12px; }
.parr-boutons .btn { flex: 1; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.parr-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.parr-stats div { flex: 1; text-align: center; padding: 10px; border-radius: var(--rayon); border: 2px solid var(--bord); }
.parr-stats b { display: block; font-size: 1.5rem; }
.parr-stats span { font-size: .85rem; }
.parr-histo { list-style: none; padding: 0; margin: 0; }
.parr-histo li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--bord); font-size: .92rem; }
.parr-histo li.plus b { color: #1a7f37; } .parr-histo li.moins b { color: #c62828; } .parr-histo li.vide { opacity: .7; }
.abo-credits { border: 2px solid #FFD21F; }
.abo-credits-titre { font-weight: 800; font-size: 1.1rem; margin: 0 0 4px; }
.abo-credits-texte { margin: 0 0 10px; }
.menu-parrain { font-weight: 800; }
/* [NOM-ENTETE 2026-11-12] nom long : une ligne, coupé proprement */
.barre-accueil #accueil-mois { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* [BAS-PARRAIN 2026-11-12] onglet Parrainage bien visible */
.bas-parrain .bas-ico { position: relative; }
.bas-parrain .bas-txt { font-weight: 900; color: #B8860B; }
html.theme-b .bas-parrain .bas-svg { color: #D4A000; }
.bas-pastille { position: absolute; top: -6px; inset-inline-end: -14px; min-width: 18px; padding: 1px 5px; border-radius: 999px; background: #c62828; color: #fff; font-size: .68rem; font-weight: 900; line-height: 16px; text-align: center; }

/* [CARTE-PARRAIN 2026-11-12] */
.carte-parrain { display: block; width: 100%; text-align: start; font: inherit; cursor: pointer; background: #FFD21F; color: #111; border: 2px solid #111; padding: 14px 16px; margin-top: 12px; }
.carte-parrain .cp-haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.carte-parrain .cp-titre { font-weight: 900; font-size: 1.15rem; }
.carte-parrain .cp-solde { font-weight: 900; font-size: 1rem; background: #111; color: #FFD21F; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.carte-parrain .cp-texte { display: block; margin: 8px 0 10px; font-weight: 600; line-height: 1.35; }
.carte-parrain .cp-bouton { display: block; text-align: center; background: #111; color: #fff; border-radius: 12px; padding: 11px; font-weight: 800; }
html.theme-b .carte.carte-parrain, .carte.carte-parrain { background: #FFD21F; color: #111; border: 2px solid #111; }

/* [CARTE-PARRAIN v2 2026-11-12] compacte, gris clair, cadeau et compteur en grand */
html.theme-b .carte.carte-parrain, .carte.carte-parrain { display: flex; align-items: center; gap: 12px; background: #ECECEC; color: #111; border: 1.5px solid #D6D6D6; padding: 10px 14px; }
.carte-parrain .cp-cadeau { font-size: 2.4rem; line-height: 1; flex: none; }
.carte-parrain .cp-milieu { flex: 1; min-width: 0; }
.carte-parrain .cp-titre { display: block; font-weight: 900; font-size: 1.02rem; }
.carte-parrain .cp-texte { display: block; margin: 2px 0 0; font-weight: 600; font-size: .85rem; line-height: 1.3; opacity: .8; }
.carte-parrain .cp-solde { flex: none; font-size: 1.55rem; font-weight: 900; background: #111; color: #FFD21F; border-radius: 14px; padding: 6px 12px; white-space: nowrap; }

/* [PAGE-PARRAIN 2026-11-12] */
.page-parrain { padding: 0 16px 24px; max-width: 560px; margin: 0 auto; }
.page-parrain .parr-solde { font-size: 1.1rem; }
.page-parrain .parr-solde b { font-size: 2rem; }
.page-parrain h3 { margin: 14px 0 6px; }

/* [CHARTE-MENU 2026-11-13] ☰ en haut à gauche + liste des applis Tatbiki dans le menu */
.gauche-entete { display: flex; align-items: center; gap: 6px; justify-self: start; }
.barre-accueil .gauche-entete .logo-tatbiki { height: 36px; }
.menu-titre-apps { margin: 14px 6px 4px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5F5F5F; }
.m-apps { display: flex; flex-direction: column; gap: 4px; }
.m-app { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; text-decoration: none; color: #111; font-weight: 700; }
.m-app:hover, .m-app:focus-visible { background: #EDEDED; }
.m-app .m-pastille { width: 34px; height: 34px; border-radius: 10px; background: #FFCC00; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.m-app .m-pastille svg { width: 20px; height: 20px; fill: none; stroke: #111; stroke-width: 2; }
.m-app.cours .m-pastille { background: #EDEDED; }
.m-app small { margin-inline-start: auto; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #EDEDED; color: #3A3A3A; }
.m-app.ici small { background: #111; color: #FFCC00; }

/* [ASSISTANCE 2026-11-13] fil de discussion (charte jaune/gris/noir) */
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aide-contenu { display: flex; flex-direction: column; }
.aide-fil { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px 0; min-height: 180px; }
.aide-msg { margin: 0; padding: 10px 14px; border-radius: 16px; max-width: 88%; white-space: pre-wrap; line-height: 1.45; }
.aide-bot { align-self: flex-start; background: var(--gris-clair); color: var(--noir); border: 1px solid var(--bord); }
.aide-moi { align-self: flex-end; background: var(--tatbiki-jaune); color: var(--noir); }
.aide-attente { opacity: .6; }
.aide-question { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid var(--bord); border-radius: 14px; font: inherit; resize: none; margin-top: 8px; }

/* [SUGGESTIONS 2026-11-13] */
.sugg-merci { background: var(--gris-clair); border: 1px solid var(--bord); border-radius: 14px; padding: 12px 14px; font-weight: 600; }

/* [MAQUETTE-ACCUEIL 19/11/2026] accueil selon la maquette opérateur : carte du total sans anneau, boutons côte à côte */
#ecran-accueil .carte-total .donut { display: none; }
.carte-total { gap: 16px; padding: 18px; border-radius: 20px; }
.ic-portefeuille { position: relative; flex-shrink: 0; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.ic-horloge { position: absolute; right: -2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; background: #FFCC00; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.carte-total .total-bloc { flex: 1; min-width: 0; }
.barre-rep { display: flex; height: 10px; border-radius: 99px; background: #EDEDEA; overflow: hidden; margin: 10px 0 8px; }
.barre-rep .rep-perso { background: #111111; width: 0; transition: width .3s; }
.barre-rep .rep-pro { background: #FFCC00; width: 0; transition: width .3s; }
.carte-total .legende { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; }
.carte-total .legende > div { display: flex; align-items: center; gap: 5px; }
.carte-total .legende b { margin-inline-start: 2px; }
.carte-total .legende .pastille { border-radius: 50%; }
.legende > div:has(.pastille.perso) { order: -1; }
.actions-accueil { display: flex; gap: 10px; margin: 14px 0 6px; }
.actions-accueil .btn { flex: 1; min-width: 0; margin: 0; min-height: 56px; height: 56px; font-size: 1rem; border-radius: 16px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.theme-b .actions-accueil .btn-photo { min-height: 56px; font-size: 1rem; border-radius: 16px; }
.modes { margin: 10px 0 0; }
.modes .mode, #ecran-accueil .filtres .filtre { min-height: 44px; }

/* [LOT3 20/11] abonnement expiré : boutons d'ajout grisés */
.btn.verrouille { opacity: .45; filter: grayscale(1); }
