/* ==========================================================================
   CGT-VIVEST — 60-editeur.css — éditeur de documents A4 (3.0.0-beta.60)
   --------------------------------------------------------------------------
   Gestion › Le contenu › Éditeur de documents (assets/js/cgt/cgt-editeur.js).
   Page aux couleurs du site (en-tête et sections de la page Gestion, tuiles à
   filet, reliefs du site) ; studio de mise en page volontairement sombre (tranche
   rouge comme le bloc d'accueil) ; feuille A4 à couleurs d'impression FIXES,
   blanche dans les deux thèmes. Toutes les classes sont préfixées edt-.
   beta.59-60 : familles de feuille (data-famille : rouge, violet, unsa, inter), pages multiples,
   fond de page en couleur (data-fond-page), nouveaux blocs.
   ========================================================================== */

/* Polices de la famille Violet (Barlow, OFL 1.1, assets/fonts/barlow/OFL.txt) : chargées
   seulement quand une feuille violette s'affiche. Sous-ensemble latin (français complet). */
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url("../../fonts/barlow/Barlow-400-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:700;font-display:swap;src:url("../../fonts/barlow/Barlow-700-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:italic;font-weight:700;font-display:swap;src:url("../../fonts/barlow/Barlow-700i-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:800;font-display:swap;src:url("../../fonts/barlow/Barlow-800-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:800;font-display:swap;src:url("../../fonts/barlow/BarlowCondensed-800-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:900;font-display:swap;src:url("../../fonts/barlow/BarlowCondensed-900-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Page ---------- */
.cgt-edt-page .edt-entete-page{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.edt-fil{ margin:0 0 10px; font-size:var(--fs-13); font-weight:var(--fw-800); letter-spacing:.08em; text-transform:uppercase; color:var(--texte-3); }
.edt-fil a{ color:inherit; text-decoration:none; border-bottom:2px solid var(--jaune-accent); }
.edt-actions-page{ display:flex; gap:12px; flex-wrap:wrap; }
.edt-actions-page [hidden]{ display:none !important; }   /* « Diffuser » absent pour l'UNSA (.sm-btn impose son display) */
/* Compteur : la pastille jaune des compteurs du bandeau. :not(#cgt) — sinon la couleur du bouton
   (règles .sm-btn du site) gagne et le chiffre disparaît sur la pastille. */
.sm-btn .edt-compte:not(#cgt){ display:inline-grid; place-items:center; min-width:24px; height:24px; padding:0 7px; margin-left:10px; border-radius:var(--rayon-pilule); background:var(--cgt-jaune); color:var(--sur-jaune); box-shadow:0 0 0 2px var(--affiche-encre); font-size:12px; font-weight:900; line-height:1; font-variant-numeric:tabular-nums; }

/* Familles : on choisit d'abord la famille, puis le modèle */
.edt-familles{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px; margin:0 0 8px; }
.edt-famille:not(#cgt){
  --t:#E03131; --e:#FFF; display:flex; align-items:center; gap:14px; padding:14px; text-align:left; cursor:pointer;
  background:var(--papier); color:var(--texte); border:2px solid var(--filet); border-left:8px solid var(--t); font:inherit;
  box-shadow:var(--relief-1); transition:translate .15s, box-shadow .15s;
}
.edt-famille:not(#cgt):hover{ translate:-2px -2px; box-shadow:var(--relief-1-survol); }
.edt-famille:not(#cgt)[aria-checked="true"]{ border-color:var(--t); outline:3px solid var(--t); outline-offset:2px; }
.edt-famille:not(#cgt):focus-visible{ outline:3px solid var(--jaune-accent); outline-offset:3px; }
.edt-famille-nuancier{ flex:none; width:58px; height:58px; display:grid; place-items:center; background:var(--t); color:var(--e); box-shadow:3px 3px 0 rgba(0,0,0,.85); }
.edt-famille-nuancier b{ font-size:24px; font-weight:900; line-height:1; }
.edt-famille[data-famille="violet"] .edt-famille-nuancier b{ font-family:"Barlow Condensed", var(--police-texte); font-size:30px; }
.edt-famille[data-famille="unsa"] .edt-famille-nuancier{ border-radius:50%; }   /* le disque du logo UNSA */
.edt-famille[data-famille="unsa"] .edt-famille-nuancier b{ font-family:"Figtree", var(--police-texte); font-style:italic; }
.edt-famille[data-famille="inter"] .edt-famille-nuancier{ background:linear-gradient(90deg, #E7591C 0 33.333%, #E03131 33.333% 66.666%, #009EE0 66.666% 100%); }
.edt-famille[data-famille="inter"] .edt-famille-nuancier b{ font-family:"Barlow Condensed", var(--police-texte); font-size:28px; text-shadow:0 1px 2px rgba(0,0,0,.35); }
.edt-acces-famille input[value="inter"]{ accent-color:#2A2230; }
.edt-famille-textes{ min-width:0; display:flex; flex-direction:column; }
.edt-famille-nom{ font-size:var(--fs-18, 18px); font-weight:var(--fw-800); line-height:1.15; }
.edt-famille-desc{ margin-top:2px; font-size:var(--fs-13); color:var(--texte-2); line-height:1.35; }
.edt-famille-nb{ margin-top:6px; font-size:11px; font-weight:var(--fw-800); letter-spacing:.08em; text-transform:uppercase; color:var(--texte-3); }
.edt-groupe-modeles{ margin:26px 0 14px; display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 12px; font-size:var(--fs-14); font-weight:var(--fw-800); letter-spacing:.08em; text-transform:uppercase; color:var(--texte); }
.edt-groupe-modeles span{ font-weight:var(--fw-500); letter-spacing:0; text-transform:none; color:var(--texte-3); }

/* Modèles : tuiles avec aperçu A4 en direct */
.edt-modeles{ display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:22px; }
.edt-modele-pages{ position:absolute; z-index:2; top:6px; right:6px; padding:2px 7px; background:#212529; color:#FFF; font-size:10px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.edt-modele:not(#cgt){
  --t:#212529; position:relative; display:flex; flex-direction:column; gap:12px; padding:14px 14px 16px; text-align:left; cursor:pointer;
  border-top:6px solid var(--t); font:inherit; color:var(--texte);
  transition:translate var(--duree-2, .18s) cubic-bezier(.3, 1.4, .6, 1), box-shadow var(--duree-2, .18s);
}
.edt-modele:not(#cgt):hover{ translate:-2px -2px; box-shadow:var(--relief-1-survol); }
.edt-modele:not(#cgt):focus-visible{ outline:3px solid var(--t); outline-offset:3px; }
.edt-modele:not(#cgt)[aria-pressed="true"]{ translate:3px 3px; box-shadow:1px 1px 0 0 var(--tranche); outline:3px solid var(--t); outline-offset:3px; }
.edt-modele[aria-pressed="true"]::after{ content:"En cours"; position:absolute; top:-15px; left:12px; padding:3px 9px; background:var(--t); color:#FFF; font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.edt-modele-apercu{ position:relative; display:block; width:100%; aspect-ratio:210 / 297; overflow:hidden; background:#FFF; border:1px solid var(--filet); }
.edt-modele-apercu .edt-feuille{ position:absolute; top:0; left:0; box-shadow:none !important; pointer-events:none; }
.edt-modele-bas{ display:flex; align-items:center; gap:10px; }
.edt-modele-icone{ flex:none; width:38px; height:38px; display:grid; place-items:center; background:var(--t); color:#FFF; font-size:16px; box-shadow:3px 3px 0 rgba(0,0,0,.85); }
.edt-modele-textes{ min-width:0; display:flex; flex-direction:column; }
.edt-modele-nom{ font-size:var(--fs-16); font-weight:var(--fw-800); line-height:1.2; }
.edt-modele-desc{ margin-top:2px; font-size:var(--fs-13); color:var(--texte-2); line-height:1.35; }

/* ---------- Studio (plan de travail sombre) ---------- */
.edt-studio{
  --st-fond:#0D0F12; --st-p:#15181C; --st-p2:#1C2025; --st-p3:#252A30; --st-filet:#2B3036; --st-texte:#E9ECEF; --st-texte2:#9AA3AC;
  position:relative; display:flex; flex-direction:column; min-width:0; background:var(--st-fond); color:var(--st-texte);
  border-top:6px solid var(--action); box-shadow:10px 10px 0 0 var(--tranche-rouge, #A51E1E);
}
.edt-barre{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; padding:10px 12px; background:var(--st-p); border-bottom:1px solid var(--st-filet); }
.edt-barre > *{ flex-shrink:0; }
.edt-nom-doc{ flex:1 1 220px !important; min-width:160px; height:38px; padding:0 12px; background:var(--st-p2); color:#FFF; border:1px solid var(--st-filet); font:inherit; font-size:var(--fs-14); font-weight:var(--fw-800); }
.edt-nom-doc::placeholder{ color:var(--st-texte2); font-weight:var(--fw-500); }
.edt-sep{ width:1px; height:26px; background:var(--st-filet); margin:0 6px; }
.edt-outil{
  min-width:38px; height:38px; padding:0; display:inline-grid; place-items:center; cursor:pointer; color:var(--st-texte);
  background:var(--st-p2); border:1px solid var(--st-filet); border-radius:0; font-size:14px; font-weight:var(--fw-700); font-family:inherit;
  transition:background .15s, translate .12s;
}
.edt-outil-texte{ padding:0 12px; font-size:var(--fs-13); }
.edt-outil:hover{ background:var(--st-p3); }
.edt-outil:active{ translate:1px 1px; }
.edt-outil[aria-pressed="true"]{ background:var(--action); border-color:var(--action); color:#FFF; }
.edt-outil:focus-visible, .edt-select:focus-visible, .edt-rail button:focus-visible, .edt-nom-doc:focus-visible, .edt-champ-texte:focus-visible{ outline:2px solid var(--jaune-accent); outline-offset:2px; }
.edt-large{ width:100%; margin-top:8px; }
.edt-select{ height:38px; padding:0 30px 0 12px; background:var(--st-p2); color:var(--st-texte); border:1px solid var(--st-filet); border-radius:0; font:inherit; font-size:var(--fs-14); font-weight:var(--fw-700); }
.edt-couleurs{ display:inline-flex; align-items:center; gap:6px; }
.edt-couleur{ width:26px; height:26px; padding:0; border:2px solid #E9ECEF; background:var(--c); cursor:pointer; box-shadow:2px 2px 0 #000; }
.edt-droite{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.edt-zoom{ display:flex; align-items:center; gap:8px; font-size:var(--fs-13); font-weight:var(--fw-800); color:var(--st-texte2); }
.edt-zoom input{ width:120px; accent-color:var(--action); }
.edt-zoom output{ min-width:46px; text-align:right; color:var(--st-texte); font-variant-numeric:tabular-nums; }

.edt-corps-studio{ display:grid; grid-template-columns:76px 250px minmax(0, 1fr) 270px; min-height:760px; }
.edt-rail{ display:flex; flex-direction:column; gap:6px; padding:10px 8px; background:var(--st-p); border-right:1px solid var(--st-filet); }
.edt-rail button{
  display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 4px; background:transparent; color:var(--st-texte2);
  border:1px solid transparent; border-radius:0; font-family:inherit; font-size:11px; font-weight:var(--fw-800); letter-spacing:.04em; cursor:pointer;
}
.edt-rail button i{ font-size:18px; }
.edt-rail button:hover{ color:var(--st-texte); background:var(--st-p2); }
.edt-rail button[aria-selected="true"]{ color:#FFF; background:var(--st-p3); border-color:var(--st-filet); box-shadow:inset 3px 0 0 var(--action); }
.edt-panneau{ padding:16px; overflow:auto; max-height:820px; background:var(--st-p); border-right:1px solid var(--st-filet); }
.edt-panneau[hidden]{ display:none; }
.edt-pan-titre{ margin:0 0 4px; display:flex; align-items:center; gap:10px; font-size:var(--fs-13); font-weight:var(--fw-800); letter-spacing:.1em; text-transform:uppercase; color:#FFF; }
.edt-pan-titre::before{ content:""; width:10px; height:10px; background:var(--jaune-accent); box-shadow:2px 2px 0 var(--action); }
.edt-pan-aide{ margin:0 0 14px; font-size:var(--fs-12); color:var(--st-texte2); line-height:1.45; }
.edt-pan-aide kbd, .edt-statut kbd{ padding:1px 6px; border:1px solid #3A4047; border-bottom-width:2px; background:#1C2025; color:#E9ECEF; font-family:var(--police-texte); font-size:11px; }
.edt-biblio{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.edt-piece{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-height:58px; padding:10px 6px; text-align:center;
  background:var(--st-p2); color:var(--st-texte); border:1px solid var(--st-filet); border-radius:0; cursor:grab; font-family:inherit; font-size:12px; font-weight:var(--fw-700);
  transition:translate .15s, box-shadow .15s, border-color .15s;
}
.edt-piece:hover{ translate:-2px -2px; box-shadow:3px 3px 0 var(--action); border-color:#3A4047; }
.edt-piece::before{ content:""; width:14px; height:3px; background:var(--jaune-accent); }
.edt-piece:active{ cursor:grabbing; }
.edt-calques{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.edt-calque{ display:flex; align-items:center; gap:10px; padding:9px 8px 9px 10px; background:var(--st-p2); border:1px solid var(--st-filet); cursor:pointer; font-size:var(--fs-13); }
.edt-calque i.fa-fw{ color:var(--jaune-accent); }
.edt-calque span{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.edt-calque.edt-actif{ background:var(--st-p3); border-color:var(--action); box-shadow:inset 3px 0 0 var(--action); }
.edt-calque button{ width:26px; height:26px; padding:0; display:grid; place-items:center; background:transparent; border:1px solid var(--st-filet); color:var(--st-texte2); cursor:pointer; font-size:11px; }
.edt-calque button:hover{ color:#FFF; background:var(--st-p3); }
.edt-groupe{ display:flex; flex-direction:column; gap:8px; margin:0 0 18px; }
.edt-libelle{ margin:0; font-size:11px; font-weight:var(--fw-800); letter-spacing:.1em; text-transform:uppercase; color:var(--st-texte2); }
.edt-segment{ display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; }
.edt-segment.edt-deux{ grid-template-columns:repeat(2, 1fr); }
.edt-segment.edt-quatre{ grid-template-columns:repeat(2, 1fr); }
.edt-segment.edt-cinq{ grid-template-columns:repeat(5, 1fr); }
.edt-segment .edt-outil{ width:100%; }
.edt-pastilles{ display:flex; gap:10px; }
.edt-pastille{ position:relative; width:34px; height:34px; padding:0; border:2px solid #E9ECEF; border-radius:0; background:var(--c); cursor:pointer; box-shadow:2px 2px 0 #000; }
.edt-segment .edt-pastille{ width:100%; }
.edt-pastille[aria-pressed="true"]::after{ content:"\f00c"; font-family:"Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight:900; position:absolute; inset:0; display:grid; place-items:center; color:#FFF; text-shadow:0 0 3px #000; font-size:13px; }
.edt-interrupteur{ display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:var(--fs-13); font-weight:var(--fw-700); cursor:pointer; }
.edt-interrupteur input{ width:18px; height:18px; accent-color:var(--action); }
.edt-champ-texte{ width:100%; height:38px; padding:0 10px; background:var(--st-p2); color:#FFF; border:1px solid var(--st-filet); border-radius:0; font:inherit; font-size:var(--fs-13); }
.edt-cadrage-zoom{ display:flex; align-items:center; gap:10px; font-size:var(--fs-13); font-weight:var(--fw-800); color:var(--st-texte2); }
.edt-cadrage-zoom input{ flex:1; min-width:0; accent-color:var(--action); }
.edt-cadrage-zoom output{ min-width:46px; text-align:right; color:var(--st-texte); font-variant-numeric:tabular-nums; }

/* Toile : grille de points, règles en millimètres */
.edt-toile{ position:relative; overflow:auto; max-height:820px; background:radial-gradient(circle, rgba(255,255,255,.09) 1px, transparent 1.6px) 0 0 / 18px 18px, var(--st-fond); }
.edt-plan{ position:relative; width:max-content; margin:0 auto; padding:44px 40px 60px 54px; }
.edt-regle-h, .edt-regle-v{ position:absolute; color:#7C858E; font-size:10px; font-weight:700; font-variant-numeric:tabular-nums; pointer-events:none; }
.edt-regle-h{ top:14px; left:54px; height:20px; border-bottom:1px solid #3A4047; }
.edt-regle-v{ top:0; left:-32px; width:20px; border-right:1px solid #3A4047; }
.edt-regle-h span, .edt-regle-v span{ position:absolute; }
.edt-regle-h span{ bottom:0; height:7px; border-left:1px solid #4A525A; }
.edt-regle-h span.edt-grand{ height:13px; border-left-color:#7C858E; }
.edt-regle-h span b{ position:absolute; bottom:12px; left:3px; }
.edt-regle-v span{ right:0; width:7px; border-top:1px solid #4A525A; }
.edt-regle-v span.edt-grand{ width:13px; border-top-color:#7C858E; }
.edt-regle-v span b{ position:absolute; right:14px; top:-6px; }
.edt-marge{ position:absolute; background:rgba(224, 49, 49, .22); }
/* Pages : l'une sous l'autre, chacune avec sa règle verticale et sa légende */
.edt-pages{ display:flex; flex-direction:column; gap:52px; }
.edt-page{ position:relative; }
.edt-page-active::before{ content:""; position:absolute; top:0; bottom:28px; left:-46px; width:4px; background:var(--jaune-accent); }
.edt-page-legende{ margin:12px 0 0; text-align:center; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#7C858E; }
.edt-page-active .edt-page-legende{ color:var(--jaune-accent); }
.edt-ajout-page{ display:block; margin:30px auto 0; padding:12px 20px; background:transparent; color:#E9ECEF; border:2px dashed #3A4047; border-radius:0; font:inherit; font-size:var(--fs-13); font-weight:800; cursor:pointer; }
.edt-ajout-page:hover{ border-color:var(--action); color:#FFF; }
.edt-ajout-page[hidden]{ display:none; }
.edt-calques-page{ margin:8px 0 0; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--jaune-accent); list-style:none; }
.edt-pan-titre-page{ margin-top:24px; }
.edt-boutons-page{ gap:0; }
.edt-outil[disabled]{ opacity:.4; cursor:not-allowed; }
.edt-diff-explication{ margin:0 0 18px; line-height:1.55; }
/* Fenêtre « Accès » du secrétaire */
.edt-acces-liste{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px; }
.edt-acces-ligne{ display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; padding:12px 14px; border:1px solid var(--filet); background:var(--papier); }
.edt-acces-nom{ flex:1 1 220px; min-width:0; font-weight:var(--fw-800); }
.edt-acces-role{ display:block; margin-top:2px; font-size:var(--fs-13); font-weight:var(--fw-600); color:var(--texte-3); }
.edt-acces-familles{ display:flex; flex-wrap:wrap; gap:10px; }
.edt-acces-famille{ --t:#E03131; display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:2px solid var(--filet); border-left:6px solid var(--t); font-size:var(--fs-14); font-weight:var(--fw-700); cursor:pointer; }
.edt-acces-famille input{ width:18px; height:18px; accent-color:var(--t); }
.edt-acces-famille:has(input:disabled){ opacity:.7; cursor:default; }
.edt-facultatif{ font-weight:var(--fw-500); color:var(--texte-3); }
.edt-echelle{ position:relative; }
.edt-echelle .edt-feuille{ box-shadow:0 0 0 1px rgba(255, 255, 255, .06), 14px 14px 0 0 var(--action), 0 30px 60px rgba(0, 0, 0, .55); }
.edt-flottant{ position:absolute; z-index:6; display:flex; align-items:center; gap:4px; padding:5px; background:#212529; border:1px solid #3A4047; box-shadow:4px 4px 0 var(--action); transition:top .12s, left .12s; }
.edt-flottant[hidden]{ display:none; }
.edt-type{ padding:0 10px 0 6px; font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; color:var(--jaune-accent); }
.edt-flottant button{ width:32px; height:32px; display:grid; place-items:center; padding:0; background:#2B3036; color:#F8F9FA; border:1px solid #3A4047; border-radius:0; cursor:pointer; font-size:12px; }
.edt-flottant button:hover{ background:#3A4047; }
.edt-flottant button[data-act="supprimer"]{ color:#FF8787; }
.edt-flottant .edt-poignee{ cursor:grab; color:var(--jaune-accent); }
.edt-flottant .edt-poignee:active{ cursor:grabbing; }
.edt-indic{ position:absolute; height:0; border-top:3px solid var(--action); pointer-events:none; z-index:5; }
.edt-indic::before{ content:""; position:absolute; left:-6px; top:-7.5px; width:11px; height:11px; background:var(--action); transform:rotate(45deg); }
.edt-indic[hidden]{ display:none; }

.edt-inspecteur{ padding:16px; overflow:auto; max-height:820px; background:var(--st-p); border-left:1px solid var(--st-filet); }
.edt-insp-vide{ padding:14px; border:1px dashed var(--st-filet); color:var(--st-texte2); font-size:var(--fs-13); line-height:1.5; }
.edt-insp-vide strong{ color:#FFF; }
.edt-mesures{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 0 18px; }
.edt-mesure{ padding:12px; background:var(--st-p2); border:1px solid var(--st-filet); border-top:3px solid var(--m, #FAB005); }
.edt-mesure b{ display:block; font-size:22px; font-weight:900; color:#FFF; line-height:1; font-variant-numeric:tabular-nums; }
.edt-mesure span{ display:block; margin-top:6px; font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--st-texte2); }
.edt-statut{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:9px 14px; background:var(--st-p); border-top:1px solid var(--st-filet); font-size:var(--fs-12); font-weight:var(--fw-700); color:var(--st-texte2); }
.edt-statut .edt-ok{ color:#66D9E8; }
.edt-statut .edt-alerte{ color:#FFD43B; }
.edt-rac{ margin-left:auto; }
/* Raccourcis clavier : inutiles sur un écran tactile (la barre flottante a ses flèches) */
@media (hover: none){ .edt-aide-clavier, .edt-rac{ display:none; } }
.edt-point{ display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; background:currentColor; box-shadow:0 0 0 3px rgba(102, 217, 232, .18); }

/* Mes documents */
.edt-docs{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:12px; }
.edt-doc{ display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--filet); border-left:6px solid var(--t, #E03131); background:var(--papier); }
.edt-doc-textes{ flex:1; min-width:0; }
.edt-doc-nom{ margin:0; font-weight:var(--fw-800); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.edt-doc-date{ margin:2px 0 0; font-size:var(--fs-13); color:var(--texte-3); }
.edt-doc-vide{ color:var(--texte-3); font-size:var(--fs-14); }

/* ==========================================================================
   La feuille A4 — couleurs d'impression fixes, quel que soit le thème
   ========================================================================== */
.edt-feuille{
  --f-rouge:#E03131; --f-rouge-vif:#F03E3E; --f-jaune:#FAB005; --f-noir:#212529; --f-gris:#495057;
  --f-accent:var(--f-rouge); --f-sur-accent:#FFFFFF; --f-marge:18mm;
  position:relative; display:flex; flex-direction:column; width:210mm; height:297mm; overflow:hidden;
  background:#FFFFFF; color:var(--f-noir); text-align:left; transform-origin:top left;
  font-family:"Figtree", system-ui, sans-serif; font-size:10.5pt; font-weight:400; line-height:1.5; letter-spacing:0;
  -webkit-print-color-adjust:exact; print-color-adjust:exact;
}
.edt-feuille *, .edt-feuille *::before, .edt-feuille *::after{ box-sizing:border-box; }
.edt-feuille p{ margin:0; }
/* Graisses explicites : la feuille héritait du 300 du site, et « bolder » ne montait qu'à 400 */
.edt-feuille :is(strong, b){ font-weight:700; }
.edt-feuille[data-accent="jaune"]{ --f-accent:var(--f-jaune); --f-sur-accent:var(--f-noir); }
.edt-feuille[data-accent="noir"]{ --f-accent:var(--f-noir); }
.edt-feuille[data-marges="etroites"]{ --f-marge:11mm; }
.edt-feuille [contenteditable]{ outline:none; }
.edt-feuille [contenteditable][data-vide]:empty::before{ content:attr(data-vide); color:#ADB5BD; }
.edt-entete{ flex:none; }
.edt-feuille[data-entete="aucun"] .edt-entete{ display:none; }
.edt-entete-bandeau{ display:flex; align-items:stretch; min-height:36mm; background:var(--f-accent); color:var(--f-sur-accent); border-bottom:2.2mm solid var(--f-jaune); }
.edt-feuille[data-accent="jaune"] .edt-entete-bandeau{ border-bottom-color:var(--f-rouge); }
.edt-logo{ flex:none; display:block; width:31mm; background:#C92A2A; }
.edt-logo img{ display:block; width:100%; height:100%; object-fit:cover; }
/* Logo remplaçable (en-tête, bloc logo) : bouton visible au survol, à la sélection, au toucher */
.edt-entete .edt-logo, .edt-d-logo{ position:relative; }
.edt-logo-choisir{
  position:absolute; left:50%; bottom:2mm; z-index:3; transform:translateX(-50%); padding:1mm 2mm; white-space:nowrap; cursor:pointer;
  background:#FFF; color:#212529; border:.3mm solid #212529; border-radius:0; font:inherit; font-size:7.5pt; font-weight:800; opacity:0; transition:opacity .15s;
}
.edt-entete .edt-logo:hover .edt-logo-choisir, .edt-bloc.edt-choisi .edt-logo-choisir, .edt-logo-choisir:focus-visible{ opacity:1; }
.edt-d-logo .edt-logo-choisir{ top:-3mm; bottom:auto; left:0; transform:none; }
@media (hover: none){ .edt-logo-choisir{ opacity:.95; } }
.edt-entete-textes{ flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:1mm; padding:5mm var(--f-marge) 5mm 7mm; }
.edt-entete-nom{ font-size:21pt; font-weight:900; line-height:1.05; letter-spacing:-.01em; }
.edt-entete-devise{ font-family:"Besley", Georgia, serif; font-style:italic; font-weight:700; font-size:12.5pt; }
.edt-entete-contact{ margin-top:1.5mm !important; font-size:8.5pt; font-weight:600; opacity:.92; }
.edt-entete-sobre{ display:none; align-items:center; gap:5mm; padding:9mm var(--f-marge) 4mm; border-bottom:.8mm solid var(--f-accent); }
.edt-feuille[data-entete="sobre"] .edt-entete-bandeau{ display:none; }
.edt-feuille[data-entete="sobre"] .edt-entete-sobre{ display:flex; }
.edt-entete-sobre .edt-logo{ width:17mm; height:19mm; }
.edt-entete-sobre .edt-entete-nom{ font-size:15pt; color:var(--f-noir); }
.edt-entete-sobre .edt-entete-devise{ font-size:10pt; color:var(--f-accent); }
.edt-feuille[data-accent="jaune"] .edt-entete-sobre .edt-entete-devise{ color:#9C4A00; }

.edt-corps{ position:relative; flex:1; min-height:0; display:flex; flex-direction:column; gap:4.2mm; padding:9mm var(--f-marge) 6mm; overflow:hidden; }
.edt-feuille.edt-guides .edt-corps::after{ content:""; position:absolute; top:9mm; bottom:6mm; left:var(--f-marge); right:var(--f-marge); border:1px dashed #22B8CF; pointer-events:none; }
.edt-bloc{ position:relative; animation:edt-apparaitre .22s ease-out; }
.edt-bloc[data-espace="l"]{ margin-top:4mm; }
.edt-bloc[data-espace="s"]{ margin-top:-2mm; }
.edt-bloc[data-espace="chevauche"]{ margin-top:-16mm; z-index:2; }
.edt-bloc[data-espace="bas"]{ margin-top:auto; }   /* pousse ce bloc et les suivants en bas de page */
.edt-bloc[data-type="coupon"]{ margin-top:auto; }
.edt-bloc.edt-choisi{ outline:2px solid var(--f-rouge); outline-offset:1.6mm; }
.edt-bloc:not(.edt-choisi):hover{ outline:1px dashed #ADB5BD; outline-offset:1.6mm; }
@keyframes edt-apparaitre{ from{ opacity:0; translate:0 4px; } to{ opacity:1; translate:0 0; } }
@media (prefers-reduced-motion: reduce){ .edt-bloc{ animation:none; } }

/* Fonds réglables (inspecteur) — sauf le slogan, qui a les siens */
.edt-feuille [data-fond]:not(.edt-d-choc){ padding:4mm 5mm; }
.edt-feuille [data-fond="jaune"]:not(.edt-d-choc){ background:#FFF9DB; }
.edt-feuille [data-fond="noir"]:not(.edt-d-choc){ background:#212529; color:#FFF; }
.edt-feuille [data-fond="rouge"]:not(.edt-d-choc){ background:var(--f-rouge); color:#FFF; }
.edt-feuille [data-fond="gris"]:not(.edt-d-choc){ background:#F1F3F5; }
.edt-feuille [data-fond="noir"] .edt-accent, .edt-feuille [data-fond="rouge"] .edt-accent{ color:var(--f-jaune) !important; }

.edt-accent{ font-family:"Besley", Georgia, serif; font-style:italic; font-weight:800; color:var(--f-rouge-vif); letter-spacing:0; }
.edt-d-rubrique{ font-family:"Besley", Georgia, serif; font-style:italic; font-weight:800; font-size:13pt; line-height:1.1; color:var(--f-accent); }
.edt-feuille[data-accent="jaune"] .edt-d-rubrique{ color:#9C4A00; }
.edt-d-titre{ font-size:27pt; font-weight:900; line-height:1.04; letter-spacing:-.015em; }
.edt-feuille[data-accent="noir"] .edt-d-titre .edt-accent{ color:var(--f-rouge); }
.edt-d-soustitre{ padding-bottom:1.5mm; font-size:13.5pt; font-weight:800; line-height:1.2; border-bottom:.5mm solid var(--f-noir); }
.edt-d-texte p{ margin:0 0 2.2mm; }
.edt-d-texte p:last-child{ margin-bottom:0; }
.edt-d-petit{ font-size:9pt; color:var(--f-gris); }
.edt-centre{ text-align:center; }
.edt-d-infos{ display:flex; flex-wrap:wrap; gap:3mm 7mm; padding:4mm 5mm; background:var(--f-noir); color:#FFF; font-size:11.5pt; font-weight:800; border-left:2.2mm solid var(--f-accent); }
.edt-d-infos span{ display:inline-flex; align-items:center; gap:2.2mm; }
.edt-d-infos i{ color:var(--f-jaune); font-size:10pt; }
.edt-d-encadre{ padding:4mm 5mm; background:#FFF9DB; border-left:2.2mm solid var(--f-jaune); }
.edt-d-encadre-titre{ margin:0 0 2mm !important; font-family:"Besley", Georgia, serif; font-style:italic; font-weight:800; font-size:13pt; }
.edt-feuille .edt-d-liste ul, .edt-feuille .edt-d-liste ol, .edt-feuille .edt-d-encadre ul, .edt-feuille .edt-d-encadre ol, .edt-feuille .edt-d-texte ul, .edt-feuille .edt-d-texte ol{ margin:0; padding-left:6mm; }
.edt-feuille .edt-d-liste li, .edt-feuille .edt-d-encadre li, .edt-feuille .edt-d-texte li{ margin:0 0 1.4mm; }
.edt-d-liste ul li::marker, .edt-d-encadre ul li::marker{ color:var(--f-accent); }
.edt-feuille[data-accent="jaune"] .edt-d-encadre ul li::marker{ color:var(--f-rouge); }
.edt-d-separateur{ height:9mm; background:url("../../images/cgt/pinceau-rouge.svg") left center / auto 100% no-repeat; }
.edt-d-signature{ width:fit-content; min-width:62mm; max-width:100%; margin:2mm 0 0 auto; text-align:right; }
.edt-d-signature-ligne{ margin-top:12mm; padding-top:1.5mm; border-top:.3mm solid var(--f-noir); font-size:9pt; color:var(--f-gris); }
.edt-d-colonnes{ display:grid; grid-template-columns:1fr 1fr; gap:10mm; font-size:10pt; }
.edt-d-colonnes > div:last-child{ padding-left:12mm; }
.edt-affiche-titre{ font-size:44pt; text-align:center; }
.edt-affiche-infos{ justify-content:center; padding:6mm; font-size:15pt; }

/* Tract : slogan choc (bandeau bord à bord, incliné, façon affiche de manif) */
.edt-d-choc{
  position:relative; margin:2.5mm calc(-1 * var(--f-marge)); padding:5mm var(--f-marge) 5.5mm;
  background:var(--f-rouge); color:#FFF; font-size:30pt; font-weight:900; line-height:1; letter-spacing:-.01em; text-transform:uppercase;
  transform:skewY(-2.2deg); transform-origin:left center;
}
.edt-d-choc .edt-accent{ color:var(--f-jaune); text-transform:none; font-size:1.08em; }
.edt-d-choc[data-fond="noir"]{ background:#212529; }
.edt-d-choc[data-fond="jaune"]{ background:var(--f-jaune); color:#212529; }
.edt-d-choc[data-fond="jaune"] .edt-accent{ color:var(--f-rouge); }
.edt-d-choc[data-fond="gris"]{ background:#F1F3F5; color:#212529; }
.edt-d-choc[data-fond="gris"] .edt-accent{ color:var(--f-rouge); }
.edt-d-choc:not([data-fond]){ background:transparent; color:var(--f-noir); }

/* Tract : photo pleine largeur (fond CSS : html2canvas ne gère pas object-fit) */
.edt-d-photo{ margin:0 calc(-1 * var(--f-marge)); }
.edt-corps > .edt-bloc:first-child > .edt-d-photo{ margin-top:-9mm; }
.edt-photo-cadre{
  position:relative; height:75mm; display:grid; place-items:center;
  background:repeating-linear-gradient(45deg, #F1F3F5 0 6px, #E9ECEF 6px 12px); background-size:cover; background-position:center; background-repeat:no-repeat;
}
.edt-photo-cadre.edt-photo-pleine{ background-color:#212529; }
.edt-d-photo[data-hauteur="s"] .edt-photo-cadre{ height:52mm; }
.edt-d-photo[data-hauteur="l"] .edt-photo-cadre{ height:105mm; }
.edt-image-cadre{ height:58mm; border:.3mm dashed #ADB5BD; }
.edt-d-image[data-hauteur="s"] .edt-image-cadre{ height:40mm; }
.edt-d-image[data-hauteur="l"] .edt-image-cadre{ height:90mm; }
.edt-photo-cadre img{ display:none; }
.edt-photo-choisir{
  padding:2.5mm 4mm; background:#FFF; color:#212529; border:.4mm solid #212529; border-radius:0; box-shadow:1mm 1mm 0 #212529;
  font:inherit; font-size:10pt; font-weight:800; cursor:pointer;
}
/* En haut : un slogan posé « sur la photo » en recouvre le bas. */
.edt-photo-pleine .edt-photo-choisir{ position:absolute; right:4mm; top:4mm; opacity:.92; }
/* Cadrer : la photo d'un bloc sélectionné se fait glisser dans son cadre (souris ou doigt) */
.edt-bloc.edt-choisi .edt-photo-pleine{ cursor:grab; touch-action:none; }
.edt-photo-cadre.edt-cadrage{ cursor:grabbing; }
.edt-bloc.edt-choisi .edt-photo-pleine::after{
  content:"Glisse la photo pour la cadrer"; position:absolute; left:3mm; bottom:3mm; padding:1mm 2.5mm; pointer-events:none;
  background:rgba(33, 37, 41, .82); color:#FFF; font-size:7.5pt; font-weight:800; font-style:normal; letter-spacing:0;
}
.edt-photo-cadre.edt-cadrage::after{ content:none !important; }
/* Taille : poignées blanches d'une photo ou d'une image sélectionnée (jamais enregistrées ni imprimées) */
.edt-poignee-taille{ position:absolute; z-index:4; display:none; background:#FFF; border:.4mm solid #212529; border-radius:2.4mm; box-shadow:.6mm .6mm 0 #212529; touch-action:none; }
.edt-bloc.edt-choisi .edt-poignee-taille{ display:block; }
.edt-poignee-taille[data-poignee="h"]{ left:50%; bottom:1.6mm; width:15mm; height:4.8mm; margin-left:-7.5mm; cursor:ns-resize; }
.edt-poignee-taille[data-poignee="l"]{ top:50%; right:1.6mm; width:4.8mm; height:15mm; margin-top:-7.5mm; cursor:ew-resize; }
.edt-aligne-d .edt-poignee-taille[data-poignee="l"]{ right:auto; left:1.6mm; }
/* Photo réduite (moins que la pleine largeur) : posée dans la colonne, plus collée en haut de page */
.edt-corps > .edt-bloc:first-child > .edt-d-photo.edt-encart{ margin-top:0; }
.edt-d-photo.edt-encart .edt-photo-legende{ padding:1.5mm 0 0; }
.edt-photo-legende{ padding:1.5mm var(--f-marge) 0; font-size:8.5pt; font-style:italic; color:var(--f-gris); }
/* Légende vide : elle ne prend de place (et ne s'offre à la saisie) que photo sélectionnée,
   pour que l'alerte « ça déborde » mesure ce qui s'imprimera. */
.edt-bloc:not(.edt-choisi) .edt-photo-legende:empty{ display:none; }
.edt-d-image .edt-photo-legende{ padding:1.5mm 0 0; }

/* Tract : chiffres clés */
.edt-d-chiffres{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:5mm; }
.edt-chiffre{ padding-top:2.5mm; border-top:2.2mm solid var(--f-rouge); }
.edt-chiffre:nth-child(2){ border-top-color:var(--f-noir); }
.edt-chiffre:nth-child(3){ border-top-color:var(--f-jaune); }
.edt-chiffre b{ display:block; font-size:29pt; font-weight:900; line-height:1; letter-spacing:-.02em; color:var(--f-noir); }
.edt-chiffre:first-child b{ color:var(--f-rouge); }
.edt-chiffre span{ display:block; margin-top:1.6mm; font-size:9.5pt; font-weight:600; line-height:1.3; color:var(--f-gris); }

/* Tract : coupon d'adhésion + QR code (en bas de page) */
.edt-coupon-coupe{ display:flex; align-items:center; gap:2mm; margin:0 0 3mm; padding-top:2mm; border-top:.5mm dashed var(--f-gris); font-size:8.5pt; font-weight:700; color:var(--f-gris); }
.edt-coupon-coupe i{ color:var(--f-rouge); }
.edt-coupon-corps{ display:grid; grid-template-columns:minmax(0, 1fr) 40mm; gap:6mm; padding:3.5mm 5mm; border:.5mm solid var(--f-noir); background:#FFF; }
.edt-coupon-titre{ margin:0 0 2mm !important; font-size:13pt; font-weight:900; }
.edt-champ{ display:flex; align-items:flex-end; gap:2mm; margin:0 0 2mm !important; font-size:9.5pt; font-weight:700; white-space:nowrap; }
.edt-champ::after{ content:""; flex:1; height:0; margin-bottom:.9mm; border-bottom:.3mm dotted var(--f-gris); }
.edt-coupon-cases{ margin-top:2.6mm !important; font-size:9.5pt; font-weight:700; }
.edt-coupon-qr{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1mm; padding-left:5mm; text-align:center; border-left:.3mm solid #DEE2E6; }
.edt-qr-zone{ display:block; width:30mm; height:30mm; }
.edt-qr{ display:block; width:30mm; height:30mm; image-rendering:pixelated; }
.edt-qr-absent{ font-size:8pt; color:var(--f-gris); }
.edt-coupon-qr b{ font-size:10pt; font-weight:900; color:var(--f-rouge); }
.edt-coupon-qr small{ font-size:8pt; color:var(--f-gris); }

.edt-pied{ flex:none; display:flex; justify-content:space-between; align-items:center; gap:6mm; margin:0 var(--f-marge); padding:3mm 0 7mm; border-top:.5mm solid var(--f-accent); font-size:8pt; font-weight:600; color:var(--f-gris); }
.edt-feuille[data-pied="0"] .edt-pied{ display:none; }

/* ---------- Nouveaux blocs (beta.59), famille Rouge par défaut ---------- */
.edt-d-grandedate{ font-weight:900; font-size:86pt; line-height:.86; letter-spacing:-.035em; text-transform:uppercase; text-align:center; color:var(--f-rouge); }
.edt-d-empile p{ margin:0; font-weight:900; font-size:33pt; line-height:.96; letter-spacing:-.015em; text-transform:uppercase; }
.edt-d-empile p:nth-child(3n+1), .edt-d-empile p:nth-child(3n){ color:var(--f-rouge); }
.edt-d-empile p:nth-child(3n+2){ color:var(--f-noir); }
.edt-d-note{ font-size:9pt; font-weight:700; line-height:1.35; color:var(--f-gris); }
.edt-d-note b{ margin-right:1mm; font-size:15pt; line-height:0; vertical-align:-4pt; color:var(--f-rouge); }
.edt-d-logo{ display:flex; align-items:center; gap:3.5mm; }
.edt-d-logo img{ display:block; width:17mm; height:auto; }
.edt-logo-texte{ font-size:9pt; font-weight:800; color:var(--f-noir); }
.edt-d-deuxcol{ display:grid; grid-template-columns:minmax(0, 1.85fr) minmax(0, 1fr); gap:7mm; font-size:10pt; line-height:1.45; }
.edt-col-cote{ padding-left:6mm; border-left:.7mm dotted var(--f-accent); }
.edt-feuille .edt-d-deuxcol p{ margin:0 0 2.2mm; }
.edt-feuille .edt-d-deuxcol ul{ margin:0 0 2.6mm; padding-left:5mm; }
.edt-feuille .edt-d-deuxcol li{ margin:0 0 1.2mm; }
.edt-d-deuxcol ul li::marker{ color:var(--f-accent); }
.edt-feuille .edt-col-titre{ margin:0 0 2mm; font-weight:900; font-size:15pt; line-height:1.1; color:var(--f-accent); }
.edt-feuille .edt-col-fort{ font-weight:800; color:var(--f-accent); }
.edt-feuille .edt-col-slogan{ font-family:"Besley", Georgia, serif; font-style:italic; font-weight:800; font-size:14pt; line-height:1.15; color:var(--f-accent); }
.edt-d-qr{ display:flex; align-items:center; gap:5mm; padding:3mm 4mm; border:.45mm solid var(--f-accent); }
.edt-d-qr .edt-qr-zone, .edt-d-qr .edt-qr{ flex:none; width:24mm; height:24mm; }
.edt-feuille .edt-qr-texte p{ margin:0; font-size:9.5pt; line-height:1.35; }
.edt-feuille .edt-qr-texte .edt-qr-titre{ margin:0 0 1mm; font-size:13pt; font-weight:900; color:var(--f-accent); }
.edt-d-fleche{ height:17mm; background:url("../../images/cgt/fleche-pinceau-rouge.svg") right center / contain no-repeat; }
/* Fonds de bloc de la famille Violet (inspecteur) */
.edt-feuille [data-fond="lavande"]:not(.edt-d-choc){ background:#EDE7F5; }
.edt-feuille [data-fond="violet"]:not(.edt-d-choc){ background:#594392; color:#FFF; }
.edt-feuille [data-fond="peche"]:not(.edt-d-choc){ background:#F4C9B0; }
.edt-feuille [data-fond="violet"] .edt-accent{ color:#F4C9B0 !important; }
.edt-d-choc[data-fond="violet"]{ background:#594392; }
.edt-d-choc[data-fond="peche"]{ background:#F4C9B0; color:#3F2C6E; }
.edt-d-choc[data-fond="lavande"]{ background:#D9CCE6; color:#3F2C6E; }
.edt-d-choc[data-fond="violet"] .edt-accent{ color:#F4C9B0; }
.edt-d-choc:is([data-fond="peche"], [data-fond="lavande"]) .edt-accent{ color:#E03131; }

/* ==========================================================================
   Famille Violet — d'après les tracts CGT du 8 mars : le violet domine, avec des touches
   de rouge CGT (mots d'accent, chiffres, astérisques, logo), pêche et lavande ; Barlow pour
   le texte, Barlow Condensed très gras pour les titres (demande de Kevin du 09/10).
   ========================================================================== */
.edt-feuille[data-famille="violet"]{
  --f-violet:#594392; --f-violet-fonce:#3F2C6E; --f-rouge-v:#E03131; --f-peche:#F4C9B0; --f-lavande:#D9CCE6; --f-lavande-2:#9393C7; --f-lavande-clair:#EDE7F5;
  --f-accent:var(--f-violet); --f-sur-accent:#FFFFFF;
  font-family:"Barlow", system-ui, sans-serif;
}
.edt-feuille[data-famille="violet"][data-accent="rouge"]{ --f-accent:var(--f-rouge-v); }
.edt-feuille[data-famille="violet"][data-accent="noir"]{ --f-accent:#212529; }
.edt-feuille[data-famille="violet"] :is(.edt-d-titre, .edt-d-choc, .edt-d-grandedate, .edt-d-empile p, .edt-d-encadre-titre, .edt-d-soustitre, .edt-entete-nom, .edt-chiffre b, .edt-col-titre, .edt-coupon-titre){ font-family:"Barlow Condensed", "Barlow", sans-serif; }
.edt-feuille[data-famille="violet"] .edt-accent{ font-family:"Barlow", sans-serif; font-style:italic; font-weight:700; color:var(--f-rouge-v); letter-spacing:0; text-transform:none; }
.edt-feuille[data-famille="violet"] .edt-d-choc .edt-accent{ color:var(--f-peche); }
.edt-feuille[data-famille="violet"] .edt-d-choc:is([data-fond="peche"], [data-fond="lavande"]) .edt-accent{ color:var(--f-rouge-v); }
.edt-feuille[data-famille="violet"] .edt-entete-bandeau{ border-bottom-color:var(--f-lavande); }
.edt-feuille[data-famille="violet"] .edt-entete-nom{ font-weight:900; font-size:25pt; text-transform:uppercase; letter-spacing:0; }
.edt-feuille[data-famille="violet"] .edt-entete-devise{ font-family:"Barlow", sans-serif; font-weight:700; color:var(--f-peche); }
.edt-feuille[data-famille="violet"][data-accent="rouge"] .edt-entete-devise{ color:#FFF; }
.edt-feuille[data-famille="violet"] .edt-entete-sobre .edt-entete-devise{ color:var(--f-violet); }
.edt-feuille[data-famille="violet"] .edt-d-rubrique{ font-family:"Barlow", sans-serif; font-style:italic; font-weight:700; font-size:12pt; color:var(--f-accent); }
.edt-feuille[data-famille="violet"] .edt-d-titre{ font-weight:800; font-size:31pt; line-height:1; letter-spacing:0; color:var(--f-accent); }
.edt-feuille[data-famille="violet"] .edt-d-soustitre{ font-weight:800; font-size:15pt; text-transform:uppercase; color:var(--f-accent); border-bottom-color:var(--f-accent); }
.edt-feuille[data-famille="violet"] .edt-d-encadre{ background:var(--f-lavande-clair); border-left-color:var(--f-violet); }
.edt-feuille[data-famille="violet"] .edt-d-encadre-titre{ font-style:normal; font-weight:800; font-size:14pt; text-transform:uppercase; color:var(--f-violet); }
.edt-feuille[data-famille="violet"] .edt-d-encadre ul li::marker{ color:var(--f-violet); }
.edt-feuille[data-famille="violet"] .edt-d-infos{ background:var(--f-violet); border-left-color:var(--f-peche); }
.edt-feuille[data-famille="violet"] .edt-d-infos i{ color:var(--f-peche); }
.edt-feuille[data-famille="violet"] .edt-chiffre{ border-top-color:var(--f-violet); }
.edt-feuille[data-famille="violet"] .edt-chiffre:nth-child(2){ border-top-color:var(--f-rouge-v); }
.edt-feuille[data-famille="violet"] .edt-chiffre:nth-child(3){ border-top-color:var(--f-peche); }
.edt-feuille[data-famille="violet"] .edt-chiffre b{ font-weight:900; font-size:34pt; letter-spacing:0; }
.edt-feuille[data-famille="violet"] .edt-chiffre:first-child b{ color:var(--f-violet); }
.edt-feuille[data-famille="violet"] .edt-d-choc{ font-weight:900; font-size:34pt; letter-spacing:0; }
.edt-feuille[data-famille="violet"] .edt-d-grandedate{ font-size:122pt; line-height:.84; letter-spacing:0; color:var(--f-violet); }
.edt-feuille[data-famille="violet"] .edt-d-empile p{ font-size:47pt; line-height:.9; letter-spacing:0; }
.edt-feuille[data-famille="violet"] .edt-d-empile p:nth-child(3n+1){ color:var(--f-violet); }
.edt-feuille[data-famille="violet"] .edt-d-empile p:nth-child(3n+2){ color:var(--f-lavande-2); }
.edt-feuille[data-famille="violet"] .edt-d-empile p:nth-child(3n){ color:var(--f-rouge-v); }
.edt-feuille[data-famille="violet"] .edt-d-note b{ color:var(--f-rouge-v); }
.edt-feuille[data-famille="violet"] .edt-col-titre{ font-weight:800; font-size:17pt; }
.edt-feuille[data-famille="violet"] .edt-col-slogan{ font-family:"Barlow", sans-serif; font-style:italic; font-weight:700; font-size:14.5pt; }
.edt-feuille[data-famille="violet"] .edt-d-separateur{ background-image:url("../../images/cgt/pinceau-violet.svg"); }
.edt-feuille[data-famille="violet"] .edt-d-fleche{ background-image:url("../../images/cgt/fleche-pinceau-violet.svg"); }
.edt-feuille[data-famille="violet"] .edt-coupon-titre{ font-weight:900; font-size:15pt; }
.edt-feuille[data-famille="violet"] .edt-coupon-coupe i, .edt-feuille[data-famille="violet"] .edt-coupon-qr b{ color:var(--f-violet); }
.edt-feuille[data-famille="violet"] .edt-d-signature-ligne{ border-top-color:var(--f-violet); }

/* ==========================================================================
   Famille UNSA — charte de l'UNSA (palette principale : bleu #009EE0, marine #13235A,
   orange #E64428) et logo officiel de l'UNSA FESSAD (assets/images/unsa/). Figtree tient
   la place de Museo Sans, la police de la charte, qui n'est pas libre. Ton plus posé que
   la CGT : pas de bandeau incliné ni de capitales partout ; l'italique orange des mots
   d'accent rappelle le « a » du logo. Rien de ce bloc ne s'applique hors data-famille="unsa".
   ========================================================================== */
.edt-feuille[data-famille="unsa"]{
  --f-u-bleu:#009EE0; --f-u-bleu-fonce:#0077B3; --f-u-marine:#13235A; --f-u-orange:#E64428; --f-u-ciel:#E5F5FC; --f-u-ciel-2:#BFE6F8; --f-u-clair:#7FD3F7;
  --f-accent:var(--f-u-bleu); --f-sur-accent:#FFFFFF; --f-u-mot:var(--f-u-orange);
  font-family:"Figtree", system-ui, sans-serif; color:#1B2546;
}
.edt-feuille[data-famille="unsa"][data-accent="orange"]{ --f-accent:var(--f-u-orange); --f-u-mot:var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"][data-accent="marine"]{ --f-accent:var(--f-u-marine); }
/* En-tête : pas le bandeau CGT. Feuille blanche, logo rond à gauche, qui chevauche un ruban
   arrondi (une pastille, comme le disque du logo) où s'écrivent le nom et la devise. */
.edt-feuille[data-famille="unsa"] .edt-entete-bandeau{ align-items:center; min-height:0; padding:6mm var(--f-marge) 1mm; background:#FFFFFF; border-bottom:0; }
/* Médaillon : un disque blanc derrière le logo, pour que le texte du pourtour (marine) ne morde pas sur le ruban */
.edt-feuille[data-famille="unsa"] .edt-entete-bandeau .edt-logo{ position:relative; z-index:2; width:35mm; height:auto; padding:1.2mm; display:block; background:#FFFFFF; border-radius:50%; }
.edt-feuille[data-famille="unsa"] .edt-logo img{ width:100%; height:auto; object-fit:contain; }
.edt-feuille[data-famille="unsa"] .edt-entete-bandeau .edt-entete-textes{ margin-left:-11mm; padding:4.5mm 9mm 4.5mm 16mm; min-height:25mm; background:var(--f-accent); color:var(--f-sur-accent); border-radius:0 12.5mm 12.5mm 0; }
.edt-feuille[data-famille="unsa"] .edt-entete-bandeau .edt-entete-devise{ color:var(--f-u-ciel-2); }
.edt-feuille[data-famille="unsa"][data-accent="orange"] .edt-entete-bandeau .edt-entete-devise{ color:#FFE3DA; }
.edt-feuille[data-famille="unsa"] .edt-entete-sobre{ border-bottom:.8mm solid var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] .edt-entete-sobre .edt-logo{ width:21mm; height:auto; padding:0; background:transparent; }
.edt-feuille[data-famille="unsa"] .edt-entete-nom{ font-weight:900; font-size:24pt; letter-spacing:-.005em; }
.edt-feuille[data-famille="unsa"] .edt-entete-devise{ font-family:"Figtree", sans-serif; font-style:italic; font-weight:700; font-size:12.5pt; }
.edt-feuille[data-famille="unsa"] .edt-entete-sobre .edt-entete-nom{ color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-entete-sobre .edt-entete-devise{ color:var(--f-u-bleu); }
/* Texte */
.edt-feuille[data-famille="unsa"] .edt-accent{ font-family:"Figtree", sans-serif; font-style:italic; font-weight:800; color:var(--f-u-mot); letter-spacing:0; }
.edt-feuille[data-famille="unsa"] .edt-d-rubrique{ font-family:"Figtree", sans-serif; font-style:normal; font-weight:800; font-size:10.5pt; letter-spacing:.09em; text-transform:uppercase; color:var(--f-accent); }
.edt-feuille[data-famille="unsa"][data-accent="marine"] .edt-d-rubrique{ color:var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] .edt-d-titre{ font-weight:900; font-size:28pt; line-height:1.05; letter-spacing:-.01em; color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-d-soustitre{ font-weight:800; color:var(--f-u-marine); border-bottom:.6mm solid var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] .edt-d-infos{ background:var(--f-u-marine); border-left:0; border-radius:3mm; padding:4mm 6mm; }
.edt-feuille[data-famille="unsa"] .edt-d-infos i{ color:var(--f-u-clair); }
.edt-feuille[data-famille="unsa"] .edt-d-encadre{ background:var(--f-u-ciel); border-left-color:var(--f-u-bleu); border-radius:0 2mm 2mm 0; }
.edt-feuille[data-famille="unsa"] .edt-d-encadre{ border-left:0; border-radius:3mm; padding:4.5mm 5.5mm; }
.edt-feuille[data-famille="unsa"] .edt-d-encadre-titre{ display:inline-block; margin:0 0 2.5mm !important; padding:1mm 4mm 1.2mm; font-family:"Figtree", sans-serif; font-style:normal; font-weight:800; font-size:11.5pt; color:#FFFFFF; background:var(--f-u-marine); border-radius:4mm; }
.edt-feuille[data-famille="unsa"] [data-fond="ciel"] .edt-d-encadre-titre, .edt-feuille[data-famille="unsa"] .edt-d-encadre[data-fond="ciel"] .edt-d-encadre-titre{ background:var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] :is(.edt-d-encadre, .edt-d-liste, .edt-d-deuxcol) ul li::marker{ color:var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] .edt-chiffre{ border-top-color:var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] .edt-chiffre:nth-child(2){ border-top-color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-chiffre:nth-child(3){ border-top-color:var(--f-u-orange); }
.edt-feuille[data-famille="unsa"] .edt-chiffre b{ color:var(--f-u-marine); letter-spacing:-.01em; }
.edt-feuille[data-famille="unsa"] .edt-chiffre:first-child b{ color:var(--f-u-bleu); }
/* Slogan : une pastille arrondie dans les marges, droite, en minuscules (le CGT : bandeau incliné bord à bord) */
.edt-feuille[data-famille="unsa"] .edt-d-choc{ margin:2.5mm 0; padding:5.5mm 8mm 6mm; border-radius:7mm; transform:none; text-transform:none; font-size:26pt; line-height:1.08; letter-spacing:-.01em; background:var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] .edt-d-choc:not([data-fond]){ padding-left:0; padding-right:0; }
.edt-feuille[data-famille="unsa"] .edt-d-choc .edt-accent{ color:var(--f-u-marine); font-size:1em; }
.edt-feuille[data-famille="unsa"] .edt-d-choc[data-fond="marine"]{ background:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-d-choc[data-fond="marine"] .edt-accent{ color:var(--f-u-clair); }
.edt-feuille[data-famille="unsa"] .edt-d-choc[data-fond="ciel"]{ background:var(--f-u-ciel); color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-d-choc[data-fond="ciel"] .edt-accent{ color:var(--f-u-orange); }
.edt-feuille[data-famille="unsa"] .edt-d-choc[data-fond="gris"] .edt-accent{ color:var(--f-u-bleu-fonce); }
.edt-feuille[data-famille="unsa"] .edt-d-grandedate{ font-size:96pt; letter-spacing:-.03em; color:var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] .edt-d-empile p{ font-size:36pt; line-height:.98; letter-spacing:-.01em; }
.edt-feuille[data-famille="unsa"] .edt-d-empile p:nth-child(3n+1){ color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-d-empile p:nth-child(3n+2){ color:var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] .edt-d-empile p:nth-child(3n){ color:var(--f-u-orange); }
.edt-feuille[data-famille="unsa"] .edt-d-note b{ color:var(--f-u-orange); }
.edt-feuille[data-famille="unsa"] .edt-col-titre{ font-weight:900; color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-col-fort{ color:var(--f-u-bleu-fonce); }
.edt-feuille[data-famille="unsa"] .edt-col-slogan{ font-family:"Figtree", sans-serif; font-style:italic; font-weight:800; color:var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] .edt-col-cote{ border-left:.7mm dotted var(--f-u-bleu); }
/* Filet UNSA : barre bleue arrondie, une touche d'orange au bout */
.edt-feuille[data-famille="unsa"] .edt-d-separateur{ height:2.6mm; margin:1.5mm 0; background:linear-gradient(90deg, var(--f-u-bleu) 0 84%, transparent 84% 86%, var(--f-u-orange) 86% 100%); border-radius:1.3mm; }
.edt-feuille[data-famille="unsa"] .edt-d-fleche{ background-image:url("../../images/unsa/fleche-unsa.svg"); }
.edt-feuille[data-famille="unsa"] .edt-d-logo img{ width:22mm; }
.edt-feuille[data-famille="unsa"] .edt-logo-texte{ color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-d-qr{ border-color:var(--f-u-bleu); border-radius:2mm; }
.edt-feuille[data-famille="unsa"] .edt-qr-texte .edt-qr-titre{ color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-coupon-corps{ border-color:var(--f-u-marine); border-radius:2mm; }
.edt-feuille[data-famille="unsa"] .edt-coupon-titre{ color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-coupon-titre .edt-accent{ color:var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] .edt-coupon-coupe i, .edt-feuille[data-famille="unsa"] .edt-coupon-qr b{ color:var(--f-u-bleu); }
.edt-feuille[data-famille="unsa"] .edt-d-signature-ligne{ border-top-color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-photo-cadre:not(.edt-photo-pleine){ background:repeating-linear-gradient(45deg, var(--f-u-ciel) 0 6px, #D6EFFA 6px 12px); }
.edt-feuille[data-famille="unsa"] .edt-d-photo{ margin:0; }
.edt-feuille[data-famille="unsa"] .edt-corps > .edt-bloc:first-child > .edt-d-photo{ margin-top:0; }
.edt-feuille[data-famille="unsa"] .edt-photo-cadre{ border-radius:4mm; overflow:hidden; }
.edt-feuille[data-famille="unsa"] .edt-photo-legende{ padding:1.5mm 0 0; }
/* Texte justifié (Kevin, 09/10/2026) : paragraphes, encadrés, listes, colonne principale. Les
   lignes centrées le restent ; la colonne étroite d'à côté reste en drapeau (trop de blancs) ;
   un alignement choisi à la main (style en ligne) l'emporte toujours. Pas de césure : html2canvas
   ne dessine pas les tirets ajoutés par le navigateur. */
.edt-feuille[data-famille="unsa"] :is(.edt-d-texte:not(.edt-centre), .edt-d-encadre, .edt-d-liste, .edt-col-principale){ text-align:justify; }
/* Pied de page : bandeau bleu nuit à bord perdu, comme les documents de l'UNSA (adresse, site) */
.edt-feuille[data-famille="unsa"] .edt-pied{ margin:0; padding:3.4mm var(--f-marge) 4.6mm; background:var(--f-u-marine); color:#FFFFFF; border-top:0; font-weight:700; }
.edt-feuille[data-famille="unsa"] .edt-pied-num{ color:var(--f-u-clair); }
/* Fonds de bloc de la famille UNSA (inspecteur) ; vert d'eau : palette secondaire de la charte */
.edt-feuille [data-fond="eau"]:not(.edt-d-choc){ background:#E3F3F1; }
.edt-feuille[data-famille="unsa"] .edt-d-encadre[data-fond="eau"] .edt-d-encadre-titre{ background:#83CAC3; color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] [data-fond="eau"] ul li::marker{ color:#3A9E95; }
.edt-feuille[data-famille="unsa"] .edt-d-choc[data-fond="eau"]{ background:#E3F3F1; color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"] .edt-d-choc[data-fond="eau"] .edt-accent{ color:var(--f-u-bleu-fonce); }
.edt-feuille [data-fond="ciel"]:not(.edt-d-choc){ background:#E5F5FC; }
.edt-feuille [data-fond="bleu"]:not(.edt-d-choc){ background:#009EE0; color:#FFF; }
.edt-feuille [data-fond="marine"]:not(.edt-d-choc){ background:#13235A; color:#FFF; }
.edt-feuille[data-famille="unsa"] [data-fond="bleu"]:not(.edt-d-choc) .edt-accent{ color:var(--f-u-marine) !important; }
.edt-feuille[data-famille="unsa"] [data-fond="marine"]:not(.edt-d-choc) .edt-accent{ color:var(--f-u-clair) !important; }
.edt-feuille[data-famille="unsa"] [data-fond="marine"]:not(.edt-d-choc) :is(.edt-d-encadre-titre, .edt-col-titre){ color:#FFF; }

/* ==========================================================================
   Intersyndicale CFDT · CGT · UNSA — charte « D · Blanc » choisie par Kevin le 10/10/2026 :
   aucun fond de couleur ; les trois logos en haut, une barre aux trois couleurs dessous ; encadrés,
   puces, filets et soulignés aux couleurs des trois syndicats, à parts égales, dans l'ordre des
   sigles (CFDT orange, CGT rouge, UNSA bleu). Encre et taupe pour tout le reste. Barlow.
   ========================================================================== */
.edt-feuille[data-famille="inter"]{
  --i-cfdt:#E7591C; --i-cgt:#E03131; --i-unsa:#009EE0; --i-encre:#2A2230; --i-taupe:#6F6259; --i-filet:#E4DED6;
  --i-trois:linear-gradient(90deg, var(--i-cfdt) 0 33.333%, var(--i-cgt) 33.333% 66.666%, var(--i-unsa) 66.666% 100%);
  --i-trois-v:linear-gradient(180deg, var(--i-cfdt) 0 33.333%, var(--i-cgt) 33.333% 66.666%, var(--i-unsa) 66.666% 100%);
  --f-accent:var(--i-encre); --f-sur-accent:#FFFFFF;
  font-family:"Barlow", system-ui, sans-serif; color:var(--i-encre);
}
.edt-feuille[data-famille="inter"][data-accent="taupe"]{ --f-accent:var(--i-taupe); }
/* En-tête : les trois logos, la barre, puis « L'intersyndicale de VIVEST » et les sigles, centrés */
.edt-feuille[data-famille="inter"] .edt-entete-bandeau{ flex-direction:column; align-items:stretch; min-height:0; padding:9mm var(--f-marge) 2mm; background:#FFFFFF; color:var(--i-encre); border-bottom:0; }
.edt-feuille[data-famille="inter"] .edt-logos-inter{ display:grid; grid-template-columns:repeat(3, 1fr); align-items:center; justify-items:center; }
.edt-feuille[data-famille="inter"] .edt-entete-bandeau .edt-logos-inter{ position:relative; padding-bottom:5.5mm; }
.edt-feuille[data-famille="inter"] .edt-entete-bandeau .edt-logos-inter::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2.6mm; border-radius:1.3mm; background:var(--i-trois); }
.edt-feuille[data-famille="inter"] .edt-logos-inter img{ display:block; width:auto; height:auto; }
.edt-feuille[data-famille="inter"] .edt-entete-bandeau .edt-logo-cfdt{ height:23mm; }
.edt-feuille[data-famille="inter"] .edt-entete-bandeau .edt-logo-cgt{ height:25mm; }
.edt-feuille[data-famille="inter"] .edt-entete-bandeau .edt-logo-unsa{ height:26mm; }
.edt-feuille[data-famille="inter"] .edt-entete-bandeau .edt-entete-textes{ align-items:center; gap:.5mm; padding:4mm 0 0; text-align:center; }
.edt-feuille[data-famille="inter"] .edt-entete-devise{ order:-1; font-family:"Barlow", sans-serif; font-style:normal; font-weight:700; font-size:8.5pt; letter-spacing:.18em; text-transform:uppercase; color:var(--i-taupe); }
.edt-feuille[data-famille="inter"] .edt-entete-nom{ font-family:"Barlow Condensed", sans-serif; font-weight:900; font-size:22pt; letter-spacing:.01em; color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-entete-contact{ font-size:8.5pt; color:var(--i-taupe); }
.edt-feuille[data-famille="inter"] .edt-entete-sobre{ border-bottom:0; padding-bottom:5mm; background:var(--i-trois) left bottom / 100% 1.6mm no-repeat; }
.edt-feuille[data-famille="inter"] .edt-entete-sobre .edt-logos-inter{ display:flex; gap:3mm; }
.edt-feuille[data-famille="inter"] .edt-entete-sobre .edt-logos-inter img{ height:13mm; }
.edt-feuille[data-famille="inter"] .edt-entete-sobre .edt-entete-nom{ font-size:15pt; color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-entete-sobre .edt-entete-devise{ color:var(--i-taupe); }
/* Texte */
.edt-feuille[data-famille="inter"] .edt-accent{ font-family:inherit; font-style:normal; font-weight:inherit; color:inherit; letter-spacing:inherit; background:var(--i-trois) left bottom / 100% 1.4mm no-repeat; padding-bottom:.8mm; }
.edt-feuille[data-famille="inter"] .edt-d-rubrique{ font-family:"Barlow", sans-serif; font-style:normal; font-weight:700; font-size:9.5pt; letter-spacing:.16em; text-transform:uppercase; color:var(--i-taupe); }
.edt-feuille[data-famille="inter"] .edt-d-titre{ font-family:"Barlow Condensed", sans-serif; font-weight:900; font-size:34pt; line-height:1; text-transform:uppercase; letter-spacing:-.005em; color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-d-soustitre{ font-family:"Barlow Condensed", sans-serif; font-weight:800; font-size:15pt; text-transform:uppercase; border-bottom:0; padding-bottom:2.2mm; background:var(--i-trois) left bottom / 100% .8mm no-repeat; }
.edt-feuille[data-famille="inter"] :is(.edt-d-texte:not(.edt-centre), .edt-d-encadre, .edt-d-liste, .edt-col-principale){ text-align:justify; }
.edt-feuille[data-famille="inter"] .edt-d-separateur{ height:2.6mm; width:62mm; margin:0; border-radius:1.3mm; background:var(--i-trois); }
.edt-feuille[data-famille="inter"] .edt-d-fleche{ background-image:url("../../images/unsa/fleche-unsa.svg"); filter:grayscale(1) brightness(.45); }
/* Encadré blanc à liseré aux trois couleurs */
.edt-feuille[data-famille="inter"] .edt-d-encadre{ position:relative; overflow:hidden; padding:7mm 6mm 5mm; background:#FFFFFF; border:.4mm solid var(--i-filet); border-left:.4mm solid var(--i-filet); border-radius:3mm; }
.edt-feuille[data-famille="inter"] .edt-d-encadre::before{ content:""; position:absolute; left:0; right:0; top:0; height:2.4mm; background:var(--i-trois); }
.edt-feuille[data-famille="inter"] .edt-d-encadre-titre{ font-family:"Barlow Condensed", sans-serif; font-style:normal; font-weight:800; font-size:15pt; text-transform:uppercase; letter-spacing:.02em; color:var(--i-encre); }
/* Puces rondes aux trois couleurs, tour à tour (dessinées : html2canvas ignore la couleur de ::marker) */
.edt-feuille[data-famille="inter"] :is(.edt-d-encadre, .edt-d-liste, .edt-d-texte, .edt-d-deuxcol) ul{ list-style:none; padding-left:6mm; }
.edt-feuille[data-famille="inter"] :is(.edt-d-encadre, .edt-d-liste, .edt-d-texte, .edt-d-deuxcol) ul > li{ position:relative; }
.edt-feuille[data-famille="inter"] :is(.edt-d-encadre, .edt-d-liste, .edt-d-texte, .edt-d-deuxcol) ul > li::before{ content:""; position:absolute; left:-5.2mm; top:.5em; width:2.4mm; height:2.4mm; border-radius:50%; background:var(--i-cfdt); }
.edt-feuille[data-famille="inter"] :is(.edt-d-encadre, .edt-d-liste, .edt-d-texte, .edt-d-deuxcol) ul > li:nth-child(3n+2)::before{ background:var(--i-cgt); }
.edt-feuille[data-famille="inter"] :is(.edt-d-encadre, .edt-d-liste, .edt-d-texte, .edt-d-deuxcol) ul > li:nth-child(3n)::before{ background:var(--i-unsa); }
/* Rendez-vous : cadre blanc, bande aux trois couleurs sur le côté */
.edt-feuille[data-famille="inter"] .edt-d-infos{ position:relative; overflow:hidden; background:#FFFFFF; color:var(--i-encre); border:.4mm solid var(--i-filet); border-radius:3mm; padding:4mm 6mm 4mm 9mm; }
.edt-feuille[data-famille="inter"] .edt-d-infos::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:2.4mm; background:var(--i-trois-v); }
.edt-feuille[data-famille="inter"] .edt-d-infos i{ color:var(--i-taupe); }
/* Chiffres, date géante, slogans */
.edt-feuille[data-famille="inter"] .edt-chiffre{ border-top-color:var(--i-cfdt); }
.edt-feuille[data-famille="inter"] .edt-chiffre:nth-child(2){ border-top-color:var(--i-cgt); }
.edt-feuille[data-famille="inter"] .edt-chiffre:nth-child(3){ border-top-color:var(--i-unsa); }
.edt-feuille[data-famille="inter"] .edt-chiffre b, .edt-feuille[data-famille="inter"] .edt-chiffre:first-child b{ font-family:"Barlow Condensed", sans-serif; color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-d-grandedate{ font-family:"Barlow Condensed", sans-serif; font-size:100pt; letter-spacing:0; color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-d-empile p{ font-family:"Barlow Condensed", sans-serif; font-size:40pt; letter-spacing:0; }
.edt-feuille[data-famille="inter"] .edt-d-empile p:nth-child(3n+1){ color:var(--i-cfdt); }
.edt-feuille[data-famille="inter"] .edt-d-empile p:nth-child(3n+2){ color:var(--i-cgt); }
.edt-feuille[data-famille="inter"] .edt-d-empile p:nth-child(3n){ color:var(--i-unsa); }
.edt-feuille[data-famille="inter"] .edt-d-choc{ margin:2.5mm 0; padding:6mm 0; transform:none; font-family:"Barlow Condensed", sans-serif; font-size:30pt; letter-spacing:0; background:transparent; color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-d-choc[data-fond="trois"]{ background:var(--i-trois) left top / 100% 2mm no-repeat, var(--i-trois) left bottom / 100% 2mm no-repeat, #FFFFFF; }
.edt-feuille[data-famille="inter"] .edt-d-choc[data-fond="sable"]{ background:#F3EFEA; padding:6mm 6mm; border-radius:3mm; }
.edt-feuille[data-famille="inter"] .edt-d-choc[data-fond="gris"]{ background:#F1F3F5; padding:6mm 6mm; border-radius:3mm; color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-d-choc .edt-accent{ color:inherit; font-size:1em; }
.edt-feuille[data-famille="inter"] .edt-d-note b{ color:var(--i-cgt); }
.edt-feuille[data-famille="inter"] .edt-col-titre{ font-family:"Barlow Condensed", sans-serif; color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-col-fort{ color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-col-slogan{ font-family:"Barlow", sans-serif; font-style:italic; font-weight:700; color:var(--i-taupe); }
.edt-feuille[data-famille="inter"] .edt-col-cote{ border-left:.7mm dotted var(--i-filet); }
/* Logos (bloc), QR, coupon, signatures */
.edt-feuille[data-famille="inter"] .edt-d-logos{ flex-direction:column; align-items:stretch; gap:2.5mm; }
.edt-feuille[data-famille="inter"] .edt-d-logos .edt-logos-inter img{ height:16mm; }
.edt-feuille[data-famille="inter"] .edt-d-logos .edt-logo-texte{ text-align:center; color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-d-qr{ border-color:var(--i-filet); border-radius:3mm; }
.edt-feuille[data-famille="inter"] .edt-qr-texte .edt-qr-titre{ color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-coupon-corps{ border-color:var(--i-encre); border-radius:3mm; }
.edt-feuille[data-famille="inter"] .edt-coupon-corps.edt-coupon-sans-qr{ grid-template-columns:minmax(0, 1fr); }
.edt-feuille[data-famille="inter"] .edt-coupon-titre{ color:var(--i-encre); }
.edt-feuille[data-famille="inter"] .edt-coupon-coupe i{ color:var(--i-cgt); }
.edt-feuille[data-famille="inter"] .edt-d-signature-ligne{ border-top-color:var(--i-encre); }
.edt-d-colonnes.edt-trois{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:7mm; }
.edt-d-colonnes.edt-trois > div, .edt-d-colonnes.edt-trois > div:last-child{ padding:0 0 16mm; border-bottom:.3mm solid var(--f-noir); }
.edt-feuille[data-famille="inter"] .edt-d-colonnes.edt-trois > div{ border-bottom-color:var(--i-encre); }
.edt-feuille .edt-petition .edt-champ{ margin:0 0 3.2mm !important; }
/* Coupon de retour (questions, attentes) : à découper, sans adhésion ni QR */
.edt-feuille .edt-retour{ padding-top:2.6mm; border-top:.5mm dashed var(--f-gris); }
.edt-feuille .edt-retour .edt-retour-titre{ margin:0 0 3mm !important; font-size:8.5pt; font-weight:700; color:var(--f-gris); text-align:left; }
.edt-feuille .edt-retour .edt-retour-titre i{ color:var(--f-accent); }
.edt-feuille .edt-retour .edt-champ{ margin:0 0 3.4mm !important; }
/* Pied : filet aux trois couleurs */
.edt-feuille[data-famille="inter"] .edt-pied{ border-top:0; padding-top:3.4mm; background:var(--i-trois) left top / 100% 1.2mm no-repeat; color:var(--i-taupe); }
/* Fonds de bloc de l'intersyndicale (inspecteur) */
.edt-feuille[data-famille="inter"] [data-fond="trois"]:not(.edt-d-choc){ position:relative; padding-top:6.5mm; background:var(--i-trois) left top / 100% 2.2mm no-repeat, #FFFFFF; border:.4mm solid var(--i-filet); border-radius:3mm; }
.edt-feuille [data-fond="sable"]:not(.edt-d-choc){ background:#F3EFEA; }
/* Page « en couleur » : un sable clair, le texte reste à l'encre (charte sans fond de couleur) */
.edt-feuille[data-famille="inter"][data-fond-page="couleur"]{ background:#F3EFEA; color:var(--i-encre); }

/* ==========================================================================
   Page à fond en couleur (recto d'un tract, affiche) : texte clair
   ========================================================================== */
.edt-feuille[data-fond-page="couleur"]{ background:var(--f-accent); color:#FFF; }
.edt-feuille[data-famille="violet"][data-fond-page="couleur"]{ background:linear-gradient(180deg, #5A3D90 0%, #5A3D90 55%, #6A51A3 82%, #7A60B2 100%); }
/* UNSA : marine (le blanc sur le bleu UNSA ne se lit pas en petit), un voile bleu en haut ; orange si choisi */
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"]{ background:linear-gradient(180deg, #0D5C9A 0%, #13235A 46%, #13235A 100%); color:#FFF; }
.edt-feuille[data-famille="unsa"][data-accent="orange"][data-fond-page="couleur"]{ background:var(--f-u-orange); }
.edt-feuille[data-fond-page="couleur"] :is(.edt-d-titre, .edt-d-soustitre, .edt-d-texte, .edt-d-liste, .edt-d-deuxcol, .edt-d-petit, .edt-d-signature, .edt-photo-legende, .edt-logo-texte, .edt-qr-texte p){ color:#FFF; }
.edt-feuille[data-fond-page="couleur"] :is(.edt-d-rubrique, .edt-accent, .edt-col-titre, .edt-col-fort, .edt-col-slogan, .edt-qr-titre){ color:var(--f-jaune) !important; }
.edt-feuille[data-famille="violet"][data-fond-page="couleur"] :is(.edt-d-rubrique, .edt-accent, .edt-col-titre, .edt-col-fort, .edt-col-slogan, .edt-qr-titre){ color:var(--f-peche) !important; }
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] :is(.edt-d-rubrique, .edt-accent, .edt-col-titre, .edt-col-fort, .edt-col-slogan, .edt-qr-titre){ color:var(--f-u-clair) !important; }
.edt-feuille[data-famille="unsa"][data-accent="orange"][data-fond-page="couleur"] :is(.edt-d-rubrique, .edt-accent, .edt-col-titre, .edt-col-fort, .edt-col-slogan, .edt-qr-titre){ color:var(--f-u-marine) !important; }
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] :is(.edt-d-titre, .edt-entete-sobre .edt-entete-nom, .edt-d-encadre-titre){ color:#FFF; }
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] .edt-d-grandedate{ color:var(--f-u-clair); }
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] .edt-d-empile p:nth-child(3n+1){ color:#FFF; }
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] .edt-d-empile p:nth-child(3n+2){ color:var(--f-u-clair); }
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] .edt-d-empile p:nth-child(3n){ color:#FF8A6B; }
.edt-feuille[data-famille="unsa"][data-accent="orange"][data-fond-page="couleur"] .edt-d-empile p:nth-child(3n){ color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] .edt-d-encadre{ border-left-color:var(--f-u-clair); }
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] .edt-d-note b{ color:#FF8A6B; }
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] .edt-chiffre b, .edt-feuille[data-famille="unsa"][data-fond-page="couleur"] .edt-chiffre:first-child b{ color:#FFF; }
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] .edt-d-choc .edt-accent{ color:var(--f-u-marine); }
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] .edt-d-coupon .edt-accent{ color:var(--f-u-bleu) !important; }
/* Logo UNSA sur une page en couleur : un disque blanc derrière (le texte du pourtour est marine) */
.edt-feuille[data-famille="unsa"][data-fond-page="couleur"] .edt-d-logo img{ padding:1mm; background:#FFF; border-radius:50%; }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] :is(.edt-d-titre, .edt-d-soustitre, .edt-d-texte, .edt-d-liste, .edt-d-deuxcol, .edt-d-petit, .edt-d-signature, .edt-photo-legende, .edt-logo-texte, .edt-qr-texte p, .edt-d-encadre, .edt-d-encadre-titre, .edt-chiffre b, .edt-d-grandedate, .edt-entete-sobre .edt-entete-nom){ color:var(--i-encre); }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] :is(.edt-d-rubrique, .edt-col-titre, .edt-col-fort, .edt-col-slogan, .edt-qr-titre){ color:var(--i-taupe) !important; }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] .edt-accent{ color:inherit !important; }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] .edt-d-encadre{ background:#FFFFFF; }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] .edt-d-infos{ background:#FFFFFF; }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] .edt-chiffre span{ color:var(--i-taupe); }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] .edt-d-note{ color:var(--i-taupe); }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] .edt-d-empile p:nth-child(3n+1){ color:var(--i-cfdt); }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] .edt-d-empile p:nth-child(3n+2){ color:var(--i-cgt); }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] .edt-d-empile p:nth-child(3n){ color:var(--i-unsa); }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] .edt-pied{ color:var(--i-taupe); }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] .edt-coupon-coupe{ color:var(--i-taupe); border-top-color:var(--i-taupe); }
.edt-feuille[data-famille="inter"][data-fond-page="couleur"] .edt-d-signature-ligne{ color:var(--i-taupe); border-top-color:var(--i-encre); }
.edt-feuille[data-fond-page="couleur"] .edt-d-soustitre{ border-bottom-color:#FFF; }
.edt-feuille[data-fond-page="couleur"] .edt-d-encadre{ background:rgba(255, 255, 255, .13); border-left-color:var(--f-jaune); color:#FFF; }
.edt-feuille[data-famille="violet"][data-fond-page="couleur"] .edt-d-encadre{ border-left-color:var(--f-peche); }
.edt-feuille[data-fond-page="couleur"] .edt-d-encadre-titre{ color:#FFF; }
.edt-feuille[data-fond-page="couleur"] .edt-d-infos{ background:rgba(0, 0, 0, .28); }
.edt-feuille[data-fond-page="couleur"] .edt-chiffre:first-child{ border-top-color:#FFF; }
.edt-feuille[data-fond-page="couleur"] .edt-chiffre b, .edt-feuille[data-fond-page="couleur"] .edt-chiffre:first-child b{ color:#FFF; }
.edt-feuille[data-fond-page="couleur"] .edt-chiffre span{ color:rgba(255, 255, 255, .86); }
.edt-feuille[data-fond-page="couleur"] .edt-d-grandedate{ color:var(--f-jaune); }
.edt-feuille[data-famille="violet"][data-fond-page="couleur"] .edt-d-grandedate{ color:var(--f-peche); }
.edt-feuille[data-fond-page="couleur"] .edt-d-empile p:nth-child(3n+1), .edt-feuille[data-fond-page="couleur"] .edt-d-empile p:nth-child(3n){ color:#FFF; }
.edt-feuille[data-fond-page="couleur"] .edt-d-empile p:nth-child(3n+2){ color:var(--f-jaune); }
.edt-feuille[data-famille="violet"][data-fond-page="couleur"] .edt-d-empile p:nth-child(3n+1){ color:var(--f-lavande); }
.edt-feuille[data-famille="violet"][data-fond-page="couleur"] .edt-d-empile p:nth-child(3n+2){ color:var(--f-peche); }
.edt-feuille[data-famille="violet"][data-fond-page="couleur"] .edt-d-empile p:nth-child(3n){ color:var(--f-rouge-v); }
.edt-feuille[data-fond-page="couleur"] .edt-d-note{ color:#FFF; }
.edt-feuille[data-fond-page="couleur"] .edt-d-note b{ color:var(--f-jaune); }
.edt-feuille[data-famille="violet"][data-fond-page="couleur"] .edt-d-note b{ color:var(--f-peche); }
.edt-feuille[data-fond-page="couleur"] .edt-col-cote{ border-left-color:rgba(255, 255, 255, .7); }
.edt-feuille[data-fond-page="couleur"] .edt-d-qr{ border-color:#FFF; }
.edt-feuille[data-fond-page="couleur"] .edt-coupon-coupe{ color:#FFF; border-top-color:#FFF; }
.edt-feuille[data-fond-page="couleur"] .edt-d-signature-ligne{ border-top-color:#FFF; color:rgba(255, 255, 255, .85); }
.edt-feuille[data-fond-page="couleur"] .edt-entete-sobre .edt-entete-nom{ color:#FFF; }
.edt-feuille[data-fond-page="couleur"] .edt-pied{ border-top-color:rgba(255, 255, 255, .8); color:rgba(255, 255, 255, .85); }
.edt-feuille[data-fond-page="couleur"] .edt-bloc.edt-choisi{ outline-color:#FFF; }
/* Boîte blanche du coupon et blocs à fond clair : texte foncé, même sur une page en couleur */
.edt-feuille[data-fond-page="couleur"] .edt-d-coupon .edt-accent{ color:var(--f-rouge) !important; }
.edt-feuille[data-famille="violet"][data-fond-page="couleur"] .edt-d-coupon .edt-accent{ color:var(--f-violet) !important; }
.edt-feuille[data-fond-page="couleur"] [data-fond]:is([data-fond="jaune"], [data-fond="gris"], [data-fond="lavande"], [data-fond="peche"], [data-fond="ciel"], [data-fond="eau"]):not(.edt-d-choc){ color:var(--f-noir); }
.edt-feuille[data-accent="jaune"][data-fond-page="couleur"]{ color:var(--f-noir); }
.edt-feuille[data-accent="jaune"][data-fond-page="couleur"] :is(.edt-d-titre, .edt-d-texte, .edt-d-liste, .edt-d-petit, .edt-logo-texte){ color:var(--f-noir); }

/* Rendu PDF (html2canvas) et impression : la feuille seule, sans repères d'édition */
.edt-zone-rendu{ position:fixed; left:-12000px; top:0; width:210mm; height:297mm; overflow:hidden; pointer-events:none; }
.edt-zone-impression{ position:absolute; left:-12000px; top:0; }
.edt-zone-rendu .edt-bloc, .edt-zone-impression .edt-bloc{ animation:none !important; outline:none !important; }
.edt-zone-rendu [data-vide]:empty::before, .edt-zone-impression [data-vide]:empty::before{ content:none !important; }
.edt-zone-rendu .edt-photo-legende:empty, .edt-zone-impression .edt-photo-legende:empty{ display:none; }
.edt-zone-rendu .edt-image-cadre:not(.edt-photo-pleine), .edt-zone-impression .edt-image-cadre:not(.edt-photo-pleine){ display:none; }
/* Cadre photo resté vide : rien à l'impression ni dans le PDF (html2canvas n'en dessinait que le
   blanc, un trou au milieu de la page ; l'impression, des rayures) */
.edt-zone-rendu .edt-photo-cadre:not(.edt-photo-pleine), .edt-zone-impression .edt-photo-cadre:not(.edt-photo-pleine){ display:none; }
.edt-zone-rendu .edt-feuille.edt-guides .edt-corps::after{ display:none; }
.edt-zone-rendu .edt-qr-absent, .edt-zone-impression .edt-qr-absent{ visibility:hidden; }

@media print{
  @page{ size:A4; margin:0; }
  /* Le gabarit plein écran masque toute l'appli à l'impression (.sm-fullscreen-app{display:none},
     templates/fullscreen-app.php) et fige le corps à la hauteur de l'écran (overflow:hidden) :
     pendant l'impression d'un document, le corps redevient visible et à sa hauteur. */
  body.edt-impression, body.sm-fullscreen-app.edt-impression{ display:block !important; height:auto !important; min-height:0 !important; overflow:visible !important; margin:0 !important; padding:0 !important; background:#FFF !important; }
  body.edt-impression > *:not(.edt-zone-impression){ display:none !important; }
  body.edt-impression .edt-zone-impression{ position:static !important; left:auto !important; }
  body.edt-impression .edt-feuille{ transform:none !important; box-shadow:none !important; margin:0 !important; }
  body.edt-impression .edt-zone-impression .edt-feuille{ break-after:page; page-break-after:always; }
  body.edt-impression .edt-zone-impression .edt-feuille:last-child{ break-after:auto; page-break-after:auto; }
}

/* ---------- Écrans plus étroits ---------- */
@media (max-width: 1380px){
  .edt-corps-studio{ grid-template-columns:76px 240px minmax(0, 1fr); }
  .edt-inspecteur{ grid-column:1 / -1; display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:18px; max-height:none; border-left:0; border-top:1px solid var(--st-filet); }
}
@media (max-width: 860px){
  .edt-actions-page{ width:100%; }
  .edt-actions-page .sm-btn{ flex:1 1 auto; justify-content:center; }
  .edt-modeles{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:16px; padding:4px 4px 16px; }
  .edt-modele:not(#cgt){ flex:0 0 160px; scroll-snap-align:start; }
  .edt-studio{ box-shadow:6px 6px 0 0 var(--tranche-rouge, #A51E1E); }
  .edt-barre{ flex-wrap:nowrap; overflow-x:auto; }
  .edt-nom-doc{ flex:0 0 200px !important; }
  .edt-droite{ margin-left:0; }
  .edt-zoom input{ width:90px; }
  .edt-corps-studio{ display:flex; flex-direction:column; min-height:0; }
  .edt-rail{ flex-direction:row; padding:6px; border-right:0; border-bottom:1px solid var(--st-filet); }
  .edt-rail button{ flex:1; flex-direction:row; justify-content:center; padding:10px 4px; font-size:12px; }
  .edt-rail button[aria-selected="true"]{ box-shadow:inset 0 -3px 0 var(--action); }
  .edt-panneau{ max-height:300px; border-right:0; border-bottom:1px solid var(--st-filet); }
  .edt-biblio{ grid-template-columns:repeat(3, 1fr); }
  .edt-toile{ max-height:none; }
  .edt-plan{ padding:22px 14px 34px; }
  .edt-regle-h, .edt-regle-v{ display:none; }
  .edt-page-active::before{ display:none; }
  .edt-pages{ gap:34px; }
  .edt-familles{ grid-template-columns:1fr; }
  .edt-rac{ display:none; }
}
