/* ==========================================================================
   CGT-VIVEST — 49-evenements.css — ÉVÉNEMENTS (refonte-cgt, lots 07 + 08)
   --------------------------------------------------------------------------
   Balisage : assets/js/public.js — renderFormationsPage, renderEventsGrid,
   renderEventsCalendar, renderFormationCard(Mobile), renderWorkflowTracker,
   showFormationDetail, showCreateFormationModal / editFormation,
   showConvocationModal, showParticipationStats, les modales du lot (vote,
   votants, détails, sélection, clôture, évaluation, avis, suppression,
   « Bon à savoir », panneau « Filtrer ») et les ANCIENS écrans AG / réunions
   (renderAssemblies, renderMeetings, renderMeetingsAdmin…).
   Classes .cgt-evt-*, .cgt-parcours* ; AUCUN style en ligne, aucune couleur
   en dur hors des constantes de marque : clair et sombre suivent les jetons.

   Composition « affiche militante en 2,5D » :
   - titre d'écran de la charte (un mot en Besley italique rouge + barre
     100×4), tuiles de TYPE à tranche ;
   - chaque TYPE porte la couleur d'une RUBRIQUE de cgt.fr (même
     correspondance que le tableau de bord, lot 04) : formation = agenda
     (cyan), AG = communiqué (jaune), réunion = dossier (orange), social =
     pétition (rose). Posée par [data-evt-type] → variables --rub-* ;
   - cartes = affiches à tranche, filet de rubrique en tête, date en
     éphéméride, étiquette en Besley italique bas de casse (.taxonomy-style),
     statut en pastille (texte + pictogramme, jamais la couleur seule),
     parcours en carrés reliés ;
   - fiche : bandeau d'encre à filet de rubrique, éphéméride en autocollant,
     blocs qui « mordent » sur le bandeau.

   Poids : la peau des éléments qui portent aussi .cgt-carte (30-composants
   § 3, renfort :not(#cgt)) est posée ici au même poids, le fichier étant
   chargé après. !important seulement là où l'existant en met (modales du
   gabarit, .sm-show-mobile). Mouvement : transform / opacity uniquement
   (translate / scale / rotate), coupé par prefers-reduced-motion.
   ========================================================================== */


/* ==========================================================================
   0. RUBRIQUES — [data-evt-type] (valable partout : page, fiches, modales)
      --rub = aplat · --rub-sur = texte posé dessus · --rub-fort = teinte
      lisible en TEXTE sur papier · --rub-fond = fond teinté
   ========================================================================== */
[data-evt-type]{
  --rub:var(--picto-encre-fond); --rub-sur:var(--picto-encre-texte);
  --rub-fort:var(--texte-2); --rub-fond:var(--papier-3);
}
[data-evt-type="formation"]{ --rub:var(--t-agenda-plein); --rub-sur:var(--cgt-blanc); --rub-fort:var(--t-agenda-fort); --rub-fond:var(--t-agenda-fond); }
[data-evt-type="ag"]{ --rub:var(--t-communique); --rub-sur:var(--t-communique-sur); --rub-fort:var(--t-communique-fort); --rub-fond:var(--t-communique-fond); }
[data-evt-type="reunion"]{ --rub:var(--t-dossier-plein); --rub-sur:var(--cgt-blanc); --rub-fort:var(--t-dossier-fort); --rub-fond:var(--t-dossier-fond); }
[data-evt-type="social"]{ --rub:var(--t-petition); --rub-sur:var(--t-petition-sur); --rub-fort:var(--t-petition-fort); --rub-fond:var(--t-petition-fond); }

/* Pictogramme de rubrique : carré plein à tranche */
.cgt-evt-picto{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  background:var(--rub, var(--picto-encre-fond));
  color:var(--rub-sur, var(--picto-encre-texte));
  box-shadow:3px 3px 0 0 var(--tranche);
  font-size:18px;
  line-height:1;
}
.cgt-evt-picto i{ color:inherit; }

/* Pastille de STATUT : fond teinté + texte + pictogramme (jamais la couleur seule) */
.cgt-evt-statut{
  --st-fond:var(--papier-3); --st-texte:var(--texte-2); --st-bord:var(--filet-fort);
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  font-family:var(--police-texte);
  font-size:var(--fs-13);
  font-weight:var(--fw-800);
  line-height:1.25;
  background:var(--st-fond);
  color:var(--st-texte);
  border:1px solid var(--st-bord);
  box-shadow:2px 2px 0 0 var(--tranche);
}
.cgt-evt-statut i{ font-size:12px; color:inherit; }
.cgt-evt-statut[data-ton="alerte"]{ --st-fond:var(--alerte-fond); --st-texte:var(--alerte-fort); --st-bord:var(--alerte-bord); }
.cgt-evt-statut[data-ton="succes"]{ --st-fond:var(--succes-fond); --st-texte:var(--succes-texte); --st-bord:var(--succes-bord); }
.cgt-evt-statut[data-ton="info"]{ --st-fond:var(--info-fond); --st-texte:var(--info-texte); --st-bord:var(--info-bord); }
.cgt-evt-statut[data-ton="erreur"]{ --st-fond:var(--erreur-fond); --st-texte:var(--erreur-texte); --st-bord:var(--erreur-bord); }
/* « En cours » : l'événement qui se déroule, en rouge d'action (blanc 4,51) */
.cgt-evt-statut[data-ton="actif"]{ --st-fond:var(--action); --st-texte:var(--action-texte); --st-bord:var(--action-bas); box-shadow:2px 2px 0 0 var(--tranche-rouge); }

/* Réponse de la personne connectée (texte + pictogramme) */
.cgt-evt-reponse{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:0;
  font-size:var(--fs-14);
  font-weight:var(--fw-800);
  line-height:1.3;
  color:var(--texte-2);
}
.cgt-evt-reponse i{ color:inherit; }
.cgt-evt-reponse[data-ton="succes"]{ color:var(--succes-texte); }
.cgt-evt-reponse[data-ton="info"]{ color:var(--info-texte); }
.cgt-evt-reponse[data-ton="neutre"]{ color:var(--texte-3); }

/* « Conseillé » : autocollant jaune (texte noir 8,28) */
.cgt-evt-conseille{
  display:inline-block;
  padding:2px 8px;
  background:var(--cgt-jaune);
  color:var(--sur-jaune);
  font-size:var(--fs-11);
  font-weight:var(--fw-900);
  line-height:1.4;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  box-shadow:2px 2px 0 0 var(--tranche);
  rotate:-2deg;
}

/* Éphéméride (même motif que le tableau de bord, 47-tableau.css) */
.cgt-evt-date{
  flex:none;
  display:flex;
  flex-direction:column;
  width:64px;
  text-align:center;
  background:var(--papier);
  border:2px solid var(--rub, var(--texte));
  box-shadow:3px 3px 0 0 var(--tranche);
}
.cgt-evt-date-mois{
  display:block;
  padding:3px 0 2px;
  background:var(--rub, var(--texte));
  color:var(--rub-sur, var(--papier));
  font-size:var(--fs-11);
  font-weight:var(--fw-900);
  line-height:1.3;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
}
.cgt-evt-date-jour{
  display:block;
  padding:6px 0 5px;
  font-size:30px;
  font-weight:var(--fw-900);
  line-height:1;
  font-variant-numeric:tabular-nums;
  color:var(--texte);
}
.cgt-evt-date-fin{
  display:block;
  padding:0 3px 6px;
  font-size:var(--fs-11);
  font-weight:var(--fw-700);
  line-height:1.2;
  color:var(--texte-3);
}

/* Jauge (élément <progress> : aucune largeur en ligne) — piste carrée, rouge */
.cgt-evt-jauge{
  -webkit-appearance:none;
  appearance:none;
  display:block;
  width:120px;
  height:8px;
  border:0;
  border-radius:0;
  background:var(--piste);
  color:var(--action);
  box-shadow:var(--relief-creux);
  overflow:hidden;
  /* Passe C (tour 2, ADH-06) : la piste vide se distinguait à peine de la carte (1,12:1 en
     clair, 1,34:1 en sombre) : filet fort autour, piste propre à chaque thème. */
  outline:1px solid var(--bord-champ);   /* 3,57:1 (clair) et 4,8:1 (sombre) contre la carte */
  outline-offset:0;
  background:var(--jauge-piste, var(--piste));
}
/* Sombre : piste plus creuse que la carte, le remplissage rouge passe de 2,55:1 à 3,7:1 */
:root[data-theme="dark"] .cgt-evt-jauge{ --jauge-piste:#16191C; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .cgt-evt-jauge{ --jauge-piste:#16191C; } }
.cgt-evt-jauge::-webkit-progress-bar{ background:var(--jauge-piste, var(--piste)); border-radius:0; }
.cgt-evt-jauge::-webkit-progress-value{ background:var(--action); border-radius:0; }
.cgt-evt-jauge::-moz-progress-bar{ background:var(--action); border-radius:0; }

/* Notes en étoiles : jaune de la charte (décor), la valeur chiffrée à côté */
.cgt-evt-note{ display:inline-flex; align-items:center; gap:8px; margin:0; line-height:1; }
.cgt-evt-note-valeur{ font-size:var(--fs-18); font-weight:var(--fw-900); color:var(--texte); font-variant-numeric:tabular-nums; }
.cgt-evt-etoiles{ font-size:15px; letter-spacing:1px; color:var(--cgt-jaune-600); }
.cgt-evt-etoiles-vides{ color:var(--texte-desactive); }
.cgt-evt-note-avis{ font-size:var(--fs-12); font-weight:var(--fw-600); color:var(--texte-3); }


/* ==========================================================================
   1. PAGE — conteneur, titre d'écran, barre (situations, année, vues)
   ========================================================================== */
.cgt-evt-page{
  display:flex;
  flex-direction:column;
  gap:28px;
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding:4px 0 8px;
  box-sizing:border-box;
  font-family:var(--police-texte);
  color:var(--texte);
}
.cgt-evt-page *, .cgt-evt-page *::before, .cgt-evt-page *::after{ box-sizing:border-box; }

.cgt-evt-entete{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px 28px;
}
.cgt-evt-entete .cgt-evt-titre-ecran{ margin:0; }
.cgt-evt-chapo{
  margin:14px 0 0;
  max-width:62ch;
  font-size:var(--fs-16);
  line-height:var(--lh-corps);
  color:var(--texte-2);
}
.cgt-evt-entete-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  padding-bottom:6px;
}

.cgt-evt-barre{
  display:flex;
  align-items:flex-end;
  gap:16px 24px;
  min-width:0;
}
.cgt-evt-situations.sm-formations-tabs{ flex:1 1 auto; min-width:0; margin:0; }
.cgt-evt-situations .sm-formations-tab:not(#cgt){
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 18px 14px;
  font-size:var(--fs-15);
  line-height:1.2;
}
.cgt-evt-outils{
  flex:none;
  display:flex;
  align-items:center;
  gap:12px;
  padding-bottom:8px;
}
.cgt-evt-annee select.sm-input{
  width:auto;
  min-width:96px;
  height:40px;
  padding-top:0;
  padding-bottom:0;
  padding-left:12px;   /* revue finale : « 2026 » collait au filet (aucune règle .sm-input ne l'atteint ici) */
  font-weight:var(--fw-700);
}
/* Bascule cartes / calendrier : deux carrés accolés, l'actif à l'encre */
.cgt-evt-vues{
  display:inline-flex;
  box-shadow:3px 3px 0 0 var(--tranche-bouton);
}
.cgt-evt-vue{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:40px;
  margin:0;
  padding:0;
  background:var(--papier);
  color:var(--texte-2);
  border:2px solid var(--bord-bouton-2);
  border-radius:0;
  font-size:16px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.cgt-evt-vue + .cgt-evt-vue{ margin-left:-2px; }
.cgt-evt-vue.active{ background:var(--texte); color:var(--papier); }
@media (hover: hover){ .cgt-evt-vue:not(.active):hover{ background:var(--papier-3); color:var(--texte); } }
.cgt-evt-vue:focus-visible{ outline:2px solid var(--focus); outline-offset:2px; position:relative; z-index:1; }


/* ==========================================================================
   2. TUILES DE TYPE — filtre (bouton pressé), chiffre animé
   ========================================================================== */
.cgt-evt-types{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:18px;
  margin-top:-6px;
}
.cgt-evt-type{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  margin:0;
  padding:18px 16px 16px 18px;
  font-family:var(--police-texte);
  text-align:left;
  color:var(--texte);
  background:var(--papier);
  border:1px solid var(--filet);
  border-radius:0;
  box-shadow:var(--relief-1);
  cursor:pointer;
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort);
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
/* Filet de rubrique en tête (barre thématique de cgt.fr) */
.cgt-evt-type::before{
  content:"";
  position:absolute;
  top:-1px; left:-1px; right:-1px;
  height:4px;
  background:var(--rub);
}
.cgt-evt-type-nombre{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  height:52px;
  padding:0 8px;
  background:var(--rub);
  color:var(--rub-sur);
  box-shadow:3px 3px 0 0 var(--tranche);
  font-size:var(--fs-28);
  font-weight:var(--fw-900);
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.cgt-evt-type-libelle{
  min-width:0;
  font-size:var(--fs-16);
  font-weight:var(--fw-700);
  line-height:1.2;
  color:var(--texte-2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (hover: hover){
  .cgt-evt-type:hover{ translate:-2px -2px; box-shadow:var(--relief-1-survol); border-color:var(--filet-fort); }
}
.cgt-evt-type:active{ translate:2px 2px; box-shadow:var(--relief-filet); transition-duration:0ms; }
/* Tuile choisie : contour d'encre, filet épais, tranche à la couleur de la rubrique */
.cgt-evt-type.active{
  border:2px solid var(--texte);
  padding:17px 15px 15px 17px;
  box-shadow:5px 5px 0 0 var(--rub), 8px 12px 22px 0 var(--ombre-bouton);
}
.cgt-evt-type.active::before{ top:-2px; left:-2px; right:-2px; height:8px; }
.cgt-evt-type.active .cgt-evt-type-libelle{ color:var(--texte); font-weight:var(--fw-800); }
.cgt-evt-type:focus-visible{ outline:2px solid var(--focus); outline-offset:4px; }


/* ==========================================================================
   3. GRILLE ET CARTES D'ÉVÉNEMENT
   ========================================================================== */
.cgt-evt-contenu{ min-width:0; }
.cgt-evt-grille{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:26px 28px;
  align-items:stretch;
}
@media (min-width: 1280px){
  .cgt-evt-grille{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
/* Anciens écrans AG (revue A) : sections d'une carte côte à côte, sections de
   plusieurs cartes sur toute la largeur (renderAssemblies). */
.cgt-evt-sections-ag{ display:flex; flex-direction:column; gap:28px; min-width:0; }
@media (min-width: 1280px){
  .cgt-evt-sections-ag{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:32px 28px; align-items:start; }
  .cgt-evt-sections-ag > .cgt-evt-section--large{ grid-column:1 / -1; }
  .cgt-evt-sections-ag > .cgt-evt-section:not(.cgt-evt-section--large) .cgt-evt-grille{ grid-template-columns:minmax(0, 1fr); }
}

.cgt-evt-carte{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:0;
}
/* Filet de rubrique en tête (pseudo-élément : le survol de .cgt-carte ne l'efface pas) */
.cgt-evt-carte::before{
  content:"";
  position:absolute;
  top:-1px; left:-1px; right:-1px;
  height:5px;
  background:var(--rub);
  pointer-events:none;
}
/* « À traiter » : bande jaune sur le bord gauche (la pastille de statut le dit en texte) */
.cgt-evt-carte.cgt-evt--a-traiter::after{
  content:"";
  position:absolute;
  top:4px; bottom:-1px; left:-1px;
  width:6px;
  background:var(--cgt-jaune);
  pointer-events:none;
}
/* Lien profond (#trainings/<id>) : la carte « clignote » en jaune, sans animer l'ombre */
.cgt-evt-carte.sm-highlight{
  animation:none !important;
  outline:4px solid var(--cgt-jaune);
  outline-offset:4px;
}

.cgt-evt-tete{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  align-items:start;
  gap:18px;
  padding:24px 22px 18px 24px;
}
.cgt-evt-corps{ min-width:0; }
.cgt-evt-etiquettes{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 12px;
  margin:0 0 4px;
}
/* Étiquette de rubrique : Besley italique, bas de casse (.taxonomy-style de cgt.fr) */
.cgt-evt-rubrique{
  font-family:var(--police-accent);
  font-style:italic;
  font-weight:var(--fw-accent);
  font-size:var(--fs-16);
  line-height:1.3;
  letter-spacing:var(--ls-etiquette);
  text-transform:lowercase;
  color:var(--rub-fort);
}
.cgt-evt-titre{
  margin:0;
  font-family:var(--police-texte);
  font-size:var(--fs-20);
  font-weight:var(--fw-800);
  line-height:1.25;
  letter-spacing:var(--ls-titre);
  color:var(--texte);
  overflow-wrap:anywhere;
}
.cgt-evt-titre a{
  color:inherit;
  text-decoration:none;
  text-decoration-thickness:3px;
  text-underline-offset:.22em;
  text-decoration-color:var(--jaune-accent);
}
@media (hover: hover){ .cgt-evt-carte:hover .cgt-evt-titre a{ text-decoration-line:underline; } }
.cgt-evt-titre a:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; text-decoration-line:underline; }
.cgt-evt-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px 18px;
  margin:10px 0 0;
  padding:0;
  list-style:none;
  font-size:var(--fs-14);
  line-height:1.35;
  color:var(--texte-2);
}
.cgt-evt-meta li{ display:inline-flex; align-items:center; gap:7px; min-width:0; }
.cgt-evt-meta i, .cgt-evt-lieu i{ font-size:13px; color:var(--texte-3); }
.cgt-evt-lieu{
  display:flex;
  align-items:baseline;
  gap:7px;
  margin:6px 0 0;
  font-size:var(--fs-13);
  line-height:1.35;
  color:var(--texte-2);
}
.cgt-evt-admin{ display:flex; gap:10px; }

/* Bande d'état : statut + informations */
.cgt-evt-etat{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 18px;
  padding:13px 22px 13px 24px;
  background:var(--papier-2);
  border-top:1px solid var(--filet);
}
.cgt-evt-etat-info{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 16px;
  font-size:var(--fs-13);
  font-weight:var(--fw-600);
  line-height:1.3;
  color:var(--texte-3);
}
.cgt-evt-urgent{ display:inline-flex; align-items:center; gap:6px; color:var(--erreur-texte); font-weight:var(--fw-800); }
.cgt-evt-remplissage{ display:inline-flex; align-items:center; gap:10px; }

/* Parcours : carrés reliés */
.cgt-evt-parcours-zone{
  padding:18px 22px 16px 24px;
  border-top:1px solid var(--filet);
}
.cgt-parcours{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  margin:0;
  padding:0;
  list-style:none;
}
.cgt-parcours-etape{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  min-width:0;
  text-align:center;
}
/* Trait vers l'étape précédente */
.cgt-parcours-etape + .cgt-parcours-etape::before{
  content:"";
  position:absolute;
  top:14px;
  right:50%;
  width:100%;
  height:2px;
  background:var(--filet-fort);
}
.cgt-parcours-etape:is([data-etat="fait"], [data-etat="actif"]) + .cgt-parcours-etape:is([data-etat="fait"], [data-etat="actif"])::before{ background:var(--texte); height:3px; top:13px; }
.cgt-parcours-marque{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  font-size:12px;
  background:var(--papier);
  color:var(--texte-3);
  border:2px solid var(--filet-fort);
}
.cgt-parcours-etape[data-etat="fait"] .cgt-parcours-marque{
  background:var(--texte);
  color:var(--papier);
  border-color:var(--texte);
}
.cgt-parcours-etape[data-etat="actif"] .cgt-parcours-marque{
  background:var(--action);
  color:var(--action-texte);
  border-color:var(--action-bas);
  box-shadow:3px 3px 0 0 var(--tranche-rouge);
  scale:1.12;
}
.cgt-parcours-libelle{
  font-size:var(--fs-11);
  font-weight:var(--fw-800);
  line-height:1.2;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--texte-3);
  overflow-wrap:anywhere;
}
.cgt-parcours-etape[data-etat="fait"] .cgt-parcours-libelle{ color:var(--texte-2); }
.cgt-parcours-etape[data-etat="actif"] .cgt-parcours-libelle{ color:var(--texte); }

/* Pied : participants + actions */
.cgt-evt-pied{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px 18px;
  margin-top:auto;
  padding:15px 22px 20px 24px;
  border-top:1px solid var(--filet);
}
.cgt-evt-participants{ display:inline-flex; align-items:center; gap:10px; }
.cgt-evt-pastilles{ display:inline-flex; padding-left:8px; }
.cgt-evt-pastille{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:28px;
  margin-left:-8px;
  padding:0 4px;
  border:2px solid var(--papier);
  border-radius:var(--rayon-rond);
  background:var(--rub);
  color:var(--rub-sur);
  font-size:var(--fs-11);
  font-weight:var(--fw-800);
}
.cgt-evt-pastille:nth-child(3n+2){ background:var(--texte); }
.cgt-evt-pastille:nth-child(3n+3){ background:var(--gris-6); }
.cgt-evt-pastille--plus.cgt-evt-pastille{ background:var(--papier-3); color:var(--texte); border-radius:var(--rayon-pilule); }
.cgt-evt-participants-nombre, .cgt-evt-personne{ font-size:var(--fs-13); font-weight:var(--fw-700); color:var(--texte-3); }
.cgt-evt-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:10px 12px;
}
.cgt-evt-actions-gestion{
  display:inline-flex;
  flex-wrap:wrap;
  gap:10px;
  padding-left:14px;
  border-left:1px solid var(--filet-fort);
}

/* ---- Carte mobile (≤ 768 px) : compacte, trois chiffres ---- */
.cgt-evt-carte--mobile .cgt-evt-tete{
  gap:14px;
  padding:18px 14px 14px 16px;
}
.cgt-evt-carte--mobile .cgt-evt-date{ width:56px; }
.cgt-evt-carte--mobile .cgt-evt-date-jour{ font-size:24px; padding:5px 0 4px; }
.cgt-evt-carte--mobile .cgt-evt-titre{ font-size:var(--fs-18); }
.cgt-evt-carte--mobile .cgt-evt-rubrique{ font-size:var(--fs-15); }
.cgt-evt-carte--mobile .cgt-evt-admin{ flex-direction:column; gap:8px; }
.cgt-evt-chiffres{
  display:grid;
  /* Passe C (S07, DEL-06, ADM-T1-12) : 2e colonne élargie — « PARTICIPANT·ES » (98 px en
     capitales espacées) débordait de ses 77 px et touchait « STATUT ». */
  grid-template-columns:minmax(0, .75fr) minmax(0, 1.2fr) minmax(0, 1.25fr);
  margin:0;
  background:var(--papier-2);
  border-top:1px solid var(--filet);
}
.cgt-evt-chiffres > div{ min-width:0; padding:10px 10px 12px 12px; }
.cgt-evt-chiffres > div + div{ border-left:1px solid var(--filet); }
.cgt-evt-chiffres dt{
  font-size:var(--fs-11);
  font-weight:var(--fw-800);
  line-height:1.2;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--texte-3);
}
.cgt-evt-chiffres dd{
  margin:5px 0 0;
  font-size:var(--fs-15);
  font-weight:var(--fw-800);
  line-height:1.25;
  color:var(--texte);
  font-variant-numeric:tabular-nums;
}
.cgt-evt-chiffre-statut .cgt-evt-statut{ padding:3px 7px; font-size:var(--fs-12); box-shadow:none; }
.cgt-evt-carte--mobile .cgt-evt-actions{
  justify-content:stretch;
  padding:14px 14px 16px 16px;
  border-top:1px solid var(--filet);
}
.cgt-evt-carte--mobile .cgt-evt-actions > .sm-btn:not(.sm-btn-link){ flex:1 1 0; min-width:0; }
.cgt-evt-carte--mobile .cgt-evt-actions > .cgt-evt-reponse{ flex:1 1 auto; }
.cgt-evt-carte--mobile .cgt-evt-note{ flex:1 1 auto; }
/* 3.0.0-beta.47 (vérification de nuit, ADH-05) : hors mobile, la carte d'une AG pose ses
   actions directement dans l'article (sans .cgt-evt-pied) : mêmes marges et même filet que
   le pied des autres cartes, au lieu d'un bouton collé au coin bas-droit. */
.cgt-evt-carte[data-evt-type="ag"]:not(.cgt-evt-carte--mobile) > .cgt-evt-actions{
  margin-top:auto;
  padding:15px 22px 20px 24px;
  border-top:1px solid var(--filet);
}

.cgt-evt-pagination{ justify-content:center; align-items:center; margin-top:26px; }
.cgt-evt-pagination-info{ padding:0 10px; font-size:var(--fs-14); font-weight:var(--fw-700); color:var(--texte-2); }

/* États vides de la page (composant .sm-empty-state : pinceau tracé) */
.cgt-evt-vide.sm-empty-state{ padding:48px 16px 28px; }
.cgt-evt-vide.sm-empty-state p{ margin:6px 0 0; }


/* ==========================================================================
   4. CALENDRIER — douze mois en cartes, jours à la couleur de la rubrique
   ========================================================================== */
.cgt-evt-calendrier{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:20px;
}
@media (max-width: 1200px){ .cgt-evt-calendrier{ grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px){ .cgt-evt-calendrier{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; } }
@media (max-width: 560px){ .cgt-evt-calendrier{ grid-template-columns:minmax(0, 1fr); } }
.cgt-evt-mois{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:132px;
  background:var(--papier);
  border:1px solid var(--filet);
  box-shadow:var(--relief-1);
}
.cgt-evt-mois--vide{ background:transparent; border-style:dashed; border-color:var(--filet-fort); box-shadow:none; }
.cgt-evt-mois--vide .cgt-evt-mois-tete{ border-bottom-style:dashed; }
.cgt-evt-mois--vide .cgt-evt-mois-nom{ color:var(--texte-2); }
.cgt-evt-mois--courant{ border-top:4px solid var(--cgt-rouge); }
.cgt-evt-mois-tete{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px 10px;
  border-bottom:1px solid var(--filet);
}
.cgt-evt-mois-nom{
  margin:0;
  font-family:var(--police-texte);
  font-size:var(--fs-16);
  font-weight:var(--fw-800);
  line-height:1.2;
  color:var(--texte);
}
.cgt-evt-mois--courant .cgt-evt-mois-nom{
  font-family:var(--police-accent);
  font-style:italic;
  font-weight:var(--fw-accent);
  font-size:var(--fs-18);
  /* Passe C : 18 px n'est pas du grand texte ; --accent-titre (#F03E3E, 3,46:1 sur la
     table) est réservé aux mots d'accent de 24 px et plus → rouge texte --lien (5,46:1). */
  color:var(--lien);
}
.cgt-evt-mois-nombre{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:var(--rayon-pilule);
  background:var(--texte);
  color:var(--papier);
  font-size:var(--fs-12);
  font-weight:var(--fw-800);
  font-variant-numeric:tabular-nums;
}
.cgt-evt-mois-liste{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0;
  padding:10px;
  list-style:none;
}
.cgt-evt-cal{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  margin:0;
  padding:7px 8px 7px 7px;
  font-family:var(--police-texte);
  text-align:left;
  color:var(--texte);
  background:var(--papier);
  border:1px solid var(--filet-fort);
  border-radius:0;
  cursor:pointer;
  translate:0 0;
  transition:translate var(--duree-2) var(--courbe-ressort);
  -webkit-tap-highlight-color:transparent;
}
@media (hover: hover){ .cgt-evt-cal:hover{ border-color:var(--texte); translate:-1px -1px; box-shadow:2px 2px 0 0 var(--tranche); } }
.cgt-evt-cal:active{ translate:1px 1px; box-shadow:none; transition-duration:0ms; }
.cgt-evt-cal:focus-visible{ outline:2px solid var(--focus); outline-offset:2px; }
.cgt-evt-cal-jour{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  background:var(--rub);
  color:var(--rub-sur);
  font-size:var(--fs-14);
  font-weight:var(--fw-900);
  font-variant-numeric:tabular-nums;
  box-shadow:2px 2px 0 0 var(--tranche);
}
.cgt-evt-cal-texte{ display:flex; flex-direction:column; min-width:0; }
.cgt-evt-cal-type{
  font-family:var(--police-accent);
  font-style:italic;
  font-weight:var(--fw-accent);
  font-size:var(--fs-13);
  line-height:1.2;
  letter-spacing:var(--ls-etiquette);
  text-transform:lowercase;
  color:var(--rub-fort);
}
.cgt-evt-cal-titre{
  font-size:var(--fs-13);
  font-weight:var(--fw-700);
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.cgt-evt-cal[data-status="completed"] .cgt-evt-cal-titre{ color:var(--texte-3); }
.cgt-evt-mois-rien{
  margin:auto;
  padding:14px;
  font-size:var(--fs-13);
  color:var(--texte-indice);
  text-align:center;
}


/* ==========================================================================
   5. MOBILE (≤ 768 px) — tuiles et onglets défilants, boutons flottants
   ========================================================================== */
.cgt-evt-flottants{ display:none; }
@media (max-width: 768px){
  .cgt-evt-page{ gap:18px; padding:2px 0 96px; }
  /* Revue finale : le titre d'écran reste VISIBLE sur téléphone (règle du socle,
     10-theme.css) — il n'est plus masqué ici. */
  .cgt-evt-page:not(.cgt-evt-page--gestion) .cgt-evt-entete{ display:contents; }
  .cgt-evt-entete-actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    width:100%;
    gap:12px;
    padding:0 4px 0 0;
  }
  .cgt-evt-entete-actions .sm-btn{ min-width:0; padding-left:10px; padding-right:10px; }

  .cgt-evt-barre{ display:block; }
  .cgt-evt-situations .sm-formations-tab:not(#cgt){ padding:11px 14px 13px; font-size:var(--fs-14); }
  /* Mobile : l'année se choisit dans le panneau « Filtrer » (bouton flottant) et
     la vue reste en cartes, comme avant la refonte. */
  .cgt-evt-outils{ display:none; }

  .cgt-evt-types{
    display:flex;
    gap:12px;
    margin:0;
    padding:6px 6px 12px 0;
    overflow-x:auto;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .cgt-evt-types::-webkit-scrollbar{ display:none; }
  .cgt-evt-type{
    flex:none;
    gap:10px;
    padding:12px 14px 10px 10px;
    scroll-snap-align:start;
    box-shadow:3px 3px 0 0 var(--tranche);
  }
  .cgt-evt-type.active{ padding:11px 13px 9px 9px; box-shadow:4px 4px 0 0 var(--rub); }
  .cgt-evt-type-nombre{ min-width:38px; height:38px; padding:0 6px; font-size:var(--fs-20); box-shadow:2px 2px 0 0 var(--tranche); }
  .cgt-evt-type-libelle{ font-size:var(--fs-14); }

  .cgt-evt-grille{ gap:20px; }

  .cgt-evt-flottants{
    position:fixed;
    right:calc(16px + env(safe-area-inset-right, 0px));
    bottom:calc(64px + 16px + env(safe-area-inset-bottom, 0px));
    z-index:900;
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  .cgt-evt-flottant{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:48px;
    height:48px;
    margin:0;
    padding:0;
    background:var(--papier);
    color:var(--texte);
    border:2px solid var(--bord-bouton-2);
    border-radius:0;
    box-shadow:3px 3px 0 0 var(--tranche-bouton), 6px 10px 20px 0 var(--ombre-bouton);
    font-size:18px;
    cursor:pointer;
    translate:0 0;
    transition:translate var(--duree-3) var(--courbe-ressort);
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  .cgt-evt-flottant:active{ translate:3px 3px; box-shadow:0 0 0 0 var(--tranche-bouton); transition-duration:0ms; }
  .cgt-evt-flottant:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; }
}


/* ==========================================================================
   6. PANNEAU « FILTRER » (mobile) et MODALE « BON À SAVOIR »
   ========================================================================== */
/* Au-dessus des onglets du bas de la coque (z-index 9990) */
.sm-bottom-sheet-overlay.cgt-evt-filtres-voile{ z-index:10001; }
.sm-bottom-sheet.cgt-evt-filtres{ z-index:10002; max-height:86vh; }
.cgt-evt-filtres .sm-bottom-sheet-header{ padding:0 18px 14px; }
.cgt-evt-filtres .sm-bottom-sheet-header h4:not(#cgt){
  margin:0;
  font-size:var(--fs-24);
  font-weight:var(--fw-400);
  line-height:1.15;
  letter-spacing:var(--ls-accent);
}
.cgt-evt-filtres .sm-bottom-sheet-content{ padding:18px; max-height:calc(86vh - 170px); }
.cgt-evt-filtre-groupe{ margin:0 0 20px; padding:0; border:0; min-width:0; }
.cgt-evt-filtre-groupe:last-child{ margin-bottom:0; }
.cgt-evt-filtre-groupe legend{ margin:0 0 8px; padding:0; }
.cgt-evt-filtre-groupe legend small{ font-weight:var(--fw-600); text-transform:none; letter-spacing:0; }
.cgt-evt-filtre-lignes{ display:flex; flex-direction:column; border:1px solid var(--filet-fort); }
.cgt-evt-filtre-ligne{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:50px;
  padding:10px 14px;
  border-bottom:1px solid var(--filet);
  border-left:4px solid transparent;
  cursor:pointer;
}
.cgt-evt-filtre-ligne:last-child{ border-bottom:0; }
.cgt-evt-filtre-ligne input{ width:18px; height:18px; margin:0; accent-color:var(--action); }
.cgt-evt-filtre-libelle{ flex:1 1 auto; font-size:var(--fs-15); font-weight:var(--fw-700); color:var(--texte); }
.cgt-evt-filtre-nombre{
  padding:1px 9px;
  border-radius:var(--rayon-pilule);
  background:var(--papier-3);
  color:var(--texte-2);
  font-size:var(--fs-12);
  font-weight:var(--fw-800);
  font-variant-numeric:tabular-nums;
}
.cgt-evt-filtre-ligne:has(input:checked){ background:var(--primaire-teinte); border-left-color:var(--cgt-rouge); }

.cgt-evt-savoir{ display:flex; align-items:flex-start; gap:16px; }
.cgt-evt-savoir-titre{
  margin:2px 0 6px;
  font-family:var(--police-texte);
  font-size:var(--fs-18);
  font-weight:var(--fw-800);
  line-height:1.3;
  color:var(--texte);
}
.cgt-evt-savoir p{ margin:0; font-size:var(--fs-15); line-height:var(--lh-para); color:var(--texte-2); }


/* ==========================================================================
   7. FICHE D'ÉVÉNEMENT (pleine page) — bandeau d'encre, blocs à tranche
   ========================================================================== */
.sm-fullpage-modal.cgt-evt-fiche{
  display:block;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  font-family:var(--police-texte);
  color:var(--texte);
}
.sm-fullpage-modal.cgt-evt-fiche.active{ animation:cgt-pleine-page-entree 360ms var(--courbe-sortie) backwards; }
.cgt-evt-fiche *, .cgt-evt-fiche *::before, .cgt-evt-fiche *::after{ box-sizing:border-box; }

/* Barre collante : retour + statut */
.cgt-evt-fiche-barre{
  position:sticky;
  top:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px max(24px, calc((100% - 1200px) / 2)) 12px;
  padding-top:calc(14px + env(safe-area-inset-top, 0px));
  background:var(--bande);
  color:var(--bande-texte);
}
.cgt-evt-retour{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin:0;
  padding:0;
  background:transparent;
  color:var(--bande-texte);
  border:2px solid var(--bande-texte-2);
  border-radius:0;
  box-shadow:3px 3px 0 0 var(--rub, var(--cgt-rouge));
  font-size:17px;
  cursor:pointer;
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort);
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
@media (hover: hover){ .cgt-evt-retour:hover{ background:rgba(255,255,255,.10); } }
.cgt-evt-retour:active{ translate:3px 3px; box-shadow:0 0 0 0 var(--rub, var(--cgt-rouge)); transition-duration:0ms; }
.cgt-evt-retour:focus-visible{ outline:2px solid var(--cgt-jaune); outline-offset:3px; }

/* L'affiche : encre (pied de page de cgt.fr) à filet de rubrique */
.cgt-evt-fiche-tete{
  background:var(--bande);
  color:var(--bande-texte);
  border-bottom:6px solid var(--rub);
  padding:6px 24px 52px;
}
.cgt-evt-fiche-affiche{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  max-width:1200px;
  margin:0 auto;
}
.cgt-evt-fiche-texte{ min-width:0; }
.cgt-evt-fiche-etiquettes{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
  margin:0 0 14px;
}
.cgt-evt-fiche-type{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 11px;
  background:var(--rub);
  color:var(--rub-sur);
  font-size:var(--fs-12);
  font-weight:var(--fw-900);
  line-height:1.3;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  box-shadow:3px 3px 0 0 var(--gris-7);
}
.cgt-evt-fiche-type i{ color:inherit; }
.cgt-evt-fiche-titre{
  margin:0;
  max-width:28ch;
  font-family:var(--police-texte);
  font-size:clamp(1.625rem, 1.1rem + 2vw, 2.75rem);
  font-weight:var(--fw-900);
  line-height:1.08;
  letter-spacing:-.02em;
  color:var(--bande-texte);
  overflow-wrap:anywhere;
}
.cgt-evt-fiche-meta{ margin:12px 0 0; font-size:var(--fs-15); font-weight:var(--fw-600); color:var(--bande-texte-2); }
/* Éphéméride en autocollant sur l'encre : papier blanc CONSTANT */
.cgt-evt-fiche-tete .cgt-evt-date{
  width:96px;
  background:var(--cgt-blanc);
  border-color:var(--rub);
  box-shadow:6px 6px 0 0 var(--rub);
  rotate:3deg;
}
.cgt-evt-fiche-tete .cgt-evt-date-mois{ font-size:var(--fs-13); padding:5px 0 4px; }
.cgt-evt-fiche-tete .cgt-evt-date-jour{ font-size:46px; padding:8px 0 6px; color:var(--cgt-noir); }
.cgt-evt-fiche-tete .cgt-evt-date-fin{ color:var(--gris-7); font-size:var(--fs-12); padding-bottom:8px; }

/* Corps : deux colonnes, les blocs « mordent » sur le bandeau */
.cgt-evt-fiche-corps{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0, 1fr) 360px;
  align-items:start;
  gap:24px 28px;
  max-width:1248px;
  margin:-30px auto 0;
  padding:0 24px calc(48px + env(safe-area-inset-bottom, 0px));
}
.cgt-evt-fiche-principal, .cgt-evt-fiche-cote{ display:flex; flex-direction:column; gap:24px; min-width:0; }

.cgt-evt-bloc{ padding:22px 24px 24px; }
.cgt-evt-bloc-titre{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  font-family:var(--police-texte);
  font-size:var(--fs-13);
  font-weight:var(--fw-900);
  line-height:1.2;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--texte);
}
.cgt-evt-bloc-titre::before{
  content:"";
  flex:none;
  width:12px;
  height:12px;
  background:var(--rub, var(--cgt-rouge));
  box-shadow:2px 2px 0 0 var(--tranche);
}
.cgt-evt-bloc-aide{ margin:14px 0 0; font-size:var(--fs-14); line-height:var(--lh-corps); color:var(--texte-3); }
.cgt-evt-bloc-titre + .cgt-evt-bloc-aide{ margin-top:0; }
.cgt-evt-bloc--pratique.cgt-carte:not(#cgt){ border-left:6px solid var(--cgt-jaune); }
.cgt-evt-texte-long{
  margin:0;
  white-space:pre-line;
  font-size:var(--fs-16);
  line-height:var(--lh-intro);
  color:var(--texte-2);
  overflow-wrap:anywhere;
}

.cgt-evt-infos{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px 24px;
  margin:0;
}
.cgt-evt-info{
  display:grid;
  grid-template-columns:44px minmax(0, 1fr);
  column-gap:14px;
  align-items:center;
}
.cgt-evt-info .cgt-evt-picto{
  grid-row:1 / span 2;
  background:var(--rub-fond, var(--papier-3));
  color:var(--rub-fort, var(--texte));
  border:2px solid var(--rub, var(--texte));
  box-shadow:3px 3px 0 0 var(--tranche);
  font-size:17px;
}
.cgt-evt-info dt{
  grid-column:2;
  font-size:var(--fs-12);
  font-weight:var(--fw-800);
  line-height:1.2;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--texte-3);
}
.cgt-evt-info dd{
  grid-column:2;
  margin:3px 0 0;
  font-size:var(--fs-15);
  font-weight:var(--fw-700);
  line-height:1.35;
  color:var(--texte);
  overflow-wrap:anywhere;
}
.cgt-evt-fiche .cgt-parcours{ margin-top:4px; }

/* Vote */
.cgt-evt-vote{ display:grid; gap:14px; margin-top:16px; }
.cgt-evt-bloc--vote .cgt-evt-reponse{ margin-bottom:2px; }
/* Réponse déjà donnée : le bouton reste « tamponné » (enfoncé dans sa tranche) */
.sm-btn.cgt-evt-choisi:not(#cgt){
  --b-leve:0;
  translate:var(--b-decal) var(--b-decal);
  outline:2px solid var(--texte);
  outline-offset:3px;
}

.cgt-evt-duo{ display:flex; align-items:stretch; gap:12px; }
.cgt-evt-duo--fleche{ align-items:center; }
.cgt-evt-duo-case{
  --dc-fond:var(--papier-2); --dc-bord:var(--filet-fort); --dc-texte:var(--texte-2);
  flex:1 1 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:14px 10px 12px;
  text-align:center;
  background:var(--dc-fond);
  border:2px solid var(--dc-bord);
  color:var(--dc-texte);
}
.cgt-evt-duo-case[data-ton="succes"]{ --dc-fond:var(--succes-fond); --dc-bord:var(--succes-bord); --dc-texte:var(--succes-texte); }
.cgt-evt-duo-case[data-ton="info"]{ --dc-fond:var(--info-fond); --dc-bord:var(--info-bord); --dc-texte:var(--info-texte); }
.cgt-evt-duo-nombre{ font-size:34px; font-weight:var(--fw-900); line-height:1; font-variant-numeric:tabular-nums; }
.cgt-evt-duo-libelle{ margin-top:5px; font-size:var(--fs-13); font-weight:var(--fw-700); line-height:1.2; }
.cgt-evt-duo-fleche{ flex:none; font-size:18px; color:var(--texte-3); }
.cgt-evt-bloc .cgt-evt-jauge{ width:100%; height:10px; margin-top:16px; }
.cgt-evt-echeance{
  display:flex;
  align-items:center;
  gap:8px;
  margin:14px 0 0;
  font-size:var(--fs-14);
  color:var(--texte-2);
}
.cgt-evt-echeance i{ color:var(--texte-3); }
.cgt-evt-echeance strong{ color:var(--texte); }

.cgt-evt-grand-chiffre{ display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 12px; margin:0 0 18px; }
.cgt-evt-grand-nombre{ font-size:52px; font-weight:var(--fw-900); line-height:1; color:var(--texte); font-variant-numeric:tabular-nums; }
.cgt-evt-grand-libelle{ font-size:var(--fs-14); font-weight:var(--fw-700); color:var(--texte-3); }
.cgt-evt-note--grande{ display:flex; margin:0 0 18px; gap:12px; }
.cgt-evt-note--grande .cgt-evt-note-valeur{ font-size:40px; }
.cgt-evt-note--grande .cgt-evt-etoiles{ font-size:22px; }

/* Liste des personnes */
.cgt-evt-personnes{ display:flex; flex-direction:column; }
.cgt-evt-personne-ligne{
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 0;
  border-bottom:1px solid var(--filet);
}
.cgt-evt-personne-ligne:first-child{ padding-top:0; }
.cgt-evt-personne-ligne:last-child{ border-bottom:0; padding-bottom:0; }
.cgt-avatar.cgt-evt-avatar{ flex:none; width:36px; height:36px; font-size:var(--fs-13); background:var(--rub, var(--action)); color:var(--rub-sur, var(--action-texte)); }
.cgt-evt-personne-texte{ flex:1 1 auto; min-width:0; }
.cgt-evt-personne-nom{ font-size:var(--fs-15); font-weight:var(--fw-800); line-height:1.3; color:var(--texte); }
.cgt-evt-personne-contact{ margin-top:2px; font-size:var(--fs-12); line-height:1.35; color:var(--texte-3); overflow-wrap:anywhere; }
.cgt-evt-lieu-travail{
  flex:none;
  padding:2px 7px;
  font-size:var(--fs-11);
  font-weight:var(--fw-800);
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--texte-2);
  border:1px solid var(--filet-fort);
}
.cgt-evt-chargement{ margin:0; padding:10px 0; text-align:center; color:var(--texte-3); font-size:var(--fs-14); }

.cgt-evt-fiche-actions{ display:flex; flex-direction:column; gap:14px; }

@media (max-width: 1024px){
  .cgt-evt-fiche-corps{ grid-template-columns:minmax(0, 1fr); padding:0 16px calc(36px + env(safe-area-inset-bottom, 0px)); }
  /* Sondage ouvert : « Votre réponse » d'abord (l'action attendue) */
  .cgt-evt-fiche-corps--vote .cgt-evt-fiche-cote{ order:-1; }
}
@media (max-width: 768px){
  .cgt-evt-fiche-barre{ padding-left:16px; padding-right:16px; }
  .cgt-evt-fiche-tete{ padding:2px 16px 46px; }
  .cgt-evt-fiche-affiche{ gap:16px; align-items:flex-start; }
  .cgt-evt-fiche-tete .cgt-evt-date{ width:72px; margin-top:4px; box-shadow:4px 4px 0 0 var(--rub); }
  .cgt-evt-fiche-tete .cgt-evt-date-jour{ font-size:32px; padding:6px 0 4px; }
  .cgt-evt-fiche-titre{ font-size:26px; }
  .cgt-evt-fiche-corps{ gap:18px; }
  .cgt-evt-fiche-principal, .cgt-evt-fiche-cote{ gap:18px; }
  .cgt-evt-bloc{ padding:18px 16px 20px; }
  .cgt-evt-infos{ grid-template-columns:minmax(0, 1fr); gap:16px; }
  .cgt-evt-fiche .cgt-parcours-libelle{ font-size:10px; letter-spacing:.02em; }
}


/* ==========================================================================
   8. PAGES OUTILS (pleine page) — créer, modifier, convocations, statistiques
      Bandeau : composant de la coque .cgt-pleine-tete (48-profil.css).
   ========================================================================== */
.sm-fullpage-modal.cgt-evt-outil{ font-family:var(--police-texte); color:var(--texte); }
.sm-fullpage-modal.cgt-evt-outil.active{ animation:cgt-pleine-page-entree 360ms var(--courbe-sortie) backwards; }
.cgt-evt-outil *, .cgt-evt-outil *::before, .cgt-evt-outil *::after{ box-sizing:border-box; }
.cgt-evt-outil-tete{ padding-left:max(16px, calc((100% - 1200px) / 2)); padding-right:max(16px, calc((100% - 1200px) / 2)); }
.cgt-evt-outil-defil{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
.cgt-evt-outil-corps{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 380px;
  align-items:start;
  gap:24px 28px;
  max-width:1248px;
  margin:0 auto;
  padding:30px 24px calc(44px + env(safe-area-inset-bottom, 0px));
}
.cgt-evt-outil-principal, .cgt-evt-outil-cote{ display:flex; flex-direction:column; gap:24px; min-width:0; }
.cgt-evt-outil-cote{ position:sticky; top:24px; }
.cgt-evt-outil .sm-form-group{ margin:0 0 18px; }
.cgt-evt-outil .sm-form-row{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 20px; }
.cgt-evt-bloc > :last-child,
.cgt-evt-outil .sm-form-row:last-child > .sm-form-group{ margin-bottom:0; }
.cgt-evt-outil .cgt-evt-bloc-titre + .cgt-evt-bloc-aide{ margin:0 0 18px; }
.cgt-evt-outil-actions{ display:flex; flex-direction:column; gap:14px; }
.cgt-evt-outil-actions .cgt-evt-bloc-aide{ margin:0; }
.cgt-evt-outil-pied{
  display:flex;
  justify-content:flex-end;
  gap:14px;
  padding-left:max(16px, calc((100% - 1200px) / 2));
  padding-right:max(16px, calc((100% - 1200px) / 2));
}

/* Type d'événement : cartes-radio aux couleurs des rubriques */
.cgt-evt-choix-types{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
}
.cgt-evt-choix{ position:relative; display:block; min-width:0; cursor:pointer; }
.cgt-evt-choix input{ position:absolute; top:0; left:0; width:1px; height:1px; margin:0; opacity:0; }
.cgt-evt-choix-carte{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:18px 8px 14px;
  text-align:center;
  background:var(--papier);
  border:2px solid var(--filet-fort);
  box-shadow:3px 3px 0 0 var(--tranche);
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort);
}
.cgt-evt-choix-libelle{ font-size:var(--fs-14); font-weight:var(--fw-800); line-height:1.2; color:var(--texte); }
@media (hover: hover){ .cgt-evt-choix:hover .cgt-evt-choix-carte{ translate:-1px -1px; border-color:var(--texte); } }
.cgt-evt-choix input:checked + .cgt-evt-choix-carte{
  background:var(--rub-fond);
  border-color:var(--texte);
  box-shadow:5px 5px 0 0 var(--rub);
}
/* Coche de la carte choisie (état, pas une icône de bouton) */
.cgt-evt-choix input:checked + .cgt-evt-choix-carte::after{
  content:"\f00c";
  position:absolute;
  top:-2px;
  right:-2px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  background:var(--texte);
  color:var(--papier);
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  font-size:11px;
}
.cgt-evt-choix input:focus-visible + .cgt-evt-choix-carte{ outline:2px solid var(--focus); outline-offset:4px; }

/* Case à cocher en carte (conseillé, options d'envoi) */
.cgt-evt-case{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:18px;
  padding:12px 14px;
  background:var(--papier-2);
  border:1px solid var(--filet-fort);
  cursor:pointer;
}
.cgt-evt-case input{ flex:none; width:20px; height:20px; margin:1px 0 0; accent-color:var(--action); }
.cgt-evt-case > span{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.cgt-evt-case strong{ font-size:var(--fs-15); font-weight:var(--fw-800); line-height:1.3; color:var(--texte); }
.cgt-evt-case small{ font-size:var(--fs-13); line-height:1.35; color:var(--texte-3); }
.cgt-evt-case:has(input:checked){ border-color:var(--texte); background:var(--papier); box-shadow:inset 4px 0 0 0 var(--cgt-rouge); }
.cgt-evt-cases{ display:flex; flex-direction:column; gap:10px; }
.cgt-evt-cases .cgt-evt-case{ margin-top:0; }

.cgt-evt-bloc--sondage.cgt-carte:not(#cgt){ border-top:5px solid var(--cgt-jaune); }
.cgt-evt-astuce.sm-alert{ display:flex; align-items:flex-start; gap:12px; margin:18px 0 0; padding:14px 16px; }
.cgt-evt-astuce.sm-alert > i{ flex:none; margin-top:2px; font-size:17px; }
.cgt-evt-astuce strong{ display:block; font-size:var(--fs-14); font-weight:var(--fw-800); }
.cgt-evt-astuce p{ margin:4px 0 0; font-size:var(--fs-14); line-height:var(--lh-corps); }
.cgt-evt-outil-principal > .cgt-evt-astuce.sm-alert{ margin:0; }
.cgt-evt-statut-ligne{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:18px 0 0;
  padding-top:14px;
  border-top:1px solid var(--filet);
}
.cgt-evt-statut-ligne strong{ font-size:var(--fs-14); font-weight:var(--fw-800); color:var(--texte); }

/* Convocations */
.cgt-evt-message.sm-input{ display:block; width:100%; padding:14px 16px; min-height:380px; font-size:var(--fs-15); line-height:var(--lh-para); resize:vertical; }
.cgt-evt-depot{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  width:100%;
  margin:0;
  padding:28px 16px;
  font-family:var(--police-texte);
  color:var(--texte);
  background:var(--papier-2);
  border:2px dashed var(--bord-champ);
  border-radius:0;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
@media (hover: hover){ .cgt-evt-depot:hover{ background:var(--papier-3); border-color:var(--texte); } }
.cgt-evt-depot:active{ translate:0 1px; }
.cgt-evt-depot:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; }
.cgt-evt-depot-titre{
  font-size:var(--fs-16);
  font-weight:var(--fw-800);
  text-decoration:underline;
  text-decoration-color:var(--jaune-accent);
  text-decoration-thickness:3px;
  text-underline-offset:.3em;
}
.cgt-evt-depot-aide{ font-size:var(--fs-13); color:var(--texte-3); }
.cgt-evt-fichiers{ display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.cgt-evt-fichiers:empty{ display:none; }
.cgt-evt-fichier{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 8px 8px 14px;
  background:var(--papier);
  border:1px solid var(--filet-fort);
}
.cgt-evt-fichier > i{ font-size:18px; color:var(--rub-fort, var(--texte-2)); }
.cgt-evt-fichier-nom{ flex:1 1 auto; min-width:0; font-size:var(--fs-14); font-weight:var(--fw-700); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cgt-evt-fichier-taille{ font-size:var(--fs-12); color:var(--texte-3); white-space:nowrap; }
.cgt-evt-coche{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  font-size:12px;
  background:var(--succes-fond);
  color:var(--succes-texte);
  border:1px solid var(--succes-bord);
}

/* Statistiques de participation */
.cgt-evt-stats-corps{
  display:flex;
  flex-direction:column;
  gap:24px;
  max-width:1248px;
  margin:0 auto;
  padding:30px 24px 44px;
}
/* Bilan chiffré : composant commun .cgt-chiffre / .cgt-chiffres (30-composants § 23, revue finale) */
.cgt-evt-legende{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 22px;
  margin:0;
  padding:12px 16px;
  font-size:var(--fs-13);
  color:var(--texte-2);
  background:var(--papier-2);
  border:1px dashed var(--filet-fort);
}
.cgt-evt-legende-item{ display:inline-flex; align-items:center; gap:8px; }
.cgt-evt-legende small{ color:var(--texte-3); }
.cgt-evt-stats-pastille{
  --pa-fond:var(--papier-3); --pa-texte:var(--texte-2); --pa-bord:var(--filet-fort);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  height:22px;
  padding:0 7px;
  font-size:var(--fs-12);
  font-weight:var(--fw-800);
  font-variant-numeric:tabular-nums;
  border-radius:var(--rayon-pilule);
  background:var(--pa-fond);
  color:var(--pa-texte);
  border:1px solid var(--pa-bord);
}
[data-ton="succes"].cgt-evt-stats-pastille{ --pa-fond:var(--succes-fond); --pa-texte:var(--succes-texte); --pa-bord:var(--succes-bord); }
[data-ton="alerte"].cgt-evt-stats-pastille{ --pa-fond:var(--alerte-fond); --pa-texte:var(--alerte-fort); --pa-bord:var(--alerte-bord); }
[data-ton="erreur"].cgt-evt-stats-pastille{ --pa-fond:var(--erreur-fond); --pa-texte:var(--erreur-texte); --pa-bord:var(--erreur-bord); }
/* Légende : pastille d'exemple VIDE (un « X » se lisait comme une croix, un refus) */
.cgt-evt-stats-pastille--exemple{ min-width:0; width:26px; padding:0; }
.cgt-evt-jauge[data-ton="succes"]::-webkit-progress-value{ background:var(--succes-plein); }
.cgt-evt-jauge[data-ton="alerte"]::-webkit-progress-value{ background:var(--cgt-jaune); }
.cgt-evt-jauge[data-ton="erreur"]::-webkit-progress-value{ background:var(--erreur-plein); }
.cgt-evt-jauge[data-ton="succes"]::-moz-progress-bar{ background:var(--succes-plein); }
.cgt-evt-jauge[data-ton="alerte"]::-moz-progress-bar{ background:var(--cgt-jaune); }
.cgt-evt-jauge[data-ton="erreur"]::-moz-progress-bar{ background:var(--erreur-plein); }
.cgt-evt-jauge--mini{ width:44px; }
.cgt-evt-stats-types{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:24px 28px; align-items:start; }
.cgt-evt-stats-type{ position:relative; padding:0; }
.cgt-evt-stats-type::before{ content:""; position:absolute; top:-1px; left:-1px; right:-1px; height:5px; background:var(--rub); }
.cgt-evt-stats-type-tete{
  display:flex;
  align-items:center;
  gap:14px;
  padding:22px 20px 16px;
  border-bottom:1px solid var(--filet);
}
.cgt-evt-stats-type-tete .cgt-evt-picto{ width:40px; height:40px; font-size:16px; }
.cgt-evt-stats-type-titre{ flex:1 1 auto; min-width:0; margin:0; font-family:var(--police-texte); font-size:var(--fs-18); font-weight:var(--fw-800); line-height:1.25; color:var(--texte); }
.cgt-evt-stats-type-nombre{ font-size:var(--fs-13); font-weight:var(--fw-700); color:var(--texte-3); white-space:nowrap; }
.cgt-evt-stats-type-corps{ padding:4px 0; }
.cgt-evt-stats-rien{ margin:0; padding:22px 20px; text-align:center; font-size:var(--fs-14); color:var(--texte-indice); }
.cgt-evt-stats-membre + .cgt-evt-stats-membre{ border-top:1px solid var(--filet); }
.cgt-evt-stats-ligne{
  display:grid;
  grid-template-columns:14px 34px minmax(0, 1fr) auto 112px;
  align-items:center;
  gap:12px;
  width:100%;
  margin:0;
  padding:12px 20px;
  font-family:var(--police-texte);
  text-align:left;
  color:var(--texte);
  background:transparent;
  border:0;
  border-radius:0;
  cursor:pointer;
}
@media (hover: hover){ .cgt-evt-stats-ligne:hover{ background:var(--papier-2); } }
.cgt-evt-stats-ligne:focus-visible{ outline:2px solid var(--focus); outline-offset:-2px; }
.cgt-evt-stats-chevron{ font-size:12px; color:var(--texte-3); rotate:0deg; transition:rotate var(--duree-3) var(--courbe-sortie); }
.cgt-evt-stats-chevron.open{ rotate:90deg; color:var(--texte); }
.cgt-evt-stats-ligne .cgt-evt-avatar{ width:34px; height:34px; font-size:var(--fs-12); }
.cgt-evt-stats-nom{ font-size:var(--fs-15); font-weight:var(--fw-700); line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cgt-evt-stats-pastilles{ display:inline-flex; gap:6px; }
.cgt-evt-stats-taux{ display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.cgt-evt-stats-taux .cgt-evt-jauge{ width:64px; }
.cgt-evt-stats-taux-valeur{ min-width:38px; text-align:right; font-size:var(--fs-13); font-weight:var(--fw-800); font-variant-numeric:tabular-nums; }
.cgt-evt-stats-taux-valeur[data-ton="succes"]{ color:var(--succes-texte); }
.cgt-evt-stats-taux-valeur[data-ton="alerte"]{ color:var(--alerte-fort); }
.cgt-evt-stats-taux-valeur[data-ton="erreur"]{ color:var(--erreur-texte); }
.cgt-evt-stats-detail{ display:none; padding:2px 20px 18px 80px; }
.cgt-evt-stats-detail.open{ display:block; }
.cgt-evt-stats-detail-groupe + .cgt-evt-stats-detail-groupe{ margin-top:12px; }
.cgt-evt-stats-detail-titre{ display:flex; align-items:center; gap:7px; margin:0 0 8px; font-size:var(--fs-13); font-weight:var(--fw-800); }
.cgt-evt-stats-detail-titre[data-ton="succes"]{ color:var(--succes-texte); }
.cgt-evt-stats-detail-titre[data-ton="alerte"]{ color:var(--alerte-fort); }
.cgt-evt-stats-etiquettes{ display:flex; flex-wrap:wrap; gap:6px; }
.cgt-evt-stats-etiquette{
  padding:3px 8px;
  font-size:var(--fs-12);
  font-weight:var(--fw-600);
  line-height:1.35;
  background:var(--papier-2);
  color:var(--texte-2);
  border:1px solid var(--filet-fort);
}
.cgt-evt-stats-etiquette[data-ton="succes"]{ background:var(--succes-fond); border-color:var(--succes-bord); color:var(--succes-texte); }
.cgt-evt-stats-etiquette[data-ton="alerte"]{ background:var(--alerte-fond); border-color:var(--alerte-bord); color:var(--alerte-fort); }

/* 3.0.0-beta.64 — Statistiques des FORMATIONS (SM.cgtStatsFormationsBloc) : année choisie, chiffres clés,
   réponses aux sondages, Paris ou ailleurs et coût hors Paris, lieux, classements, liste. Cartes : la peau
   .cgt-evt-stats-type (bandeau de rubrique). Jetons seulement (clair et sombre), pas de color-mix()
   (iOS < 16.2 jette la règle) ; tout passe à la ligne : rien ne déborde à 390 px. */
.cgt-evt-fstats{ display:flex; flex-direction:column; gap:20px; min-width:0; }
.cgt-evt-fstats-entete{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:12px 20px; min-width:0; }
.cgt-evt-fstats-entete--partie{ margin-top:12px; padding-top:24px; border-top:2px solid var(--filet); }
.cgt-evt-fstats-entete-texte{ flex:1 1 280px; min-width:0; }
.cgt-evt-fstats-titre{ margin:0; font-family:var(--police-texte); font-size:var(--fs-24); font-weight:var(--fw-800); line-height:1.2; color:var(--texte); }
.cgt-evt-fstats-sous{ margin:6px 0 0; font-size:var(--fs-14); line-height:1.4; color:var(--texte-3); }
.cgt-evt-fstats-annee{ display:flex; flex-direction:column; gap:6px; flex:none; }
.cgt-evt-fstats-contenu{ display:flex; flex-direction:column; gap:24px; min-width:0; }
.cgt-evt-fstats-lire{ flex-direction:column; align-items:flex-start; gap:6px; line-height:1.45; }
.cgt-evt-fstats-lire strong{ color:var(--texte); font-weight:var(--fw-800); }
.cgt-evt-fstats-grille{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:24px 28px; align-items:start; }
.cgt-evt-fstats-listes{ display:flex; flex-direction:column; gap:24px; }
.cgt-evt-fstats-corps{ display:flex; flex-direction:column; gap:16px; min-width:0; padding:16px 20px 20px; }
.cgt-evt-fstats-note{ margin:0; font-size:var(--fs-13); line-height:1.45; color:var(--texte-3); }
.cgt-evt-fstats-intertitre{ margin:4px 0 0; font-size:var(--fs-15); font-weight:var(--fw-800); line-height:1.3; color:var(--texte); }
/* Réponses : titre du groupe, puis trois jauges (oui, non, sans réponse) */
.cgt-evt-fstats-groupe{ display:flex; flex-direction:column; gap:8px; min-width:0; }
.cgt-evt-fstats-groupe + .cgt-evt-fstats-groupe{ padding-top:14px; border-top:1px solid var(--filet); }
.cgt-evt-fstats-groupe-titre{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:2px 12px; margin:0; font-size:var(--fs-15); font-weight:var(--fw-800); line-height:1.3; color:var(--texte); }
.cgt-evt-fstats-groupe-titre > span{ font-size:var(--fs-13); font-weight:var(--fw-600); color:var(--texte-3); }
.cgt-evt-fstats-barre{ display:grid; grid-template-columns:minmax(0, 13em) minmax(0, 1fr) 6.5em; align-items:center; gap:10px; font-size:var(--fs-14); color:var(--texte-2); }
.cgt-evt-fstats-barre .cgt-evt-jauge{ width:100%; }
.cgt-evt-fstats-barre-valeur{ font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
.cgt-evt-fstats-barre-valeur strong{ font-weight:var(--fw-800); color:var(--texte); }
/* Paris ou ailleurs : deux tuiles, puis le coût hors Paris */
.cgt-evt-fstats-zones{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.cgt-evt-fstats-zone{ display:flex; flex-direction:column; gap:6px; min-width:0; padding:12px 14px; background:var(--papier-2); border:1px solid var(--filet); }
.cgt-evt-fstats-zone .cgt-libelle{ margin:0; }
.cgt-evt-fstats-zone-chiffres{ margin:0; font-size:var(--fs-14); line-height:1.5; color:var(--texte-2); }
.cgt-evt-fstats-zone-chiffres strong{ font-size:var(--fs-18); font-weight:var(--fw-900); font-variant-numeric:tabular-nums; color:var(--texte); }
.cgt-evt-fstats-zone-cout{ margin:0; font-size:var(--fs-16); font-weight:var(--fw-800); font-variant-numeric:tabular-nums; color:var(--texte); }
.cgt-evt-fstats-couts{ display:flex; flex-direction:column; margin:0; }
.cgt-evt-fstats-couts > div{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--filet); }
.cgt-evt-fstats-couts > .cgt-evt-fstats-couts-total{ border-bottom:0; }
.cgt-evt-fstats-couts dt{ min-width:0; margin:0; font-size:var(--fs-14); font-weight:var(--fw-700); line-height:1.35; color:var(--texte); }
.cgt-evt-fstats-couts dt small{ display:block; margin-top:2px; font-size:var(--fs-12); font-weight:var(--fw-600); color:var(--texte-3); }
.cgt-evt-fstats-couts dd{ flex:none; margin:0; font-size:var(--fs-15); font-weight:var(--fw-700); font-variant-numeric:tabular-nums; white-space:nowrap; color:var(--texte); }
.cgt-evt-fstats-couts-total dd{ font-size:var(--fs-18); font-weight:var(--fw-900); }
/* Classements : rang, texte, valeur */
.cgt-evt-fstats-rang{ margin:0; padding:0; list-style:none; }
.cgt-evt-fstats-rang-ligne{ display:grid; grid-template-columns:28px minmax(0, 1fr) auto; align-items:center; gap:12px; padding:10px 0; }
.cgt-evt-fstats-rang-ligne + .cgt-evt-fstats-rang-ligne{ border-top:1px solid var(--filet); }
.cgt-evt-fstats-rang-num{ display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; font-size:var(--fs-13); font-weight:var(--fw-900); font-variant-numeric:tabular-nums; color:var(--texte); background:var(--papier-3); border:1px solid var(--filet-fort); }
.cgt-evt-fstats-rang-texte{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.cgt-evt-fstats-rang-texte strong{ font-size:var(--fs-14); font-weight:var(--fw-700); line-height:1.3; color:var(--texte); overflow-wrap:anywhere; }
.cgt-evt-fstats-rang-texte small{ font-size:var(--fs-12); line-height:1.35; color:var(--texte-3); }
.cgt-evt-fstats-rang-valeur{ font-size:var(--fs-13); text-align:right; white-space:nowrap; color:var(--texte-2); }
.cgt-evt-fstats-rang-valeur strong{ font-size:var(--fs-18); font-weight:var(--fw-900); font-variant-numeric:tabular-nums; color:var(--texte); }
/* Liste des formations : titre, deux lignes d'informations, chiffres en puces */
.cgt-evt-fstats-formations{ margin:0; padding:0; list-style:none; }
.cgt-evt-fstats-formation{ display:flex; flex-direction:column; gap:6px; min-width:0; padding:14px 0; }
.cgt-evt-fstats-formation:first-child{ padding-top:2px; }
.cgt-evt-fstats-formation + .cgt-evt-fstats-formation{ border-top:1px solid var(--filet); }
.cgt-evt-fstats-formation-titre{ margin:0; font-size:var(--fs-16); font-weight:var(--fw-800); line-height:1.3; color:var(--texte); overflow-wrap:anywhere; }
.cgt-evt-fstats-formation-meta{ margin:0; font-size:var(--fs-13); line-height:1.45; color:var(--texte-3); overflow-wrap:anywhere; }
.cgt-evt-fstats-formation--annulee .cgt-evt-fstats-formation-titre{ text-decoration:line-through; text-decoration-thickness:1px; color:var(--texte-2); }
.cgt-evt-fstats-puces{ display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.cgt-evt-fstats-puce{
  --pu-fond:var(--papier-2); --pu-bord:var(--filet-fort); --pu-texte:var(--texte);
  display:inline-flex; align-items:baseline; gap:6px; max-width:100%; padding:4px 9px;
  font-size:var(--fs-12); line-height:1.3; color:var(--texte-2);
  background:var(--pu-fond); border:1px solid var(--pu-bord);
}
.cgt-evt-fstats-puce strong{ font-size:var(--fs-14); font-weight:var(--fw-900); font-variant-numeric:tabular-nums; color:var(--pu-texte); }
.cgt-evt-fstats-puce small{ font-size:var(--fs-12); font-variant-numeric:tabular-nums; color:var(--texte-3); }
.cgt-evt-fstats-puce[data-ton="succes"]{ --pu-fond:var(--succes-fond); --pu-bord:var(--succes-bord); --pu-texte:var(--succes-texte); }
.cgt-evt-fstats-puce[data-ton="erreur"]{ --pu-fond:var(--erreur-fond); --pu-bord:var(--erreur-bord); --pu-texte:var(--erreur-texte); }
.cgt-evt-fstats-puce[data-ton="alerte"]{ --pu-fond:var(--alerte-fond); --pu-bord:var(--alerte-bord); --pu-texte:var(--alerte-fort); }
.cgt-evt-fstats-puce[data-ton="encre"]{ --pu-fond:var(--papier-3); }
@media (max-width: 1024px){
  .cgt-evt-fstats-grille{ grid-template-columns:minmax(0, 1fr); gap:18px; }
}
@media (max-width: 768px){
  .cgt-evt-fstats-titre{ font-size:var(--fs-20); }
  .cgt-evt-fstats-corps{ padding:14px 16px 16px; }
  .cgt-evt-fstats-barre{ grid-template-columns:minmax(0, 1fr) auto; row-gap:4px; }
  .cgt-evt-fstats-barre .cgt-evt-jauge{ grid-column:1 / -1; grid-row:2; }
}
@media (max-width: 420px){
  .cgt-evt-fstats-zones{ grid-template-columns:minmax(0, 1fr); }
}

@media (max-width: 1024px){
  .cgt-evt-outil-corps{ grid-template-columns:minmax(0, 1fr); padding:20px 16px calc(32px + env(safe-area-inset-bottom, 0px)); gap:18px; }
  .cgt-evt-outil-principal, .cgt-evt-outil-cote{ gap:18px; }
  .cgt-evt-outil-cote{ position:static; }
  .cgt-evt-stats-types{ grid-template-columns:minmax(0, 1fr); }
}
@media (max-width: 768px){
  .cgt-evt-outil .sm-form-row{ grid-template-columns:minmax(0, 1fr); }
  .cgt-evt-outil .sm-form-row:last-child > .sm-form-group:not(:last-child){ margin-bottom:18px; }
  .cgt-evt-choix-types{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
  .cgt-evt-message.sm-input{ min-height:280px; }
  .cgt-evt-stats-corps{ padding:20px 16px 32px; gap:18px; }
  .cgt-evt-stats-ligne{ grid-template-columns:12px 32px minmax(0, 1fr) auto; row-gap:6px; padding:12px 16px; }
  .cgt-evt-stats-taux{ grid-column:3 / -1; justify-content:flex-start; }
  .cgt-evt-stats-detail{ padding:0 16px 16px 16px; }
  .cgt-evt-outil-pied > .sm-btn{ flex:1 1 0; min-width:0; }
}


/* ==========================================================================
   9. MODALES DU LOT — votes, détails, sélection, clôture, évaluation, avis
      (coque de modale : 30-composants § 18 ; petites boîtes : .cgt-confirmation)
   ========================================================================== */
body.cgt-defilement-bloque{ overflow:hidden; }
.cgt-evt-modale .sm-modal-body{ font-family:var(--police-texte); color:var(--texte); }
.cgt-evt-modale .sm-modal-footer{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px; }
.cgt-evt-modale-titres{ flex:1 1 auto; min-width:0; }
.cgt-evt-modale-sous{ margin:6px 0 0; font-size:var(--fs-14); font-weight:var(--fw-600); line-height:1.35; color:var(--texte-3); }
.cgt-evt-modale .cgt-evt-astuce.sm-alert{ margin-top:16px; }
.cgt-confirmation.cgt-evt-modale .cgt-evt-astuce{ text-align:left; }
.cgt-evt-confirmation-texte{ margin:0; }
.cgt-evt-confirmation-titre{ margin:6px 0; font-size:var(--fs-17, 1.0625rem); font-weight:var(--fw-800); color:var(--texte); }
.cgt-confirmation.cgt-evt-modale .cgt-evt-case{ text-align:left; }
/* Succès : le pictogramme arrive d'un coup de tampon (scale seulement) */
@media (prefers-reduced-motion: no-preference){
  .cgt-evt-bravo.active .cgt-confirmation-picto{ animation:cgt-evt-tampon 420ms var(--courbe-ressort) 120ms backwards; }
}
@keyframes cgt-evt-tampon{
  from{ opacity:0; scale:1.6; }
  to{ opacity:1; scale:1; }
}

/* Votants : deux colonnes (intéressé·es / non) */
.cgt-evt-votants{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:24px; }
.cgt-evt-votants-titre{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  padding-bottom:10px;
  font-family:var(--police-texte);
  font-size:var(--fs-15);
  font-weight:var(--fw-800);
  color:var(--texte);
  border-bottom:2px solid var(--texte);
}
[data-ton="succes"] > .cgt-evt-votants-titre i, .cgt-evt-votants-titre[data-ton="succes"] i{ color:var(--succes-texte); }
[data-ton="neutre"] > .cgt-evt-votants-titre i{ color:var(--texte-3); }
[data-ton="info"] > .cgt-evt-votants-titre i, .cgt-evt-votants-titre[data-ton="info"] i{ color:var(--info-texte); }
.cgt-evt-votants-nombre{
  margin-left:auto;
  min-width:26px;
  padding:1px 8px;
  text-align:center;
  border-radius:var(--rayon-pilule);
  background:var(--papier-3);
  color:var(--texte-2);
  font-size:var(--fs-12);
  font-weight:var(--fw-800);
}
.cgt-evt-votants-liste{ margin:0; padding:0; list-style:none; }
.cgt-evt-votants-liste li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid var(--filet);
}
.cgt-evt-votants-liste li:last-child{ border-bottom:0; }
.cgt-evt-votant-nom{ font-size:var(--fs-15); font-weight:var(--fw-700); }

/* Aperçu (calendrier) */
.cgt-evt-apercu-tete{ margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--filet); }
.cgt-evt-apercu-tete .cgt-evt-fiche-type{ box-shadow:2px 2px 0 0 var(--tranche); }
.cgt-evt-theme{
  padding:3px 8px;
  font-size:var(--fs-12);
  font-weight:var(--fw-700);
  color:var(--texte-2);
  border:1px solid var(--filet-fort);
}
.cgt-evt-apercu-titre{ margin:0; font-family:var(--police-texte); font-size:var(--fs-24); font-weight:var(--fw-900); line-height:1.2; letter-spacing:-.01em; color:var(--texte); }
.cgt-evt-apercu-section{ margin-top:22px; }
.cgt-evt-apercu-section .cgt-evt-bloc-titre{ margin-bottom:10px; }
.cgt-evt-apercu-section--pratique{ padding:14px 16px; background:var(--papier-2); border-left:6px solid var(--cgt-jaune); }
.cgt-evt-apercu-section .cgt-evt-texte-long{ font-size:var(--fs-15); }

/* Sélection des participants */
.cgt-evt-compteur{
  /* Revue A : étiquette à tranche (plus d'aplat bleu pleine largeur qui écrasait la
     modale), aux tons de l'état posé par updateSelectionCount / showAssemblySelection :
     sous = alerte (places libres), plein = succès, trop = erreur (icône + « de trop »). */
  --cpt-fond:var(--alerte-fond); --cpt-texte:var(--alerte-fort); --cpt-bord:var(--alerte-bord); --cpt-tranche:var(--tranche-jaune);
  display:table;                       /* largeur au contenu (iOS 15 compris) */
  margin:0 0 20px;
  padding:7px 14px 7px 12px;
  font-size:var(--fs-14);
  font-weight:var(--fw-800);
  line-height:1.4;
  font-variant-numeric:tabular-nums;
  color:var(--cpt-texte);
  background:var(--cpt-fond);
  border:1px solid var(--cpt-bord);
  box-shadow:3px 3px 0 0 var(--cpt-tranche);
}
.cgt-evt-compteur i{ margin-right:8px; }
.cgt-evt-compteur[data-etat="plein"]{ --cpt-fond:var(--succes-fond); --cpt-texte:var(--succes-texte); --cpt-bord:var(--succes-bord); --cpt-tranche:var(--tranche-cyan); }
.cgt-evt-compteur[data-etat="trop"]{ --cpt-fond:var(--erreur-fond); --cpt-texte:var(--erreur-texte); --cpt-bord:var(--erreur-bord); --cpt-tranche:var(--tranche-rouge); }
.cgt-evt-selection-groupe + .cgt-evt-selection-groupe{ margin-top:24px; }
.cgt-evt-selection-liste{ display:flex; flex-direction:column; gap:8px; }
.cgt-evt-selection-liste:empty{ display:none; }
.cgt-evt-ajout.sm-form-group{ margin:0 0 10px; }
.cgt-evt-ajout select{ width:100%; }
.cgt-evt-selection-vide{ margin:0; padding:18px; text-align:center; font-size:var(--fs-14); color:var(--texte-3); background:var(--papier-2); border:1px dashed var(--filet-fort); }
.cgt-evt-selection-ligne{
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 12px 11px 14px;
  background:var(--papier);
  border:1px solid var(--filet-fort);
  cursor:pointer;
}
.cgt-evt-selection-ligne input{ flex:none; width:20px; height:20px; margin:0; accent-color:var(--action); }
.cgt-evt-selection-ligne:has(input:checked){ border-color:var(--texte); box-shadow:inset 4px 0 0 0 var(--cgt-rouge); background:var(--papier-2); }
.cgt-evt-selection-texte{ display:flex; flex-direction:column; flex:1 1 auto; min-width:0; }
.cgt-evt-selection-nom{ font-size:var(--fs-15); font-weight:var(--fw-800); color:var(--texte); }
.cgt-evt-selection-meta{ display:flex; flex-wrap:wrap; gap:2px 12px; margin-top:2px; font-size:var(--fs-12); color:var(--texte-3); }
.cgt-evt-selection-source{
  flex:none;
  padding:2px 8px;
  font-size:var(--fs-11);
  font-weight:var(--fw-800);
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  border:1px solid;
}
.cgt-evt-selection-source[data-ton="succes"]{ background:var(--succes-fond); color:var(--succes-texte); border-color:var(--succes-bord); }
.cgt-evt-selection-source[data-ton="info"]{ background:var(--info-fond); color:var(--info-texte); border-color:var(--info-bord); }

/* Récapitulatif */
.cgt-evt-recap-intro{ margin:0 0 14px; font-size:var(--fs-15); line-height:var(--lh-corps); color:var(--texte-2); }
.cgt-evt-recap-intro strong{ color:var(--texte); }
.cgt-evt-recap-liste{ display:flex; flex-direction:column; gap:6px; max-height:300px; margin:0; padding:0; overflow-y:auto; list-style:none; }
.cgt-evt-recap-ligne{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 12px;
  background:var(--succes-fond);
  border:1px solid var(--succes-bord);
}
.cgt-evt-recap-rang{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  background:var(--cgt-cyan-plein);
  color:var(--cgt-blanc);
  font-size:var(--fs-12);
  font-weight:var(--fw-900);
  box-shadow:2px 2px 0 0 var(--tranche);
}
.cgt-evt-recap-nom{ font-size:var(--fs-15); font-weight:var(--fw-700); color:var(--texte); }

/* Évaluation (étoiles = boutons) */
.cgt-evt-rappel{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
  padding:14px 16px;
  background:var(--papier-2);
  border:1px solid var(--filet);
}
.cgt-evt-rappel-titre{ margin:0; font-family:var(--police-texte); font-size:var(--fs-17, 1.0625rem); font-weight:var(--fw-800); line-height:1.3; color:var(--texte); }
.cgt-evt-rappel-meta{ margin:3px 0 0; font-size:var(--fs-13); color:var(--texte-3); }
.cgt-evt-criteres{ display:flex; flex-direction:column; gap:12px; }
.cgt-evt-critere{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  background:var(--papier);
  border:2px solid var(--filet);
}
.cgt-evt-critere .cgt-evt-picto{ width:38px; height:38px; font-size:15px; }
.cgt-evt-critere.rated{ border-color:var(--cgt-jaune); }
.cgt-evt-critere-libelle{ margin:0; font-size:var(--fs-15); font-weight:var(--fw-800); color:var(--texte); }
.cgt-evt-critere-aide{ margin:2px 0 0; font-size:var(--fs-13); line-height:1.35; color:var(--texte-3); }
.cgt-evt-etoiles-choix{ display:flex; gap:2px; }
.cgt-evt-etoile{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  margin:0;
  padding:0;
  font-size:22px;
  color:var(--texte-desactive);   /* étoile vide : ≥ 3:1 (WCAG 1.4.11) dans les deux thèmes */
  background:transparent;
  border:0;
  border-radius:0;
  cursor:pointer;
  translate:0 0;
  transition:translate var(--duree-2) var(--courbe-ressort);
  -webkit-tap-highlight-color:transparent;
}
.cgt-evt-etoile.active{ color:var(--cgt-jaune); }
@media (hover: hover){ .cgt-evt-etoile:hover{ translate:0 -2px; color:var(--cgt-jaune-600); } }
.cgt-evt-etoile:active{ translate:0 1px; transition-duration:0ms; }
.cgt-evt-etoile:focus-visible{ outline:2px solid var(--focus); outline-offset:0; }
.cgt-evt-commentaire{ margin:20px 0 0; }
.cgt-evt-commentaire textarea.sm-input{ display:block; width:100%; resize:vertical; }
.cgt-evt-note-globale{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  margin-top:20px;
  padding:18px;
  text-align:center;
  background:var(--alerte-fond);
  border:2px solid var(--cgt-jaune);
  box-shadow:4px 4px 0 0 var(--tranche-jaune);
}
.cgt-evt-note-globale[hidden]{ display:none; }
.cgt-evt-note-globale:not([hidden]){ animation:cgt-pleine-page-entree 300ms var(--courbe-sortie) backwards; }
.cgt-evt-note-globale-ligne{ display:inline-flex; align-items:center; gap:12px; }
.cgt-evt-note-globale-valeur{ font-size:42px; font-weight:var(--fw-900); line-height:1; color:var(--texte); font-variant-numeric:tabular-nums; }
.cgt-evt-note-globale-etoiles{ display:inline-flex; gap:4px; font-size:20px; color:var(--texte-desactive); }
.cgt-evt-note-globale-etoiles i.active{ color:var(--cgt-jaune-700); }
.cgt-evt-note-perso{ display:flex; flex-direction:column; align-items:center; gap:6px; margin-top:4px; padding:16px; background:var(--papier-2); border:1px solid var(--filet); }
.cgt-evt-note-perso-valeur{ font-size:36px; font-weight:var(--fw-900); line-height:1; color:var(--texte); }
.cgt-evt-note-perso-valeur small{ font-size:var(--fs-16); color:var(--texte-3); }
.cgt-evt-note-perso .cgt-evt-etoiles{ font-size:20px; }

/* Retours d'évaluation */
.cgt-evt-avis-synthese{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 2fr); gap:20px; }
.cgt-evt-avis-note{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:22px;
  background:var(--alerte-fond);
  border:2px solid var(--cgt-jaune);
  box-shadow:4px 4px 0 0 var(--tranche-jaune);
}
.cgt-evt-avis-note-valeur{ font-size:52px; font-weight:var(--fw-900); line-height:1; color:var(--texte); }
.cgt-evt-avis-note .cgt-evt-etoiles{ font-size:22px; }
.cgt-evt-avis-note-nombre{ font-size:var(--fs-14); font-weight:var(--fw-700); color:var(--alerte-fort); }
.cgt-evt-avis-criteres{ display:flex; flex-direction:column; justify-content:center; gap:14px; padding:18px 20px; background:var(--papier-2); border:1px solid var(--filet); }
.cgt-evt-critere-barre{ display:grid; grid-template-columns:140px minmax(0, 1fr) 44px; align-items:center; gap:12px; }
.cgt-evt-critere-barre-libelle{ display:inline-flex; align-items:center; gap:8px; font-size:var(--fs-14); font-weight:var(--fw-700); color:var(--texte-2); }
.cgt-evt-critere-barre-libelle i{ color:var(--texte-3); }
.cgt-evt-critere-barre .cgt-evt-jauge{ width:100%; height:10px; }
.cgt-evt-critere-barre-valeur{ text-align:right; font-size:var(--fs-15); font-weight:var(--fw-900); color:var(--texte); font-variant-numeric:tabular-nums; }
.cgt-evt-avis-titre{ margin:28px 0 14px; }
.cgt-evt-avis-liste{ display:flex; flex-direction:column; gap:14px; max-height:360px; overflow-y:auto; padding:2px 6px 6px 2px; }
.cgt-evt-avis{ margin:0; padding:16px 18px; background:var(--papier); border:1px solid var(--filet); box-shadow:3px 3px 0 0 var(--tranche); }
.cgt-evt-avis-tete{ display:flex; align-items:center; gap:12px; }
.cgt-evt-avis-auteur{ display:flex; flex-direction:column; flex:1 1 auto; min-width:0; }
.cgt-evt-avis-nom{ font-size:var(--fs-15); font-weight:var(--fw-800); color:var(--texte); }
.cgt-evt-avis-date{ font-size:var(--fs-12); color:var(--texte-3); }
.cgt-evt-avis-pastille{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:3px 10px;
  font-size:var(--fs-14);
  font-weight:var(--fw-900);
  background:var(--cgt-jaune);
  color:var(--sur-jaune);
  box-shadow:2px 2px 0 0 var(--tranche);
}
.cgt-evt-avis-pastille i{ font-size:11px; color:inherit; }
.cgt-evt-avis-texte{
  margin:12px 0 0;
  padding:0 0 0 14px;
  font-size:var(--fs-15);
  font-style:italic;
  line-height:var(--lh-para);
  color:var(--texte-2);
  border-left:3px solid var(--cgt-rouge);
}

@media (max-width: 768px){
  .cgt-evt-votants{ grid-template-columns:minmax(0, 1fr); }
  .cgt-evt-critere{ grid-template-columns:auto minmax(0, 1fr); }
  .cgt-evt-etoiles-choix{ grid-column:1 / -1; justify-content:space-between; }
  .cgt-evt-etoile{ width:48px; height:48px; font-size:26px; }
  .cgt-evt-avis-synthese{ grid-template-columns:minmax(0, 1fr); }
  .cgt-evt-critere-barre{ grid-template-columns:118px minmax(0, 1fr) 36px; }
  .cgt-evt-modale .sm-modal-footer > .sm-btn{ flex:1 1 0; min-width:0; }
}


/* ==========================================================================
   10. ANCIENS ÉCRANS AG ET RÉUNIONS (lot 08) — même rendu que la page Événements
   ========================================================================== */
.cgt-evt-section{ display:flex; flex-direction:column; gap:18px; min-width:0; }
.cgt-evt-section-titre{
  margin:0;
  font-family:var(--police-texte);
  font-size:clamp(1.375rem, 1.0625rem + .7vw, 1.875rem);   /* 24 px dès 1 025 px (V3-07) */
  font-weight:var(--fw-400);
  line-height:1.2;
  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){ .cgt-evt-section-titre{ --accent-titre:var(--lien); } }
.cgt-evt-section-titre::after{
  content:"";
  display:block;
  width:var(--barre-titre-l);
  height:var(--barre-titre-h);
  margin-top:10px;
  background:var(--cgt-rouge);
}
.cgt-evt-section-sous{ margin:-6px 0 0; font-size:var(--fs-15); color:var(--texte-2); }
.cgt-evt-extrait{ margin:10px 0 0; font-size:var(--fs-14); line-height:var(--lh-corps); color:var(--texte-2); }
.cgt-evt-question{ margin:0 0 8px; font-size:var(--fs-14); font-weight:var(--fw-800); color:var(--texte); }
.cgt-evt-pied--pile{ align-items:flex-end; }
.cgt-evt-pile{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-width:0; }
.cgt-evt-pile .cgt-evt-bloc-aide{ margin:0; font-size:var(--fs-13); }
.cgt-evt-pile:empty{ display:none; }
.cgt-evt-actions--gauche{ justify-content:flex-start; }
.cgt-evt-pile > .cgt-evt-actions--gauche{ margin-top:4px; }
/* Réponse en boutons accolés : la réponse donnée reste « tamponnée » */
.cgt-evt-choix-vote{ display:inline-flex; flex-wrap:wrap; gap:10px; }
.cgt-evt-choix-vote .sm-btn.cgt-evt-choisi:not(#cgt){ outline-offset:2px; }
.cgt-evt-compteur--bas{ margin:18px 0 0; }
.cgt-evt-selection-outils{ margin-bottom:14px; }
.cgt-evt-tableau{ overflow-x:auto; }
.cgt-evt-tableau .sm-table{ width:100%; }
.cgt-evt-tableau :is(th, td){ padding:12px 14px; }
.cgt-evt-tableau-actions{ display:flex; justify-content:flex-end; gap:8px; }
/* Revue A : colonnes de nombres serrées, le nom prend le reste (« Marie Lambert » sur une ligne) */
.cgt-evt-tableau--chiffres .cgt-evt-col-nombre{ width:1%; white-space:nowrap; text-align:center; }
.cgt-evt-formulaire .sm-form-group{ margin:0 0 16px; }
.cgt-evt-formulaire .sm-form-row{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 16px; }
.cgt-evt-formulaire .sm-form-row.cgt-evt-rangee-3{ grid-template-columns:minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
.cgt-evt-formulaire .cgt-evt-case{ margin-top:4px; }
@media (max-width: 768px){
  .cgt-evt-formulaire .sm-form-row,
  .cgt-evt-formulaire .sm-form-row.cgt-evt-rangee-3{ grid-template-columns:minmax(0, 1fr); }
  .cgt-evt-tableau--chiffres :is(th, td){ padding:10px 8px; }
  .cgt-evt-tableau--chiffres th{ letter-spacing:.02em; }
  .cgt-evt-pied--pile{ flex-direction:column; align-items:stretch; }
  .cgt-evt-pied--pile > .cgt-evt-actions{ justify-content:flex-start; }
}

/* Revue finale : aide d'une action (« Le groupe sera supprimé dans 15 jours ») sous
   TOUTE la rangée d'actions de la carte d'AG : les boutons de gauche et de droite
   restent sur la même ligne. */
.cgt-evt-pied-aide.cgt-evt-bloc-aide{ flex:1 1 100%; order:3; margin:-4px 0 0; font-size:var(--fs-13); }
/* Passe B2 (X3-06) : sur téléphone, le pied de la carte d'AG est une COLONNE
   (.cgt-evt-pied--pile, plus haut). flex-wrap:wrap y restait actif et la base de 100 % de
   l'aide portait sur la HAUTEUR : l'aide partait dans une 2e colonne, hors de la carte
   (x 289 → 508 px pour un écran de 390), rognée, et laissait un vide sous « Valider et
   archiver ». Une seule colonne, l'aide à sa hauteur naturelle, sous les boutons.
   Spécificité 0,3,0 : l'emporte sur la règle ci-dessus (0,2,0) quel que soit l'ordre. */
@media (max-width: 768px){
  .cgt-evt-pied--pile{ flex-wrap:nowrap; }
  .cgt-evt-pied--pile > .cgt-evt-pied-aide.cgt-evt-bloc-aide{ flex:0 0 auto; margin:0; }
}

/* ===========================================================================
   Questionnaire d'inscription (3.0.0-beta.55) : étapes de l'adhérent·e,
   choix oui / non des repas, paramétrage (création / modification), détail
   de chaque personne pour celles et ceux qui gèrent (votes, sélection,
   participant·es, tableau des réponses). Couleurs : jetons de la charte,
   clair et sombre.
   =========================================================================== */
.cgt-quest [hidden],
.cgt-quest-config [hidden]{ display:none !important; }

/* Étapes : 1 Coordonnées — 2 Repas — 3 Validation */
.cgt-quest-etapes{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 22px; padding:0; list-style:none; }
/* flex:none : WebKit (iPhone) rétrécissait l'étape, le trait de la suivante mordait sur sa case */
.cgt-quest-etape{ flex:none; display:flex; align-items:center; gap:8px; font-size:var(--fs-13); font-weight:var(--fw-800); color:var(--texte-3); }
.cgt-quest-etape + .cgt-quest-etape::before{ content:""; flex:none; width:18px; height:2px; background:var(--filet-fort); }
.cgt-quest-etape-num{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  font-size:var(--fs-13);
  background:var(--papier);
  color:var(--texte-3);
  border:2px solid var(--filet-fort);
}
.cgt-quest-etape[aria-current="step"]{ color:var(--texte); }
.cgt-quest-etape[aria-current="step"] .cgt-quest-etape-num{ background:var(--action); border-color:var(--action); color:var(--action-texte); box-shadow:3px 3px 0 0 var(--tranche); }
.cgt-quest-etape.est-faite{ color:var(--succes-texte); }
.cgt-quest-etape.est-faite .cgt-quest-etape-num{ background:var(--succes-fond); border-color:var(--succes-bord); color:var(--succes-texte); }
@media (max-width: 480px){
  /* Téléphone : le nom de l'étape en cours seulement */
  .cgt-quest-etape:not([aria-current="step"]) .cgt-quest-etape-nom{ display:none; }
}

.cgt-quest-titre{ margin:0 0 6px; font-size:var(--fs-20); font-weight:var(--fw-800); line-height:1.25; color:var(--texte); }
.cgt-quest-titre:focus{ outline:none; }
.cgt-quest-aide{ margin:0 0 18px; font-size:var(--fs-15); line-height:var(--lh-corps); color:var(--texte-2); }
.cgt-quest-form .sm-form-group{ margin:0 0 16px; }
.cgt-quest-identite{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:2px 8px;
  margin:0 0 18px;
  padding:10px 14px;
  font-size:var(--fs-15);
  color:var(--texte);
  background:var(--papier-2);
  border-left:4px solid var(--cgt-rouge);
}
.cgt-quest-identite .cgt-libelle{ font-size:var(--fs-13); color:var(--texte-3); }
.cgt-quest-note{ margin:2px 0 0; font-size:var(--fs-13); line-height:1.45; color:var(--texte-3); }

/* Repas : un encadré par jour, une ligne par repas, Oui / Non accolés */
.cgt-quest-tout{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.cgt-quest-jours{ display:flex; flex-direction:column; gap:12px; }
.cgt-quest-jour{ padding:12px 14px; background:var(--papier); border:1px solid var(--filet-fort); }
.cgt-quest-jour-titre{ margin:0 0 4px; font-size:var(--fs-15); font-weight:var(--fw-800); color:var(--texte); }
.cgt-quest-repas{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid var(--filet); }
.cgt-quest-jour-titre + .cgt-quest-repas{ border-top:0; }
.cgt-quest-repas-nom{ font-size:var(--fs-15); font-weight:var(--fw-700); color:var(--texte-2); }
.cgt-quest-repas.est-manquant{ margin:0 -8px; padding:8px; background:var(--alerte-fond); box-shadow:inset 3px 0 0 0 var(--alerte-plein); }
.cgt-quest-repas.est-manquant .cgt-quest-repas-nom{ color:var(--alerte-texte); }
.cgt-quest-choix{ display:inline-flex; flex:none; }
/* touch-action : sans attente du double-toucher, des réponses enchaînées vite (oui, non, oui…)
   se perdaient sur iPhone (seule la dernière comptait) */
.cgt-quest-option{ position:relative; display:inline-flex; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.cgt-quest-option input{ position:absolute; width:1px; height:1px; margin:0; opacity:0; pointer-events:none; }
.cgt-quest-option span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:72px;
  min-height:44px;
  padding:0 16px;
  font-size:var(--fs-15);
  font-weight:var(--fw-800);
  background:var(--papier);
  color:var(--texte-2);
  border:1px solid var(--filet-fort);
  transition:background-color .15s ease, color .15s ease;
}
.cgt-quest-option + .cgt-quest-option span{ border-left:0; }
.cgt-quest-option input:checked + span{ background:var(--action); border-color:var(--action); color:var(--action-texte); box-shadow:inset 0 -3px 0 0 var(--tranche-rouge); }
.cgt-quest-option input[value="non"]:checked + span{ background:var(--texte-2); border-color:var(--texte-2); color:var(--papier); box-shadow:none; }
.cgt-quest-option input:focus-visible + span{ position:relative; z-index:1; outline:3px solid var(--focus); outline-offset:2px; }
@media (hover: hover){
  .cgt-quest-option:hover input:not(:checked) + span{ background:var(--papier-2); color:var(--texte); }
}
@media (prefers-reduced-motion: reduce){
  .cgt-quest-option span{ transition:none; }
}
.cgt-quest-erreur{ margin:0 0 12px; }

/* Récapitulatif (étape « Validation » et bloc « Tes réponses » de la fiche) */
.cgt-quest-recap-groupe{ margin:0 0 14px; }
.cgt-quest-recap{ display:flex; flex-direction:column; gap:10px; margin:0; }
.cgt-quest-recap-ligne{
  display:grid;
  grid-template-columns:minmax(90px, 28%) minmax(0, 1fr);
  align-items:baseline;
  gap:4px 12px;
  padding:0 0 10px;
  border-bottom:1px solid var(--filet);
}
.cgt-quest-recap-ligne dt{ font-size:var(--fs-12); font-weight:var(--fw-800); letter-spacing:var(--ls-majuscules); text-transform:uppercase; color:var(--texte-3); }
.cgt-quest-recap-ligne dd{ margin:0; font-size:var(--fs-15); color:var(--texte); overflow-wrap:anywhere; }
.cgt-quest-recap-modifier{ margin:6px 0 0; }
.cgt-quest-recap-jours{ display:flex; flex-direction:column; gap:8px; margin:0; padding:0; list-style:none; }
.cgt-quest-recap-jour{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; }
.cgt-quest-recap-jour-nom{ flex:1 1 100%; font-weight:var(--fw-800); }
.cgt-quest-recap--fiche .cgt-quest-recap-ligne{ grid-template-columns:minmax(0, 1fr); }
.cgt-quest-bloc .cgt-quest-recap{ margin:10px 0 14px; }
.cgt-quest-bloc > .sm-btn + .cgt-evt-bloc-aide,
.cgt-quest-bloc > .cgt-quest-recap + .cgt-evt-bloc-aide{ margin-top:10px; }
@media (max-width: 480px){
  .cgt-quest-recap-ligne{ grid-template-columns:minmax(0, 1fr); }
}

/* Oui / Non / sans réponse (récapitulatif, tableau, fiches) : le mot, pas seulement la couleur */
.cgt-quest-cellule{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  font-size:var(--fs-13);
  font-weight:var(--fw-800);
  white-space:nowrap;
  background:var(--papier);
  color:var(--texte-3);
  border:1px solid var(--filet-fort);
}
.cgt-quest-cellule[data-rep="oui"]{ background:var(--succes-fond); color:var(--succes-texte); border-color:var(--succes-bord); }
.cgt-quest-cellule[data-rep="non"]{ background:var(--papier-2); color:var(--texte-3); }
.cgt-quest-cellule[data-rep="vide"]{ border-style:dashed; }

/* Détail d'une personne (votes, sélection, participant·es) : contact + repas où elle VIENT */
.cgt-quest-detail{ display:flex; flex-direction:column; gap:5px; margin-top:6px; min-width:0; }
.cgt-quest-contact{ font-size:var(--fs-13); line-height:1.4; color:var(--texte-2); overflow-wrap:anywhere; }
.cgt-quest-contact a{ color:var(--lien); text-decoration:underline; text-underline-offset:.15em; }
.cgt-quest-sep{ margin:0 6px; color:var(--texte-3); }
.cgt-quest-puces{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; }
.cgt-quest-puces-libelle{ margin-right:2px; font-size:var(--fs-11); font-weight:var(--fw-800); letter-spacing:var(--ls-majuscules); text-transform:uppercase; color:var(--texte-3); }
.cgt-quest-puce{
  display:inline-flex;
  align-items:baseline;
  gap:4px;
  padding:2px 8px;
  font-size:var(--fs-12);
  line-height:1.4;
  background:var(--papier-2);
  color:var(--texte-2);
  border:1px solid var(--filet-fort);
}
.cgt-quest-puce strong{ font-weight:var(--fw-800); }
.cgt-quest-puce[data-ton="succes"]{ background:var(--succes-fond); color:var(--succes-texte); border-color:var(--succes-bord); }
.cgt-quest-puce[data-ton="alerte"]{ background:var(--alerte-fond); color:var(--alerte-texte); border-color:var(--alerte-bord); font-weight:var(--fw-800); }
.cgt-quest-puce[data-ton="info"]{ background:var(--info-fond); color:var(--info-texte); border-color:var(--info-bord); }
.cgt-quest-puce[data-ton="neutre"]{ color:var(--texte-3); }
.cgt-evt-votants-liste li.cgt-quest-votant{ flex-wrap:wrap; }
.cgt-quest-votant > .cgt-quest-detail{ flex:1 1 100%; margin-top:0; }
.cgt-evt-selection-ligne:has(.cgt-quest-detail){ align-items:flex-start; }
.cgt-evt-selection-ligne:has(.cgt-quest-detail) > input{ margin-top:2px; }
.cgt-evt-personne-texte > .cgt-quest-puces{ margin-top:6px; }
.cgt-quest-acces{ margin:0 0 14px; }
.cgt-evt-reponse[data-ton="alerte"]{ color:var(--alerte-texte); }
.sm-btn.sm-btn-link.cgt-quest-a-completer:not(#cgt){ color:var(--alerte-texte); font-weight:var(--fw-800); }

/* Paramétrage : interrupteurs + grille jours × midi / soir */
.cgt-quest-config-detail{ margin-top:14px; }
.cgt-quest-grille{ margin-top:14px; overflow-x:auto; }
.cgt-quest-grille-table{ width:100%; border-collapse:collapse; font-size:var(--fs-14); }
.cgt-quest-grille-table :is(th, td){ padding:6px 10px; text-align:left; border-bottom:1px solid var(--filet); }
.cgt-quest-grille-table thead th{ font-size:var(--fs-12); font-weight:var(--fw-800); letter-spacing:var(--ls-majuscules); text-transform:uppercase; color:var(--texte-3); }
.cgt-quest-grille-table thead th:not(:first-child),
.cgt-quest-grille-table td{ width:84px; text-align:center; }
.cgt-quest-grille-table tbody th{ font-weight:var(--fw-700); color:var(--texte); }
.cgt-quest-grille-case{ display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; cursor:pointer; touch-action:manipulation; }
.cgt-quest-grille-case input{ width:22px; height:22px; margin:0; accent-color:var(--action); }
.cgt-quest-config-note{ margin-top:12px; }

/* Tableau des réponses (bureau) / fiches (téléphone) */
.cgt-quest-intro{ margin:0 0 14px; font-size:var(--fs-14); line-height:var(--lh-corps); color:var(--texte-2); }
.cgt-quest-tableau .sm-table{ min-width:560px; }
.cgt-quest-tableau thead th{ white-space:nowrap; }
/* Nom de la personne (en-tête de ligne) : pas la peau des en-têtes de colonnes (majuscules, filet noir) */
.cgt-quest-tableau .sm-table:not(#cgt) tbody th[scope="row"]{
  min-width:170px;
  text-align:left;
  vertical-align:top;
  font-size:inherit;
  font-weight:var(--fw-400);
  letter-spacing:normal;
  text-transform:none;
  color:var(--texte);
  background:var(--papier);
  border-bottom:1px solid var(--filet);
}
.cgt-quest-tableau td{ vertical-align:top; }
.cgt-quest-tableau tbody th[scope="row"],
.cgt-quest-tableau thead tr:first-child th:first-child{ position:sticky; left:0; z-index:1; background:var(--papier); }
.cgt-quest-tableau tr.est-incomplet th[scope="row"]{ box-shadow:inset 3px 0 0 0 var(--alerte-plein); }
.cgt-quest-personne{ display:block; font-size:var(--fs-15); font-weight:var(--fw-800); line-height:1.3; color:var(--texte); }
.cgt-quest-personne-meta{ display:block; font-size:var(--fs-12); color:var(--texte-3); }
.cgt-quest-tableau th[scope="row"] :is(.cgt-evt-selection-source, .cgt-quest-puce){ display:inline-flex; margin:4px 4px 0 0; }
.cgt-quest-col-jour{ text-align:center; border-left:1px solid var(--filet); }
.cgt-quest-col-repas{ text-align:center; }
/* Colonnes de repas serrées : le nom et le contact gardent la place */
.cgt-quest-tableau :is(th, td):is(.cgt-quest-col-repas, .cgt-quest-col-jour){ padding:10px 6px; }
.cgt-quest-col-contact{ min-width:200px; font-size:var(--fs-13); }
.cgt-quest-col-contact .cgt-quest-contact{ display:flex; flex-direction:column; gap:2px; }
.cgt-quest-col-contact .cgt-quest-sep{ display:none; }
.cgt-quest-fiches{ display:none; flex-direction:column; gap:10px; margin:0; padding:0; list-style:none; }
.cgt-quest-fiche{ padding:12px 14px; background:var(--papier); border:1px solid var(--filet-fort); }
.cgt-quest-fiche.est-incomplet{ box-shadow:inset 4px 0 0 0 var(--alerte-plein); }
.cgt-quest-fiche-tete{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; margin:0 0 6px; }
.cgt-quest-fiche-tete .cgt-quest-personne,
.cgt-quest-fiche-tete .cgt-quest-personne-meta{ display:inline; }
.cgt-quest-fiche-contact{ margin:0 0 8px; }
.cgt-quest-fiche-repas{ display:flex; flex-direction:column; gap:6px; margin:0; padding:0; list-style:none; }
.cgt-quest-fiche-repas li{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.cgt-quest-fiche-jour{ min-width:96px; font-size:var(--fs-13); font-weight:var(--fw-800); color:var(--texte-2); }
@media (max-width: 768px){
  .cgt-quest-tableau{ display:none; }
  .cgt-quest-fiches{ display:flex; }
}

/* ===================================================================
   3.0.0-beta.57 — Modèles de message de convocation (demande de Kevin, 09/10/2026)
   Boutons de modèle au-dessus du message (le bouton choisi prend la peau du vote
   choisi : sm-btn-primary + cgt-evt-choisi) ; fenêtre « Modèles de convocation ».
   =================================================================== */
.cgt-evt-modeles{ display:flex; flex-direction:column; gap:8px; margin:0 0 12px; }
.cgt-evt-modeles > .cgt-evt-bloc-aide{ margin:0; font-size:var(--fs-13); }
.cgt-evt-modeles-titre{ margin:0; font-size:var(--fs-13); font-weight:var(--fw-800); color:var(--texte-2); letter-spacing:.02em; }
.cgt-evt-modeles-liste{ display:flex; flex-wrap:wrap; gap:8px; }
.cgt-evt-modele{ display:inline-flex; align-items:center; gap:8px; touch-action:manipulation; }
.cgt-evt-modele-suggere{
  padding:1px 6px; border:1px solid currentColor; font-size:var(--fs-12); font-weight:var(--fw-700);
  line-height:1.4; letter-spacing:.02em; opacity:.85;
}
.cgt-evt-modele-fiches{ display:flex; flex-direction:column; gap:16px; margin:0 0 16px; }
.cgt-evt-modele-fiche{
  display:flex; flex-direction:column; gap:10px; margin:0; padding:14px;
  border:1px solid var(--filet-fort); background:var(--papier-2); min-width:0;
}
.cgt-evt-modele-fiche .sm-form-group{ margin:0; }
.cgt-evt-modele-fiche-tete{ display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); gap:10px; }
.cgt-evt-modele-fiche textarea{ min-height:180px; resize:vertical; }
@media (max-width: 640px){
  .cgt-evt-modele-fiche-tete{ grid-template-columns:minmax(0, 1fr); }
}
