/* ============================================================
 * DCIP — Carte des implantations (section #territoire de l'accueil)
 * La carte du portail FSN, à l'identique : fond vectoriel blanc, tracés
 * qui se dessinent, bulles en couloirs reliées par des traits qui coulent,
 * outils à droite (pile de zoom pleine, niveau de détail) — le vert du
 * Fonds devenu le bleu de la Direction.
 * ============================================================ */
.tc{--tc-card:var(--papier,#fff);--tc-acc:#1E4FB8;--tc-plein:#1E4FB8;--tc-txt:var(--encre,#0A1A33);
  --tc-txt2:#44506A;--tc-txt3:#66728C;--tc-bord:rgba(10,37,87,.13);--tc-bord-s:rgba(10,37,87,.08);
  --tc-voile:rgba(10,37,87,.045);--tc-ombre:0 18px 44px -28px rgba(10,37,87,.38)}
[data-theme="dark"] .tc{--tc-card:#0F1420;--tc-acc:#5E96FF;--tc-plein:#1E4FB8;--tc-txt:#EEF3FC;
  --tc-txt2:#B6C3DB;--tc-txt3:#8D9BB8;--tc-bord:rgba(255,255,255,.14);--tc-bord-s:rgba(255,255,255,.07);
  --tc-voile:rgba(255,255,255,.06);--tc-ombre:0 18px 44px -26px rgba(0,0,0,.9)}

#territoire.tc .sec-head{text-align:center;margin-inline:auto}
.tc-scene{position:relative;height:clamp(420px,66vh,760px);margin-top:22px;background:var(--tc-card);
  overflow:hidden;isolation:isolate}
.tc-carte{position:absolute;inset:0;background:var(--tc-card);font-family:"Montserrat",system-ui,sans-serif}
.tc-carte.leaflet-container{background:var(--tc-card);outline:0}
/* Le bas de la carte se fond dans la page, pour qu'elle s'y dissolve. */
.tc-scene::after{content:'';position:absolute;left:0;right:0;bottom:0;height:64px;z-index:500;
  pointer-events:none;background:linear-gradient(180deg,transparent,var(--tc-card))}
.tc-scene::before{content:'';position:absolute;left:0;right:0;top:0;height:46px;z-index:500;pointer-events:none;
  background:linear-gradient(180deg,var(--tc-card),transparent)}
.tc-attente{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:var(--tc-txt3);
  font:600 13px "Montserrat",sans-serif;z-index:1}
.tc-scene:fullscreen{width:100vw;height:100vh;background:var(--tc-card)}
.tc-scene:-webkit-full-screen{width:100vw;height:100vh;background:var(--tc-card)}

/* Trait région → étiquette : les tirets s'écoulent vers la bulle. */
.tc-lien{stroke-dasharray:5 7;animation:tc-coule 1.15s linear infinite}
@keyframes tc-coule{to{stroke-dashoffset:-24}}
.tc-ancre{filter:drop-shadow(0 2px 5px rgba(10,37,87,.45))}
.tc-pin-nom{display:block;margin-top:9px;text-align:center;font:800 9px "Montserrat",sans-serif;
  letter-spacing:.7px;text-transform:uppercase;color:var(--tc-txt2);white-space:nowrap;
  transform:translateX(-50%);width:max-content;position:relative;left:50%;
  text-shadow:0 1px 4px var(--tc-card),0 0 2px var(--tc-card)}
.tc-pin-nom i{display:block;margin-top:2px;font-style:normal;font-weight:800;font-size:9.5px;
  letter-spacing:0;text-transform:none;color:var(--tc-acc)}
.tc-pin{display:grid;place-items:center;border-radius:50%;font:800 12px "Montserrat",sans-serif;color:#fff;
  box-shadow:0 6px 16px -6px rgba(7,29,70,.85);border:2.5px solid #fff;font-variant-numeric:tabular-nums}
[data-theme="dark"] .tc-pin{border-color:#0F1420;box-shadow:0 6px 18px -6px rgba(0,0,0,.95)}
/* Bulles déplaçables à la main. */
.tc-bulle{cursor:grab}
.leaflet-dragging .tc-bulle,.tc-bulle.leaflet-drag-target{cursor:grabbing}
.tc-bulle .tc-pin{transition:transform .18s}
.tc-bulle:hover .tc-pin{transform:scale(1.08)}
.tc-b-dep .tc-pin{border-width:2px}
.tc-b-dep .tc-pin-nom{margin-top:6px;font-size:8.5px;letter-spacing:.4px}
/* Départements vus de loin : les noms se chevaucheraient, ils viennent au survol. */
.tc-carte[data-noms="non"] .tc-b-dep .tc-pin-nom{opacity:0!important;transition:opacity .15s}
.tc-carte[data-noms="non"] .tc-b-dep:hover .tc-pin-nom{opacity:1!important}
/* Les bulles arrivent en cascade quand la carte se dessine. */
.tc-scene.dessine .tc-pin{animation:tc-pin-entre .55s cubic-bezier(.2,.9,.25,1.3) both;animation-delay:calc(var(--i,0) * 55ms + 250ms)}
.tc-scene.dessine .tc-pin-nom{animation:tc-nom-entre .5s ease both;animation-delay:calc(var(--i,0) * 55ms + 380ms)}
@keyframes tc-pin-entre{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}
@keyframes tc-nom-entre{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
.tc-scene:not(.dessine) .tc-pin,.tc-scene:not(.dessine) .tc-pin-nom{opacity:0}
/* Seuls les tracés du niveau affiché réagissent au toucher. */
.tc-carte[data-niv="region"] .leaflet-zDepts-pane path,
.tc-carte[data-niv="region"] .leaflet-zComms-pane path,
.tc-carte[data-niv="departement"] .leaflet-zRegions-pane path,
.tc-carte[data-niv="commune"] .leaflet-zRegions-pane path,
.tc-carte[data-niv="commune"] .leaflet-zDepts-pane path{pointer-events:none!important}

/* Outils : zoom / dézoom / recentrage / plein écran, puis niveau de détail.
   Centrés verticalement à droite : jamais cachés par l'en-tête collant ni par le fondu du bas. */
.tc-carte .leaflet-top.leaflet-right{top:50%;transform:translateY(-50%)}
.tc-outils{display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin:0 18px 0 0!important}
.tc-zoom,.tc-niv{border-radius:14px;background:color-mix(in srgb,var(--tc-card) 92%,transparent);
  backdrop-filter:blur(12px);border:1px solid var(--tc-bord);box-shadow:var(--tc-ombre)}
/* Boutons de zoom sur fond plein, pictos blancs (comme le FSN, en bleu). */
.tc-zoom{display:flex;flex-direction:column;overflow:hidden;background:var(--tc-plein);border-color:transparent}
.tc-zoom button{width:42px;height:42px;display:grid;place-items:center;border:0;background:none;color:#fff;
  cursor:pointer;transition:background .18s}
.tc-zoom button+button{border-top:1px solid rgba(255,255,255,.2)}
.tc-zoom button:hover{background:rgba(255,255,255,.14)}
.tc-zoom button:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.tc-zoom svg{width:19px;height:19px}
.tc-zoom .ic-duo>*{stroke:#fff}
.tc-zoom .ic-duo .v{stroke:#C9DAFB}
.tc-niv{display:flex;flex-direction:column;gap:2px;padding:5px}
.tc-niv button{display:flex;align-items:center;gap:8px;padding:7px 11px;border:0;border-radius:9px;background:none;
  color:var(--tc-txt3);font:700 11px "Montserrat",sans-serif;cursor:pointer;white-space:nowrap;transition:background .18s,color .18s}
.tc-niv button:hover{color:var(--tc-txt)}
.tc-niv button:disabled{opacity:.4;cursor:not-allowed}
.tc-niv button i{width:8px;height:8px;border-radius:50%;border:1.6px solid currentColor;flex-shrink:0}
.tc-niv button.on{color:var(--tc-txt);background:var(--tc-voile)}
.tc-niv button.on i{background:var(--tc-acc);border-color:var(--tc-acc)}
.tc-niv button:focus-visible{outline:2px solid var(--tc-acc);outline-offset:1px}

/* Rappel de la sélection du répertoire, posé en haut à gauche. */
.tc-filtre{position:absolute;left:18px;top:18px;z-index:600;max-width:min(360px,calc(100% - 100px));
  padding:11px 15px;border-radius:16px;background:color-mix(in srgb,var(--tc-card) 93%,transparent);
  backdrop-filter:blur(14px);border:1px solid var(--tc-bord);box-shadow:var(--tc-ombre);
  font:500 12px/1.4 "Montserrat",sans-serif;color:var(--tc-txt2);animation:tc-nom-entre .35s ease both}
.tc-filtre[hidden]{display:none}
.tc-filtre-sur{display:block;font-size:9px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;color:var(--tc-txt3)}
.tc-filtre b{display:block;margin-top:3px;font:700 14px/1.3 "Quicksand",sans-serif;color:var(--tc-txt)}
.tc-filtre-n{display:block;margin-top:2px;font-weight:800;color:var(--tc-acc)}

/* Molette sans Ctrl : le mot qui dit comment agrandir. */
.tc-indice{position:absolute;left:50%;top:50%;z-index:650;translate:-50% -50%;padding:10px 16px;border-radius:12px;
  background:rgba(7,29,70,.82);color:#fff;font:700 13px "Montserrat",sans-serif;pointer-events:none;
  opacity:0;transition:opacity .2s}
.tc-indice.vu{opacity:1}

/* Fiche d'une zone : un volet posé à gauche de la carte, en tableaux. */
.tc-fiche{position:absolute;left:18px;top:18px;bottom:18px;z-index:700;width:min(404px,calc(100% - 120px));
  display:flex;flex-direction:column;border-radius:20px;overflow:hidden;
  background:color-mix(in srgb,var(--tc-card) 97%,transparent);backdrop-filter:blur(16px);
  border:1px solid var(--tc-bord);box-shadow:0 30px 64px -30px rgba(7,29,70,.55),0 2px 6px -2px rgba(7,29,70,.08);
  font:500 12px/1.45 "Montserrat",sans-serif;color:var(--tc-txt);
  animation:tc-fiche-entre .42s cubic-bezier(.2,.8,.2,1) both}
.tc-fiche[hidden]{display:none}
@keyframes tc-fiche-entre{from{opacity:0;transform:translateX(-18px) scale(.985)}to{opacity:1;transform:none}}
.tc-fiche-tete{position:relative;padding:18px 20px 0}
.tc-fiche-sur{display:block;font-size:9px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--tc-acc)}
.tc-fiche-t{margin:3px 40px 12px 0;font:700 22px/1.15 "Quicksand",sans-serif;color:var(--tc-txt)}
.tc-fiche-fermer{position:absolute;top:14px;right:14px;width:32px;height:32px;display:grid;place-items:center;
  border:0;border-radius:50%;background:var(--tc-voile);color:var(--tc-txt2);cursor:pointer;transition:background .18s,color .18s}
.tc-fiche-fermer:hover{background:var(--tc-acc);color:#fff}
.tc-fiche-fermer:focus-visible{outline:2px solid var(--tc-acc);outline-offset:2px}
.tc-fiche-f{margin:-4px 0 10px;font-size:11.5px;color:var(--tc-txt2)}
.tc-fiche-f b{color:var(--tc-txt)}
.tc-fiche-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--tc-bord-s);
  border:1px solid var(--tc-bord-s);border-radius:14px;overflow:hidden}
.tc-fiche-g div{background:var(--tc-card);padding:10px 12px}
.tc-fiche-g b{display:block;font:700 20px/1 "Quicksand",sans-serif;color:var(--tc-txt);font-variant-numeric:tabular-nums}
.tc-fiche-g span{display:block;margin-top:5px;font-size:8px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--tc-txt3)}
/* Onglets : programmes, métiers, filières. */
.tc-fiche-onglets{display:flex;gap:4px;margin:14px 20px 0;padding:4px;border-radius:13px;background:var(--tc-voile)}
.tc-fiche-onglets button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 4px;border:0;
  border-radius:10px;background:none;font:700 11.5px "Montserrat",sans-serif;color:var(--tc-txt3);cursor:pointer;
  transition:background .18s,color .18s,box-shadow .18s}
.tc-fiche-onglets button:hover{color:var(--tc-txt)}
.tc-fiche-onglets button[aria-selected="true"]{background:var(--tc-card);color:var(--tc-txt);box-shadow:0 3px 10px -4px rgba(10,37,87,.35)}
.tc-fiche-onglets button b{min-width:20px;padding:1px 6px;border-radius:99px;font-size:9.5px;background:var(--tc-bord-s);color:var(--tc-txt2)}
.tc-fiche-onglets button[aria-selected="true"] b{background:var(--tc-acc);color:#fff}
.tc-fiche-onglets button:focus-visible{outline:2px solid var(--tc-acc);outline-offset:1px}
.tc-fiche-rech{display:flex;align-items:center;gap:8px;margin:10px 20px 0;padding:0 12px;height:36px;border-radius:11px;
  border:1px solid var(--tc-bord);color:var(--tc-txt3);transition:border-color .18s,box-shadow .18s}
.tc-fiche-rech:focus-within{border-color:var(--tc-acc);box-shadow:0 0 0 3px color-mix(in srgb,var(--tc-acc) 16%,transparent)}
.tc-fiche-rech input{flex:1;min-width:0;border:0;outline:0;background:none;font:500 12px "Montserrat",sans-serif;color:var(--tc-txt)}
/* Le tableau ne défile pas : il se feuillette, à hauteur de ligne fixe. */
.tc-fiche-corps{flex:1;min-height:0;overflow:hidden;margin-top:8px;padding:0 20px}
.tc-tab{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}
.tc-tab th{height:34px;padding:0 6px;box-sizing:border-box;text-align:left;background:var(--tc-card);
  font:800 8.5px "Montserrat",sans-serif;letter-spacing:.9px;text-transform:uppercase;color:var(--tc-txt3);
  border-bottom:1px solid var(--tc-bord);white-space:nowrap;overflow:hidden}
.tc-tab td{height:42px;padding:0 6px;box-sizing:border-box;border-bottom:1px solid var(--tc-bord-s);vertical-align:middle;overflow:hidden}
.tc-tab tbody tr{animation:tc-ligne .32s ease both;animation-delay:calc(var(--i,0) * 22ms)}
@keyframes tc-ligne{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.tc-tab tbody tr:hover td{background:var(--tc-voile)}
.tc-tab .r{width:28px;padding-right:2px;color:var(--tc-txt3);font-size:10.5px;font-weight:700;font-variant-numeric:tabular-nums}
.tc-tab .nom b,.tc-tab .nom small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-tab .nom b{font-weight:700;color:var(--tc-txt);line-height:1.3}
.tc-tab .nom small{margin-top:1px;font-size:10px;color:var(--tc-txt3);line-height:1.3}
.tc-tab .nv{width:78px}
.tc-tab .nvx{width:112px;white-space:nowrap}
.tc-tab .c{width:52px;text-align:center;font-weight:700;color:var(--tc-txt2);font-variant-numeric:tabular-nums}
.tc-tab .n{width:82px;white-space:nowrap;text-align:right}
.tc-tab .n b{display:inline-block;min-width:22px;font-weight:800;color:var(--tc-txt);font-variant-numeric:tabular-nums}
.tc-niv-b{display:inline-block;margin:1px 3px 1px 0;padding:2px 7px;border-radius:7px;white-space:nowrap;
  font:800 9.5px/1.4 "Montserrat",sans-serif;color:var(--tc-acc);background:color-mix(in srgb,var(--tc-acc) 11%,transparent)}
.tc-niv-plus{display:inline-block;padding:2px 5px;font:800 9.5px/1.4 "Montserrat",sans-serif;color:var(--tc-txt3)}
.tc-jauge{display:inline-block;width:34px;height:5px;margin-right:7px;border-radius:9px;vertical-align:middle;
  overflow:hidden;background:var(--tc-bord-s)}
/* Pages du tableau. */
.tc-fiche-pages{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;
  margin:0 20px;font-size:11px;color:var(--tc-txt3)}
.tc-fiche-pages b{color:var(--tc-txt);font-weight:800;font-variant-numeric:tabular-nums}
.tc-fiche-pages button{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--tc-bord);border-radius:50%;
  background:var(--tc-card);color:var(--tc-acc);cursor:pointer;transition:background .18s,color .18s,border-color .18s}
.tc-fiche-pages button:hover:not(:disabled){background:var(--tc-acc);border-color:var(--tc-acc);color:#fff}
.tc-fiche-pages button:disabled{opacity:.35;cursor:default}
.tc-fiche-pages button:focus-visible{outline:2px solid var(--tc-acc);outline-offset:2px}
.tc-jauge i{display:block;height:100%;width:calc(var(--p,0) * 100%);border-radius:inherit;background:var(--tc-acc)}
.tc-fiche-vide{margin:22px 0;text-align:center;color:var(--tc-txt3);font-size:12px}
.tc-fiche-pied{margin:0;padding:9px 20px 12px;border-top:1px solid var(--tc-bord-s);font-size:10px;line-height:1.5;color:var(--tc-txt3)}
.tc-bulle-com{font:700 11px "Montserrat",sans-serif;border-radius:8px;padding:4px 8px;color:#0A1A33}

/* Mention des licences du fond de carte, repliée derrière un « i » en bas à droite. */
.tc-credit{position:absolute;right:14px;bottom:10px;z-index:600;display:flex;flex-direction:row-reverse;align-items:center;gap:6px;
  font:500 9.5px/1 "Montserrat",sans-serif;color:var(--tc-txt3)}
.tc-credit summary{list-style:none;width:16px;height:16px;display:grid;place-items:center;border-radius:50%;cursor:pointer;
  border:1px solid var(--tc-bord);background:var(--tc-card);font:700 9px/1 Georgia,serif;font-style:italic;opacity:.6;transition:opacity .18s}
.tc-credit summary::-webkit-details-marker{display:none}
.tc-credit summary:hover,.tc-credit[open] summary{opacity:1}
.tc-credit span{padding:4px 8px;border-radius:8px;background:var(--tc-card);border:1px solid var(--tc-bord-s);white-space:nowrap}
.tc-credit a{color:inherit;text-decoration:none}
.tc-credit a:hover{text-decoration:underline}

/* Aucun cadre de focus autour d'une zone touchée à la souris. */
.tc-carte path.leaflet-interactive:focus,.tc-carte path.leaflet-interactive:focus-visible{outline:none}
/* Avant le premier dessin, le contour du pays attend pour se tracer. */
.tc-scene:not(.dessine) .leaflet-zPays-pane{opacity:0}

@media (max-width:999px){.tc-scene{height:560px}}
@media (max-width:700px){
  .tc-scene{height:460px;margin-top:14px}
  .tc-niv{display:none}
  .tc-outils{margin-right:10px!important}
  .tc-zoom button{width:38px;height:38px}
  .tc-filtre{left:10px;top:10px;padding:9px 12px}
  /* Bulles : plus petites ; au niveau national, le seul nom de la région. */
  .tc-pin-nom{margin-top:5px;font-size:7.5px;letter-spacing:.4px}
  .tc-carte[data-niv="region"] .tc-pin-nom i{display:none}
  .tc-pin{border-width:2px}
}
/* Sur mobile, la fiche passe sous la carte, au fil de la page, avec le même
   dessin et des caractères plus petits. */
.tc-fiche.tc-fiche--flux{position:relative;left:auto;top:auto;bottom:auto;width:auto;margin:12px 0 0;
  border-radius:18px;font-size:11px;animation-name:tc-fiche-monte}
@keyframes tc-fiche-monte{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.tc-fiche--flux .tc-fiche-tete{padding:14px 14px 0}
.tc-fiche--flux .tc-fiche-sur{font-size:8px}
.tc-fiche--flux .tc-fiche-t{margin:2px 40px 10px 0;font-size:17px}
.tc-fiche--flux .tc-fiche-fermer{top:10px;right:10px;width:28px;height:28px}
.tc-fiche--flux .tc-fiche-g div{padding:8px 9px}
.tc-fiche--flux .tc-fiche-g b{font-size:15px}
.tc-fiche--flux .tc-fiche-g span{font-size:6.5px;letter-spacing:.5px}
.tc-fiche--flux .tc-fiche-onglets{margin:10px 14px 0}
.tc-fiche--flux .tc-fiche-onglets button{padding:7px 2px;font-size:10px;gap:4px}
.tc-fiche--flux .tc-fiche-onglets button b{font-size:8.5px;padding:1px 5px;min-width:0}
.tc-fiche--flux .tc-fiche-rech{margin:8px 14px 0;height:32px}
.tc-fiche--flux .tc-fiche-rech input{font-size:11px}
.tc-fiche--flux .tc-fiche-corps{padding:0 14px}
.tc-fiche--flux .tc-tab{font-size:10.5px}
.tc-fiche--flux .tc-tab th{font-size:7.5px;letter-spacing:.6px}
.tc-fiche--flux .tc-tab td{height:40px;padding:0 4px}
.tc-fiche--flux .tc-tab .r{width:20px;font-size:9.5px}
.tc-fiche--flux .tc-tab .nom small{font-size:9px}
.tc-fiche--flux .tc-tab .nv{width:62px}
.tc-fiche--flux .tc-tab .nvx{width:86px}
.tc-fiche--flux .tc-tab .c{width:38px}
.tc-fiche--flux .tc-tab .n{width:58px}
.tc-fiche--flux .tc-jauge{width:20px;margin-right:5px}
.tc-fiche--flux .tc-niv-b{padding:1px 5px;font-size:8.5px}
.tc-fiche--flux .tc-fiche-pages{margin:0 14px;font-size:10px}
.tc-fiche--flux .tc-fiche-pages button{width:28px;height:28px}
.tc-fiche--flux .tc-fiche-pied{padding:8px 14px 12px;font-size:9px}
@media (max-width:380px){.tc-fiche--flux .tc-jauge{display:none}}
@media (prefers-reduced-motion:reduce){
  .tc-lien{animation:none}
  .tc-scene.dessine .tc-pin,.tc-scene.dessine .tc-pin-nom,.tc-filtre,.tc-fiche,.tc-tab tbody tr{animation:none}
  .tc-scene:not(.dessine) .tc-pin,.tc-scene:not(.dessine) .tc-pin-nom{opacity:1}
  .tc-scene:not(.dessine) .leaflet-zPays-pane{opacity:1}
}

/* Les calques vectoriels de Leaflet vivent dans des volets sans largeur : la règle
   générale « svg{max-width:100%} » de la page les réduisait à rien. */
.tc-carte svg,.tc-carte .leaflet-pane svg{max-width:none!important;max-height:none!important}

/* Pleine largeur : la carte va d'un bord à l'autre de la fenêtre, sans marge ;
   seul l'en-tête de la section garde sa gouttière. */
#territoire.tc.sec{max-width:none;margin-left:0;margin-right:0;padding-left:0;padding-right:0}
#territoire.tc .sec-head{padding-left:var(--gouttiere,16px);padding-right:var(--gouttiere,16px)}
#territoire.tc .tc-scene{width:100%;margin-left:0;margin-right:0;border-radius:0;border-left:0;border-right:0}
@media (max-width:700px){.tc-fiche.tc-fiche--flux{margin-left:var(--gouttiere,16px);margin-right:var(--gouttiere,16px)}}

/* Fiche : une fenêtre flottante, saisie par son en-tête. Sur grand écran, elle
   s'ouvre à droite de la colonne de raccourcis (.piliers) qui longe la page. */
@media (min-width:1281px){.tc-scene > .tc-fiche{left:92px}}
.tc-fiche:not(.tc-fiche--flux) .tc-fiche-tete{cursor:grab;touch-action:none}
.tc-fiche-poignee{position:absolute;top:0;left:50%;width:64px;height:16px;margin-left:-32px}
.tc-fiche-poignee::before{content:'';position:absolute;left:12px;right:12px;top:7px;height:4px;border-radius:4px;
  background:var(--tc-bord);transition:background .2s}
.tc-fiche-tete:hover .tc-fiche-poignee::before,.tc-fiche.saisie .tc-fiche-poignee::before{background:var(--tc-acc)}
.tc-fiche--flux .tc-fiche-poignee{display:none}
.tc-fiche.tc-fiche--flottante{position:fixed;right:auto;bottom:auto;z-index:75;width:min(404px,calc(100vw - 16px));animation:none}
.tc-fiche.saisie{user-select:none;-webkit-user-select:none;
  box-shadow:0 44px 90px -30px rgba(7,29,70,.62),0 2px 8px -2px rgba(7,29,70,.12)}
.tc-fiche.saisie .tc-fiche-tete{cursor:grabbing}

/* Badges de niveau (CAP, BT…) : fond bleu plein, texte blanc. */
.tc-niv-b{background:var(--tc-plein,#1E4FB8);color:#fff}

/* Noms sur plusieurs lignes : plus de points de suspension, la ligne du
   tableau grandit avec son texte (la pagination mesure chaque ligne). */
.tc-tab td{padding-top:6px;padding-bottom:6px}
.tc-tab .nom b,.tc-tab .nom small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word}
.tc-fiche--flux .tc-tab td{padding-top:5px;padding-bottom:5px}

/* Poignée de la fiche en bleu foncé (marine du site) ; plus claire en thème
   sombre pour rester visible sur le fond de la fiche. */
.tc-fiche-poignee::before{background:#0A2557}
.tc-fiche-tete:hover .tc-fiche-poignee::before,.tc-fiche.saisie .tc-fiche-poignee::before{background:#1E4FB8}
[data-theme="dark"] .tc-fiche-poignee::before{background:#5E96FF}
[data-theme="dark"] .tc-fiche-tete:hover .tc-fiche-poignee::before,[data-theme="dark"] .tc-fiche.saisie .tc-fiche-poignee::before{background:#9DBDFF}
