/* TestMatch — pages applicatives (auth + dashboard)
   S'appuie sur style.css (tokens, fonts). */

/* petits boutons d'action (admin) — relief embossé, chacun garde sa couleur */
.btn-mini { position: relative; overflow: hidden; font-family: var(--head); font-weight: 600; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--paper-2); white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 5px 12px -5px rgba(0,0,0,.5); transition: transform .2s, box-shadow .25s, background .2s, border-color .2s, color .2s; }
/* Sections repliables de l'admin (listes longues) — natif <details>, sans JS. */
/* recherche de membre (admin) : retrouver n'importe qui au-delà des 30 derniers */
.admin-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.admin-search input[type="search"] { flex: 1 1 260px; min-width: 0; background: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 14px; color: var(--paper); font-family: var(--mono); font-size: 13px; }
.admin-search input[type="search"]::placeholder { color: var(--paper-4); }
.admin-search input[type="search"]:focus { outline: none; border-color: var(--cyan); }
.admin-search-clear { opacity: .6; }
.admin-fold { margin-top: 12px; }
.admin-fold > summary { cursor: pointer; list-style: none; user-select: none; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; color: var(--cyan); padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; }
.admin-fold > summary::-webkit-details-marker { display: none; }
.admin-fold > summary::before { content: "▸"; }
.admin-fold[open] > summary { margin-bottom: 12px; }
.admin-fold[open] > summary::before { content: "▾"; }
.admin-fold > summary:hover { border-color: var(--cyan); }

/* Confirmation de départ (100% serveur, sans JS). */
.leave-confirm { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.leave-confirm .lc-warn { font-size: 13px; color: var(--amber); margin-right: auto; }
.lc-yes { color: var(--rose) !important; border-color: var(--rose) !important; background: rgba(251,113,133,.14) !important; }
.btn-mini::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 55%; border-radius: inherit; background: linear-gradient(to bottom, rgba(255,255,255,.16), rgba(255,255,255,0)); pointer-events: none; }
.btn-mini:hover { border-color: var(--paper-3); color: var(--paper); transform: translateY(-1px) scale(1.03); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 9px 18px -6px rgba(0,0,0,.55); }
.btn-mini:active { transform: translateY(0) scale(.98); box-shadow: inset 0 2px 6px rgba(0,0,0,.4); }
.btn-mini.btn-danger { border-color: rgba(251,113,133,.4); color: var(--rose); background: rgba(251,113,133,.08); }
.btn-mini.btn-danger:hover { background: var(--rose); color: #1a0a0d; border-color: var(--rose); }

.app-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 28px; background: rgba(13,10,22,.82); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
/* offset pour la nav fixe (le contenu démarre sous la barre) */
.app-scroll { padding-top: 68px; }
@media (max-width: 640px) { .app-nav { height: 60px; } .app-scroll { padding-top: 60px; } }
.app-nav .brand { font-size: 19px; }
.app-nav-right { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--paper-3); }
.app-nav-right .credits { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(232,121,249,.25); background: rgba(232,121,249,.06); color: var(--cyan); padding: 5px 12px; border-radius: 999px; }
.app-nav-right a { color: var(--paper-2); }
.app-nav-right a:hover { color: var(--cyan); }
/* le bouton Uiverse garde son texte sombre (sinon blanc sur blanc) */
.app-nav-right a.btn-3d, .app-nav-right a.btn-3d:hover { color: #606060; }

.app-wrap { max-width: 1080px; margin: 0 auto; padding: 48px 28px 80px; }

/* bouton long (« assigne-moi automatiquement ») : autorisé à passer à la ligne sur mobile */
.btn-auto { display: block; width: 100%; max-width: 460px; white-space: normal; line-height: 1.4; text-align: center; }

/* ── Profil public d'un membre (member.php) ── */
.member-h1 { display: flex; align-items: center; gap: 14px; }
.member-av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none;
  border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--ink-3); }
.member-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* avatar + pseudo cliquables dans la file de matching (lien vers le profil public) */
.b-link { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; border-radius: 10px; }
.b-link .b-who b { border-bottom: 1px dashed var(--paper-4); transition: color .2s, border-color .2s; }
.b-link .b-av { transition: box-shadow .2s, border-color .2s, transform .2s; }
.b-link:hover .b-who b { color: var(--cyan); border-bottom-color: var(--cyan); }
.b-link:hover .b-av { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(240,166,255,.22), 0 0 14px rgba(240,166,255,.45); transform: scale(1.06); }

/* app-nav responsive (évite le chevauchement marque / boutons) */
.app-nav { gap: 12px; }
.app-nav .brand { min-width: 0; white-space: nowrap; }
.app-nav-right a { white-space: nowrap; }
@media (max-width: 640px) {
  .app-nav { padding: 0 16px; height: 60px; }
  .app-nav .brand { font-size: 16px; gap: 8px; }
  .app-nav .brand-logo { width: 30px; height: 30px; }
  .app-nav .brand-mark { display: none; }
  .app-nav-right { gap: 10px; font-size: 12px; }
  .app-nav-right .btn-3d { min-width: auto; padding: 0 14px; height: 38px; }
}
@media (max-width: 440px) {
  .app-nav-right .credits { display: none; }
  .app-nav-right > span:not(.credits) { display: none; } /* masque le nom sur très petit écran */
}

/* menu déroulant pays : sombre + lisible (au lieu du gris natif) */
.field select { color-scheme: dark; }
.field select option { background: var(--ink-2); color: var(--paper); }

/* champ mot de passe avec œil afficher/masquer */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; color: var(--paper-4); cursor: pointer; border-radius: 8px; transition: color .2s; }
.pw-toggle:hover { color: var(--cyan); }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle .eye-off { display: none; }
.pw-toggle.on .eye-on { display: none; }
.pw-toggle.on .eye-off { display: block; }
.field-foot { display: flex; justify-content: flex-end; margin-top: -8px; margin-bottom: 14px; }
.field-foot a { font-size: 12.5px; color: var(--paper-3); border-bottom: 1px dashed var(--paper-4); }
.field-foot a:hover { color: var(--cyan); border-color: var(--cyan); }

/* ── Auth (centré) ── */
.auth-shell { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; position: relative; }
.auth-card { width: 100%; max-width: 440px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 38px 34px; box-shadow: var(--shadow-deep), 0 0 70px -30px rgba(232,121,249,.4); position: relative; z-index: 2; }
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.auth-card .sub { color: var(--paper-3); font-size: 14.5px; margin-bottom: 26px; }
.auth-card .sub a { color: var(--cyan); border-bottom: 1px dashed var(--cyan); }

.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-3); margin-bottom: 7px; }
.field input, .field select { width: 100%; background: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 15px; color: var(--paper); font-family: var(--sans); font-size: 15px; outline: none; transition: border-color .2s; }
.field input::placeholder { color: var(--paper-4); }
.field input:focus, .field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(232,121,249,.12); }
.btn-block { width: 100%; justify-content: center; margin-top: 8px; white-space: normal; text-align: center; }
/* CTA de formulaire pleine largeur, élégant : rectangle arrondi (pas une pilule bombée),
   texte centré qui s'écoule avec la flèche au lieu de la détacher à droite. */
.btn-recruit { display: block; width: 100%; margin-top: 8px; text-align: center; white-space: normal;
  line-height: 1.25; border-radius: 12px; padding: 11px 18px; }
.btn-recruit .br-main { display: block; font-size: 14.5px; font-weight: 700; }
.btn-recruit .br-cost { display: block; font-size: 11px; font-weight: 600; opacity: .6; margin-top: 3px; letter-spacing: .02em; }

/* Mobile (pages app) : aucun bouton ne déborde ; les gros CTA passent pleine largeur,
   rectangle arrondi élégant, texte qui s'adapte. (La landing garde ses pilules.) */
@media (max-width: 560px) {
  .app-wrap .btn { max-width: 100%; white-space: normal; }
  .app-wrap .btn-cta { width: 100%; border-radius: 14px; }
}

/* Section « inviter » (admin) : rangée de contrôles, empilée en pleine largeur sur mobile. */
.invite-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.invite-batch { display: flex; gap: 10px; align-items: flex-end; }
@media (max-width: 560px) {
  .invite-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .invite-actions > form { width: 100%; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
  .invite-batch #count { width: 100% !important; }
  .invite-actions .btn { width: 100%; border-radius: 14px; white-space: nowrap; }  /* pleine largeur → tient sur 1 ligne, plus bombé */
}

.alert { border-radius: 10px; padding: 12px 15px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.3); color: #ffb3bd; }
.alert-ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #8ef0c8; }

/* ── Dashboard ── */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.dash-head h1 { font-size: clamp(30px,4vw,46px); }
.dash-head .eyebrow { margin-bottom: 12px; }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.dash-stat { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.dash-stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-4); }
.dash-stat .v { font-family: var(--display); font-size: 38px; color: var(--paper); line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .dash-grid { grid-template-columns: 1fr; } }

/* grille de stats admin : 4 colonnes en large, 2×2 sur mobile (plus de débordement) */
.dash-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .dash-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dash-grid-4 .dash-stat { text-align: center; }
  /* réserve 2 lignes pour le libellé (FR « Liste d'attente » wrappe) afin que les
     chiffres d'une même rangée restent alignés sur la même ligne */
  .dash-grid-4 .dash-stat .l { line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; justify-content: center; text-align: center; }
}

/* grille réputation (3 stats) : reste sur 3 colonnes compactes sur mobile, sans déborder */
.rep-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .rep-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  /* colonne : le libellé réserve 2 lignes, la valeur se colle en bas → les 3 chiffres alignés */
  .rep-grid .dash-stat { padding: 14px 8px; display: flex; flex-direction: column; }
  .rep-grid .dash-stat .l { font-size: 8.5px; letter-spacing: .05em; min-height: 2.6em; }
  .rep-grid .dash-stat .v { font-size: 25px; margin-top: auto; white-space: nowrap; }
}

.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 22px; }

/* ── File de matching (dashboard) : classement RÉEL par solde de réciprocité ── */
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.board-head h2 { display: inline-flex; align-items: center; gap: 10px; }
.board-live { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 9px rgba(52,211,153,.8);
  animation: boardLive 2s ease-in-out infinite; flex: none; }
@keyframes boardLive { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.board-formula { font-family: var(--mono); font-size: 11.5px; color: var(--cyan); padding: 5px 12px; margin-top: 4px;
  border: 1px dashed rgba(232,121,249,.35); border-radius: 999px; white-space: nowrap; }
.board-rows { display: flex; flex-direction: column; gap: 8px; }
.board-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--ink);
  animation: boardIn .5s var(--ease) backwards; }
.board-row:nth-child(1) { animation-delay: .05s; } .board-row:nth-child(2) { animation-delay: .12s; }
.board-row:nth-child(3) { animation-delay: .19s; } .board-row:nth-child(4) { animation-delay: .26s; }
.board-row:nth-child(5) { animation-delay: .33s; } .board-row:nth-child(n+6) { animation-delay: .4s; }
@keyframes boardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* №1 : le slot doré-rosé qui donne envie d'y être */
.board-row.first { border-color: rgba(232,121,249,.35); background: linear-gradient(90deg, rgba(232,121,249,.08), rgba(255,198,86,.05)); }
/* toi : surligné cyan, tu te repères en un coup d'œil */
.board-row.me { border-color: rgba(240,166,255,.55); box-shadow: 0 0 20px -8px rgba(240,166,255,.5); }
.b-rank { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--paper-3); width: 30px; text-align: center; flex: none; }
.board-row.first .b-rank { font-size: 16px; }
.b-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid var(--line-2);
  display: grid; place-items: center; background: var(--ink-3); }
.b-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.b-who b { font-size: 14px; font-weight: 600; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-you { display: inline-block; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--cyan); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }
.b-who i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--paper-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-score { margin-left: auto; font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--emerald); flex: none;
  padding: 3px 11px; border-radius: 8px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.22); }
.b-score.neg { color: var(--rose); background: rgba(251,113,133,.07); border-color: rgba(251,113,133,.2); }
.b-score.zero { color: var(--paper-3); background: rgba(245,240,255,.04); border-color: var(--line-2); }
.board-gap { text-align: center; color: var(--paper-4); font-family: var(--mono); line-height: 1; }
.board-peek { display: flex; flex-direction: column; gap: 8px; }
/* classement complet replié (natif <details>, sans JS) */
.board-more { margin-top: 4px; }
.board-more > summary { cursor: pointer; list-style: none; user-select: none; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; color: var(--cyan); padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .2s; }
.board-more > summary::-webkit-details-marker { display: none; }
.board-more > summary::before { content: "▸"; }
.board-more[open] > summary::before { content: "▾"; }
.board-more > summary:hover { border-color: var(--cyan); }
.board-rest { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
/* classement déplié → la ligne « ta position » (déjà dans la liste complète) disparaît */
.board-rows:has(.board-more[open]) .board-peek { display: none; }
.board-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--paper-3); }
.board-foot b { color: var(--cyan); }
.board-foot a { color: var(--cyan); border-bottom: 1px dashed var(--cyan); }
@media (max-width: 560px) {
  .b-who i { font-size: 9.5px; }
  .b-rank { width: 24px; }
  .board-row { gap: 9px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .board-live { animation: none; } .board-row { animation: none; } }
.panel h2 { font-size: 22px; margin-bottom: 6px; }
.panel .phint { color: var(--paper-3); font-size: 14px; margin-bottom: 22px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.app-list { display: grid; gap: 12px; }
.app-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-width: 0; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; transition: border-color .2s, background .2s, transform .2s; }
.app-item:hover { border-color: var(--line-2); }
.app-item > div { min-width: 0; }   /* laisse les colonnes RÉTRÉCIR (sinon un e-mail long élargit la page) */
.app-item .name { font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--paper); overflow-wrap: anywhere; }
/* nom d'app (cartes cliquables du dashboard) en OR + léger halo → accroche l'œil */
a.app-item .name { color: #FFC95B; text-shadow: 0 0 14px rgba(255,201,91,.3); }
.app-item .pkg { font-family: var(--mono); font-size: 12px; color: var(--paper-4); overflow-wrap: anywhere; }
.app-item .right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; flex-wrap: wrap; }

/* Mobile : on EMPILE la carte proprement (nom en haut, puis progression + pastille
   + boutons sur une ligne pleine largeur) au lieu de laisser tout se disperser. */
@media (max-width: 560px) {
  .app-item { flex-direction: column; align-items: stretch; gap: 12px; }
  .app-item > * { max-width: 100%; min-width: 0; }        /* aucun enfant ne dépasse la carte (sujet e-mail…) */
  .app-item > .badge-st { align-self: flex-start; }       /* la pastille ne s'étire pas sur toute la largeur */
  a.app-item > div:first-child { flex: none; }
  .app-item .right { width: 100%; justify-content: space-between; }
  .app-item .app-prog { width: auto; flex: 1 1 140px; }
  a.app-item::after { display: none; }   /* flèche de survol inutile au tactile */
}
.app-prog { width: 160px; }
.app-prog .bar { height: 7px; background: var(--ink-3); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.app-prog .bar i { display: block; height: 100%; background: var(--grad-brain); border-radius: 999px; }
.app-prog .lab { font-family: var(--mono); font-size: 11px; color: var(--paper-3); }
.badge-st { font-family: var(--mono); font-size: 10.5px; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.badge-st.recruiting { background: rgba(255,198,86,.14); color: var(--amber); }
.badge-st.running { background: rgba(232,121,249,.14); color: var(--cyan); }
.badge-st.completed { background: rgba(52,211,153,.14); color: var(--emerald); }
.badge-st.locked { background: rgba(245,240,255,.07); color: var(--paper-3); border: 1px solid var(--line-2); }

/* sélecteur de catégories préférées (profil) — chips animées (mécanique Uiverse
   gharsh11032000, reteintée plum/aurora) : cercle qui se remplit au survol,
   état COCHÉ = rempli en aurora (persistant). */
.cat-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cat-chip { position: relative; cursor: pointer; user-select: none; }
.cat-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cat-chip span { position: relative; z-index: 0; overflow: hidden; display: inline-block;
  padding: 9px 20px; font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--cyan); border: 2px solid var(--cyan); border-radius: 34px; background: transparent;
  transition: color .3s cubic-bezier(.23,1,.32,1), border-color .3s cubic-bezier(.23,1,.32,1),
              transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s cubic-bezier(.23,1,.32,1); }
.cat-chip span::before { content: ''; position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; z-index: -1;
  border-radius: inherit; transform: scale(0); background: var(--grad-brain);
  transition: transform .6s cubic-bezier(.23,1,.32,1); }
.cat-chip:hover span { color: var(--ink); border-color: transparent; transform: scale(1.06); box-shadow: 0 0 20px rgba(232,121,249,.4); }
.cat-chip:hover span::before,
.cat-chip input:checked + span::before { transform: scale(4); }
.cat-chip input:checked + span { color: var(--ink); border-color: transparent; }
.cat-chip:active span { transform: scale(1); }
.cat-chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .cat-chip span, .cat-chip span::before { transition: none; } }

/* rappel réciprocité : une app en attente → CTA « teste pour débloquer » */
.recip-hint { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 13px 16px; border-radius: 12px;
  background: rgba(232,121,249,.06); border: 1px solid rgba(232,121,249,.22); color: var(--paper-2);
  font-size: 13.5px; line-height: 1.45; transition: border-color .2s var(--ease), background .2s var(--ease); }
.recip-hint:hover { border-color: rgba(232,121,249,.5); background: rgba(232,121,249,.1); }
.recip-hint b { color: var(--paper); font-weight: 600; }
.recip-hint u { text-decoration-color: var(--cyan); text-underline-offset: 2px; }
.recip-hint svg { width: 26px; height: 26px; color: var(--cyan); flex: none; }
.recip-hint .rh-shackle { transform-box: fill-box; transform-origin: 90% 100%; animation: rhUnlock 3.4s var(--ease) infinite; }
@keyframes rhUnlock { 0%, 28% { transform: rotate(0); } 46%, 82% { transform: rotate(-30deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .recip-hint .rh-shackle { animation: none; } }

.empty { text-align: center; padding: 40px 20px; color: var(--paper-3); font-size: 15px; }
.empty .ico { font-size: 30px; margin-bottom: 10px; color: var(--cyan); }

/* anti-saut FR/EN : les 2 langues se superposent dans la même cellule,
   la largeur = max(FR,EN) donc la nav ne bouge plus au changement de langue */
.i18n-stack { display: inline-grid !important; place-items: center; place-content: center; vertical-align: middle; }
.i18n-stack > [data-lang] { grid-area: 1 / 1; display: block; text-align: center; white-space: nowrap; }
html[lang="fr"] .i18n-stack > [data-lang="en"],
html[lang="en"] .i18n-stack > [data-lang="fr"] { display: block !important; visibility: hidden; }

/* nav links (Mes apps / Tester / Profil / Admin) — look "Se connecter" (clair embossé) */
.app-nav-links { display: flex; gap: 9px; }
.btn-light, .app-nav-links a {
  font-family: var(--head); font-weight: 600; font-size: 13px; line-height: 1;
  height: 38px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 999px; border: 1px solid #8F9092; color: #606060;
  background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);
  text-shadow: 0 1px #fff; cursor: pointer; white-space: nowrap;
  box-shadow: 0 .5px .5px 1px rgba(255,255,255,.2), 0 6px 12px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-light:hover, .app-nav-links a:hover {
  transform: scale(1.03); color: #606060;
  box-shadow: 0 0 1px 2px rgba(255,255,255,.3), 0 10px 18px rgba(0,0,0,.25), inset 0 0 3px 1px #CECFD1;
}
.btn-light:active, .app-nav-links a:active { transform: scale(1); box-shadow: inset 0 0 5px 2px #999, inset 0 0 20px #aaa; }
.app-nav-links a.on { box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgba(34,211,238,.6), 0 6px 12px rgba(0,0,0,.2); }
@media (max-width: 720px) { .app-nav-links { display: none; } }

/* ─── Barre de navigation mobile (bas d'écran) ─── */
.app-bottomnav { display: none; }
@media (max-width: 720px) {
  .app-bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: 64px; background: rgba(13,10,22,.94);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .app-bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .02em; color: var(--paper-4); transition: color .2s; }
  .app-bottomnav a svg { width: 23px; height: 23px; }
  .app-bottomnav a.on { color: var(--cyan); }
  .app-bottomnav a.on svg { filter: drop-shadow(0 0 6px rgba(232,121,249,.5)); }
  /* le contenu ne doit pas passer sous la barre */
  .app-scroll { padding-bottom: 88px; }
}

/* lien dashboard cliquable */
/* cartes d'app CLIQUABLES (dashboard « Mes apps » → page de suivi) : affordance claire */
a.app-item { color: inherit; cursor: pointer; }
a.app-item > div:first-child { flex: 1 1 auto; min-width: 0; }   /* pousse .right + flèche à droite, groupés */
a.app-item::after { content: '→'; align-self: center; font-family: var(--sans); font-size: 18px; color: var(--paper-4); flex: 0 0 auto; transition: transform .2s var(--ease), color .2s; }
a.app-item:hover { border-color: rgba(232,121,249,.45); background: rgba(232,121,249,.045); transform: translateX(3px); }
a.app-item:hover::after { color: var(--cyan); transform: translateX(4px); }

/* carte de test (mode testeur) */
.tcard { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 14px; }
.tcard-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.tcard-head .name { font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--paper); }
.tcard-head .pkg { font-family: var(--mono); font-size: 12px; color: var(--paper-4); }
.tcard-prog { font-family: var(--mono); font-size: 13px; color: var(--paper-3); white-space: nowrap; flex-shrink: 0; }
.tcard-prog b { color: var(--cyan); font-size: 16px; }
/* la marque/nom peut rétrécir et tronquer → « X/14 jours » reste dans la carte */
.tcard-head > div:first-child { min-width: 0; flex: 1 1 auto; }
.tcard-head .pkg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── animations de progression (rassurent le testeur à chaque jour validé) ── */
@keyframes tkPop { 0% { transform: scale(.35); opacity: 0; } 60% { transform: scale(1.22); opacity: 1; } 100% { transform: scale(1); } }
@keyframes doneBounce { 0% { transform: scale(.6); opacity: 0; } 55% { transform: scale(1.14); } 100% { transform: scale(1); opacity: 1; } }
@keyframes doneGlow { 0%,100% { text-shadow: none; } 50% { text-shadow: 0 0 20px rgba(52,211,153,.75); } }
.tk-day.pop { animation: tkPop .45s cubic-bezier(.2,1.3,.4,1) both; }
.checkin-done.celebrate { animation: doneBounce .5s cubic-bezier(.2,1.4,.4,1) both, doneGlow 1.3s ease-in-out .35s 1; }
@media (prefers-reduced-motion: reduce) { .tk-day.pop, .checkin-done.celebrate { animation: none; } }
.optin { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid rgba(103,232,249,.25); background: rgba(34,211,238,.05); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-family: var(--mono); font-size: 12px; color: var(--cyan); transition: border-color .2s; }
.optin:hover { border-color: var(--cyan); }
.optin .pkg { color: var(--paper-4); overflow-wrap: anywhere; }

/* grille 14 jours */
.tk-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin-bottom: 16px; }
.tk-day { aspect-ratio: 1; border-radius: 5px; background: var(--ink-3); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 9px; color: var(--paper-4); }
/* jour déjà validé les jours PRÉCÉDENTS = violet */
.tk-day.on { background: linear-gradient(140deg, #E0C3FF 0%, #B79CFF 50%, #8B5CF6 100%); color: #1c1030; border-color: transparent; box-shadow: 0 0 14px rgba(183,156,255,.5), inset 0 1px 2px rgba(255,255,255,.5); position: relative; overflow: hidden; }
/* reflet lumineux qui balaie les jours validés (effet « premium ») */
.tk-day.on::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); }
.tk-day.on.pop::after { animation: tkShine .7s ease-out .12s 1; }
@keyframes tkShine { to { transform: translateX(120%); } }
/* le jour tout juste ACCOMPLI (le plus récent) = corail #fb8475 */
.tk-day.current { background: linear-gradient(140deg, #FFB3A6 0%, #FB8475 60%, #E86A5A 100%) !important; color: #3a0f0a; box-shadow: 0 0 16px rgba(251,132,117,.65), inset 0 1px 2px rgba(255,255,255,.45); animation: dayPulse 1.1s ease-in-out infinite; }
/* les 14 jours TERMINÉS → toute la grille en OR 🏆 */
.tk-day.on.gold { background: linear-gradient(140deg, #FFE9A8 0%, #FFC656 50%, #E0A02E 100%) !important; color: #3a2a05; box-shadow: 0 0 16px rgba(255,198,86,.6), inset 0 1px 2px rgba(255,255,255,.55); }
.tk-grid.sm { grid-template-columns: repeat(14, 1fr); gap: 4px; max-width: 360px; }
.tk-grid.sm .tk-day { font-size: 0; }
@media (max-width: 560px) { .tk-grid { grid-template-columns: repeat(7, 1fr); } }

.tcard-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fb-form { width: 100%; }
.fb-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fb-row label { font-family: var(--mono); font-size: 11px; color: var(--paper-3); display: inline-flex; align-items: center; gap: 8px; }
.fb-row select, .fb-row input[name=body] { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 12px; color: var(--paper); font-family: var(--sans); font-size: 14px; outline: none; }
.fb-row select { color: var(--amber); }
.fb-row input[name=body] { flex: 1; min-width: 220px; }
.fb-row input[name=body]:focus, .fb-row select:focus { border-color: var(--cyan); }

/* lignes de suivi (vue dev) */
.trow { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.trow-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.trow .who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* avatar + nom sur une même ligne, parfaitement centrés l'un avec l'autre ;
   la ligne « x/14 jours · … » (.pkg) passe dessous */
.trow .who-id { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
/* avatar + nom restent centrés ensemble sur leur ligne ; si le badge (« Nouveau »…)
   ne tient pas, il passe dessous au lieu de casser le nom sur 2 lignes (ce qui
   décentrait l'avatar sur les cartes au nom long) */
.trow .who-id .trust { margin-left: 0; }
.trow .who .av { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--grad-brain); display: grid; place-items: center; color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 12px; }
/* Avatar large (profil). */
.av-lg { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: var(--grad-brain); display: grid; place-items: center; color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 20px; overflow: hidden; }
/* Avatar avec image (photo perso ou générée) : l'image remplit le cercle. */
.av.has-img, .av-lg.has-img { background: none !important; overflow: hidden; }
.av img, .av-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trow .who .name { font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--paper); }
.trust { font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.trust-win { background: rgba(52,211,153,.16); color: var(--emerald); border: 1px solid rgba(52,211,153,.3); }
.trust-new { background: rgba(255,255,255,.06); color: var(--paper-4); border: 1px solid var(--line-2); }
.trow .who .pkg { font-family: var(--mono); font-size: 11.5px; color: var(--paper-4); }
.trow-fb { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--paper-3); }
.trow-fb .stars { color: var(--amber); margin-right: 8px; }
.trow-auth { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.trow-auth .gmail { font-family: var(--mono); font-size: 13px; color: var(--cyan); overflow-wrap: anywhere; }
.trow-auth .btn { padding: 9px 16px; font-size: 13px; }
/* mobile : la tête d'une ligne de suivi s'empile (sinon nom/texte/pastille se chevauchent
   car « space-between » écrase la colonne texte à côté du badge « en cours ») */
@media (max-width: 560px) {
  .trow { padding: 16px 14px; }
  .trow-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .trow .who { width: 100%; }
  .trow .who > div { min-width: 0; }
  .trow-head > .badge-st { align-self: flex-start; }
}

/* check-in avec capture (côté testeur) */
.checkin-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.checkin-note { flex: 1 1 240px; min-width: 200px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; color: var(--paper); font-family: var(--sans); font-size: 14px; outline: none; transition: border-color .2s; }
.checkin-note::placeholder { color: var(--paper-4); }
.checkin-note:focus { border-color: var(--cyan); }
.file-pick { position: relative; display: inline-flex; }
.file-pick input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.fp-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--paper-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 11px 16px; background: var(--ink); transition: border-color .2s, color .2s; }
.file-pick:hover .fp-label { border-color: var(--cyan); color: var(--cyan); }
.file-pick.has-file .fp-label { border-style: solid; border-color: var(--emerald); color: var(--emerald); }
.checkin-hint { font-size: 12.5px; color: var(--paper-4); margin: 10px 0 0; max-width: 52ch; }
.checkin-done { display: inline-flex; align-items: center; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--emerald); }

/* galerie de preuves (côté dev) */
.proof-gallery { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
/* le label prend toute la largeur → les captures passent en dessous (rendu plus sobre) */
.pg-label { flex: 0 0 100%; font-family: var(--mono); font-size: 11px; color: var(--paper-4); margin-bottom: 8px; }
.proof-thumb { display: block; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); transition: transform .2s, border-color .2s; }
.proof-thumb:hover { transform: scale(1.08); border-color: var(--cyan); }
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox preuve : la capture s'ouvre en superposition SANS quitter l'app
   (fermeture ✕ / clic à côté / touche Échap → on reste dans l'application) */
.pf-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6,4,12,.86); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.pf-lightbox.on { opacity: 1; }
.pf-fig { margin: 0; max-width: min(560px, 92vw); max-height: 88vh; display: flex; flex-direction: column; gap: 10px; }
.pf-fig img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 20px 60px rgba(0,0,0,.55); background: var(--ink-2); }
.pf-fig figcaption { font-family: var(--mono); font-size: 12px; color: var(--paper-3); text-align: center; }
.pf-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--paper); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.pf-close:hover { background: var(--ink-3); border-color: var(--cyan); color: var(--cyan); }
@media (prefers-reduced-motion: reduce) { .pf-lightbox { transition: none; } }

/* mots du testeur laissés au check-in (bug / rassurance) — vue dev */
.proof-notes { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.proof-notes .pn-label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-4); margin-bottom: 2px; }
.pnote { font-size: 13.5px; color: var(--paper-2); line-height: 1.5; }
.pnote .pn-date { font-family: var(--mono); font-size: 11px; color: var(--amber); margin-right: 8px; }

/* encart "en attente d'autorisation" (côté testeur) */
.pending { border: 1px solid rgba(255,198,86,.3); background: rgba(255,198,86,.06); color: var(--paper-2); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.6; }
.pending code { font-family: var(--mono); font-size: 12.5px; background: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; color: var(--cyan); overflow-wrap: anywhere; word-break: break-word; }

/* ── Pouls de la communauté (preuve sociale, côté testeur) ── */
.pulse-panel { position: relative; overflow: hidden; }
.pulse-grid { display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: 26px; }
.pulse-col { min-width: 0; }
.pulse-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-4); margin-bottom: 14px; }

/* colonne « proches du but » */
.near-item { background: var(--ink); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; margin-bottom: 10px; }
.near-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.near-name { font-family: var(--head, var(--display)); font-weight: 600; font-size: 14px; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-count { font-family: var(--mono); font-size: 12px; color: var(--paper-3); white-space: nowrap; flex-shrink: 0; }
.near-count b { color: var(--cyan); font-size: 14px; }
.near-item .app-prog { width: 100%; }
.near-item .app-prog .bar { margin-top: 8px; }
.near-left { font-family: var(--mono); font-size: 10.5px; color: var(--amber); margin-top: 7px; }

/* colonne « fil d'activité » */
.feed { display: flex; flex-direction: column; }
.feed-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.feed-row:last-child { border-bottom: 0; }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(240,166,255,.08); }
.feed-dot.cyan { background: var(--cyan); }
.feed-dot.gold { background: var(--amber); box-shadow: 0 0 0 4px rgba(255,198,86,.1); }
.feed-dot.coral { background: var(--emerald); box-shadow: 0 0 0 4px rgba(52,211,153,.1); }
/* avatar du testeur à la place du point (photo perso → avatar par défaut) ;
   anneau coloré = repère de type (rejoint / check-in / validé) */
.feed-av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--ink-3); font-family: var(--mono); font-size: 11px; color: var(--paper-3);
  box-shadow: 0 0 0 2px rgba(245,240,255,.06); }
.feed-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-av.cyan  { box-shadow: 0 0 0 2px rgba(240,166,255,.5); }
.feed-av.gold  { box-shadow: 0 0 0 2px rgba(255,198,86,.5); }
.feed-av.coral { box-shadow: 0 0 0 2px rgba(52,211,153,.5); }
.feed-txt { flex: 1 1 auto; min-width: 0; color: var(--paper-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-txt b { color: var(--paper); font-weight: 600; }
.feed-ago { font-family: var(--mono); font-size: 10.5px; color: var(--paper-4); white-space: nowrap; flex-shrink: 0; }

@media (max-width: 720px) {
  .pulse-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── CTA « campagne complétée » : le moment champion 🏆 ── */
@property --rc-a { syntax:"<angle>"; inherits:false; initial-value:0deg; }
.report-cta { position:relative; display:flex; align-items:center; justify-content:space-between; gap:22px; flex-wrap:wrap;
  border-radius:16px; padding:22px 26px; margin-bottom:22px; background:var(--ink-2); overflow:hidden;
  animation:rcRise .6s cubic-bezier(.22,1,.36,1) both; }
/* bordure aurora qui tourne (masque : on ne peint que le contour) */
.report-cta::before { content:""; position:absolute; inset:0; border-radius:16px; padding:1.6px; pointer-events:none;
  background:conic-gradient(from var(--rc-a), #34D399, #8B5CF6, #E879F9, #FFC656, #34D399);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude;
  animation:rcSpin 6s linear infinite; }
.report-cta::after { content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(130% 120% at 100% 0%, rgba(52,211,153,.16), transparent 55%); }
@keyframes rcSpin { to { --rc-a:360deg; } }
@keyframes rcRise { from { opacity:0; transform:translateY(10px); } }
.rc-text { position:relative; z-index:1; min-width:0; flex:1 1 300px; }
.rc-title { font-family:var(--head, var(--display)); font-weight:600; font-size:18px; color:var(--paper); }
.rc-title .party { display:inline-block; animation:rcParty 1.1s ease .35s 2; }
@keyframes rcParty { 0%,100%{transform:rotate(0) scale(1)} 30%{transform:rotate(-16deg) scale(1.3)} 65%{transform:rotate(13deg) scale(1.22)} }
.rc-sub { color:var(--paper-3); font-size:13.5px; line-height:1.5; margin-top:5px; }
.rc-btn { position:relative; z-index:1; overflow:hidden; display:inline-flex; align-items:center; gap:9px; white-space:nowrap;
  background:linear-gradient(120deg,#34D399,#22B98C); color:#04241a; font-family:var(--sans); font-weight:700; font-size:15px;
  border-radius:12px; padding:14px 24px; box-shadow:0 10px 30px -12px rgba(52,211,153,.6);
  animation:rcGlow 2.6s ease-in-out infinite; transition:transform .15s; }
.rc-btn:hover { transform:translateY(-2px); }
.rc-btn::after { content:""; position:absolute; top:0; left:0; width:55%; height:100%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform:translateX(-170%) skewX(-18deg); animation:rcShine 3.2s ease-in-out infinite; }
.rc-arrow { display:inline-block; animation:rcNudge 1.6s ease-in-out infinite; }
@keyframes rcGlow { 0%,100%{box-shadow:0 10px 30px -12px rgba(52,211,153,.5)} 50%{box-shadow:0 12px 42px -6px rgba(52,211,153,.9), 0 0 0 4px rgba(52,211,153,.12)} }
@keyframes rcShine { 0%{transform:translateX(-170%) skewX(-18deg)} 55%,100%{transform:translateX(330%) skewX(-18deg)} }
@keyframes rcNudge { 0%,100%{transform:translateX(0)} 50%{transform:translateX(4px)} }
.rc-spark { position:absolute; inset:0; z-index:0; pointer-events:none; }
.rc-spark span { position:absolute; width:6px; height:6px; border-radius:50%; opacity:0; }
.rc-spark span:nth-child(1){ left:14%; top:32%; background:#FFC656; animation:rcFloat 3.4s ease-in-out .2s infinite; }
.rc-spark span:nth-child(2){ left:30%; top:72%; background:#E879F9; animation:rcFloat 3.9s ease-in-out .9s infinite; }
.rc-spark span:nth-child(3){ left:58%; top:24%; background:#34D399; animation:rcFloat 3.1s ease-in-out 1.2s infinite; }
.rc-spark span:nth-child(4){ left:80%; top:66%; background:#B79CFF; animation:rcFloat 4.1s ease-in-out .5s infinite; }
.rc-spark span:nth-child(5){ left:47%; top:82%; background:#FFC656; animation:rcFloat 3.6s ease-in-out 1.5s infinite; }
@keyframes rcFloat { 0%{opacity:0;transform:translateY(6px) scale(.5)} 30%{opacity:.95} 60%{opacity:.5} 100%{opacity:0;transform:translateY(-16px) scale(1)} }
@media (max-width:640px){ .rc-btn{ width:100%; justify-content:center; } }

/* Teaser « Aperçu du rapport de campagne » (campagne en cours) : bouton animé qui donne envie */
.report-teaser { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:-4px 0 18px; }
.rt-btn { position:relative; overflow:hidden; display:inline-flex; align-items:center; gap:9px; white-space:nowrap;
  font-family:var(--sans); font-weight:600; font-size:14px; color:var(--cyan); text-decoration:none;
  border:1px solid rgba(240,166,255,.35); border-radius:999px; padding:9px 18px; background:rgba(240,166,255,.06);
  transition:border-color .2s, transform .15s, background .2s; }
.rt-btn:hover { border-color:var(--cyan); transform:translateY(-1px); background:rgba(240,166,255,.1); }
.rt-btn::after { content:""; position:absolute; top:0; left:0; width:55%; height:100%;
  background:linear-gradient(100deg, transparent, rgba(240,166,255,.35), transparent);
  transform:translateX(-180%) skewX(-18deg); animation:rtShine 3.4s ease-in-out infinite; }
.rt-dot { width:7px; height:7px; border-radius:50%; background:var(--cyan); flex-shrink:0; animation:rtPulse 1.7s ease-in-out infinite; }
.rt-arrow { display:inline-block; animation:rtNudge 1.6s ease-in-out infinite; }
.rt-hint { font-family:var(--mono); font-size:11.5px; color:var(--paper-4); }
@keyframes rtShine { 0%{transform:translateX(-180%) skewX(-18deg)} 55%,100%{transform:translateX(330%) skewX(-18deg)} }
@keyframes rtPulse { 0%,100%{box-shadow:0 0 0 0 rgba(240,166,255,.55)} 50%{box-shadow:0 0 0 5px rgba(240,166,255,0)} }
@keyframes rtNudge { 0%,100%{transform:translateX(0)} 50%{transform:translateX(3px)} }

@media (prefers-reduced-motion:reduce){ .report-cta, .report-cta *, .rt-btn::after, .rt-dot, .rt-arrow { animation:none !important; } }

/* ── Bandeau campagne (dashboard dev) ── */
.camp-banner { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  border:1px solid var(--line-2); border-radius:16px; padding:20px 24px; margin-bottom:22px;
  background:linear-gradient(115deg, rgba(139,92,246,.10), rgba(232,121,249,.05)); }
.camp-banner.cb-pending { border-color:rgba(255,198,86,.35); background:linear-gradient(115deg, rgba(255,198,86,.10), rgba(255,198,86,.03)); }
.camp-banner.cb-done { border-color:rgba(52,211,153,.35); background:linear-gradient(115deg, rgba(52,211,153,.12), rgba(52,211,153,.03)); }
.cb-main { flex:1 1 320px; min-width:0; }
.cb-eyebrow { font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--paper-3); margin-bottom:6px; }
.cb-title { font-family:var(--head, var(--display)); font-weight:600; font-size:19px; color:var(--paper); margin-bottom:10px; }
.cb-bar { height:7px; background:var(--ink-3); border-radius:999px; overflow:hidden; max-width:420px; }
.cb-bar i { display:block; height:100%; background:var(--grad-brain); border-radius:999px; }
.cb-line { font-family:var(--mono); font-size:12.5px; color:var(--paper-3); margin-top:9px; }
.cb-line b { color:var(--cyan); }
.cb-side { flex:1 1 240px; max-width:320px; display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.cb-step { font-size:13px; color:var(--paper-2); line-height:1.5; }
.cb-side .btn { white-space:nowrap; }
@media (max-width:640px){ .camp-banner{ padding:18px } .cb-side{ max-width:none; width:100% } .cb-side .btn{ width:100%; text-align:center } }

/* ── Vérification Google (OAuth) ── */
.btn-google { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1f1f1f;
  font-family: var(--sans); font-weight: 600; font-size: 14px; border: 1px solid #dadce0;
  border-radius: 10px; padding: 11px 18px; transition: box-shadow .2s, transform .1s; }
.btn-google:hover { box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.btn-google:active { transform: scale(.98); }
.btn-google-sm { font-size: 12.5px; padding: 8px 14px; margin-top: 10px; }
.g-verified { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.g-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px;
  font-weight: 600; letter-spacing: .02em; color: var(--emerald);
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); border-radius: 999px; padding: 4px 11px; }
.g-verified code { font-family: var(--mono); font-size: 13px; color: var(--paper-2); overflow-wrap: anywhere; }
.btn-google-block { width: 100%; justify-content: center; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--paper-4);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* ── Footer de l'espace membre (présent sur toutes les pages app) ── */
.app-foot { max-width: 920px; margin: 48px auto 0; padding: 22px 28px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; color: var(--paper-4); }
.app-foot .af-brand { font-family: var(--head); font-weight: 700; color: var(--paper-2); }
.app-foot .af-brand span { color: var(--fuchsia, #E879F9); }
.app-foot .af-links { display: flex; gap: 18px; flex-wrap: wrap; margin-right: auto; }
.app-foot .af-links a { color: var(--paper-3); transition: color .2s; }
.app-foot .af-links a:hover { color: var(--cyan); }
.app-foot .af-copy { color: var(--paper-4); }
@media (max-width: 720px) { .app-foot { margin-bottom: 80px; } }

/* ── Fil de discussion dev ↔ testeur (session_messages) ── */
.thread { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.thread > summary.th-label { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--paper-3); }
.thread > summary.th-label::-webkit-details-marker { display: none; }
.thread > summary.th-label:hover { color: var(--cyan); }
.th-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px; font-size: 11px; background: rgba(232,121,249,.14); color: var(--cyan); }
/* Scroll interne (plus élégant) avec une barre bien visible. La molette est
   débloquée par JS (app.js) pour ne plus être happée par le smooth-scroll ; à défaut,
   la barre stylée reste utilisable. */
.th-msgs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
  max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: var(--cyan-2) rgba(255,255,255,.06); }
.th-msgs::-webkit-scrollbar { width: 10px; }
.th-msgs::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 999px; margin: 4px 0; }
.th-msgs::-webkit-scrollbar-thumb { border-radius: 999px; border: 2px solid transparent; background-clip: padding-box;
  background-color: var(--cyan-2); }
.th-msgs::-webkit-scrollbar-thumb:hover { background-color: var(--cyan); }
.th-bubble { position: relative; max-width: 82%; align-self: flex-start; padding: 9px 13px; border-radius: 4px 14px 14px 14px;
  font-size: 13.5px; line-height: 1.5; color: var(--paper-2);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); }
.th-bubble.me { align-self: flex-end; border-radius: 14px 4px 14px 14px;
  background: rgba(232,121,249,.08); border-color: rgba(232,121,249,.25); }
.th-meta { display: block; margin-top: 5px; font-family: var(--mono); font-size: 10.5px; color: var(--paper-4); }
/* Accusé de lecture (sur ses propres messages) : gris = envoyé, cyan = lu. */
.th-read { color: var(--paper-4); }
.th-read.seen { color: var(--cyan); font-weight: 600; }
.th-empty { margin: 10px 0 0; font-size: 13px; color: var(--paper-4); }
.th-form { display: flex; gap: 8px; margin-top: 12px; }
.th-form input[name="body"] { flex: 1; min-width: 0; background: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 14px; color: var(--paper); font-size: 13.5px; }
.th-form input[name="body"]:focus { outline: none; border-color: var(--cyan); }
@media (max-width: 560px) { .th-form { flex-direction: column; } .th-bubble { max-width: 100%; } }

/* ── Fil de discussion : animations d'apparition (découvrabilité) ── */
/* Le JS pose .armed (masque les bulles) puis .play quand le fil entre à l'écran :
   l'animation se déclenche AU SCROLL, pas au chargement — garanti visible.
   Sans JS / reduced-motion : les bulles restent affichées, statiques. */
.th-msgs.armed .th-bubble { opacity: 0; }
.th-msgs.play .th-bubble { animation: thBubbleIn .55s var(--ease, cubic-bezier(.22,1,.36,1)) both; }
.th-msgs.play .th-bubble:nth-child(1) { animation-delay: .05s; }
.th-msgs.play .th-bubble:nth-child(2) { animation-delay: .17s; }
.th-msgs.play .th-bubble:nth-child(3) { animation-delay: .29s; }
.th-msgs.play .th-bubble:nth-child(4) { animation-delay: .41s; }
.th-msgs.play .th-bubble:nth-child(n+5) { animation-delay: .5s; }
@keyframes thBubbleIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* Le texte « s'anime » : un reflet balaie chaque bulle juste après son apparition. */
.th-msgs.play .th-bubble::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 32%, rgba(240,166,255,.22) 50%, transparent 68%);
  background-size: 220% 100%; background-position: 130% 0;
  animation: thSheen 1s ease-out both; }
.th-msgs.play .th-bubble:nth-child(1)::after { animation-delay: .45s; }
.th-msgs.play .th-bubble:nth-child(2)::after { animation-delay: .57s; }
.th-msgs.play .th-bubble:nth-child(3)::after { animation-delay: .69s; }
.th-msgs.play .th-bubble:nth-child(4)::after { animation-delay: .81s; }
.th-msgs.play .th-bubble:nth-child(n+5)::after { animation-delay: .9s; }
@keyframes thSheen { from { background-position: 130% 0; } to { background-position: -70% 0; } }

/* Pastille « nouveau » : compteur avec point pulsant, pour repérer le fil au premier coup d'œil. */
.th-new { display: inline-flex; align-items: center; gap: 6px; min-width: 20px; height: 20px; padding: 0 8px;
  border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--ink);
  background: var(--cyan); box-shadow: 0 0 0 0 rgba(240,166,255,.5); animation: thNewPulse 1.7s ease-out infinite; }
.thn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
@keyframes thNewPulse { 0% { box-shadow: 0 0 0 0 rgba(240,166,255,.5); } 70% { box-shadow: 0 0 0 7px rgba(240,166,255,0); } 100% { box-shadow: 0 0 0 0 rgba(240,166,255,0); } }
/* Un fil qui a du nouveau : son titre attire l'œil quelques secondes. */
.thread.has-new > summary.th-label { color: var(--cyan); }

/* Titre du fil : l'icône 💬 « respire » EN CONTINU (CSS pur, aucune dépendance au
   JS ni au scroll) → la section est toujours vivante et repérable au premier coup
   d'œil, même fil replié. Un petit rebond marqué revient périodiquement. */
.th-ico { display: inline-block; transform-origin: 70% 70%; animation: thBreath 2.6s ease-in-out infinite; }
@keyframes thBreath {
  0%, 100% { transform: scale(1) rotate(0); }
  12% { transform: scale(1.22) rotate(-12deg); }
  24% { transform: scale(1) rotate(9deg); }
  34% { transform: scale(1.06) rotate(-4deg); }
  44% { transform: scale(1) rotate(0); }
}
.thread.in-view .th-count { animation: thBadgePop .5s var(--ease, cubic-bezier(.22,1,.36,1)) both; animation-delay: .25s; }
@keyframes thBadgePop { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Le TEXTE du titre s'anime aussi : glissé + fondu, juste après l'icône. */
.thread.in-view > summary.th-label > span[data-lang] { display: inline-block; animation: thTextIn .55s var(--ease, cubic-bezier(.22,1,.36,1)) both; animation-delay: .12s; }
@keyframes thTextIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .th-msgs .th-bubble, .th-msgs .th-bubble::after { animation: none; opacity: 1; transform: none; }
  .th-new { animation: none; }
}
