/* ==========================================================================
   CGT-VIVEST — 58-equipe-gestion.css — ÉQUIPE, HUB DE GESTION ET PILOTAGE
   (refonte-cgt, lot 16)
   --------------------------------------------------------------------------
   Balisage : assets/js/public.js —
   - #team / #staff : renderTeam (cartes .cgt-eq-*), editUnionTitle (petite
     boîte #sm-edit-title-modal) ;
   - #management : loadManagementPage (tuiles .cgt-gst-tuile, variantes staff
     et secrétaire / délégué·e / admin) ; pastilles de updateMenuBadge
     (.sm-admin-badge[data-ton]) ;
   - #admin/statistics : renderStatistics, initStatisticsCharts (composants de
     la comptabilité, 56-comptabilite : .cgt-cpt-page, (.cgt-chiffre : 30 § 23),
     .cgt-cpt-graphique, .cgt-cpt-legende, .cgt-cpt-fiche) — ici le complément ;
   - #admin/activity : renderActivityLog (registre .cgt-jnl-*, filtres du
     fichier des adhérent·es .cgt-adh-filtres de 55-adherents),
     showActivityDetail (#sm-activity-detail-modal) ;
   - #search : loadAISearch, performAISearch (.cgt-rech-*) ;
   - recherche globale (_performGlobalSearch) : pictogrammes de résultat.
   AUCUN style en ligne ni couleur en dur dans le rendu : clair et sombre
   suivent les jetons (00-tokens.css). Ce fichier remplace les trois blocs
   <style> injectés par renderTeam, renderActivityLog et showActivityDetail.

   Composition « affiche militante en 2,5D » :
   - équipe : cartes papier à filet de la couleur du RÔLE (celle de la coque :
     secrétaire communiqué/jaune, délégué·e et staff document/violet), avatar
     rond en autocollant, rôle en Besley italique, « Écrire » en aplat rouge ;
   - gestion : sections numérotées (pavé d'encre à tranche rouge), tuiles à
     filet et pictogramme de RUBRIQUE de cgt.fr ([data-sup-rub], 53-support
     § 0), jamais deux fois la même rubrique dans une section ; les éléments à
     traiter en pastille-autocollant posée dans le coin ;
   - journal : registre rangé par jour (étiquette d'encre + filet), heure en
     chiffres tabulaires, pictogramme de rubrique (création cyan, modification
     violet, suppression rouge + pictogramme, envoi jaune…).

   Poids : écrans neufs, sélecteurs simples ; :not(#cgt) seulement contre une
   règle plus lourde de 30-composants (cartes). !important : aucun.
   Mouvement : translate / scale / rotate seulement, coupé par
   prefers-reduced-motion. Pas de color-mix(), pas de backdrop-filter, pas de :has().
   ========================================================================== */


/* ==========================================================================
   1. L'ÉQUIPE SYNDICALE — #team
   ========================================================================== */
.cgt-eq-page{
  display:flex;
  flex-direction:column;
  gap:36px;
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding:4px 0 16px;
  box-sizing:border-box;
  font-family:var(--police-texte);
  color:var(--texte);
}
.cgt-eq-page *, .cgt-eq-page *::before, .cgt-eq-page *::after{ box-sizing:border-box; }

.cgt-eq-titre.cgt-titre-ecran{ margin:0; }
.cgt-eq-chapo{
  margin:14px 0 0;
  max-width:62ch;
  font-size:var(--fs-16);
  line-height:var(--lh-corps);
  color:var(--texte-2);
}
.cgt-eq-chapo strong{ font-weight:var(--fw-900); color:var(--texte); font-variant-numeric:tabular-nums; }

.cgt-eq-section{ display:flex; flex-direction:column; gap:22px; min-width:0; }
/* Titre de section : même hiérarchie que « Le contenu » (hub) et « Brouillons en
   cours » (newsletters) — Figtree 400 + un mot en Besley rouge, SANS la barre
   rouge 100 × 4, réservée au titre d'écran (.cgt-titre-ecran). Revue D. */
.cgt-eq-section-titre{
  margin:0;
  font-family:var(--police-texte);
  font-size:clamp(1.375rem, 1.125rem + .6vw, 1.75rem);   /* 24 px dès 1 025 px (V3-07) */
  font-weight:var(--fw-400);
  line-height:1.15;
  letter-spacing:var(--ls-accent);
  color:var(--texte);
}

/* Même trame pour la direction et le staff : les colonnes s'alignent d'une section à l'autre */
.cgt-eq-grille{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(340px, 1fr));
  gap:24px;
}

/* Carte : avatar | identité, puis la rangée d'actions sous un filet */
.cgt-eq-carte{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  grid-template-areas:"avatar corps" "actions actions";
  align-items:start;
  gap:16px 18px;
  min-width:0;
  margin:0 4px 4px 0;                 /* place de la tranche */
  padding:22px 22px 18px;
}
/* Filet de la couleur du rôle, en pseudo-élément : le survol de .cgt-carte
   recolore les bords, il ne doit pas l'effacer */
.cgt-eq-carte::before{
  content:"";
  position:absolute;
  left:-1px;
  right:-1px;
  top:-1px;
  height:5px;
  background:var(--rub-plein);
  pointer-events:none;
}
.cgt-eq-avatar.cgt-msg-avatar{
  grid-area:avatar;
  width:64px;
  height:64px;
  overflow:hidden;
  font-size:var(--fs-20);
  box-shadow:3px 3px 0 0 var(--tranche);
}
.cgt-eq-carte--grande .cgt-eq-avatar.cgt-msg-avatar{
  width:92px;
  height:92px;
  font-size:var(--fs-28);
  letter-spacing:.01em;
  box-shadow:4px 4px 0 0 var(--tranche);
}
.cgt-eq-avatar img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:var(--rayon-rond);
}
.cgt-eq-corps{ grid-area:corps; display:flex; flex-direction:column; min-width:0; padding-top:2px; }
.cgt-eq-fonction{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 10px;
  margin:0 0 4px;
  min-height:32px;
}
.cgt-eq-role.cgt-msg-role{ font-size:var(--fs-16); line-height:1.3; }
.cgt-eq-carte--grande .cgt-eq-role.cgt-msg-role{ font-size:var(--fs-18); }
.cgt-eq-modifier.cgt-msg-icone{ width:32px; height:32px; font-size:12px; }
.cgt-eq-nom{
  margin:0;
  font-family:var(--police-texte);
  font-size:var(--fs-20);
  font-weight:var(--fw-900);
  line-height:1.15;
  letter-spacing:-.01em;
  color:var(--texte);
  overflow-wrap:anywhere;
}
.cgt-eq-carte--grande .cgt-eq-nom{ font-size:var(--fs-24); }
.cgt-eq-infos{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin:12px 0 0;
  padding:0;
  list-style:none;
  font-size:var(--fs-14);
  line-height:1.35;
  color:var(--texte-2);
}
.cgt-eq-infos li{ display:flex; align-items:baseline; gap:9px; min-width:0; overflow-wrap:anywhere; }
.cgt-eq-infos i{ flex:none; width:16px; font-size:13px; text-align:center; color:var(--texte-indice); }

.cgt-eq-actions{
  grid-area:actions;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding-top:14px;
  border-top:1px solid var(--filet);
}
/* Appeler : sur téléphone seulement (comme avant : tel: n'a pas de sens sur un poste) */
.cgt-eq-appeler.sm-btn{ display:none; }
.cgt-eq-vous{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:4px 10px;
  font-size:var(--fs-12);
  font-weight:var(--fw-800);
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--texte-2);
  background:var(--papier-3);
  border:1px solid var(--filet-fort);
}

.cgt-eq-vide.sm-empty-state:not(#cgt){ padding:44px 16px 28px; }

/* Modale « Modifier le rôle » : petite boîte de la charte, rien de plus */
.cgt-eq-modale .sm-form-group{ margin:0; }
.cgt-eq-modale .sm-input{ width:100%; }


/* ==========================================================================
   2. HUB « GESTION » — #management
   ========================================================================== */
.cgt-gst-page{
  display:flex;
  flex-direction:column;
  gap:40px;
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding:4px 0 16px;
  box-sizing:border-box;
  font-family:var(--police-texte);
  color:var(--texte);
}
.cgt-gst-page *, .cgt-gst-page *::before, .cgt-gst-page *::after{ box-sizing:border-box; }
.cgt-gst-titre.cgt-titre-ecran{ margin:0; }
.cgt-gst-chapo{
  margin:14px 0 0;
  max-width:62ch;
  font-size:var(--fs-16);
  line-height:var(--lh-corps);
  color:var(--texte-2);
}

.cgt-gst-section{ display:flex; flex-direction:column; gap:22px; min-width:0; }
.cgt-gst-section-tete{ display:flex; align-items:center; gap:16px; min-width:0; }
/* Numéro de section : pavé d'encre (s'inverse en sombre), tranche rouge */
.cgt-gst-numero{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  font-size:var(--fs-18);
  font-weight:var(--fw-900);
  font-variant-numeric:tabular-nums;
  letter-spacing:-.02em;
  background:var(--picto-encre-fond);
  color:var(--picto-encre-texte);
  box-shadow:3px 3px 0 0 var(--cgt-rouge);
}
.cgt-gst-section-titre{
  margin:0;
  font-family:var(--police-texte);
  font-size:clamp(1.375rem, 1.125rem + .6vw, 1.75rem);   /* 24 px dès 1 025 px (V3-07) */
  font-weight:var(--fw-400);
  line-height:1.15;
  letter-spacing:var(--ls-accent);
  color:var(--texte);
}
/* Sous 24 px, le mot d'accent quitte --accent-titre (#F03E3E : 3,46:1 sur la table, réservé
   à 24 px et plus par la charte) pour --lien (4,91 / 5,46:1) — V3-07. */
@media (max-width: 1024px){ :is(.cgt-eq-section-titre, .cgt-gst-section-titre){ --accent-titre:var(--lien); } }
.cgt-gst-section-chapo{
  margin:4px 0 0;
  font-size:var(--fs-14);
  line-height:1.4;
  color:var(--texte-3);
}

.cgt-gst-tuiles{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:20px 22px;
}
/* Tuile : lien entier (clavier + lecteur d'écran lisent le nom et la description) */
.cgt-gst-tuile{
  position:relative;
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
  min-height:112px;
  margin:0 4px 4px 0;
  padding:20px 20px 20px 22px;
  text-decoration:none;
}
.cgt-gst-tuile:not(#cgt){ color:var(--texte); text-decoration:none; }
/* Filet de rubrique (pseudo-élément : le survol de .cgt-carte recolore les bords) */
.cgt-gst-tuile::before{
  content:"";
  position:absolute;
  left:-1px;
  right:-1px;
  top:-1px;
  height:5px;
  background:var(--rub);
  pointer-events:none;
}
.cgt-gst-picto{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:54px;
  font-size:22px;
  background:var(--rub-plein);
  color:var(--rub-sur);
  box-shadow:3px 3px 0 0 var(--tranche);
}
.cgt-gst-texte{ flex:1 1 auto; display:flex; flex-direction:column; gap:4px; min-width:0; }
.cgt-gst-nom{
  font-size:var(--fs-18);
  font-weight:var(--fw-800);
  line-height:1.2;
  letter-spacing:-.01em;
  color:var(--texte);
}
.cgt-gst-desc{
  font-size:var(--fs-14);
  line-height:1.4;
  color:var(--texte-3);
}
.cgt-gst-fleche{
  flex:none;
  font-size:16px;
  color:var(--texte-3);
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort), color var(--duree-2) var(--courbe-simple);
}
@media (hover: hover){
  .cgt-gst-tuile:hover .cgt-gst-fleche{ translate:4px 0; color:var(--lien); }
  .cgt-gst-tuile:hover .cgt-gst-nom{ text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; text-decoration-color:var(--rub); }
}
.cgt-gst-tuile:focus-visible{ outline:2px solid var(--focus); outline-offset:4px; }
.cgt-gst-note.sm-alert{ max-width:880px; }

/* Pastilles « à traiter » de updateMenuBadge (compteur : seule pilule permise).
   Revue D : UNE couleur pour un même sens — rouge = action requise, comme les
   pastilles des onglets de la coque sur le papier (le jaune n'est pris que sur le
   bandeau rouge, où le rouge disparaîtrait). Plus de bleu « info » au milieu des
   rubriques de cgt.fr. data-ton="jaune" reste accepté pour un appel futur ;
   le nombre est toujours doublé d'un aria-label (« 2 éléments à traiter »). */
.sm-admin-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  margin-left:8px;
  padding:0 7px;
  font-family:var(--police-texte);
  font-size:var(--fs-12);
  font-weight:var(--fw-900);
  line-height:1;
  font-variant-numeric:tabular-nums;
  border-radius:var(--rayon-pilule);
  background:var(--action);
  color:var(--action-texte);
  box-shadow:1px 1px 0 0 var(--tranche-rouge);
}
.sm-admin-badge[data-ton="jaune"]{ background:var(--cgt-jaune); color:var(--sur-jaune); box-shadow:1px 1px 0 0 var(--tranche-jaune); }
/* Sur une tuile du hub : autocollant posé à cheval sur le filet, un peu de biais */
.sm-admin-badge.sm-admin-badge--carte{
  position:absolute;
  top:-13px;
  right:18px;
  z-index:2;
  min-width:30px;
  height:30px;
  margin:0;
  padding:0 9px;
  font-size:var(--fs-14);
  border:2px solid var(--papier);
  box-shadow:2px 2px 0 0 var(--tranche);
  rotate:-4deg;
}


/* ==========================================================================
   3. STATISTIQUES — #admin/statistics (complément des composants de 56)
   ========================================================================== */
/* Courbe des adhésions : rouge CGT, voile léger (lus par initStatisticsCharts) */
.cgt-stat-page{
  --stat-courbe:var(--cgt-rouge);
  --stat-courbe-voile:rgba(var(--cgt-rouge-rgb), .10);
}
:root[data-theme="dark"] .cgt-stat-page{
  --stat-courbe:var(--cgt-rouge-500);
  --stat-courbe-voile:rgba(255, 107, 107, .14);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .cgt-stat-page{
    --stat-courbe:var(--cgt-rouge-500);
    --stat-courbe-voile:rgba(255, 107, 107, .14);
  }
}
.cgt-stat-page .cgt-cpt-graphiques{ grid-template-columns:minmax(0, 1.6fr) minmax(0, 1fr); }
.cgt-stat-note{
  margin:12px 0 0;
  font-size:var(--fs-13);
  line-height:1.4;
  color:var(--texte-3);
}
.cgt-stat-page .cgt-cpt-alerte.sm-alert strong{ font-weight:var(--fw-800); }
.cgt-stat-detail.cgt-carte:not(#cgt){ padding:22px 24px 12px; }
.cgt-stat-detail-titre.cgt-cpt-sous-titre{ margin:0 0 6px; }
.cgt-stat-detail-colonnes{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:0 44px;
}
.cgt-stat-detail .cgt-cpt-fiche dd{ font-variant-numeric:tabular-nums; }
.cgt-stat-lien{
  font-size:var(--fs-13);
  font-weight:var(--fw-800);
  color:var(--lien);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.cgt-stat-lien:hover{ color:var(--lien-survol); }


/* ==========================================================================
   4. JOURNAL D'ACTIVITÉ — #admin/activity
   ========================================================================== */
.cgt-jnl-page{
  display:flex;
  flex-direction:column;
  gap:24px;
  width:100%;
  max-width:1400px;                 /* gabarit commun des écrans de gestion (revue D) */
  margin:0 auto;
  padding:4px 0 16px;
  box-sizing:border-box;
  font-family:var(--police-texte);
  color:var(--texte);
}
.cgt-jnl-page *, .cgt-jnl-page *::before, .cgt-jnl-page *::after{ box-sizing:border-box; }

/* Filtres : composant du fichier des adhérent·es (55-adherents), recherche en tête */
.cgt-jnl-filtres.cgt-adh-filtres.cgt-carte:not(#cgt){ grid-template-columns:minmax(0, 1fr); }
.cgt-jnl-choix.cgt-adh-filtres-choix{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
.cgt-jnl-date input{
  width:100%;
  min-width:0;
  height:50px;
  margin:0;
  padding:0 12px;
  border:1px solid var(--bord-champ);
  font-size:var(--fs-15);
  font-weight:var(--fw-600);
}

.cgt-jnl-liste{ display:flex; flex-direction:column; gap:26px; min-width:0; }
.cgt-jnl-jour{ display:flex; flex-direction:column; gap:12px; min-width:0; }
/* Jour : étiquette d'encre (s'inverse en sombre) puis un filet épais */
.cgt-jnl-jour-titre{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0;
  font-family:var(--police-texte);
  font-size:var(--fs-12);
  font-weight:var(--fw-800);
  line-height:1.3;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
}
.cgt-jnl-jour-titre span{
  flex:none;
  max-width:100%;
  padding:5px 10px 4px;
  background:var(--picto-encre-fond);
  color:var(--picto-encre-texte);
  box-shadow:2px 2px 0 0 var(--cgt-rouge);
}
.cgt-jnl-jour-titre::after{
  content:"";
  flex:1 1 auto;
  min-width:24px;
  height:2px;
  background:var(--filet-fort);
}

.cgt-jnl-lignes{ margin:0; padding:0; list-style:none; }
.cgt-jnl-lignes.cgt-carte:not(#cgt){ padding:0; overflow:hidden; }
.cgt-jnl-lignes > li{ margin:0; padding:0; }
.cgt-jnl-lignes > li + li{ border-top:1px solid var(--filet); }
.cgt-jnl-ligne{
  display:grid;
  grid-template-columns:52px 40px minmax(0, 1fr) auto;
  align-items:center;
  gap:14px;
  width:100%;
  margin:0;
  padding:14px 18px;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  font:inherit;
  text-align:left;
  color:var(--texte);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background-color var(--duree-2) var(--courbe-simple);
}
@media (hover: hover){
  .cgt-jnl-ligne:hover{ background:var(--papier-2); }
  .cgt-jnl-ligne:hover .cgt-jnl-chevron{ translate:3px 0; color:var(--lien); }
}
.cgt-jnl-ligne:active{ background:var(--papier-3); }
.cgt-jnl-ligne:focus-visible{ outline:2px solid var(--focus); outline-offset:-4px; }
.cgt-jnl-heure{
  font-size:var(--fs-14);
  font-weight:var(--fw-800);
  font-variant-numeric:tabular-nums;
  color:var(--texte-2);
}
.cgt-jnl-picto{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  font-size:15px;
  background:var(--rub-plein);
  color:var(--rub-sur);
  box-shadow:2px 2px 0 0 var(--tranche);
}
.cgt-jnl-corps{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.cgt-jnl-action{
  font-size:var(--fs-15);
  font-weight:var(--fw-800);
  line-height:1.3;
  color:var(--texte);
  overflow-wrap:anywhere;
}
.cgt-jnl-objet{ font-weight:var(--fw-600); color:var(--texte-2); }
.cgt-jnl-ref{
  font-size:var(--fs-12);
  font-weight:var(--fw-700);
  font-variant-numeric:tabular-nums;
  color:var(--texte-indice);
}
.cgt-jnl-detail{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  font-size:var(--fs-13);
  line-height:1.4;
  color:var(--texte-2);
  overflow-wrap:anywhere;
}
.cgt-jnl-auteur{ font-size:var(--fs-13); line-height:1.35; color:var(--texte-3); }
.cgt-jnl-chevron{
  font-size:13px;
  color:var(--texte-indice);
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort), color var(--duree-2) var(--courbe-simple);
}

.cgt-jnl-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
}
.cgt-jnl-pagination-texte{
  margin:0;
  font-size:var(--fs-14);
  font-weight:var(--fw-600);
  color:var(--texte-2);
  font-variant-numeric:tabular-nums;
}
.cgt-jnl-pagination-texte strong{ font-weight:var(--fw-900); color:var(--texte); }
.cgt-jnl-pagination .cgt-msg-icone:disabled{
  opacity:.4;
  cursor:not-allowed;
  box-shadow:none;
  background:var(--papier);
  color:var(--texte);
  border-color:var(--bord-bouton-2);
}

/* Détail d'une entrée (petite boîte) */
.cgt-jnl-detail-titre.cgt-titre-modale{ display:flex; align-items:center; gap:12px; }
.cgt-jnl-detail-titre .cgt-jnl-picto{ width:36px; height:36px; font-size:14px; }
/* Le gabarit colore les icônes des titres de modale (.sm-modal-header h2 i) :
   dans le pavé de rubrique, l'icône garde la couleur posée sur l'aplat */
.cgt-jnl-detail-titre .cgt-jnl-picto i{ color:inherit; }
.cgt-jnl-sous-titre.cgt-libelle{ margin:20px 0 2px; }
.cgt-jnl-code{
  padding:2px 6px;
  font-family:var(--police-mono);
  font-size:var(--fs-12);
  font-weight:var(--fw-600);
  background:var(--papier-3);
  color:var(--texte);
}
.cgt-jnl-aucun{ margin:8px 0 0; font-size:var(--fs-14); color:var(--texte-3); }


/* ==========================================================================
   5. RECHERCHE JURIDIQUE — #search (page orpheline)
   ========================================================================== */
.cgt-rech-page{
  display:flex;
  flex-direction:column;
  gap:24px;
  width:100%;
  max-width:1400px;                 /* gabarit commun : l'en-tête ne saute plus (revue D) */
  margin:0 auto;
  padding:4px 0 16px;
  box-sizing:border-box;
  font-family:var(--police-texte);
  color:var(--texte);
}
/* La colonne de lecture se resserre, pas l'en-tête : formulaire et réponse à 820 px */
.cgt-rech-page > :not(.cgt-rech-entete){ width:100%; max-width:820px; }
.cgt-rech-titre.cgt-titre-ecran{ margin:0; }
.cgt-rech-chapo{ margin:14px 0 0; max-width:62ch; font-size:var(--fs-16); line-height:var(--lh-corps); color:var(--texte-2); }
.cgt-rech-carte.cgt-carte:not(#cgt){ display:flex; flex-direction:column; gap:18px; padding:22px 24px; }
.cgt-rech-carte .sm-form-group{ margin:0; }
.cgt-rech-carte :is(select, textarea){ width:100%; }
.cgt-rech-actions{ display:flex; justify-content:flex-end; }
.cgt-rech-attente{ display:flex; align-items:center; gap:12px; padding:18px 22px; color:var(--texte-3); font-weight:var(--fw-700); }
.cgt-rech-attente p{ margin:0; }
.cgt-rech-attente i{ font-size:20px; color:var(--accent-titre); }
.cgt-rech-reponse.cgt-carte:not(#cgt){ padding:22px 24px; }
.cgt-rech-texte{ font-size:var(--fs-16); line-height:var(--lh-para); color:var(--texte); overflow-wrap:anywhere; }
.cgt-rech-sources{ margin-top:18px; padding-top:14px; border-top:1px solid var(--filet); }
.cgt-rech-sources ul{ margin:8px 0 0; padding-left:20px; color:var(--texte-2); }


/* ==========================================================================
   6. RECHERCHE GLOBALE — pictogrammes de résultat (rubriques, plus de couleurs
      en dur). Le champ #sm-global-search n'est pas encore dans la coque.
   ========================================================================== */
.sm-search-result-icon[data-sup-rub]{
  background:var(--rub-plein);
  color:var(--rub-sur);
  border-radius:0;
  box-shadow:2px 2px 0 0 var(--tranche);
}


/* ==========================================================================
   7. RESPONSIVE — tablette (≤ 1024), téléphone (≤ 768), très étroit (≤ 340)
   ========================================================================== */
@media (max-width: 1024px){
  .cgt-gst-tuiles{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .cgt-stat-page .cgt-cpt-graphiques{ grid-template-columns:minmax(0, 1fr); }
}
@media (max-width: 768px){
  .cgt-eq-page, .cgt-gst-page{ gap:28px; padding:6px 0 12px; }
  .cgt-eq-grille{ grid-template-columns:minmax(0, 1fr); gap:18px; }
  .cgt-eq-carte{ gap:14px; padding:18px 16px 14px; }
  .cgt-eq-avatar.cgt-msg-avatar{ width:56px; height:56px; font-size:var(--fs-18); }
  .cgt-eq-carte--grande .cgt-eq-avatar.cgt-msg-avatar{ width:72px; height:72px; font-size:var(--fs-24); }
  .cgt-eq-nom{ font-size:var(--fs-18); }
  .cgt-eq-carte--grande .cgt-eq-nom{ font-size:var(--fs-20); }
  .cgt-eq-appeler.sm-btn{ display:inline-flex; }
  .cgt-eq-actions .sm-btn{ flex:1 1 0; justify-content:center; min-height:44px; }

  .cgt-gst-tuiles{ grid-template-columns:minmax(0, 1fr); gap:14px; }
  .cgt-gst-section{ gap:16px; }
  .cgt-gst-section-tete{ align-items:flex-start; gap:12px; }
  .cgt-gst-numero{ width:40px; height:40px; font-size:var(--fs-16); }
  .cgt-gst-tuile{ gap:14px; min-height:84px; padding:16px 14px 16px 16px; }
  .cgt-gst-picto{ width:44px; height:44px; font-size:18px; box-shadow:2px 2px 0 0 var(--tranche); }
  .cgt-gst-nom{ font-size:var(--fs-16); }
  .cgt-gst-desc{ font-size:var(--fs-13); }
  .sm-admin-badge.sm-admin-badge--carte{ top:-11px; right:12px; min-width:28px; height:28px; font-size:var(--fs-13); }

  .cgt-stat-detail.cgt-carte:not(#cgt){ padding:18px 16px 8px; }
  .cgt-stat-detail-colonnes{ grid-template-columns:minmax(0, 1fr); }
  .cgt-stat-detail-colonnes .cgt-cpt-fiche + .cgt-cpt-fiche{ border-top:1px solid var(--filet); }

  .cgt-jnl-page{ gap:20px; }
  .cgt-jnl-choix.cgt-adh-filtres-choix{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .cgt-jnl-liste{ gap:22px; }
  .cgt-jnl-ligne{ grid-template-columns:44px 34px minmax(0, 1fr) 12px; gap:10px; padding:12px 12px 12px 14px; }
  .cgt-jnl-picto{ width:34px; height:34px; font-size:13px; }
  .cgt-jnl-heure{ font-size:var(--fs-13); }
  .cgt-jnl-action{ font-size:var(--fs-14); }

  .cgt-rech-carte.cgt-carte:not(#cgt), .cgt-rech-reponse.cgt-carte:not(#cgt){ padding:18px 16px; }
  .cgt-rech-actions .sm-btn{ width:100%; justify-content:center; }
}
@media (max-width: 340px){
  .cgt-eq-carte{ grid-template-columns:minmax(0, 1fr); grid-template-areas:"avatar" "corps" "actions"; }
  .cgt-jnl-jour-titre span{ white-space:normal; }
}


/* ==========================================================================
   8. MOUVEMENT — la pastille « à traiter » se pose d'un coup de tampon.
      Seulement si le mouvement est permis (sinon aucune animation).
   ========================================================================== */
@media (prefers-reduced-motion: no-preference){
  .sm-admin-badge.sm-admin-badge--carte{
    animation:cgt-gst-tampon 420ms var(--courbe-tampon) 180ms backwards;
  }
}
@keyframes cgt-gst-tampon{
  from{ scale:1.7; opacity:0; }
  to{ scale:1; opacity:1; }
}
