/* ==========================================================================
   CGT-VIVEST — 50-flash-info.css — FLASH INFO (refonte-cgt, lot 06)
   --------------------------------------------------------------------------
   Balisage : assets/js/public.js — renderNewsTimeline, renderNewsMagazineContent,
   cgtFlashCarte, renderNewsPagination (page #news) ; renderNewsReadModal (lecture) ;
   openNewsGalleryLightbox (visionneuse) ; renderNewsAdmin, getNewsStatusBadge
   (#admin/news) ; openNewsEditorModal (éditeur en 3 étapes, couverture = aplat du
   thème), showAIAssistant (assistant IA) ; assets/js/gallery-editor.js
   (SMGalleryManager : dépôt, tri et retrait des photos de la galerie).
   Classes .cgt-flash-* ; AUCUN style en ligne, aucune couleur en dur hors des
   constantes de marque : clair et sombre suivent les jetons (00-tokens.css).

   Composition « affiche militante en 2,5D » :
   - titre d'écran de la charte (« Flash » en Besley italique rouge + barre 100×4) ;
   - chaque THÈME porte la couleur d'une RUBRIQUE de cgt.fr (cgtFlashThemes, JS) :
     vie syndicale = actualité (rouge), conditions de travail = agenda (cyan),
     instances et droits = document (violet), emploi / protection sociale =
     communiqué (jaune), rémunération = dossier (orange), santé = pétition (rose).
     Posée par [data-flash-rub] → variables --rub-* ;
   - « À la une » = affiche d'encre à filet et tranche de rubrique, autocollant
     jaune, titre en Figtree 900 ; cartes papier à tranche, filet de rubrique en
     tête, étiquette en Besley italique bas de casse (taxonomy-style de cgt.fr) ;
   - lecture : bandeau d'encre, article sur papier qui « mord » sur le bandeau,
     chapô, galerie en mosaïque à tranche, visionneuse d'encre opaque ;
   - gestion : bilan chiffré, tableau de la charte, pastilles de statut (texte +
     pictogramme, jamais la couleur seule) ; éditeur en boîte opaque à tranche.

   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 (largeur des modales du gabarit).
   Mouvement : transform / opacity uniquement (translate / scale / rotate), coupé
   par prefers-reduced-motion. Pas de color-mix(), pas de backdrop-filter.
   ========================================================================== */


/* ==========================================================================
   0. RUBRIQUES — [data-flash-rub] (page, lecture, gestion, éditeur)
      --rub = filet / tranche · --rub-plein = aplat · --rub-sur = texte posé sur
      l'aplat · --rub-fort = rubrique lisible en TEXTE sur papier (thème) ·
      --rub-fond = fond teinté · --rub-clair = texte sur l'ENCRE (constant)
   ========================================================================== */
[data-flash-rub]{
  --rub:var(--t-actualite); --rub-plein:var(--action); --rub-sur:var(--cgt-blanc);
  --rub-fort:var(--t-actualite-fort); --rub-fond:var(--t-actualite-fond); --rub-clair:var(--t-actualite-encre);
}
[data-flash-rub="agenda"]{ --rub:var(--t-agenda); --rub-plein:var(--t-agenda-plein); --rub-sur:var(--cgt-blanc); --rub-fort:var(--t-agenda-fort); --rub-fond:var(--t-agenda-fond); --rub-clair:var(--t-agenda-encre); }
[data-flash-rub="document"]{ --rub:var(--t-document); --rub-plein:var(--t-document); --rub-sur:var(--t-document-sur); --rub-fort:var(--t-document-fort); --rub-fond:var(--t-document-fond); --rub-clair:var(--t-document-encre); }
[data-flash-rub="communique"]{ --rub:var(--t-communique); --rub-plein:var(--t-communique); --rub-sur:var(--t-communique-sur); --rub-fort:var(--t-communique-fort); --rub-fond:var(--t-communique-fond); --rub-clair:var(--t-communique-encre); }
[data-flash-rub="dossier"]{ --rub:var(--t-dossier); --rub-plein:var(--t-dossier-plein); --rub-sur:var(--cgt-blanc); --rub-fort:var(--t-dossier-fort); --rub-fond:var(--t-dossier-fond); --rub-clair:var(--t-dossier-encre); }
[data-flash-rub="petition"]{ --rub:var(--t-petition); --rub-plein:var(--t-petition); --rub-sur:var(--t-petition-sur); --rub-fort:var(--t-petition-fort); --rub-fond:var(--t-petition-fond); --rub-clair:var(--t-petition-encre); }
[data-flash-rub="encre"]{ --rub:var(--picto-encre-fond); --rub-plein:var(--picto-encre-fond); --rub-sur:var(--picto-encre-texte); --rub-fort:var(--texte); --rub-fond:var(--papier-3); --rub-clair:var(--gris-3); }

/* Étiquette de rubrique : Besley italique, bas de casse (taxonomy-style de cgt.fr) */
.cgt-flash-etiquette{
  display:inline-block;
  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);
  /* Revue B : bas de casse écrit à la source (SM.cgtBasDeCasse garde les sigles) */
  color:var(--rub-fort, var(--lien));
}

/* Pastille de STATUT (gestion) : fond teinté + texte + pictogramme */
.cgt-flash-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;
  white-space:nowrap;
  background:var(--st-fond);
  color:var(--st-texte);
  border:1px solid var(--st-bord);
  box-shadow:2px 2px 0 0 var(--tranche);
}
.cgt-flash-statut i{ font-size:11px; color:inherit; }
.cgt-flash-statut[data-ton="succes"]{ --st-fond:var(--succes-fond); --st-texte:var(--succes-texte); --st-bord:var(--succes-bord); }
.cgt-flash-statut[data-ton="alerte"]{ --st-fond:var(--alerte-fond); --st-texte:var(--alerte-fort); --st-bord:var(--alerte-bord); }
.cgt-flash-statut[data-ton="erreur"]{ --st-fond:var(--erreur-fond); --st-texte:var(--erreur-texte); --st-bord:var(--erreur-bord); }

/* Avatar (initiales) : rond (exception de la charte), jaune, tranche d'autocollant */
.cgt-flash-avatar{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:var(--rayon-rond);
  background:var(--cgt-jaune);
  color:var(--sur-jaune);
  font-size:var(--fs-15);
  font-weight:var(--fw-900);
  letter-spacing:.02em;
  box-shadow:2px 2px 0 0 var(--rub, var(--cgt-rouge));
}
.cgt-flash-avatar--mini{
  width:28px;
  height:28px;
  font-size:var(--fs-12);
  background:var(--picto-encre-fond);
  color:var(--picto-encre-texte);
  box-shadow:none;
}


/* ==========================================================================
   1. PAGE #news — conteneur, titre d'écran, recherche, puces, compte
   ========================================================================== */
.cgt-flash-page,
.cgt-flash-gestion{
  display:flex;
  flex-direction:column;
  gap:24px;
  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-flash-page *, .cgt-flash-page *::before, .cgt-flash-page *::after,
.cgt-flash-gestion *, .cgt-flash-gestion *::before, .cgt-flash-gestion *::after{ box-sizing:border-box; }

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

/* Barre : recherche (champ intégré, 30-composants § 2) + puces d'année */
.cgt-flash-barre{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px 24px;
}
.cgt-flash-recherche{
  flex:1 1 340px;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  min-height:50px;
  margin:0;
  padding:0 6px 0 16px;
  background:var(--papier);
  border:1px solid var(--bord-champ);
  box-shadow:var(--relief-champ);
  cursor:text;
}
.cgt-flash-recherche:hover{ border-color:var(--bord-champ-survol); }
.cgt-flash-recherche:focus-within{ border-color:var(--focus); box-shadow:0 0 0 3px var(--focus-halo), var(--relief-champ); outline:none; }
.cgt-flash-recherche > i{ flex:none; font-size:16px; color:var(--texte-3); }
.cgt-flash-recherche input{
  flex:1 1 auto;
  min-width:0;
  height:46px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  outline:none;
  font-family:var(--police-texte);
  font-size:var(--fs-16);          /* 16 px : pas de zoom automatique sur iOS */
  font-weight:var(--fw-500);
  color:var(--texte);
  -webkit-appearance:none;
  appearance:none;
}
.cgt-flash-recherche input::placeholder{ color:var(--texte-indice); opacity:1; }

/* Puces (années, thèmes, raccourcis) : carrés à tranche ; choisie = encre, tranche rouge */
.cgt-flash-puces,
.cgt-flash-themes{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.cgt-flash-puce,
.cgt-flash-theme,
.cgt-flash-raccourci{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  margin:0;
  padding:0 16px;
  font-family:var(--police-texte);
  font-size:var(--fs-14);
  font-weight:var(--fw-800);
  line-height:1.2;
  white-space:nowrap;
  color:var(--texte-2);
  background:var(--papier);
  border:2px solid var(--filet-fort);
  border-radius:0;
  box-shadow:2px 2px 0 0 var(--tranche);
  cursor:pointer;
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort);
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
@media (hover: hover){
  :is(.cgt-flash-puce, .cgt-flash-theme, .cgt-flash-raccourci):not(.active):hover{
    color:var(--texte);
    border-color:var(--texte);
    translate:-1px -1px;
  }
}
:is(.cgt-flash-puce, .cgt-flash-theme, .cgt-flash-raccourci):active{
  translate:2px 2px;
  box-shadow:0 0 0 0 var(--tranche);
  transition-duration:0ms;
}
:is(.cgt-flash-puce, .cgt-flash-theme, .cgt-flash-raccourci):focus-visible{ outline:2px solid var(--focus); outline-offset:3px; }
:is(.cgt-flash-puce, .cgt-flash-theme, .cgt-flash-raccourci).active{
  color:var(--papier);
  background:var(--texte);
  border-color:var(--texte);
  box-shadow:3px 3px 0 0 var(--cgt-rouge);
}
/* Thème : carré de rubrique ; choisi = fond teinté de la rubrique, tranche de rubrique */
.cgt-flash-theme[data-flash-rub]::before{
  content:"";
  flex:none;
  width:10px;
  height:10px;
  background:var(--rub);
}
.cgt-flash-theme[data-flash-rub].active{
  color:var(--texte);
  background:var(--rub-fond);
  border-color:var(--rub);
  box-shadow:3px 3px 0 0 var(--rub);
}

.cgt-flash-compte{
  margin:-6px 0 0;
  font-size:var(--fs-12);
  font-weight:var(--fw-700);
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--texte-3);
}
.cgt-flash-compte #news-magazine-count{
  font-size:var(--fs-14);
  font-weight:var(--fw-900);
  color:var(--texte);
  font-variant-numeric:tabular-nums;
}


/* ==========================================================================
   2. GRILLE — « À la une » (affiche d'encre) + cartes à tranche
   ========================================================================== */
.cgt-flash-grille{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:30px 28px;
  align-items:stretch;
}
.cgt-flash-grille > .cgt-flash-vide{ grid-column:1 / -1; }

/* Titre = lien ; son ::after couvre la carte (clic partout, comme avant) */
.cgt-flash-lien{
  color:inherit;
  text-decoration:none;
}
.cgt-flash-lien::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
}
.cgt-flash-lien:focus-visible{ outline:none; }
.cgt-flash-lien:focus-visible::after{ outline:3px solid var(--focus); outline-offset:4px; }

/* Méta (date · lectures · durée) */
.cgt-flash-meta{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 14px;
  min-width:0;
}
.cgt-flash-lectures{ display:inline-flex; align-items:center; gap:6px; font-variant-numeric:tabular-nums; }
.cgt-flash-lectures i{ font-size:12px; }

/* « Lire la suite » : lien rouge, flèche qui avance au survol */
.cgt-flash-lire{
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:var(--fs-14);
  font-weight:var(--fw-800);
  color:var(--lien);
}
.cgt-flash-lire::after{
  /* Flèche = pictogramme de la police d'icônes (auto-hébergée), identique partout : le caractère
     « → » n'est pas dans Figtree, iOS et Android le dessinaient chacun avec sa police de repli
     (trait gras / flèche filiforme — charte-07). */
  content:"\f061";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  font-size:.85em;
  display:inline-block;
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort);
}

/* ---------- 2.1 « À la une » ---------- */
.cgt-flash-une.cgt-carte:not(#cgt){
  position:relative;
  isolation:isolate;          /* contexte d'empilement garanti : le pinceau (z-index:-1) reste sur l'aplat */
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:16px;
  min-width:0;
  padding:34px 40px 30px 36px;
  overflow:hidden;
  background:var(--bande);
  color:var(--bande-texte);
  border:0;
  border-left:8px solid var(--rub);
  box-shadow:7px 7px 0 0 var(--rub), 14px 18px 36px 0 rgba(0,0,0,.22);
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort);
}
/* Coup de pinceau de la rubrique, en haut à droite (parcimonie : la seule affiche) */
.cgt-flash-une::before{
  content:"";
  position:absolute;
  top:26px;
  right:-18px;
  width:210px;
  height:40px;
  background:var(--rub);
  opacity:.9;
  -webkit-mask-image:url("../../images/cgt/pinceau-masque.svg");
  mask-image:url("../../images/cgt/pinceau-masque.svg");
  -webkit-mask-size:100% 100%;
  mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  transform-origin:right center;
  pointer-events:none;
  /* Sous le contenu (l'article, en translate, est son propre contexte d'empilement) :
     aucun bloc du texte n'a besoin d'être positionné pour passer devant le pinceau. */
  z-index:-1;
}
/* Revue finale : aucun bloc du texte n'est positionné. Le titre en position:relative
   devenait le bloc conteneur du ::after du lien étiré, qui ne couvrait alors que le
   titre ; le chapô et le pied (z-index:1) restaient au-dessus : « Lire l'article »
   et le chapô ne réagissaient pas au clic. Le ::after se cale désormais sur l'article
   entier et passe devant tout (z-index:2). */
.cgt-flash-une-haut{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 16px;
  margin:0;
}
.cgt-flash-une-autocollant{
  display:inline-block;
  padding:5px 12px 4px;
  background:var(--cgt-jaune);
  color:var(--sur-jaune);
  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(--tranche-jaune);
  rotate:-2deg;
}
.cgt-flash-une .cgt-flash-etiquette{ font-size:var(--fs-18); color:var(--rub-clair); }
.cgt-flash-une-titre{
  margin:4px 0 0;
  max-width:22ch;
  font-family:var(--police-texte);
  font-size:clamp(1.75rem, 1.05rem + 1.9vw, 3rem);
  font-weight:var(--fw-900);
  line-height:1.06;
  letter-spacing:-.025em;
  color:var(--bande-texte);
  overflow-wrap:anywhere;
}
.cgt-flash-une-extrait{
  margin:0;
  max-width:62ch;
  font-size:var(--fs-18);
  line-height:var(--lh-para);
  color:var(--bande-texte-2);
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.cgt-flash-une-pied{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 24px;
  width:100%;
  margin:auto 0 0;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.18);
  font-size:var(--fs-14);
  font-weight:var(--fw-600);
  color:var(--bande-texte-2);
}
.cgt-flash-une .cgt-flash-lire{
  font-size:var(--fs-16);
  color:var(--bande-texte);
}
.cgt-flash-une .cgt-flash-lire > span{
  text-decoration:underline;
  text-decoration-color:var(--cgt-jaune);
  text-decoration-thickness:3px;
  text-underline-offset:.32em;
}
.cgt-flash-une .cgt-flash-lien:focus-visible::after{ outline-color:var(--cgt-jaune); outline-offset:-7px; }  /* l'affiche coupe ce qui déborde */
@media (hover: hover){
  .cgt-flash-une.cgt-carte:not(#cgt):hover{
    translate:-2px -2px;
    box-shadow:9px 9px 0 0 var(--rub), 18px 22px 40px 0 rgba(0,0,0,.26);
  }
  .cgt-flash-une:hover .cgt-flash-lire::after{ translate:4px 0; }
}
.cgt-flash-une.cgt-carte:not(#cgt):active{
  translate:4px 4px;
  box-shadow:2px 2px 0 0 var(--rub), 4px 6px 12px 0 rgba(0,0,0,.2);
  transition-duration:0ms;
}

/* ---------- 2.2 Cartes ---------- */
.cgt-flash-carte.cgt-carte:not(#cgt){
  position:relative;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
  padding:22px 24px 18px;
  border-top:5px solid var(--rub);
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort);
}
.cgt-flash-carte-haut{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 12px;
  margin:0;
}
.cgt-flash-nouveau{
  box-shadow:2px 2px 0 0 var(--tranche-jaune);
  rotate:2deg;
}
.cgt-flash-carte-titre{
  margin:0;
  font-family:var(--police-texte);
  font-size:var(--fs-20);
  font-weight:var(--fw-800);
  line-height:1.25;
  letter-spacing:-.01em;
  color:var(--texte);
  overflow-wrap:anywhere;
}
.cgt-flash-carte-extrait{
  margin:0;
  font-size:var(--fs-15);
  line-height:var(--lh-para);
  color:var(--texte-2);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.cgt-flash-carte-pied{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 16px;
  margin:auto 0 0;
  padding-top:14px;
  border-top:1px solid var(--filet);
  font-size:var(--fs-13);
  font-weight:var(--fw-600);
  color:var(--texte-3);
}
@media (hover: hover){
  .cgt-flash-carte.cgt-carte:not(#cgt):hover{
    translate:-2px -2px;
    box-shadow:var(--relief-1-survol);
  }
  .cgt-flash-carte:hover .cgt-flash-lien{
    text-decoration:underline;
    text-decoration-color:var(--rub);
    text-decoration-thickness:3px;
    text-underline-offset:.2em;
  }
  .cgt-flash-carte:hover .cgt-flash-lire::after{ translate:4px 0; }
}
.cgt-flash-carte.cgt-carte:not(#cgt):active{
  translate:2px 2px;
  box-shadow:var(--relief-filet);
  transition-duration:0ms;
}

/* Grand écran : « À la une » occupe deux colonnes sur deux rangées */
@media (min-width: 1200px){
  .cgt-flash-une.cgt-carte:not(#cgt){ grid-column:span 2; grid-row:span 2; padding:44px 52px 34px 46px; }
  .cgt-flash-une-titre{ font-size:clamp(2.5rem, 1.2rem + 2.6vw, 4rem); max-width:18ch; }
  .cgt-flash-une-extrait{ font-size:var(--fs-20); -webkit-line-clamp:5; }
  .cgt-flash-une::before{ top:34px; width:260px; height:48px; }
}
@media (min-width: 769px) and (max-width: 1199px){
  .cgt-flash-grille{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .cgt-flash-une.cgt-carte:not(#cgt){ grid-column:1 / -1; }
}

/* Pagination (puces de la charte, 30-composants § 14) */
.cgt-flash-pagination .sm-pagination{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:8px 0 0;
}
.cgt-flash-pagination .sm-pagination-ellipsis{ padding:0 4px; color:var(--texte-3); font-weight:var(--fw-800); }


/* ==========================================================================
   3. LECTURE (pleine page #sm-news-read-modal)
   ========================================================================== */
.sm-fullpage-modal.cgt-flash-lecture{
  display:block;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  font-family:var(--police-texte);
  color:var(--texte);
}
.cgt-flash-lecture *, .cgt-flash-lecture *::before, .cgt-flash-lecture *::after{ box-sizing:border-box; }
.cgt-flash-lecture:focus{ outline:none; }

/* Barre collante : retour + marque */
.cgt-flash-lecture-barre{
  position:sticky;
  top:0;
  z-index:3;
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px max(24px, calc((100% - 868px) / 2)) 12px;
  padding-top:calc(14px + env(safe-area-inset-top, 0px));
  background:var(--bande);
  color:var(--bande-texte);
}
.cgt-flash-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-flash-retour:hover{ background:rgba(255,255,255,.10); } }
.cgt-flash-retour:active{ translate:3px 3px; box-shadow:0 0 0 0 var(--rub, var(--cgt-rouge)); transition-duration:0ms; }
.cgt-flash-retour:focus-visible{ outline:2px solid var(--cgt-jaune); outline-offset:3px; }
.cgt-flash-lecture-marque{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:var(--fs-12);
  font-weight:var(--fw-900);
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--bande-texte-2);
}
.cgt-flash-lecture-marque i{ color:var(--cgt-jaune); font-size:14px; }

/* L'affiche : encre (pied de page de cgt.fr) à filet de rubrique */
.cgt-flash-lecture-tete{
  background:var(--bande);
  color:var(--bande-texte);
  border-bottom:6px solid var(--rub);
  padding:10px 24px 70px;
}
.cgt-flash-lecture-affiche{ max-width:820px; margin:0 auto; }
.cgt-flash-lecture-etiquettes{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 16px;
  margin:0 0 14px;
}
.cgt-flash-lecture-rubrique{
  font-family:var(--police-accent);
  font-style:italic;
  font-weight:var(--fw-accent);
  font-size:var(--fs-20);
  line-height:1.3;
  letter-spacing:var(--ls-etiquette);
  color:var(--rub-clair);   /* bas de casse écrit à la source (sigles gardés) */
}
.cgt-flash-apercu{
  display:inline-block;
  padding:4px 10px 3px;
  background:var(--cgt-jaune);
  color:var(--sur-jaune);
  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(--tranche-jaune);
  rotate:-1.5deg;
}
.cgt-flash-lecture-titre{
  margin:0;
  max-width:24ch;
  font-family:var(--police-texte);
  font-size:clamp(1.75rem, 1.15rem + 2.2vw, 3.25rem);
  font-weight:var(--fw-900);
  line-height:1.06;
  letter-spacing:-.025em;
  color:var(--bande-texte);
  overflow-wrap:anywhere;
}
.cgt-flash-lecture-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px 28px;
  margin-top:26px;
}
.cgt-flash-auteur{ display:flex; align-items:center; gap:12px; min-width:0; }
.cgt-flash-auteur-texte{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.cgt-flash-auteur-nom{ font-size:var(--fs-16); font-weight:var(--fw-800); color:var(--bande-texte); }
.cgt-flash-auteur-role{ font-size:var(--fs-13); font-weight:var(--fw-600); color:var(--bande-texte-2); }
.cgt-flash-chiffres{
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  margin:0;
  padding:0;
  list-style:none;
  font-size:var(--fs-14);
  font-weight:var(--fw-600);
  color:var(--bande-texte-2);
}
.cgt-flash-chiffres li{ display:inline-flex; align-items:center; gap:8px; margin:0; }
.cgt-flash-chiffres i{ color:var(--rub-clair); font-size:13px; }

/* Corps : colonne de lecture qui « mord » sur l'affiche */
.cgt-flash-lecture-corps{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:28px;
  max-width:868px;
  margin:-44px auto 0;
  padding:0 24px calc(56px + env(safe-area-inset-bottom, 0px));
}
.cgt-flash-article.cgt-carte:not(#cgt){
  padding:40px 48px 44px;
  box-shadow:var(--relief-2);
}
.cgt-flash-lecture-fin{ display:flex; justify-content:center; padding-top:4px; }

/* Typographie de l'article (HTML de l'éditeur) */
.cgt-flash-contenu{
  font-size:var(--fs-18);
  line-height:1.7;
  color:var(--texte);
  overflow-wrap:anywhere;
}
.cgt-flash-contenu > :first-child{ margin-top:0; }
.cgt-flash-contenu > :last-child{ margin-bottom:0; }
.cgt-flash-contenu p{ margin:0 0 1em; }
/* Chapô : le premier paragraphe, plus grand (écriture de presse) */
.cgt-flash-contenu > p:first-child{
  font-size:var(--fs-20);
  font-weight:var(--fw-500);
  line-height:1.6;
  color:var(--texte);
}
.cgt-flash-contenu :is(h2, h3, h4){
  margin:1.6em 0 .5em;
  font-family:var(--police-texte);
  font-weight:var(--fw-800);
  line-height:1.25;
  letter-spacing:-.01em;
  color:var(--texte);
}
.cgt-flash-contenu h2{ font-size:var(--fs-24); }
.cgt-flash-contenu h2::before{
  content:"";
  display:block;
  width:40px;
  height:4px;
  margin-bottom:12px;
  background:var(--cgt-rouge);
}
.cgt-flash-contenu h3{ font-size:var(--fs-20); }
.cgt-flash-contenu h4{ font-size:var(--fs-18); }
.cgt-flash-contenu :is(ul, ol){ margin:0 0 1em; padding-left:1.4em; }
.cgt-flash-contenu li{ margin:0 0 .4em; }
.cgt-flash-contenu li::marker{ color:var(--cgt-rouge); font-weight:var(--fw-800); }
.cgt-flash-contenu strong, .cgt-flash-contenu b{ font-weight:var(--fw-800); }
.cgt-flash-contenu a:not(.sm-btn){
  color:var(--lien);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:.2em;
}
.cgt-flash-contenu a:not(.sm-btn):hover{ color:var(--lien-survol); text-decoration-thickness:2px; }
.cgt-flash-contenu img{
  display:block;
  max-width:100%;
  height:auto;
  margin:1.4em 0;
  border:1px solid var(--filet);
  box-shadow:4px 4px 0 0 var(--tranche);
}
/* 3.0.0-beta.55 (signalé par Kevin le 08/10) : « les images/icônes des Flash sont en plein
   écran sur téléphone, l'article n'est plus lisible ».
   1. Émoticônes collées depuis un site WordPress, un e-mail (Gmail…) ou Twemoji : ce sont
      des images, souvent des SVG SANS dimensions ; en bloc à max-width:100 %, chacune
      prenait toute la largeur (324 × 324 px sur un écran de 390), cadre et ombre compris.
      → à la taille du texte. (.cgt-flash-emoji : posée par SM.cgtFlashImagesContenu quand
      le texte de remplacement est une émoticône.)
   2. Petites icônes (≤ 128 px, .cgt-flash-picto posée au chargement) : dans la ligne, à
      leur taille, sans cadre.
   3. Les autres images (photos, affiches, logos) : jamais plus hautes que la moitié de
      l'écran du téléphone ; centrées.
   Même règle dans l'éditeur (.cgt-flash-zone : Flash info et newsletters). */
/* :not(#cgt) : ces deux règles l'emportent sur celle des grandes images (3), quel que soit l'ordre */
:is(.cgt-flash-contenu, .cgt-flash-zone) img:is(.emoji, .wp-smiley, .cgt-flash-emoji, [src*="/images/core/emoji/"], [src*="twemoji"], [src*="notoemoji"], [data-emoji]):not(#cgt){
  display:inline-block;
  width:1.25em;
  height:1.25em;
  max-width:none;
  max-height:none;
  margin:0 .08em;
  vertical-align:-.22em;
  border:0;
  box-shadow:none;
  background:none;
}
:is(.cgt-flash-contenu, .cgt-flash-zone) img.cgt-flash-picto:not(#cgt){
  display:inline-block;
  width:auto;
  height:auto;
  max-width:min(100%, 128px);
  max-height:128px;
  margin:0 .25em;
  vertical-align:middle;
  border:0;
  box-shadow:none;
}
@media (max-width: 768px){
  :is(.cgt-flash-contenu, .cgt-flash-zone) img{
    width:auto;
    max-height:50vh;
    margin-left:auto;
    margin-right:auto;
  }
}
.cgt-flash-contenu blockquote{
  margin:1.4em 0;
  padding:14px 20px;
  background:var(--papier-2);
  border-left:6px solid var(--cgt-jaune);
  font-family:var(--police-accent);
  font-style:italic;
  font-size:var(--fs-20);
  line-height:1.5;
  color:var(--texte);
}
.cgt-flash-contenu hr{
  width:var(--barre-titre-l);
  height:var(--barre-titre-h);
  margin:1.6em 0;
  border:0;
  background:var(--cgt-rouge);
}
/* Bouton « Consulter le document » des notifications de document (HTML serveur) */
.cgt-flash-contenu .sm-document-btn-wrap{ margin-top:1.2em; }
.cgt-flash-contenu .sm-btn-document-view:not(#cgt){
  --b-fond:var(--action);
  --b-texte:var(--action-texte);
  --b-bord:var(--action-bas);
  --b-tranche:var(--tranche-rouge);
  --b-ombre:rgba(201,42,42,.28);
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:10px 22px;
  font-size:var(--fs-16);
  text-decoration:none;
}

/* Blocs (galerie) */
.cgt-flash-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-flash-bloc-titre::before{
  content:"";
  flex:none;
  width:12px;
  height:12px;
  background:var(--rub);
}
.cgt-flash-bloc-nombre{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:22px;
  padding:0 6px;
  background:var(--cgt-jaune);
  color:var(--sur-jaune);
  font-size:var(--fs-12);
  font-weight:var(--fw-900);
  letter-spacing:0;
}
.cgt-flash-galerie.cgt-carte:not(#cgt){ padding:24px 28px 28px; }

/* Mosaïque : la première photo est grande dès 3 photos */
.cgt-flash-galerie-grille{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
  margin:0;
  padding:0;
  list-style:none;
}
.cgt-flash-galerie-grille[data-nombre="1"]{ grid-template-columns:minmax(0, 1fr); }
.cgt-flash-galerie-grille[data-nombre="2"]{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
.cgt-flash-galerie-grille[data-nombre="3"]{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.cgt-flash-galerie-grille:is([data-nombre="3"], [data-nombre="4"], [data-nombre="5"]) > .cgt-flash-galerie-case:first-child{
  grid-column:span 2;
  grid-row:span 2;
}
.cgt-flash-galerie-case{ margin:0; min-width:0; }
.cgt-flash-galerie-case[hidden]{ display:none; }
.cgt-flash-vignette{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:1 / 1;
  margin:0;
  padding:0;
  overflow:hidden;
  background:var(--papier-3);
  border:1px solid var(--filet);
  border-radius:0;
  box-shadow:3px 3px 0 0 var(--tranche);
  cursor:zoom-in;
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort);
  -webkit-tap-highlight-color:transparent;
}
.cgt-flash-galerie-grille[data-nombre="1"] .cgt-flash-vignette{ aspect-ratio:16 / 9; }
.cgt-flash-galerie-grille[data-nombre="2"] .cgt-flash-vignette{ aspect-ratio:4 / 3; }
.cgt-flash-vignette img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  scale:1;
  transition:scale var(--duree-5) var(--courbe-sortie);
}
@media (hover: hover){
  .cgt-flash-vignette:hover{ translate:-2px -2px; box-shadow:5px 5px 0 0 var(--rub); }
  .cgt-flash-vignette:hover img{ scale:1.04; }
}
.cgt-flash-vignette:active{ translate:2px 2px; box-shadow:0 0 0 0 var(--tranche); transition-duration:0ms; }
.cgt-flash-vignette:focus-visible{ outline:3px solid var(--focus); outline-offset:3px; }


/* ==========================================================================
   4. VISIONNEUSE (#sm-gallery-lightbox) — encre opaque, tirage à bord blanc
   ========================================================================== */
.cgt-flash-visionneuse{
  position:fixed;
  top:0; right:0; bottom:0; left:0;
  z-index:2147483647;                 /* au-dessus des modales du gabarit (même plan, ajoutée après) */
  display:flex;
  align-items:center;
  justify-content:center;
  padding:calc(76px + env(safe-area-inset-top, 0px)) 92px calc(76px + env(safe-area-inset-bottom, 0px));
  background:var(--gris-sombre-0);    /* opaque (règle des modales) : encre constante */
  font-family:var(--police-texte);
}
.cgt-flash-visionneuse-tirage{
  display:inline-flex;
  max-width:100%;
  max-height:100%;
  margin:0;
  padding:8px;
  background:var(--cgt-blanc);
  box-shadow:8px 8px 0 0 var(--cgt-rouge), 0 24px 60px 0 rgba(0,0,0,.6);
}
.cgt-flash-visionneuse-tirage img{
  display:block;
  max-width:calc(100vw - 200px);
  max-height:calc(100vh - 168px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  width:auto;
  height:auto;
  object-fit:contain;
}
/* Revue B : photo introuvable → carton d'encre « Photo indisponible » (pas d'image cassée) */
.cgt-flash-visionneuse-indispo{ display:none; }
.cgt-flash-visionneuse-tirage--indispo{ padding:0; background:var(--gris-sombre-2); box-shadow:8px 8px 0 0 var(--cgt-rouge), 0 24px 60px 0 rgba(0,0,0,.6); }
.cgt-flash-visionneuse-tirage--indispo img{ display:none; }
.cgt-flash-visionneuse-tirage--indispo .cgt-flash-visionneuse-indispo{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:420px;
  max-width:calc(100vw - 48px);
  min-height:240px;
  padding:28px 24px;
  text-align:center;
  color:var(--cgt-blanc);
  border:2px solid rgba(255,255,255,.28);
}
.cgt-flash-visionneuse-indispo i{ font-size:34px; color:var(--t-actualite-encre); }
.cgt-flash-visionneuse-indispo span{ font-size:var(--fs-18); font-weight:var(--fw-900); }
.cgt-flash-visionneuse-indispo small{ font-size:var(--fs-14); color:var(--bande-texte-2); }
.cgt-flash-visionneuse-bouton{
  position:absolute;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  margin:0;
  padding:0;
  background:transparent;
  color:var(--cgt-blanc);
  border:2px solid rgba(255,255,255,.72);
  border-radius:0;
  box-shadow:3px 3px 0 0 var(--cgt-rouge);
  font-size:20px;
  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-flash-visionneuse-bouton:hover{ background:rgba(255,255,255,.12); border-color:var(--cgt-blanc); } }
.cgt-flash-visionneuse-bouton:active{ translate:3px 3px; box-shadow:0 0 0 0 var(--cgt-rouge); transition-duration:0ms; }
.cgt-flash-visionneuse-bouton:focus-visible{ outline:2px solid var(--cgt-jaune); outline-offset:3px; }
.cgt-flash-visionneuse-fermer{ top:calc(18px + env(safe-area-inset-top, 0px)); right:20px; }
.cgt-flash-visionneuse-prec{ left:22px; top:50%; margin-top:-26px; }
.cgt-flash-visionneuse-suiv{ right:22px; top:50%; margin-top:-26px; }
.cgt-flash-visionneuse-compteur{
  position:absolute;
  left:50%;
  bottom:calc(22px + env(safe-area-inset-bottom, 0px));
  z-index:2;
  margin:0;
  padding:6px 14px 5px;
  background:var(--cgt-jaune);
  color:var(--sur-jaune);
  font-size:var(--fs-14);
  font-weight:var(--fw-900);
  font-variant-numeric:tabular-nums;
  box-shadow:3px 3px 0 0 var(--tranche-jaune);
  translate:-50% 0;
}


/* ==========================================================================
   5. GESTION (#admin/news) — bilan, tableau (bureau), cartes (mobile)
   ========================================================================== */
/* Bilan : composant commun .cgt-chiffre / .cgt-chiffres (30-composants § 23, revue finale) */

/* Tableau (bureau) */
.cgt-flash-tableau.cgt-carte:not(#cgt){ padding:0; overflow-x:auto; }
.cgt-flash-table{ width:100%; margin:0; border-spacing:0; }
.cgt-flash-table.sm-table:not(#cgt) :is(th, td){ padding:14px 16px; vertical-align:middle; }
.cgt-flash-table.sm-table:not(#cgt) th{ white-space:nowrap; }
.cgt-flash-table tbody td:first-child{ box-shadow:inset 5px 0 0 0 var(--rub); padding-left:22px; }
.cgt-flash-t-titre{ min-width:220px; }
.cgt-flash-t-nom{
  display:block;
  font-size:var(--fs-15);
  font-weight:var(--fw-800);
  line-height:1.35;
  color:var(--texte);
  overflow-wrap:anywhere;
}
.cgt-flash-t-sous{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 12px;
  margin-top:4px;
}
.cgt-flash-t-sous .cgt-flash-etiquette{ font-size:var(--fs-15); }
.cgt-flash-t-date{ white-space:nowrap; color:var(--texte-2); font-size:var(--fs-14); }
.cgt-flash-t-actions{ width:1%; white-space:nowrap; }
.cgt-flash-actions{ display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.cgt-flash-auteur-mini{ display:inline-flex; align-items:center; gap:8px; font-size:var(--fs-14); font-weight:var(--fw-600); color:var(--texte); white-space:nowrap; }
.cgt-flash-public{
  display:inline-block;
  padding:3px 8px;
  font-size:var(--fs-12);
  font-weight:var(--fw-700);
  line-height:1.3;
  white-space:nowrap;
  color:var(--texte-2);
  background:var(--papier-3);
  border:1px solid var(--filet-fort);
}
/* Rédigée avec l'assistant IA */
.cgt-flash-ia{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:1px 7px;
  font-size:var(--fs-11);
  font-weight:var(--fw-900);
  line-height:1.5;
  letter-spacing:var(--ls-majuscules);
  color:var(--info-texte);
  background:var(--info-fond);
  border:1px solid var(--info-bord);
}
.cgt-flash-ia i{ font-size:10px; }

/* Cartes (mobile) */
.cgt-flash-gcartes{ display:none; margin:0; padding:0; list-style:none; }
.cgt-flash-gcarte.cgt-carte:not(#cgt){
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:0;
  padding:16px 16px 16px 18px;
  border-left:5px solid var(--rub);
}
.cgt-flash-gcarte-haut{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; }
.cgt-flash-gcarte-date{ font-size:var(--fs-13); font-weight:var(--fw-600); color:var(--texte-3); }
.cgt-flash-gcarte-titre{
  margin:0;
  font-family:var(--police-texte);
  font-size:var(--fs-18);
  font-weight:var(--fw-800);
  line-height:1.3;
  color:var(--texte);
  overflow-wrap:anywhere;
}
.cgt-flash-gcarte .cgt-flash-t-sous{ margin-top:-4px; }
.cgt-flash-gcarte-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin:0; }
.cgt-flash-gcarte-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:4px;
  padding-top:14px;
  border-top:1px solid var(--filet);
}
.cgt-flash-gcarte-actions .sm-btn:not(.sm-btn-icon){ flex:1 1 0; min-height:44px; justify-content:center; }
.cgt-flash-gcarte-actions .sm-btn.sm-btn-icon{ flex:none; width:44px; height:44px; min-width:44px; }


/* ==========================================================================
   6. ÉDITEUR (#sm-news-editor-modal) — boîte opaque à tranche, 3 étapes
   ========================================================================== */
.cgt-flash-editeur .cgt-flash-editeur-boite{
  position:fixed;
  top:50%;
  left:50%;
  z-index:2;
  display:flex;
  flex-direction:column;
  width:760px;
  max-width:calc(100vw - 48px);
  max-height:calc(100vh - 48px);
  margin:0;
  overflow:hidden;
  transform:translate(-50%, -50%);   /* centrage ; le mouvement passe par translate/rotate/scale */
  background:var(--papier);
  color:var(--texte);
  border:1px solid var(--tranche);
  border-top:5px solid var(--cgt-rouge);
  border-radius:0;
  box-shadow:var(--relief-3);
  font-family:var(--police-texte);
}
.cgt-flash-editeur .cgt-flash-editeur-boite *,
.cgt-flash-editeur .cgt-flash-editeur-boite *::before,
.cgt-flash-editeur .cgt-flash-editeur-boite *::after{ box-sizing:border-box; }

/* En-tête : titre à mot d'accent, fermeture carrée, étapes */
.cgt-flash-editeur-tete{
  flex:none;
  padding:20px 28px 0;
  background:var(--papier);
  color:var(--texte);
}
.cgt-flash-editeur-ligne{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.cgt-flash-editeur-titre{
  margin:2px 0 0;
  font-family:var(--police-texte);
  font-size:var(--fs-28);
  font-weight:var(--fw-400);
  line-height:1.15;
  letter-spacing:var(--ls-accent);
  color:var(--texte);
}
.cgt-flash-editeur-titre .cgt-accent{ color:var(--accent-titre); }
.cgt-flash-fermer{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  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);
  font-size:18px;
  cursor:pointer;
  translate:0 0;
  transition:translate var(--duree-3) var(--courbe-ressort);
  -webkit-tap-highlight-color:transparent;
}
@media (hover: hover){ .cgt-flash-fermer:hover{ background:var(--papier-3); } }
.cgt-flash-fermer:active{ translate:3px 3px; box-shadow:0 0 0 0 var(--tranche-bouton); transition-duration:0ms; }
.cgt-flash-fermer:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; }

/* Étapes : carrés numérotés reliés par un filet (le stepper d'adhésion du gabarit
   porte les mêmes classes : tout est ancré à l'éditeur) */
#sm-news-editor-modal .cgt-flash-etapes{
  display:flex;
  align-items:center;
  gap:0;
  margin:20px 0 0;
  padding:0 0 18px;
  list-style:none;
}
#sm-news-editor-modal .cgt-flash-etapes .sm-wizard-step:not(#cgt){
  display:flex;
  flex:1 1 0;
  align-items:center;
  gap:10px;
  min-width:0;
  margin:0;
  padding:0;
  background:transparent;
  font-size:var(--fs-14);
  font-weight:var(--fw-700);
  color:var(--texte-3);
}
#sm-news-editor-modal .cgt-flash-etapes .sm-wizard-step:not(#cgt):last-child{ flex:0 0 auto; }
#sm-news-editor-modal .cgt-flash-etapes .sm-wizard-step:not(#cgt):not(:last-child)::after{
  content:"";
  flex:1 1 auto;
  min-width:16px;
  height:3px;
  margin:0 10px 0 4px;
  background:var(--filet-fort);
}
#sm-news-editor-modal .sm-wizard-step-num{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  font-size:var(--fs-14);
  font-weight:var(--fw-900);
  color:var(--texte-3);
  background:var(--papier);
  border:2px solid var(--filet-fort);
  border-radius:0;
}
#sm-news-editor-modal .sm-wizard-step-num i{ font-size:13px; color:inherit; }
.cgt-flash-etape-nom{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#sm-news-editor-modal .cgt-flash-etapes .sm-wizard-step.active:not(#cgt){ color:var(--texte); }
#sm-news-editor-modal .sm-wizard-step.active .sm-wizard-step-num{
  color:var(--action-texte);
  background:var(--action);
  border-color:var(--action-bas);
  box-shadow:3px 3px 0 0 var(--tranche-rouge);
}
#sm-news-editor-modal .cgt-flash-etapes .sm-wizard-step.done:not(#cgt){ color:var(--texte-2); }
#sm-news-editor-modal .sm-wizard-step.done .sm-wizard-step-num{
  color:var(--papier);
  background:var(--texte);
  border-color:var(--texte);
}
#sm-news-editor-modal .cgt-flash-etapes .sm-wizard-step.done:not(#cgt):not(:last-child)::after{ background:var(--texte); }

/* Progression : barre rouge (transform seulement) pilotée par data-etape */
.cgt-flash-progression.sm-wizard-progress:not(#cgt){
  flex:none;
  height:4px;
  margin:0;
  overflow:hidden;
  background:var(--piste);
  border:0;
  border-radius:0;
  box-shadow:none;
}
.cgt-flash-progression .sm-wizard-progress-fill:not(#cgt){
  display:block;
  width:100%;
  height:100%;
  background:var(--cgt-rouge);
  border-radius:0;
  transform-origin:left center;
  transform:scaleX(.3334);
  transition:transform var(--duree-4) var(--courbe-sortie);
}
#sm-news-editor-modal[data-etape="2"] .sm-wizard-progress-fill:not(#cgt){ transform:scaleX(.6667); }
#sm-news-editor-modal[data-etape="3"] .sm-wizard-progress-fill:not(#cgt){ transform:scaleX(1); }

/* Corps défilant */
.cgt-flash-editeur-form{
  flex:1 1 auto;
  min-height:0;
  margin:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
#sm-news-editor-modal .sm-wizard-step-content{ display:none; }
#sm-news-editor-modal .sm-wizard-step-content.active{ display:block; }
.cgt-flash-editeur-corps{ padding:26px 28px 10px; }
.cgt-flash-etape-titre{
  margin:0;
  font-family:var(--police-texte);
  font-size:var(--fs-20);
  font-weight:var(--fw-800);
  line-height:1.25;
  color:var(--texte);
}
.cgt-flash-etape-desc{ margin:6px 0 22px; font-size:var(--fs-15); line-height:var(--lh-corps); color:var(--texte-2); }

/* Champs */
.cgt-flash-champ{ display:flex; flex-direction:column; gap:8px; min-width:0; margin:0 0 22px; }
.cgt-flash-libelle{
  display:block;
  margin:0;
  font-size:var(--fs-12);
  font-weight:var(--fw-700);
  line-height:1.3;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--texte-3);
}
.cgt-flash-requis{ color:var(--lien); }
.cgt-flash-facultatif{ font-weight:var(--fw-500); letter-spacing:0; text-transform:none; color:var(--texte-indice); }
.cgt-flash-editeur :is(input.sm-input, select.sm-input, textarea.sm-input),
.cgt-flash-ia-modale textarea.sm-input{
  display:block;
  width:100%;
  min-height:48px;
  margin:0;
  padding:12px 14px;
  font-family:var(--police-texte);
  font-size:var(--fs-16);
  line-height:1.4;
  border:1px solid var(--bord-champ);
}
.cgt-flash-editeur textarea.sm-input,
.cgt-flash-ia-modale textarea.sm-input{ resize:vertical; }
.cgt-flash-editeur input.cgt-flash-titre-champ{
  min-height:56px;
  font-size:var(--fs-20);
  font-weight:var(--fw-700);
  letter-spacing:-.01em;
}
.cgt-flash-editeur :is(input, textarea)::placeholder{ color:var(--texte-indice); opacity:1; font-weight:var(--fw-500); }

/* Rédaction : barre d'outils + zone éditable, un seul cadre */
.cgt-flash-redaction{
  background:var(--papier);
  border:1px solid var(--bord-champ);
  box-shadow:var(--relief-champ);
}
.cgt-flash-redaction:hover{ border-color:var(--bord-champ-survol); }
.cgt-flash-redaction:focus-within{ border-color:var(--focus); box-shadow:0 0 0 3px var(--focus-halo), var(--relief-champ); }
.cgt-flash-outils{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 10px;
  padding:6px 8px;
  background:var(--papier-2);
  border-bottom:1px solid var(--filet);
}
.cgt-flash-outils-groupe{ display:flex; align-items:center; gap:2px; }
.cgt-flash-outils-groupe + .cgt-flash-outils-groupe{ padding-left:10px; border-left:1px solid var(--filet-fort); }
.cgt-flash-outil{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  margin:0;
  padding:0;
  background:transparent;
  color:var(--texte-2);
  border:0;
  border-radius:0;
  font-size:15px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
@media (hover: hover){ .cgt-flash-outil:hover{ background:var(--papier-3); color:var(--texte); } }
.cgt-flash-outil:active{ background:var(--texte); color:var(--papier); }
.cgt-flash-outil:focus-visible{ outline:2px solid var(--focus); outline-offset:-2px; }
.cgt-flash-ia-bouton.sm-btn{ margin-left:auto; }
.cgt-flash-zone{
  min-height:240px;
  max-height:50vh;
  overflow-y:auto;
  padding:16px 18px;
  font-family:var(--police-texte);
  font-size:var(--fs-16);
  line-height:1.65;
  color:var(--texte);
  background:var(--papier);
  outline:none;
  overflow-wrap:anywhere;
  -webkit-user-select:text;
  user-select:text;
}
.cgt-flash-zone:empty::before,
.cgt-flash-zone.empty::before{
  content:attr(data-placeholder);
  color:var(--texte-indice);
  pointer-events:none;
}
.cgt-flash-zone p{ margin:0 0 .8em; }
.cgt-flash-zone :is(h2, h3){ margin:1em 0 .4em; font-size:var(--fs-20); font-weight:var(--fw-800); line-height:1.3; }
.cgt-flash-zone :is(ul, ol){ margin:0 0 .8em; padding-left:1.4em; }
.cgt-flash-zone li::marker{ color:var(--cgt-rouge); }
.cgt-flash-zone a{ color:var(--lien); text-decoration:underline; }
.cgt-flash-zone img{ display:block; max-width:100%; height:auto; margin:.8em 0; }

/* Étape 2 : deux blocs « médias » à filet de rubrique */
.cgt-flash-medias{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); align-items:start; gap:20px; margin-bottom:18px; }
.cgt-flash-media{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
  padding:18px;
  background:var(--papier);
  border:1px solid var(--filet);
  border-top:4px solid var(--rub);
  box-shadow:var(--relief-1);
}
.cgt-flash-media-tete{ display:flex; align-items:center; gap:12px; }
.cgt-flash-media-picto{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  background:var(--rub-plein);
  color:var(--rub-sur);
  box-shadow:3px 3px 0 0 var(--tranche);
  font-size:17px;
}
.cgt-flash-media-picto i{ color:inherit; }
.cgt-flash-media-textes{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.cgt-flash-media-titre{ font-size:var(--fs-16); font-weight:var(--fw-800); color:var(--texte); }
.cgt-flash-media-desc{ font-size:var(--fs-13); color:var(--texte-3); }

/* Couverture (revue B) : plus de photo tierce. Aperçu de ce que voit le lecteur :
   affiche d'encre à filet et tranche du THÈME choisi, coup de pinceau de la rubrique,
   autocollant jaune, titre en Figtree 900 (même peau que « À la une »). */
.cgt-flash-couverture-une{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
  gap:12px;
  min-height:168px;
  margin:0;
  padding:22px 22px 20px 20px;
  overflow:hidden;
  background:var(--bande);
  color:var(--bande-texte);
  border-left:6px solid var(--rub);
  box-shadow:5px 5px 0 0 var(--rub);
}
.cgt-flash-couverture-une::before{
  content:"";
  position:absolute;
  top:18px;
  right:-14px;
  width:170px;
  height:32px;
  background:var(--rub);
  opacity:.9;
  -webkit-mask-image:url("../../images/cgt/pinceau-masque.svg");
  mask-image:url("../../images/cgt/pinceau-masque.svg");
  -webkit-mask-size:100% 100%;
  mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  pointer-events:none;
}
.cgt-flash-couverture-une-haut{ position:relative; z-index:1; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.cgt-flash-couverture-une .cgt-flash-etiquette{ color:var(--rub-clair); }
.cgt-flash-couverture-une .cgt-flash-etiquette[hidden]{ display:none; }
.cgt-flash-couverture-une-titre{
  position:relative;
  z-index:1;
  display:block;
  max-width:100%;
  font-family:var(--police-texte);
  font-size:var(--fs-20);
  font-weight:var(--fw-900);
  line-height:1.2;
  letter-spacing:var(--ls-titre);
  color:var(--bande-texte);
  overflow-wrap:anywhere;
}
.cgt-flash-couverture-note{ margin:0; font-size:var(--fs-13); color:var(--texte-3); }

/* Galerie de l'éditeur (SMGalleryManager, gallery-editor.js) */
.sm-gallery-manager{ margin:0; }
.sm-gallery-dropzone{
  padding:22px 16px 20px;
  text-align:center;
  background:var(--papier-2);
  border:2px dashed var(--filet-fort);
  border-radius:0;
  cursor:pointer;
  transition:border-color var(--duree-2) var(--courbe-simple), background-color var(--duree-2) var(--courbe-simple);
}
.sm-gallery-dropzone:hover,
.sm-gallery-dropzone.sm-dragover{ border-color:var(--rub, var(--texte)); background:var(--rub-fond, var(--papier-3)); }
.sm-gallery-dropzone:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; }
.sm-dropzone-content p{ margin:3px 0; font-size:var(--fs-14); line-height:1.45; color:var(--texte-2); }
.sm-dropzone-content strong{ font-size:var(--fs-15); font-weight:var(--fw-800); color:var(--texte); }
.sm-dropzone-content .sm-dropzone-info{ margin-top:8px; font-size:var(--fs-12); color:var(--texte-indice); }
.sm-gallery-preview:not([hidden]){
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(88px, 1fr));
  gap:10px;
  margin-top:14px;
}
.sm-gallery-manager .sm-gallery-item{
  position:relative;
  min-width:0;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:var(--papier-3);
  border:1px solid var(--filet);
  border-radius:0;
  box-shadow:2px 2px 0 0 var(--tranche);
  cursor:grab;
}
.sm-gallery-manager .sm-gallery-item.sm-main{ grid-column:span 2; grid-row:span 2; }
.sm-gallery-manager .sm-gallery-item img{ display:block; width:100%; height:100%; object-fit:cover; }
.sm-gallery-manager .sm-gallery-item.sm-dragging{ opacity:.45; }
.sm-gallery-manager .sm-gallery-item.sm-drag-over{ outline:3px solid var(--focus); outline-offset:-3px; }
.sm-gallery-remove{
  position:absolute;
  top:6px;
  right:6px;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  margin:0;
  padding:0;
  font-size:14px;
  color:var(--cgt-rouge-700);
  background:var(--cgt-blanc);
  border:2px solid var(--cgt-noir);
  border-radius:0;
  box-shadow:2px 2px 0 0 var(--cgt-noir);
  cursor:pointer;
}
.sm-gallery-remove i{ color:inherit; }
.sm-gallery-remove:active{ translate:2px 2px; box-shadow:0 0 0 0 var(--cgt-noir); }
.sm-gallery-remove:focus-visible{ outline:2px solid var(--focus); outline-offset:2px; }
.sm-gallery-badge{
  position:absolute;
  left:6px;
  bottom:6px;
  padding:2px 8px 1px;
  font-size:var(--fs-11);
  font-weight:var(--fw-900);
  line-height:1.5;
  letter-spacing:var(--ls-majuscules);
  text-transform:uppercase;
  color:var(--sur-jaune);
  background:var(--cgt-jaune);
  box-shadow:2px 2px 0 0 var(--tranche-jaune);
}
.sm-gallery-drag-handle{
  position:absolute;
  right:6px;
  bottom:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  font-size:12px;
  color:var(--cgt-blanc);
  background:rgba(33,37,41,.78);
  pointer-events:none;
}
.sm-gallery-loading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:100%;
  padding:8px;
  font-size:var(--fs-12);
  text-align:center;
  color:var(--texte-3);
  word-break:break-all;
}
.sm-gallery-manager .sm-spinner{ width:28px; height:28px; border-width:3px; }

/* Étape 3 : paramètres en deux colonnes, programmation en encadré « à venir » */
.cgt-flash-parametres{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:24px; }
.cgt-flash-champ--large{ grid-column:1 / -1; }
.cgt-flash-programmation{
  margin-top:6px;
  padding:16px 18px 14px;
  background:var(--alerte-fond);
  border:1px solid var(--alerte-bord);
  border-left:6px solid var(--cgt-jaune);
}
.cgt-flash-programmation[hidden]{ display:none; }
.cgt-flash-programmation .cgt-flash-libelle{ color:var(--texte-2); }
.cgt-flash-programmation-ligne{ display:flex; flex-wrap:wrap; gap:14px 18px; }
.cgt-flash-sous-champ{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.cgt-flash-sous-champ:first-child{ flex:1 1 200px; }
.cgt-flash-heure{ display:flex; align-items:center; gap:8px; }
.cgt-flash-editeur .cgt-flash-heure select.sm-input{ width:92px; }
.cgt-flash-heure-sep{ font-weight:var(--fw-800); color:var(--texte-2); }
.cgt-flash-raccourcis{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.cgt-flash-raccourci{ min-height:38px; padding:0 12px; font-size:var(--fs-13); }
.cgt-flash-programmation-resume{ margin:12px 0 0; font-size:var(--fs-14); font-weight:var(--fw-700); color:var(--alerte-fort); }
.cgt-flash-programmation-resume:empty{ display:none; }

/* Pied : Précédent · Brouillon · Suivant / Publier */
.cgt-flash-editeur-pied{
  flex:none;
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 28px;
  padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  background:var(--papier-2);
  border-top:1px solid var(--filet);
}
.cgt-flash-editeur-pied .sm-btn{ min-height:46px; justify-content:center; }
.cgt-flash-editeur-pied .cgt-flash-precedent:disabled{ display:none; }
.cgt-flash-editeur-pied .cgt-flash-suivant{ margin-left:auto; min-width:160px; }
/* Étape 3 avec le statut « Brouillon » : « Enregistrer » fait déjà le brouillon */
#sm-news-editor-modal[data-etape="3"][data-statut="draft"] .cgt-flash-brouillon{ display:none; }


/* ==========================================================================
   7. ASSISTANT IA (#sm-ai-assistant-modal) — la banque d'images Unsplash est retirée (revue B)
   ========================================================================== */
#sm-ai-assistant-modal.sm-modal .sm-modal-container{ max-width:560px !important; }
.cgt-flash-ia-corps{ padding:20px 26px 26px; }
.cgt-flash-ia-aide{ margin:0 0 18px; font-size:var(--fs-15); line-height:var(--lh-corps); color:var(--texte-2); }
.cgt-flash-ia-actions{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; margin:0 0 22px; }
.cgt-flash-ia-actions .sm-btn{ min-height:46px; justify-content:center; text-align:center; }
.cgt-flash-ia-consigne{ margin:0 0 16px; }
.cgt-flash-ia-consigne label{ display:block; margin-bottom:8px; }
.cgt-flash-ia-modale textarea.sm-input{ min-height:92px; }
.cgt-flash-ia-envoyer.sm-btn{ width:100%; min-height:48px; justify-content:center; }
.cgt-flash-ia-resultat{ margin-top:22px; }
.cgt-flash-ia-resultat .cgt-flash-libelle{ margin-bottom:8px; }
.cgt-flash-ia-texte{
  max-height:220px;
  overflow-y:auto;
  padding:14px 16px;
  font-size:var(--fs-15);
  line-height:1.6;
  white-space:pre-wrap;
  color:var(--texte);
  background:var(--succes-fond);
  border:1px solid var(--succes-bord);
  border-left:5px solid var(--succes-plein);
}
.cgt-flash-ia-texte:focus-visible{ outline:2px solid var(--focus); outline-offset:2px; }
.cgt-flash-ia-suite{ display:flex; gap:12px; margin-top:14px; }
.cgt-flash-ia-suite .sm-btn-primary{ flex:1 1 auto; min-height:46px; justify-content:center; }


/* ==========================================================================
   8. RESTE COMMUN de gallery-editor.js : sablier du bouton « Enregistrer » de
   l'éditeur de photo (posé sur un bouton rouge : blanc constant)
   ========================================================================== */
.sm-spinner-small{
  display:inline-block;
  width:16px;
  height:16px;
  margin-right:8px;
  vertical-align:middle;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:var(--cgt-blanc);
  border-radius:var(--rayon-rond);
  animation:sm-spin .8s linear infinite;
}


/* ==========================================================================
   9. TABLETTE ET MOBILE
   ========================================================================== */
/* Tablette : le tableau à 6 colonnes déborde ; les cartes prennent le relais (2 par rangée) */
@media (min-width: 769px) and (max-width: 1100px){
  .cgt-flash-gcartes{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px; align-items:start; }
  .cgt-flash-tableau.cgt-carte:not(#cgt){ display:none; }
}
@media (max-width: 768px){
  .cgt-flash-page, .cgt-flash-gestion{ gap:18px; padding:2px 0 24px; }
  /* 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-flash-page .cgt-flash-entete{ display:contents; }
  .cgt-flash-entete-actions{ width:100%; padding:0 4px 0 0; }
  .cgt-flash-entete-actions .sm-btn{ flex:1 1 auto; min-height:48px; justify-content:center; }

  .cgt-flash-barre{ gap:14px; }
  .cgt-flash-recherche{ flex-basis:100%; }
  /* Puces : une rangée qui défile (la tranche reste visible : marge basse) */
  .cgt-flash-puces,
  .cgt-flash-themes{
    flex-wrap:nowrap;
    width:100%;
    margin:0;
    padding:2px 6px 6px 0;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .cgt-flash-puces::-webkit-scrollbar,
  .cgt-flash-themes::-webkit-scrollbar{ display:none; }
  .cgt-flash-puce, .cgt-flash-theme{ flex:none; min-height:40px; padding:0 14px; }
  .cgt-flash-themes{ margin-top:-6px; }

  .cgt-flash-grille{ grid-template-columns:minmax(0, 1fr); gap:20px; }
  .cgt-flash-une.cgt-carte:not(#cgt){ gap:12px; padding:24px 22px 20px 20px; border-left-width:6px; box-shadow:5px 5px 0 0 var(--rub), 8px 12px 24px 0 rgba(0,0,0,.2); }
  .cgt-flash-une::before{ display:none; }   /* parcimonie : sur téléphone, l'étiquette occupe la largeur */
  .cgt-flash-une-titre{ font-size:1.75rem; max-width:none; }
  .cgt-flash-une-extrait{ font-size:var(--fs-16); -webkit-line-clamp:5; }
  .cgt-flash-une-pied{ padding-top:14px; font-size:var(--fs-13); }
  .cgt-flash-carte.cgt-carte:not(#cgt){ padding:18px 18px 16px; }
  .cgt-flash-carte-titre{ font-size:var(--fs-18); }

  /* Lecture */
  .cgt-flash-lecture-barre{ padding-left:16px; padding-right:16px; }
  .cgt-flash-lecture-tete{ padding:4px 16px 60px; }
  .cgt-flash-lecture-titre{ font-size:1.875rem; max-width:none; }
  .cgt-flash-lecture-meta{ margin-top:20px; gap:14px; }
  .cgt-flash-chiffres{ gap:6px 16px; font-size:var(--fs-13); }
  .cgt-flash-lecture-corps{ gap:20px; margin-top:-36px; padding:0 12px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .cgt-flash-article.cgt-carte:not(#cgt){ padding:24px 20px 28px; }
  .cgt-flash-contenu{ font-size:var(--fs-16); line-height:1.65; }
  .cgt-flash-contenu > p:first-child{ font-size:var(--fs-18); }
  .cgt-flash-contenu h2{ font-size:var(--fs-20); }
  .cgt-flash-galerie.cgt-carte:not(#cgt){ padding:20px 16px 20px; }
  .cgt-flash-galerie-grille:not([data-nombre="1"]){ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
  .cgt-flash-galerie-grille:is([data-nombre="3"], [data-nombre="4"], [data-nombre="5"]) > .cgt-flash-galerie-case:first-child{ grid-row:auto; }
  .cgt-flash-galerie-grille:is([data-nombre="3"], [data-nombre="4"], [data-nombre="5"]) > .cgt-flash-galerie-case:first-child .cgt-flash-vignette{ aspect-ratio:16 / 10; }
  .cgt-flash-lecture-fin .sm-btn{ width:100%; min-height:48px; justify-content:center; }

  /* Visionneuse : boutons en bas, photo pleine largeur */
  .cgt-flash-visionneuse{ padding:calc(80px + env(safe-area-inset-top, 0px)) 12px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .cgt-flash-visionneuse-tirage{ padding:5px; box-shadow:5px 5px 0 0 var(--cgt-rouge), 0 18px 40px 0 rgba(0,0,0,.6); }
  .cgt-flash-visionneuse-tirage img{
    max-width:calc(100vw - 40px);
    max-height:calc(100vh - 196px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .cgt-flash-visionneuse-bouton{ width:48px; height:48px; }
  .cgt-flash-visionneuse-fermer{ right:16px; }
  .cgt-flash-visionneuse-prec,
  .cgt-flash-visionneuse-suiv{ top:auto; margin-top:0; bottom:calc(18px + env(safe-area-inset-bottom, 0px)); }
  .cgt-flash-visionneuse-prec{ left:16px; }
  .cgt-flash-visionneuse-suiv{ right:16px; }
  .cgt-flash-visionneuse-compteur{ bottom:calc(28px + env(safe-area-inset-bottom, 0px)); }

  /* Gestion : cartes au lieu du tableau */
  .cgt-flash-gcartes{ display:flex; flex-direction:column; gap:16px; }
  .cgt-flash-tableau.cgt-carte:not(#cgt){ display:none; }

  /* Éditeur plein écran */
  .cgt-flash-editeur .cgt-flash-editeur-boite{
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    max-width:none;
    height:100%;
    max-height:none;
    transform:none;
    border:0;
    border-top:5px solid var(--cgt-rouge);
    box-shadow:none;
  }
  .cgt-flash-editeur-tete{ padding:calc(14px + env(safe-area-inset-top, 0px)) 16px 0; }
  .cgt-flash-editeur-titre{ font-size:var(--fs-24); }
  #sm-news-editor-modal .cgt-flash-etapes{ margin-top:16px; padding-bottom:14px; }
  /* Seul le nom de l'étape courante s'affiche (les autres restent lus) */
  #sm-news-editor-modal .sm-wizard-step:not(.active) .cgt-flash-etape-nom{
    position:absolute; width:1px; height:1px; margin:-1px; padding:0;
    overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
  }
  .cgt-flash-editeur-corps{ padding:20px 16px 8px; }
  .cgt-flash-zone{ min-height:200px; max-height:none; }
  .cgt-flash-ia-bouton.sm-btn{ margin-left:0; width:100%; justify-content:center; }
  .cgt-flash-medias,
  .cgt-flash-parametres{ grid-template-columns:minmax(0, 1fr); }
  .cgt-flash-editeur-pied{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
    padding:12px 16px;
    padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .cgt-flash-editeur-pied .cgt-flash-suivant{ grid-column:1 / -1; order:-1; margin-left:0; min-width:0; }
  .cgt-flash-editeur-pied .cgt-flash-precedent:disabled + .cgt-flash-brouillon{ grid-column:1 / -1; }
  #sm-news-editor-modal[data-etape="3"][data-statut="draft"] .cgt-flash-precedent{ grid-column:1 / -1; }
  .cgt-flash-editeur-pied .sm-btn{ padding-left:10px; padding-right:10px; }

  /* Assistant de rédaction */
  .cgt-flash-ia-corps{ padding:18px 16px 24px; }
  .cgt-flash-couverture-une{ min-height:140px; padding:18px 16px 16px 16px; }
  .cgt-flash-couverture-une-titre{ font-size:var(--fs-18); }
}
@media (max-width: 380px){
  .cgt-flash-ia-actions{ grid-template-columns:minmax(0, 1fr); }
}


/* ==========================================================================
   10. MOUVEMENT — autocollants, pinceau, pleine page, visionneuse, étapes
   (cgt-motion.js pose .cgt-cascade seulement si le mouvement est permis)
   ========================================================================== */
.cgt-flash-une.cgt-cascade .cgt-flash-une-autocollant{
  animation:cgt-tdb-coup 380ms var(--courbe-tampon) 280ms backwards;
}
.cgt-flash-une.cgt-cascade::before{
  animation:cgt-tdb-trace 700ms var(--courbe-sortie) 200ms backwards;
}
.cgt-flash-une.cgt-cascade .cgt-flash-une-titre{
  /* Opacité seule : un translate ferait du titre, le temps de l'animation, le bloc
     conteneur du ::after du lien étiré (clic limité au titre pendant la cascade). */
  animation:cgt-apparition 420ms var(--courbe-sortie) 120ms backwards;
}
@media (prefers-reduced-motion: no-preference){
  .sm-fullpage-modal.cgt-flash-lecture.active{ animation:cgt-pleine-page-entree 360ms var(--courbe-sortie) backwards; }
  .cgt-flash-lecture.active .cgt-flash-lecture-affiche{ animation:cgt-page-entree 420ms var(--courbe-sortie) 90ms backwards; }
  .cgt-flash-lecture.active .cgt-flash-apercu{ animation:cgt-tdb-coup 380ms var(--courbe-tampon) 360ms backwards; }
  .cgt-flash-visionneuse{ animation:cgt-apparition var(--duree-3) var(--courbe-simple) backwards; }
  .cgt-flash-visionneuse-tirage{ animation:cgt-modale-colle 420ms var(--courbe-ressort) 60ms backwards; }
  .sm-modal.active .cgt-flash-editeur-boite{ animation:cgt-modale-colle 420ms var(--courbe-ressort) backwards; transform-origin:50% 40%; }
  #sm-news-editor-modal .sm-wizard-step-content.active{ animation:cgt-page-entree var(--duree-4) var(--courbe-sortie) backwards; }
  #sm-news-editor-modal .sm-wizard-step.active .sm-wizard-step-num{ animation:cgt-tampon 320ms var(--courbe-tampon) backwards; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 768px){
  .sm-modal.active .cgt-flash-editeur-boite{ animation:cgt-feuille-monte 420ms var(--courbe-sortie) backwards; }
}
