/* L'app mobile (essai) — accueil, repas, recettes : la même maison (couleurs, Archivo, IBM Plex Mono), en version douce : des
   formes rondes, des pastilles, des feuilles qui montent du bas, peu de texte. Rien ici ne touche le reste du site. */
body.appli-repas { margin: 0; padding-bottom: 0 !important; background: #F3F4EE; color: #18211B; font-family: Archivo, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
body.appli-repas .barre-onglets, body.appli-repas .minuteur-alerte { bottom: 96px; }
body.ar-bloque { overflow: hidden; }
.ar-flottant { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: env(safe-area-inset-top) 0 0; background: rgba(243, 244, 238, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 0 0 26px 26px; box-shadow: 0 8px 24px rgba(24, 33, 27, 0.10);
  transform: translateY(-110%); transition: transform 0.2s ease-out; }
.ar-flottant.visible { transform: none; }
@media (prefers-reduced-motion: reduce) { .ar-flottant { transition: none; } }
.ar-flottant-corps { max-width: 520px; margin: 0 auto; padding: 8px 16px 10px; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; }
.ar-fl-ligne { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.ar-fl-titre { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ar-fl-titre b { font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-fl-titre small { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #4A5650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-flottant .ar-segments { margin: 0; }
.ar-fl-score { flex: none; padding: 0; border: 0; background: none; display: flex; cursor: pointer; }
.ar-flottant .ar-segments button { height: 34px; font-size: 14px; }
.ar-flottant .ar-anneau text { font-family: Archivo, sans-serif; font-weight: 800; fill: #18211B; }
.ar { --fond: #F3F4EE; --encre: #18211B; --texte-2: #4A5650; --blanc: #FFFFFF; --gris: #E6E8E0; --accent: #C23D17;
  --bon: #1E5A43; --bon-fond: #E3EEE7; --moyen: #D9A93B; --moyen-fond: #F4E3B5; --moyen-texte: #6A4B0C; --faible: #C23D17; --faible-fond: #FBE9E3; --faible-texte: #8A2A0F;
  max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: 0 0 calc(110px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.ar button, .ar a { font: inherit; color: inherit; }
.ar-chargement { padding: 40px 20px; color: #4A5650; }
.ar h1, .ar h2 { margin: 0; letter-spacing: -0.015em; }
.ar-surtitre { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: #4A5650; }
.ar-espace { margin: 22px 4px 10px; }
.ar-chiffres { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #4A5650; }

/* boutons ronds et pilules */
.ar-rond { flex: none; width: 44px; height: 44px; border-radius: 22px; border: 0; background: #FFFFFF; color: #18211B; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.ar-rond.ar-clair { background: #F3F4EE; }
.ar-rond.ar-blanc { background: #FFFFFF; }
.ar-rond.ar-sombre { width: 48px; height: 48px; border-radius: 24px; background: #18211B; color: #F3F4EE; }
.ar-rond.ar-verre { background: rgba(255, 255, 255, 0.92); }
.ar-bouton { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.ar-bouton.ar-sombre { background: #18211B; color: #F3F4EE; }
.ar-bouton.ar-accent { background: #C23D17; color: #FFFFFF; }
.ar-bouton.ar-blanc { background: #FFFFFF; color: #18211B; }
.ar-bouton.ar-large { width: 100%; min-height: 56px; font-size: 17px; }
.ar-bouton.ar-centrer { display: flex; margin: 22px auto 0; }
.ar-lien { border: 0; background: none; padding: 6px 0; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ar-pastille { flex: none; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; background: #FFFFFF; }
.ar-pastille.grande { padding: 8px 14px; font-size: 15px; }
.ar-pastille.bon { background: #E3EEE7; color: #1E5A43; }
.ar-pastille.moyen { background: #F4E3B5; color: #6A4B0C; }
.ar-pastille.faible { background: #FBE9E3; color: #8A2A0F; }

/* l'en-tête et la semaine */
.ar-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(16px + env(safe-area-inset-top)) 20px 4px; }
.ar-tete h1 { font-size: 26px; font-weight: 800; }
.ar-tete-actions { display: flex; gap: 8px; }
.ar-semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 10px 12px 4px; touch-action: pan-y; }
.ar-semaine button { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.ar-semaine button span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #4A5650; }
.ar-semaine button b { width: 40px; height: 40px; border-radius: 20px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: #4A5650; }
.ar-semaine button.note b { color: #18211B; border: 3px solid #CDD1C6; }
.ar-semaine button.bon b { border-color: #1E5A43; }
.ar-semaine button.moyen b { border-color: #E7C873; }
.ar-semaine button.faible b { border-color: #C23D17; }
.ar-semaine button.aujourdhui span { color: #18211B; font-weight: 600; }
.ar-semaine button[aria-current="date"] b { background: #18211B; color: #F3F4EE; border: 0; font-weight: 800; }

/* le jour en une carte */
.ar-jour { margin: 12px 16px 0; width: calc(100% - 32px); padding: 14px 16px; border-radius: 28px; border: 0; background: #FFFFFF; display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer; }
.ar-jour-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ar-jour-texte b { font-size: 17px; font-weight: 600; line-height: 1.25; }
.ar-jour-texte small { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #4A5650; }
.ar-anneau { flex: none; }
.ar-anneau text { font-family: Archivo, sans-serif; font-weight: 800; fill: #18211B; }
.ar-anneau-fond { stroke: #EEF0E8; }
.ar-anneau-val { stroke: #CDD1C6; }
.ar-anneau.bon .ar-anneau-val { stroke: #1E5A43; }
.ar-anneau.moyen .ar-anneau-val { stroke: #D9A93B; }
.ar-anneau.faible .ar-anneau-val { stroke: #C23D17; }

/* les repas : un segment, des cartes à faire glisser */
.ar-segments { margin: 16px 16px 0; padding: 4px; border-radius: 999px; background: #E6E8E0; display: flex; gap: 4px; }
.ar-segments button { flex: 1 1 0; min-width: 0; height: 40px; border-radius: 999px; border: 0; background: transparent; font-size: 15px; font-weight: 600; color: #4A5650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.ar-segments button[aria-selected="true"] { background: #18211B; color: #F3F4EE; }
.ar-cartes { margin-top: 14px; padding: 0 16px 6px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.ar-cartes::-webkit-scrollbar { display: none; }
.ar-carte { flex: 0 0 100%; scroll-snap-align: start; border-radius: 32px; background: #FFFFFF; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(24, 33, 27, 0.08); }
.ar-carte-photo { position: relative; height: 170px; margin: 8px 8px 0; border-radius: 26px; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; box-sizing: border-box; }
.ar-carte-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-carte-photo .ar-pastille { position: relative; }
.ar-carte.vide .ar-carte-photo { height: 110px; opacity: 0.55; }
.ar-carte-corps { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ar-carte-corps h2 { font-size: 22px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ar-carte-corps h2.ar-vide { font-weight: 600; color: #4A5650; }
.ar-lieu { margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: #F3F4EE; font-family: Archivo, sans-serif; font-size: 12px; letter-spacing: 0; text-transform: none; }
.ar-carte-pied { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-points { display: flex; gap: 6px; }
.ar-points span { width: 8px; height: 8px; border-radius: 4px; background: #CDD1C6; transition: width 0.2s; }
.ar-points span.actif { width: 22px; background: #18211B; }

/* la barre du bas, flottante */
.ar-nav { position: fixed; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom) * 0.6); transform: translateX(-50%); width: min(488px, calc(100% - 32px)); height: 64px; box-sizing: border-box;
  border-radius: 32px; background: #18211B; display: flex; align-items: center; justify-content: space-around; padding: 0 8px; z-index: 30; box-shadow: 0 12px 30px rgba(24, 33, 27, 0.25); }
.ar-nav .ar-rond { width: 48px; height: 48px; border-radius: 24px; background: transparent; color: #A9B2AC; }
.ar-nav .ar-rond.actif { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.ar-plus { text-decoration: none; width: 56px; height: 56px; border-radius: 28px; border: 0; background: #C23D17; color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* un repas en grand */
.ar-repas { padding-bottom: 20px; }
.ar-heros { position: relative; height: 300px; border-radius: 0 0 40px 40px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: calc(18px + env(safe-area-inset-top)) 18px 22px; box-sizing: border-box; }
.ar-heros > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-heros-haut, .ar-heros-bas { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ar-heros-bas > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.88); }
.ar-heros h1 { font-size: 24px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.ar-pilules { padding: 16px 16px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.ar-pilule { padding: 8px 14px; border-radius: 999px; background: #FFFFFF; font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
.ar-pilule.bien { background: #E3EEE7; color: #1E5A43; }
.ar-pilule.mal { background: #FBE9E3; color: #8A2A0F; }
.ar-plat { margin: 16px 16px 0; }
.ar-plat-nom { margin: 0 6px 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.ar-plat-seul { justify-content: flex-end; }
.ar-produits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-produits li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 24px; background: #FFFFFF; }
.ar-vignette { flex: none; width: 44px; height: 44px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: rgba(24, 33, 27, 0.55); }
.ar-produit-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-produit-texte b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ar-produit-texte small { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #4A5650; }
.ar-pas { flex: none; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #F3F4EE; }
.ar-pas button { width: 36px; height: 36px; border-radius: 18px; border: 0; background: #FFFFFF; font-size: 18px; cursor: pointer; }
.ar-pas-large { justify-content: space-between; }
.ar-pas-large button { width: 44px; height: 44px; border-radius: 22px; font-size: 20px; }
.ar-pas-large output { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600; text-align: center; }
.ar-retirer { flex: none; width: 32px; height: 32px; border-radius: 16px; border: 0; background: transparent; color: #4A5650; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ar-repas-pied { margin: 22px 16px 0; }

/* les feuilles qui montent du bas */
.ar-feuille-fond { position: fixed; inset: 0; z-index: 60; background: rgba(24, 33, 27, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.ar-feuille-fond[hidden] { display: none; }
.ar-feuille { width: min(520px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; box-sizing: border-box; border-radius: 36px 36px 0 0; background: #F3F4EE;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; animation: ar-monte 0.22s ease-out; }
@keyframes ar-monte { from { transform: translateY(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ar-feuille { animation: none; } }
.ar-poignee { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: #CDD1C6; }
.ar-feuille-tete { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ar-feuille-tete h2 { font-size: 24px; font-weight: 800; }
.ar-recherche { margin-top: 14px; }
.ar-recherche .barre-recherche { border-radius: 26px; overflow: hidden; border: 0; box-shadow: none; background: #FFFFFF; }
.ar-recherche .barre-recherche input { border: 0; background: transparent; }
.ar-recherche .barre-recherche-bouton { border: 0; background: transparent; }
.ar-recherche .barre-recherche-ok { background: #18211B; color: #F3F4EE; border-radius: 999px; }
.ar-recherche .repas-choix { grid-template-columns: minmax(0, 1fr); }
.ar-recherche .choix-repas { border: 0; border-radius: 22px; }
.ar-puces { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-puces button, .ar-puces span { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: #FFFFFF; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ar-puces-statiques span { font-weight: 400; cursor: default; }
.ar-puces-statiques span b { font-family: 'IBM Plex Mono', monospace; }
.ar-puces-statiques span.mal { background: #FBE9E3; color: #8A2A0F; }
#ar-choix:not(:empty) { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.ar-choisi { padding: 12px; border-radius: 26px; background: #FFFFFF; box-shadow: inset 0 0 0 2px #18211B; display: flex; flex-direction: column; gap: 12px; }
.ar-choisi-haut { display: flex; align-items: center; gap: 12px; }
.ar-choisi-haut b { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.ar-statut { margin: 10px 4px 0; font-size: 14px; color: #8A2A0F; }
.ar-statut:empty { display: none; }

/* le détail du jour */
.ar-centre { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; text-align: center; }
.ar-verdict { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25; }
.ar-barre { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ar-barre p { margin: 0; display: flex; justify-content: space-between; font-size: 15px; }
.ar-barre p span { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #4A5650; }
.ar-barre p span.bien { color: #1E5A43; }
.ar-barre p span.mal { color: #8A2A0F; }
.ar-jauge { display: block; height: 12px; border-radius: 6px; background: #E6E8E0; overflow: hidden; }
.ar-jauge i { display: block; height: 12px; border-radius: 6px; }
.ar-jauge i.bien { background: #1E5A43; }
.ar-jauge i.moyen { background: #D9A93B; }
.ar-jauge i.mal { background: #C23D17; }

/* le mois */
.ar-mois-nav { display: flex; justify-content: space-between; margin-top: 10px; }
.ar-mois-entetes, .ar-mois { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ar-mois-entetes { margin-top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #4A5650; text-align: center; }
.ar-mois { margin-top: 8px; }
.ar-mois button { height: 44px; border-radius: 22px; border: 0; background: transparent; font-size: 14px; color: #4A5650; cursor: pointer; }
.ar-mois button.bon { background: #1E5A43; color: #FFFFFF; }
.ar-mois button.moyen { background: #F0D99A; color: #3D2A05; }
.ar-mois button.faible { background: #C23D17; color: #FFFFFF; }
.ar-mois button.choisi { box-shadow: 0 0 0 3px #F3F4EE, 0 0 0 5px #18211B; font-weight: 800; }
.ar-legende { margin-top: 14px; display: flex; justify-content: center; gap: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #4A5650; }
.ar-legende span { display: flex; align-items: center; gap: 6px; }
.ar-legende i { width: 10px; height: 10px; border-radius: 5px; }
.ar-legende i.bon { background: #1E5A43; } .ar-legende i.moyen { background: #D9A93B; } .ar-legende i.faible { background: #C23D17; }
.ar-bilan-mois { margin-top: 20px; padding: 16px 18px; border-radius: 28px; background: #FFFFFF; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ar-bilan-mois > div { display: flex; flex-direction: column; gap: 4px; }
.ar-bilan-mois small { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #4A5650; }

/* sans accord */
.ar-accord { padding: calc(40px + env(safe-area-inset-top)) 24px; display: flex; flex-direction: column; gap: 14px; }
.ar-accord h1 { font-size: 28px; font-weight: 800; }
.ar-accord p { margin: 0; font-size: 16px; line-height: 1.5; color: #4A5650; }

/* l'accueil */
.ar-pile { display: flex; flex-direction: column; gap: 12px; }
.ar-pile .ar-jour { text-decoration: none; color: inherit; }
.ar-faits { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ar-faits span { padding: 3px 10px; border-radius: 999px; background: #F3F4EE; font-size: 12px; color: #4A5650; }
.ar-faits span.fait { background: #E3EEE7; color: #1E5A43; font-weight: 600; }
.ar-bouton.ar-a-noter { margin: 0 16px; width: auto; }
.ar-tuiles { margin: 16px 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ar-tuile { min-height: 112px; padding: 14px; box-sizing: border-box; border-radius: 26px; border: 0; background: #FFFFFF; color: #18211B; text-decoration: none; text-align: left;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; cursor: pointer; }
.ar-tuile-icone { width: 40px; height: 40px; border-radius: 20px; background: #F3F4EE; display: flex; align-items: center; justify-content: center; margin-bottom: auto; }
.ar-tuile b { font-size: 17px; }
.ar-tuile small { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #4A5650; }
.ar-marge { margin-left: 20px; }
.ar-defile { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.ar-defile::-webkit-scrollbar { display: none; }
.ar-mini { flex: 0 0 140px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; color: #18211B; text-decoration: none; }
.ar-mini-photo { position: relative; height: 140px; border-radius: 24px; overflow: hidden; }
.ar-mini-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-mini b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-pied { margin: 22px 20px 0; font-size: 13px; color: #4A5650; text-align: center; }
.ar-pied a { color: #4A5650; }

/* les recettes */
.ar-recettes { margin: 16px 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.ar-recette { display: flex; flex-direction: column; gap: 6px; color: #18211B; text-decoration: none; min-width: 0; }
.ar-recette-photo { position: relative; aspect-ratio: 1; border-radius: 26px; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-end; padding: 8px; box-sizing: border-box; }
.ar-recette-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-recette-photo i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 44px; font-weight: 800; color: rgba(24, 33, 27, 0.35); }
.ar-recette-photo .ar-pastille { position: relative; font-size: 12px; padding: 4px 10px; }
.ar-recette b { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-recette small { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #4A5650; }
.ar-vide-bloc { margin: 24px 16px 0; padding: 22px; border-radius: 28px; background: #FFFFFF; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ar-vide-bloc b { font-size: 18px; }
.ar-vide-bloc p { margin: 0; color: #4A5650; }
.ar-parts { margin: 18px 16px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 600; }
.ar-parts .ar-pas output { min-width: 72px; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600; }
.ar-marge-h { margin: 0 16px; }
.ar-actions { margin: 22px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.ar-actions-ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ar-centrer-lien { align-self: center; color: #4A5650; }
.ar-choix-repas { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ar-texte { margin: 14px 0; color: #4A5650; }

/* la journée : le haut reste figé (date, jours, résumé du jour, onglets) ; la page défile sous lui, chaque carte
   montre tous ses plats */
.ar-haut-fixe { position: sticky; top: 0; z-index: 20; background: #F3F4EE; padding-bottom: 10px; box-shadow: 0 10px 18px -14px rgba(24, 33, 27, 0.35); }
.ar-haut-fixe .ar-tete { padding-top: calc(10px + env(safe-area-inset-top)); }
.ar-haut-fixe .ar-tete h1 { font-size: 22px; }
.ar-jours { display: flex; gap: 2px; padding: 8px 12px 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.ar-jours::-webkit-scrollbar { display: none; }
.ar-jours button { flex: 0 0 calc((min(100vw, 520px) - 36px) / 7); scroll-snap-align: center; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.ar-jours button span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #4A5650; }
.ar-jours button.premier span { color: #C23D17; font-weight: 600; }
.ar-jours button b { width: 40px; height: 40px; border-radius: 20px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: #4A5650; }
.ar-jours button.note b { color: #18211B; border: 3px solid #CDD1C6; }
.ar-jours button.bon b { border-color: #1E5A43; }
.ar-jours button.moyen b { border-color: #E7C873; }
.ar-jours button.faible b { border-color: #C23D17; }
.ar-jours button.aujourdhui span { color: #18211B; font-weight: 600; }
.ar-jours button[aria-current="date"] b { background: #18211B; color: #F3F4EE; border: 0; font-weight: 800; }
.ar-jour.ar-jour-compact { margin-top: 8px; padding: 8px 12px; border-radius: 24px; gap: 12px; }
.ar-jour-compact .ar-jour-texte b { font-size: 15px; }
.ar-chevron { flex: none; color: #4A5650; display: flex; }
.ar-haut-fixe .ar-segments { margin-top: 10px; }
.ar-carte-plats { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-carte-plats li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ar-carte-plats b { font-size: 18px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.ar-carte-plats small { flex: none; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #4A5650; }
#ar-cartes { align-items: flex-start; padding-bottom: 40px; gap: 16px; }
#ar-cartes .ar-carte-photo { height: 150px; }
#ar-cartes .ar-carte.vide .ar-carte-photo { height: 90px; }
#ar-points { position: fixed; left: 0; right: 0; bottom: calc(80px + env(safe-area-inset-bottom) * 0.6); z-index: 25; justify-content: center; pointer-events: none; }
#ar-points span { box-shadow: 0 0 0 3px #F3F4EE; }
.ar-ajout-modes { margin-top: 14px; }
.ar-ajout-modes .ar-bouton { min-height: 48px; font-size: 15px; }
.ar-bouton.ar-petit { min-height: 44px; padding: 0 16px; font-size: 15px; }
.ar-rond.ar-petit-rond { width: 38px; height: 38px; border-radius: 19px; overflow: hidden; padding: 0; margin-left: auto; }
.ar-rond.ar-petit-rond img { width: 100%; height: 100%; object-fit: cover; }
.ar-plat-nom > span { flex: 1; min-width: 0; }
.ar-repas-pied .ar-statut { color: #4A5650; }
.ar-lien-droite { margin: 6px 4px 0; text-align: right; }
.ar-lien-droite .ar-lien { color: #4A5650; }

/* plusieurs photos dans un repas : elles défilent en fondu */
.ar-diapos { position: absolute; inset: 0; }
.ar-diapos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.ar-diapos img.visible { opacity: 1; }
.ar-diapos-points { position: absolute; left: 0; right: 0; top: 10px; display: flex; justify-content: center; gap: 5px; }
.ar-heros .ar-diapos-points { top: auto; bottom: 8px; }
.ar-diapos-points i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.6); }
.ar-diapos-points i.actif { width: 16px; background: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .ar-diapos img { transition: none; } }

/* aux bords : la veille et le lendemain, en carte fantôme */
.ar-carte { cursor: pointer; }
.ar-carte.ar-fantome { cursor: default; }
.ar-fantome-jour { position: absolute; top: 10px; left: 12px; padding: 6px 12px; border-radius: 999px; background: #18211B; color: #F3F4EE; font-size: 13px; font-weight: 600; }
/* le % d'un plat */
.ar-plat-chiffres { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.ar-plat-chiffres small { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #4A5650; }
.ar-pastille.petite { padding: 2px 8px; font-size: 11px; }
.ar-plat-nom > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
/* le restaurant dans l'en-tête du repas */
.ar-heros-resto { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 600; color: #18211B; text-decoration: none; }
a.ar-heros-resto { text-decoration: underline; text-underline-offset: 3px; }
/* feuilles : une recette, au restaurant */
.ar-feuille-photo { margin-top: 12px; height: 160px; border-radius: 24px; overflow: hidden; }
.ar-feuille-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-parts.ar-parts-feuille { margin: 16px 0 6px; }
.ar-pilules.ar-pilules-feuille { padding: 0; margin-bottom: 4px; }
.ar-ingredients-court { font-size: 14px; line-height: 1.45; }
.ar-lieux { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-lieux button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 0; border-radius: 22px; background: #FFFFFF; text-align: left; cursor: pointer; }
.ar-nouveau-lieu { display: flex; gap: 8px; margin-top: 12px; }
.ar-nouveau-lieu input, .ar-champ input { flex: 1; min-width: 0; height: 50px; box-sizing: border-box; padding: 0 18px; border: 0; border-radius: 25px; background: #FFFFFF; font: inherit; font-size: 16px; color: #18211B; }
.ar-champ { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ar-champ > span { margin-left: 6px; font-size: 14px; font-weight: 600; }
.ar-recherche.ar-recherche-serree { margin-top: 0; }
.ar-forfaits button { font-size: 13px; }
.ar-forfaits button[aria-checked="true"] { background: #18211B; color: #F3F4EE; }
#ar-resto-els:not(:empty) { margin-top: 10px; }
.ar-champ input { flex: none; }
.ar-heros h1 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ar-espace-haut { margin-top: 10px; }
#ar-trouvees:not(:empty) { margin-top: 4px; }
#ar-plat-els:not(:empty) { margin-top: 10px; }

/* le suivi : widget de l'accueil et écran détaillé */
.ar-suivi-carte { margin: 12px 16px 0; padding: 14px 16px 12px; border-radius: 28px; background: #FFFFFF; display: flex; flex-direction: column; gap: 10px; }
.ar-suivi-carte[hidden] { display: none; }
.ar-suivi-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-segments.ar-segments-mini { margin: 0; padding: 3px; }
.ar-segments.ar-segments-mini button { height: 32px; padding: 0 12px; font-size: 13px; flex: none; }
.ar-suivi-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ar-suivi-chiffres div { display: flex; flex-direction: column; gap: 2px; }
.ar-suivi-chiffres b { font-size: 26px; font-weight: 800; line-height: 1; }
.ar-suivi-chiffres b small { font-size: 14px; font-weight: 600; color: #4A5650; }
.ar-suivi-chiffres b.bon { color: #1E5A43; } .ar-suivi-chiffres b.moyen { color: #A9781A; } .ar-suivi-chiffres b.faible { color: #C23D17; }
.ar-suivi-chiffres span { font-size: 12px; color: #4A5650; line-height: 1.3; }
.ar-courbe { display: block; width: 100%; height: 80px; }
.ar-courbe-ligne { fill: none; stroke: #18211B; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ar-courbe-point { fill: #FFFFFF; stroke: #18211B; stroke-width: 1.5; }
.ar-courbe-cible { stroke: #1E5A43; stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ar-assiduite { display: flex; flex-wrap: wrap; gap: 5px; }
.ar-assiduite i { width: 12px; height: 12px; border-radius: 6px; background: #E6E8E0; box-sizing: border-box; }
.ar-assiduite i.partiel { background: #FFFFFF; border: 2.5px solid #D9A93B; }
.ar-assiduite i.complet { background: #1E5A43; }
.ar-lien-suite { align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; font-size: 14px; font-weight: 600; color: #18211B; text-decoration: none; }
.ar-bloc { margin: 14px 16px 0; padding: 16px; border-radius: 28px; background: #FFFFFF; display: flex; flex-direction: column; gap: 10px; }
.ar-gros { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.1; }
.ar-gros small { font-size: 14px; font-weight: 600; color: #4A5650; }
.ar-bloc .ar-texte { margin: 0; font-size: 14px; line-height: 1.45; }
.ar-legende-jours { margin: 0; display: flex; gap: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #4A5650; }
.ar-legende-jours span { display: flex; align-items: center; gap: 5px; }
.ar-legende-jours i { width: 10px; height: 10px; border-radius: 5px; background: #E6E8E0; box-sizing: border-box; }
.ar-legende-jours i.partiel { background: #FFFFFF; border: 2px solid #D9A93B; } .ar-legende-jours i.complet { background: #1E5A43; }
.ar-score-ligne { display: flex; align-items: center; gap: 14px; }
.ar-bloc .ar-courbe { height: 110px; }
.ar-jours-extremes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ar-jour-lien { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: 20px; background: #F3F4EE; color: #18211B; text-decoration: none; }
.ar-jour-lien > span:first-child { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #4A5650; }
.ar-jour-lien b { font-size: 15px; }
.ar-reperes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ar-repere { display: flex; flex-direction: column; gap: 6px; }
.ar-repere-tete { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.ar-repere-tete span { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #4A5650; }
.ar-repere-tete span.bien { color: #1E5A43; } .ar-repere-tete span.mal { color: #8A2A0F; }
.ar-repere .ar-courbe { height: 44px; }

/* journées complètes, incomplètes, en cours */
.ar-courbe-ligne.pointille { stroke: #A9B0A6; stroke-width: 1.5; stroke-dasharray: 3 4; }
.ar-courbe-point.incomplet { fill: #FFFFFF; stroke: #D9A93B; stroke-width: 2; }
.ar-courbe-point.encours { fill: #FFFFFF; stroke: #C23D17; stroke-width: 2; }
.ar-assiduite i.incomplet, .ar-legende-jours i.incomplet { background: #FFFFFF; border: 2.5px solid #D9A93B; }
.ar-assiduite i.encours, .ar-legende-jours i.encours { background: #FFFFFF; border: 2.5px solid #C23D17; }
.ar-incompletes { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ar-jour-ligne { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: #F3F4EE; color: #18211B; text-decoration: none; }
.ar-jour-ligne b { font-size: 15px; }
.ar-jour-ligne span { flex: 1; min-width: 0; font-size: 13px; color: #4A5650; }

/* une feuille en saisie : pleine page, au-dessus du clavier */
.ar-feuille { position: relative; }
.ar-feuille-fond.haut { align-items: flex-start; }
.ar-feuille.pleine { max-height: none; height: var(--ar-vh, 100dvh); border-radius: 0; padding-top: calc(10px + env(safe-area-inset-top)); animation: none; }
/* un ingrédient en grand */
.ar-produit-bouton { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ar-saisie { margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.ar-saisie .ar-rond { width: 52px; height: 52px; border-radius: 26px; font-size: 24px; }
.ar-saisie input { flex: 1; min-width: 0; height: 64px; box-sizing: border-box; border: 0; border-radius: 32px; background: #FFFFFF; text-align: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 600; color: #18211B; }
.ar-segments.ar-unites { margin: 14px 0 0; }
.ar-unites button { font-size: 13px; }
.ar-unites button[aria-checked="true"] { background: #18211B; color: #F3F4EE; }
.ar-centre-texte { text-align: center; margin: 10px 0 0; }
.ar-feuille.pleine .ar-ajout-modes, .ar-feuille.pleine .ar-ajout-modes + .ar-lien-droite { display: none; }  /* en saisie : la recherche tout en haut */
.ar-fantome[data-fantome="-1"] .ar-fantome-jour { left: auto; right: 12px; }  /* la veille : la date du côté qui paraît en premier */

/* Moi : l'assistant en avant, le compte, les réglages, l'app */
.ar-assistant { margin: 14px 16px 0; padding: 20px 18px; border-radius: 30px; background: #18211B; color: #F3F4EE; display: flex; flex-direction: column; gap: 12px; }
.ar-assistant h2 { font-size: 24px; font-weight: 800; line-height: 1.15; }
.ar-assistant p { margin: 0; font-size: 15px; line-height: 1.5; color: #D9DDD3; }
.ar-surtitre.ar-surtitre-clair { color: #E7C873; }
.ar-assistant-note { font-size: 13px !important; }
.ar-assistant-note a { color: #F3F4EE; }
.ar-adresse { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.ar-adresse code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #FFFFFF; }
.ar-adresse .ar-bouton { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ar-segments.ar-segments-clairs { margin: 0; background: rgba(255, 255, 255, 0.1); }
.ar-segments.ar-segments-clairs button { color: #D9DDD3; }
.ar-segments.ar-segments-clairs button[aria-selected="true"] { background: #F3F4EE; color: #18211B; }
.ar-etapes { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; }
.ar-ligne-reglage { width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 0; border-radius: 22px; background: #F3F4EE; color: #18211B; text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.ar-bloc .ar-lieux { margin-top: 0; }
.ar-ligne-app { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 10px; border-radius: 22px; background: #F3F4EE; }
.ar-bloc .ar-segments { margin: 0; }
.ar-bloc .ar-segments button[aria-checked="true"] { background: #18211B; color: #F3F4EE; }
.ar-avatar { background: #18211B; color: #F3F4EE; }
.ar-carte-assistant { margin: 12px 16px 0; padding: 14px 16px; border-radius: 26px; background: #18211B; color: #F3F4EE; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.ar-carte-assistant[hidden] { display: none; }
.ar-carte-assistant > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-carte-assistant b { font-size: 16px; }
.ar-carte-assistant small { font-size: 13px; color: #D9DDD3; line-height: 1.35; }
.ar-rond.ar-accent-rond { background: #C23D17; color: #FFFFFF; }
.ar .ar-avatar, .ar .ar-carte-assistant { color: #F3F4EE; }
.ar .ar-carte-assistant b { color: #FFFFFF; }
.ar-lieux .ar-ligne-reglage { width: 100%; background: #F3F4EE; }

/* premier lancement */
.ar-bienvenue { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: #F3F4EE; display: flex; flex-direction: column; gap: 12px;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; max-width: 520px; margin: 0 auto; }
.ar-bienvenue-corps { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.ar-bienvenue h1 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.ar-bienvenue h1 em { font-style: normal; color: #C23D17; }
.ar-bienvenue-marque { width: 64px; height: 64px; }
.ar-logo-texte { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #4A5650; }
.ar-logo-texte s { text-decoration-color: #C23D17; text-decoration-thickness: 2px; }
.ar-bienvenue-points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ar-bienvenue-points li { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 22px; background: #FFFFFF; font-size: 16px; line-height: 1.4; }
.ar-bienvenue-points li svg { flex: none; margin-top: 1px; }
.ar-points.ar-points-bienvenue { justify-content: center; margin: 8px 0; }
.ar-accord-ligne { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 22px; background: #FFFFFF; font-size: 15px; line-height: 1.45; }
.ar-accord-ligne input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #1E5A43; }
.ar-bienvenue .ar-texte a { color: #18211B; }
.ar-bienvenue .ar-carte-assistant { margin: 10px 0 0; }

/* la marque « é » en tête des écrans, et la page du concept */
.ar-surtitre .ar-marque { display: inline-flex; vertical-align: middle; margin: -4px 6px 0 0; }
.ar-marque img { width: 22px; height: 22px; display: block; }
.ar-extra { text-decoration-color: #C23D17; text-decoration-thickness: 3px; }
.ar-promesse { margin: 14px 16px 0; padding: 20px 18px; border-radius: 30px; background: #FFFFFF; }
.ar-promesse h2 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.ar-promesse h2 em { font-style: normal; color: #C23D17; }
.ar-promesse p { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: #4A5650; }
.ar-ticket ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; }
.ar-ticket li { display: flex; justify-content: space-between; gap: 10px; }
.ar-ticket li s { text-decoration-color: #C23D17; text-decoration-thickness: 2px; color: #4A5650; }
.ar-ticket-total { margin: 4px 0 0; padding-top: 10px; border-top: 2px dashed #CDD1C6; display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.ar-ticket-total b { color: #1E5A43; }
.ar-densites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ar-densites div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ar-densites small { font-size: 13px; color: #4A5650; }
.ar-pied br + * { display: block; }
.ar-accord-fait { align-items: center; background: #E3EEE7; color: #1E5A43; }
.ar-accord-fait span { color: #18211B; }

/* widget de suivi, plus compact */
.ar-suivi-carte { gap: 6px; padding: 12px 16px 8px; }
.ar-suivi-carte .ar-suivi-chiffres b { font-size: 22px; }
.ar-suivi-carte .ar-courbe { height: 52px; }
.ar-suivi-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-suivi-pied .ar-assiduite { flex: 1; min-width: 0; }
.ar-suivi-pied .ar-assiduite i { width: 9px; height: 9px; }
.ar-suivi-pied .ar-lien-suite { flex: none; min-height: 32px; }
.ar-carte-assistant.connecte .ar-accent-rond { background: #1E5A43; }

.ar-suivi-carte .ar-segments.ar-segments-mini button { height: 28px; padding: 0 10px; font-size: 12px; }
.ar-suivi-carte .ar-suivi-chiffres div { flex-direction: row; align-items: baseline; gap: 5px; }
.ar-suivi-carte .ar-suivi-chiffres b { font-size: 20px; }
.ar-suivi-carte .ar-suivi-chiffres span { white-space: nowrap; }

/* les points des courbes : ronds quelle que soit la largeur (épaisseur de trait fixe) */
.ar-courbe-point-bord, .ar-courbe-point-coeur { fill: none; stroke-linecap: round; }
.ar-courbe-point-bord { stroke: #18211B; stroke-width: 7; }
.ar-courbe-point-coeur { stroke: #FFFFFF; stroke-width: 3.5; }
.ar-courbe-point-bord.incomplet { stroke: #D9A93B; stroke-width: 8; }
.ar-courbe-point-bord.encours { stroke: #C23D17; stroke-width: 8; }
.ar-courbe-point-coeur.incomplet, .ar-courbe-point-coeur.encours { stroke-width: 4; }
.ar-suivi-carte .ar-courbe-point-bord { stroke-width: 6; }
.ar-suivi-carte .ar-courbe-point-coeur { stroke-width: 2.8; }
.ar-legende-jours i, .ar-assiduite i, .ar-legende i { flex: none; display: inline-block; }  /* jamais écrasés quand le libellé passe à la ligne */

/* le nom complet à côté de la marque (présentation) */
.ar-logo-complet { display: flex; align-items: center; gap: 14px; }
.ar-logo-complet p { margin: 0; display: flex; flex-direction: column; line-height: 1; }
.ar-logo-complet p span { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #4A5650; }
.ar-logo-complet p b { margin-top: 4px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: #18211B; }
.ar-logo-complet s { color: #A9B0A6; text-decoration-color: #C23D17; text-decoration-thickness: 4px; }
/* le bandeau vers le concept */
.ar-bandeau-concept { margin: 12px 16px 0; padding: 10px 14px 10px 12px; border-radius: 22px; background: #FFFFFF; color: #18211B; text-decoration: none;
  display: flex; align-items: center; gap: 12px; border: 2px solid #E6E8E0; }
.ar-bandeau-concept img { flex: none; }
.ar-bandeau-concept > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-bandeau-concept b { font-size: 15px; }
.ar-bandeau-concept small { font-size: 12px; color: #4A5650; }
#ar-concept-bas .ar-bandeau-concept { margin-top: 18px; }

/* « Proposer avec Claude » sur un repas vide */
.ar-carte.vide .ar-carte-pied { flex-wrap: wrap; justify-content: flex-start; }
.ar-bouton.ar-assistant-bouton { background: #FFFFFF; color: #18211B; border: 2px solid #18211B; }
.ar-assistant-bouton svg { color: #C23D17; }

/* applications connectées : sur deux lignes */
.ar-apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-app { padding: 12px 12px 10px; border-radius: 22px; background: #F3F4EE; display: flex; flex-direction: column; gap: 8px; }
.ar-app-tete { display: flex; align-items: center; gap: 12px; }
.ar-app-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 56px; }
.ar-app-pied span { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; color: #4A5650; }
.ar-app-pied .ar-bouton { flex: none; width: auto; }

/* une annonce brève, au-dessus de la barre du bas */
.ar-annonce { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 70; transform: translate(-50%, 20px); margin: 0; max-width: calc(100% - 48px);
  padding: 12px 18px; border-radius: 999px; background: #1E5A43; color: #FFFFFF; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.ar-annonce.visible { opacity: 1; transform: translate(-50%, 0); }

/* Cuisiner (app/cuisine.js) : l'aperçu, puis le pas à pas — une chose à la fois, en grand, les mains occupées */
.ar-cu-reglage { margin: 16px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ar-cu-reglage-serre { margin: 14px 0 0; }
.ar-cu-parts { padding: 4px; background: #FFFFFF; }
.ar-cu-parts output { min-width: 76px; }
.ar-cu-bloc { margin: 0 16px; }
.ar-cu-liste li { min-height: 44px; }
.ar-cu-photo { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 26px; margin-top: 12px; }
.ar-cu-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-cu-etapes li { display: flex; gap: 12px; padding: 14px; border-radius: 24px; background: #FFFFFF; }
.ar-cu-etapes p { margin: 0; font-size: 16px; line-height: 1.45; }
.ar-cu-etapes li > div { flex: 1; min-width: 0; }
.ar-cu-num { flex: none; width: 30px; height: 30px; border-radius: 15px; background: #18211B; color: #F3F4EE; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; }
.ar-cu-vignette { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 18px; margin-top: 10px; }
.ar-cu-note { margin: 14px 20px; }
.ar-cu-barre { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom) * 0.6); transform: translateX(-50%); width: min(488px, calc(100% - 32px)); z-index: 30; }
.ar-cu-barre .ar-bouton { box-shadow: 0 12px 30px rgba(194, 61, 23, 0.35); }
/* le pas à pas */
.ar.ar-cu-pas { background: #FFFFFF; min-height: 100dvh; padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
body.appli-repas:has(.ar-cu-pas) { background: #FFFFFF; }
.ar-cu-haut { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ar-cu-haut .ar-rond { background: #F3F4EE; }
.ar-cu-haut-titre { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-cu-haut-titre small { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #4A5650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-cu-progres { display: flex; gap: 4px; }
.ar-cu-progres i { flex: 1; height: 6px; border-radius: 3px; background: #E6E8E0; }
.ar-cu-progres i.fait { background: #18211B; }
.ar-cu-progres i.actif { background: #C23D17; }
.ar-cu-ecran { padding: 18px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.ar-cu-titre { font-size: 34px; font-weight: 800; line-height: 1.05; }
.ar-cu-texte { margin: 4px 0 0; font-size: 26px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ar-cu-besoin { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ar-cu-besoin li { padding: 8px 14px; border-radius: 999px; background: #F3F4EE; font-size: 15px; }
.ar-cu-besoin small { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #4A5650; }
.ar-cu-durees { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-cu-durees .ar-bouton { background: #E3EEE7; color: #1E5A43; }
.ar-cu-cadre { position: relative; }
.ar-cu-cadre .ar-cu-photo { margin-top: 0; }
.ar-cu-changer { position: absolute; right: 12px; bottom: 12px; cursor: pointer; }
.ar-cu-prendre { min-height: 120px; border-radius: 26px; border: 2px dashed #CDD1C6; background: #F7F8F3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; text-align: center; cursor: pointer; }
.ar-cu-prendre span { font-weight: 600; font-size: 16px; }
.ar-cu-prendre small { font-size: 13px; color: #4A5650; }
.ar-cu-prendre-grand { min-height: 220px; }
.ar-cu-ecran .ar-cu-liste li { background: #F3F4EE; padding: 0; }
.ar-cu-coche { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.ar-cu-coche input { position: absolute; opacity: 0; pointer-events: none; }
.ar-cu-case { flex: none; width: 28px; height: 28px; border-radius: 14px; border: 2px solid #18211B; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.ar-cu-coche input:checked + .ar-cu-case { background: #1E5A43; border-color: #1E5A43; }
.ar-cu-coche input:checked + .ar-cu-case::after { content: '✓'; color: #FFFFFF; font-weight: 800; font-size: 15px; }
.ar-cu-coche input:focus-visible + .ar-cu-case { outline: 3px solid #C23D17; outline-offset: 2px; }
.ar-cu-liste li.fait b { text-decoration: line-through; color: #4A5650; }
.ar-cu-go { margin-top: 8px; }
.ar-cu-choix { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.ar-cu-choix label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 18px; background: #F3F4EE; font-size: 15px; }
.ar-cu-choix input { width: 20px; height: 20px; accent-color: #18211B; }
.ar-cu-pret .ar-actions { margin: 10px 0 0; }
.ar-cu-pret .ar-texte { margin: 0; font-size: 17px; }
.ar-cu-nav { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom) * 0.6); transform: translateX(-50%); width: min(488px, calc(100% - 32px)); z-index: 30;
  display: flex; gap: 10px; align-items: center; padding: 8px; box-sizing: border-box; border-radius: 34px; background: #18211B; box-shadow: 0 12px 30px rgba(24, 33, 27, 0.25); }
.ar-cu-nav .ar-rond { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.ar-cu-nav .ar-bouton { flex: 1; background: #C23D17; color: #FFFFFF; min-height: 52px; }
.ar-cu-minuteurs { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom) * 0.6); transform: translateX(-50%); width: min(488px, calc(100% - 32px)); z-index: 29; display: flex; flex-direction: column; gap: 6px; }
.ar-cu-minuteur { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: #E3EEE7; color: #1E5A43; box-shadow: 0 6px 16px rgba(24, 33, 27, 0.12); }
.ar-cu-minuteur span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ar-cu-minuteur b { font-family: 'IBM Plex Mono', monospace; font-size: 16px; }
.ar-cu-minuteur.fini { background: #C23D17; color: #FFFFFF; }
.ar-cu-minuteur .ar-retirer { color: inherit; }
/* Cuisiner depuis un plat de Mes repas */
.ar-cuisiner { margin-top: 8px; width: 100%; box-sizing: border-box; }

/* Le menu de la semaine (app/menu.js) : sept fiches, le week-end à part */
.ar-mjours { display: flex; flex-direction: column; gap: 14px; margin: 14px 16px 0; }
.ar-mjour { scroll-margin-top: calc(16px + env(safe-area-inset-top)); padding: 16px 16px 10px; border-radius: 30px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(24, 33, 27, 0.06); }
.ar-mjour.we { background: #FBF3E4; }
.ar-mjour.aujourdhui { box-shadow: 0 0 0 3px #18211B; }
.ar-mjour header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 4px 8px; }
.ar-mjour h2 { font-size: 22px; font-weight: 800; }
.ar-mjour header .ar-pastille { margin-left: auto; align-self: center; }
.ar-mrepas-liste { list-style: none; margin: 0; padding: 0; }
.ar-mrepas { display: flex; gap: 12px; padding: 10px 4px; border-top: 1px solid #EEF0E8; }
.ar-mrepas:first-child { border-top: 0; }
.ar-mtype { flex: none; width: 76px; padding-top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #4A5650; }
.ar-mtype small { display: block; margin-top: 2px; letter-spacing: 0; }
.ar-mcontenu { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ar-mplats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ar-mplat { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.ar-mplat .ar-vignette { position: relative; overflow: hidden; }
.ar-mplat .ar-vignette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-mrien { padding-top: 12px; font-size: 14px; color: #8C958F; }
.ar-mlieu { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #F3F4EE; font-size: 13px; font-weight: 600; }
.ar-mjour.we .ar-mlieu, .ar-mjour.we .ar-rond.ar-clair { background: #FFFFFF; }
.ar-mvide { margin: 14px 16px 0; padding: 18px; border-radius: 30px; background: #FFFFFF; }
.ar-tuiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.ar-cu-sans-nav .ar-cu-minuteurs { bottom: calc(10px + env(safe-area-inset-bottom) * 0.6); }
.ar-cu-pas .ar-cu-parts { background: #F3F4EE; }
.ar-cu-pret > .ar-bouton { cursor: pointer; }
/* « Cuisiner » sur la photo d'un repas (carte du jour, repas en grand) */
.ar-cu-pastille { z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: calc(100% - 110px); box-sizing: border-box; padding: 0 16px 0 14px; border-radius: 999px;
  background: #C23D17; color: #FFFFFF !important; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px rgba(24, 33, 27, 0.25); }
.ar-cu-pastille small { font-weight: 400; opacity: 0.9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ar-cu-pastille svg { flex: none; }
.ar-carte-photo > .ar-cu-pastille { position: absolute; left: 12px; bottom: 12px; }
.ar-heros > .ar-cu-pastille { position: relative; align-self: flex-start; margin: auto 0 10px; max-width: 100%; }
.ar-cu-appareil { width: 52px; height: 52px; border-radius: 26px; background: #18211B; color: #FFFFFF; cursor: pointer; }
.ar-cu-durees { align-items: center; }
.ar-cu-legende { font-size: 15px; color: #4A5650; }
.ar-cu-changer { width: 48px; height: 48px; border-radius: 24px; }
.ar-cu-pas .ar-bouton.ar-blanc { background: #F3F4EE; }

/* Préparer la liste (app/preparer.js) : les jours en pastilles, les ingrédients à cocher, « Ajouter » en bas */
.ar-pl { padding-bottom: 0; }
.ar-pl-jours { flex: none; display: flex; gap: 8px; overflow-x: auto; margin: 4px -4px 12px; padding: 2px 4px 6px; scrollbar-width: none; }
.ar-pl-jours::-webkit-scrollbar { display: none; }
.ar-pl-jours button { flex: none; min-width: 64px; min-height: 56px; padding: 6px 10px; border: 0; border-radius: 20px; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.ar-pl-jours button b { font-size: 15px; font-weight: 700; text-transform: capitalize; }
.ar-pl-jours button small { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #4A5650; }
.ar-pl-jours button.vide { opacity: 0.55; }
.ar-pl-jours button[aria-pressed="true"] { background: #18211B; color: #F3F4EE; opacity: 1; }
.ar-pl-jours button[aria-pressed="true"] small { color: #CDD1C6; }
.ar-pl-groupe { margin: 16px 4px 8px; }
.ar-pl-liste, .ar-li-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-pl-ligne { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 22px; background: #FFFFFF; cursor: pointer; }
.ar-pl-ligne input { position: absolute; opacity: 0; pointer-events: none; }
.ar-pl-ligne .ar-cu-case { margin-top: 2px; }
.ar-pl-ligne input:checked + .ar-cu-case, .ar-cu-coche input:checked + .ar-cu-case { background: #1E5A43; border-color: #1E5A43; }
.ar-pl-ligne input:checked + .ar-cu-case::after { content: '✓'; color: #FFFFFF; font-weight: 800; font-size: 15px; }
.ar-pl-ligne input:focus-visible + .ar-cu-case { outline: 3px solid #C23D17; outline-offset: 2px; }
.ar-pl-ligne:not(.choisie) b { color: #4A5650; }
.ar-pl-achat { color: #1E5A43 !important; }
.ar-pl-detail em { font-style: normal; color: #8A2A0F; }
.ar-pl-note { margin: 14px 4px 0; font-size: 13px; color: #4A5650; }
.ar-pl-pied { position: sticky; bottom: 0; margin: 14px -20px 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(243, 244, 238, 0), #F3F4EE 30%); }
.ar-pl-pied .ar-texte { margin: 0 0 10px; color: #1E5A43; font-weight: 600; }
.ar-pl .ar-cu-parts { margin-bottom: 8px; background: #FFFFFF; }
.ar-bouton[disabled] { opacity: 0.45; cursor: default; }

/* La liste (app/liste.js) */
.ar-li { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 0; border-radius: 22px; background: #FFFFFF; }
.ar-li .ar-cu-coche { padding: 10px 4px 10px 14px; }
.ar-li.coche b { text-decoration: line-through; color: #4A5650; }
.ar-li-liste { margin: 0 16px; }
.ar-li-ajout { margin: 14px 16px 0; display: flex; gap: 8px; align-items: center; }
.ar-li-ajout input { flex: 1; min-width: 0; height: 52px; box-sizing: border-box; padding: 0 20px; border: 0; border-radius: 26px; background: #FFFFFF; font: inherit; font-size: 16px; color: #18211B; }
.ar-li-ajout .ar-rond.ar-sombre { width: 52px; height: 52px; border-radius: 26px; }
.ar-li-statut { margin: 8px 24px 0; color: #1E5A43; }
.ar-li-menu { margin: 12px 16px; width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 0; border-radius: 22px; background: #FFFFFF; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ar-li-cochees { margin: 16px 20px 8px; display: flex; justify-content: space-between; }
.ar-champ select { height: 50px; box-sizing: border-box; padding: 0 16px; border: 0; border-radius: 25px; background: #FFFFFF; font: inherit; font-size: 16px; color: #18211B; }
.ar-bloc .ar-champ input, .ar-bloc .ar-champ select { background: #F3F4EE; }

/* En courses (app/courses.js) */
.ar-mg-chapo { margin-top: 6px; }
.ar-mg-liste { margin: 14px 16px 0; }
.ar-mg-main { margin-top: 18px; }
.ar.ar-mg-actif { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.ar-mg-tete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: rgba(243, 244, 238, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ar-mg-titre { flex: 1; min-width: 0; }
.ar-mg-titre h1 { font-size: 20px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-mg-total { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.ar-mg-total b { font-family: 'IBM Plex Mono', monospace; font-size: 22px; font-weight: 600; }
.ar-mg-total small { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #4A5650; }
.ar-mg-progres { margin: 4px 20px 0; display: flex; flex-direction: column; gap: 6px; }
.ar-mg-progres small { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #4A5650; }
.ar-mg-pris { color: #1E5A43 !important; display: inline-flex; align-items: center; gap: 4px; }
.ar-mg-hors { padding: 12px 16px; }
.ar-mg-fini { color: #1E5A43; font-weight: 600; }
.ar-mg-barre { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom) * 0.6); transform: translateX(-50%); width: min(488px, calc(100% - 32px)); z-index: 30; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 8px; box-sizing: border-box; border-radius: 34px; background: #18211B; box-shadow: 0 12px 30px rgba(24, 33, 27, 0.25); }
.ar-mg-barre .ar-bouton { min-height: 52px; }
.ar-mg-barre .ar-bouton.ar-blanc { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.ar-mg-avis { margin-top: 4px; padding: 14px 16px; border-radius: 22px; display: flex; flex-direction: column; gap: 4px; }
.ar-mg-avis.oui { background: #E3EEE7; color: #1E5A43; }
.ar-mg-avis.non { background: #FBE9E3; color: #8A2A0F; }
.ar-mg-avis b { font-size: 17px; }
.ar-mg-avis span { font-size: 14px; }
.ar-mg-surliste { font-size: 16px; font-weight: 600; margin: 12px 4px 0; }
.ar-mg-surliste.oui { color: #1E5A43; }
.ar-mg-alt { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ar-mg-alt li { padding: 10px 14px; border-radius: 18px; background: #FFFFFF; display: flex; flex-direction: column; }
.ar-mg-alt small { font-size: 12px; color: #4A5650; }
.ar-mg-euro { display: inline-flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace; }
.ar-mg-prix .ar-mg-euro input { width: 140px; flex: none; font-family: 'IBM Plex Mono', monospace; font-size: 20px; text-align: right; }
.ar-mg-actions { margin: 16px 0 0; }
.ar-mg-ligne-caisse { padding: 10px 12px 10px 16px; flex-wrap: wrap; }
.ar-mg-ligne-caisse .ar-produit-texte { flex: 1 1 140px; }
.ar-mg-ligne-caisse output { min-width: 24px; text-align: center; font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.ar-mg-ligne-caisse .ar-mg-euro input { width: 84px; height: 40px; box-sizing: border-box; padding: 0 10px; border: 0; border-radius: 20px; background: #F3F4EE; font: inherit; text-align: right; }
.ar-mg-somme { flex-direction: row; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 700; }
.ar-mg-somme b { font-family: 'IBM Plex Mono', monospace; font-size: 24px; }
.ar-texte.ar-marge { margin-left: 20px; margin-right: 20px; }
.ar-pl > * { flex-shrink: 0; }
.ar-mg-horsligne { margin: 6px 0 0; padding: 10px 14px; border-radius: 18px; background: #F4E3B5; color: #6A4B0C; font-size: 14px; }

/* Mise à jour (accueil) et Quoi de neuf (app/nouveautes.js) */
.ar-bandeau-maj { margin: 12px 16px 0; display: flex; align-items: center; gap: 4px; padding-right: 8px; border-radius: 26px; background: #18211B; color: #F3F4EE; }
.ar-bandeau-maj a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 14px; color: #F3F4EE !important; text-decoration: none; }
.ar-bandeau-maj a > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-bandeau-maj small { color: #CDD1C6; font-size: 13px; }
.ar-bandeau-maj .ar-retirer { color: #A9B2AC; width: 40px; height: 40px; }
.ar-nv-liste { list-style: none; margin: 12px 16px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ar-nv { padding: 16px 18px; border-radius: 28px; background: #FFFFFF; }
.ar-nv.neuve { box-shadow: 0 0 0 3px #C23D17; }
.ar-nv header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ar-nv header b { font-family: 'IBM Plex Mono', monospace; font-size: 15px; padding: 4px 10px; border-radius: 999px; background: #F3F4EE; }
.ar-nv.neuve header b { background: #C23D17; color: #FFFFFF; }
.ar-nv header span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #4A5650; }
.ar-nv h2 { margin: 10px 0 6px; font-size: 19px; font-weight: 800; line-height: 1.2; }
.ar-nv ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; color: #2C3631; }
.ar-bloc .ar-bouton.ar-blanc { background: #F3F4EE; }
.ar-interrupteur { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 20px; background: #F3F4EE; cursor: pointer; }
.ar-interrupteur input { width: 22px; height: 22px; flex: none; accent-color: #18211B; }
.ar-interrupteur span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 600; }
.ar-interrupteur small { font-size: 13px; font-weight: 400; color: #4A5650; }
/* La barre du bas : les destinations dans la pilule sombre, « ajouter » à part, à droite */
.ar-nav { background: transparent; box-shadow: none; padding: 0; gap: 10px; justify-content: space-between; }
.ar-nav-liens { flex: 1; min-width: 0; height: 64px; box-sizing: border-box; padding: 0 6px; border-radius: 32px; background: #18211B; display: flex; align-items: center; justify-content: space-around; box-shadow: 0 12px 30px rgba(24, 33, 27, 0.25); }
.ar-nav .ar-plus { flex: none; width: 64px; height: 64px; border-radius: 32px; box-shadow: 0 12px 30px rgba(194, 61, 23, 0.4); }
@media (max-width: 340px) { .ar-nav .ar-rond { width: 42px; height: 42px; } }
.ar .ar-plus, .ar a.ar-plus { color: #FFFFFF; }
/* La liste triée (ajout, A → Z, rayon) */
.ar-tri { margin: 14px 16px 10px; }
.ar-li-rayon { margin: 16px 24px 8px; }
/* Partager la liste */
.ar-pt-lien { margin: 6px 0 12px; padding: 12px 14px; border-radius: 18px; background: #FFFFFF; font-family: 'IBM Plex Mono', monospace; font-size: 12px; overflow-wrap: anywhere; color: #4A5650; }
.ar-pt-etat { margin: 0 16px 8px; }
.ar-feuille .ar-actions-ligne { margin-top: 10px; }
/* La liste et les placards : deux onglets du même écran */
.ar-onglets { margin: 10px 16px 4px; }
.ar-pc { padding: 8px 8px 8px 10px; }
.ar-pc.fini b { color: #4A5650; }
.ar-pc-bouton { flex: none; min-height: 40px; padding: 0 14px; font-size: 14px; background: #F3F4EE !important; }
.ar-pc-retire { color: #8A2A0F !important; }
.ar-pc-fini { margin: 12px 16px 0; padding: 12px 12px 12px 16px; border-radius: 22px; background: #E3EEE7; color: #1E5A43; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.ar-pc-fini .ar-bouton { min-height: 40px; font-size: 14px; }
/* La présentation : retour, connexion, l'écran qui glisse du côté où l'on va */
.ar-bienvenue-retour { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 14px; z-index: 1; }
.ar-bienvenue-google { gap: 12px; }
.ar-g { width: 26px; height: 26px; border-radius: 13px; background: #FFFFFF; color: #18211B; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.ar-petit { font-size: 13px !important; }
.ar-bienvenue[data-sens="avant"] .ar-bienvenue-corps { animation: ar-vient-droite 0.25s ease-out; }
.ar-bienvenue[data-sens="arriere"] .ar-bienvenue-corps { animation: ar-vient-gauche 0.25s ease-out; }
@keyframes ar-vient-droite { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ar-vient-gauche { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ar-bienvenue .ar-bienvenue-corps { animation: none !important; } }
.ar-bienvenue-retour + .ar-bienvenue-corps { padding-top: 46px; }
.ar-bienvenue-etapes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: etape; }
.ar-bienvenue-etapes li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; background: #FFFFFF; font-size: 16px; line-height: 1.4; }
.ar-bienvenue-etapes .ar-rond { background: #F3F4EE; }

/* Les tickets de caisse (app/ticket.js) : une ligne à la fois, en grand */
.ar-tk-carte { margin: 12px 16px 0; padding: 18px; border-radius: 30px; background: #FFFFFF; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 30px rgba(24, 33, 27, 0.06); }
.ar-tk-libelle { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 20px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ar-tk-carte .ar-chiffres { margin-top: -6px; }
.ar-tk-prop { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: #E3EEE7; }
.ar-tk-prop small { color: #1E5A43 !important; }
.ar-tk-alt { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-tk-alt .ar-pilule { border: 0; cursor: pointer; font-family: Archivo, sans-serif; font-size: 13px; background: #F3F4EE; }
.ar-tk-recherche { margin: 0; }
.ar-tk-recherche input { background: #F3F4EE; }
.ar-tk-resultats { margin: 0; }
.ar-tk-res { width: 100%; border: 0; text-align: left; font: inherit; color: inherit; padding: 10px 14px; background: #F3F4EE; cursor: pointer; }
.ar-tk-bas { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ar-tk-ligne { width: 100%; border: 0; text-align: left; font: inherit; color: inherit; padding: 10px 14px 10px 10px; cursor: pointer; gap: 10px; }
.ar-tk-ligne.courante { box-shadow: 0 0 0 3px #18211B; }
.ar-tk-ligne .ar-chiffres { flex: none; }
.ar-tk-etat { flex: none; width: 26px; height: 26px; border-radius: 13px; border: 2px solid #CDD1C6; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.ar-tk-etat.ok { background: #1E5A43; border-color: #1E5A43; color: #FFFFFF; }
.ar-tk-etat.ign { background: #E6E8E0; border-color: #E6E8E0; color: #4A5650; }
.ar-tk-infos summary { cursor: pointer; padding: 4px 0; }
.ar-tk-barre { grid-template-columns: 1fr 1.6fr; }
.ar-tk-fin { margin: 4px 0 0; } .ar-tk-liee { margin-bottom: 4px; }

/* invitations : la page de la personne invitée, et le suivi des admins */
.ar-invitation { min-height: 100dvh; box-sizing: border-box; padding: calc(28px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px; }
.ar-invitation h1 { margin: 18px 0 0; font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.ar-invitation-par { margin: 0; font-size: 18px; font-weight: 600; }
.ar-invitation .ar-promesse { margin: 6px 0; }
.ar-invitation .ar-texte, .ar-note-bas { margin: 4px 0 0; font-size: 13px; color: #4A5650; }
.ar-invitation .ar-texte a, .ar-note-bas a { color: #18211B; }
.ar-invitation-creee { background: #E3EEE7; }
.ar-invitation-creee .ar-adresse { margin: 10px 0; padding: 12px 16px; border-radius: 20px; background: #FFFFFF; }
.ar-invitation-creee .ar-adresse code { color: #18211B; white-space: normal; word-break: break-all; }
.ar-statut.ar-statut-ok { color: #1E5A43; }
.ar-app-tete .ar-pastille { margin-left: auto; }
/* L'annonce (mise à jour, message de l'assistant…) : en haut, sur toute la largeur, lisible ; un toucher la ferme */
.ar-annonce { left: 0; right: 0; top: 0; bottom: auto; transform: translateY(-110%); max-width: none; box-sizing: border-box;
  padding: calc(14px + env(safe-area-inset-top)) 20px 16px; border-radius: 0 0 24px 24px; font-size: 16px; line-height: 1.35; text-align: center;
  box-shadow: 0 10px 30px rgba(24, 33, 27, 0.25); z-index: 90; cursor: pointer; transition: opacity 0.25s, transform 0.25s ease-out; }
.ar-annonce.visible { transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .ar-annonce { transition: opacity 0.2s; } }
