/* Charte UC — socle commun à toutes les pages.

   Reprise de la refonte de Milan Hindson (octobre 2026), réécrite autour de jetons :
   chaque couleur est l'une des variables --uc-…, chaque taille de texte l'un des
   crans --uc-taille-… (rien sous 11 px ; le texte courant à 14 px). Historique : un pixel
   ajouté à chaque cran le 14/10/2026, retiré le 15/10, puis un cran de moins le 16/10 —
   Milan préférait un texte plus petit ; sa maquette d'origine allait de 9 à 12 px, jugés trop
   petits pour être lus confortablement. Le texte foncé
   garde partout un contraste d'au moins 4,5:1 sur les fonds clairs de la charte.
   Les styles propres à une page vivent dans static/css/<page>.css. */

/* ===================================================================== police */
/* Inter, hébergée ici (static/fonts/inter, licence SIL OFL) : sans elle, chaque poste la
   remplaçait par une autre (police du système, ou Arial dans Hémicycle) et l'affichage
   changeait d'un ordinateur à l'autre. Police variable : toutes les graisses dans un
   fichier ; le navigateur ne charge que les jeux de caractères dont la page a besoin. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter/inter-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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter/inter-italique-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: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter/inter-italique-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===================================================================== jetons */
:root {
  --uc-encre: #193856;          /* titres, fonds sombres, bouton principal */
  --uc-encre-rgb: 25 56 86;
  --uc-encre-2: #285777;        /* survols, texte appuyé */
  --uc-encre-2-rgb: 40 87 119;
  --uc-bleu: #356c96;           /* liens, actions, focus */
  --uc-bleu-rgb: 53 108 150;
  --uc-texte: #344e64;          /* texte courant */
  --uc-texte-doux: #4a6277;     /* texte secondaire */
  --uc-texte-discret: #566d81;  /* légendes, aides (4,9:1 sur --uc-fond-doux) */
  --uc-bordure: #dfe7ee;
  --uc-bordure-forte: #c8d7e3;
  --uc-accent-clair: #a9c8de;   /* décor, texte clair sur fond sombre */
  --uc-blanc: #ffffff;
  --uc-blanc-rgb: 255 255 255;
  --uc-fond-pale: #f8fbfd;
  --uc-fond: #f5f7fa;
  --uc-fond-doux: #edf4fa;
  --uc-or: #7f5b22;
  --uc-or-vif: #d99a43;
  --uc-or-fond: #fff4df;
  --uc-or-bordure: #ead8b4;
  --uc-vert: #2e6a49;
  --uc-vert-vif: #5b9a76;
  --uc-vert-fond: #eaf4ee;
  --uc-vert-bordure: #d8e9df;
  --uc-rouge: #a04136;
  --uc-rouge-fond: #fbefec;
  --uc-rouge-bordure: #efd8d2;
  --uc-violet: #5c5a9d;

  --uc-taille-xs: .6875rem;     /* 11 px : sur-titres en capitales, pastilles */
  --uc-taille-s: .75rem;        /* 12 px : légendes, aides */
  --uc-taille-m: .8125rem;      /* 13 px : texte secondaire, tableaux */
  --uc-taille-base: .875rem;    /* 14 px : texte courant */
  --uc-taille-l: 1rem;          /* 16 px : titres de carte */
  --uc-taille-xl: 1.25rem;
  --uc-taille-2xl: 1.5rem;
  --uc-taille-3xl: 1.875rem;

  --uc-largeur: 1248px;
}

/* ============================================= Pico, aux couleurs de la charte */
:root,
:root:not([data-theme=dark]),
[data-theme=light] {
  --pac-nuit: var(--uc-encre);
  --pac-bleu: var(--uc-bleu);
  --pac-bleu-fonce: var(--uc-encre-2);
  --pac-bleu-pale: var(--uc-fond-doux);
  --pac-fond: var(--uc-fond);
  --pac-bordure: var(--uc-bordure);
  --pico-font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pico-font-size: 100%;
  --pico-border-radius: 10px;
  --pico-color: var(--uc-texte);
  --pico-muted-color: var(--uc-texte-discret);
  --pico-form-element-border-color: var(--uc-bordure);
  --pico-form-element-background-color: var(--uc-blanc);
  --pico-primary: var(--uc-bleu);
  --pico-primary-background: var(--uc-encre);
  --pico-primary-border: var(--uc-encre);
  --pico-primary-hover-background: var(--uc-encre-2);
  --pico-primary-hover-border: var(--uc-encre-2);
  --pico-card-box-shadow: none;
}

/* Garder la même largeur lorsque les panneaux allongent la page ou qu'une
   fenêtre masque le défilement. Les barres superposées restent inchangées. */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

/* Pico espace les accordéons ouverts de 1 rem sous leur titre. Dans les menus
   flottants, cette marge agrandissait le bouton, l'en-tête et toute la page.
   Les panneaux UC gèrent déjà leur espacement avec leur propre padding. */
:is(.uc-account, .uc-global-menu, .uc-work-choice, .uc-disclosure,
    .crcp-actions, .rf-directory, .ml-insert)[open] > summary {
  margin-block-end: 0;
}

body { color: var(--uc-texte); font-size: var(--uc-taille-base); }
a { text-underline-offset: 3px; }
h1, h2, h3 { color: var(--uc-encre); letter-spacing: -.025em; }
main.container { max-width: var(--uc-largeur); padding: 35px 24px 50px; }
button, [role=button] { font-weight: 600; }
input, select, textarea { box-shadow: none; }
table { font-size: var(--uc-taille-m); }
thead th { background: var(--uc-fond-doux); color: var(--uc-texte-doux); font-weight: 600; }
article { box-shadow: none; }
a:focus-visible,
summary:focus-visible { outline: 3px solid var(--uc-bleu); outline-offset: 4px; }

/* =================================================================== en-tête */
.uc-skip {
  position: absolute; top: -80px; left: 12px; z-index: 200;
  background: var(--uc-blanc); padding: 10px;
}
.uc-skip:focus { top: 5px; }

.uc-header { background: var(--uc-blanc); border-bottom: 1px solid var(--uc-bordure); }
.uc-header-inner {
  max-width: var(--uc-largeur); margin: auto; padding: 23px 24px;
  display: flex; align-items: center; gap: 23px;
}

.uc-brand {
  display: flex; align-items: center; gap: 13px;
  color: var(--uc-encre); text-decoration: none;
  font-weight: 650; font-size: var(--uc-taille-l); line-height: 1.3; white-space: nowrap;
}
.uc-brand img { width: 46px; height: 46px; }
.uc-brand small {
  display: block; margin-top: 6px;
  color: var(--uc-texte-discret); font-size: var(--uc-taille-m); font-weight: 400;
}

/* « Version de test » : la pastille répond au filigrane de la page */
.uc-environnement {
  font-size: var(--uc-taille-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--uc-or-fond); border: 1px solid var(--uc-or-bordure); color: var(--uc-or);
  border-radius: 20px; padding: 5px 10px; white-space: nowrap;
}

.uc-header-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 17px;
  margin-left: auto; min-width: 0;
}

/* bascule vers l'autre environnement (bac à sable, test, production), et lien de gestion à côté du compte */
.uc-bascule, .uc-gestion {
  font-size: var(--uc-taille-s); font-weight: 600; white-space: nowrap; text-decoration: none;
  color: var(--uc-encre-2); background: var(--uc-fond-doux);
  border: 1px solid var(--uc-bordure); border-radius: 20px; padding: 7px 12px;
}
.uc-bascule:hover, .uc-gestion:hover { border-color: var(--uc-accent-clair); text-decoration: none; }
.uc-gestion[aria-current="page"] { color: var(--uc-blanc); background: var(--uc-bleu); border-color: var(--uc-bleu); }

/* --- recherche : une loupe qui se déplie */
.uc-header .rch-entete {
  display: block; position: relative; flex: 0 0 auto;
  width: 46px; min-width: 46px; height: 46px; margin: 0;
  border: 1px solid transparent; border-radius: 23px; background: transparent;
  transition: width .32s cubic-bezier(.22, .68, .18, 1), background .25s, border-color .25s, box-shadow .25s;
}
.uc-header .rch-entete.uc-search-open {
  width: 280px; border-radius: 12px;
  background: var(--uc-fond-pale); border-color: var(--uc-bordure);
  box-shadow: 0 3px 14px rgb(var(--uc-encre-rgb) / 2%);
}
.uc-header .rch-entete:focus-within { border-color: var(--uc-accent-clair); }
.uc-search-toggle {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50%;
  background: transparent !important; color: var(--uc-texte-discret) !important; box-shadow: none !important;
  cursor: pointer;
  transition: left .32s cubic-bezier(.22, .68, .18, 1), color .2s, background .2s;
}
.uc-search-toggle svg { width: 20px; height: 20px; }
.uc-search-toggle:hover { color: var(--uc-encre-2) !important; background: var(--uc-fond-doux) !important; }
.uc-search-toggle:focus-visible { outline: 2px solid var(--uc-bleu); outline-offset: 2px; }
.uc-header .rch-entete.uc-search-open .uc-search-toggle { left: 7px; }
.uc-header .rch-entete input[type=search] {
  position: absolute; inset: 0; display: block; box-sizing: border-box;
  width: 100%; height: 44px; margin: 0; padding: 10px 31px 10px 44px;
  font-size: var(--uc-taille-m); line-height: 1.5; color: var(--uc-texte-doux);
  background: transparent; border: 0; border-radius: 12px; box-shadow: none;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.uc-header .rch-entete.uc-search-open input[type=search] {
  opacity: 1; pointer-events: auto; transition-delay: .08s; padding-left: 53px;
}
.uc-header .rch-entete input::placeholder { color: var(--uc-texte-discret); font-size: var(--uc-taille-s); }
.uc-header .rch-entete input:focus { background: transparent; outline: none; box-shadow: none; }
.uc-header .rch-menu {
  top: calc(100% + 12px); right: 0; left: auto;
  width: 390px; min-width: 0; max-width: calc(100vw - 32px); padding: 8px;
  background: var(--uc-blanc); color: var(--uc-texte-doux);
  border: 1px solid var(--uc-bordure); border-radius: 14px;
  box-shadow: 0 14px 35px rgb(var(--uc-encre-rgb) / 9%);
}
.uc-header .rch-menu a { font-size: var(--uc-taille-s); padding: 11px 12px; line-height: 1.65; }
.uc-header .rch-menu .t { font-size: var(--uc-taille-xs); color: var(--uc-texte-discret); letter-spacing: .8px; }
.uc-header .rch-menu .x,
.uc-header .rch-menu .pied { font-size: var(--uc-taille-xs); color: var(--uc-texte-discret); }
.uc-header .rch-menu mark { background: var(--uc-fond-doux); color: var(--uc-bleu); border-radius: 3px; }

/* --- profil : la pastille aux initiales et son menu */
.uc-account { position: relative; z-index: 100; flex-shrink: 0; margin: 0; white-space: nowrap; }
.uc-account > summary {
  display: grid; place-items: center; box-sizing: border-box;
  width: 46px; height: 46px; padding: 0; margin: 0; list-style: none;
  border-radius: 50%; border: 3px solid var(--uc-fond-doux);
  background: linear-gradient(140deg, var(--uc-encre-2), var(--uc-encre));
  color: var(--uc-blanc); font-size: var(--uc-taille-base); font-weight: 700; letter-spacing: .5px; line-height: 1;
  box-shadow: 0 2px 7px rgb(var(--uc-encre-rgb) / 9%);
  transition: border-color .2s, box-shadow .2s;
}
.uc-account > summary > span { color: var(--uc-blanc); }
.uc-account > summary::after { display: none !important; }
.uc-account > summary::-webkit-details-marker { display: none; }
.uc-account > summary:hover,
.uc-account[open] > summary { border-color: var(--uc-accent-clair); }
.uc-account > summary:focus-visible { outline: 3px solid var(--uc-bleu); outline-offset: 3px; }
.uc-account > div {
  position: absolute; right: 0; top: calc(100% + 15px); z-index: 100;
  width: 280px; max-width: calc(100vw - 32px); padding: 9px;
  background: var(--uc-blanc); border: 1px solid var(--uc-bordure); border-radius: 16px;
  box-shadow: 0 14px 42px rgb(var(--uc-encre-rgb) / 13%);
}
.uc-account > div > strong {
  display: block; padding: 13px 12px 16px; margin: 0 0 6px;
  font-size: var(--uc-taille-base); line-height: 1.5; color: var(--uc-encre);
  border-bottom: 1px solid var(--uc-fond-doux); overflow-wrap: anywhere;
}
.uc-account > div > a {
  display: block; padding: 11px 12px; border-radius: 8px;
  font-size: var(--uc-taille-m); line-height: 1.7; color: var(--uc-texte-doux); text-decoration: none;
}
.uc-account > div > a:hover { background: var(--uc-fond-doux); }
.uc-account > div > a[href="/logout"] {
  margin-top: 5px; border-top: 1px solid var(--uc-fond-doux); border-radius: 0 0 8px 8px;
  color: var(--uc-rouge);
}

/* ======================================================= navigation générale */
.uc-nav {
  max-width: var(--uc-largeur); margin: auto; padding: 17px 24px 0;
  display: flex; justify-content: flex-start; gap: 6px; flex-wrap: wrap;
}
.uc-nav a {
  font-size: var(--uc-taille-m); text-decoration: none;
  padding: 10px 15px; border-radius: 8px; color: var(--uc-texte-doux);
}
.uc-nav a[aria-current=page] { background: var(--uc-encre); color: var(--uc-blanc); }
.uc-nav a:hover { background: var(--uc-bordure); color: var(--uc-encre); }

/* dans une séance, le menu se replie dans « Navigation générale » */
.uc-global-menu { position: relative; z-index: 90; flex: 0 0 auto; margin: 0; }
.uc-global-menu > summary {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px;
  border: 1px solid var(--uc-bordure); border-radius: 9px; background: var(--uc-fond-pale);
  color: var(--uc-texte-doux); font-size: var(--uc-taille-s); line-height: 1.7; white-space: nowrap;
}
.uc-global-menu > summary::after { display: none !important; }
.uc-global-menu svg { width: 15px; height: 15px; }
.uc-global-menu[open] > summary { background: var(--uc-fond-doux); border-color: var(--uc-bordure-forte); }
.uc-global-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: 260px; padding: 8px;
  background: var(--uc-blanc); border: 1px solid var(--uc-bordure); border-radius: 13px;
  box-shadow: 0 12px 35px rgb(var(--uc-encre-rgb) / 13%);
}
.uc-global-panel .uc-nav { flex-direction: column; align-items: stretch; gap: 3px; padding: 0; margin: 0; }
.uc-global-panel .uc-nav a { font-size: var(--uc-taille-m); line-height: 1.7; padding: 11px 12px; color: var(--uc-texte-doux); }
.uc-global-panel .uc-nav a[aria-current=page] { background: var(--uc-fond-doux); color: var(--uc-encre-2); }
.uc-global-panel .uc-nav a:hover { background: var(--uc-fond); }

/* ======================================================= pages et cartes */
.uc-intro { margin: 12px 0 32px; }
.uc-eyebrow {
  display: block; margin: 0 0 12px;
  font-size: var(--uc-taille-xs); font-weight: 650; letter-spacing: 1.6px; color: var(--uc-bleu);
}
.uc-intro h1 {
  font-size: clamp(30px, 3.3vw, 43px); font-weight: 650; line-height: 1.16;
  letter-spacing: -1.4px; margin: 0 0 16px;
}
.uc-intro > p:last-child {
  font-size: var(--uc-taille-base); color: var(--uc-texte-discret);
  max-width: 760px; line-height: 1.7; margin: 0;
}

.uc-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.uc-section-title h2 { font-size: var(--uc-taille-l); font-weight: 650; margin: 0; }
.uc-section-title span,
.uc-section-title a { font-size: var(--uc-taille-m); color: var(--uc-texte-discret); }
.uc-section-title a { text-decoration: none; }
.uc-section-next { margin-top: 35px; }

.uc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.uc-grid-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.uc-card {
  display: flex; flex-direction: column; min-height: 228px; padding: 24px;
  text-decoration: none; color: inherit;
  background: var(--uc-blanc); border: 1px solid var(--uc-bordure); border-radius: 17px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.uc-card:hover {
  transform: translateY(-3px); border-color: var(--uc-accent-clair);
  box-shadow: 0 10px 25px rgb(var(--uc-encre-rgb) / 6%);
}
.uc-card h2 { font-size: var(--uc-taille-l); line-height: 1.4; font-weight: 650; margin: 0 0 8px; }
.uc-card p { font-size: var(--uc-taille-m); line-height: 1.7; color: var(--uc-texte-discret); margin: 0 0 22px; max-width: 290px; }
.uc-card-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto;
  font-size: var(--uc-taille-s); font-weight: 500; color: var(--uc-texte-discret);
}
.uc-card-bottom > span { font-size: var(--uc-taille-xl); }

.uc-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 43px; height: 43px; margin-bottom: 19px;
  background: var(--uc-fond-doux); color: var(--uc-bleu);
  border: 1px solid var(--uc-bordure); border-radius: 12px;
}
.uc-icon svg { width: 24px; height: 24px; }

.uc-shortcut {
  display: flex; align-items: center; gap: 12px; padding: 15px 17px;
  border: 1px solid var(--uc-bordure); border-radius: 13px; background: var(--uc-blanc);
  color: var(--uc-encre); text-decoration: none; transition: border-color .15s, transform .15s;
}
.uc-shortcut:hover { border-color: var(--uc-accent-clair); transform: translateY(-1px); text-decoration: none; }
.uc-shortcut .uc-icon { width: 38px; height: 38px; margin: 0; }
.uc-shortcut b,
.uc-shortcut small { display: block; }
.uc-shortcut b { font-size: var(--uc-taille-m); }
.uc-shortcut small { margin-top: 3px; color: var(--uc-texte-discret); font-size: var(--uc-taille-s); }

.uc-breadcrumb { display: flex; gap: 10px; margin-bottom: 24px; font-size: var(--uc-taille-s); color: var(--uc-texte-discret); }
.uc-breadcrumb a { text-decoration: none; }

.uc-footer {
  display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 0;
  border-top: 1px solid var(--uc-bordure); font-size: var(--uc-taille-s); color: var(--uc-texte-discret);
}

/* ============================================ la séance et ses espaces */
.uc-context {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 22px; margin-bottom: 10px;
  background: var(--uc-fond-doux); border: 1px solid var(--uc-bordure); border-radius: 12px;
}
.uc-context .uc-eyebrow { margin-bottom: 4px; }
.uc-context strong { display: block; font-size: var(--uc-taille-base); color: var(--uc-encre); }
.uc-context > a { font-size: var(--uc-taille-m); white-space: nowrap; }

.uc-work-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 29px; }
.uc-work-link,
.uc-work-choice > summary {
  display: flex; align-items: center; gap: 13px; min-height: 91px; padding: 19px 16px;
  border: 1px solid var(--uc-bordure); border-radius: 12px; background: var(--uc-blanc);
  color: var(--uc-texte-doux); text-decoration: none; line-height: 1.5;
  box-shadow: 0 3px 12px rgb(var(--uc-encre-rgb) / 2%);
  transition: background .15s, border-color .15s;
}
.uc-work-link > span:last-child,
.uc-work-choice summary > span:nth-child(2) { min-width: 0; }
.uc-work-nav b {
  display: block; font-size: var(--uc-taille-m); font-weight: 600; line-height: 1.6;
  color: var(--uc-texte-doux); letter-spacing: -.15px;
}
.uc-work-nav small { display: block; margin-top: 5px; font-size: var(--uc-taille-xs); line-height: 1.6; color: var(--uc-texte-discret); }
.uc-work-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 37px;
  background: var(--uc-fond-doux); border: 1px solid var(--uc-bordure); border-radius: 9px;
  color: var(--uc-texte-discret);
}
.uc-work-icon svg { width: 20px; height: 20px; }
.uc-work-link:hover,
.uc-work-choice > summary:hover { background: var(--uc-fond); border-color: var(--uc-bordure-forte); text-decoration: none; }
.uc-work-link[aria-current=page],
.uc-work-choice.is-active > summary {
  background: var(--uc-encre); border-color: var(--uc-encre);
  box-shadow: 0 5px 16px rgb(var(--uc-encre-rgb) / 8%);
}
.uc-work-link[aria-current=page] b,
.uc-work-choice.is-active b { color: var(--uc-blanc); }
.uc-work-link[aria-current=page] small,
.uc-work-choice.is-active small { color: var(--uc-accent-clair); }
.uc-work-link[aria-current=page] .uc-work-icon,
.uc-work-choice.is-active .uc-work-icon { background: var(--uc-encre-2); border-color: var(--uc-encre-2); color: var(--uc-accent-clair); }
.uc-work-choice { position: relative; margin: 0; min-width: 0; }
.uc-work-choice > summary::after { display: none !important; }
.uc-work-chevron { display: flex; width: 14px; height: 14px; margin-left: auto; flex-shrink: 0; color: var(--uc-texte-discret); }
.uc-work-chevron svg { width: 14px; height: 14px; }
.uc-work-choice[open] > summary { border-color: var(--uc-accent-clair); }
.uc-work-choice > div {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 65; min-width: 260px; padding: 8px;
  background: var(--uc-blanc); border: 1px solid var(--uc-bordure); border-radius: 12px;
  box-shadow: 0 12px 30px rgb(var(--uc-encre-rgb) / 9%);
}
.uc-work-choice > div a {
  display: block; padding: 10px; border-radius: 7px;
  font-size: var(--uc-taille-m); line-height: 1.8; color: var(--uc-texte-doux); text-decoration: none;
}
.uc-work-choice > div a:hover { background: var(--uc-fond-doux); }

/* ============================================== un texte à rédiger (lecture puis édition) */
.uc-redaction { margin: 0; }
.uc-redaction-lecture { cursor: text; }
.uc-redaction-bloc + .uc-redaction-bloc { margin-top: 14px; }
.uc-redaction-etiquette {
  display: block; margin-bottom: 6px;
  font-size: var(--uc-taille-xs); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--uc-texte-discret);
}
.uc-redaction-texte { font-size: var(--uc-taille-base); line-height: 1.75; color: var(--uc-texte); }
.uc-redaction-texte > :last-child { margin-bottom: 0; }
.uc-redaction-texte :is(ul, ol) { margin: 6px 0 10px; padding-left: 20px; }
.uc-redaction-vide { font-style: italic; color: var(--uc-texte-discret); }
.uc-redaction-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.uc-redaction-modifier {
  width: auto; margin: 0; padding: 6px 12px; border-radius: 8px;
  font-size: var(--uc-taille-s); font-weight: 600; color: var(--uc-encre-2);
  background: var(--uc-fond-doux); border: 1px solid var(--uc-bordure);
}
.uc-redaction-modifier:hover { border-color: var(--uc-accent-clair); }
.uc-redaction-mention { font-size: var(--uc-taille-s); color: var(--uc-texte-discret); }
.uc-redaction-edition { margin: 0; }
.uc-redaction-edition label { display: block; margin: 0 0 12px; font-size: var(--uc-taille-s); font-weight: 600; color: var(--uc-texte-doux); }
.uc-redaction-edition textarea,
.uc-redaction-edition input[type=text] {
  margin: 6px 0 0; padding: 12px 14px; font-family: inherit;
  font-size: var(--uc-taille-base); line-height: 1.75; color: var(--uc-texte);
  background: var(--uc-blanc); border: 1px solid var(--uc-bordure-forte); border-radius: 9px; box-shadow: none; resize: vertical;
}
.uc-redaction-edition textarea:focus,
.uc-redaction-edition input[type=text]:focus { border-color: var(--uc-bleu); box-shadow: 0 0 0 3px rgb(var(--uc-bleu-rgb) / 12%); }
.uc-redaction-outils { display: flex; gap: 6px; margin: 0 0 10px; }
.uc-redaction-outils button {
  width: auto; min-width: 36px; margin: 0; padding: 5px 10px; border-radius: 7px;
  font-size: var(--uc-taille-s); font-weight: 500; color: var(--uc-texte-doux);
  background: var(--uc-blanc); border: 1px solid var(--uc-bordure);
}
.uc-redaction-outils button:hover { background: var(--uc-fond-doux); }
.uc-redaction-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--uc-taille-s); color: var(--uc-texte-discret); }
.uc-redaction-pied button { width: auto; margin: 0; padding: 7px 14px; border-radius: 8px; font-size: var(--uc-taille-s); background: var(--uc-encre); border-color: var(--uc-encre); }
.uc-redaction-erreur { color: var(--uc-rouge); }

/* ============================================================ connexion */
.uc-connexion {
  max-width: 430px; margin: 9vh auto 0; padding: 0; overflow: hidden;
  border: 1px solid var(--uc-bordure); border-radius: 17px;
  box-shadow: 0 10px 30px rgb(var(--uc-encre-rgb) / 8%);
}
.uc-connexion > header { margin: 0; padding: 1.4rem 1.6rem; background: var(--uc-fond-doux); }
.uc-connexion-marque {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--uc-taille-xl); font-weight: 700; color: var(--uc-encre);
}
.uc-connexion > header p { margin: .3rem 0 0; font-size: var(--uc-taille-m); color: var(--uc-texte-discret); }
.uc-connexion > div { padding: 1.4rem 1.6rem 1.6rem; }
.uc-connexion form { margin: 0; }
.uc-connexion-erreur { padding: 10px 12px; border-radius: 8px; color: var(--uc-rouge); background: var(--uc-rouge-fond); }

/* ============================================================ adaptation */
@media (max-width: 1050px) {
  .uc-work-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .uc-header-inner { gap: 14px; }
  .uc-header-actions { gap: 11px; }
  .uc-environnement { display: none; }
  .uc-header .rch-entete.uc-search-open { width: 240px; }
  .uc-global-menu .uc-global-label { display: none; }
  .uc-global-menu > summary { padding: 10px; }
  .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  main.container { padding: 25px 16px; }
  .uc-header-inner { justify-content: space-between; padding: 18px 16px; gap: 10px; }
  .uc-brand { flex-shrink: 0; }
  .uc-brand > span { display: none; }
  .uc-brand img { width: 38px; height: 38px; }
  .uc-header-actions { gap: 10px; }
  .uc-bascule, .uc-gestion { padding: 6px 9px; }
  .uc-account > summary { width: 38px; height: 38px; font-size: var(--uc-taille-m); }
  .uc-header .rch-entete { width: 38px; min-width: 38px; height: 38px; border-radius: 19px; }
  .uc-header .rch-entete.uc-search-open { width: min(210px, calc(100vw - 170px)); border-radius: 10px; }
  .uc-search-toggle { width: 36px; height: 36px; }
  .uc-search-toggle svg { width: 18px; height: 18px; }
  .uc-header .rch-entete.uc-search-open .uc-search-toggle { left: 5px; }
  .uc-header .rch-entete input[type=search] { height: 36px; font-size: var(--uc-taille-s); padding-left: 36px; padding-right: 24px; }
  .uc-header .rch-entete.uc-search-open input[type=search] { border-radius: 10px; padding-left: 44px; }
  .uc-header .rch-entete input::placeholder { font-size: var(--uc-taille-xs); }
  .uc-header .rch-menu { right: -48px; width: min(350px, calc(100vw - 32px)); }
  .uc-global-panel { left: auto; right: 0; max-width: calc(100vw - 32px); }
  .uc-nav { padding: 12px 16px 0; gap: 3px; }
  .uc-nav a { font-size: var(--uc-taille-s); padding: 8px 10px; }
  .uc-intro h1 { letter-spacing: -.8px; }
  .uc-grid,
  .uc-grid-main { grid-template-columns: 1fr; }
  .uc-card { min-height: 190px; padding: 22px; }
  .uc-section-title { align-items: flex-start; flex-direction: column; }
  .uc-context { align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px; }
  .uc-footer { flex-direction: column; gap: 5px; }
  .uc-work-nav { gap: 9px; margin: 18px 0 24px; }
  .uc-work-link,
  .uc-work-choice > summary { padding: 13px 11px; gap: 9px; min-height: 85px; border-radius: 10px; }
  .uc-work-nav b { font-size: var(--uc-taille-s); }
  .uc-work-icon { width: 27px; height: 32px; border-radius: 7px; }
  .uc-work-icon svg { width: 16px; height: 16px; }
  .uc-work-choice > div { min-width: 230px; }
  .uc-work-choice:nth-child(even) > div { left: auto; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .uc-card:hover,
  .uc-shortcut:hover { transform: none; }
  .uc-header .rch-entete,
  .uc-header .rch-entete input,
  .uc-search-toggle,
  .uc-account > summary { transition: none; }
}

@media print {
  .uc-header, .uc-nav, .uc-skip, .uc-account, .uc-work-nav, .uc-context { display: none; }
}

/* --- les panneaux repliables : un seul chevron, à droite (le dernier pictogramme du titre) */
.uc-disclosure { margin: 0; }
.uc-disclosure > summary {
  display: flex; align-items: center; gap: 12px; margin: 0; list-style: none; cursor: pointer;
  font-size: var(--uc-taille-m); font-weight: 550; line-height: 1.6; color: var(--uc-texte-doux);
}
.uc-disclosure > summary::-webkit-details-marker { display: none; }
.uc-disclosure > summary::marker { content: ''; }
.uc-disclosure > summary::before,
.uc-disclosure > summary::after { display: none !important; content: none !important; background-image: none !important; }
.uc-disclosure > summary > svg:last-child {
  flex-shrink: 0; width: 17px; height: 17px; margin-left: auto;
  color: var(--uc-texte-discret); transition: transform .15s;
}
.uc-disclosure[open] > summary > svg:last-child { transform: rotate(180deg); }
.uc-summary-title { flex: 1; min-width: 0; }
.uc-summary-title small { display: block; margin-top: 3px; font-size: var(--uc-taille-s); font-weight: 400; line-height: 1.6; color: var(--uc-texte-discret); }
.uc-summary-icon svg { display: block; width: 21px; height: 21px; color: var(--uc-texte-discret); }

/* --- le sélecteur de séance (static/js/selecteur-seance.js), repris du bac à sable de Milan :
   la liste d'origine reste dans la page, cachée ; un bouton ouvre une fenêtre de recherche */
select.ss-remplacee { display: none !important; }
.ss-bouton {
  display: flex !important; align-items: center; gap: 12px; width: 100% !important; min-width: 0; min-height: 48px;
  margin: 8px 0 0 !important; padding: 11px 14px !important; text-align: left; white-space: normal;
  font-size: var(--uc-taille-m) !important; line-height: 1.5 !important; color: var(--uc-texte-discret) !important;
  background: var(--uc-fond-pale) !important; border: 1px solid var(--uc-bordure) !important; border-radius: 10px !important; box-shadow: none !important;
}
.ss-bouton:hover { background: var(--uc-fond-doux) !important; border-color: var(--uc-accent-clair) !important; }
.ss-bouton:focus-visible { outline: 3px solid var(--uc-bleu); outline-offset: 2px; }
.ss-bouton.is-choisi { color: var(--uc-encre-2) !important; }
.ss-bouton > svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--uc-texte-discret); }
.ss-bouton > svg:last-child { width: 15px; height: 15px; }
.ss-valeur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Même commande de séance dans les rapports, le suivi et les fiches. */
.uc-session-switch {
  display: inline-flex; align-items: center; align-self: center; flex: 0 0 auto;
  max-width: 100%; gap: 16px; margin: 0; padding: 0; line-height: 1;
}
.uc-session-switch > select {
  flex: 1 1 260px; min-width: 0; max-width: 340px; height: 40px; margin: 0;
  padding: 0 36px 0 12px; font-size: var(--uc-taille-s); border-radius: 9px;
}
.uc-session-switch > .uc-session-fallback {
  flex: 0 0 auto; height: 40px; margin: 0; padding: 0 14px; font-size: var(--uc-taille-s); border-radius: 9px;
}
.uc-session-switch:has(.ss-remplacee) > .uc-session-fallback { display: none; }
.ss-bouton.ss-bouton-compact, .uc-session-link {
  display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; min-height: 40px; height: 40px;
  margin: 0 !important; padding: 0 12px !important; white-space: nowrap; font-size: var(--uc-taille-s) !important; font-weight: 550;
  color: var(--uc-encre-2) !important; background: var(--uc-blanc) !important; border: 1px solid var(--uc-bordure-forte) !important;
  border-radius: 9px !important; text-decoration: none; box-shadow: 0 1px 3px rgb(var(--uc-encre-rgb) / 3%) !important;
}
.ss-bouton-compact > svg, .uc-session-link > svg { width: 16px; height: 16px; flex-shrink: 0; }
.ss-bouton-compact > svg:last-child, .uc-session-link > svg:last-child { width: 13px; height: 13px; }
.uc-session-switch > .ss-bouton-compact {
  flex: 0 0 auto; justify-content: center; min-width: 120px; min-height: 38px; height: 38px;
  line-height: 1 !important; vertical-align: middle; transform: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.uc-session-switch > .ss-bouton-compact .ss-valeur { flex: 0 0 auto; }
.uc-session-switch > .ss-bouton-compact:is(:hover, :focus, :active) { transform: none; }
.ss-bouton.ss-bouton-compact:hover, .uc-session-link:hover { background: var(--uc-fond-doux) !important; border-color: var(--uc-accent-clair) !important; }

dialog.ss-dialogue { padding: 16px; }
.ss-fenetre {
  display: flex; flex-direction: column; width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow: hidden;
  color: var(--uc-texte); background: var(--uc-blanc); border: 1px solid var(--uc-bordure); border-radius: 18px;
  box-shadow: 0 25px 80px rgb(var(--uc-encre-rgb) / 22%);
}
.ss-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; }
.ss-tete .uc-eyebrow { margin: 0 0 8px; }
.ss-tete h2 { margin: 0 0 6px; font-size: var(--uc-taille-2xl); font-weight: 650; letter-spacing: -.5px; color: var(--uc-encre); }
.ss-contexte { margin: 0; font-size: var(--uc-taille-s); color: var(--uc-texte-doux); }
.ss-fenetre button { width: auto; margin: 0; box-shadow: none; }
.ss-fermer { display: grid; place-items: center; flex-shrink: 0; padding: 8px; color: var(--uc-texte-doux); background: var(--uc-fond-pale); border: 1px solid var(--uc-bordure); border-radius: 9px; }
.ss-fermer svg { width: 17px; height: 17px; }
.ss-filtres { padding: 0 24px 14px; }
.ss-recherche { position: relative; display: block; margin: 0; }
.ss-recherche > svg { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; color: var(--uc-texte-discret); }
.ss-fenetre .ss-recherche input { height: 44px; margin: 0; padding: 10px 14px 10px 40px; font-size: var(--uc-taille-m); background: var(--uc-fond-pale); border: 1px solid var(--uc-bordure); border-radius: 10px; }
.ss-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ss-types { display: flex; gap: 4px; padding: 4px; background: var(--uc-fond-doux); border-radius: 9px; }
.ss-types > button { padding: 7px 11px; font-size: var(--uc-taille-s); font-weight: 550; color: var(--uc-texte-doux); background: transparent; border: 0; border-radius: 7px; white-space: nowrap; }
.ss-types > button[aria-pressed=true] { color: var(--uc-encre); background: var(--uc-blanc); box-shadow: 0 2px 6px rgb(var(--uc-encre-rgb) / 8%); }
.ss-types > span { padding: 6px 10px; font-size: var(--uc-taille-s); color: var(--uc-texte-doux); }
.ss-annee { flex-shrink: 0; margin: 0; }
.ss-fenetre .ss-annee select { height: 38px; margin: 0; padding: 7px 30px 7px 11px; font-size: var(--uc-taille-s); background-color: var(--uc-blanc); border: 1px solid var(--uc-bordure); border-radius: 8px; }
.ss-compte { margin: 0; padding: 10px 24px; font-size: var(--uc-taille-s); color: var(--uc-texte-discret); background: var(--uc-fond-pale); border-top: 1px solid var(--uc-fond-doux); }
.ss-resultats { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 10px; }
.ss-fenetre .ss-seance {
  display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 12px; text-align: left; line-height: 1.5;
  color: var(--uc-texte); background: var(--uc-blanc); border: 1px solid transparent; border-bottom-color: var(--uc-fond-doux); border-radius: 0;
}
.ss-fenetre .ss-seance:hover,
.ss-fenetre .ss-seance:focus-visible { background: var(--uc-fond-doux); border-color: var(--uc-bordure); border-radius: 9px; outline: none; }
.ss-fenetre .ss-seance.is-choisi,
.ss-fenetre .ss-seance.is-choisie { background: var(--uc-fond-doux); border-color: var(--uc-bordure); border-radius: 9px; }
.ss-marque { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; font-size: var(--uc-taille-xs); font-weight: 650; color: var(--uc-bleu); background: var(--uc-fond-doux); border: 1px solid var(--uc-bordure); border-radius: 9px; }
.ss-marque.ss-cp { color: var(--uc-vert); background: var(--uc-vert-fond); border-color: var(--uc-vert-bordure); }
.ss-texte { flex: 1; min-width: 0; }
.ss-texte b { display: block; font-size: var(--uc-taille-m); font-weight: 600; color: var(--uc-encre-2); }
.ss-texte small { display: block; font-size: var(--uc-taille-xs); color: var(--uc-texte-discret); }
.ss-etat { font-size: var(--uc-taille-xs); font-weight: 600; color: var(--uc-bleu); }
.ss-fenetre .ss-plus { display: block; margin: 10px auto 2px; padding: 8px 14px; font-size: var(--uc-taille-s); color: var(--uc-texte-doux); background: var(--uc-fond-pale); border: 1px solid var(--uc-bordure); border-radius: 8px; }
.ss-aucune { margin: 0; padding: 28px 14px; text-align: center; font-size: var(--uc-taille-m); color: var(--uc-texte-doux); }
.ss-pied { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 24px; font-size: var(--uc-taille-xs); color: var(--uc-texte-discret); background: var(--uc-fond-pale); border-top: 1px solid var(--uc-fond-doux); }
.ss-fenetre .ss-vider { padding: 4px 0; font-size: var(--uc-taille-s); color: var(--uc-bleu); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.ss-vider[hidden] { display: none; }
.ss-masque { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* la liste du choix de séance avait son pictogramme et son chevron : le bouton porte les siens */
.uc-session-select-wrap:has(.ss-remplacee) > .uc-session-select-icon,
.uc-session-select-wrap:has(.ss-remplacee) > .uc-session-chevron { display: none; }
.uc-session-select-wrap .ss-bouton { min-height: 64px; margin-top: 0 !important; padding: 15px 18px !important; font-size: var(--uc-taille-base) !important; background: var(--uc-blanc) !important; border-radius: 12px !important; }
@media (max-width: 600px) {
  dialog.ss-dialogue { padding: 10px; }
  .ss-tete { padding: 18px 18px 14px; }
  .ss-filtres { padding: 0 18px 12px; }
  .ss-ligne { flex-wrap: wrap; }
  .ss-types { flex: 1 1 100%; }
  .ss-types > button { flex: 1; padding: 7px 6px; white-space: normal; line-height: 1.3; }
  .ss-annee { flex: 1 1 100%; }
  .ss-fenetre .ss-annee select { width: 100%; }
  .ss-compte,
  .ss-pied { padding-left: 18px; padding-right: 18px; }
}

/* --- la composition d'un dossier de groupe (composants/composition_dossier.html) : deux
   choix côte à côte ; minmax(0, …) tronque une séance au nom long au lieu d'élargir la
   colonne hors de son cadre */
.uc-composition { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.uc-composition label { min-width: 0; margin: 0; font-size: var(--uc-taille-s); font-weight: 550; color: var(--uc-texte-doux); }
.uc-composition select { margin: 8px 0 0; }
.uc-composition-aide { grid-column: 1 / -1; margin: 0; font-size: var(--uc-taille-s); color: var(--uc-texte-discret); }
.uc-composition button[type=submit] {
  grid-column: 1 / -1; width: 100%; margin: 0; padding: 12px 18px; font-size: var(--uc-taille-m); font-weight: 600;
  background: var(--uc-encre); border-color: var(--uc-encre); border-radius: 10px;
}
@media (max-width: 600px) {
  .uc-composition { grid-template-columns: minmax(0, 1fr); }
}
