/* ==========================================================================
   mcp-ticket · tk-membres.css — étape 4 (19/10/2026) : espace membre, communauté, profils publics, annonces
   des membres, formulaire « Publier un code » ; 20/10 : messagerie, pages de compte, signalement, proposition. Inspirée des maquettes validées (prototype/mon-espace.html,
   communaute.html, publier-un-code.html), dans les thèmes Soleil et Matrix, clair et sombre.

   Portée :
   - § 0, carte « Thème du site » de l'espace membre (inc/membres.php) : toujours, quel que soit le lot (le
     réglage existe dès l'activation du thème) ;
   - § 1 à 7 : lot « membres » (body.tk-lot-membres). Sans lui, les feuilles des extraits s'appliquent seules ;
   - § 8, § 10 à 12 : lot « formulaires » (body.tk-lot-formulaires ; § 10 : body.ca-auth-page en plus). Le suivi des
     propositions, la note de « Proposer » et le renvoi .ca-xlink perdent la feuille de 141 dès le lot « base » : ils sont
     habillés dès ce lot ;
   - § 9 : lot « messagerie » (body.tk-lot-messagerie, 20/10).
   Aucun texte ni balisage n'est modifié par cette feuille. Les annonces des membres gardent leur contenu :
   seule leur présentation change (bord pointillé et étiquette « Annonce de membre », comme sur la maquette).
   Imprimée après le pont (wp_head 10002) : à spécificité égale, elle gagne.

   Sommaire
   0. Carte « Thème du site : Soleil / Matrix »
   1. Socle : avatars, présence, niveau, pastilles, partage, lien à copier, recherche et pagination
   2. Annonce de membre (ligne .ca-row : fiches, communauté, profils)
   3. Fenêtres : annonce complète (073) et message au parrain (127)
   4. Communauté (/codes-de-parrainage-communaute/)
   5. Profil public (/membre/{pseudo}/) et annuaire (/membre/)
   6. Espace membre (/mon-espace/) : visiteur, bienvenue, tableau de bord
   7. Bandeau des annonces en pause (077)
   8. Formulaire « Publier un code » (/publier-un-code/, lot « formulaires »)
   9. Messagerie (/messagerie/, lot « messagerie »)
   10. Pages de compte : connexion, inscription, mot de passe oublié, nouveau mot de passe (120, 401)
   11. Signaler un code (/signaler-un-code/, 060)
   12. Proposer une entreprise (/proposer-un-code/, 149, 141, 309)
   13. Page d’un code de la communauté (/code-parrain/{fiche}/{pseudo}/, nouvel extrait « Codes de la communauté »)
   ========================================================================== */

/* ---------- 0. Carte « Thème du site » (tous lots) ---------- */
body.tk-site .tk-skin-form { display: grid; gap: var(--sp-3); margin: 0; }
body.tk-site .tk-skin-choix { margin: 0; padding: 0; border: 0; min-width: 0; }
body.tk-site .tk-skin-leg { float: left; width: 100%; margin: 0 0 var(--sp-3); padding: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }
body.tk-site .tk-skin-opts { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
body.tk-site .tk-skin-opt {
  position: relative; display: grid; align-content: start; gap: 10px; min-width: 0; margin: 0; padding: 10px 10px 12px;
  border-radius: var(--r-lg); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: border-color var(--dur-1), box-shadow var(--dur-1), transform var(--dur-1);
}
body.tk-site .tk-skin-radio { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; }
body.tk-site .tk-skin-opt:has(.tk-skin-radio:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
body.tk-site .tk-skin-opt:has(.tk-skin-radio:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-site .tk-skin-opt:hover { border-color: var(--ink-2); transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { body.tk-site .tk-skin-opt { transition: none; } body.tk-site .tk-skin-opt:hover { transform: none; } }
/* Aperçu : un mini-ticket aux vraies couleurs du thème (décoratif). Couleurs fixes : il montre l'AUTRE thème aussi. */
body.tk-site .tk-skin-apercu { display: grid; grid-template-columns: minmax(0, 1fr) 30%; height: 62px; border-radius: 9px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .14); }
body.tk-site .tk-skin-apercu__corps { position: relative; display: grid; align-content: center; gap: 6px; padding: 0 10px; }
body.tk-site .tk-skin-apercu__corps i { display: block; height: 6px; border-radius: 3px; }
body.tk-site .tk-skin-apercu__corps i + i { width: 62%; }
body.tk-site .tk-skin-apercu__corps b { display: block; width: 46%; height: 12px; margin-top: 2px; border-radius: 4px; }
body.tk-site .tk-skin-apercu__talon { position: relative; border-left: 2px dashed rgba(0, 0, 0, .28); }
body.tk-site .tk-skin-opt--soleil .tk-skin-apercu { background: #fff7ec; }
body.tk-site .tk-skin-opt--soleil .tk-skin-apercu__corps i { background: #2b2118; opacity: .82; }
body.tk-site .tk-skin-opt--soleil .tk-skin-apercu__corps b { background: linear-gradient(90deg, #FF5A1F, #FF8A00 55%, #FFC21A); }
body.tk-site .tk-skin-opt--soleil .tk-skin-apercu__talon { background: linear-gradient(135deg, #FF5A1F, #FF8A00 45%, #FFC21A); }
body.tk-site .tk-skin-opt--matrix .tk-skin-apercu { background-color: #070a07; background-image: linear-gradient(rgba(215, 255, 58, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(215, 255, 58, .1) 1px, transparent 1px); background-size: 10px 10px; border-color: rgba(215, 255, 58, .35); }
body.tk-site .tk-skin-opt--matrix .tk-skin-apercu__corps i { background: #d7ff3a; opacity: .7; }
body.tk-site .tk-skin-opt--matrix .tk-skin-apercu__corps b { background: #d7ff3a; }
body.tk-site .tk-skin-opt--matrix .tk-skin-apercu__talon { background: #d7ff3a; border-left-color: rgba(7, 10, 7, .5); }
body.tk-site .tk-skin-txt { display: grid; gap: 3px; min-width: 0; }
body.tk-site .tk-skin-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: var(--fs-base); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: 1.2; }
body.tk-site .tk-skin-nom::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface);
  box-sizing: border-box; transition: background var(--dur-1), box-shadow var(--dur-1);
}
body.tk-site .tk-skin-opt:has(.tk-skin-radio:checked) .tk-skin-nom::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3.5px var(--surface); }
body.tk-site .tk-skin-actif { display: none; padding: 2px 7px; border-radius: var(--r-pill); background: var(--accent-fill, var(--accent)); color: var(--on-accent); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; }
body.tk-site .tk-skin-opt:has(.tk-skin-radio:checked) .tk-skin-actif { display: inline-block; }
body.tk-site .tk-skin-desc { font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-2); }
body.tk-site .tk-skin-note { margin: 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
body.tk-site .tk-skin-form button.tk-skin-ok {
  justify-self: start; display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 16px; margin: 0;
  border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: var(--fw-strong); letter-spacing: 0;
}
body.tk-site .tk-skin-form button.tk-skin-ok:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Avec JavaScript, le choix s'applique et s'enregistre tout de suite (tk-theme.js § 5) : le bouton est inutile. */
body.tk-site .tk-skin-form.is-direct button.tk-skin-ok { display: none; }
body.tk-site .tk-skin-etat { margin: 0; font-size: var(--fs-sm); font-weight: 700; line-height: 1.45; }
body.tk-site .tk-skin-etat:empty { display: none; }
body.tk-site .tk-skin-etat.is-ok { color: var(--ok); }
body.tk-site .tk-skin-etat.is-ko { color: var(--danger); }
@media (max-width: 359px) { body.tk-site .tk-skin-opts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 1. Socle (lot « membres ») ---------- */
/* Fonctionnel (autrefois dans #ca-psearch-css et #ca-row-css) : ce qui est masqué le reste. !important gardé : il ne bat
   aucun ancien style, il fait passer l'attribut hidden devant les display du thème lui-même (bouton de partage natif
   .ca-shb-native, croix de la recherche .ca-psearch-x), vérifié le 21/10/2026. */
body.tk-lot-membres :is(.ca-pgn[hidden], .ca-psearch-none[hidden], .ca-psearch-count[hidden], .ca-psearch [hidden], .ca-psearch-wrap [hidden], .ca-shb [hidden], .ca-row-sharesrc[hidden]) { display: none !important; }
:is(html, body).ca-noscroll { overflow: hidden; }
body.tk-lot-membres :is(.ca-hub, .ca-prof, .ca-dash, .ca-dash-guest, .ca-community) { color: var(--ink); font-family: var(--font-sans); line-height: var(--lh-text); }
body.tk-lot-membres :is(.ca-hub, .ca-prof, .ca-dash, .ca-dash-guest) :is(*, *::before, *::after) { box-sizing: border-box; }
body.tk-lot-membres :is(.ca-hub, .ca-prof, .ca-dash, .ca-dash-guest, .ca-amodal, .ca-msg-ov) svg:not([width]) { width: 18px; height: 18px; flex: none; }
body.tk-lot-membres :is(.ca-hub, .ca-prof, .ca-dash, .ca-dash-guest) a:not([class]) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
body.tk-lot-membres :is(.ca-hub, .ca-prof, .ca-dash) h2 { margin: 0 0 var(--sp-3); font-size: var(--fs-xl); font-weight: var(--fw-title); font-stretch: var(--wd-title); letter-spacing: var(--tr-title); line-height: var(--lh-title); color: var(--ink); text-wrap: balance; }

/* Fil d'Ariane des pages des membres (même rendu que celui des fiches) */
body.tk-lot-membres .ca-prof-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0 0 var(--sp-4); }
body.tk-lot-membres .ca-prof-bc a { color: var(--muted); text-decoration: none; }
body.tk-lot-membres .ca-prof-bc strong { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres .ca-prof-bc a:hover { color: var(--ink); text-decoration: underline; } }

/* Avatar (131) : rond, liseré du fond ; anneau d'accent pour les abonnés (ca-av--sub) */
body.tk-lot-membres .ca-av { position: relative; display: inline-block; flex: none; line-height: 0; border-radius: 50%; }
body.tk-lot-membres .ca-av img { display: block; border-radius: 50%; object-fit: cover; background: var(--surface-3); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--line-2); }
body.tk-lot-membres .ca-av.ca-av--sub img { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--accent); }
/* Présence (040) */
body.tk-lot-membres .ca-dot { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface); background: var(--muted); }
body.tk-lot-membres .ca-dot.ca-on { background: var(--ok); }
/* Pastille de niveau (131) : « NIVEAU 15 » en chasse fixe, rang en clair quand il est donné */
body.tk-lot-membres .ca-lvt {
  display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 2px 9px; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--ink); text-decoration: none; white-space: nowrap;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; line-height: 1.2;
}
body.tk-lot-membres .ca-lvt i { font-style: normal; color: var(--ink-2); }
body.tk-lot-membres .ca-lvt b { font-weight: var(--fw-strong); }
body.tk-lot-membres .ca-lvt em { font-style: normal; padding-left: 6px; border-left: 1px solid var(--line-strong); }
body.tk-lot-membres .ca-lvt.ca-lvt--amb { background: var(--accent-fill, var(--accent)); color: var(--on-accent); }
body.tk-lot-membres .ca-lvt.ca-lvt--amb i { color: inherit; }
body.tk-lot-membres a.ca-lvt { min-height: 28px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres a.ca-lvt:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
/* Compteur de messages non lus (127, 029) */
body.tk-lot-membres :is(.ca-dash, .ca-prof) .ca-msg-badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--accent-fill, var(--accent)); color: var(--on-accent); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; line-height: 1;
}
/* Boutons de partage (068) : petites pastilles, « Copier le lien » en premier plan discret */
body.tk-lot-membres .ca-shb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
body.tk-lot-membres .ca-shb .ca-shb-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; margin: 0;
  border-radius: var(--r-pill); border: 1px solid var(--line-input); background: var(--surface); color: var(--ink); cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; line-height: 1.1; text-decoration: none; white-space: nowrap;
}
body.tk-lot-membres .ca-shb.ca-shb-lg .ca-shb-btn { min-height: var(--tap); padding: 0 16px; font-size: var(--fs-sm); }
body.tk-lot-membres .ca-shb.ca-shb-sm { gap: 6px; }
body.tk-lot-membres .ca-shb.ca-shb-sm .ca-shb-btn { min-height: 32px; padding: 0 10px; }
body.tk-lot-membres .ca-shb .ca-shb-cp { border-color: var(--line-strong); font-weight: var(--fw-strong); }
body.tk-lot-membres .ca-shb .ca-shb-btn.is-ok { background: var(--copied-bg); border-color: var(--copied-bg); color: var(--ink); }
body.tk-lot-membres .ca-shb .ca-shb-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres .ca-shb .ca-shb-btn:hover { background: var(--surface-2); border-color: var(--ink-2); } }
/* Lien de la page publique à copier (068 profil, 029 espace membre) */
body.tk-lot-membres :is(.ca-prof-link, .ca-dpub-link) { display: flex; gap: 8px; align-items: stretch; margin: 0 0 var(--sp-3); }
body.tk-lot-membres :is(.ca-prof-link, .ca-dpub-link) input {
  flex: 1 1 auto; min-width: 0; height: var(--tap); margin: 0; padding: 0 12px; border-radius: var(--r-md); border: 1.5px solid var(--line-input);
  background: var(--surface-2); color: var(--ink); font-family: var(--font-mono); font-size: var(--fs-xs); text-overflow: ellipsis;
}
body.tk-lot-membres :is(.ca-prof-link, .ca-dpub-link) input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
body.tk-lot-membres :is(.ca-prof-link, .ca-dpub-link) .ca-copy-code { flex: none; }
/* Recherche dans les annonces d'un membre et pagination (068) */
body.tk-lot-membres .ca-psearch { position: relative; display: flex; align-items: center; margin: 0 0 var(--sp-3); }
body.tk-lot-membres .ca-psearch-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; color: var(--muted); pointer-events: none; }
body.tk-lot-membres .ca-psearch input.ca-psearch-i {
  flex: 1 1 auto; width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 48px 0 42px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-input); background: var(--surface); color: var(--ink); font-size: var(--fs-base); box-shadow: none;
}
body.tk-lot-membres .ca-psearch input.ca-psearch-i::placeholder { color: var(--muted); opacity: 1; }
body.tk-lot-membres .ca-psearch input.ca-psearch-i::-webkit-search-cancel-button { display: none; }
body.tk-lot-membres .ca-psearch input.ca-psearch-i:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
body.tk-lot-membres .ca-psearch button.ca-psearch-x { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; min-width: 0; padding: 0; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: 19px; line-height: 1; cursor: pointer; }
body.tk-lot-membres .ca-psearch button.ca-psearch-go { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; padding: 0; }
body.tk-lot-membres .ca-psearch-count { margin: 0 0 var(--sp-3); font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: var(--tr-label); color: var(--muted); }
body.tk-lot-membres .ca-psearch-none { margin: var(--sp-4) 0 0; padding: var(--sp-6) var(--sp-4); border: 2px dashed var(--line-2); border-radius: var(--r-xl); background: var(--surface-2); text-align: center; }
body.tk-lot-membres .ca-psearch-none-t { margin: 0 0 6px; font-weight: var(--fw-strong); color: var(--ink); }
body.tk-lot-membres .ca-psearch-none-s { margin: 0 0 var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2); }
body.tk-lot-membres .ca-psearch-none a.ca-psearch-reset { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-strong); letter-spacing: 0; text-decoration: none; }
body.tk-lot-membres .ca-psearch-wrap.is-loading .ca-ps-list { opacity: .45; transition: opacity var(--dur-1); }
body.tk-lot-membres .ca-pgn { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: var(--sp-6) 0 var(--sp-1); }
body.tk-lot-membres .ca-pgn-nums { display: flex; align-items: center; gap: 6px; }
body.tk-lot-membres .ca-pgn a {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); height: var(--tap); padding: 0 12px;
  border-radius: var(--r-md); border: 1.5px solid var(--line-input); background: var(--surface); color: var(--ink);
  font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700; text-decoration: none;
}
body.tk-lot-membres .ca-pgn a[aria-current="page"] { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); }
body.tk-lot-membres .ca-pgn a[aria-disabled="true"] { opacity: .4; pointer-events: none; }
body.tk-lot-membres .ca-pgn a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
body.tk-lot-membres .ca-pgn-gap { color: var(--muted); }
body.tk-lot-membres .ca-pgn-mob { display: none; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink); }
@media (max-width: 600px) { body.tk-lot-membres .ca-pgn-nums { display: none; } body.tk-lot-membres .ca-pgn-mob { display: inline-block; } }
@media (max-width: 420px) { body.tk-lot-membres :is(.ca-pgn-prev, .ca-pgn-next) span { display: none; } }

/* ---------- 2. Annonce de membre (073, ligne .ca-row) ----------
   Une annonce de membre n'est pas une fiche vérifiée : bord en pointillés et étiquette « Annonce de membre »,
   comme sur la maquette (prototype/communaute.html). Téléphone : une carte ; à partir de 768 px : une ligne
   « membre | annonce | actions », comme sur les fiches (étape 3). */
body.tk-lot-membres .ca-rows { display: grid; gap: var(--sp-4); }
body.tk-lot-membres .ca-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin: 0; padding: 22px 16px 16px;
  border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong); background: var(--surface); color: var(--ink);
}
body.tk-lot-membres .ca-row::before {
  content: "Annonce de membre"; position: absolute; top: -9px; left: 14px; padding: 0 8px; background: var(--surface); border-radius: 4px;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tr-label); line-height: 18px; color: var(--muted);
}
body.tk-lot-membres .ca-row.is-target { border-style: solid; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-halo); }
body.tk-lot-membres .ca-row.is-stale { opacity: .82; }
@media (min-width: 768px) { body.tk-lot-membres .ca-row { grid-template-columns: 150px minmax(0, 1fr) auto; align-items: start; column-gap: var(--sp-5); } }
body.tk-lot-membres .ca-row-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
@media (min-width: 768px) {
  body.tk-lot-membres .ca-row-who { flex-direction: column; align-items: flex-start; }
  body.tk-lot-membres .ca-row-idlink { flex-direction: column; align-items: flex-start; gap: 6px; }
}
body.tk-lot-membres .ca-row-idlink { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: var(--tap); color: var(--ink); font-weight: var(--fw-strong); text-decoration: none; }
body.tk-lot-membres .ca-row-avwrap { width: 44px; height: 44px; }
body.tk-lot-membres .ca-row-av { width: 44px; height: 44px; }
body.tk-lot-membres .ca-row-pseudo { overflow-wrap: break-word; line-height: 1.2; max-width: 100%; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres .ca-row-idlink:hover .ca-row-pseudo { text-decoration: underline; } }
body.tk-lot-membres .ca-row-blogo .ca-logo, body.tk-lot-membres .ca-row-brand .ca-logo {
  flex: none; display: grid; place-items: center; width: var(--cal-px, 26px); height: var(--cal-px, 26px); border-radius: 7px; overflow: hidden; background: var(--surface-2);
}
body.tk-lot-membres :is(.ca-row-blogo, .ca-row-brand, .ca-myc-logo) .ca-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
body.tk-lot-membres :is(.ca-row, .ca-myc, .ca-amodal) .ca-logo-ini[hidden] { display: none; }
body.tk-lot-membres :is(.ca-row, .ca-myc, .ca-amodal) .ca-logo-mono .ca-logo-ini::before { content: attr(data-ini); font-weight: var(--fw-title); font-size: calc(var(--cal-px, 26px) * .42); color: var(--ink); }
body.tk-lot-membres .ca-row-body { display: grid; gap: 6px; min-width: 0; }
body.tk-lot-membres .ca-row-head { display: grid; gap: 6px; min-width: 0; }
body.tk-lot-membres .ca-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
body.tk-lot-membres .ca-row-date { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0; color: var(--muted); }
body.tk-lot-membres .ca-row-boost { padding: 2px 8px; border-radius: var(--r-pill); background: var(--ok-bg); color: var(--ok); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; }
body.tk-lot-membres .ca-row-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
body.tk-lot-membres .ca-row-brandlink { color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: 1.2; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; overflow-wrap: anywhere; }
body.tk-lot-membres .ca-row-bonus { margin: 0; font-size: var(--fs-base); font-weight: var(--fw-strong); line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
body.tk-lot-membres .ca-row-desc { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
body.tk-lot-membres .ca-row-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.tk-lot-membres .ca-row-full[aria-hidden="true"] { display: none; }
body.tk-lot-membres .ca-row-more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
body.tk-lot-membres .ca-row-cta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
@media (min-width: 768px) { body.tk-lot-membres .ca-row-cta { flex-direction: column; align-items: stretch; width: 200px; } }
/* Code du membre : un petit talon (libellé, code en chasse fixe, « Copier le code ») */
body.tk-lot-membres .ca-row-cta button.ca-codebox {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lbl act" "val act"; align-items: center; gap: 2px 10px;
  flex: 1 1 220px; min-height: 0; margin: 0; padding: 9px 12px; border-radius: var(--r-md); border: 1.5px dashed var(--line-strong);
  background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--font-sans);
  justify-content: center; font-size: var(--fs-xs); font-weight: var(--fw-strong);
}
body.tk-lot-membres .ca-row-cta .ca-codebox .ca-cb-lbl { grid-area: lbl; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--tr-label); color: var(--muted); }
body.tk-lot-membres .ca-row-cta .ca-codebox .ca-cb-val { grid-area: val; font-size: var(--fs-md); font-weight: 700; line-height: 1.25; color: var(--ink); word-break: break-all; }
body.tk-lot-membres .ca-row-cta .ca-codebox .ca-cb-act {
  grid-area: act; display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border-radius: var(--r-sm);
  background: var(--sel-bg); color: var(--sel-ink); font-size: var(--fs-2xs); font-weight: var(--fw-strong); letter-spacing: 0; white-space: nowrap;
}
body.tk-lot-membres .ca-row-cta .ca-codebox:is(.is-copied, .is-done, .is-ok) .ca-cb-act { background: var(--copied-bg); color: var(--ink); }
body.tk-lot-membres .ca-row-cta .ca-codebox:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Colonne d'actions étroite (à partir de 768 px) : libellé, code, puis « Copier le code » sur toute la largeur */
@media (min-width: 768px) {
  body.tk-lot-membres .ca-row-cta button.ca-codebox { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lbl" "val" "act"; flex: none; gap: 4px; }
  body.tk-lot-membres .ca-row-cta .ca-codebox .ca-cb-act { justify-content: center; margin-top: 4px; }
}
/* « J'en profite » : accent du thème bordé d'encre, comme « Profitez de l'offre » (retour de Kevinoo du 19/10) */
body.tk-lot-membres .ca-row-cta a.ca-row-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 auto; min-height: var(--tap); padding: 0 16px;
  border-radius: var(--r-sm); border: 1.5px solid var(--tk-ink); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent);
  font-size: var(--fs-xs); font-weight: var(--fw-strong); font-stretch: var(--wd-title); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1), background var(--dur-1);
}
@media (hover: hover) and (pointer: fine) {
  body.tk-lot-membres .ca-row-cta a.ca-row-go:hover { background: var(--accent-fill-hover, var(--accent-hover, var(--accent))); background-origin: border-box; transform: translateY(-1px); box-shadow: 0 3px 0 var(--tk-ink); }
}
body.tk-lot-membres .ca-row-cta a.ca-row-go:active { transform: translateY(1px); box-shadow: none; }
body.tk-lot-membres .ca-row-cta a.ca-row-go:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { body.tk-lot-membres .ca-row-cta a.ca-row-go { transition: none; transform: none; } }
/* Cœurs (189) */
body.tk-lot-membres .ca-coeur {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line-input); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; font-size: var(--fs-xs); font-weight: 700;
}
body.tk-lot-membres .ca-coeur-i { display: inline-flex; }
body.tk-lot-membres .ca-coeur svg { width: 14px; height: 14px; fill: none; stroke: var(--danger); stroke-width: 2; }
body.tk-lot-membres .ca-coeur.is-on svg { fill: var(--danger); }
body.tk-lot-membres .ca-coeur.is-bump { animation: tk-coeur .45s var(--ease-spring); }
body.tk-lot-membres .ca-coeur:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@keyframes tk-coeur { 40% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { body.tk-lot-membres .ca-coeur.is-bump { animation: none; } }

/* Téléphone (moins de 768 px) : annonce resserrée comme les tickets (demande de Kevinoo du 20/10/2026).
   Aucun texte retiré ni modifié : seule la disposition change. Les blocs intermédiaires de 073 (.ca-row-body,
   .ca-row-head, .ca-row-cta : de simples <div>) laissent leurs enfants se placer dans la grille de l'annonce :
     membre (cœur en haut à droite) / date et remontée / marque / avantage (2 lignes au plus) /
     description (2 lignes, l'annonce complète s'ouvre au clic) / « Lire l'annonce complète » et « Contacter le parrain »
     sur une ligne / code et « Copier le code » sur une ligne / « J'en profite » sur la suivante (21/10 : une annonce peut
     avoir les deux ; ils se recouvraient quand ils partageaient la même case).
   Toutes les cibles gardent 44 px. */
@media (max-width: 767px) {
  body.tk-lot-membres .ca-rows { gap: var(--sp-3); }
  body.tk-lot-membres .ca-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "who who" "meta meta" "brand brand" "bonus bonus" "desc desc" "more msg" "react react" "act act" "go go";
    gap: 2px 10px; padding: 16px 12px 12px;
  }
  body.tk-lot-membres :is(.ca-row-body, .ca-row-head, .ca-row-cta, .ca-row-cta .ca-msg-ctawrap) { display: contents; }
  body.tk-lot-membres .ca-row-who { grid-area: who; gap: 4px 8px; padding-right: 64px; }
  body.tk-lot-membres .ca-row-idlink { gap: 8px; }
  body.tk-lot-membres .ca-row-avwrap, body.tk-lot-membres .ca-row-av { width: 34px; height: 34px; }
  /* Profils : la marque tient la place du membre (logo de 56 px en ligne dans 073) */
  body.tk-lot-membres .ca-row-who-brand .ca-row-blogo .ca-logo { width: 40px; height: 40px; border-radius: 10px; }
  body.tk-lot-membres .ca-row-who-brand a.ca-row-pseudo { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--fs-base); font-weight: var(--fw-title); color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
  body.tk-lot-membres .ca-row-meta { grid-area: meta; gap: 4px 10px; }
  body.tk-lot-membres .ca-row-meta .ca-coeur { position: absolute; top: 14px; right: 10px; min-height: var(--tap); min-width: var(--tap); justify-content: center; }
  body.tk-lot-membres .ca-row-brand { grid-area: brand; margin-top: 6px; }
  body.tk-lot-membres .ca-row-brandlink { font-size: var(--fs-base); }
  body.tk-lot-membres .ca-row-bonus { grid-area: bonus; font-size: var(--fs-sm); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body.tk-lot-membres .ca-row-desc { grid-area: desc; margin-top: 2px; font-size: var(--fs-xs); line-height: 1.45; -webkit-line-clamp: 2; }
  /* Bloc en ligne (et non flex) : sur deux lignes à 360 px, la flèche suit le texte ; 44 px sur une ligne. */
  body.tk-lot-membres .ca-row-more { grid-area: more; align-self: center; display: inline-block; min-height: 0; padding: 14px 0; font-size: var(--fs-xs); line-height: 16px; }
  body.tk-lot-membres .ca-row-cta a.ca-msg-cta { grid-area: msg; align-self: center; padding: 0 10px; border-color: var(--line-input); font-size: var(--fs-2xs); }
  body.tk-lot-membres .ca-row-cta .ca-msg-react-mini { grid-area: react; justify-self: end; text-align: right; }
  body.tk-lot-membres .ca-row-cta button.ca-codebox { grid-area: act; margin-top: 4px; }
  body.tk-lot-membres .ca-row-cta a.ca-row-go { grid-area: go; margin-top: 4px; }
  body.tk-lot-membres .ca-row-cta button.ca-codebox { min-height: var(--tap); padding: 6px 6px 6px 12px; gap: 0 10px; }
  body.tk-lot-membres .ca-row-cta .ca-codebox .ca-cb-lbl { white-space: nowrap; letter-spacing: 0; }
  body.tk-lot-membres .ca-row-cta .ca-codebox .ca-cb-val { font-size: var(--fs-base); line-height: 1.2; }
  body.tk-lot-membres .ca-row-cta .ca-codebox .ca-cb-act { min-height: 36px; }
}

/* ---------- 3. Fenêtres ---------- */
/* Annonce complète (073) : construite en JavaScript au clic sur une ligne */
body.tk-lot-membres .ca-amodal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: color-mix(in srgb, var(--ink) 55%, transparent); }
body.tk-lot-membres .ca-amodal .ca-am-box {
  position: relative; width: 100%; max-width: 680px; max-height: 88vh; overflow: auto; padding: 24px 22px 20px;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3);
}
body.tk-lot-membres .ca-amodal .ca-am-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
body.tk-lot-membres .ca-amodal .ca-am-top { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; padding-right: 46px; }
body.tk-lot-membres .ca-amodal .ca-am-av { width: 50px; height: 50px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-weight: var(--fw-title); }
body.tk-lot-membres .ca-amodal .ca-am-av--brand { background: none; border-radius: 0; }
body.tk-lot-membres .ca-amodal .ca-am-av--brand .ca-logo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
body.tk-lot-membres .ca-amodal .ca-am-av--brand .ca-logo img { width: 100%; height: 100%; object-fit: contain; }
body.tk-lot-membres .ca-amodal .ca-am-who { display: grid; gap: 2px; min-width: 0; }
body.tk-lot-membres .ca-amodal .ca-am-name { font-weight: var(--fw-title); font-size: var(--fs-md); font-stretch: var(--wd-title); color: var(--ink); line-height: 1.2; }
body.tk-lot-membres .ca-amodal :is(.ca-am-sub, .ca-am-meta, .ca-am-linkl, .ca-am-warn) { color: var(--ink-2); font-size: var(--fs-xs); }
body.tk-lot-membres .ca-amodal :is(.ca-am-sub, .ca-am-foot) a { color: var(--ink); text-decoration: underline; }
body.tk-lot-membres .ca-amodal .ca-am-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-family: var(--font-mono); letter-spacing: 0; }
body.tk-lot-membres .ca-amodal .ca-am-boost { color: var(--ok); font-weight: 700; }
body.tk-lot-membres .ca-amodal .ca-am-bonus { margin: 12px 0 0; font-size: var(--fs-md); font-weight: var(--fw-strong); color: var(--ink); }
body.tk-lot-membres .ca-amodal .ca-am-txt { margin: 12px 0 0; font-size: var(--fs-base); line-height: 1.65; color: var(--ink); white-space: pre-line; }
body.tk-lot-membres .ca-amodal .ca-am-code {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: var(--tap); margin-top: 18px; padding: 13px 14px; cursor: pointer;
  border-radius: var(--r-lg); border: 2px dashed var(--line-strong); background: var(--surface-2); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: var(--fw-strong); letter-spacing: 0;
}
body.tk-lot-membres .ca-amodal .ca-am-cl { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--tr-label); color: var(--muted); }
body.tk-lot-membres .ca-amodal .ca-am-cv { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-xl); color: var(--ink); word-break: break-all; line-height: 1.25; text-transform: none; }
body.tk-lot-membres .ca-amodal .ca-cb-act { display: inline-flex; margin-top: 6px; padding: 6px 12px; border-radius: var(--r-sm); background: var(--sel-bg); color: var(--sel-ink); font-size: var(--fs-2xs); font-weight: var(--fw-strong); letter-spacing: 0; }
body.tk-lot-membres .ca-amodal .ca-am-linkrow { display: flex; flex-wrap: wrap; gap: 8px; }
body.tk-lot-membres .ca-amodal .ca-am-linkrow input { flex: 1 1 240px; min-width: 0; height: var(--tap); padding: 0 12px; border-radius: var(--r-md); border: 1.5px solid var(--line-input); background: var(--surface-2); color: var(--ink); font-family: var(--font-mono); font-size: var(--fs-xs); }
body.tk-lot-membres .ca-amodal .ca-am-cp { min-height: var(--tap); padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-strong); letter-spacing: 0; cursor: pointer; }
body.tk-lot-membres .ca-amodal .ca-am-go {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin-top: 16px; padding: 0 18px; border-radius: var(--r-md);
  border: 1.5px solid var(--tk-ink); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent);
  font-size: var(--fs-sm); font-weight: var(--fw-strong); font-stretch: var(--wd-title); letter-spacing: 0; text-decoration: none;
}
body.tk-lot-membres .ca-amodal .ca-am-foot { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: var(--fs-xs); }
body.tk-lot-membres .ca-amodal :is(.ca-am-x, .ca-am-code, .ca-am-cp, .ca-am-go):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Message au parrain (127) : bouton sous les annonces et sur les profils, fenêtre d'envoi */
body.tk-lot-membres .ca-msg-ctawrap { display: flex; flex-direction: column; gap: 4px; align-items: stretch; margin: 0; }
body.tk-lot-membres .ca-row-cta .ca-msg-ctawrap { flex: 1 1 auto; }
body.tk-lot-membres .ca-msg-ctawrap.is-profil { align-items: flex-start; margin-top: var(--sp-3); }
body.tk-lot-membres a.ca-msg-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
  font-size: var(--fs-xs); font-weight: var(--fw-strong); text-decoration: none; white-space: nowrap; line-height: 1.2;
}
body.tk-lot-membres a.ca-msg-cta svg { width: 15px; height: 15px; flex: none; }
body.tk-lot-membres a.ca-msg-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres a.ca-msg-cta:hover { background: var(--surface-2); border-color: var(--ink-2); } }
body.tk-lot-membres .ca-msg-react-mini { font-size: var(--fs-2xs); font-weight: 600; line-height: 1.35; color: var(--ok); text-align: center; }
body.tk-lot-membres .ca-msg-ctawrap.is-profil .ca-msg-react-mini { text-align: left; }
body.tk-lot-membres .ca-msg-ov { position: fixed; inset: 0; z-index: 99990; display: none; align-items: center; justify-content: center; padding: 16px; background: color-mix(in srgb, var(--ink) 55%, transparent); }
body.tk-lot-membres .ca-msg-ov.is-on { display: flex; }
body.tk-lot-membres .ca-msg-mod { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); }
body.tk-lot-membres .ca-msg-mod-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px dashed var(--line-2); font-weight: var(--fw-title); }
/* !important : la couleur bleue (#0f93d6) est écrite dans le balisage de l'icône par 127 (style="…"). À la source : retirer
   cette couleur du balisage de 127, puis ce renfort (docs/SURCOUCHES-21-10.md). */
body.tk-lot-membres .ca-msg-mod-top svg { color: var(--ink) !important; }
body.tk-lot-membres .ca-msg-x { margin-left: auto; display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: 22px; cursor: pointer; }
body.tk-lot-membres .ca-msg-mod-body { display: grid; gap: 10px; padding: 16px; }
body.tk-lot-membres :is(.ca-msg-mod-ctx, .ca-msg-mod-note) { margin: 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); }
body.tk-lot-membres .ca-msg-mod-react { margin: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--ok); }
body.tk-lot-membres .ca-msg-mod-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
body.tk-lot-membres .ca-msg-mod-sugg button { min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-input); background: var(--surface); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
body.tk-lot-membres .ca-msg-mod-flash { margin: 0; font-size: var(--fs-sm); font-weight: 700; }
body.tk-lot-membres .ca-msg-mod-flash:empty { display: none; }
body.tk-lot-membres #ca-msg-mod-ta { width: 100%; min-height: 140px; margin: 0; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-input); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-base); line-height: 1.5; resize: vertical; }
body.tk-lot-membres #ca-msg-mod-ta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
body.tk-lot-membres .ca-msg-mod-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 16px; }
body.tk-lot-membres .ca-msg-mod-cnt { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--muted); }
body.tk-lot-membres button.ca-msg-mod-go { min-height: var(--tap); padding: 0 18px; border-radius: var(--r-md); border: 1.5px solid var(--sel-bg); background: var(--sel-bg); color: var(--sel-ink); font-size: var(--fs-xs); font-weight: var(--fw-strong); letter-spacing: 0; cursor: pointer; }
body.tk-lot-membres button.ca-msg-mod-go[disabled] { opacity: .45; cursor: not-allowed; }
body.tk-lot-membres :is(.ca-msg-x, .ca-msg-mod-sugg button, button.ca-msg-mod-go):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- 4. Communauté (070, 324) ---------- */
body.tk-lot-membres .ca-hub { width: 100%; max-width: var(--container); margin: 0 auto; padding: var(--sp-6) var(--gutter) 0; }
body.tk-lot-membres .ca-hub > section { margin: var(--sp-10) 0 0; }
body.tk-lot-membres .ca-hub-hero { display: grid; gap: var(--sp-4); margin: 0 0 var(--sp-6); }
body.tk-lot-membres .ca-hub-h1, body.tk-lot-membres .ca-prof-h1, body.tk-lot-membres .ca-annuaire > .ca-prof-h1 {
  margin: 0; font-size: var(--fs-display); font-weight: var(--fw-title); font-stretch: var(--wd-display); letter-spacing: var(--tr-display);
  line-height: 1; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; hyphens: none;
}
body.tk-lot-membres .ca-hub-h1 { font-size: clamp(1.875rem, 1rem + 3.2vw, 3.25rem); }
body.tk-lot-membres .ca-hub-codes > h2 { margin-bottom: var(--sp-6); }
body.tk-lot-membres .ca-hub-intro { max-width: 68ch; margin: 0; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); }
body.tk-lot-membres .ca-hub-intro strong { color: var(--ink); }
body.tk-lot-membres .ca-hub-cta, body.tk-lot-membres .ca-prof-foot { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
/* « Publier mon code de parrainage » (communauté, profils) : le bouton d'appel du site, en accent */
body.tk-lot-membres a.ca-prof-cta {
  display: inline-block; min-height: 52px; max-width: 100%; padding: 15px 22px; text-wrap: balance;
  border-radius: var(--r-md); border: 1.5px solid var(--accent-line, var(--accent)); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: var(--fw-strong); font-stretch: var(--wd-title); letter-spacing: 0; text-decoration: none; text-align: center; line-height: 1.25;
}
body.tk-lot-membres a.ca-prof-cta[href*="/publier-un-code/"]::before { content: "+"; display: inline-block; margin: 0 8px 0 0; font-size: 1.35em; font-weight: 700; line-height: 0; vertical-align: -.06em; }
body.tk-lot-membres a.ca-prof-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres a.ca-prof-cta:hover { background: var(--accent-fill-hover, var(--accent-hover)); } }
/* Le pont habille les boutons secondaires avec un :is(…) fort (0,3,1) : on passe devant avec le conteneur. */
body.tk-lot-membres :is(.ca-hub-cta, .ca-prof-foot) a.ca-prof-link2 { min-height: 52px; padding: 0 20px; font-size: var(--fs-sm); }
/* Filtre par catégorie */
body.tk-lot-membres .ca-hubfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--sp-2); }
body.tk-lot-membres .ca-hubfilter button { margin: 0; cursor: pointer; font-family: var(--font-sans); }
body.tk-lot-membres .ca-hubfilter button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* Téléphone : les catégories défilent sur une seule ligne au lieu d'en occuper quatre */
@media (max-width: 767px) {
  body.tk-lot-membres .ca-hubfilter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  body.tk-lot-membres .ca-hubfilter::-webkit-scrollbar { display: none; }
  body.tk-lot-membres .ca-hubfilter button { flex: none; white-space: nowrap; }
}
body.tk-lot-membres .ca-hub > section.ca-hub-codes { margin-top: var(--sp-6); }
/* Membres les plus actifs */
body.tk-lot-membres .ca-hub-sub { margin: 0 0 var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2); }
body.tk-lot-membres .ca-mbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-3); }
body.tk-lot-membres a.ca-mbcard {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: "av nom" "av nb"; align-items: center; gap: 2px 10px;
  min-height: var(--tap); padding: 10px 12px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
}
body.tk-lot-membres a.ca-mbcard img { grid-area: av; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface-3); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--line-2); }
body.tk-lot-membres .ca-mbname { grid-area: nom; font-weight: var(--fw-strong); line-height: 1.2; overflow-wrap: anywhere; }
body.tk-lot-membres .ca-mbn { grid-area: nb; font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0; color: var(--muted); }
body.tk-lot-membres a.ca-mbcard:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres a.ca-mbcard:hover { border-color: var(--ink-2); } body.tk-lot-membres a.ca-mbcard:hover .ca-mbname { text-decoration: underline; } }
/* Différence rédaction / membres, étapes, FAQ */
body.tk-lot-membres :is(.ca-hub-how, .ca-hub-faq, .ca-hub-empty, .ca-prof-how) {
  padding: var(--sp-6); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
}
body.tk-lot-membres :is(.ca-hub-how, .ca-prof-how) h2 + p, body.tk-lot-membres :is(.ca-hub-how, .ca-prof-how) p { max-width: 72ch; margin: 0 0 var(--sp-3); color: var(--ink-2); }
body.tk-lot-membres .ca-hub-how h2:not(:first-child) { margin-top: var(--sp-6); }
body.tk-lot-membres ol.ca-prof-steps { display: grid; gap: var(--sp-3); margin: var(--sp-3) 0 0; padding: 0; list-style: none; counter-reset: tk-etape; }
body.tk-lot-membres ol.ca-prof-steps li { position: relative; padding: 2px 0 2px 46px; counter-increment: tk-etape; line-height: 1.5; color: var(--ink-2); }
body.tk-lot-membres ol.ca-prof-steps li::before {
  content: counter(tk-etape, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 28px;
  border-radius: 6px; background: var(--sel-bg); color: var(--sel-ink); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700;
}
body.tk-lot-membres ol.ca-prof-steps li strong { color: var(--ink); }
body.tk-lot-membres .ca-hub-faq .ca-faq-item { padding: var(--sp-4) 0; border-top: 1px dashed var(--line-2); }
body.tk-lot-membres .ca-hub-faq .ca-faq-item h3 { margin: 0 0 6px; font-size: var(--fs-base); font-weight: var(--fw-strong); line-height: 1.35; color: var(--ink); }
body.tk-lot-membres .ca-hub-faq .ca-faq-item p { margin: 0; color: var(--ink-2); line-height: 1.55; }
/* Ordinateur : les annonces en colonne principale, les membres les plus actifs dans une colonne collante */
@media (min-width: 1180px) {
  body.tk-lot-membres .ca-hub { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: var(--sp-8); align-items: start; }
  body.tk-lot-membres .ca-hub > * { grid-column: 1; min-width: 0; }
  body.tk-lot-membres .ca-hub > :is(.ca-prof-bc, .ca-hub-hero) { grid-column: 1 / -1; }
  body.tk-lot-membres .ca-hub > .ca-hub-hero { grid-template-columns: minmax(0, 1fr) 320px; align-items: end; column-gap: var(--sp-8); }
  body.tk-lot-membres .ca-hub > .ca-hub-hero > .ca-hub-h1, body.tk-lot-membres .ca-hub > .ca-hub-hero > .ca-hub-intro { grid-column: 1; }
  body.tk-lot-membres .ca-hub > .ca-hub-hero > .ca-hub-cta { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: stretch; }
  body.tk-lot-membres .ca-hub > .ca-hub-top {
    grid-column: 2; grid-row: 3 / span 4; position: sticky; top: 88px; margin-top: 0;
    padding: var(--sp-5); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
  }
  body.tk-lot-membres .ca-hub > .ca-hub-top h2 { font-size: var(--fs-lg); }
  body.tk-lot-membres .ca-hub > .ca-hub-top .ca-mbgrid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  body.tk-lot-membres .ca-hub > .ca-hub-top a.ca-mbcard { border-color: transparent; padding: 6px 4px; background: transparent; }
}

/* ---------- 5. Profil public (068) et annuaire ---------- */
body.tk-lot-membres .ca-prof { width: 100%; max-width: var(--container-narrow, 960px); margin: 0 auto; padding: var(--sp-6) var(--gutter) 0; }
body.tk-lot-membres .ca-prof > section { margin: var(--sp-8) 0 0; }
body.tk-lot-membres .ca-prof-own {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 var(--sp-5); padding: 12px 16px;
  border-radius: var(--r-md); background: var(--info-bg); color: var(--ink); font-size: var(--fs-sm);
}
body.tk-lot-membres .ca-prof-own a { color: var(--ink); font-weight: var(--fw-strong); }
body.tk-lot-membres p.ca-prof-flash { margin: 0 0 var(--sp-5); padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--ok-line, var(--ok)); background: var(--ok-bg); color: var(--ink); font-weight: 700; line-height: 1.5; }
body.tk-lot-membres .ca-prof-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4) var(--sp-5); align-items: start;
  padding: var(--sp-6); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
}
body.tk-lot-membres .ca-prof-avwrap img.ca-prof-av { width: 104px; height: 104px; }
body.tk-lot-membres .ca-prof-avwrap .ca-dot { width: 18px; height: 18px; right: 4px; bottom: 4px; border-width: 3px; }
body.tk-lot-membres .ca-prof-id { display: grid; gap: var(--sp-3); min-width: 0; }
body.tk-lot-membres .ca-prof-h1 { font-size: var(--fs-2xl); }
body.tk-lot-membres .ca-prof-h1 span { display: inline; padding: 0 .12em; border-radius: .14em; background: var(--accent-fill, var(--accent)); color: var(--on-accent); -webkit-box-decoration-break: clone; box-decoration-break: clone; text-transform: none; }
body.tk-lot-membres .ca-prof-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0; color: var(--ink-2); }
body.tk-lot-membres .ca-prof-pres { display: inline-flex; align-items: center; gap: 6px; }
body.tk-lot-membres .ca-prof-pres::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
body.tk-lot-membres .ca-prof-pres.ca-on::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
body.tk-lot-membres .ca-prof-bio { max-width: 64ch; margin: 0; font-size: var(--fs-base); line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
body.tk-lot-membres .ca-prof-nums { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0; padding-top: var(--sp-4); border-top: 1px dashed var(--line-2); }
body.tk-lot-membres .ca-prof-num { display: grid; gap: 2px; min-width: 120px; padding: 0 var(--sp-5) 0 0; }
body.tk-lot-membres .ca-prof-num + .ca-prof-num { padding-left: var(--sp-5); border-left: 1px dashed var(--line-2); }
body.tk-lot-membres .ca-prof-num strong { font-size: var(--fs-prime); font-weight: var(--fw-title); font-stretch: var(--wd-display); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
body.tk-lot-membres .ca-prof-num em { font-style: normal; font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: var(--tr-label); color: var(--muted); }
@media (max-width: 559px) {
  body.tk-lot-membres .ca-prof-hero { grid-template-columns: minmax(0, 1fr); padding: var(--sp-5); }
  body.tk-lot-membres .ca-prof-avwrap img.ca-prof-av { width: 84px; height: 84px; }
}
body.tk-lot-membres .ca-prof-share { padding: var(--sp-5) var(--sp-6); border-radius: var(--r-xl); border: 1.5px dashed var(--line-strong); background: var(--surface-2); }
body.tk-lot-membres .ca-prof-share h2 { font-size: var(--fs-lg); }
body.tk-lot-membres .ca-prof-share-sub, body.tk-lot-membres .ca-prof-pauses-sub { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); color: var(--ink-2); }
body.tk-lot-membres .ca-prof-empty { padding: var(--sp-6); border-radius: var(--r-xl); border: 2px dashed var(--line-2); background: var(--surface-2); text-align: center; }
body.tk-lot-membres .ca-prof-empty p { margin: 0 0 var(--sp-4); }
body.tk-lot-membres .ca-prof-note { margin: var(--sp-4) 0 0; font-size: var(--fs-xs); line-height: 1.55; color: var(--muted); }
body.tk-lot-membres .ca-prof-foot { margin: var(--sp-8) 0 0; padding-bottom: var(--sp-4); }
body.tk-lot-membres .ca-annuaire > .ca-prof-bio { margin: var(--sp-3) 0 var(--sp-6); color: var(--ink-2); }
/* Ancienne carte d'annonce (068, ca-mcard), si 073 venait à manquer */
body.tk-lot-membres .ca-mcard { position: relative; display: grid; gap: var(--sp-3); padding: 18px 16px 16px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong); background: var(--surface); }
body.tk-lot-membres .ca-mcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.tk-lot-membres .ca-mcard-brand { font-weight: var(--fw-title); color: var(--ink); }
body.tk-lot-membres :is(.ca-mcard-when, .ca-mcard-desc) { font-size: var(--fs-sm); color: var(--ink-2); }
body.tk-lot-membres .ca-mcard-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.tk-lot-membres .ca-mcard-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 6. Espace membre (029, 030, 127, 133, 178) ---------- */
/* Titre « Mon espace » (page.php) aligné sur le tableau de bord, plus large que les pages de texte */
body.tk-lot-membres .tk-page:has(> .entry-content :is(.ca-dash, .ca-dash-guest)) > .tk-page__head { max-width: var(--container); padding-bottom: var(--sp-4); }
/* Fonctionnel (autrefois #ca-dash-fitcss) : aucune piste de grille poussée par son contenu. */
body.tk-lot-membres .ca-dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
body.tk-lot-membres :is(.ca-dash > *, .ca-dash-grid > *, .ca-dash-col > *, .ca-dash-section) { min-width: 0; }
body.tk-lot-membres .ca-dash-flash { padding: 13px 16px; border-radius: var(--r-md); font-weight: 700; line-height: 1.5; }
body.tk-lot-membres .ca-dash-flash.ok { background: var(--ok-bg); color: var(--ink); box-shadow: inset 4px 0 0 var(--ok); }
body.tk-lot-membres .ca-dash-flash.warn { background: var(--warn-bg); color: var(--ink); box-shadow: inset 4px 0 0 var(--warn); }
/* En-tête : avatar, « BONJOUR, CAMILLE », niveau, bio ; à droite « Publier mon code de parrainage » et la messagerie */
body.tk-lot-membres .ca-dash-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4) var(--sp-5); align-items: center;
  padding: var(--sp-6); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
}
body.tk-lot-membres .ca-dash-avwrap img.ca-dash-avatar { width: 88px; height: 88px; }
body.tk-lot-membres .ca-dash-hi { display: grid; gap: 8px; min-width: 0; }
body.tk-lot-membres .ca-dash-welcome { font-size: var(--fs-2xl); font-weight: var(--fw-title); font-stretch: var(--wd-display); letter-spacing: var(--tr-display); line-height: 1; color: var(--ink); overflow-wrap: anywhere; }
body.tk-lot-membres .ca-dash-welcome span { padding: 0 .1em; border-radius: .12em; background: var(--accent-fill, var(--accent)); color: var(--on-accent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
body.tk-lot-membres .ca-dash-meta { display: block; font-family: var(--font-sans); font-size: var(--fs-xs); line-height: 2.2; letter-spacing: 0; color: var(--ink-2); }
body.tk-lot-membres .ca-dash-meta .ca-lvt { margin-right: 4px; vertical-align: middle; }
body.tk-lot-membres .ca-dash-bio { max-width: 64ch; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
body.tk-lot-membres .ca-dash-hero-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
body.tk-lot-membres a.ca-dash-cta {
  display: inline-block; min-height: 52px; max-width: 100%; padding: 15px 22px; text-wrap: balance; border-radius: var(--r-md);
  border: 1.5px solid var(--accent-line, var(--accent)); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent);
  font-size: var(--fs-sm); font-weight: var(--fw-strong); font-stretch: var(--wd-title); letter-spacing: 0; text-decoration: none; text-align: center; line-height: 1.25;
}
body.tk-lot-membres a.ca-dash-cta::before { content: "+"; display: inline-block; margin: 0 8px 0 0; font-size: 1.35em; font-weight: 700; line-height: 0; vertical-align: -.06em; }
body.tk-lot-membres a.ca-dash-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres a.ca-dash-cta:hover { background: var(--accent-fill-hover, var(--accent-hover)); } }
body.tk-lot-membres .ca-dash-hero-act a.ca-dash-cta2 { min-height: 52px; padding: 0 18px; font-size: var(--fs-sm); }
body.tk-lot-membres a.ca-dash-cta2 svg { width: 17px; height: 17px; }
@media (min-width: 900px) {
  body.tk-lot-membres .ca-dash-hero { grid-template-columns: auto minmax(0, 1fr) auto; }
  body.tk-lot-membres .ca-dash-hero-act { grid-column: 3; flex-direction: column; align-items: stretch; }
}
@media (max-width: 559px) {
  body.tk-lot-membres .ca-dash-hero { padding: var(--sp-5); gap: var(--sp-4); align-items: start; }
  body.tk-lot-membres :is(a.ca-dash-cta, a.ca-prof-cta) { display: block; padding: 13px 16px; }
  body.tk-lot-membres .ca-dash-avwrap img.ca-dash-avatar { width: 64px; height: 64px; }
  body.tk-lot-membres .ca-dash-welcome { font-size: var(--fs-xl); }
  body.tk-lot-membres .ca-dash-hero-act > a { flex: 1 1 100%; }
}
/* Nouveaux messages */
body.tk-lot-membres a.ca-dash-alerte {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg);
  border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); text-decoration: none;
}
body.tk-lot-membres .ca-dash-alerte-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-fill, var(--accent)); color: var(--on-accent); }
body.tk-lot-membres .ca-dash-alerte-txt { display: grid; gap: 2px; min-width: 0; font-size: var(--fs-sm); line-height: 1.4; }
body.tk-lot-membres .ca-dash-alerte-txt strong { font-size: var(--fs-base); font-weight: var(--fw-title); }
body.tk-lot-membres .ca-dash-alerte-txt span { color: var(--ink-2); }
body.tk-lot-membres .ca-dash-alerte-go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-sm); background: var(--sel-bg); color: var(--sel-ink); font-size: var(--fs-xs); font-weight: var(--fw-strong); letter-spacing: 0; }
body.tk-lot-membres a.ca-dash-alerte:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Progression (133) : jauge en tirets de ticket */
body.tk-lot-membres a.ca-lvlbar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; margin: 0; padding: 16px 18px;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
}
body.tk-lot-membres .ca-lvlbar-main { display: grid; gap: 8px; min-width: 0; }
body.tk-lot-membres .ca-lvlbar-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
body.tk-lot-membres .ca-lvlbar-lbl { font-weight: var(--fw-strong); font-stretch: var(--wd-title); }
body.tk-lot-membres .ca-lvlbar-xp { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
body.tk-lot-membres .ca-lvlbar-track { position: relative; display: block; height: 12px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
body.tk-lot-membres .ca-lvlbar-track i { position: absolute; inset: 0 auto 0 0; display: block; border-radius: inherit; background: var(--accent-fill, var(--accent)); background-origin: border-box; }
body.tk-lot-membres .ca-lvlbar-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 7px, var(--surface) 7px 9px); pointer-events: none; }
body.tk-lot-membres .ca-lvlbar-go { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; color: var(--ink-2); white-space: nowrap; }
body.tk-lot-membres .ca-lvlbar-go b { font-size: 1.4em; color: var(--ink); }
body.tk-lot-membres .ca-lvlbar-cap { grid-column: 1 / -1; justify-self: start; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-3); font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--ink-2); }
body.tk-lot-membres .ca-lvlbar-cap.ca-lvlbar-cap--full { background: var(--warn-bg); color: var(--warn); }
body.tk-lot-membres a.ca-lvlbar:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres a.ca-lvlbar:hover { border-color: var(--ink-2); } }
body.tk-lot-membres .ca-lvlup { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: var(--accent-fill, var(--accent)); color: var(--on-accent); }
body.tk-lot-membres .ca-lvlup-txt { display: grid; gap: 2px; font-size: var(--fs-sm); }
body.tk-lot-membres .ca-lvlup a.ca-lvlup-go { color: var(--on-accent); font-weight: var(--fw-strong); }
/* Chiffres : libellé au-dessus (maquette), gros chiffre */
body.tk-lot-membres .ca-dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--sp-3); }
body.tk-lot-membres .ca-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; min-width: 0; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
body.tk-lot-membres .ca-stat-num { font-size: var(--fs-prime); font-weight: var(--fw-title); font-stretch: var(--wd-display); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
body.tk-lot-membres .ca-stat-lbl { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: var(--tr-label); color: var(--muted); }
@media (max-width: 480px) { body.tk-lot-membres .ca-dash-stats { gap: 8px; } body.tk-lot-membres .ca-stat { padding: 12px 10px; } body.tk-lot-membres .ca-stat-num { font-size: clamp(1.25rem, 6.2vw, 1.75rem); } }
body.tk-lot-membres .ca-dash-clcta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: calc(-1 * var(--sp-2)) 0 0; font-size: var(--fs-sm); }
body.tk-lot-membres .ca-dash-clcta a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); font-weight: 700; }
body.tk-lot-membres .ca-dash-clsep { color: var(--muted); }
/* Deux colonnes : profil et thème à gauche (étroite), messages, codes et avis à droite */
body.tk-lot-membres .ca-dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
body.tk-lot-membres .ca-dash-col { display: grid; gap: var(--sp-5); }
@media (min-width: 1100px) { body.tk-lot-membres .ca-dash-grid { grid-template-columns: 360px minmax(0, 1fr); } }
body.tk-lot-membres .ca-dash-section { padding: var(--sp-5); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
body.tk-lot-membres .ca-dash-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); margin: 0 0 var(--sp-4); }
body.tk-lot-membres .ca-dash-sec-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: 1.2; color: var(--ink); }
body.tk-lot-membres .ca-dash-sec-head h3 svg { width: 20px; height: 20px; }
body.tk-lot-membres .ca-dash-sec-head > a:not(.ca-add-code-btn) { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-strong); text-decoration: underline; text-underline-offset: .25em; }
/* « + Ajouter un code » : imprimé avec des couleurs en ligne (bleu) par 029 ; même action que le bouton du haut, en secondaire */
body.tk-lot-membres a.ca-add-code-btn {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px !important; border-radius: var(--r-md) !important;
  border: 1.5px solid var(--line-strong); background: var(--surface) !important; color: var(--ink) !important; box-shadow: none !important;
  font-size: var(--fs-xs) !important; font-weight: var(--fw-strong) !important; letter-spacing: 0;
}
/* L'extrait 046 (feuille seule) impose color:#fff !important avec une spécificité de 0,7,2 : on passe devant, en attendant
   de le désactiver (il ne sert qu'à ce bouton, CARTE-BALISAGE § 15.1). */
body.tk-lot-membres .entry-content .ca-dash-sec-head a.ca-add-code-btn.ca-add-code-btn.ca-add-code-btn.ca-add-code-btn.ca-add-code-btn { color: var(--ink) !important; text-decoration: none !important; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres a.ca-add-code-btn:hover { background: var(--surface-2) !important; filter: none; transform: none; } }
body.tk-lot-membres a.ca-add-code-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Mon profil (029, 030) */
body.tk-lot-membres form.ca-profile-form { display: grid; gap: var(--sp-4); margin: 0; }
body.tk-lot-membres .ca-pf-avatar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong); background: var(--surface-2); }
body.tk-lot-membres .ca-pf-avfig { position: relative; flex: none; display: block; width: 84px; height: 84px; }
body.tk-lot-membres .ca-profile-form .ca-pf-avfig img { display: block; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--surface-3); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--line-2); }
body.tk-lot-membres .ca-pf-avring { position: absolute; inset: -5px; border-radius: 50%; border: 2px dashed transparent; pointer-events: none; transition: border-color var(--dur-2); }
body.tk-lot-membres .ca-pf-avatar.is-ready .ca-pf-avring { border-color: var(--ok); }
body.tk-lot-membres .ca-pf-avside { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
body.tk-lot-membres .ca-pf-avinput { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.tk-lot-membres .ca-profile-form label.ca-pf-file {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px; margin: 0; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
  font-size: var(--fs-xs); font-weight: var(--fw-strong); letter-spacing: 0;
}
body.tk-lot-membres .ca-pf-file:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
body.tk-lot-membres :is(.ca-pf-hint, .ca-pf-locked) { display: block; font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); font-weight: 400; }
body.tk-lot-membres .ca-pf-avstate { display: none; max-width: 100%; padding: 6px 10px; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
body.tk-lot-membres .ca-pf-avstate.is-on { display: block; }
body.tk-lot-membres .ca-pf-avstate.ok { background: var(--ok-bg); color: var(--ink); }
body.tk-lot-membres .ca-pf-avstate.ko { background: var(--danger-bg); color: var(--ink); }
body.tk-lot-membres label.ca-pf-lbl { display: grid; gap: 6px; margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
body.tk-lot-membres .ca-profile-form :is(input[type="text"], textarea) {
  width: 100%; margin: 0; padding: 0 14px; height: 48px; border-radius: var(--r-md); border: 1.5px solid var(--line-input);
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-base); font-weight: 400; line-height: 1.4;
}
body.tk-lot-membres .ca-profile-form textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
body.tk-lot-membres .ca-profile-form :is(input[type="text"], textarea)::placeholder { color: var(--muted); opacity: 1; }
body.tk-lot-membres .ca-profile-form :is(input[type="text"], textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
body.tk-lot-membres .ca-profile-form input[disabled] { background: var(--surface-2); color: var(--ink-2); cursor: not-allowed; }
body.tk-lot-membres .ca-profile-form button.ca-pf-submit { justify-self: start; margin: 0; cursor: pointer; }
body.tk-lot-membres .ca-pf-submit.is-pulse { animation: tk-pulse 1.6s ease-out 3; }
@keyframes tk-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) { body.tk-lot-membres .ca-pf-submit.is-pulse { animation: none; } }
/* Ma messagerie (127) */
body.tk-lot-membres .ca-dash-convs { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
body.tk-lot-membres .ca-dash-convs li { margin: 0; }
body.tk-lot-membres a.ca-dash-conv { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 56px; padding: 8px 10px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
body.tk-lot-membres a.ca-dash-conv img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
body.tk-lot-membres a.ca-dash-conv.is-nl { background: var(--surface-2); }
body.tk-lot-membres .ca-dash-conv-in { display: grid; gap: 2px; min-width: 0; }
body.tk-lot-membres .ca-dash-conv-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
body.tk-lot-membres .ca-dash-conv-nom { font-weight: var(--fw-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tk-lot-membres .ca-dash-conv.is-nl .ca-dash-conv-nom::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--ink); vertical-align: .1em; }
body.tk-lot-membres .ca-dash-conv-date { flex: none; font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--muted); }
body.tk-lot-membres .ca-dash-conv-ap { font-size: var(--fs-sm); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tk-lot-membres a.ca-dash-conv:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres a.ca-dash-conv:hover { background: var(--surface-2); } }
body.tk-lot-membres .ca-dash-msg-vide { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); color: var(--ink-2); }
body.tk-lot-membres a.ca-dash-msg-cta { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-strong); letter-spacing: 0; text-decoration: none; }
/* Mes codes de parrainage (029, 077) : une ligne par annonce, actions dans un talon à droite */
body.tk-lot-membres .ca-bump-info { margin: 0 0 var(--sp-3); font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); }
body.tk-lot-membres .ca-pause-alert { margin: 0 0 var(--sp-3); padding: 11px 14px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--ink); box-shadow: inset 4px 0 0 var(--warn); font-size: var(--fs-sm); line-height: 1.5; }
body.tk-lot-membres .ca-pause-alert strong { color: var(--ink); }
body.tk-lot-membres .ca-dash-mycodes { display: grid; gap: var(--sp-3); }
body.tk-lot-membres .ca-myc {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-3) 14px; align-items: start; padding: 14px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
body.tk-lot-membres .ca-myc-logo .ca-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
body.tk-lot-membres .ca-myc-body { display: grid; gap: 6px; min-width: 0; }
body.tk-lot-membres .ca-myc-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
body.tk-lot-membres a.ca-myc-brand { color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: 1.2; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
body.tk-lot-membres .ca-dash-code-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0; background: var(--surface-3); color: var(--ink); }
body.tk-lot-membres .ca-dash-code-st.ca-st-publish { background: var(--ok-bg); color: var(--ok); }
body.tk-lot-membres .ca-dash-code-st.ca-st-publish::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
body.tk-lot-membres .ca-dash-code-st.ca-st-pause { background: var(--warn-bg); color: var(--warn); }
body.tk-lot-membres .ca-myc-bonus { font-weight: var(--fw-strong); line-height: 1.35; overflow-wrap: anywhere; }
body.tk-lot-membres .ca-myc-l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
body.tk-lot-membres .ca-myc-code { padding: 6px 10px; border-radius: var(--r-sm); border: 1.5px dashed var(--line-strong); background: var(--surface-2); font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0; overflow-wrap: anywhere; }
body.tk-lot-membres .ca-myc-kpi { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0; color: var(--ink-2); }
body.tk-lot-membres :is(.ca-myc-fresh, .ca-myc-stale) { display: block; margin: 0; font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-2); }
body.tk-lot-membres .ca-myc-fresh svg { width: 14px; height: 14px; vertical-align: -.15em; }
body.tk-lot-membres .ca-myc-stale { padding: 8px 10px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--ink); }
body.tk-lot-membres .ca-myc-stale a { color: var(--ink); }
body.tk-lot-membres .ca-myc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 6px; }
body.tk-lot-membres .ca-myc-share-lbl { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: var(--tr-label); color: var(--muted); }
body.tk-lot-membres .ca-myc-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: var(--sp-3); border-top: 1px dashed var(--line-2); }
@media (min-width: 640px) {
  body.tk-lot-membres .ca-myc { grid-template-columns: 44px minmax(0, 1fr) 170px; }
  body.tk-lot-membres .ca-myc-acts { grid-column: 3; flex-direction: column; flex-wrap: nowrap; align-items: stretch; align-self: stretch; padding: 0 0 0 14px; border-top: 0; border-left: 1px dashed var(--line-2); }
  /* L'extrait 115 (barre du bas, gardé) met ces boutons en ligne sous 782 px (« flex: 1 1 45% ») : en colonne ici. */
  body.tk-lot-membres .ca-myc-acts > * { flex: none; }
}
body.tk-lot-membres .ca-myc-acts .ca-bump-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-strong); text-decoration: none; letter-spacing: 0; white-space: nowrap; box-shadow: none;
}
body.tk-lot-membres .ca-myc-acts a.ca-bump-btn:not(.ca-edit-btn) { border-color: var(--sel-bg); background: var(--sel-bg); color: var(--sel-ink); }
body.tk-lot-membres .ca-myc-acts .ca-bump-btn.disabled { opacity: .5; cursor: not-allowed; }
body.tk-lot-membres .ca-myc-acts a.ca-myc-see { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); color: var(--ink); font-size: var(--fs-xs); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
body.tk-lot-membres .ca-myc-acts :is(a, span):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
body.tk-lot-membres .ca-dash-empty { padding: var(--sp-5); border-radius: var(--r-lg); border: 2px dashed var(--line-2); background: var(--surface-2); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
body.tk-lot-membres .ca-dash-empty a { color: var(--ink); font-weight: var(--fw-strong); }
/* Mes avis */
body.tk-lot-membres .ca-dash-reviews { display: grid; gap: 4px; }
body.tk-lot-membres a.ca-dash-rev { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
body.tk-lot-membres .ca-dash-rev-code { font-weight: var(--fw-strong); overflow-wrap: anywhere; }
body.tk-lot-membres .ca-dash-rev-stars { color: var(--ink); letter-spacing: 0; white-space: nowrap; }
body.tk-lot-membres .ca-dash-rev-txt { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres a.ca-dash-rev:hover { background: var(--surface-2); } }
body.tk-lot-membres a.ca-dash-rev:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Ma page publique */
body.tk-lot-membres .ca-dash-public { border-style: dashed; border-width: 1.5px; border-color: var(--line-strong); background: var(--surface-2); box-shadow: none; }
body.tk-lot-membres .ca-dpub-sub { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
body.tk-lot-membres .ca-dpub-sub strong { color: var(--ink); }
/* Liens du bas */
body.tk-lot-membres .ca-dash-foot { padding: var(--sp-3) var(--sp-5); background: transparent; box-shadow: none; border-style: dashed; }
body.tk-lot-membres .ca-dash-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-5); }
body.tk-lot-membres .ca-dash-links a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: var(--ink); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
body.tk-lot-membres .ca-dash-links a.ca-dash-logout { margin-left: auto; color: var(--danger); }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres .ca-dash-links a:hover { text-decoration: underline; } }
/* Visiteur : invitation à créer un compte (029) */
body.tk-lot-membres .ca-dash-guest {
  display: grid; justify-items: center; gap: var(--sp-4); max-width: 880px; margin: 0 auto; padding: var(--sp-8) var(--sp-5);
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); text-align: center;
}
body.tk-lot-membres .ca-dash-guest-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-fill, var(--accent)); color: var(--on-accent); }
body.tk-lot-membres .ca-dash-guest-ico svg { width: 30px; height: 30px; }
body.tk-lot-membres .ca-dash-guest h2 { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: var(--lh-title); text-wrap: balance; }
body.tk-lot-membres .ca-dash-guest > p { max-width: 56ch; margin: 0; color: var(--ink-2); line-height: 1.55; }
body.tk-lot-membres .ca-dash-guest-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
body.tk-lot-membres .ca-dash-guest .ca-dash-guest-btns a { min-height: 52px; padding: 0 22px; }
body.tk-lot-membres .ca-dash-guest-btns a.ca-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); border: 1.5px solid var(--accent-line, var(--accent));
  background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent);
  font-size: var(--fs-sm); font-weight: var(--fw-strong); font-stretch: var(--wd-title); letter-spacing: 0; text-decoration: none;
}
body.tk-lot-membres .ca-social-slot { display: grid; gap: var(--sp-3); width: 100%; max-width: 420px; }
body.tk-lot-membres .ca-social-sep { display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--muted); }
body.tk-lot-membres .ca-social-sep::before, body.tk-lot-membres .ca-social-sep::after { content: ""; flex: 1 1 auto; border-top: 1px dashed var(--line-2); }
body.tk-lot-membres .ca-dash-atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-3); width: 100%; margin-top: var(--sp-3); text-align: left; }
body.tk-lot-membres .ca-dash-atout { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg); }
body.tk-lot-membres .ca-dash-atout-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sel-bg); color: var(--sel-ink); }
body.tk-lot-membres .ca-dash-atout strong { font-weight: var(--fw-title); font-stretch: var(--wd-title); }
body.tk-lot-membres .ca-dash-atout-d { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
/* Bienvenue après inscription (178) */
body.tk-lot-membres .ca-bienvenue { margin: 0 0 var(--sp-5); padding: 18px 20px; border-radius: var(--r-xl); background: var(--accent-fill, var(--accent)); color: var(--on-accent); line-height: 1.55; }
body.tk-lot-membres .ca-bienvenue p { margin: 0 0 8px; }
body.tk-lot-membres .ca-bienvenue p:last-child { margin-bottom: 0; }
body.tk-lot-membres .ca-bienvenue-titre { font-size: var(--fs-md); font-weight: var(--fw-title); }
/* Mentions « à venir » (161) */
body.tk-lot-membres :is(.ca-soon-pill, .ca-soon-pill-hero) { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; }
body.tk-lot-membres .ca-soon-note { padding: 10px 12px; border-radius: var(--r-md); background: var(--info-bg); color: var(--ink); font-size: var(--fs-sm); }

/* ---------- 7. Annonces en pause (077) ---------- */
body.tk-lot-membres .ca-stale-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 var(--sp-3); padding: 10px 14px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--ink); box-shadow: inset 4px 0 0 var(--warn); font-size: var(--fs-sm); line-height: 1.45; }
body.tk-lot-membres .ca-stale-note strong { color: var(--ink); }
body.tk-lot-membres .ca-stale-txt { flex: 1 1 240px; }
body.tk-lot-membres .ca-stale-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* Les deux boutons ont leurs couleurs en ligne (orange et jaune clair, texte foncé : lisibles partout) : on règle la forme. */
body.tk-lot-membres a.ca-stale-btn { min-height: var(--tap) !important; padding: 0 14px !important; border-radius: var(--r-sm) !important; align-items: center !important; }

/* ---------- 8. Formulaire « Publier un code » (038, 153, 077 ; lot « formulaires ») ---------- */
body.tk-lot-formulaires .ca-form-page { width: 100%; max-width: var(--container); margin: 0 auto; padding: var(--sp-8) var(--gutter) 0; color: var(--ink); }
body.tk-lot-formulaires .ca-form-page :is(*, *::before, *::after) { box-sizing: border-box; }
body.tk-lot-formulaires .ca-form-page svg:not([width]) { width: 18px; height: 18px; }
body.tk-lot-formulaires .ca-form-page .ca-legal-hero { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-6); padding: 0; background: none; border: 0; }
body.tk-lot-formulaires .ca-form-page .ca-legal-hero h1 { margin: 0; font-size: var(--fs-display); font-weight: var(--fw-title); font-stretch: var(--wd-display); letter-spacing: var(--tr-display); line-height: 1; text-wrap: balance; } /* couleur : titres en dégradé de tk-base.css */
body.tk-lot-formulaires .ca-form-page .ca-legal-hero-sub { max-width: 62ch; margin: 0; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); }
body.tk-lot-formulaires .ca-form-page .ca-legal-hero-ico { display: none; }
body.tk-lot-formulaires .ca-share-flash { margin: 0 0 var(--sp-4); padding: 13px 16px; border-radius: var(--r-md); font-weight: 700; line-height: 1.5; }
body.tk-lot-formulaires .ca-share-flash.ok { background: var(--ok-bg); color: var(--ink); box-shadow: inset 4px 0 0 var(--ok); }
body.tk-lot-formulaires .ca-share-flash.err { background: var(--danger-bg); color: var(--ink); box-shadow: inset 4px 0 0 var(--danger); }
body.tk-lot-formulaires .ca-share-flash a { color: var(--ink); font-weight: var(--fw-strong); }
body.tk-lot-formulaires .ca-share-edithead { margin: 0 0 var(--sp-4); padding: 14px 16px; border-radius: var(--r-lg); background: var(--info-bg); color: var(--ink); }
body.tk-lot-formulaires .ca-share-editt { margin: 0 0 4px; font-weight: var(--fw-title); }
body.tk-lot-formulaires .ca-share-edits { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
body.tk-lot-formulaires .ca-share-edits a { color: var(--ink); }
body.ca-edit-mode.tk-lot-formulaires :is(.ca-legal-hero, .ca-legal-card, .ca-xlink) { display: none; }
/* Encadré « Entreprise pré-sélectionnée » (153) : sa feuille #ca-add-pre part avec le lot « fiches » : habillé dès ce lot. */
:is(body.tk-lot-fiches, body.tk-lot-formulaires) p.ca-share-pre { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--sp-4); padding: 12px 14px; border-radius: var(--r-md); background: var(--ok-bg); color: var(--ink); font-size: var(--fs-sm); line-height: 1.45; }
:is(body.tk-lot-fiches, body.tk-lot-formulaires) .ca-share-pre-ic { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: var(--surface); }
:is(body.tk-lot-fiches, body.tk-lot-formulaires) .ca-share-pre-ic svg { width: 14px; height: 14px; }
:is(body.tk-lot-fiches, body.tk-lot-formulaires) a.ca-share-pre-alt { margin-left: 8px; color: var(--ink); font-weight: 700; }
/* Le formulaire : une carte par champ, numérotée (01, 02…), comme la maquette validée */
body.tk-lot-formulaires form.ca-share-form { display: grid; gap: var(--sp-3); max-width: 720px; margin: 0; counter-reset: tk-champ; }
body.tk-lot-formulaires .ca-share-row {
  display: grid; gap: 8px; margin: 0; padding: var(--sp-5); counter-increment: tk-champ;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
}
body.tk-lot-formulaires .ca-share-row > label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: var(--fs-md); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: 1.3; color: var(--ink); }
body.tk-lot-formulaires .ca-share-row > label::before {
  content: counter(tk-champ, decimal-leading-zero); align-self: center; display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 5px;
  border-radius: 6px; background: var(--sel-bg); color: var(--sel-ink); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0;
}
body.tk-lot-formulaires .ca-lien-note { font-size: var(--fs-xs); font-weight: 500; font-stretch: normal; color: var(--muted); }
body.tk-lot-formulaires .ca-share-row :is(input[type="text"], input[type="url"], textarea, select) {
  width: 100%; margin: 0; height: 48px; padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-input);
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-base); line-height: 1.4; box-shadow: none;
}
body.tk-lot-formulaires .ca-share-row input[name="ca_code"] { font-family: var(--font-mono); letter-spacing: 0; }
/* Liste déroulante du design system (« Catégorie suggérée » de 149) */
body.tk-lot-formulaires .ca-share-row select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
body.tk-lot-formulaires .ca-share-row textarea { height: auto; min-height: 168px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
body.tk-lot-formulaires .ca-share-row :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
body.tk-lot-formulaires .ca-share-row :is(input, textarea, select):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--line-strong); box-shadow: 0 0 0 6px var(--focus-halo); }
@media (hover: hover) and (pointer: fine) { body.tk-lot-formulaires .ca-share-row :is(input, textarea, select):hover { border-color: var(--ink-2); } }
body.tk-lot-formulaires .ca-share-hint { display: block; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); }
body.tk-lot-formulaires .ca-share-hint a { color: var(--ink); font-weight: 700; }
body.tk-lot-formulaires #ca-desc-count { font-family: var(--font-mono); color: var(--muted); text-align: right; }
/* Suggestions de marques (fonctionnel : autrefois dans la feuille de 038) */
body.tk-lot-formulaires .ca-ac-wrap { position: relative; }
body.tk-lot-formulaires ul.ca-ac-list {
  position: absolute; z-index: 50; left: var(--sp-5); right: var(--sp-5); top: calc(100% - var(--sp-5) - 26px); margin: 0; padding: 6px; list-style: none;
  max-height: 280px; overflow: auto; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-3);
}
body.tk-lot-formulaires ul.ca-ac-list[hidden] { display: none; }
body.tk-lot-formulaires .ca-ac-list li { display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink); font-size: var(--fs-sm); cursor: pointer; }
body.tk-lot-formulaires .ca-ac-list li:hover, body.tk-lot-formulaires .ca-ac-list li.ca-ac-active { background: var(--sel-bg); color: var(--sel-ink); }
body.tk-lot-formulaires .ca-ac-list li .ca-ac-cat { margin-left: auto; font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0; opacity: .8; }
body.tk-lot-formulaires .ca-ac-list li.ca-ac-new { justify-content: space-between; gap: 12px; cursor: default; background: none; color: var(--ink); }
body.tk-lot-formulaires .ca-ac-list li.ca-ac-new span { color: var(--ink-2); }
body.tk-lot-formulaires .ca-ac-list li.ca-ac-new a.ca-ac-prop { flex: none; color: var(--ink); font-weight: var(--fw-strong); text-decoration: underline; }
/* Envoi : le bouton « Publier mon code », en accent */
body.tk-lot-formulaires form.ca-share-form button.ca-share-btn {
  justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin: var(--sp-3) 0 0; padding: 0 28px;
  border-radius: var(--r-md); border: 1.5px solid var(--tk-ink); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent); cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-base); font-weight: var(--fw-strong); font-stretch: var(--wd-title); letter-spacing: 0;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1), background var(--dur-1);
}
body.tk-lot-formulaires form.ca-share-form button.ca-share-btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-formulaires form.ca-share-form button.ca-share-btn:hover { background: var(--accent-fill-hover, var(--accent-hover)); transform: translateY(-1px); box-shadow: 0 3px 0 var(--tk-ink); } }
body.tk-lot-formulaires form.ca-share-form button.ca-share-btn:active { transform: translateY(1px); box-shadow: none; }
body.tk-lot-formulaires form.ca-share-form button.ca-share-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { body.tk-lot-formulaires form.ca-share-form button.ca-share-btn { transition: none; transform: none; } }
@media (max-width: 559px) { body.tk-lot-formulaires form.ca-share-form button.ca-share-btn { justify-self: stretch; } }
body.tk-lot-formulaires .ca-share-notes { display: grid; gap: var(--sp-3); margin: var(--sp-3) 0 0; padding: var(--sp-4) 0 0; border-top: 1px dashed var(--line-2); }
body.tk-lot-formulaires p.ca-share-ttlnote { position: relative; display: block; max-width: none; margin: 0; padding: 11px 14px 11px 40px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--ink); font-size: var(--fs-sm); line-height: 1.55; }
body.tk-lot-formulaires p.ca-share-ttlnote :is(strong, a) { color: var(--ink); }
body.tk-lot-formulaires p.ca-share-ttlnote svg { position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; }
body.tk-lot-formulaires .ca-share-place { margin: 0; font-size: var(--fs-xs); line-height: 1.6; color: var(--muted); }
/* Visiteur : invitation à créer un compte */
body.tk-lot-formulaires .ca-share-guest {
  display: grid; justify-items: start; gap: var(--sp-3); max-width: 720px; padding: var(--sp-6); border-radius: var(--r-xl);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
}
body.tk-lot-formulaires .ca-share-guest p { margin: 0; line-height: 1.55; color: var(--ink-2); }
body.tk-lot-formulaires .ca-share-guest a.ca-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: var(--r-md);
  border: 1.5px solid var(--accent-line, var(--accent)); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent);
  font-size: var(--fs-sm); font-weight: var(--fw-strong); font-stretch: var(--wd-title); letter-spacing: 0; text-decoration: none;
}
body.tk-lot-formulaires .ca-share-guest-alt a { color: var(--ink); font-weight: var(--fw-strong); }
/* À côté du formulaire : « L'entreprise n'est pas listée ? » et « Comment ça marche » */
body.tk-lot-formulaires .ca-form-after { display: grid; gap: var(--sp-4); margin: var(--sp-6) 0 0; }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-xlink {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: start; padding: var(--sp-5);
  border-radius: var(--r-xl); border: 1.5px dashed var(--line-strong); background: var(--surface-2); color: var(--ink);
}
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-xlink-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--sel-bg); color: var(--sel-ink); }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-xlink-ico svg { width: 20px; height: 20px; }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-xlink-c { min-width: 0; }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-xlink-t { margin: 0 0 4px; font-weight: var(--fw-title); line-height: 1.35; }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-xlink-d { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
:is(body.tk-lot-base, body.tk-lot-formulaires) a.ca-xlink-a {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-strong); letter-spacing: 0; text-decoration: none;
}
:is(body.tk-lot-base, body.tk-lot-formulaires) a.ca-xlink-a svg { width: 15px; height: 15px; }
body.tk-lot-formulaires .ca-form-page .ca-legal-card { padding: var(--sp-5); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); }
body.tk-lot-formulaires .ca-form-page .ca-legal-card-head { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--sp-3); }
body.tk-lot-formulaires .ca-form-page .ca-legal-card-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-fill, var(--accent)); color: var(--on-accent); }
body.tk-lot-formulaires .ca-form-page .ca-legal-card-head h2 { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-title); font-stretch: var(--wd-title); color: var(--ink); }
body.tk-lot-formulaires .ca-form-page .ca-legal-list { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; counter-reset: tk-regle; }
body.tk-lot-formulaires .ca-form-page .ca-legal-list li { position: relative; padding-left: 34px; counter-increment: tk-regle; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
body.tk-lot-formulaires .ca-form-page .ca-legal-list li::before { content: counter(tk-regle, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; color: var(--ink); }
body.tk-lot-formulaires :is(.ca-xlink-a, .ca-share-guest a, .ca-share-hint a):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Ordinateur : le formulaire à gauche, l'aide à droite (colonne collante) */
@media (min-width: 1100px) {
  body.tk-lot-formulaires .ca-form-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: var(--sp-8); align-items: start; }
  body.tk-lot-formulaires .ca-form-page > * { grid-column: 1; min-width: 0; }
  body.tk-lot-formulaires .ca-form-page > .ca-legal-hero { grid-column: 1 / -1; }
  body.tk-lot-formulaires .ca-form-page > .ca-form-after { grid-column: 2; grid-row: 2 / span 8; margin-top: 0; position: sticky; top: 88px; }
}


/* ---------- 9. Messagerie (/messagerie/, 125 ; lot « messagerie ») ----------
   Maquette validée prototype/mon-espace-messagerie.html : conversations à gauche, fil à droite à partir de 901 px (seuil
   du script de 125) ; sur téléphone, la liste, puis le fil seul quand une conversation est ouverte (classe is-thread).
   La feuille de 125 (ca_msg_css, bleu sur fond sombre) est coupée par la garde du lot. Le script de 125 n'est pas touché :
   il pose lui-même display:flex ou none sur le fil, d'où les !important sur téléphone. */
body.tk-lot-messagerie .ca-msg [hidden] { display: none; }
body.tk-lot-messagerie .tk-page:has(.ca-msg-wrap) .tk-page__head { max-width: var(--container); }
body.tk-lot-messagerie .ca-msg-wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) var(--sp-10); color: var(--ink); font-family: var(--font-sans); line-height: var(--lh-text); }
body.tk-lot-messagerie .ca-msg-wrap :is(*, *::before, *::after) { box-sizing: border-box; }
body.tk-lot-messagerie .ca-msg-wrap svg { width: 18px; height: 18px; flex: none; }
body.tk-lot-messagerie .ca-msg { display: grid; gap: var(--sp-4); align-items: start; color: var(--ink); }
@media (min-width: 901px) { body.tk-lot-messagerie .ca-msg { grid-template-columns: 330px minmax(0, 1fr); } }
/* Deux cartes : la liste et le fil (ou l'invitation à choisir une conversation) */
body.tk-lot-messagerie :is(.ca-msg-side, .ca-msg-th, .ca-msg-none) {
  min-width: 0; border-radius: var(--r-lg); border: 1.5px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden;
}
@media (min-width: 901px) {
  body.tk-lot-messagerie :is(.ca-msg-side, .ca-msg-th, .ca-msg-none) { height: clamp(540px, calc(100vh - 230px), 760px); height: clamp(540px, calc(100dvh - 230px), 760px); }
}
/* Liste des conversations */
body.tk-lot-messagerie .ca-msg-side { display: flex; flex-direction: column; }
body.tk-lot-messagerie .ca-msg-side-top { display: grid; gap: 10px; padding: 16px 16px 14px; border-bottom: 1px dashed var(--line-2); }
body.tk-lot-messagerie p.ca-msg-h1 { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: 1.2; color: var(--ink); }
body.tk-lot-messagerie p.ca-msg-sub { margin: -6px 0 0; font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-2); }
body.tk-lot-messagerie .ca-msg-search { position: relative; }
body.tk-lot-messagerie .ca-msg-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
body.tk-lot-messagerie .ca-msg-search input {
  width: 100%; min-height: var(--tap); margin: 0; padding: 0 12px 0 38px; border-radius: var(--r-pill); border: 1.5px solid var(--line-input);
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-sm); box-shadow: none;
}
body.tk-lot-messagerie .ca-msg-search input::placeholder { color: var(--muted); opacity: 1; }
body.tk-lot-messagerie .ca-msg-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
body.tk-lot-messagerie .ca-msg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); }
body.tk-lot-messagerie button.ca-msg-tab {
  min-height: var(--tap); margin: 0; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: var(--fw-strong); letter-spacing: 0; text-transform: none; box-shadow: none;
}
body.tk-lot-messagerie button.ca-msg-tab.is-on { background: var(--sel-bg); color: var(--sel-ink); }
body.tk-lot-messagerie button.ca-msg-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-messagerie button.ca-msg-tab:not(.is-on):hover { background: var(--surface); color: var(--ink); } }
body.tk-lot-messagerie ul.ca-msg-list { flex: 1; min-height: 120px; margin: 0; padding: 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body.tk-lot-messagerie ul.ca-msg-list > li { margin: 0; }
body.tk-lot-messagerie ul.ca-msg-list > li + li { border-top: 1px solid var(--line); }
body.tk-lot-messagerie button.ca-msg-it {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 12px; width: 100%; min-height: 68px; margin: 0; padding: 12px 10px;
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); text-align: left; cursor: pointer; box-shadow: none;
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.35;
}
body.tk-lot-messagerie img.ca-msg-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-3); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--line-2); }
body.tk-lot-messagerie .ca-msg-it-c { display: grid; gap: 3px; min-width: 0; }
body.tk-lot-messagerie .ca-msg-it-l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
body.tk-lot-messagerie .ca-msg-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-strong); color: inherit; }
body.tk-lot-messagerie .ca-msg-when { margin-left: auto; flex: none; font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
body.tk-lot-messagerie .ca-msg-prev { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--ink-2); }
body.tk-lot-messagerie .ca-msg-chip {
  justify-self: start; display: inline-flex; align-items: center; min-height: 20px; padding: 1px 7px; border-radius: var(--r-xs, 4px); border: 1px solid var(--line-strong);
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; color: var(--ink);
}
body.tk-lot-messagerie .ca-msg-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-top: 2px; padding: 0 6px; border-radius: var(--r-pill); background: var(--accent-fill, var(--accent)); color: var(--on-accent); font-size: var(--fs-2xs); font-weight: var(--fw-title); }
body.tk-lot-messagerie button.ca-msg-it.is-new .ca-msg-prev { color: var(--ink); font-weight: 700; }
body.tk-lot-messagerie button.ca-msg-it.is-on { background: var(--sel-bg); color: var(--ink-inverse); }
body.tk-lot-messagerie button.ca-msg-it.is-on :is(.ca-msg-when, .ca-msg-prev) { color: var(--ink-inverse); }
body.tk-lot-messagerie button.ca-msg-it.is-on .ca-msg-chip { border-color: currentColor; color: inherit; }
body.tk-lot-messagerie button.ca-msg-it.is-on img.ca-msg-av { box-shadow: 0 0 0 2px var(--sel-bg), 0 0 0 3.5px var(--muted-inverse); }
body.tk-lot-messagerie button.ca-msg-it:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-messagerie button.ca-msg-it:not(.is-on):hover { background: var(--surface-2); } }
body.tk-lot-messagerie :is(li.ca-msg-vide, li.ca-msg-load, p.ca-msg-load) { margin: 0; padding: 26px 18px; text-align: center; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
body.tk-lot-messagerie .ca-msg-side-bas { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 16px; border-top: 1px dashed var(--line-2); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
body.tk-lot-messagerie .ca-msg-side-bas > label:last-child { display: flex; align-items: center; flex: 1; min-height: var(--tap); cursor: pointer; }
body.tk-lot-messagerie label.ca-msg-sw { position: relative; display: inline-block; flex: none; width: 44px; height: 26px; }
body.tk-lot-messagerie label.ca-msg-sw input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
body.tk-lot-messagerie label.ca-msg-sw span { position: absolute; inset: 0; border-radius: var(--r-pill); border: 1.5px solid var(--line-input); background: var(--surface-3); transition: background var(--dur-1), border-color var(--dur-1); }
body.tk-lot-messagerie label.ca-msg-sw span::after { content: ""; position: absolute; left: 3px; top: 50%; width: 17px; height: 17px; border-radius: 50%; background: var(--ink-2); transform: translateY(-50%); transition: transform var(--dur-1), background var(--dur-1); }
body.tk-lot-messagerie label.ca-msg-sw input:checked + span { border-color: var(--line-strong); background: var(--accent-fill, var(--accent)); }
body.tk-lot-messagerie label.ca-msg-sw input:checked + span::after { background: var(--tk-ink, var(--ink)); transform: translate(18px, -50%); }
body.tk-lot-messagerie label.ca-msg-sw input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Fil de la conversation */
body.tk-lot-messagerie .ca-msg-th { flex-direction: column; }
body.tk-lot-messagerie .ca-msg-th-top { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 14px; border-bottom: 1px dashed var(--line-2); background: var(--surface); }
body.tk-lot-messagerie button.ca-msg-back {
  display: none; place-items: center; flex: none; width: var(--tap); height: var(--tap); margin: 0 -4px 0 -6px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; box-shadow: none;
}
body.tk-lot-messagerie button.ca-msg-back svg { width: 22px !important; height: 22px !important; } /* taille écrite dans le balisage par 125 (style="width:20px;height:20px") */
body.tk-lot-messagerie button.ca-msg-back:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
body.tk-lot-messagerie .ca-msg-who { display: grid; gap: 2px; flex: 1; min-width: 0; }
body.tk-lot-messagerie .ca-msg-who a { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: 1.2; text-decoration: none; }
body.tk-lot-messagerie .ca-msg-who a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-messagerie .ca-msg-who a[href^="http"]:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; } }
body.tk-lot-messagerie .ca-msg-react { font-size: var(--fs-xs); font-weight: 600; color: var(--ok); }
body.tk-lot-messagerie .ca-msg-react:empty { display: none; }
body.tk-lot-messagerie .ca-msg-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
body.tk-lot-messagerie button.ca-msg-tool, body.tk-lot-messagerie a.ca-msg-tool {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); margin: 0; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: none; text-decoration: none;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: var(--fw-strong); letter-spacing: 0; text-transform: none;
}
body.tk-lot-messagerie button.ca-msg-tool.is-danger { border-color: var(--danger); color: var(--danger-ink, var(--danger)); }
body.tk-lot-messagerie :is(button, a).ca-msg-tool:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  body.tk-lot-messagerie button.ca-msg-tool:hover { background: var(--surface-2); }
  body.tk-lot-messagerie button.ca-msg-tool.is-danger:hover { background: var(--danger-bg); }
}
body.tk-lot-messagerie .ca-msg-scroll {
  flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 160px; padding: 18px 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background: var(--surface-2); scroll-behavior: smooth;
}
body.tk-lot-messagerie .ca-msg-day { align-self: center; margin: 6px 0 2px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; color: var(--ink-2); }
body.tk-lot-messagerie .ca-msg-ctx { align-self: center; padding: 3px 10px; border-radius: var(--r-xs, 4px); border: 1.5px dashed var(--line-strong); background: var(--surface); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; color: var(--ink); }
body.tk-lot-messagerie .ca-msg-b {
  position: relative; max-width: min(78%, 540px); padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2);
  font-size: var(--fs-sm); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; animation: tk-msg-in var(--dur-1) var(--ease-out);
}
@keyframes tk-msg-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
body.tk-lot-messagerie .ca-msg-b.is-them { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--surface); color: var(--ink); }
body.tk-lot-messagerie .ca-msg-b.is-me { align-self: flex-end; border-bottom-right-radius: 4px; border-color: var(--sel-bg); background: var(--sel-bg); color: var(--ink-inverse); }
body.tk-lot-messagerie .ca-msg-b time { display: block; margin-top: 4px; font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
body.tk-lot-messagerie .ca-msg-b.is-me time { text-align: right; color: var(--ink-inverse); }
/* Zone de saisie */
body.tk-lot-messagerie form.ca-msg-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 12px 14px; border-top: 1px dashed var(--line-2); background: var(--surface); }
body.tk-lot-messagerie .ca-msg-sugg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
body.tk-lot-messagerie .ca-msg-sugg button {
  flex: none; min-height: var(--tap); margin: 0; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px dashed var(--line-input); background: var(--surface); color: var(--ink); cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; text-transform: none; box-shadow: none; white-space: nowrap;
}
body.tk-lot-messagerie .ca-msg-sugg button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-messagerie .ca-msg-sugg button:hover { border-style: solid; border-color: var(--ink); } }
body.tk-lot-messagerie .ca-msg-row { display: flex; align-items: flex-end; gap: 8px; min-width: 0; }
body.tk-lot-messagerie textarea.ca-msg-ta {
  flex: 1; min-width: 0; min-height: var(--tap); max-height: 150px; margin: 0; padding: 11px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-input);
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-base); line-height: 1.4; resize: none; box-shadow: none;
}
body.tk-lot-messagerie textarea.ca-msg-ta::placeholder { color: var(--muted); opacity: 1; }
body.tk-lot-messagerie textarea.ca-msg-ta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
body.tk-lot-messagerie .ca-msg-wrap :is(button, a).ca-msg-send {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: var(--tap); margin: 0; padding: 0 18px; border-radius: var(--r-md);
  border: 1.5px solid var(--tk-ink, var(--ink)); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent); cursor: pointer; box-shadow: none;
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: var(--fw-strong); font-stretch: var(--wd-title); letter-spacing: 0; text-decoration: none;
}
body.tk-lot-messagerie .ca-msg-wrap button.ca-msg-send[disabled] { border-color: var(--line-2); background: var(--surface-3); color: var(--ink-2); cursor: not-allowed; }
body.tk-lot-messagerie .ca-msg-wrap :is(button, a).ca-msg-send:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-messagerie .ca-msg-wrap :is(button, a).ca-msg-send:not([disabled]):hover { background: var(--accent-fill-hover, var(--accent-hover)); } }
body.tk-lot-messagerie .ca-msg-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--fs-2xs); color: var(--ink-2); }
body.tk-lot-messagerie .ca-msg-cnt { font-family: var(--font-mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
body.tk-lot-messagerie .ca-msg-cnt.is-max { color: var(--danger-ink, var(--danger)); font-weight: var(--fw-strong); }
body.tk-lot-messagerie p.ca-msg-flash { margin: 0; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); font-size: var(--fs-sm); font-weight: 600; line-height: 1.45; }
body.tk-lot-messagerie p.ca-msg-flash.is-ok { border-color: var(--ok-line, var(--ok)); background: var(--ok-bg); color: var(--ok); }
body.tk-lot-messagerie p.ca-msg-flash.is-ko { border-color: var(--danger); background: var(--danger-bg); color: var(--danger-ink, var(--danger)); }
body.tk-lot-messagerie .ca-msg-bloc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-top: 1px dashed var(--line-2); background: var(--danger-bg); color: var(--ink); font-size: var(--fs-sm); line-height: 1.45; }
body.tk-lot-messagerie .ca-msg-bloc span { flex: 1 1 220px; }
body.tk-lot-messagerie .ca-msg-bloc button { min-height: var(--tap); margin: 0; padding: 0 16px; border-radius: var(--r-sm); border: 1.5px solid var(--danger); background: var(--surface); color: var(--danger-ink, var(--danger)); cursor: pointer; font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: var(--fw-strong); text-transform: none; letter-spacing: 0; box-shadow: none; }
body.tk-lot-messagerie .ca-msg-bloc button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Aucune conversation choisie (ordinateur) */
body.tk-lot-messagerie .ca-msg-none { display: grid; place-items: center; padding: 40px 24px; text-align: center; color: var(--ink-2); background: var(--surface-2); }
body.tk-lot-messagerie .ca-msg-none svg { display: block; width: 48px; height: 48px; margin: 0 auto 12px; color: var(--ink); }
body.tk-lot-messagerie .ca-msg-none p { max-width: 34ch; margin-inline: auto !important; color: var(--ink-2); } /* marge écrite dans le balisage par 125 */
body.tk-lot-messagerie .ca-msg-none p:first-of-type { color: var(--ink); font-size: var(--fs-md); }
/* Téléphone et tablette (≤ 900 px) : une seule vue à la fois */
@media (max-width: 900px) {
  body.tk-lot-messagerie .ca-msg { gap: 0; }
  body.tk-lot-messagerie .ca-msg-none { display: none !important; }
  body.tk-lot-messagerie .ca-msg:not(.is-thread) .ca-msg-th { display: none !important; }
  body.tk-lot-messagerie .ca-msg.is-thread .ca-msg-side { display: none; }
  /* Conversation ouverte : le fil occupe l'écran entre l'en-tête et la barre du bas, saisie comprise ; le titre de la page
     passe hors écran (gardé pour les lecteurs d'écran) */
  body.tk-lot-messagerie .ca-msg.is-thread .ca-msg-th { display: flex !important; height: calc(100vh - 210px); height: calc(100dvh - 210px); min-height: 420px; }
  body.tk-lot-messagerie .tk-page:has(.ca-msg.is-thread) .tk-page__head { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  body.tk-lot-messagerie .tk-page:has(.ca-msg.is-thread) .ca-msg-wrap { padding-top: var(--sp-3); }
  body.tk-lot-messagerie button.ca-msg-back { display: grid; }
  body.tk-lot-messagerie ul.ca-msg-list { max-height: none; overflow: visible; }
  body.tk-lot-messagerie .ca-msg-b { max-width: 86%; }
  body.tk-lot-messagerie .ca-msg-wrap { padding-bottom: calc(var(--sp-10) + 64px); }
}
@media (max-width: 600px) {
  body.tk-lot-messagerie .ca-msg-th-top { flex-wrap: wrap; row-gap: 6px; padding: 8px 12px; }
  body.tk-lot-messagerie .ca-msg-tools { order: 3; flex: 1 0 100%; justify-content: stretch; }
  body.tk-lot-messagerie button.ca-msg-tool { flex: 1 1 0; min-height: var(--tap); }
  body.tk-lot-messagerie .ca-msg-meta { display: none; }
  body.tk-lot-messagerie form.ca-msg-form { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { body.tk-lot-messagerie .ca-msg-b { animation: none; } body.tk-lot-messagerie .ca-msg-scroll { scroll-behavior: auto; } }
/* Fenêtres « Signaler » et « Bloquer » (script de 125, ajoutées à la fin de la page) */
body.tk-lot-messagerie .ca-dlg { position: fixed; inset: 0; z-index: 100050; display: flex; align-items: center; justify-content: center; padding: 18px; background: color-mix(in srgb, var(--ink) 55%, transparent); opacity: 0; transition: opacity var(--dur-1); }
body.tk-lot-messagerie .ca-dlg.is-on { opacity: 1; }
body.tk-lot-messagerie .ca-dlg-box {
  width: 100%; max-width: 480px; max-height: calc(100vh - 36px); overflow: auto; padding: 22px; border-radius: var(--r-xl); border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); transform: translateY(10px); transition: transform var(--dur-1);
}
body.tk-lot-messagerie .ca-dlg.is-on .ca-dlg-box { transform: none; }
body.tk-lot-messagerie .ca-dlg-t { margin: 0 0 6px; font-size: var(--fs-lg); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: 1.25; color: var(--ink); }
body.tk-lot-messagerie p.ca-dlg-x { margin: 0 0 14px; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
body.tk-lot-messagerie .ca-dlg-opts { display: grid; gap: 8px; margin: 0 0 14px; }
body.tk-lot-messagerie label.ca-dlg-o { display: flex; gap: 10px; align-items: flex-start; min-height: var(--tap); padding: 11px 13px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font-size: var(--fs-sm); line-height: 1.4; }
body.tk-lot-messagerie label.ca-dlg-o input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
body.tk-lot-messagerie label.ca-dlg-o.is-sel { border-color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
body.tk-lot-messagerie label.ca-dlg-o:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
body.tk-lot-messagerie textarea.ca-dlg-ta { width: 100%; min-height: 84px; margin: 0; padding: 10px 12px; border-radius: var(--r-md); border: 1.5px solid var(--line-input); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-base); line-height: 1.5; resize: vertical; box-shadow: none; }
body.tk-lot-messagerie textarea.ca-dlg-ta::placeholder { color: var(--muted); opacity: 1; }
body.tk-lot-messagerie textarea.ca-dlg-ta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
body.tk-lot-messagerie p.ca-dlg-c { margin: 6px 0 0; font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
body.tk-lot-messagerie .ca-dlg-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
body.tk-lot-messagerie button.ca-dlg-b {
  min-height: var(--tap); margin: 0; padding: 0 18px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: none;
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: var(--fw-strong); letter-spacing: 0; text-transform: none;
}
body.tk-lot-messagerie button.ca-dlg-b.is-1 { border-color: var(--tk-ink, var(--ink)); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent); }
body.tk-lot-messagerie button.ca-dlg-b.is-dgr { border-color: var(--danger); background: var(--danger); color: var(--on-danger); }
body.tk-lot-messagerie button.ca-dlg-b[disabled] { opacity: .5; cursor: not-allowed; }
body.tk-lot-messagerie button.ca-dlg-b:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) {
  body.tk-lot-messagerie .ca-dlg { align-items: flex-end; padding: 0; }
  body.tk-lot-messagerie .ca-dlg-box { max-width: none; max-height: 88vh; padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: var(--r-xl) var(--r-xl) 0 0; }
  body.tk-lot-messagerie .ca-dlg-act { flex-direction: column-reverse; gap: 8px; }
  body.tk-lot-messagerie button.ca-dlg-b { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { body.tk-lot-messagerie :is(.ca-dlg, .ca-dlg-box) { transition: none; } }
/* Visiteur : invitation à se connecter (balisage de 125 avec styles en ligne, d'où quelques !important) */
body.tk-lot-messagerie .ca-msg-wrap > .ca-msg[style] {
  display: grid !important; justify-items: center; gap: 0; max-width: 720px; margin: var(--sp-6) auto 0; padding: 40px 24px !important;
  border-radius: var(--r-xl); border: 1.5px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-2); text-align: center;
}
body.tk-lot-messagerie .ca-msg-wrap > .ca-msg[style] > svg { width: 52px !important; height: 52px !important; margin: 0 auto 14px !important; padding: 11px; border-radius: 16px; background: var(--accent-fill, var(--accent)); color: var(--on-accent) !important; box-sizing: content-box; }
body.tk-lot-messagerie .ca-msg-wrap > .ca-msg[style] > h1 { margin: 0 0 10px !important; font-size: var(--fs-2xl) !important; font-weight: var(--fw-title) !important; font-stretch: var(--wd-display); letter-spacing: var(--tr-display); line-height: 1.05; color: var(--ink); text-wrap: balance; }
body.tk-lot-messagerie .ca-msg-wrap > .ca-msg[style] > p { max-width: 52ch !important; margin: 0 auto 22px !important; font-size: var(--fs-base) !important; line-height: 1.6 !important; color: var(--ink-2); opacity: 1 !important; }
body.tk-lot-messagerie .ca-msg-wrap > .ca-msg[style] > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
body.tk-lot-messagerie .ca-msg-wrap > .ca-msg[style] :is(a.ca-msg-send, a.ca-msg-tool) { display: inline-flex !important; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px !important; font-size: var(--fs-sm) !important; }
@media (max-width: 559px) { body.tk-lot-messagerie .ca-msg-wrap > .ca-msg[style] :is(a.ca-msg-send, a.ca-msg-tool) { flex: 1 1 100%; } }


/* ---------- 10. Pages de compte (120, 401 ; lot « formulaires ») ----------
   /connexion/, /inscription/, /mot-de-passe-oublie/, /nouveau-mot-de-passe/ : body.ca-auth-page (posée par 120 ;
   la classe .ca-auth existe aussi sur les fiches, pour l'auteur, d'où cette portée). Le formulaire devient un billet
   d'entrée : talon « espace membre » en haut, perforé, encoches sur les côtés (le fond de la page apparaît au
   travers), corps du billet en dessous. Le bouton Google garde le fond blanc et le texte #1f1f1f demandés par Google,
   dans les quatre versions. Repris de la feuille de 120 (fonctionnel) : pot de miel masqué (pont § 1) ; de 401 :
   le champ « Précisez » reste masqué tant qu'« Autre » n'est pas choisi ([hidden]). */
body.tk-lot-formulaires.ca-auth-page .ca-auth {
  --pad: clamp(20px, 5.5vw, 36px); --n: 11px;
  width: 100%; max-width: 500px; margin: 0 auto; padding: var(--sp-8) 0 var(--sp-12);
  color: var(--ink); font-family: var(--font-sans); line-height: var(--lh-text);
}
body.tk-lot-formulaires.ca-auth-page .ca-auth:has(.ca-auth-avantages) { max-width: 560px; }
body.tk-lot-formulaires.ca-auth-page .ca-auth :is(*, *::before, *::after) { box-sizing: border-box; }
body.tk-lot-formulaires.ca-auth-page .ca-auth [hidden] { display: none !important; } /* fonctionnel : le champ caché du formulaire d'inscription reste caché malgré les display des champs (vérifié le 21/10/2026) */
body.tk-lot-formulaires.ca-auth-page .ca-auth-card {
  position: relative; isolation: isolate; margin: 0; padding: 0; border: 0; border-radius: var(--r-xl);
  background: none; box-shadow: none; overflow: visible; filter: var(--tk-shadow);
}
/* Grille d'une colonne : la 1re ligne est le talon ; le corps du billet est dessiné de la 2e ligne au bas de la carte */
body.tk-lot-formulaires.ca-auth-page .ca-auth-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 var(--pad) var(--pad); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-inner::before {
  content: ""; position: absolute; z-index: -1; grid-row: 2 / auto; inset: 0; pointer-events: none;
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-xl) var(--r-xl); background: var(--surface);
  -webkit-mask: radial-gradient(circle at 0 0, #0000 var(--n), #000 calc(var(--n) + .5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 0, #0000 var(--n), #000 calc(var(--n) + .5px)) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 0, #0000 var(--n), #000 calc(var(--n) + .5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 0, #0000 var(--n), #000 calc(var(--n) + .5px)) right / 51% 100% no-repeat;
}
/* Talon : « Meilleur Code Parrainage · espace membre », pictogramme du logo (ticket composté) */
body.tk-lot-formulaires.ca-auth-page p.ca-auth-brand {
  --stub-perf: var(--tk-stub-muted);
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; margin: 0 calc(var(--pad) * -1); padding: 14px var(--pad) 16px;
  border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--tk-stub-bg); color: var(--tk-stub-ink);
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; line-height: 1.35; letter-spacing: 0; 
  -webkit-mask: radial-gradient(circle at 0 100%, #0000 var(--n), #000 calc(var(--n) + .5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 100%, #0000 var(--n), #000 calc(var(--n) + .5px)) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 100%, #0000 var(--n), #000 calc(var(--n) + .5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 100%, #0000 var(--n), #000 calc(var(--n) + .5px)) right / 51% 100% no-repeat;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  body.tk-lot-formulaires.ca-auth-page p.ca-auth-brand { --stub-perf: color-mix(in srgb, var(--tk-stub-ink) 50%, transparent); }
}
body.tk-lot-formulaires.ca-auth-page p.ca-auth-brand::after {
  content: ""; position: absolute; left: calc(var(--n) + 6px); right: calc(var(--n) + 6px); bottom: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--stub-perf) 0 6px, transparent 6px 12px); pointer-events: none;
}
body.tk-lot-formulaires.ca-auth-page span.ca-auth-pastille {
  flex: none; width: 30px; height: 21px; border-radius: 0; background: currentColor; box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cmask id='m'%3E%3Crect width='40' height='28' fill='white'/%3E%3Cpath d='M12.5 14.2l4.6 4.6 10.4-10.4' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Cpath mask='url(%23m)' d='M5 0h30a5 5 0 0 1 5 5v5.2a3.8 3.8 0 0 0 0 7.6V23a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5v-5.2a3.8 3.8 0 0 0 0-7.6V5a5 5 0 0 1 5-5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cmask id='m'%3E%3Crect width='40' height='28' fill='white'/%3E%3Cpath d='M12.5 14.2l4.6 4.6 10.4-10.4' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Cpath mask='url(%23m)' d='M5 0h30a5 5 0 0 1 5 5v5.2a3.8 3.8 0 0 0 0 7.6V23a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5v-5.2a3.8 3.8 0 0 0 0-7.6V5a5 5 0 0 1 5-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.tk-lot-formulaires.ca-auth-page h1.ca-auth-h1 {
  margin: var(--sp-6) 0 var(--sp-2); font-size: var(--fs-2xl); font-weight: var(--fw-title); font-stretch: var(--wd-display); letter-spacing: var(--tr-display);
  line-height: var(--lh-title); color: var(--ink); text-wrap: balance;
}
body.tk-lot-formulaires.ca-auth-page p.ca-auth-sub { margin: 0 0 var(--sp-5); font-size: var(--fs-base); line-height: 1.55; color: var(--ink-2); }
body.tk-lot-formulaires.ca-auth-page p.ca-auth-sub a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
/* Messages (erreur, compte créé, lien envoyé…) */
body.tk-lot-formulaires.ca-auth-page .ca-auth-note { margin: 0 0 var(--sp-4); padding: 12px 14px 12px 18px; border: 0; border-radius: var(--r-md); color: var(--ink); font-size: var(--fs-sm); line-height: 1.55; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-note-ok { background: var(--ok-bg); box-shadow: inset 4px 0 0 var(--ok); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-note-ko { background: var(--danger-bg); box-shadow: inset 4px 0 0 var(--danger); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-note-info { background: var(--info-bg); box-shadow: inset 4px 0 0 var(--ink); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-note a { color: var(--ink); font-weight: var(--fw-strong); text-decoration: underline; }
/* « Continuer avec Google » (Nextend Social Login : sa propre feuille reste, celle-ci passe devant) */
body.tk-lot-formulaires.ca-auth-page .ca-auth-social { display: block; width: 100%; margin: 0; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-social :is(.nsl-container, .nsl-container-buttons) { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-social .nsl-container-buttons > a { display: block; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: var(--r-md); background: none; box-shadow: none; text-decoration: none; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-social .nsl-container-buttons > a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-social .nsl-button {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: none; min-height: 52px; margin: 0; padding: 0 16px;
  border: 0; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px #747775; color: #1f1f1f;
  transition: box-shadow var(--dur-1), background-color var(--dur-1);
}
@media (hover: hover) and (pointer: fine) { body.tk-lot-formulaires.ca-auth-page .ca-auth-social .nsl-button:hover { box-shadow: inset 0 0 0 1.5px #1f1f1f; } }
body.tk-lot-formulaires.ca-auth-page .ca-auth-social .nsl-button-svg-container { display: flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; margin: 0; padding: 0; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-social .nsl-button-svg-container svg { width: 20px; height: 20px; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-social .nsl-button-label-container {
  margin: 0; padding: 0; font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; line-height: 1.25; color: #1f1f1f; text-align: center; white-space: normal;
}
body.tk-lot-formulaires.ca-auth-page .ca-auth-social .nsl-button-label-container b { font-weight: var(--fw-strong); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-sep {
  display: flex; align-items: center; gap: 12px; margin: var(--sp-5) 0; color: var(--ink-2);
  font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0; line-height: 1.3; 
}
body.tk-lot-formulaires.ca-auth-page .ca-auth-sep::before, body.tk-lot-formulaires.ca-auth-page .ca-auth-sep::after { content: ""; flex: 1 1 24px; height: 0; border-top: 1px dashed var(--line-2); background: none; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-sep span { white-space: nowrap; }
/* Champs : ceux du design system (libellé au-dessus, 48 px, 16 px de texte, aide en dessous) */
body.tk-lot-formulaires.ca-auth-page form.ca-auth-form { display: grid; gap: var(--sp-4); margin: 0; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-f { display: grid; gap: 6px; min-width: 0; margin: 0; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-f > label { display: block; margin: 0; font-size: var(--fs-sm); font-weight: 700; font-stretch: var(--wd-ui); line-height: 1.35; color: var(--ink); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-f :is(input[type="text"], input[type="email"], input[type="password"], select) {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-input);
  background-color: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-base); line-height: 1.4; box-shadow: none;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
body.tk-lot-formulaires.ca-auth-page .ca-auth-f input::placeholder { color: var(--muted); opacity: 1; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-formulaires.ca-auth-page .ca-auth-f :is(input, select):hover { border-color: var(--ink-2); } }
body.tk-lot-formulaires.ca-auth-page .ca-auth-f :is(input, select):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--line-strong); box-shadow: 0 0 0 6px var(--focus-halo); }
/* Après un envoi incomplet, le navigateur arrête le formulaire : les champs obligatoires restés vides se bordent de rouge */
body.tk-lot-formulaires.ca-auth-page .ca-auth-f :is(input, select):user-invalid { border-color: var(--danger); }
body.tk-lot-formulaires.ca-auth-page label.ca-auth-check input[type="checkbox"]:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-f input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; caret-color: var(--ink); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-f input:-webkit-autofill:focus-visible { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 6px var(--focus-halo); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-aide { display: block; margin: 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); }
/* Mot de passe : « Afficher » dans le champ (script de 120 gardé), cible de 44 px */
body.tk-lot-formulaires.ca-auth-page .ca-auth-pw { position: relative; display: block; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-pw input { padding-right: 104px; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-pw button.ca-auth-oeil {
  position: absolute; top: 2px; right: 2px; bottom: 2px; transform: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 92px; height: auto; margin: 0; padding: 0 14px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--ink); box-shadow: none; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: var(--fw-strong); line-height: 1; letter-spacing: 0; 
}
@media (hover: hover) and (pointer: fine) { body.tk-lot-formulaires.ca-auth-page .ca-auth-pw button.ca-auth-oeil:hover { background: var(--surface-3); color: var(--ink); } }
body.tk-lot-formulaires.ca-auth-page .ca-auth-pw button.ca-auth-oeil:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* Rester connecté, mot de passe oublié, conditions d'utilisation */
body.tk-lot-formulaires.ca-auth-page .ca-auth-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--sp-4); margin: 0; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-ligne-cgu { display: block; }
body.tk-lot-formulaires.ca-auth-page label.ca-auth-check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink); cursor: pointer; }
body.tk-lot-formulaires.ca-auth-page label.ca-auth-check-cgu { align-items: flex-start; padding: 10px 0 0; }
body.tk-lot-formulaires.ca-auth-page label.ca-auth-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 0;
  border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--surface); accent-color: auto; cursor: pointer; transition: background var(--dur-1);
}
body.tk-lot-formulaires.ca-auth-page label.ca-auth-check input[type="checkbox"]::after {
  content: ""; width: 10px; height: 6px; border: solid var(--on-accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--dur-2) var(--ease-spring);
}
body.tk-lot-formulaires.ca-auth-page label.ca-auth-check input[type="checkbox"]:checked { background: var(--accent-fill, var(--accent)); border-color: var(--line-strong); }
body.tk-lot-formulaires.ca-auth-page label.ca-auth-check input[type="checkbox"]:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
body.tk-lot-formulaires.ca-auth-page label.ca-auth-check input[type="checkbox"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-check-txt { flex: 1 1 auto; min-width: 0; }
body.tk-lot-formulaires.ca-auth-page :is(.ca-auth-check-txt, .ca-auth-check) a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
body.tk-lot-formulaires.ca-auth-page a.ca-auth-lien { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--fs-sm); font-weight: 700; line-height: 1.35; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
/* Bouton d'envoi : l'accent du thème, bordé d'encre, comme « Publier mon code » (§ 8) */
body.tk-lot-formulaires.ca-auth-page form.ca-auth-form button.ca-auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin: var(--sp-2) 0 0; padding: 0 24px;
  border-radius: var(--r-md); border: 1.5px solid var(--tk-ink); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent);
  box-shadow: none; filter: none; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-base); font-weight: var(--fw-strong); font-stretch: var(--wd-title); line-height: 1.2; letter-spacing: 0; 
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1), background var(--dur-1);
}
@media (hover: hover) and (pointer: fine) { body.tk-lot-formulaires.ca-auth-page form.ca-auth-form button.ca-auth-btn:hover { background: var(--accent-fill-hover, var(--accent-hover)); color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 3px 0 var(--tk-ink); } }
body.tk-lot-formulaires.ca-auth-page form.ca-auth-form button.ca-auth-btn:active { transform: translateY(1px); box-shadow: none; }
body.tk-lot-formulaires.ca-auth-page form.ca-auth-form button.ca-auth-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { body.tk-lot-formulaires.ca-auth-page form.ca-auth-form button.ca-auth-btn { transition: none; transform: none; } }
body.tk-lot-formulaires.ca-auth-page p.ca-auth-alt { margin: var(--sp-6) 0 0; padding: var(--sp-3) 0 0; border-top: 1px dashed var(--line-2); font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); text-align: center; }
body.tk-lot-formulaires.ca-auth-page p.ca-auth-alt a {
  display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); font-weight: var(--fw-strong);
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .22em;
}
body.tk-lot-formulaires.ca-auth-page :is(p.ca-auth-alt a, a.ca-auth-lien, .ca-auth-check-txt a, p.ca-auth-sub a, .ca-auth-note a):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* « Comment avez-vous connu… » (401) : liste déroulante du design system */
body.tk-lot-formulaires.ca-auth-page .ca-org-f select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
body.tk-lot-formulaires.ca-auth-page .ca-org-opt { margin-left: 4px; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }
/* Inscription : ce que le compte apporte */
body.tk-lot-formulaires.ca-auth-page .ca-auth-avantages { margin: var(--sp-6) 0 0; padding: var(--sp-5); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-avantages > p { margin: 0 0 var(--sp-3); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; line-height: 1.35; letter-spacing: 0; color: var(--ink); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-phare {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 var(--sp-4); padding: 14px;
  border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); box-shadow: none;
}
body.tk-lot-formulaires.ca-auth-page .ca-auth-phare-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-fill, var(--accent)); color: var(--on-accent); box-shadow: none; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-phare-ico svg { width: 18px; height: 18px; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-phare-txt { display: grid; gap: 4px; min-width: 0; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-phare-txt strong { display: block; font-size: var(--fs-base); font-weight: var(--fw-title); line-height: 1.35; color: var(--ink); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-phare-txt > span { display: block; margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-avantages ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.tk-lot-formulaires.ca-auth-page .ca-auth-avantages li { position: relative; margin: 0; padding: 0 0 0 30px; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-avantages li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--sel-bg); }
body.tk-lot-formulaires.ca-auth-page .ca-auth-avantages li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 8px; height: 5px; border: solid var(--sel-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
@media (max-width: 559px) {
  body.tk-lot-formulaires.ca-auth-page .ca-auth { padding: var(--sp-5) 0 var(--sp-10); }
  body.tk-lot-formulaires.ca-auth-page .ca-auth-ligne { gap: 0 var(--sp-3); }
  body.tk-lot-formulaires.ca-auth-page .ca-auth-avantages { padding: var(--sp-4); }
}

/* ---------- 11. Signaler un code (/signaler-un-code/, 060 ; lot « formulaires ») ----------
   Même colonne que le titre de la page, une carte, des champs numérotés comme « Publier un code » (§ 8). Le message
   après l'envoi peut être un merci ou un refus (déjà signalé, trop d'envois) : encadré neutre. */
body.tk-lot-formulaires .ca-sig { width: 100%; max-width: calc(var(--container-narrow) - 2 * var(--gutter)); margin: 0 auto var(--sp-12); color: var(--ink); }
body.tk-lot-formulaires .ca-sig :is(*, *::before, *::after) { box-sizing: border-box; }
body.tk-lot-formulaires p.ca-sig-lead { max-width: none; margin: 0 0 var(--sp-6); font-size: var(--fs-md); line-height: 1.6; color: var(--ink-2); }
body.tk-lot-formulaires p.ca-sig-msg { margin: 0 0 var(--sp-4); padding: 13px 16px 13px 20px; border: 0; border-radius: var(--r-md); background: var(--info-bg); box-shadow: inset 4px 0 0 var(--ink); color: var(--ink); font-size: var(--fs-sm); font-weight: 700; line-height: 1.5; }
body.tk-lot-formulaires form.ca-sig-form {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: var(--sp-6); counter-reset: tk-sig;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
}
body.tk-lot-formulaires label.ca-sig-l {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: var(--sp-4) 0 0; counter-increment: tk-sig;
  font-size: var(--fs-md); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: 1.3; color: var(--ink);
}
body.tk-lot-formulaires label.ca-sig-l:first-of-type { margin-top: 0; }
body.tk-lot-formulaires label.ca-sig-l::before {
  content: counter(tk-sig, decimal-leading-zero); display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 5px;
  border-radius: 6px; background: var(--sel-bg); color: var(--sel-ink); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0;
}
body.tk-lot-formulaires form.ca-sig-form :is(select, textarea) {
  display: block; width: 100%; height: 48px; min-height: 0; margin: 0; padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-input);
  background-color: var(--surface); color: var(--ink); color-scheme: inherit; font: inherit; font-size: var(--fs-base); line-height: 1.4; box-shadow: none;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
body.tk-lot-formulaires form.ca-sig-form select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
body.tk-lot-formulaires form.ca-sig-form textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
body.tk-lot-formulaires form.ca-sig-form textarea::placeholder { color: var(--muted); opacity: 1; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-formulaires form.ca-sig-form :is(select, textarea):hover { border-color: var(--ink-2); } }
body.tk-lot-formulaires form.ca-sig-form :is(select, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--line-strong); box-shadow: 0 0 0 6px var(--focus-halo); }
body.tk-lot-formulaires form.ca-sig-form select:user-invalid { border-color: var(--danger); }
body.tk-lot-formulaires form.ca-sig-form button.ca-sig-btn {
  justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin: var(--sp-5) 0 0; padding: 0 28px;
  border-radius: var(--r-md); border: 1.5px solid var(--tk-ink); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent);
  box-shadow: none; filter: none; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-base); font-weight: var(--fw-strong); font-stretch: var(--wd-title); line-height: 1.2; letter-spacing: 0; 
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1), background var(--dur-1);
}
@media (hover: hover) and (pointer: fine) { body.tk-lot-formulaires form.ca-sig-form button.ca-sig-btn:hover { background: var(--accent-fill-hover, var(--accent-hover)); color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 3px 0 var(--tk-ink); } }
body.tk-lot-formulaires form.ca-sig-form button.ca-sig-btn:active { transform: translateY(1px); box-shadow: none; }
body.tk-lot-formulaires form.ca-sig-form button.ca-sig-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { body.tk-lot-formulaires form.ca-sig-form button.ca-sig-btn { transition: none; transform: none; } }
body.tk-lot-formulaires p.ca-sig-note { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
body.tk-lot-formulaires p.ca-sig-note a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
body.tk-lot-formulaires p.ca-sig-note a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
body.tk-lot-formulaires p.ca-sig-note.ca-sig-fine { margin-top: var(--sp-2); padding-top: var(--sp-3); border-top: 1px dashed var(--line-2); font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-2); opacity: 1; }
@media (max-width: 559px) {
  body.tk-lot-formulaires form.ca-sig-form { padding: var(--sp-5) var(--sp-4); }
  body.tk-lot-formulaires form.ca-sig-form button.ca-sig-btn { justify-self: stretch; }
  body.tk-lot-formulaires p.ca-sig-lead { font-size: var(--fs-base); }
}

/* ---------- 12. Proposer une entreprise (/proposer-un-code/, 149 ; lot « formulaires ») ----------
   Le formulaire reprend celui de « Publier un code » (§ 8). Ici : l'encart « Offert aux premiers membres » (feuille de
   309, lot « formulaires »), le suivi « Vos propositions » et la note sous « Comment ça marche » (feuille de 141, qui
   part avec le lot « base » : habillés dès ce lot, comme le renvoi .ca-xlink du § 8), l'invitation du visiteur. */
body.tk-lot-formulaires .ca-form-page p.ca-open-note {
  max-width: 40rem; margin: 0; padding: 12px 14px 12px 18px; border: 0; border-radius: var(--r-md);
  background: var(--ok-bg); box-shadow: inset 4px 0 0 var(--ok); color: var(--ink); font-size: var(--fs-sm); line-height: 1.55;
}
body.tk-lot-formulaires .ca-form-page p.ca-open-note strong { color: var(--ink); font-weight: var(--fw-title); }
/* Le renvoi « déjà listée ? » suit le formulaire ou l'invitation, dans la colonne principale (dans « Publier », il est à droite) */
body.tk-lot-formulaires .ca-form-page > .ca-xlink { margin-top: var(--sp-4); }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-prop-suivi {
  margin: 0 0 var(--sp-4); padding: var(--sp-5); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink);
}
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-prop-suivi h3.ca-prop-suivi-t { margin: 0 0 var(--sp-2); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; line-height: 1.35; letter-spacing: 0; color: var(--ink); }
:is(body.tk-lot-base, body.tk-lot-formulaires) ul.ca-prop-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
:is(body.tk-lot-base, body.tk-lot-formulaires) ul.ca-prop-list > li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm st" "dt st" "mo mo"; gap: 2px 12px; align-items: center;
  margin: 0; padding: 12px 0; border: 0; border-top: 1px dashed var(--line-2); border-radius: 0; background: none;
}
:is(body.tk-lot-base, body.tk-lot-formulaires) ul.ca-prop-list > li:first-child { border-top: 0; }
:is(body.tk-lot-base, body.tk-lot-formulaires) ul.ca-prop-list > li:last-child { padding-bottom: 0; }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-prop-nm { grid-area: nm; min-width: 0; font-size: var(--fs-base); font-weight: var(--fw-strong); line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; white-space: normal; }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-prop-dt { grid-area: dt; font-family: var(--font-sans); font-size: var(--fs-xs); line-height: 1.4; color: var(--ink-2); }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-prop-st {
  grid-area: st; justify-self: end; display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: var(--fw-strong); line-height: 1.2; white-space: nowrap; color: var(--ink); background: var(--surface-3); box-shadow: none;
}
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-prop-st.ca-prop-att { background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-line); }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-prop-st.ca-prop-okk { background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok-line); }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-prop-st.ca-prop-nok { background: var(--surface-3); color: var(--ink-2); }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-prop-motif { grid-area: mo; margin: 6px 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-share-hint.ca-prop-warn { color: var(--ink); font-weight: 700; }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-share-hint.ca-prop-warn a { color: var(--ink); font-weight: var(--fw-strong); text-decoration: underline; }
body.tk-lot-formulaires .ca-share-hint[hidden] { display: none; }
:is(body.tk-lot-base, body.tk-lot-formulaires) .ca-form-page p.ca-legal-note { max-width: none; margin: var(--sp-4) 0 0; padding: var(--sp-3) 0 0; border-top: 1px dashed var(--line-2); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
/* Visiteur : « Me connecter » et « Créer un compte gratuit » deviennent deux boutons (le point médian entre eux est masqué) */
body.tk-lot-formulaires .ca-share-guest p.ca-share-edits { justify-self: stretch; display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0; font-size: 0; line-height: 0; color: transparent; }
body.tk-lot-formulaires .ca-share-guest p.ca-share-edits a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: var(--fs-sm); font-weight: var(--fw-strong); font-stretch: var(--wd-title); line-height: 1.2; letter-spacing: 0; text-decoration: none;
}
body.tk-lot-formulaires .ca-share-guest p.ca-share-edits a:first-child { border-color: var(--tk-ink); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) {
  body.tk-lot-formulaires .ca-share-guest p.ca-share-edits a:hover { background: var(--surface-2); }
  body.tk-lot-formulaires .ca-share-guest p.ca-share-edits a:first-child:hover { background: var(--accent-fill-hover, var(--accent-hover)); }
}
body.tk-lot-formulaires .ca-share-guest p.ca-share-edits a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 559px) { body.tk-lot-formulaires .ca-share-guest p.ca-share-edits a { flex: 1 1 100%; } }

/* ---------- 13. Page d’un code de la communauté (/code-parrain/{fiche}/{pseudo}/, 21/10) ----------
   Lot « membres ». Contenu produit par l’extrait « Codes de la communauté » (ca_cp_page_html) : fil d’Ariane, tête
   (logo de la marque, « Code de la communauté », H1, résumé), annonce du membre (ligne .ca-row de 073, en entier),
   encadré de l’offre officielle avec le lien vers la fiche, étapes, autres codes, partage, mention de transparence.
   La feuille de secours de l’extrait (#ca-cp-css) est retirée par le lot. */
body.tk-lot-membres .ca-cp { width: 100%; max-width: var(--container-narrow, 960px); margin: 0 auto; padding: var(--sp-5) var(--gutter) var(--sp-8); }
body.tk-lot-membres .ca-cp > .cad-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0 0 var(--sp-4); }
body.tk-lot-membres .ca-cp > .cad-crumb a { min-width: var(--tap); justify-content: center; }
body.tk-lot-membres .ca-cp > .cad-crumb [aria-current] { color: var(--ink-2); }
body.tk-lot-membres .ca-cp-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-4) var(--sp-5); margin: 0 0 var(--sp-5); }
body.tk-lot-membres .ca-cp-logo { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; background: var(--tk-logo-bg, var(--surface)); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden; }
body.tk-lot-membres .ca-cp-titres { display: grid; gap: var(--sp-2); min-width: 0; }
body.tk-lot-membres .ca-cp-sur {
  justify-self: start; margin: 0; padding: 4px 10px; border: 1.5px dashed var(--line-strong); border-radius: 999px;
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: var(--tr-label); color: var(--ink-2);
}
body.tk-lot-membres .ca-cp-h1 { margin: 0; font-size: var(--fs-2xl); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: 1.12; color: var(--ink); overflow-wrap: anywhere; text-wrap: balance; }
body.tk-lot-membres .ca-cp-resume { margin: 0; max-width: 62ch; font-size: var(--fs-base); line-height: 1.55; color: var(--ink-2); }
body.tk-lot-membres .ca-cp-resume a { color: var(--ink); font-weight: var(--fw-strong); }
body.tk-lot-membres .ca-cp-pause { margin: 0 0 var(--sp-5); padding: 12px 16px 12px 18px; border-radius: var(--r-md); background: var(--warn-bg); box-shadow: inset 4px 0 0 var(--warn-line, var(--ink)); color: var(--ink); font-size: var(--fs-sm); line-height: 1.55; }
body.tk-lot-membres .ca-cp-pause a { color: var(--ink); font-weight: var(--fw-strong); }
body.tk-lot-membres .ca-cp-h2 { margin: 0 0 var(--sp-3); font-size: var(--fs-lg); font-weight: var(--fw-title); font-stretch: var(--wd-title); line-height: 1.2; color: var(--ink); }
body.tk-lot-membres .ca-cp > section { margin: var(--sp-8) 0 0; }
body.tk-lot-membres .ca-cp > section.ca-cp-annonce { margin-top: 0; }
body.tk-lot-membres .ca-cp-rows { display: grid; gap: var(--sp-3); }
/* Sur sa propre page, l'annonce se lit en entier : ni l'avantage ni le texte ne sont coupés. */
body.tk-lot-membres .ca-cp-rows .ca-row :is(.ca-row-desc, .ca-row-bonus) { display: block; -webkit-line-clamp: unset; overflow: visible; }
/* Offre officielle : carte au talon de la fiche, bouton à l’accent du thème (comme « Profitez de l’offre ») */
body.tk-lot-membres .ca-cp-officiel { display: grid; gap: var(--sp-3); padding: var(--sp-5) var(--sp-6); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); }
body.tk-lot-membres .ca-cp-officiel .ca-cp-h2 { margin: 0; }
body.tk-lot-membres .ca-cp-off-txt { margin: 0; font-size: var(--fs-base); line-height: 1.5; color: var(--ink); }
body.tk-lot-membres .ca-cp-off-v { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0; color: var(--ink-2); }
body.tk-lot-membres .ca-cp-off-act { margin: 0; }
body.tk-lot-membres a.ca-cp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: var(--r-md);
  border: 1.5px solid var(--tk-ink, var(--ink)); background: var(--accent-fill, var(--accent)); background-origin: border-box; color: var(--on-accent);
  font-weight: var(--fw-title); font-size: var(--fs-sm); letter-spacing: 0; text-decoration: none; text-align: center;
}
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres a.ca-cp-btn:hover { background: var(--accent-fill-hover, var(--accent-hover, var(--accent))); background-origin: border-box; } }
body.tk-lot-membres a.ca-cp-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Étapes */
body.tk-lot-membres .ca-cp-etapes ol { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; counter-reset: cp; }
body.tk-lot-membres .ca-cp-etapes li { position: relative; margin: 0; padding: 2px 0 0 44px; min-height: 32px; font-size: var(--fs-base); line-height: 1.5; color: var(--ink); counter-increment: cp; }
body.tk-lot-membres .ca-cp-etapes li::before {
  content: counter(cp); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sel-bg); color: var(--sel-ink); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-strong);
}
body.tk-lot-membres .ca-cp-etapes a { color: var(--ink); font-weight: var(--fw-strong); }
/* Autres codes : liens en cartes, deux colonnes sur grand écran */
body.tk-lot-membres .ca-cp-liste ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
body.tk-lot-membres .ca-cp-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: var(--tap); margin: 0; padding: 8px 14px; border-radius: var(--r-md); border: 1px solid var(--line-input, var(--line)); background: var(--surface); }
body.tk-lot-membres .ca-cp-liste li a { color: var(--ink); font-weight: var(--fw-strong); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { body.tk-lot-membres .ca-cp-liste li:hover { border-color: var(--line-strong); } body.tk-lot-membres .ca-cp-liste li a:hover { text-decoration: underline; } }
body.tk-lot-membres .ca-cp-li-d { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0; color: var(--muted); }
body.tk-lot-membres .ca-cp-li-plus { margin: var(--sp-3) 0 0; }
body.tk-lot-membres .ca-cp-li-plus a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); font-weight: var(--fw-strong); }
body.tk-lot-membres .ca-cp-note { margin: var(--sp-6) 0 0; padding-top: var(--sp-4); border-top: 1px dashed var(--line-2); font-size: var(--fs-xs); line-height: 1.6; color: var(--muted); }
body.tk-lot-membres .ca-cp-note a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink-2); font-weight: 700; }
@media (max-width: 559px) {
  body.tk-lot-membres .ca-cp { padding-top: var(--sp-4); }
  body.tk-lot-membres .ca-cp-tete { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  body.tk-lot-membres .ca-cp-logo { width: 56px; height: 56px; border-radius: 14px; }
  body.tk-lot-membres .ca-cp-h1 { font-size: var(--fs-xl); }
  body.tk-lot-membres .ca-cp-officiel { padding: var(--sp-4) var(--sp-5); }
  body.tk-lot-membres a.ca-cp-btn { width: 100%; }
}
