/* ============================================================================
 * GO — première impression et boucle de retour (Lots A et B, 23/10/2026)   build mycell-2026-10-23-1
 * Bulle panier flottante, ⓘ du classement, bon plan du jour, proposition de notifications,
 * badges péi, merci de fin d'achat. Jetons du thème (theme.css) : jour / nuit automatiques.
 * Animations : transform et opacity seulement ; coupées si le téléphone demande moins de mouvement.
 * ========================================================================== */

/* ─── Accroche : une phrase vraie à la place des compteurs (Lot A) ─── */
.chiffres .accroche-vraie { color: var(--ink2); }
.chiffres .accroche-vraie b { color: var(--ink); }

/* ─── « Comment le fil est classé ? » devient un ⓘ discret à côté du titre ─── */
.lien-classement.ic-classement { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 6px; vertical-align: middle;
  border-radius: 50%; color: var(--ink3); text-decoration: none; border: 1px solid var(--ligne); background: color-mix(in srgb, var(--carte) 70%, transparent);
  font: 600 13px/1 var(--font); }
.lien-classement.ic-classement:hover, .lien-classement.ic-classement:focus-visible { color: var(--accent-t); border-color: currentColor; }
.lien-classement.ic-classement::after { content: ""; position: absolute; inset: -9px; }          /* zone tactile 44 px */
.lien-classement.ic-classement { position: relative; }

/* ─── Bulle panier flottante : visible seulement quand le panier n'est pas vide ─── */
.bulle-panier { position: fixed; z-index: 45; right: max(14px, env(safe-area-inset-right)); bottom: calc(96px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--vert); color: #fff; font: 700 var(--t-m)/1 var(--font); box-shadow: 0 10px 28px rgba(22,163,74,.35);
  transform: translateY(0) scale(1); transition: transform .35s var(--ressort), opacity .25s ease; }
.bulle-panier[hidden] { display: none; }
.bulle-panier .bp-emo { font-size: 20px; line-height: 1; }
.bulle-panier .bp-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: #0F5A2A; display: inline-grid; place-items: center; font-size: 12.5px; }
.bulle-panier.rebond { animation: bp-rebond .5s var(--ressort); }
@keyframes bp-rebond { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@media (min-width: 900px) { .bulle-panier { bottom: 24px; right: 28px; } }
html.couche-ouverte .bulle-panier, html.clavier .bulle-panier { opacity: 0; pointer-events: none; }
/* Jamais par-dessus une feuille (commentaires, caisse…) ni une fiche : leurs boutons du bas restent libres */
body:has(#feuille:not([hidden])) .bulle-panier, body:has(#fiche:not([hidden])) .bulle-panier { display: none; }

/* ─── Bon plan du jour ─── */
.bonplan { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; margin: 4px 0 14px; padding: 10px; border-radius: var(--r);
  background: var(--carte); border: 1px solid var(--ligne); box-shadow: var(--ombre); }
.bonplan.promo { border-color: color-mix(in srgb, var(--vert) 45%, var(--ligne)); }
.bonplan-visuel { position: relative; display: block; width: 112px; aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--r-s); overflow: hidden; background: var(--fond2); cursor: pointer; }
.bonplan-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bonplan-remise { position: absolute; left: 6px; top: 6px; padding: 3px 7px; border-radius: 999px; background: #15803D;   /* contraste AA (5:1) */ color: #fff; font: 800 12px/1 var(--font); font-style: normal; }
.bonplan-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bonplan-sur { margin: 0; font: 700 var(--t-xs)/1.2 var(--font); color: var(--ok-t); letter-spacing: .01em; }
.bonplan-nom { font-size: var(--t-m); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bonplan-prix { font: 800 var(--t-l)/1.2 var(--font); color: var(--ink); }
.bonplan-prix s { font-weight: 500; font-size: var(--t-s); color: var(--ink3); margin-left: 4px; }
.bonplan-chez, .bonplan-note { color: var(--ink2); font-size: var(--t-xs); }
.bonplan-note { color: var(--ink3); }
.bonplan-actions { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
@media (min-width: 760px) { .bonplan { grid-template-columns: 140px 1fr; max-width: 640px; } .bonplan-visuel { width: 140px; } }

/* ─── Proposition de notifications (feuille) ─── */
.rt-proposer { text-align: center; }
.rt-cloche { font-size: 44px; line-height: 1; margin: 4px 0 8px; display: inline-block; transform-origin: 50% 10%; animation: rt-cloche 1.4s ease .2s 1; }
@keyframes rt-cloche { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }
.rt-texte { font-size: var(--t-l); line-height: 1.4; margin: 0 auto 10px; max-width: 34ch; }
.rt-promesses { list-style: none; padding: 0; margin: 0 auto 14px; display: grid; gap: 6px; max-width: 34ch; text-align: left; color: var(--ink2); font-size: var(--t-s); }
.rt-promesses li::before { content: "✓"; color: var(--vert); font-weight: 800; margin-right: 8px; }
.rt-etapes { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.rt-etapes li { display: flex; gap: 10px; align-items: center; }
.rt-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--vert); color: #fff; font-weight: 800; }
.rt-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--fond2); }

/* ─── Badges péi (Mon compte) ─── */
.rt-badges h3 small { font-weight: 600; color: var(--ink3); margin-left: 6px; font-size: var(--t-s); }
.rt-badges-liste { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.rt-badges-liste li { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 12px 8px; border-radius: var(--r-s); border: 1px dashed var(--ligne); color: var(--ink3); }
.rt-badges-liste li.gagne { border-style: solid; border-color: color-mix(in srgb, var(--or) 50%, var(--ligne)); background: var(--or-fond); color: var(--ink); }
.rt-badge-emo { font-size: 28px; line-height: 1.1; filter: grayscale(1) opacity(.45); }
.rt-badges-liste li.gagne .rt-badge-emo { filter: none; }
.rt-badges-liste b { font-size: var(--t-s); }
.rt-badges-liste small { font-size: var(--t-xs); color: var(--ink2); }

/* ─── Merci de fin d'achat ─── */
.rt-merci { margin: 10px 0 14px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.rt-visages { display: flex; }
.rt-visages .rt-visage { margin-left: -10px; border-radius: 50%; box-shadow: 0 0 0 3px var(--carte); animation: rt-entree .5s var(--ressort) both; }
.rt-visages .rt-visage:first-child { margin-left: 0; }
.rt-visages .rt-visage:nth-child(2) { animation-delay: .08s; } .rt-visages .rt-visage:nth-child(3) { animation-delay: .16s; } .rt-visages .rt-visage:nth-child(4) { animation-delay: .24s; }
.rt-merci p { margin: 0; max-width: 36ch; line-height: 1.45; }
@keyframes rt-entree { from { opacity: 0; transform: translateY(8px) scale(.8); } to { opacity: 1; transform: none; } }

/* ─── Connexion : l'accès pro (sorti de la barre du bas) ─── */
.acc-pro { text-align: center; margin: 10px 0 0; font-size: var(--t-s); }
.acc-pro a { color: var(--accent-t); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .rt-cloche, .rt-visages .rt-visage, .bulle-panier.rebond { animation: none; }
  .bulle-panier { transition: none; }
}

/* Bon plan sans photo : le visage de la boutique, en grand */
.bonplan-sans-photo { position: absolute; inset: 0; display: grid; place-items: center; background: var(--fond2); }
.bonplan-sans-photo > * { transform: scale(1.8); }

/* ════════════ Lot C — le pro voit ce que Go lui apporte (24/10/2026) ════════════ */
/* « Votre semaine sur Go » en tête du tableau de bord */
.semaine-go { margin: 0 0 16px; padding: 16px; border-radius: var(--r-l); background: var(--carte); border: 1px solid var(--ligne); box-shadow: var(--ombre); }
.sem-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sem-tete h2 { margin: 2px 0 0; font-size: var(--t-xl); }
.sem-total { flex: none; padding: 6px 10px; border-radius: 999px; background: var(--ok-fond); color: var(--ok-t); font-weight: 750; font-size: var(--t-s); }
.sem-chiffres { list-style: none; padding: 0; margin: 12px 0 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sem-chiffres li { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "emo nb" "emo lib" "emo tend"; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r); background: var(--carte2); }
.sem-emo { grid-area: emo; font-size: 24px; }
.sem-chiffres b { grid-area: nb; font: 800 var(--t-xl)/1.1 var(--font-titre); font-variant-numeric: tabular-nums; }
.sem-chiffres small { grid-area: lib; color: var(--ink2); font-size: var(--t-xs); }
.sem-tend { grid-area: tend; font-style: normal; font-size: var(--t-xs); font-weight: 750; color: var(--ink3); }
.sem-tend.haut { color: var(--ok-t); } .sem-tend.bas { color: var(--ink3); }
.sem-ca { margin: 8px 0 0; } .sem-vide { margin: 10px 0; }
.sem-note { margin: 8px 0 0; font-size: var(--t-xs); color: var(--ink3); }
/* Jauge des premiers pas : le pourcentage est le titre */
.premiers-pas .pp-pourquoi { margin: 4px 0 0; color: var(--ink2); font-size: var(--t-s); }

/* Espace pro : le détail des modules se déplie à la demande */
.offres-carte { margin: 14px 0; border-radius: var(--r); border: 1px solid var(--ligne); background: var(--carte); }
.offres-carte > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; font-weight: 750; }
.offres-carte > summary::-webkit-details-marker { display: none; }
.offres-carte > summary span { display: inline-flex; align-items: center; gap: 8px; }
.offres-carte > summary .ic { width: 18px; height: 18px; }
.offres-carte > summary small { color: var(--ink2); font-weight: 600; }
.offres-carte > summary::after { content: "›"; font-size: 22px; color: var(--ink3); transition: transform .2s var(--ease); }
.offres-carte[open] > summary::after { transform: rotate(90deg); }
.offres-carte > .offres-grille { padding: 0 10px 12px; }

/* ════════════ Lot D — une couleur d'action, un fil neutre (24/10/2026) ════════════ */
/* Le vert de Go (« feu vert ») = l'action principale partout. Teintes foncées : texte blanc lisible (contraste ≥ 5:1, AA). */
:root { --action: #0F6B33; --action2: #15803D; --action-ombre: rgba(21,128,61,.28); }
.bt { background: linear-gradient(160deg, var(--action2), var(--action)); box-shadow: 0 6px 18px var(--action-ombre); }
.bt:focus-visible { outline: 3px solid color-mix(in srgb, var(--action2) 55%, transparent); outline-offset: 2px; }
.bt.payer { background: linear-gradient(160deg, var(--action2), var(--action)); box-shadow: 0 8px 20px var(--action-ombre); }   /* payer = la même action verte */
.bulle-panier { background: linear-gradient(160deg, var(--action2), var(--action)); }
/* En descendant dans le fil, le ciel de l'accueil s'efface : fond neutre, les photos des commerces ressortent */
body::before { transition: opacity .6s ease; }
body.dans-le-fil::before { opacity: .28; }
@media (prefers-reduced-motion: reduce) { body::before { transition: none; } }

/* ════════════ App des stores (Android, noyau/magasin.js) — 24/10/2026 ════════════
   Les outils pro payants ne s'achètent pas dans l'app : prix, simulateur et boutons de paiement des modules
   disparaissent ; le reste de Go est identique. Les achats des clients (produits, services, billets) restent. */
.seulement-app { display: none !important; }
html[data-app] .seulement-app { display: revert !important; }
html[data-app] .hors-app,
html[data-app] #bt-esp, html[data-app] #bt-portail, html[data-app] #esp-config .offre-bascule,
html[data-app] #esp-config .config-total, html[data-app] #bloc-studio { display: none !important; }
html[data-app] #esp-config::before { content: "Vos modules actifs. Les outils pro payants ne sont pas proposés dans l'application."; display: block; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r); background: var(--neutre-fond); color: var(--ink2); font-size: var(--t-s); }
.mg-explique p { margin: 0 0 10px; line-height: 1.45; }
