/* Bulle — Affinités (M16a). Retour arrière : retirer ce fichier d'index.html. */
.af-ic { display: inline-grid; place-items: center; line-height: 0; flex: none; }

/* Orbes décoratives (même famille que les Bulles) */
.af-intro-orbs, .af-hero-orbs { position: relative; flex: none; display: block; }
.af-intro-orbs { width: 46px; height: 46px; }
.af-hero-orbs { width: 84px; height: 70px; margin: 0 auto 10px; }
.af-intro-orbs i, .af-hero-orbs i { position: absolute; border-radius: 50%; background: var(--sheen, none), linear-gradient(140deg, var(--g1, #7BE3FF), var(--g2, #6B4BFF));
  box-shadow: inset 0 -4px 8px rgba(27, 16, 51, .18); }
.af-intro-orbs i:nth-child(1) { width: 26px; height: 26px; left: 0; top: 12px; --g1: #FF7EC8; --g2: #6B4BFF; }
.af-intro-orbs i:nth-child(2) { width: 22px; height: 22px; right: 0; top: 4px; --g1: #7BE3FF; --g2: #6B4BFF; }
.af-intro-orbs i:nth-child(3) { width: 12px; height: 12px; right: 6px; bottom: 2px; --g1: #FFD93D; --g2: #FF7EC8; }
.af-hero-orbs i:nth-child(1) { width: 46px; height: 46px; left: 4px; top: 16px; --g1: #FF7EC8; --g2: #6B4BFF; }
.af-hero-orbs i:nth-child(2) { width: 38px; height: 38px; right: 2px; top: 2px; --g1: #7BE3FF; --g2: #6B4BFF; }
.af-hero-orbs i:nth-child(3) { width: 18px; height: 18px; right: 14px; bottom: 0; --g1: #FFD93D; --g2: #FF7EC8; }

/* Ciel : invitation */
.af-intro { position: relative; display: flex; align-items: stretch; margin: 0 12px 10px; border-radius: 18px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent-3, #7BE3FF) 14%, var(--panneau)), color-mix(in srgb, var(--violet, #6B4BFF) 10%, var(--panneau)));
  border: 1px solid color-mix(in srgb, var(--violet, #6E58FF) 20%, transparent); }
.af-intro-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.af-intro-t { display: grid; gap: 2px; min-width: 0; }
.af-intro-t strong { font-size: .95rem; color: var(--accent-ink, #3D2BB8); }
.af-intro-t small { font-size: .82rem; line-height: 1.35; color: var(--texte-2); }
.af-intro-x { flex: none; width: 40px; border: 0; background: none; color: var(--texte-3); cursor: pointer; border-radius: 0 18px 18px 0; display: grid; place-items: start center; padding-top: 10px; }

/* Ciel : suggestions */
.af-strip { margin: 2px 0 10px; }
.af-strip-h { display: flex; align-items: center; gap: 6px; padding: 6px 12px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-3); }
.af-strip-h .af-ic { color: var(--violet); }
.af-strip-all { margin-left: auto; border: 0; background: none; color: var(--violet); font: inherit; font-weight: 800; text-transform: none; letter-spacing: 0; font-size: .78rem; cursor: pointer; padding: 2px 4px; }
.af-strip-row { display: flex; gap: 10px; overflow-x: auto; padding: 6px 12px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.af-strip-row::-webkit-scrollbar { display: none; }
.af-chip { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 0; cursor: pointer; color: inherit; font: inherit; scroll-snap-align: start; }
.af-chip-av { position: relative; display: grid; }
.af-chip-av .avatar { width: 54px !important; height: 54px !important; box-shadow: 0 0 0 2.5px var(--fond), 0 0 0 4.5px color-mix(in srgb, var(--violet) 45%, transparent); }
.af-chip-e { position: absolute; right: -4px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--panneau); box-shadow: 0 2px 6px rgba(27, 16, 51, .18); }
.af-chip small { font-size: .74rem; max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--texte); font-weight: 600; }
.af-chip-n { font-size: .66rem; color: var(--violet); font-weight: 700; }
.af-chip:active .af-chip-av { transform: scale(.94); }

/* Tiroir */
.af-side .af-ic { color: var(--violet); }
.af-side-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 750 11px/1 var(--font-ui); }

/* Panneau */
.af-hero { text-align: center; padding: 6px 4px 2px; }
.af-hero h2 { margin: 0 0 6px; font: 700 1.3rem/1.15 var(--font-titre); letter-spacing: -.03em; }
.af-hero p { margin: 0 auto; max-width: 40ch; color: var(--texte-2); font-size: .92rem; line-height: 1.45; }
.af-rules { list-style: none; margin: 16px 0 4px; padding: 12px 14px; display: grid; gap: 10px; border-radius: 16px; background: var(--panneau); border: 1px solid var(--ligne); }
.af-rules li { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.4; color: var(--texte-2); }
.af-rules .af-ic { color: var(--violet); margin-top: 1px; }
.af-note { margin: 6px 2px 0; }
.af-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.af-count { font: 750 .8rem/1 var(--font-ui); padding: 4px 9px; border-radius: 99px; background: var(--panneau-2); color: var(--texte-3); }
.af-count.ok { background: var(--accent-soft); color: var(--accent-ink); }
.af-cat .mo-sec { margin: 14px 2px 8px; }
.af-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.af-pick { min-height: 38px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--ligne); background: var(--panneau); color: var(--texte); font: inherit; font-size: .86rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background-color .15s, border-color .15s, transform .12s; }
.af-pick[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--violet); color: var(--accent-ink); font-weight: 700; }
.af-pick:active { transform: scale(.95); }
.af-seg button:disabled { opacity: .45; cursor: not-allowed; }
.af-go { margin-top: 18px; }
.af-danger { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.af-erase { color: var(--rouge, #E5484D); }

.af-mine { display: grid; gap: 10px; justify-items: start; }
.af-tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: var(--panneau-2); font-size: .8rem; font-weight: 600; color: var(--texte); white-space: nowrap; }
.af-common .af-tag { background: var(--accent-soft); color: var(--accent-ink); }
.af-list { display: grid; gap: 10px; }
.af-card { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: var(--panneau); border: 1px solid var(--ligne); box-shadow: var(--e-1, none); transition: opacity .2s, transform .2s; }
.af-card.out { opacity: 0; transform: scale(.96); }
.af-card-who { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.af-card-av .avatar { width: 50px !important; height: 50px !important; }
.af-card-name { display: grid; gap: 2px; min-width: 0; }
.af-card-name b { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-card-name small { color: var(--texte-3); font-size: .8rem; }
.af-card-act { display: flex; gap: 6px; align-items: center; }
.af-card-act .af-add { flex: 1; justify-content: center; }
.af-card-act .af-hide { width: 40px; padding: 0; justify-content: center; }
.af-empty { text-align: center; padding: 18px 10px; }
.af-empty strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.af-empty p { margin: 0 auto; max-width: 36ch; color: var(--texte-2); font-size: .9rem; line-height: 1.45; }
.af-unhide { margin-top: 12px; }

@media (min-width: 761px) {
  .af-intro { margin: 0 0 12px; }
  .af-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
:root[data-motion="off"] .af-card, :root[data-motion="off"] .af-pick { transition: none; }
