/* ============================================================================
 * GO — Lot E : identité et sens (27/10/2026)                         build mycell-2026-10-27-2
 * Âme de la boutique (E1), portrait péi (E2), édition du vendredi (E3), moments « aha » (E4),
 * photos embellies (E5), usage des apps (E6). Jetons du thème (theme.css) : jour / nuit.
 * Animations : transform et opacity seulement ; coupées si le téléphone demande moins de mouvement.
 * ========================================================================== */

/* ─── E1 · Âme de la boutique ─── */
.ame-puce { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font: 750 var(--t-xs)/1.3 var(--font);
  color: color-mix(in srgb, var(--ame, #15803D) 82%, var(--ink)); background: color-mix(in srgb, var(--ame, #15803D) 12%, var(--carte));
  border: 1px solid color-mix(in srgb, var(--ame, #15803D) 30%, transparent); }
.ame-carte { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 14px 16px; border-radius: var(--r-l); background: var(--carte); border: 1px solid var(--ligne); box-shadow: var(--ombre);
  background-image: linear-gradient(120deg, color-mix(in srgb, var(--ame, #7C3AED) 14%, transparent), transparent 60%); }
.ame-carte > div { flex: 1; min-width: 0; }
.ame-carte h2 { margin: 2px 0; font-size: var(--t-l); }
.ame-carte p { margin: 0; color: var(--ink2); font-size: var(--t-s); }
.ame-carte .ame-devise { font-style: italic; }
.ame-emo { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 28px;
  background: color-mix(in srgb, var(--ame, #7C3AED) 16%, var(--carte2)); color: var(--ame, #7C3AED); }
.ame-carte.decouvrir .ame-emo { font-size: 26px; }
@media (max-width: 480px) { .ame-carte { flex-wrap: wrap; } .ame-carte > .bt { width: 100%; } }

.ame-quiz { text-align: center; }
.ame-pas { display: flex; justify-content: center; gap: 6px; margin: 2px 0 14px; }
.ame-pas i { width: 34px; height: 6px; border-radius: 99px; background: var(--ligne); }
.ame-pas i.fait { background: var(--action2, #15803D); } .ame-pas i.ici { background: color-mix(in srgb, var(--action2, #15803D) 55%, var(--ligne)); }
.ame-q { font: 800 var(--t-xl)/1.3 var(--font-titre, var(--font)); margin: 0 auto 14px; max-width: 26ch; }
.ame-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ame-rep { min-height: 56px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--ligne); background: var(--carte); color: var(--ink);
  font: 650 var(--t-s)/1.3 var(--font); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.ame-rep:hover, .ame-rep:focus-visible { border-color: var(--action2, #15803D); transform: translateY(-1px); }

.ame-resultat { text-align: center; }
.ame-blason { display: grid; place-items: center; width: 96px; height: 96px; margin: 4px auto 8px; border-radius: 30px; font-size: 52px;
  background: linear-gradient(150deg, var(--ame2), var(--ame)); box-shadow: 0 12px 30px color-mix(in srgb, var(--ame) 35%, transparent); animation: ame-entree .6s var(--ressort, ease) both; }
@keyframes ame-entree { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ame-nom { margin: 2px 0; font: 900 28px/1.15 var(--font-titre, var(--font)); color: color-mix(in srgb, var(--ame) 85%, var(--ink)); }
.ame-resultat .ame-devise { margin: 0 0 14px; font-style: italic; color: var(--ink2); }
.ame-bloc { text-align: left; margin: 10px 0; padding: 12px 14px; border-radius: var(--r); background: var(--carte2); }
.ame-bloc b { display: block; margin-bottom: 4px; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); }
.ame-bloc p { margin: 0; }
.ame-couleurs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ame-couleurs span { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--ligne); }
.ame-couleurs small { color: var(--ink2); }
.ame-phrases { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ame-phrases li { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.ame-phrases span { font-weight: 600; }

/* ─── E4 · Mission « premier fan » (pro) ─── */
.mission-fan { margin: 0 0 14px; padding: 16px; border-radius: var(--r-l); border: 1px solid color-mix(in srgb, #DB2777 30%, var(--ligne));
  background: linear-gradient(135deg, rgba(219,39,119,.09), rgba(234,88,12,.07)), var(--carte); }
.mission-fan h2 { margin: 2px 0 4px; font-size: var(--t-xl); }
.mission-fan .mf-tete p { margin: 0; color: var(--ink2); font-size: var(--t-s); }
.mission-fan .pp-barre i { background: linear-gradient(90deg, #DB2777, #F97316); }
.mf-etapes { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.mf-etapes li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--carte); border: 1px solid var(--ligne); }
.mf-etapes li > div { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mf-etapes li > .bt { flex: none; }
.mf-etapes li > div span { color: var(--ink2); font-size: var(--t-s); }
.mf-etapes li.suivante { border: 2px solid #DB2777; }
.mf-etapes li.suivante .pp-num { background: #DB2777; color: #fff; }
.mf-etapes li.fait .pp-num { background: var(--ok-fond); color: var(--ok-t); }
.mf-etapes li.fait b { opacity: .65; }
@media (max-width: 480px) { .mf-etapes li { flex-wrap: wrap; } .mf-etapes li > div { flex-basis: calc(100% - 60px); } .mf-etapes li > .bt { margin-left: 44px; } }

/* ─── E4 · Jauge « 3 coups de cœur » (client) ─── */
.aha-client { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 10px 8px 10px 14px; border-radius: var(--r); background: var(--carte);
  border: 1px solid color-mix(in srgb, #E11D48 25%, var(--ligne)); box-shadow: var(--ombre); }
.aha-coeurs { display: inline-flex; gap: 2px; font-size: 18px; flex: none; }
.aha-coeurs i { font-style: normal; color: var(--ligne); filter: grayscale(1); }
.aha-coeurs i.plein { color: #E11D48; filter: none; animation: aha-pop .5s var(--ressort, ease); }
@keyframes aha-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.aha-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aha-texte small { color: var(--ink2); font-size: var(--t-xs); }
.aha-client .icb { flex: none; font-size: 20px; line-height: 1; color: var(--ink3); }

/* ─── E2 · Portrait péi ─── */
.portrait-annonce { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 12px; padding: 12px 14px; border: 0; border-radius: var(--r); cursor: pointer; text-align: left;
  color: #fff; background: linear-gradient(120deg, var(--p1), var(--p2)); box-shadow: 0 10px 26px color-mix(in srgb, var(--p1) 35%, transparent); font: inherit; }
.portrait-annonce .pa-emo { font-size: 30px; }
.portrait-annonce span { display: flex; flex-direction: column; }
.portrait-annonce small { opacity: .9; }
.portrait { text-align: center; }
.portrait-carte { margin: 0 auto 14px; max-width: 420px; padding: 22px 18px; border-radius: 26px; color: #fff; background: linear-gradient(160deg, var(--p1), var(--p2));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--p1) 40%, transparent); }
.portrait-mois { margin: 0; font-weight: 700; opacity: .9; text-transform: none; }
.portrait-emo { font-size: 84px; line-height: 1.1; margin: 8px 0; animation: ame-entree .7s var(--ressort, ease) both; }
.portrait-titre { margin: 0; font: 900 28px/1.15 var(--font-titre, var(--font)); }
.portrait-phrase { margin: 8px auto 14px; max-width: 30ch; opacity: .95; }
.portrait-chiffres { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.portrait-chiffres li { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 650; }
.portrait-chiffres b { font-size: 1.15em; }
.portrait-chiffres li span { margin-right: 6px; }
.portrait.vide .portrait-emo { animation: none; }
.portrait.vide .portrait-titre { color: var(--ink); }

/* ─── E3 · Édition du vendredi ─── */
.edition-carte { display: block; width: 100%; margin: 4px 0 12px; padding: 12px 14px; border-radius: var(--r); text-align: left; font: inherit; color: var(--ink);
  background: var(--carte); border: 1px solid var(--ligne); box-shadow: var(--ombre); }
button.edition-carte { cursor: pointer; }
.edition-carte.revelee:not(.vue) { border: 0; color: #fff; background: linear-gradient(120deg, #BE185D, #EA580C); box-shadow: 0 12px 30px rgba(234,88,12,.30); }
.edition-carte.revelee:not(.vue) small { color: rgba(255,255,255,.9); }
.ed-sur { display: block; font: 800 var(--t-xs)/1.3 var(--font); letter-spacing: .02em; margin-bottom: 6px; }
.ed-corps { display: flex; align-items: center; gap: 12px; }
.ed-texte { display: flex; flex-direction: column; min-width: 0; }
.ed-texte small { color: var(--ink2); font-size: var(--t-xs); }
.ed-visages { display: inline-flex; flex: none; }
.ed-visage { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; margin-left: -10px; border: 2px solid #fff; background: var(--carte2); display: grid; place-items: center; }
.ed-visage:first-child { margin-left: 0; }
.ed-visage > * { width: 100%; height: 100%; }
.ed-horloge { font-size: 30px; flex: none; }
.ed-rebours { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ed-revoir { margin-top: 6px; }
.edition .ed-date { margin: 0 0 6px; color: var(--ink2); font-weight: 650; }
.ed-bloc { margin: 12px 0; }
.ed-bloc h3 { margin: 0 0 8px; font-size: var(--t-l); }
.ed-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ed-ligne { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: var(--r); border: 1px solid var(--ligne);
  background: var(--carte); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ed-ligne:hover, .ed-ligne:focus-visible { border-color: var(--action2, #15803D); }
.ed-av { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--carte2); }
.ed-av > * { width: 100%; height: 100%; }
.ed-nom { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ed-nom small { color: var(--ink2); font-size: var(--t-xs); }
.ed-fans, .ed-tag { flex: none; font-weight: 800; font-size: var(--t-s); }
.ed-tag { padding: 3px 8px; border-radius: 999px; background: var(--ok-fond); color: var(--ok-t); font-size: var(--t-xs); }
.ed-remise { flex: none; padding: 6px 8px; border-radius: 10px; background: var(--action2, #15803D); color: #fff; font-weight: 850; font-size: var(--t-s); }
.ed-prix { flex: none; font-weight: 850; }
.ed-prix s { font-weight: 500; color: var(--ink3); font-size: var(--t-xs); }
.ed-pied { margin: 14px 0 0; color: var(--ink3); font-size: var(--t-xs); text-align: center; }
.ed-vide { text-align: center; padding: 10px 0; } .ed-vide > div { font-size: 44px; }

/* ─── E5 · Photos embellies ─── */
.consentement.embellir { margin-top: 8px; }
.consentement.embellir em { color: var(--ink3); font-style: normal; font-size: var(--t-xs); }

/* ─── E6 · Lanceur : apps rangées, tableau de l'administrateur ─── */
.apps-rares { margin: 12px 0 4px; border-radius: var(--r); border: 1px dashed var(--ligne); }
.apps-rares > summary { cursor: pointer; padding: 10px 14px; color: var(--ink2); font-weight: 700; }
.apps-rares > .apps-grille { padding: 0 8px 10px; }
.usage-table { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.usage-table th, .usage-table td { padding: 8px 6px; border-bottom: 1px solid var(--ligne); text-align: left; }
.usage-table td:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 700; }
.usage-table tr.rare th, .usage-table tr.rare td:nth-child(3) { color: var(--ko-t, #B91C1C); }
.usage-barre { display: inline-block; width: 60px; height: 6px; margin-right: 6px; vertical-align: middle; border-radius: 99px;
  background: linear-gradient(90deg, var(--action2, #15803D) var(--p), var(--ligne) var(--p)); }

@media (prefers-reduced-motion: reduce) {
  .ame-blason, .portrait-emo, .aha-coeurs i.plein { animation: none; }
  .ame-rep { transition: none; }
}
