:root {
  --ink: #16141a;
  --page-title-size: clamp(26px, 3vw, 30px);
  --ink-soft: rgba(20, 18, 26, .6);
  --ink-faint: rgba(20, 18, 26, .45);
  --paper: #fffefc;
  --paper-raised: #ffffff;
  --line: rgba(20, 18, 26, .12);
  --accent: #e4007c;
  --amber-bg: #f6e7c1;
  --amber-ink: #8a5a12;
  --sage-bg: #dfeee2;
  --sage-ink: #2f6b46;
  --rose-bg: #f6dfd8;
  --rose-ink: #a3462a;
  --blue-bg: #dfe6f2;
  --blue-ink: #2e4f8a;
  --violet-bg: #e8e1f2;
  --violet-ink: #5b3f8a;
  --grey-bg: #e7e5e0;
  --grey-ink: #55524a;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--ink); background: var(--paper); }
.app-main { flex: 1; min-width: 0; padding: 1.75rem 1.5rem 3rem; }
/* The refonte never underlines: affordance comes from colour and weight.
   text-decoration on an anchor propagates from display:block parents, so
   the rule lives on the element itself and survives re-parenting. */
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1 { font-size: var(--page-title-size); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 1.25rem; }
h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; }

/* Edition catalogue */
.home-head { margin-bottom: 1.5rem; }
.home-head__kicker { margin: 0 0 .25rem; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.home-head h1 { margin-bottom: .35rem; }
.home-head .note { margin: 0; }
.edition-catalogue { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; max-width: 1100px; }
.edition-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-raised); box-shadow: 0 2px 6px rgba(20,18,26,.04); transition: transform .15s, box-shadow .15s; }
.edition-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,18,26,.1); }
.edition-card__image, .edition-card__placeholder { display: block; width: 100%; height: 190px; object-fit: cover; }
.edition-card__placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink), var(--accent)); color: white; font-size: 3rem; font-weight: 800; letter-spacing: -.06em; }
.edition-card__body { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; padding: 1rem 1.1rem 1.1rem; }
.edition-card__year { margin: 0 0 .15rem; color: var(--ink-faint); font-size: .75rem; font-weight: 700; }
.edition-card__body h2 { margin: 0; font-size: 1.15rem; }

/* Topbar */
.topbar { display: flex; gap: 1rem; align-items: center; padding: .75rem 1.5rem;
          border-bottom: 1px solid var(--line); background: var(--paper-raised); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; text-decoration: none; color: inherit; }
.brand::before {
  content: ""; display: block; width: 26px; height: 26px; border-radius: 7px;
  background: var(--ink);
  background-image: radial-gradient(circle at center, var(--paper) 0 38%, transparent 39%);
}
.who { margin-left: auto; color: var(--ink-soft); font-size: .9rem; }
.edition-switcher { display: flex; align-items: center; gap: .4rem; padding: .3rem .3rem .3rem .75rem;
                     border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.edition-switcher label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.edition-switcher select { border: none; background: transparent; font-weight: 600; padding: .3rem .4rem; min-height: 0; }

/* App shell & sidenav — reuses the dashboard's own icon chips (card__icon--*)
   so the menu reads as the same object as the tiles it links to, not a
   second visual language bolted onto the first. */
.app-shell { display: flex; align-items: flex-start; }
.sidenav { flex-shrink: 0; width: 230px; padding: 1.25rem .9rem;
           border-right: 1px solid var(--line); background: var(--paper-raised); }
.sidenav summary { display: none; }
.sidenav__section-group { margin-bottom: .2rem; }
.sidenav__section {
  display: flex; align-items: center; gap: .65rem; padding: .45rem .5rem; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--ink);
}
.sidenav__section:hover { background: var(--paper); color: var(--ink); }
.sidenav__section.is-active { background: var(--ink); color: var(--paper); }
.sidenav__icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center;
                  justify-content: center; flex-shrink: 0; }
.sidenav__icon svg { width: 15px; height: 15px; }
.sidenav__icon--home { background: var(--grey-bg); color: var(--grey-ink); }
.sidenav__sublinks { display: flex; flex-direction: column; margin: .1rem 0 .7rem 2.7rem; }
.sidenav__sublinks a { padding: .3rem .5rem; margin: 0 -0.5rem; border-radius: 6px; text-decoration: none;
                        font-size: .85rem; color: var(--ink-soft); }
.sidenav__sublinks a:hover { background: var(--paper); color: var(--ink); }
.sidenav__sublinks a.is-active { color: var(--ink); font-weight: 700; }

/* Banners & messages */
.banner { margin: 0; padding: .6rem 1.5rem; }
.banner--readonly { background: var(--amber-bg); color: var(--amber-ink); font-weight: 600; }
.banner--demo { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
               background: var(--blue-bg); color: var(--blue-ink); font-weight: 600; }
.banner--demo a { flex-shrink: 0; text-decoration: underline; text-underline-offset: .15em; }
.demo-reset { max-width: 680px; }
.demo-reset h1 { margin-bottom: .75rem; }
.demo-reset__actions { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.messages { list-style: none; margin: 0; padding: 0; }
.message { padding: .6rem 1.5rem; font-weight: 600; }
.message--success { background: var(--sage-bg); color: var(--sage-ink); }
.message--error { background: var(--rose-bg); color: var(--rose-ink); }
.message--warning { background: var(--amber-bg); color: var(--amber-ink); }
.message--info, .message--debug { background: var(--blue-bg); color: var(--blue-ink); }

/* Page header: eyebrow + icon chip + title, used by every module's index screen */
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-header__lead { display: flex; align-items: center; gap: .875rem; }
.page-header__icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center;
                      justify-content: center; flex-shrink: 0; }
.page-header__icon svg { width: 20px; height: 20px; }
.page-header__eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
                         color: var(--ink-faint); margin: 0 0 .15rem; }
.page-header__eyebrow--brand {
  color: var(--color-brand);
  font-family: system-ui, sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.page-header h1 { margin: 0; font-size: var(--page-title-size); }
.page-header__icon--org { background: oklch(0.9 0.05 250); color: oklch(0.42 0.09 250); }
.page-header__icon--affiche { background: oklch(0.9 0.05 20); color: oklch(0.42 0.09 20); }
.page-header__icon--kanban { background: oklch(0.9 0.05 130); color: oklch(0.42 0.09 130); }
.page-header__icon--documents { background: oklch(0.9 0.05 300); color: oklch(0.42 0.09 300); }
.page-header__icon--planning { background: oklch(0.9 0.05 60); color: oklch(0.42 0.09 60); }

/* Cards: dashboard tiles, org pôles, document sections all share one visual language */
.card, .team, .section {
  border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.4rem;
  background: var(--paper-raised); margin-bottom: 1.1rem;
}
.card--empty, .team:has(> .positions > .empty), .section:has(> ul > .empty) { border-style: dashed; }
.card--setup { border-style: dashed; border-color: #c9a877; background: #fbf6ec; }
.card--setup h2 a { color: #6b4610; }
.card--setup p { color: #8a6d3f; }
.card h2 a, .team h2 a { text-decoration: none; }
.card h2, .team h2 { display: flex; align-items: center; gap: .65rem; }
.card__icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card__icon svg { width: 17px; height: 17px; }
.card__icon--org { background: oklch(0.9 0.05 250); color: oklch(0.42 0.09 250); }
.card__icon--affiche { background: oklch(0.9 0.05 20); color: oklch(0.42 0.09 20); }
.card__icon--kanban { background: oklch(0.9 0.05 130); color: oklch(0.42 0.09 130); }
.card__icon--documents { background: oklch(0.9 0.05 300); color: oklch(0.42 0.09 300); }
.card__icon--planning { background: oklch(0.9 0.05 60); color: oklch(0.42 0.09 60); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.card-grid > .card, .card-grid > .team { margin-bottom: 0; }

/* Lists inside cards: positions, documents, my positions */
.positions, .my-positions, .section ul { list-style: none; margin: 0; padding: 0; }
.positions li, .my-positions li, .section li {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .5rem 0; border-top: 1px solid var(--line);
}
.positions li:first-child, .my-positions li:first-child, .section li:first-child { border-top: none; }
.positions li.empty, .section li.empty { color: var(--ink-faint); font-style: italic; justify-content: flex-start; border-top: none; padding-top: 0; }

/* Badges: headcounts, priority, understaffed, warnings — the fix for text
   that used to render with no visual signal at all. */
.headcount { font-size: .8rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
             background: var(--sage-bg); color: var(--sage-ink); white-space: nowrap; }
.understaffed .headcount { background: var(--amber-bg); color: var(--amber-ink); }
.priority { font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px;
            background: var(--rose-bg); color: var(--rose-ink); }
.meta { font-size: .8rem; color: var(--ink-faint); }
.note { font-size: .85rem; color: var(--ink-faint); font-style: italic; }
p.warning, li.warning {
  background: var(--amber-bg); color: var(--amber-ink); border-radius: 8px; padding: .5rem .75rem;
  font-weight: 600;
}
li.warning a, li.warning strong { color: var(--amber-ink); }

/* Buttons */
.button, button[type="submit"] {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none;
  padding: .6rem 1.1rem; min-height: 44px; border-radius: 8px; border: 1px solid transparent;
  background: var(--ink); color: var(--paper); cursor: pointer;
}
.button:hover, button[type="submit"]:hover { background: #142934; color: var(--paper); }
.column-actions button[type="submit"] { background: transparent; color: var(--ink); border-color: var(--line); }
.button.danger, button.danger[type="submit"] { background: transparent; color: var(--rose-ink); border-color: var(--line); }
.button.danger:hover, button.danger[type="submit"]:hover { background: var(--rose-bg); }

/* Forms */
label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
input, select, textarea { font: inherit; color: var(--ink); }
input[type="text"], input[type="date"], input[type="number"], input[type="email"],
input[type="password"], input[type="url"], input[type="time"], input[type="datetime-local"],
input[type="file"], select, textarea {
  border: 1px solid var(--line); border-radius: 6px; padding: .5rem .6rem; background: var(--paper-raised);
}
input[type="text"], input[type="date"], input[type="number"], input[type="email"],
input[type="password"], input[type="url"], input[type="time"], input[type="datetime-local"],
input[type="file"], select, textarea { width: 100%; min-height: 42px; }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(228, 0, 124, .2); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 96px; resize: vertical; }
.filters { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding: .875rem 1rem;
           border: 1px solid var(--line); border-radius: 10px; background: var(--paper-raised); margin-bottom: 1.5rem; }
.filters label { display: flex; flex-direction: column; gap: .25rem; }
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; }
.fiche dt { font-weight: 600; color: var(--ink-soft); }
.fiche dd { margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--ink-faint); margin-bottom: .25rem; }

/* Kanban board */
.board-actions, .column-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.board-actions a, .column-actions a { font-size: .85rem; font-weight: 600; padding: .5rem .9rem;
                                       border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.board { display: flex; gap: 1.1rem; align-items: flex-start; overflow-x: auto; padding-bottom: .5rem; }
.column { width: 280px; flex-shrink: 0; background: #f4f2ec; border-radius: 12px; padding: .875rem; }
.column h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); padding: 0 .25rem; }
.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; }
.cards li { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: .875rem;
            display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.cards li.empty { background: transparent; border-style: dashed; color: var(--ink-faint); font-style: italic; }
.cards .due { font-size: .8rem; color: var(--ink-faint); }
.assignee { font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px;
            background: #e9ddcf; color: var(--ink); }
.label { font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.label--grey { background: var(--grey-bg); color: var(--grey-ink); }
.label--red { background: var(--rose-bg); color: var(--rose-ink); }
.label--orange { background: var(--amber-bg); color: var(--amber-ink); }
.label--green { background: var(--sage-bg); color: var(--sage-ink); }
.label--blue { background: var(--blue-bg); color: var(--blue-ink); }
.label--purple { background: var(--violet-bg); color: var(--violet-ink); }
.move-fallback { display: flex; gap: .4rem; flex-wrap: wrap; }
.pole { font-size: .8rem; color: var(--ink-faint); margin-left: .4rem; }

button, select { font: inherit; padding: .6rem .9rem; min-height: 44px; }

@media (max-width: 40rem) {
  .app-main { padding: 1.25rem 1rem 2.5rem; }
  button { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .board { flex-direction: column; }
  .column { width: 100%; }
  /* app-shell stacks the rail above app-main here, but align-items:
     flex-start (set for the row layout) also applies to this column's
     cross axis: without an explicit width, app-main shrink-wraps to its
     widest descendant (a kanban track, a wide table) instead of the
     viewport, dragging the whole page into horizontal scroll. */
  .app-shell { flex-direction: column; }
  .app-main { width: 100%; }
  .sidenav { width: 100%; border-right: none; border-bottom: 1px solid var(--line); padding: .75rem 1rem; }
  .sidenav summary { display: block; font-weight: 700; padding: .4rem 0; cursor: pointer; }
  .sidenav[open] summary { margin-bottom: .4rem; }
}

/* ── Refonte : jetons visuels (chantier chassis + Gestion) ───────────── */
:root {
  --color-brand: #e4007c;
  --color-brand-hover: #c1006a;
  --color-ink: #16141a;
  --color-bg: #fffefc;
  --color-bg-soft: #faf8f5;
  --color-line: rgba(20, 18, 26, .12);
}

/* The dashboard hero's metric labels are muted, not pink: only the
   RÉTROPLANNING kicker carries the brand colour. Size, weight and
   letterspacing are the maquette's (10px, .14em) — page-header__eyebrow
   alone is smaller-tracked and is sized for screen heads, not stats. */
.page-header__eyebrow--muted {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(20, 18, 26, .45);
}

.topbar-v2 {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 50px;
  padding: 0 16px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.topbar-v2,
.rail { font-family: "Archivo", Helvetica, Arial, sans-serif; }
.topbar-v2__brand {
  display: flex;
  align-items: baseline;
  gap: 5px;
  text-decoration: none;
}
.topbar-v2__logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.03em;
  font-style: italic;
  font-family: "Archivo", Helvetica, Arial, sans-serif;
  color: var(--color-brand);
}
.topbar-v2__kicker {
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: .2em;
  color: rgba(20, 18, 26, .5);
}
.topbar-v2__search {
  padding: 5px 11px;
  border: 1px solid var(--color-line);
  border-radius: 5px;
  font-size: 11.5px;
  color: rgba(20, 18, 26, .45);
  min-width: 190px;
}
.topbar-v2__spacer { flex: 1; }
.topbar-v2__utility { display: flex; align-items: center; gap: 12px; flex: none; }
.topbar-v2__notification-link {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--color-ink);
  background: #fff;
}
.topbar-v2__notification-link:hover,
.topbar-v2__notification-link:focus-visible,
.topbar-v2__notification-link.is-active { color: #fff; background: var(--color-brand); }
.topbar-v2__notification-link:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.topbar-v2__notification-link svg { width: 16px; height: 16px; }
.topbar-v2__application-admin-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--color-ink);
  background: #fff;
}
.topbar-v2__application-admin-link:hover,
.topbar-v2__application-admin-link:focus-visible,
.topbar-v2__application-admin-link.is-active {
  color: #fff;
  background: var(--color-brand);
}
.topbar-v2__application-admin-link:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}
.topbar-v2__application-admin-link svg { width: 18px; height: 18px; }
.topbar-v2__notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: flex;
  min-width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--color-bg);
  border-radius: 9px;
  color: #fff;
  background: var(--color-brand);
  font-size: 9.5px;
  font-weight: 800;
}
.topbar-v2__who { font-size: 11.5px; color: rgba(20, 18, 26, .55); }
.topbar-v2__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--avatar-color, var(--color-ink)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700;
}

/* Below 40rem, brand + edition switcher + a 190px-min-width search field +
   avatar no longer fit on one line, and nothing here wraps: the search
   input's min-width just pushes the row past the viewport and forces a
   page-wide horizontal scrollbar. Let the row wrap and push the search
   field to its own line instead of shrinking anything below readability. */
@media (max-width: 40rem) {
  .topbar-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand edition account"
      "search search search";
    column-gap: 10px;
    align-items: center;
    height: auto;
    row-gap: 8px;
    padding: 8px 16px 10px;
  }
  .topbar-v2__brand { grid-area: brand; min-width: 0; }
  .edition-switcher-v2 { grid-area: edition; min-width: 0; }
  .permission-preview-menu { grid-area: account; }
  .topbar-v2__utility { grid-area: account; justify-self: end; }
  .topbar-v2__spacer { display: none; }
  .topbar-v2__search-form {
    grid-area: search;
    width: 100%;
    min-width: 0;
  }
  .topbar-v2__search {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

.edition-switcher-v2 { position: relative; }
.edition-switcher-v2__trigger {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 10px; background: rgba(20, 18, 26, .05);
  border-radius: 5px; cursor: pointer; list-style: none;
  font-size: 12.5px; font-weight: 700;
}
.edition-switcher-v2__trigger::-webkit-details-marker { display: none; }
.edition-switcher-v2__panel {
  position: absolute; top: 36px; left: 0; width: 232px;
  background: #fff; border: 1px solid var(--color-line);
  border-radius: 8px; box-shadow: 0 8px 26px rgba(20, 18, 26, .14);
  padding: 5px; z-index: 20;
}
.edition-switcher-v2__item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 9px; border-radius: 5px;
  text-decoration: none; color: var(--color-ink);
}
.edition-switcher-v2__item:hover { background: rgba(20, 18, 26, .06); }
.edition-switcher-v2__item.is-current { background: rgba(20, 18, 26, .06); }
.edition-switcher-v2__item-label { display: block; font-size: 12.5px; font-weight: 700; }
.edition-switcher-v2__item-meta { display: block; font-size: 10.5px; color: rgba(20, 18, 26, .5); }

.tag {
  font-size: 9px; font-weight: 800; letter-spacing: .07em;
  padding: 2px 5px; border-radius: 3px; white-space: nowrap;
}
.tag--active { background: #fde7f1; color: #a3005c; }
.tag--closed { background: rgba(20, 18, 26, .07); color: rgba(20, 18, 26, .55); }
.tag--draft { background: #fff3e0; color: #8a4b00; }


.rail {
  width: 64px;
  min-height: calc(100vh - 50px);
  flex: none;
  border-right: 1px solid var(--color-line);
  padding: 8px 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  overflow: auto;
  background: #f4f1ec;
  transition: width 160ms ease;
}
.rail--restoring { transition: none; }
.rail.rail--wide { width: 212px; }
.rail__toggle {
  width: 100%; min-height: 34px; padding: 6px 7px; border: 0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: rgba(20, 18, 26, .58); background: rgba(255, 255, 255, .5);
  cursor: pointer; font: inherit; font-size: 11px; font-weight: 700;
}
.rail.rail--wide .rail__toggle { justify-content: flex-start; }
.rail__toggle:hover, .rail__toggle:focus-visible { color: var(--color-ink); background: #fffefc; }
.rail__toggle:focus-visible, .rail__item:focus-visible {
  outline: 2px solid var(--color-brand); outline-offset: 2px;
}
.rail__toggle-icon { width: 17px; height: 17px; flex: none; }
.rail__toggle-icon--expanded, .rail__toggle-label--expanded,
.rail.rail--wide .rail__toggle-icon--compact,
.rail.rail--wide .rail__toggle-label--compact { display: none; }
.rail.rail--wide .rail__toggle-icon--expanded,
.rail.rail--wide .rail__toggle-label--expanded { display: inline; }
.rail__group {
  padding: 7px 5px 8px; border-radius: 11px; display: flex;
  flex-direction: column; gap: 2px;
}
.rail__group--pilotage { color: #5b3d74; background: #efe7f4; }
.rail__group--organisation { color: #2f5e53; background: #e7f0ee; }
.rail__group--programmation { color: #8a5a2b; background: #f6ece2; }
.rail__group--ressources { color: #3d4670; background: #eaecf4; }
.rail__group-label {
  margin: 0; padding: 0 9px 3px; color: inherit; font-size: 7.5px;
  display: none; font-weight: 800; letter-spacing: .12em; line-height: 1.1; white-space: nowrap;
}
.rail__group-label--expanded { display: none; }
.rail.rail--wide .rail__group-label { display: block; }
.rail.rail--wide .rail__group-label--compact { display: none; }
.rail.rail--wide .rail__group-label--expanded { display: inline; }
.rail__item {
  width: 100%; min-width: 0; padding: 9px 4px; border-radius: 8px; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  color: rgba(20, 18, 26, .68); text-decoration: none;
}
.rail__item:hover, .rail__item:focus-visible {
  color: var(--color-ink); background: rgba(255, 255, 255, .85);
}
.rail__item.is-active {
  color: var(--color-ink); background: #fffefc; box-shadow: 0 2px 9px rgba(20, 18, 26, .15);
}
.rail__icon { width: 22px; height: 22px; flex: none; color: inherit; }
.rail__item.is-active .rail__icon { color: var(--color-brand); }
.rail__label {
  max-width: 100%; overflow: hidden; color: inherit; font-size: 8.5px;
  display: none; font-weight: 700; line-height: 1.15; text-align: center; text-overflow: ellipsis;
  white-space: nowrap;
}
.rail__divider {
  width: calc(100% - 12px);
  height: 1px;
  margin: 5px 6px;
  background: rgba(20, 18, 26, .14);
}
.rail.rail--wide .rail__item {
  flex-direction: row; align-items: center; gap: 10px; padding: 8px 9px;
}
.rail.rail--wide .rail__icon { width: 20px; height: 20px; }
.rail.rail--wide .rail__label {
  display: inline; font-size: 12.5px; text-align: left;
}

@media (max-width: 40rem) {
  .rail,
  .rail.rail--wide {
    width: 100%;
    min-height: 0;
    max-height: 92px;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
  }
  .rail__toggle,
  .rail.rail--wide .rail__toggle {
    width: 34px;
    min-width: 34px;
    justify-content: center;
    padding: 6px 4px;
  }
  .rail__toggle-label--compact,
  .rail__toggle-label--expanded { display: none !important; }
  .rail__group,
  .rail.rail--wide .rail__group {
    flex: none;
    flex-direction: row;
    align-items: stretch;
    padding: 5px;
  }
  .rail__divider {
    flex: 0 0 1px;
    width: 1px;
    height: auto;
    align-self: stretch;
  }
  .rail__group-label,
  .rail.rail--wide .rail__group-label { display: none; }
  .rail__item,
  .rail.rail--wide .rail__item {
    width: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 8px 4px;
  }
  .rail.rail--wide .rail__label {
    display: inline;
    font-size: 8.5px;
    text-align: center;
  }
}

/* --- Gestion chassis --------------------------------------------- */
.gestion-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.gestion-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; border-bottom: 1px solid var(--color-line);
}
.gestion-header__chip {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 10px; background: rgba(20, 18, 26, .05); border-radius: 5px;
  font-size: 12.5px; font-weight: 700;
}
.gestion-header__chip-meta { font-size: 10.5px; font-weight: 500; color: rgba(20, 18, 26, .5); }
.gestion-header__readonly {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 4px; background: #fdeaea; color: #96100f;
}
.gestion-header__back { font-size: 11.5px; font-weight: 600; }
.gestion-body { display: flex; flex: 1; min-height: 0; }
.gestion-nav {
  width: 196px; flex: none; background: var(--color-bg);
  border-right: 1px solid var(--color-line); padding: 14px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.gestion-nav__kicker { font-size: 9px; font-weight: 800; letter-spacing: .14em; color: rgba(20, 18, 26, .38); padding: 4px 10px 8px; }
.gestion-nav__item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: 6px; text-decoration: none; color: rgba(20, 18, 26, .78);
}
.gestion-nav__item:hover { background: rgba(20, 18, 26, .06); }
.gestion-nav__item.is-active { background: var(--color-ink); color: #fff; }
.gestion-nav__label { font-size: 12.8px; font-weight: 500; }
.gestion-nav__item.is-active .gestion-nav__label { font-weight: 700; }
.gestion-nav__badge { font-size: 10.5px; font-weight: 600; color: rgba(20, 18, 26, .4); }
.gestion-nav__item.is-active .gestion-nav__badge { color: rgba(255, 255, 255, .6); }
.gestion-nav__divider { height: 1px; background: rgba(20, 18, 26, .09); margin: 12px 10px; }
.gestion-nav__note { padding: 0 10px; font-size: 10.5px; line-height: 1.5; color: rgba(20, 18, 26, .5); }
.gestion-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; overflow: auto; background: var(--color-bg-soft); padding: 20px 26px 44px; }

/* --- Gestion list and filters ------------------------------------ */
.gestion-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.gestion-page-head__title { margin: 6px 0 0; font-size: var(--page-title-size); font-weight: 800; letter-spacing: -.04em; font-style: italic; font-family: "Archivo", Helvetica, Arial, sans-serif; line-height: 1; }
.gestion-page-head__body { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(20, 18, 26, .6); max-width: 72ch; }
.gestion-btn { display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.2; }
.gestion-btn--primary { background: var(--color-brand); color: #fff; }
.gestion-btn--primary:hover { background: var(--color-brand-hover); }
.gestion-btn--primary.gestion-btn--disabled { background: rgba(20, 18, 26, .2); cursor: not-allowed; }
.gestion-btn--ghost { background: #fff; border-color: var(--color-line); color: var(--color-ink); }
/* Les règles globales du socle (input[type=text] { width:100%; min-height:42px } ;
   button[type="submit"] { font: inherit }) gonflent le champ et le bouton des
   filtres : le champ occupe toute la ligne et le bouton passe à la suivante,
   décalé de son champ. On les re-scope pour que champ et bouton restent
   compactes et côte à côte. */
.gestion-filters .gestion-search {
  width: auto; flex: 0 1 220px; min-width: 140px; min-height: auto;
  padding: 6px 9px; font-size: 11.5px;
}
button[type="submit"].gestion-btn { min-height: auto; padding: 8px 13px; font-size: 12px; line-height: 1.2; }
.gestion-filters { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.gestion-filters__spacer { flex: 1; }
.gestion-chip { padding: 5px 10px; border-radius: 5px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--color-line); color: rgba(20, 18, 26, .7); background: #fff; text-decoration: none; }
.gestion-chip.is-active { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.gestion-search { min-width: 210px; padding: 6px 9px; font-size: 11.5px; }
.gestion-table { background: #fff; border: 1px solid var(--color-line); border-radius: 9px; overflow: hidden; }
.gestion-table__row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid rgba(20, 18, 26, .06); }
.gestion-table__row:last-child { border-bottom: none; }
.gestion-table__row:hover { background: #fdfbfa; }
.gestion-table__main { flex: 1; min-width: 0; }
.gestion-table__name { font-size: 12.8px; font-weight: 600; }
.gestion-table__meta { font-size: 10.5px; color: rgba(20, 18, 26, .52); margin-top: 1px; }
.gestion-table__actions { display: flex; gap: 6px; }
.gestion-table__empty { padding: 16px; font-size: 12.5px; color: rgba(20, 18, 26, .5); }

/* --- Gestion forms and danger zone -------------------------------- */
.gestion-form-card { background: #fff; border: 1px solid var(--color-line); border-radius: 9px; padding: 16px 18px; margin-bottom: 16px; max-width: 1000px; }
.gestion-form-card__title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.gestion-form-card__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.gestion-form-card__errors { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: #fdeaea; }
.gestion-field label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: rgba(20, 18, 26, .62); margin-bottom: 5px; }
.gestion-field input, .gestion-field select, .gestion-field textarea { width: 100%; }
.gestion-field input[type="checkbox"], .gestion-field input[type="radio"] { width: auto; min-height: 0; }
.gestion-field--checkbox { display: flex; align-items: center; gap: 9px; flex-direction: row-reverse; justify-content: flex-end; }
.gestion-field--checkbox label { margin-bottom: 0; }
.gestion-field__required { color: var(--color-brand); }
.gestion-field__help { margin-top: 5px; font-size: 10.5px; line-height: 1.45; color: rgba(20, 18, 26, .52); }
.gestion-field__error { margin-top: 5px; font-size: 11px; color: #96100f; }
.gestion-form-card + .gestion-btn, .gestion-form-card + button, .gestion-form-card + a { margin-right: 6px; }
.gestion-danger { background: #fff; border: 1px solid #f0b8b8; border-radius: 9px; overflow: hidden; max-width: 1000px; }
.gestion-danger__title { margin: 0; padding: 13px 18px; border-bottom: 1px solid rgba(20, 18, 26, .08); font-size: 13px; font-weight: 800; letter-spacing: .05em; color: #96100f; }
.gestion-danger__row { padding: 14px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gestion-danger__body { flex: 1; min-width: 0; font-size: 11.5px; color: rgba(20, 18, 26, .6); line-height: 1.45; }
.gestion-danger__action { padding: 8px 13px; border: 1px solid #d98a8a; color: #96100f; border-radius: 6px; font-size: 12px; font-weight: 600; background: #fff; cursor: pointer; white-space: nowrap; }
.gestion-danger__action:hover { background: #fdeaea; }
.gestion-danger__action--disabled { opacity: .5; cursor: not-allowed; }
.gestion-fiche { background: #fff; border: 1px solid var(--color-line); border-radius: 9px; padding: 16px 18px; margin-bottom: 16px; max-width: 1000px; }
.gestion-fiche__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.gestion-fiche > p { margin: 0 0 14px; }
.gestion-fiche > p:last-child { margin-bottom: 0; }
.gestion-section-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .05em; }

.edition-status-banner {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  width: 100%; max-width: 1000px; padding: .7rem .9rem; margin: -.55rem 0 1rem;
  border: 1px solid var(--line); border-left: 4px solid; border-radius: 8px;
}
.edition-status-banner--draft { background: #fffaf1; border-left-color: #8a4b00; }
.edition-status-banner--active { background: #fff7fb; border-left-color: #a3005c; }
.edition-status-banner--closed { background: #f5f4f2; border-left-color: #55524a; }
.edition-status-banner__label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.edition-status-banner__value { font-size: .95rem; letter-spacing: normal; padding: .3rem .7rem; border-radius: 5px; }

@media (max-width: 42rem) {
  .gestion-form-card__grid, .gestion-fiche__grid { grid-template-columns: 1fr; }
  .gestion-form-card { padding: 14px; }
  .gestion-form-card + .gestion-btn, .gestion-form-card + button, .gestion-form-card + a { margin: 0 4px 8px 0; }
}

/* ── Grille des créneaux bénévoles (planning:overview) ───────────────── */
.shift-grid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.shift-grid-head__stat { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: rgba(20, 18, 26, .45); }
.shift-grid-head__stat-value { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: var(--color-ink); margin-top: 2px; }
.shift-grid-head__stat-value--warn { color: #96100f; }
.shift-grid-tabs { display: flex; gap: 4px; padding: 3px; background: rgba(20, 18, 26, .06); border-radius: 6px; width: fit-content; margin-bottom: 10px; }
.shift-grid-tabs__tab { padding: 6px 11px; border-radius: 4px; font-size: 11.5px; font-weight: 600; text-decoration: none; color: rgba(20, 18, 26, .62); }
.shift-grid-tabs__tab.is-active { background: #fff; color: var(--color-ink); box-shadow: 0 1px 2px rgba(20, 18, 26, .12); }
.shift-grid-toggle { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--color-line); text-decoration: none; color: rgba(20, 18, 26, .7); }
.shift-grid-toggle.is-active { background: #fdeaea; color: #96100f; border-color: #f0b8b8; }
.shift-grid-ruler { display: flex; padding-left: 250px; margin-bottom: 4px; }
.shift-grid-ruler__hour { flex: 1; min-width: 0; font-size: 10px; font-weight: 700; color: rgba(20, 18, 26, .45); border-left: 1px solid var(--color-line); padding-left: 5px; }
.shift-grid-group { margin-top: 16px; }
.shift-grid-group__head { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; background: var(--color-ink); color: #fff; }
.shift-grid-group__pub { font-size: 9px; font-weight: 800; letter-spacing: .09em; padding: 3px 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); margin-left: auto; }
.shift-grid-group__pub.is-published { background: #e8f3ee; color: #0b5c45; }
.shift-grid-rows { margin-top: 6px; background: #fff; border: 1px solid var(--color-line); border-radius: 8px; overflow: hidden; }
.shift-grid-row { display: flex; border-bottom: 1px solid rgba(20, 18, 26, .07); }
.shift-grid-row:last-child { border-bottom: none; }
.shift-grid-row__label { width: 250px; flex: none; padding: 9px 12px; border-right: 1px solid rgba(20, 18, 26, .08); }
.shift-grid-row__name { font-size: 12.3px; font-weight: 600; }
.shift-grid-row__meta { font-size: 10.5px; color: rgba(20, 18, 26, .52); margin-top: 2px; }
.shift-grid-row__track { flex: 1; min-width: 0; position: relative; padding: 9px 0; height: 44px; }
.shift-grid-bar { position: absolute; top: 9px; height: 26px; background: #0f766e; border: 1px solid #0b5c45; border-radius: 5px; display: flex; align-items: center; gap: 6px; padding: 0 8px; overflow: hidden; color: #fff; font-size: 10.5px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.shift-grid-bar.is-overlap { background: #fdeaea; border-color: #b91c1c; color: #96100f; }

.card-detail-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-detail-head__badge { font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: rgba(20, 18, 26, .06); }
.card-detail-section { margin-top: 18px; }
.card-detail-section h2 { font-size: 11px; font-weight: 800; letter-spacing: .08em; border-bottom: 2px solid var(--color-ink); padding-bottom: 7px; }
/* Organigramme — colonnes de pôle (refonte 2026-09-13) */
.orga-toolbar { display: flex; gap: .5rem; margin: 0 0 1rem; }
.orga-chip {
  padding: .35rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none;
}
.orga-chip--active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.orga-board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.orga-pole {
  flex: 1 0 260px; max-width: 320px; background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
}
.orga-pole__head { padding: .85rem 1rem; background: var(--pole-color); color: #fff; }
.orga-pole__title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.orga-pole__title a { color: #fff; font-weight: 700; }
  .orga-leadrow__action {
    margin-left: auto;
    padding: 5px 9px;
    border: 1px solid rgba(20, 18, 26, .16);
    border-radius: 5px;
    color: var(--color-ink);
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .orga-leadrow__action:hover { border-color: var(--color-ink); }
.orga-pole__pct { font-size: 1.3rem; font-weight: 800; margin-top: .3rem; }
.orga-pole__meta { font-size: .8rem; opacity: .9; margin-top: .2rem; }
.orga-pole__badge {
  font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: .15rem .45rem;
  border-radius: 4px; background: rgba(255,255,255,.22); color: #fff;
}
.orga-pole__badge--ok { background: rgba(255,255,255,.22); }
.orga-pole__badge--warn { background: var(--amber-bg); color: var(--amber-ink); }
.orga-pole__badge--vacant { background: var(--rose-bg); color: var(--rose-ink); }
.orga-pole__leads { padding: .6rem 1rem; border-bottom: 1px solid var(--line); }
.orga-pole__lead { font-size: .85rem; font-weight: 600; }
.orga-pole__members { list-style: none; margin: 0; padding: .4rem 1rem; flex: 1; }
/* Member rows are inner cards now (Lot orga 2026-09-14): the grid row
   lives in gestion.css (.orga-member), the list only spaces them. The
   old column layout and its hairline separators are gone — the maquette
   shows each member as a soft block, vacancy included. */
.orga-pole__member { list-style: none; padding: 3px 0; }
.orga-pole__member--vacant { color: inherit; }
.orga-pole__assign-card {
  display: block; text-align: center; margin: .5rem 1rem 1rem; padding: .5rem;
  border: 1px dashed var(--line); border-radius: 8px; font-size: .8rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
}
.orga-pole__assign-card:hover { border-color: var(--accent); color: var(--accent); }
.page-header__stats { font-size: .85rem; color: var(--ink-soft); }
.button--small { padding: .3rem .6rem; min-height: auto; font-size: .75rem; }

/* ── GED — tableau des documents (refonte 2026-09-13) ─────────────────
   Aucune couleur nouvelle : les jetons du châssis (--color-ink,
   --color-line, --color-bg-soft) et la palette de badges du socle
   (--sage-*, --grey-*). Le rythme des chiffres d'en-tête reprend celui de
   .shift-grid-head__stat, pour que les deux écrans se lisent pareil. */
.ged-head__stat { display: block; max-width: 15rem; text-decoration: none; }
.ged-head__stat, .ged-head__stat:hover { color: rgba(20, 18, 26, .45); }
.ged-head__stat { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ged-head__stat-value { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.035em;
                        line-height: 1.1; color: var(--color-ink); margin-top: 2px; }
.ged-head__stat-note { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 500;
                       letter-spacing: 0; text-transform: none; line-height: 1.35; }
.ged-filters { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ged-filters__spacer { flex: 1; }
.ged-chip { padding: 5px 10px; border-radius: 5px; font-size: 11.5px; font-weight: 600;
            border: 1px solid var(--color-line); color: rgba(20, 18, 26, .7); background: #fff;
            text-decoration: none; }
.ged-chip.is-active { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.ged-section { margin-bottom: 18px; }
.ged-section__title { display: flex; align-items: baseline; gap: 9px; margin: 0 0 6px;
                      font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ged-section__count { font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
                      color: rgba(20, 18, 26, .5); }
.ged-folders--section { display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
                        margin: 0 0 7px; padding: 7px 10px; border: 1px solid var(--color-line);
                        border-radius: 7px; background: #fff; font-size: 11px; }
.ged-folders--section strong { font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
                                color: rgba(20, 18, 26, .48); }
.ged-folders--section a { text-decoration: none; font-weight: 600; }
.ged-breadcrumbs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 18px;
                   font-size: 12px; color: rgba(20, 18, 26, .55); }
.ged-breadcrumbs a { text-decoration: none; }
.ged-breadcrumbs [aria-current="page"] { color: var(--color-ink); font-weight: 700; }
.ged-table { background: #fff; border: 1px solid var(--color-line); border-radius: 9px; overflow: hidden; }
.ged-table__head, .ged-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 108px 96px 100px 92px;
                              gap: 12px; padding: 10px 16px; align-items: center; }
.ged-table__head { background: var(--color-bg-soft); border-bottom: 1px solid var(--color-line);
                   font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
                   color: rgba(20, 18, 26, .45); }
.ged-table__head span:last-child { text-align: right; }
.ged-row { border-bottom: 1px solid rgba(20, 18, 26, .06); }
.ged-row:last-child { border-bottom: none; }
.ged-row:hover { background: #fdfbfa; }
.ged-row__name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ged-row__icon { width: 20px; height: 24px; flex: none; border-radius: 3px;
                 background: repeating-linear-gradient(135deg, rgba(20, 18, 26, .12) 0 4px,
                                                       rgba(20, 18, 26, .05) 4px 8px); }
.ged-row__link { font-size: 12.8px; font-weight: 600; text-decoration: none; min-width: 0;
                 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ged-row__cell { font-size: 11.5px; color: rgba(20, 18, 26, .62); }
.ged-row__status { text-align: right; }
.ged-badge--transversal { flex: none; font-size: 8.5px; font-weight: 800; letter-spacing: .08em;
                          padding: 2px 5px; border-radius: 3px; background: var(--color-ink); color: #fff; }
.ged-status { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 7px;
              border-radius: 4px; white-space: nowrap; }
.ged-status--active { background: var(--sage-bg); color: var(--sage-ink); }
.ged-status--archived { background: var(--grey-bg); color: var(--grey-ink); }
.ged-table__empty { margin: 0; padding: 14px 16px; font-size: 12px; font-style: italic;
                    color: rgba(20, 18, 26, .5); }


/* ── Fiche carte (kanban:card_detail) — le panneau de la maquette ────── */
.card-panel {
  max-width: 720px;
}

.card-panel__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-panel__crumb {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(20, 18, 26, .5);
}

.card-panel__crumb a {
  color: inherit;
  text-decoration: none;
}

.card-panel__crumb a:hover {
  color: var(--color-brand);
}

.card-panel__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--color-ink);
}

.card-panel__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-panel__description {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-ink);
}

.card-panel__body {
  margin-top: 22px;
}

.card-panel__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 14px 16px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: 9px;
}

.card-panel__meta-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(20, 18, 26, .45);
}

.card-panel__meta-value {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-ink);
}

.card-panel__status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--color-bg-soft);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
}

.card-panel__status--high {
  background: #fde7f1;
  color: #a3005c;
  border-color: transparent;
}

.card-panel__assignees {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-panel__assignee {
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-panel__assignee form {
  margin: 0;
}

.card-panel__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  background: var(--color-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.card-panel__avatar--comment {
  width: 24px;
  height: 24px;
}

.card-panel__form {
  margin: 12px 0 0;
}

.card-panel__form button {
  margin-top: 8px;
}

.card-panel__labels .label {
  margin-right: 6px;
}

.card-panel__actions {
  margin: 12px 0 0;
}

.card-panel__actions a {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 13px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-ink);
}

.card-panel__actions a:hover {
  border-color: var(--color-ink);
}

.card-panel__files {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-panel__file {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: #fff;
}

.card-panel__file-icon {
  width: 22px;
  height: 26px;
  flex: none;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, rgba(20, 18, 26, .12) 0 4px, rgba(20, 18, 26, .05) 4px 8px);
}

.card-panel__file form {
  margin: 0 0 0 auto;
}

.card-panel__add {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand-hover);
}

.card-panel__thread {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-panel__comment {
  display: flex;
  gap: 9px;
}

.card-panel__comment-who {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
}

.card-panel__comment-text {
  margin: 3px 0 0;
  font-size: 12.3px;
  line-height: 1.45;
}

.card-panel__comment a {
  font-size: 11.5px;
  color: var(--color-brand-hover);
}

.card-panel__thread .empty {
  font-size: 12px;
  color: rgba(20, 18, 26, .45);
}

.card-panel__form p {
  margin: 0 0 6px;
}

.card-panel__form label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(20, 18, 26, .62);
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .card-panel__meta-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Tableau (kanban:board_detail) — les mêmes cartes que l'agrégé ─────
   app.css pose déjà .board/.column/.cards ; on ne renomme rien : board.js
   attache le glisser-déposer sur « .cards » et lit data-card/data-move-url.
   Ce bloc ne fait qu'habiller les mêmes nœuds au format de la maquette. */
.column {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.column h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 3px 8px;
  border-bottom: 2px solid var(--color-line);
  margin: 2px 0 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.column__count {
  font-size: 11px;
  font-weight: 700;
  color: rgba(20, 18, 26, .42);
}

.cards li {
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 18, 26, .04);
}

.cards li:hover {
  border-color: var(--color-ink);
}

.cards a[href*="card_detail"],
.cards li > a:first-child {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--color-ink);
  text-decoration: none;
}

.cards .card-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.cards .due {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  background: #fde7f1;
  color: #a3005c;
}

.cards .assignee {
  font-size: 11px;
  padding: 2px 7px;
}

.cards .card-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.cards li.empty {
  box-shadow: none;
}

@media (max-width: 600px) {
  .column {
    width: 100%;
  }
}
/* ── Panneau latéral partagé (kanban ?carte=, planning ?creneau=) — l.aside de la maquette ─
   Le compagnon du plateau : 368 px, filet à gauche, fond crème. Chaque
   section reprend les mots de la maquette — STATUT / PRIORITÉ / ASSIGNÉ /
   ÉCHÉANCE, SOUS-TÂCHES, PIÈCES JOINTES, FIL DE DISCUSSION — et la tête
   porte le fil « Tableau / colonne » et la référence T-n. */
.side-panel {
  flex: none;
  width: 368px;
  border-left: 1px solid rgba(20, 18, 26, .12);
  background: #fffefc;
  display: flex;
  flex-direction: column;
}

.side-panel__head {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(20, 18, 26, .1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.side-panel__lead {
  min-width: 0;
}

.side-panel__crumb {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(20, 18, 26, .5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-panel__dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--pole-color, var(--color-ink));
  flex: none;
}

.side-panel__title {
  margin: 7px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.25;
  text-wrap: pretty;
}

.side-panel__path {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(20, 18, 26, .5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-panel__path a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.side-panel__path a:hover {
  color: var(--color-brand);
}

.side-panel__head-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.side-panel__head-links a {
  font-size: 11px;
  font-weight: 600;
  color: rgba(20, 18, 26, .55);
  text-decoration: none;
}

.side-panel__head-links a:hover {
  color: var(--color-ink);
}

.side-panel__head-links a[title="Fermer le panneau"] {
  font-size: 16px;
  color: rgba(20, 18, 26, .35);
}

.side-panel__head-links a[title="Fermer le panneau"]:hover {
  color: var(--color-ink);
}

.side-panel__body {
  padding: 16px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-panel__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.side-panel__meta-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(20, 18, 26, .45);
}

.side-panel__badge {
  display: inline-flex;
  margin-top: 5px;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--badge-bg, rgba(20, 18, 26, .07));
  color: var(--badge-fg, rgba(20, 18, 26, .62));
  font-size: 11.5px;
  font-weight: 700;
}

.side-panel__assignee {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
}

.side-panel__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  background: var(--avatar-color, var(--color-ink));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.side-panel__meta-value {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(20, 18, 26, .6);
}

.side-panel__due {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-ink);
}

.side-panel__due.is-late {
  color: #96100f;
}

.side-panel__section {
  min-width: 0;
}

.side-panel__section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--color-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(20, 18, 26, .62);
}

.side-panel__section-title a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-brand);
  text-decoration: none;
}

.side-panel__empty {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: rgba(20, 18, 26, .45);
}

/* --- Sous-tâches : la case est un formulaire, le libellé suit --- */
.side-panel__subtasks {
  margin-top: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-panel__subtask {
  display: flex;
  align-items: center;
  gap: 9px;
}

.side-panel__subtask form {
  margin: 0;
}

.side-panel__box {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  flex: none;
  border: 1.5px solid rgba(20, 18, 26, .3);
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
}

.side-panel__box:hover {
  border-color: var(--color-ink);
}

.side-panel__box.is-done {
  background: var(--color-ink);
  border-color: var(--color-ink);
}

.side-panel__subtask-label {
  font-size: 12.3px;
  color: var(--color-ink);
}

.side-panel__subtask.is-done .side-panel__subtask-label {
  text-decoration: line-through;
  color: rgba(20, 18, 26, .45);
}

.side-panel__subtask-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.side-panel__subtask-actions a,
.side-panel__subtask-actions button {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: rgba(20, 18, 26, .48);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.side-panel__subtask-actions form {
  display: inline-flex;
}

.side-panel__subtask-actions button:disabled {
  opacity: .22;
  cursor: default;
}

.side-panel__subtask-actions a:hover,
.side-panel__subtask-actions a:focus-visible,
.side-panel__subtask-actions button:hover,
.side-panel__subtask-actions button:focus-visible {
  border-color: var(--color-line);
  background: #fff;
  color: var(--color-ink);
}

.side-panel__subtask-actions button:hover,
.side-panel__subtask-actions button:focus-visible {
  color: #96100f;
}

.side-panel__subtask-edit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  width: 100%;
}

.side-panel__subtask-edit label {
  grid-column: 1 / -1;
  color: rgba(20, 18, 26, .5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.side-panel__subtask-edit input {
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font: inherit;
}

.side-panel__subtask-edit input[name="display_order"] {
  width: 64px;
}

.side-panel__subtask .side-panel__box {
  box-sizing: border-box;
  position: relative;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  margin: 0;
  padding: 0;
  border-radius: 3px !important;
  line-height: 1;
}

.side-panel__checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 5px;
  height: 8px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
}

.side-panel__subtask-edit-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-panel__subtask-edit-actions a {
  color: rgba(20, 18, 26, .55);
  font-size: 11px;
  text-decoration: none;
}

/* --- Pièces jointes --- */
.side-panel__files {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.side-panel__file {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(20, 18, 26, .12);
  border-radius: 6px;
}

.side-panel__file-icon {
  width: 22px;
  height: 26px;
  flex: none;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, rgba(20, 18, 26, .12) 0 4px, rgba(20, 18, 26, .05) 4px 8px);
}

.side-panel__file-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.side-panel__file-body a {
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-panel__file-body a:hover {
  color: var(--color-brand);
}

.side-panel__file-body span {
  font-size: 10.5px;
  color: rgba(20, 18, 26, .5);
}

/* --- Fil de discussion --- */
.side-panel__thread {
  margin-top: 11px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-panel__comment {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.side-panel__comment > div {
  min-width: 0;
}

.side-panel__comment-who {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
}

.side-panel__comment-who span {
  font-weight: 500;
  color: rgba(20, 18, 26, .45);
}

.side-panel__comment-text {
  margin: 3px 0 0;
  font-size: 12.3px;
  line-height: 1.45;
}

.side-panel__comment-form {
  margin: 12px 0 0;
}

.side-panel__comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid rgba(20, 18, 26, .14);
  border-radius: 6px;
  font: inherit;
  font-size: 11.5px;
  color: var(--color-ink);
  resize: vertical;
  min-height: 44px;
}

.side-panel__comment-form button {
  margin-top: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: var(--color-ink);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.side-panel__comment-form button:hover {
  background: #000;
}

/* --- Pied : marquer terminée, déplacer --- */
.side-panel__foot {
  padding: 12px 18px;
  border-top: 1px solid rgba(20, 18, 26, .1);
  display: flex;
  gap: 8px;
}

.side-panel__foot form {
  margin: 0;
  display: flex;
  gap: 8px;
}

.side-panel__primary {
  flex: 1;
  padding: 9px;
  text-align: center;
  border: none;
  border-radius: 6px;
  background: var(--color-ink);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.side-panel__primary:hover {
  background: #000;
}

.side-panel__move select {
  max-width: 130px;
  padding: 8px;
  border: 1px solid rgba(20, 18, 26, .16);
  border-radius: 6px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  font-size: 12px;
}

.side-panel__move button {
  padding: 9px 13px;
  border: 1px solid rgba(20, 18, 26, .16);
  border-radius: 6px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.side-panel__move button:hover {
  border-color: var(--color-ink);
}

/* --- Formulaire du panneau planning : champs pleine largeur empilés --- */
.side-panel__form {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-panel__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-panel__field label {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(20, 18, 26, .55);
}

.side-panel__field input,
.side-panel__field select,
.side-panel__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid rgba(20, 18, 26, .16);
  border-radius: 6px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  font-size: 12px;
}

.side-panel__error {
  font-size: 11px;
  color: #96100f;
}

.side-panel__help {
  font-size: 10.5px;
  line-height: 1.4;
  color: rgba(20, 18, 26, .5);
}

.side-panel__secondary {
  padding: 9px 13px;
  border: 1px solid rgba(20, 18, 26, .16);
  border-radius: 6px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.roadmap-edit-panel .side-panel__foot {
  align-items: center;
}

.roadmap-edit-panel .side-panel__danger {
  text-decoration: none;
}

.side-panel__danger {
  padding: 9px 13px;
  border: 1px solid #e0a7a7;
  border-radius: 6px;
  background: #fff;
  color: #96100f;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.side-panel__danger:hover {
  border-color: #b91c1c;
  background: #fdeaea;
}

/* GED explorer — the fixed rubrics stay in the tree; user-created folders
   are nested under them, and each space keeps its own permission-filtered
   collection. */
.ged-explorer { max-width: 1660px; margin: 0 auto; }
.ged-explorer__header { display: flex; align-items: flex-end; justify-content: space-between;
                        gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.ged-explorer__title .page-header__eyebrow { margin-bottom: 3px; }
.ged-explorer__title h1 { margin: 0; font-family: "Archivo", Helvetica, Arial, sans-serif;
                          font-style: italic; font-size: clamp(26px, 2.4vw, 31px);
                          font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.ged-explorer__actions { display: flex; align-items: center; justify-content: flex-end;
                         gap: 8px; flex-wrap: wrap; }
.ged-search { display: flex; align-items: center; width: min(270px, 35vw); height: 38px;
              border: 1px solid var(--color-line); border-radius: 8px; background: #fff; }
.ged-search:focus-within { border-color: var(--color-brand); box-shadow: 0 0 0 2px rgba(228, 0, 124, .1); }
.ged-search input { min-width: 0; width: 100%; height: 100%; padding: 0 11px;
                    border: 0; outline: 0; background: transparent; font: inherit;
                    font-size: 11px; }
.ged-search input::placeholder { color: rgba(20, 18, 26, .42); }
.ged-search button { flex: none; width: 35px; min-height: 0; height: 100%; padding: 0;
                     border: 0; background: transparent; color: var(--color-brand);
                     font-size: 0; cursor: pointer; }
.ged-search button::before { content: "⌕"; font-size: 20px; line-height: 1; }
.ged-explorer__actions .gestion-btn { min-height: 38px; font-size: 11px; }
.ged-scope-tabs { display: flex; width: max-content; max-width: 100%; gap: 2px; margin-bottom: 14px;
                  padding: 3px; border-radius: 8px; background: #f0eeeb; }
.ged-scope-tabs__item { display: block; padding: 6px 12px; border-radius: 6px; color: rgba(20, 18, 26, .66);
                        font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.ged-scope-tabs__item:hover { color: var(--color-ink); }
.ged-scope-tabs__item.is-active { background: #fff; color: var(--color-ink); box-shadow: 0 1px 3px rgba(20,18,26,.12); }
.ged-scope-tabs__item:not(a):not(.is-active) { color: rgba(20, 18, 26, .36); }
.ged-explorer__grid { display: grid; grid-template-columns: minmax(205px, 16rem) minmax(360px, 1fr) minmax(230px, 18.5rem);
                      align-items: start; gap: 12px; }
.ged-pane { min-width: 0; border: 1px solid var(--color-line); border-radius: 12px; background: #fff; }
.ged-color--violet { --ged-node-color: #8626bf; }
.ged-color--blue { --ged-node-color: #2452d7; }
.ged-color--magenta { --ged-node-color: #df167e; }
.ged-color--orange { --ged-node-color: #bd4f1e; }
.ged-color--teal { --ged-node-color: #197d74; }
.ged-color--green { --ged-node-color: #4b7b31; }
.ged-color--red { --ged-node-color: #bc3d3b; }
.ged-color--indigo { --ged-node-color: #5350c8; }
.ged-color--brown { --ged-node-color: #956428; }
.ged-color--slate { --ged-node-color: #66717d; }
.ged-pane__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px;
                     padding: 14px 15px 9px; color: rgba(20,18,26,.48); font-size: 9px;
                     font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ged-pane__count { color: rgba(20,18,26,.45); letter-spacing: 0; }
.ged-tree { display: flex; flex-direction: column; min-height: 390px; overflow: hidden; }
.ged-tree__nav { flex: 1; min-height: 0; padding: 0 8px 10px; }
.ged-tree__root, .ged-tree__section, .ged-tree__folder { display: flex; align-items: center; gap: 7px;
  min-width: 0; min-height: 29px; padding: 5px 8px; border-radius: 6px; color: var(--color-ink);
  font-size: 11px; font-weight: 550; }
.ged-tree__root { min-height: 30px; background: #19171d; color: #fff; font-weight: 700; }
.ged-tree__root:hover { background: #302c34; color: #fff; }
.ged-tree__root.is-current { background: #19171d; }
.ged-tree__root-icon { display: inline-grid; width: 16px; place-items: center; color: #fff; font-size: 14px; }
.ged-tree__list, .ged-tree__list ul { margin: 2px 0 0; padding: 0; list-style: none; }
.ged-tree__list ul { margin-left: 12px; }
.ged-tree__section, .ged-tree__folder { width: 100%; text-align: left; }
.ged-tree__section:hover, .ged-tree__folder:hover { background: #f6f4f1; color: var(--color-ink); }
.ged-tree__section.is-current, .ged-tree__folder.is-current { background: #f5f2f0; color: var(--color-ink); font-weight: 750; }
.ged-tree__section > a, .ged-tree__folder > a, .ged-tree__section > span:not(.ged-tree__chevron):not(.ged-tree__color-dot) { min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.ged-tree__section > a { flex: 1; }
.ged-tree__section > span:not(.ged-tree__chevron):not(.ged-tree__color-dot) { flex: 1; }
.ged-tree__section > .ged-tree__color-dot { flex: none; }
.ged-tree__section small, .ged-tree__folder small, .ged-tree__root small { margin-left: auto; color: rgba(20,18,26,.44);
  font-size: 9px; font-weight: 500; }
.ged-tree__root small { color: rgba(255,255,255,.68); }
.ged-tree__chevron { display: inline-block; flex: none; width: 8px; height: 8px; border-right: 1.5px solid #938c87;
  border-bottom: 1.5px solid #938c87; transform: rotate(45deg) translateY(-2px); transition: transform .12s ease; }
.ged-tree details[open] > summary .ged-tree__chevron { transform: rotate(45deg); }
.ged-tree details:not([open]) > summary .ged-tree__chevron { transform: rotate(-45deg); }
.ged-tree__chevron--empty { width: 8px; height: 8px; border: 0; }
.ged-tree__color-dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--ged-node-color, #66717d); }
.ged-tree__folder-icon { width: 9px; height: 7px; flex: none; border-radius: 2px; background: var(--ged-node-color, #e5b947); }
.ged-tree__folder-icon::before { display: block; width: 5px; height: 2px; border-radius: 2px 2px 0 0; background: inherit; content: ""; transform: translateY(-2px); }
.ged-tree__branch details > summary { cursor: pointer; list-style: none; }
.ged-tree__branch details > summary::-webkit-details-marker { display: none; }
.ged-tree__branch details > summary > a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ged-tree__branch details > summary > a:hover { color: var(--color-brand); }
.ged-tree__empty { padding: 12px 8px; color: rgba(20,18,26,.5); font-size: 11px; }
.ged-tree__archive { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--color-line);
  color: rgba(20,18,26,.66); font-size: 10px; }
.ged-tree__archive:hover { color: var(--color-brand); }
.ged-tree__toggle { position: relative; display: inline-block; width: 26px; height: 15px; flex: none; border-radius: 99px; background: #d1cfcc; }
.ged-tree__toggle::after { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; content: ""; transition: transform .15s ease; }
.ged-tree__archive.is-on .ged-tree__toggle { background: var(--color-brand); }
.ged-tree__archive.is-on .ged-tree__toggle::after { transform: translateX(11px); }
.ged-directory { overflow: hidden; }
.ged-directory__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 15px 16px 13px; }
.ged-directory__heading h2 { margin: 2px 0 0; font-size: 14px; font-weight: 750; letter-spacing: -.02em; }
.ged-directory__summary { flex: none; margin: 0; color: rgba(20,18,26,.48); font-size: 10px; }
.ged-explorer .ged-breadcrumbs { display: flex; align-items: center; gap: 6px; margin: 0; color: rgba(20,18,26,.45); font-size: 9px; }
.ged-explorer .ged-breadcrumbs a:hover { color: var(--color-brand); }
.ged-explorer .ged-breadcrumbs [aria-current="page"] { color: var(--color-ink); font-weight: 650; }
.ged-directory__columns, .ged-directory__row { display: grid; grid-template-columns: minmax(0, 1fr) 66px 76px 58px;
  align-items: center; gap: 9px; }
.ged-directory__columns { padding: 8px 14px; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line);
  background: #faf9f7; color: rgba(20,18,26,.45); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ged-directory__columns span:not(:first-child) { text-align: right; }
.ged-directory__row { min-height: 46px; padding: 7px 14px; border-bottom: 1px solid rgba(20,18,26,.07); color: var(--color-ink); }
.ged-directory__row:last-child { border-bottom: 0; }
.ged-directory__row:hover { background: #fcfafb; color: var(--color-ink); }
.ged-directory__row.is-selected { background: #fff7fb; box-shadow: inset 3px 0 var(--color-brand); }
.ged-directory__name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ged-directory__icon { position: relative; display: block; width: 25px; height: 25px; flex: none; border-radius: 5px; }
.ged-directory__icon--section, .ged-directory__icon--folder { background: var(--ged-node-color, #66717d); }
.ged-directory__icon--folder::before { position: absolute; top: 5px; left: 5px; width: 10px; height: 4px; border-radius: 3px 3px 0 0;
  background: rgba(255,255,255,.42); content: ""; }
.ged-directory__icon--document { width: 20px; height: 24px; margin: 0 2px; border: 1px solid rgba(20,18,26,.16); border-radius: 3px;
  background: linear-gradient(135deg, #fff 0 72%, #e9e6e3 73%); }
.ged-directory__icon--document::after { position: absolute; right: 4px; bottom: 5px; left: 4px; height: 1px; background: #ccc7c3; content: ""; box-shadow: 0 -4px #ccc7c3; }
.ged-directory__text { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.ged-directory__text strong { overflow: hidden; color: var(--color-ink); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ged-directory__text small { overflow: hidden; color: rgba(20,18,26,.48); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ged-directory__badge { flex: none; padding: 2px 5px; border-radius: 3px; background: #f0efed; color: rgba(20,18,26,.58);
  font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ged-directory__cell { overflow: hidden; color: rgba(20,18,26,.57); font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.ged-directory__cell--size { font-variant-numeric: tabular-nums; }
.ged-directory__empty { display: flex; min-height: 190px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 24px; color: rgba(20,18,26,.5); text-align: center; }
.ged-directory__empty strong { color: var(--color-ink); font-size: 12px; }
.ged-directory__empty span:last-child { font-size: 10px; }
.ged-directory__empty-icon { display: grid; width: 30px; height: 30px; margin-bottom: 5px; place-items: center; border-radius: 50%;
  background: #f2efed; color: var(--color-brand); font-size: 20px; }
.ged-details { padding: 15px; }
.ged-details__eyebrow { margin: 2px 0 6px; color: rgba(20,18,26,.48); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ged-details h2 { margin: 0 0 7px; font-size: 15px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.ged-details__description { margin: 0 0 14px; color: rgba(20,18,26,.56); font-size: 10px; line-height: 1.55; }
.ged-details__stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin: 13px 0; }
.ged-details__stats > div { display: flex; min-height: 48px; flex-direction: column; justify-content: center; padding: 7px 9px;
  border-radius: 7px; background: #f5f4f2; }
.ged-details__stats strong { font-size: 17px; font-weight: 800; line-height: 1; }
.ged-details__stats span { margin-top: 3px; color: rgba(20,18,26,.48); font-size: 9px; }
.ged-details__hint { margin: 12px 0 0; color: rgba(20,18,26,.55); font-size: 9px; line-height: 1.5; }
.ged-details__facts { display: grid; gap: 8px; margin: 14px 0; }
.ged-details__facts > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(20,18,26,.07); padding-bottom: 6px; }
.ged-details__facts dt { color: rgba(20,18,26,.5); font-size: 9px; }
.ged-details__facts dd { margin: 0; color: var(--color-ink); font-size: 9px; font-weight: 650; text-align: right; }
.ged-details__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; padding: 9px 10px;
  border: 1px solid var(--color-line); border-radius: 6px; color: var(--color-ink); font-size: 10px; font-weight: 650; }
.ged-details__link:hover { border-color: var(--color-brand); color: var(--color-brand); }

@media (max-width: 76rem) {
  .ged-explorer__grid { grid-template-columns: minmax(190px, 14rem) minmax(0, 1fr); }
  .ged-details { grid-column: 2; }
}
@media (max-width: 52rem) {
  .ged-explorer__grid { grid-template-columns: minmax(0, 1fr); }
  .ged-tree, .ged-details { grid-column: auto; }
  .ged-tree { min-height: 0; }
  .ged-tree__nav { max-height: 270px; overflow: auto; }
  .ged-search { width: 100%; }
  .ged-explorer__actions { width: 100%; justify-content: stretch; }
  .ged-explorer__actions > * { flex: 1; }
}
@media (max-width: 40rem) {
  .ged-directory__columns { display: none; }
  .ged-directory__row { grid-template-columns: minmax(0,1fr) 54px; gap: 5px 8px; }
  .ged-directory__name { grid-row: 1 / span 2; }
  .ged-directory__cell { text-align: right; }
  .ged-directory__row--folder { grid-template-columns: 1fr; }
  .ged-directory__row--folder > .ged-directory__cell { display: none; }
  .ged-directory__badge { display: none; }
  .ged-directory__summary { font-size: 9px; }
}
@media (max-width: 52rem) {
  /* Les colonnes s'empilent plutôt que de déborder : le texte de chaque
     cellule reste lisible parce qu'il est écrit, pas codé par une couleur. */
  .ged-table__head { display: none; }
  .ged-row { grid-template-columns: 1fr; gap: 4px; }
  .ged-row__status { text-align: left; }
}

/* ── À l'affiche — cartes artiste (programme:booking_list) ───────────── */
.affiche-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--color-line);
}
.affiche-head__kicker { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--color-brand); }
.affiche-head__title {
  margin: 6px 0 0; font-size: var(--page-title-size); font-weight: 800; letter-spacing: -.042em;
  font-style: italic; font-family: "Archivo", Helvetica, Arial, sans-serif; line-height: 1;
}
.affiche-head__stats { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.affiche-stat__label { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: rgba(20, 18, 26, .45); }
.affiche-stat__value { font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--color-ink); }
.affiche-stat__value--warn { color: #96100f; }

.affiche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; padding-bottom: 24px; }
.affiche-card {
  background: #fff; border: 1px solid var(--color-line); border-radius: 9px;
  overflow: hidden; text-decoration: none; color: var(--color-ink); display: block;
}
.affiche-card:hover { border-color: var(--color-ink); color: var(--color-ink); }
.affiche-card__visual {
  position: relative; height: 112px; padding: 9px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  background: repeating-linear-gradient(135deg, rgba(20, 18, 26, .1) 0 6px, rgba(20, 18, 26, .04) 6px 12px);
}
.affiche-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.affiche-card__visual-note {
  position: relative; font-size: 9px; font-weight: 700; letter-spacing: .08em;
  font-family: ui-monospace, Menlo, monospace; color: rgba(20, 18, 26, .5);
  background: rgba(255, 255, 255, .8); padding: 3px 5px; border-radius: 3px;
}
.affiche-badge--stage {
  position: relative; margin-left: auto; font-size: 9.5px; font-weight: 800;
  letter-spacing: .07em; padding: 3px 6px; border-radius: 3px;
  background: var(--affiche-stage-color, #16141a); color: #fff; white-space: nowrap;
}
.affiche-card__body { padding: 12px 13px; }
.affiche-card__line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.affiche-card__name {
  font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.affiche-badge--status {
  flex: none; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px;
  border: 1px solid var(--affiche-status-border, var(--color-line));
  color: var(--affiche-status-ink, var(--color-ink)); white-space: nowrap;
}
.affiche-card__slot { font-size: 11.5px; color: rgba(20, 18, 26, .55); margin-top: 3px; }
.affiche-card__foot {
  margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(20, 18, 26, .08);
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 10.5px; color: rgba(20, 18, 26, .55);
}
/* The Bord page's head is the roadmap summary include (_summary.html):
   it owns its kicker (rose) and its stat labels (muted), so nothing is
   restyled from here any more — the old descendant selector bled the
   brand colour onto every eyebrow of the hero. Only spacing remains. */
.dash-head { margin-bottom: 16px; }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  align-items: start;
}
.dash-tile { min-width: 0; }
.dash-tile__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-bottom: 9px; border-bottom: 2px solid var(--color-ink);
}
.dash-tile--alert .dash-tile__head { border-bottom-color: var(--color-brand); }
.dash-tile__title { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.dash-tile--alert .dash-tile__title { color: #a3005c; }
.dash-tile__link { font-size: 11px; font-weight: 600; color: var(--color-brand-hover); }
.dash-tile__count { font-size: 11px; font-weight: 700; color: #a3005c; white-space: nowrap; }
.dash-tile__body { padding-top: 14px; }
.dash-tile__more { margin: 10px 0 0; font-size: 11.5px; color: rgba(20, 18, 26, .55); }
.dash-figure { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.dash-figure__value { font-size: 44px; font-weight: 800; letter-spacing: -.045em; line-height: .9; }
.dash-figure__unit { font-size: 18px; font-weight: 800; }
.dash-figure__note { font-size: 12px; color: rgba(20, 18, 26, .55); margin-left: 4px; }
.dash-line { margin: 4px 0; font-size: 12.5px; }
.dash-line--alert { color: #96100f; font-weight: 600; }
.dash-empty { margin: 4px 0; font-size: 12px; color: rgba(20, 18, 26, .5); list-style: none; }
.dash-counters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dash-counter { flex: 1 1 64px; padding: 11px 12px; border-radius: 7px; background: var(--grey-bg); color: var(--grey-ink); }
.dash-counter--todo { background: var(--grey-bg); color: var(--grey-ink); }
.dash-counter--in_progress { background: var(--blue-bg); color: var(--blue-ink); }
.dash-counter--blocked { background: #fdeaea; color: #96100f; }
.dash-counter--done { background: var(--sage-bg); color: var(--sage-ink); }
.dash-counter__value { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.dash-counter__label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .07em; margin-top: 5px; }
.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.dash-row {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 9px 11px; border: 1px solid var(--color-line); border-radius: 7px; background: #fff;
}
.dash-row--blocked { border-color: #f0b8b8; background: #fdeaea; }
.dash-row__title { font-size: 12.5px; font-weight: 600; flex: 1 1 auto; min-width: 0; }
.dash-row__meta { font-size: 10.5px; color: rgba(20, 18, 26, .55); }
.dash-row__flag { font-size: 10.5px; font-weight: 700; color: rgba(20, 18, 26, .6); white-space: nowrap; }
.dash-row__flag--alert { color: #96100f; }

/* The transversal badge of the DOCUMENTS tile: the same black chip as the
   GED list's .ged-badge--transversal, at the tile's own size. A badge is
   never the only carrier — the tile also writes the counts in words. */
.dash-row__flag--permanent {
  flex: none; font-size: 8.5px; font-weight: 800; letter-spacing: .08em;
  padding: 2px 5px; border-radius: 3px; background: var(--color-ink); color: #fff;
}

/* The ACTIVITÉ tile reproduces the mockup rows: a 22px initials avatar, the
   event line at 11.8px, the timestamp under it. Colour is derived from the
   person's identity and is never the only carrier — the name is in the text. */
.dash-activity { display: flex; flex-direction: column; gap: 10px; }
.dash-activity__row { display: flex; gap: 9px; align-items: flex-start; }
.dash-activity__avatar {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--activity-color, var(--color-ink)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.dash-activity__main { min-width: 0; }
.dash-activity__line { font-size: 11.8px; line-height: 1.4; }
.dash-activity__when { font-size: 10.5px; color: rgba(20, 18, 26, .45); margin-top: 1px; }

/* Volunteer portal
   Fluid, no decorative phone frame, no JavaScript: the layout is the phone.
   A single column capped at 40rem reads well on a 320px screen and does not
   sprawl on a desktop one. */
.portal { max-width: 40rem; margin: 0 auto; }
.portal-head { margin-bottom: 14px; }
.portal-head__brand {
  margin: 0; font-weight: 800; font-style: italic; letter-spacing: -.03em;
  font-family: "Archivo", Helvetica, Arial, sans-serif;
  font-size: 20px; color: var(--color-brand);
}
.portal-head__edition { margin: 1px 0 0; font-size: 12.5px; color: rgba(20, 18, 26, .55); }
.portal-tabs {
  display: flex; gap: 2px; margin: 0 0 18px;
  border-bottom: 2px solid var(--color-line);
}
.portal-tabs__item {
  flex: 1; padding: 9px 6px 8px; text-align: center;
  text-decoration: none; font-size: 12.5px; font-weight: 700;
  color: rgba(20, 18, 26, .55); border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.portal-tabs__item:hover { color: var(--color-ink); }
.portal-tabs__item.is-active {
  color: var(--color-brand); border-bottom-color: var(--color-brand);
}
.portal-card {
  padding: 14px 16px; margin-bottom: 12px;
  border: 1px solid var(--color-line); border-radius: 8px; background: #fff;
}
.portal-card__title {
  margin: 0 0 9px; font-size: 11px; font-weight: 800; letter-spacing: .07em;
  color: rgba(20, 18, 26, .55);
}
.portal-card__empty { margin: 4px 0; font-size: 12.5px; color: rgba(20, 18, 26, .6); }
.portal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.portal-list__item {
  padding: 9px 11px; border: 1px solid var(--color-line); border-radius: 7px; background: #fff;
  font-size: 13px;
}
.portal-list__meta { display: block; font-size: 11px; color: rgba(20, 18, 26, .5); }
.portal-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.portal-links__item {
  display: block; padding: 12px 14px; border: 1px solid var(--color-line);
  border-radius: 8px; background: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 600;
}
.portal-links__item:hover { background: var(--color-bg-soft); }

/* Search results */
.search-form { display: flex; gap: 8px; margin: 0 0 18px; }
.search-form__input {
  flex: 1; padding: 8px 11px; border: 1px solid var(--color-line); border-radius: 6px;
  font-size: 14px;
}
.search-form__button {
  padding: 8px 14px; border: none; border-radius: 6px; cursor: pointer;
  background: var(--color-brand); color: #fff; font-weight: 700; font-size: 13px;
}
.search-group { margin-bottom: 20px; }
.search-group__title { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: rgba(20, 18, 26, .55); }
.search-group__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.search-group__item {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 9px 11px; border: 1px solid var(--color-line); border-radius: 7px; background: #fff;
  font-size: 13px;
}
.search-group__kind { margin-left: auto; font-size: 10.5px; font-weight: 700; color: rgba(20, 18, 26, .5); white-space: nowrap; }
.search-empty { font-size: 13px; color: rgba(20, 18, 26, .55); }

/* ── Lot E — écrans restants (refonte 2026-09-14) ───────────────────────
   Ces classes habillent les écrans qui ne sont passés au châssis refonte
   ni par le module gestion (base_gestion.html), ni par les lots précédents :
   Semaine, Tremplin, Tableaux kanban, Affiche publique. Elles vivent sous
   le même toit que les jetons remappés : les couleurs ne portent jamais
   une information seule — chaque état est répété en toutes lettres. */

.refonte-head__title {
  margin: 6px 0 0; font-size: var(--page-title-size); font-weight: 800; letter-spacing: -.042em;
  font-style: italic; font-family: "Archivo", Helvetica, Arial, sans-serif; line-height: 1;
}

/* Semaine / Affiche : tuiles par jour, rangée = heure — artiste — lieu.
   Le CSS de `.week-alert` a été retiré le 21 septembre 2026 avec l'écran
   « Semaine » : l'alerte de conflits n'existait que là, et l'écran
   « Concerts » compte et marque les siens autrement. */
.week-day {
  background: #fff; border: 1px solid var(--color-line); border-radius: 9px;
  padding: 12px 16px; margin-bottom: 12px;
}
.week-day__title { margin: 0 0 8px; font-size: 15px; font-weight: 700; letter-spacing: -.018em; }
.week-day ul { list-style: none; margin: 0; padding: 0; }
.week-day li {
  display: flex; gap: 10px; align-items: baseline; padding: 6px 0;
  border-bottom: 1px solid rgba(20, 18, 26, .06); font-size: 12.5px;
}
.week-day li:last-child { border-bottom: none; }
.week-day__time { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.week-day__venue { color: rgba(20, 18, 26, .55); min-width: 0; }

/* Tremplin : même tableau que les listes du châssis gestion. */
.tremplin-table { background: #fff; border: 1px solid var(--color-line); border-radius: 9px; overflow: hidden; }
.tremplin-table table { width: 100%; border-collapse: collapse; }
.tremplin-table th {
  background: var(--color-bg-soft); border-bottom: 1px solid var(--color-line);
  text-align: left; padding: 10px 16px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(20, 18, 26, .45);
}
.tremplin-table td { padding: 11px 16px; border-bottom: 1px solid rgba(20, 18, 26, .06); font-size: 12.8px; }
.tremplin-table tr:last-child td { border-bottom: none; }
.tremplin-table tr:hover td { background: #fdfbfa; }
.tremplin-weak { font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 3px;
                 background: var(--amber-bg); color: var(--amber-ink); margin-left: 6px; white-space: nowrap; }

/* Tableaux kanban : liste à la gestion-table, pôle en pastille neutre. */
.board-list { background: #fff; border: 1px solid var(--color-line); border-radius: 9px; overflow: hidden; list-style: none; margin: 0 0 12px; padding: 0; }
.board-list__item {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  border-bottom: 1px solid rgba(20, 18, 26, .06);
}
.board-list__item:last-child { border-bottom: none; }
.board-list__item:hover { background: #fdfbfa; }
.board-list__name { font-size: 12.8px; font-weight: 600; text-decoration: none; }
.board-list__name:hover { color: var(--color-brand); }
.pole { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; padding: 2px 7px; border-radius: 3px;
        background: rgba(20, 18, 26, .07); color: var(--color-ink); white-space: nowrap; }
.board-list__spacer { flex: 1; }
.board-list__members { font-size: 11px; font-weight: 600; color: rgba(20, 18, 26, .6);
                       border: 1px solid var(--color-line); border-radius: 5px; padding: 5px 9px; text-decoration: none; }
.board-list__members:hover { border-color: var(--color-ink); color: var(--color-ink); }
.board-list__empty { padding: 16px; font-size: 12.5px; color: rgba(20, 18, 26, .5); }

/* Liste des tableaux : le même en-tête et les mêmes jetons que le Kanban. */
.board-list-head {
  align-items: flex-start;
  margin-bottom: 14px;
}

.board-list-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.board-list-toolbar__label {
  margin-right: 4px;
  color: rgba(20, 18, 26, .42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.board-list--modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.board-list--modern .board-list__item {
  min-height: 126px;
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 18, 26, .03);
}

.board-list--modern .board-list__item:hover {
  border-color: rgba(20, 18, 26, .28);
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 18, 26, .07);
}

.board-list__item-link {
  display: flex;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.board-list__item-link:hover .board-list__name {
  color: var(--color-brand);
}

.board-list__main {
  flex: 1;
  min-width: 0;
}

.board-list__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.board-list__mark {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
  background: var(--color-brand);
}

.board-list--modern .board-list__name {
  min-width: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-list__description {
  margin: 9px 0 0 16px;
  color: rgba(20, 18, 26, .55);
  font-size: 11.5px;
  line-height: 1.45;
}

.board-list__actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  flex: none;
}

.board-list__open {
  color: var(--color-brand);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.board-list__open:hover {
  color: var(--color-brand-hover);
}

.board-list--modern .board-list__members {
  padding: 5px 9px;
  color: rgba(20, 18, 26, .6);
}

.board-list--modern .board-list__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border: 1px dashed rgba(20, 18, 26, .2);
  border-radius: 9px;
  background: transparent;
}

.board-list__empty strong {
  color: var(--color-ink);
  font-size: 13px;
}

.side-panel__section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 6px 0 8px auto;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  color: var(--color-brand);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.side-panel__section-action:hover,
.side-panel__section-action:focus-visible {
  border-color: var(--color-brand);
  background: #fdf2f8;
  color: var(--color-brand-hover);
}

@media (max-width: 560px) {
  .board-list--modern .board-list__item {
    flex-direction: column;
  }

  .board-list__actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 52rem) {
  .week-day__venue { white-space: normal; }
}

/* Permission preview ----------------------------------------------------- */
.permission-preview-menu {
  position: relative;
  flex: none;
}

.permission-preview-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.permission-preview-trigger:hover,
.permission-preview-trigger:focus-visible {
  background: transparent;
  color: var(--color-ink);
}

.permission-preview-trigger:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
  border-radius: 5px;
}

.permission-preview-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 50;
  width: 304px;
  padding: 8px;
  border: 1px solid var(--color-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 18, 26, .16);
}

html.permission-preview-js .permission-preview-panel { display: none; }
html.permission-preview-js .permission-preview-panel.is-open { display: block; }

.permission-preview-profile {
  display: block;
  padding: 9px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

.permission-preview-profile:hover,
.permission-preview-profile:focus-visible {
  background: rgba(20, 18, 26, .06);
  color: var(--color-ink);
}

.permission-preview-logout { margin: 0; padding: 0 10px 9px; }
.permission-preview-logout button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.permission-preview-logout button:hover,
.permission-preview-logout button:focus-visible {
  background: rgba(20, 18, 26, .06);
  color: var(--color-ink);
}

.permission-preview-separator {
  height: 1px;
  margin: 6px 2px 10px;
  background: var(--color-line);
}

.permission-preview-form-wrap { padding: 0 10px 9px; }
.permission-preview-title {
  margin: 0;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 700;
}
.permission-preview-help {
  margin: 3px 0 12px;
  color: rgba(20, 18, 26, .55);
  font-size: 11px;
  line-height: 1.4;
}
.permission-preview-roles {
  margin: 0;
  padding: 0;
  border: 0;
}
.permission-preview-role {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.permission-preview-role input { flex: none; margin: 0; }
.permission-preview-admin-note {
  margin: 8px 0 10px;
  padding: 7px 8px;
  border-radius: 5px;
  background: #fff3e0;
  color: #8a4b00;
  font-size: 10.5px;
  line-height: 1.35;
}
.permission-preview-submit {
  width: 100%;
  min-height: 38px;
  margin-top: 9px;
  padding: 7px 10px;
  font-size: 11px;
}
.permission-preview-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.permission-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(138, 90, 18, .2);
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 11.5px;
  line-height: 1.45;
}
.permission-preview-banner__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 5px;
}
.permission-preview-banner__label { letter-spacing: .08em; }
.permission-preview-banner__readonly { flex-basis: 100%; }
.permission-preview-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.permission-preview-banner__actions form { margin: 0; }
.permission-preview-banner__edit,
.permission-preview-banner__stop {
  min-height: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.permission-preview-banner__edit:hover,
.permission-preview-banner__stop:hover,
.permission-preview-banner__edit:focus-visible,
.permission-preview-banner__stop:focus-visible {
  background: transparent;
  color: var(--color-ink);
}
.permission-preview-banner__stop { color: #7e4f0e; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .permission-preview-panel {
    position: fixed;
    top: 59px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  .permission-preview-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .permission-preview-banner__actions { justify-content: flex-end; }
}
