:root { --daf: #1f3864; }
body { background: #f5f7fb; }
.bg-daf { background: var(--daf); }
.login-wrap { min-height: 90vh; display: flex; align-items: center; }
.login-card { width: 100%; max-width: 420px; }
.att-grid td { min-width: 165px; vertical-align: top; }
.att-grid th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.num { max-width: 80px; }
.changes { padding-left: 1rem; font-size: .85em; color: #555; }
.sheet-head { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.decision { max-width: 800px; margin: 0 auto; background: #fff; padding: 2rem; font-size: 1.05rem; }
.print-only { display: none; }
@media print {
  .no-print, nav.navbar { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  main { padding: 0 !important; }
  .card { border: none; }
  table { font-size: 10pt; }
  a { color: inherit; text-decoration: none; }
}

/* Barre de navigation : libellés sur une ligne, plus compacts quand le menu est complet. */
@media (min-width: 1200px) {
  nav.navbar .nav-link, nav.navbar .navbar-brand { white-space: nowrap; }
  nav.navbar .nav-link { padding-left: .45rem !important; padding-right: .45rem !important; font-size: .92rem; }
}
.nav-narrow { display: none; }
@media (min-width: 1200px) and (max-width: 1699.98px) {
  .nav-wide { display: none; }
  .nav-narrow { display: inline; }
}

/* Version 1.5 : couleurs, icônes, logo. */
:root { --daf: #1f3864; --daf2: #2e75b6; --gold: #c9a227; }
body { background: linear-gradient(180deg, #eef2f9 0, #f5f7fb 260px); }
.bg-daf { background: linear-gradient(90deg, #1a2f55, #1f3864 40%, #24508f); }
.btn-daf { background: linear-gradient(90deg, #1f3864, #2e75b6); color: #fff; border: none; }
.btn-daf:hover { color: #fff; filter: brightness(1.08); }
.navbar .nav-link.active { color: #fff !important; box-shadow: inset 0 -3px 0 var(--gold); }
.nav-logo { height: 34px; width: auto; background: #fff; border-radius: 6px; padding: 2px; }
.navbar .bi-bank2 { color: var(--gold); font-size: 1.35rem; }
@media (min-width: 1200px) and (max-width: 1499.98px) { nav.navbar .nav-link .bi { display: none; } }

/* Connexion */
.login-wrap { min-height: 100vh; background: radial-gradient(circle at 15% 20%, #2e75b6 0, transparent 45%), radial-gradient(circle at 85% 80%, #c9a227 0, transparent 40%), linear-gradient(135deg, #14264a, #1f3864 55%, #234a85); }
.login-shell { display: flex; max-width: 920px; width: 100%; border-radius: 18px; overflow: hidden; background: #fff; }
.login-side { flex: 1 1 50%; padding: 2.5rem; color: #fff; background: linear-gradient(160deg, rgba(31,56,100,.96), rgba(46,117,182,.92)); position: relative; }
.login-side::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(201,162,39,.25); }
.login-emblem { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--gold); border: 2px solid rgba(201,162,39,.6); }
.login-logo { max-height: 96px; max-width: 220px; background: #fff; border-radius: 12px; padding: 6px; }
.login-features li { margin: .55rem 0; opacity: .95; }
.login-features .bi { color: var(--gold); margin-right: .5rem; }
.login-form { flex: 1 1 50%; padding: 2.5rem; }
@media (max-width: 767.98px) { .login-shell { flex-direction: column; } .login-side { padding: 1.5rem; } .login-side ul { display: none; } }

/* Tableau de bord */
.hero { border-radius: 16px; padding: 1.4rem 1.6rem; color: #fff; background: linear-gradient(120deg, #1f3864, #2e75b6 70%, #3d8bd0); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; border: 24px solid rgba(201,162,39,.28); }
.hero .hero-logo { max-height: 64px; background: #fff; border-radius: 10px; padding: 4px; }
.stat { border: none; border-radius: 14px; box-shadow: 0 2px 10px rgba(31,56,100,.08); transition: transform .12s, box-shadow .12s; }
.stat:hover, .tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,56,100,.15); }
.stat .stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; flex: 0 0 52px; }
.stat-primary .stat-icon, .ic-primary { background: linear-gradient(135deg, #2e75b6, #1f3864); }
.stat-success .stat-icon, .ic-success { background: linear-gradient(135deg, #34c38f, #198754); }
.stat-warning .stat-icon, .ic-warning { background: linear-gradient(135deg, #f7b84b, #e08e0b); }
.stat-danger .stat-icon, .ic-danger { background: linear-gradient(135deg, #f46a6a, #c0392b); }
.stat-info .stat-icon, .ic-info { background: linear-gradient(135deg, #50c3e6, #0d8ab3); }
.stat-purple .stat-icon, .ic-purple { background: linear-gradient(135deg, #a77ddb, #6f42c1); }
.stat-teal .stat-icon, .ic-teal { background: linear-gradient(135deg, #3ccfbf, #138d75); }
.stat-secondary .stat-icon, .ic-secondary { background: linear-gradient(135deg, #8e9aaf, #5a6475); }
.stat .stat-value { font-size: 1.7rem; font-weight: 700; color: #1f3864; line-height: 1.1; }
.stat .stat-label { font-size: .85rem; color: #6c757d; }
.tile { border: none; border-radius: 14px; box-shadow: 0 2px 10px rgba(31,56,100,.07); transition: transform .12s, box-shadow .12s; color: #1f3864; }
.tile .tile-icon { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff; }
.tile .tile-label { font-size: .88rem; font-weight: 600; margin-top: .45rem; }
.section-title { font-size: 1.05rem; font-weight: 700; color: #1f3864; display: flex; align-items: center; gap: .5rem; margin: 1.2rem 0 .7rem; }
.section-title .bi { color: var(--daf2); }
.card { border-radius: 12px; }
.card-header { background: #f8fafd; font-weight: 600; color: #1f3864; }
.doc-steps { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.doc-steps li { flex: 1 1 120px; border-top: 4px solid #dee2e6; padding-top: .35rem; color: #6c757d; display: flex; flex-direction: column; font-size: .9rem; }
.doc-steps li.done { border-color: #198754; color: #198754; font-weight: 600; }
.doc-steps li small { font-weight: normal; color: #6c757d; }
.logo-sheet { max-height: 50px; }
.time24 { min-width: 64px; text-align: center; }
.flatpickr-input[readonly].form-control:not([disabled]) { background-color: #fff; }
@media (min-width: 1200px) and (max-width: 1499.98px) {
  nav.navbar .nav-link { padding-left: .32rem !important; padding-right: .32rem !important; font-size: .86rem; }
  nav.navbar .navbar-brand { margin-right: .5rem; }
}
.nav-logo { height: 36px; width: auto; background: rgba(255,255,255,.92); border-radius: 50%; padding: 3px; }
.login-logo { max-height: 120px; max-width: 220px; background: rgba(255,255,255,.95); border-radius: 50%; padding: 10px; }
.hero .hero-logo { max-height: 72px; background: rgba(255,255,255,.95); border-radius: 50%; padding: 6px; }
table.order-lines tr.ligne-intitule textarea { font-weight: 600; background: #eef3fb; }

/* Version 1.7.1 : menu regroupé en rubriques à sections, tableau de bord allégé, connexion. */
@media (min-width: 1200px) {
  nav.navbar .nav-link { padding-left: .7rem !important; padding-right: .7rem !important; font-size: .95rem; }
  nav.navbar .nav-link .bi { display: inline-block !important; }
  .menu-sections { padding: .6rem .4rem; border: none; border-radius: 12px; box-shadow: 0 12px 32px rgba(20,38,74,.22); }
  .menu-sections.cols-2 { display: none; grid-template-columns: repeat(2, minmax(220px, 1fr)); min-width: 500px; }
  .menu-sections.cols-3 { display: none; grid-template-columns: repeat(3, minmax(210px, 1fr)); min-width: 680px; }
  .menu-sections.cols-2.show, .menu-sections.cols-3.show { display: grid; }
  .menu-sections .menu-section { padding: 0 .3rem .4rem; }
}
.menu-sections .dropdown-header { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--daf2); font-weight: 700; padding-top: .35rem; }
.menu-sections .dropdown-item { border-radius: 6px; font-size: .92rem; padding: .3rem .75rem; }
.menu-sections .dropdown-item:hover { background: #eef3fb; color: #1f3864; }
.nav-bell { position: relative; }
.nav-bell .bi { font-size: 1.15rem; }
.nav-bell .badge { position: absolute; top: 2px; right: -4px; font-size: .65rem; }
@media (max-width: 1199.98px) { .nav-bell .badge { position: static; margin-left: .3rem; } }
/* Tableau de bord : demandes regroupées par thème */
.req-group { border: none; border-radius: 14px; box-shadow: 0 2px 10px rgba(31,56,100,.07); }
.req-group .req-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: #6c7a91; margin-bottom: .4rem; }
.req-link { display: flex; align-items: center; gap: .6rem; padding: .38rem .4rem; border-radius: 8px; color: #1f3864; text-decoration: none; font-weight: 500; font-size: .93rem; }
.req-link:hover { background: #eef3fb; }
.req-link .tile-icon { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff; flex: 0 0 32px; }
.hero { padding: 1.1rem 1.4rem; }
.hero .hero-actions .btn { margin-left: .4rem; }
/* Connexion : texte de présentation */
.login-side::after { right: -90px; bottom: -90px; border-color: rgba(201,162,39,.18); }
.login-lead { font-size: 1.05rem; line-height: 1.55; opacity: .95; }
.login-domains { display: flex; flex-wrap: wrap; gap: .45rem; }
.login-domains span { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; background: rgba(255,255,255,.08); }
.login-motto { font-size: .82rem; opacity: .75; border-top: 1px solid rgba(255,255,255,.2); padding-top: .8rem; }
@media (min-width: 1200px) {
  .menu-sections.cols-3 { grid-template-columns: repeat(3, minmax(235px, 1fr)); min-width: 740px; }
  .navbar .dropdown-menu-end.menu-sections { right: 0; left: auto; }
}
.login-side { overflow: hidden; }

/* Version 1.8 : rubrique Budget dans le menu ; menu plus serré sur les écrans de 1200 à 1500 px. */
@media (min-width: 1200px) and (max-width: 1499.98px) {
  nav.navbar .nav-link { padding-left: .4rem !important; padding-right: .4rem !important; font-size: .9rem; }
  nav.navbar .nav-home .nav-txt { display: none; }
  nav.navbar .nav-link .bi { margin-right: .15rem !important; }
}
@media (min-width: 1200px) {
  .menu-sections.cols-2 { grid-template-columns: repeat(2, minmax(270px, 1fr)); min-width: 580px; }
}
@media print {
  .budget-obs input { border: none; padding: 0; background: transparent; }
}

/* Version 1.9 : listes du menu plus lisibles sur PC (icônes, titres de section, espacement, colonnes séparées). */
.menu-sections .dropdown-header { display: flex; align-items: center; gap: .45rem; white-space: normal; line-height: 1.25; font-size: .76rem; color: #1f3864; border-bottom: 2px solid #e6ecf5; margin: 0 .5rem .35rem; padding: .45rem .1rem .4rem; }
.menu-sections .dropdown-header .bi { color: #c9a227; font-size: .95rem; }
.menu-sections .dropdown-item { display: flex; align-items: flex-start; gap: .55rem; white-space: normal; line-height: 1.3; padding: .42rem .7rem; color: #24324a; }
.menu-sections .dropdown-item .bi { flex: 0 0 1.1rem; color: #5b7bb0; font-size: .95rem; margin-top: .05rem; }
.menu-sections .dropdown-item:hover .bi, .menu-sections .dropdown-item.current .bi { color: #1f3864; }
.menu-sections .dropdown-item.current { background: #e3ebf7; font-weight: 600; color: #1f3864; }
@media (min-width: 1200px) {
  .menu-sections { padding: .8rem .6rem; }
  .menu-sections .menu-section { padding: 0 .45rem .5rem; }
  .menu-sections.cols-2 .menu-section + .menu-section, .menu-sections.cols-3 .menu-section:not(:nth-child(3n+1)) { border-left: 1px solid #eef1f6; }
  .menu-sections.cols-1 { min-width: 290px; }
  .menu-sections.cols-2 { grid-template-columns: repeat(2, minmax(280px, 1fr)); min-width: 600px; }
  .menu-sections.cols-3 { grid-template-columns: repeat(3, minmax(240px, 1fr)); min-width: 760px; max-width: calc(100vw - 2rem); }
  .menu-sections.cols-2 .menu-section:nth-child(odd) { border-left: none; }
}

/* Version 1.9.2 : la liste déroulante ne dépasse plus de l'écran (position corrigée dans app.js). */
@media (min-width: 1200px) {
  .menu-sections.cols-3 { min-width: 0; width: min(760px, calc(100vw - 1rem)); grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Pilotage de l'activité (1.11) : graphiques SVG cliquables */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart-card .card-body { padding: .75rem 1rem; }
.chart-donut { width: 190px; max-width: 55%; flex: 0 0 auto; }
.chart .ch-el { cursor: pointer; transition: opacity .12s; }
.chart:hover .ch-el { opacity: .55; }
.chart .ch-el:hover { opacity: 1; filter: brightness(1.08); }
.chart text { font-family: inherit; fill: #3d4a5c; pointer-events: none; }
.chart .ch-big { font-size: 34px; font-weight: 700; fill: #1f3864; }
.chart .ch-small { font-size: 11px; fill: #6c7a8d; }
.chart .ch-lbl { font-size: 13px; }
.chart .ch-val { font-size: 13px; font-weight: 600; }
.chart .ch-grid { stroke: #e6eaf0; stroke-dasharray: 3 3; }
.chart .ch-axis { stroke: #c4ccd8; }
.ch-legend { list-style: none; padding: 0; margin: 0; font-size: .9rem; flex: 1 1 auto; }
.ch-legend li { margin: .2rem 0; }
.ch-legend a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: .45rem; padding: .15rem .4rem; border-radius: 6px; }
.ch-legend a:hover { background: #f0f4fa; }
.ch-legend b { margin-left: auto; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: 0 0 11px; }
.ch-key { font-size: .8rem; color: #6c7a8d; display: flex; gap: 1rem; margin-top: .3rem; }
.ch-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.late-list li { padding: .2rem 0; border-bottom: 1px dashed #e6eaf0; }
.late-list a { text-decoration: none; }
.kpis .stat-value { font-size: 1.6rem; }
.hb-row { display: flex; align-items: center; gap: .6rem; margin: .45rem 0; font-size: .9rem; }
.hb-lbl { flex: 0 0 var(--hb-lbl); max-width: 45%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3d4a5c; }
.hb-track { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; }
.hb-seg { display: block; height: 20px; min-width: 4px; transition: opacity .12s, filter .12s; }
.hb-seg:first-child { border-radius: 4px 0 0 4px; }
.hb-seg:last-of-type { border-radius: 0 4px 4px 0; }
.hb-seg:only-of-type { border-radius: 4px; }
.hb:hover .hb-seg { opacity: .55; }
.hb .hb-seg:hover { opacity: 1; filter: brightness(1.08); }
.hb-val { margin-left: .5rem; font-size: .85rem; }
.chart-scroll { overflow-x: auto; } .chart-scroll .chart { min-width: 560px; }
.hb-val { white-space: nowrap; } .gauge-box { max-width: 260px; margin: 0 auto; }

/* ===== Version 1.14 : thèmes de couleurs et design à menu latéral ===== */
/* Couleurs de chaque thème. Le thème « Académie » garde les couleurs d'origine. */
:root, .theme-academie { --t-900: #14264a; --t-800: #1f3864; --t-700: #24508f; --t-600: #2e75b6; --t-600-rgb: 46,117,182; --t-100: #eef3fb; --t-50: #f5f8fd; --t-accent: #c9a227; --t-bg1: #eef2f9; --t-bg2: #f5f7fb; }
.theme-emeraude { --t-900: #08321f; --t-800: #0f5132; --t-700: #146c43; --t-600: #1e8a5f; --t-600-rgb: 30,138,95; --t-100: #e7f3ec; --t-50: #f3f9f5; --t-accent: #c9a227; --t-bg1: #e9f2ed; --t-bg2: #f4f8f5; }
.theme-bordeaux { --t-900: #3d0f1c; --t-800: #6b1d2f; --t-700: #852639; --t-600: #a33a4f; --t-600-rgb: 163,58,79; --t-100: #f6eaed; --t-50: #fbf5f6; --t-accent: #c9a227; --t-bg1: #f4ecee; --t-bg2: #f9f6f7; }
.theme-ardoise { --t-900: #1b222b; --t-800: #2f3a48; --t-700: #3e4c5e; --t-600: #4f6d8c; --t-600-rgb: 79,109,140; --t-100: #eceff3; --t-50: #f5f7f9; --t-accent: #d39e3a; --t-bg1: #eceff3; --t-bg2: #f4f5f7; }
.theme-sombre { --t-900: #070c16; --t-800: #111a2e; --t-700: #18243d; --t-600: #4c8fd6; --t-600-rgb: 76,143,214; --t-100: #1b2740; --t-50: #162036; --t-accent: #d4b14a; --t-bg1: #0d1424; --t-bg2: #0f1729; }

/* Thèmes autres que « Académie » : bandeau, boutons, liens et titres prennent les couleurs du thème. */
.themed { --bs-primary: var(--t-600); --bs-primary-rgb: var(--t-600-rgb); --bs-link-color: var(--t-600); --bs-link-color-rgb: var(--t-600-rgb); --bs-link-hover-color: var(--t-700); --daf: var(--t-800); --daf2: var(--t-600); --gold: var(--t-accent);
  background: linear-gradient(180deg, var(--t-bg1) 0, var(--t-bg2) 260px); }
.themed .bg-daf { background: linear-gradient(90deg, var(--t-900), var(--t-800) 40%, var(--t-700)); }
.themed .btn-primary { --bs-btn-bg: var(--t-600); --bs-btn-border-color: var(--t-600); --bs-btn-hover-bg: var(--t-700); --bs-btn-hover-border-color: var(--t-700); --bs-btn-active-bg: var(--t-800); --bs-btn-active-border-color: var(--t-800); --bs-btn-disabled-bg: var(--t-600); --bs-btn-disabled-border-color: var(--t-600); }
.themed .btn-outline-primary { --bs-btn-color: var(--t-600); --bs-btn-border-color: var(--t-600); --bs-btn-hover-bg: var(--t-600); --bs-btn-hover-border-color: var(--t-600); --bs-btn-active-bg: var(--t-700); --bs-btn-active-border-color: var(--t-700); --bs-btn-disabled-color: var(--t-600); --bs-btn-disabled-border-color: var(--t-600); }
.themed .btn-daf { background: linear-gradient(90deg, var(--t-800), var(--t-600)); }
.themed .nav-pills { --bs-nav-pills-link-active-bg: var(--t-600); }
.themed .nav { --bs-nav-link-color: var(--t-600); --bs-nav-link-hover-color: var(--t-700); }
.themed .form-check-input:checked { background-color: var(--t-600); border-color: var(--t-600); }
.themed .form-control:focus, .themed .form-select:focus { border-color: rgba(var(--t-600-rgb), .6); box-shadow: 0 0 0 .2rem rgba(var(--t-600-rgb), .2); }
.themed .text-bg-primary { background-color: var(--t-600) !important; }
.themed .hero { background: linear-gradient(120deg, var(--t-800), var(--t-600) 70%, var(--t-600)); }
.themed .stat-primary .stat-icon, .themed .ic-primary { background: linear-gradient(135deg, var(--t-600), var(--t-800)); }
.themed .stat .stat-value, .themed .tile, .themed .section-title, .themed .card-header, .themed .req-link, .themed .chart .ch-big { color: var(--t-800); fill: var(--t-800); }
.themed .card-header { background: var(--t-50); }
.themed .menu-sections .dropdown-header { color: var(--t-800); }
.themed .menu-sections .dropdown-item .bi { color: var(--t-600); }
.themed .menu-sections .dropdown-item:hover, .themed .req-link:hover { background: var(--t-100); color: var(--t-800); }
.themed .menu-sections .dropdown-item.current { background: var(--t-100); color: var(--t-800); }
.themed .table-primary { --bs-table-bg: var(--t-100); }

/* Thème sombre : surfaces et textes clairs sur fond foncé. */
.theme-sombre { --bs-body-bg: #0f1729; --bs-body-color: #dce3ee; --bs-secondary-bg: #18243d; --bs-tertiary-bg: #141e33; --bs-border-color: #2a3956; --bs-emphasis-color: #f1f5fb; --bs-secondary-color: rgba(220,227,238,.7); }
.theme-sombre .card, .theme-sombre .dropdown-menu, .theme-sombre .modal-content, .theme-sombre .list-group-item { background-color: #141e33; border-color: #2a3956; }
.theme-sombre .card-header { background: #18243d; color: #e6edf7; }
.theme-sombre .table { --bs-table-bg: transparent; --bs-table-color: #dce3ee; --bs-table-border-color: #2a3956; --bs-table-striped-bg: rgba(255,255,255,.03); --bs-table-hover-bg: rgba(255,255,255,.05); }
.theme-sombre .table-light { --bs-table-bg: #18243d; --bs-table-color: #e6edf7; }
.theme-sombre .stat .stat-value, .theme-sombre .tile, .theme-sombre .section-title, .theme-sombre .card-header, .theme-sombre .req-link { color: #e6edf7; }
.theme-sombre .chart text, .theme-sombre .hb-lbl { fill: #c8d2e0; color: #c8d2e0; }
.theme-sombre .chart .ch-big { fill: #f1f5fb; }
.theme-sombre .chart .ch-grid { stroke: #2a3956; }
.theme-sombre .menu-sections .dropdown-header { color: #e6edf7; border-color: #2a3956; }
.theme-sombre .menu-sections .dropdown-item { color: #dce3ee; }
.theme-sombre .menu-sections .dropdown-item:hover, .theme-sombre .menu-sections .dropdown-item.current, .theme-sombre .req-link:hover, .theme-sombre .ch-legend a:hover { background: #1f2d4a; color: #fff; }
.theme-sombre .att-grid th:first-child, .theme-sombre .decision { background: #141e33; }
.theme-sombre .flatpickr-input[readonly].form-control:not([disabled]) { background-color: var(--bs-body-bg); }
.theme-sombre .text-muted { color: rgba(220,227,238,.62) !important; }
.theme-sombre .bg-white, .theme-sombre .bg-light { background-color: #141e33 !important; }
.theme-sombre .alert-light { --bs-alert-bg: #18243d; --bs-alert-color: #dce3ee; }
.theme-sombre .changes { color: #b6c1d1; }

/* Design à menu latéral */
.design-lateral { --sb-w: 268px; }
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sidebar { --bs-offcanvas-width: var(--sb-w); --bs-offcanvas-bg: var(--t-800); background: linear-gradient(180deg, var(--t-800), var(--t-900)); color: #dfe6f2; }
@media (min-width: 1200px) {
  .sidebar { position: sticky; top: 0; height: 100vh; width: var(--sb-w); flex: 0 0 var(--sb-w); display: flex; flex-direction: column; }
}
.sidebar.offcanvas-xl.show, .sidebar.offcanvas-xl.showing { display: flex; flex-direction: column; }
.sb-brand { display: flex; align-items: center; gap: .6rem; padding: 1rem 1rem .8rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb-logo { height: 42px; width: 42px; object-fit: contain; background: rgba(255,255,255,.95); border-radius: 50%; padding: 3px; flex: 0 0 42px; }
.sb-title { color: #fff; font-weight: 700; font-size: 1.15rem; line-height: 1.1; letter-spacing: .03em; }
.sb-title small { display: block; font-weight: 400; font-size: .68rem; letter-spacing: 0; color: rgba(255,255,255,.65); margin-top: .15rem; }
.sb-search { position: relative; padding: .75rem .9rem .5rem; }
.sb-search .bi { position: absolute; left: 1.55rem; top: 1.28rem; color: rgba(255,255,255,.5); font-size: .85rem; }
.sb-search input { width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #fff; padding: .4rem .6rem .4rem 2rem; font-size: .88rem; outline: none; }
.sb-search input::placeholder { color: rgba(255,255,255,.5); }
.sb-search input:focus { border-color: var(--t-accent); background: rgba(255,255,255,.12); }
.sb-nav { flex: 1 1 auto; overflow-y: auto; padding: .3rem .6rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.sb-link { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .75rem; margin: .1rem 0; border: 0; border-radius: 8px; background: none; color: #dfe6f2; text-decoration: none; font-size: .95rem; font-weight: 500; text-align: left; }
.sb-link > .bi:first-child { font-size: 1.1rem; width: 1.2rem; color: rgba(255,255,255,.7); }
.sb-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sb-link.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--t-accent); }
.sb-link.active > .bi:first-child { color: var(--t-accent); }
.sb-chev { margin-left: auto; font-size: .75rem; transition: transform .15s; opacity: .7; }
.sb-toggle:not(.collapsed) .sb-chev { transform: rotate(180deg); }
.sb-sub { padding: .15rem 0 .4rem 1.1rem; margin-left: .85rem; border-left: 1px solid rgba(255,255,255,.1); }
.sb-sec-title { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--t-accent); font-weight: 700; padding: .55rem .5rem .2rem; opacity: .9; }
.sb-item { display: flex; align-items: flex-start; gap: .5rem; padding: .32rem .5rem; border-radius: 6px; color: rgba(223,230,242,.85); text-decoration: none; font-size: .86rem; line-height: 1.3; }
.sb-item .bi { font-size: .82rem; margin-top: .12rem; opacity: .65; flex: 0 0 .9rem; }
.sb-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.sb-item.current { background: var(--t-accent); color: var(--t-900); font-weight: 600; }
.sb-item.current .bi { opacity: 1; }
.sb-empty { color: rgba(255,255,255,.55); font-size: .85rem; padding: .5rem .75rem; }
.sb-foot { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; font-size: .75rem; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.08); }
.sb-foot a { color: rgba(255,255,255,.75); text-decoration: none; }
.sb-foot a:hover { color: #fff; }
.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; padding: .55rem 1.25rem; background: var(--bs-body-bg, #fff); border-bottom: 1px solid var(--bs-border-color, #e5e9f0); box-shadow: 0 1px 6px rgba(20,38,74,.05); }
.design-lateral:not(.theme-sombre) .topbar { background: #fff; }
.topbar-burger { font-size: 1.5rem; padding: 0 .25rem; color: var(--t-800); }
.theme-sombre .topbar-burger { color: #e6edf7; }
.topbar-crumb { font-size: .88rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.topbar-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--t-800); text-decoration: none; font-size: 1.15rem; }
.theme-sombre .topbar-btn, .theme-sombre .topbar-user { color: #e6edf7; }
.topbar-btn:hover { background: var(--t-100); }
.topbar-btn .badge { position: absolute; top: 0; right: -2px; font-size: .62rem; }
.topbar-user { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .5rem; border-radius: 999px; color: var(--t-800); text-decoration: none; font-size: .9rem; font-weight: 500; }
.topbar-user:hover { background: var(--t-100); }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--t-600), var(--t-800)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.design-lateral main { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.design-lateral .page-head h1 { font-weight: 600; color: var(--t-800); }
.theme-sombre.design-lateral .page-head h1 { color: #f1f5fb; }
.design-lateral .card { border: 1px solid var(--bs-border-color, #e6eaf0); box-shadow: 0 1px 3px rgba(20,38,74,.04); }
@media print { .sidebar, .topbar { display: none !important; } .app-shell { display: block; } }

/* Page « Apparence » : aperçus des designs et des thèmes */
.ui-choice { cursor: pointer; display: block; height: 100%; }
.ui-choice input { position: absolute; opacity: 0; }
.ui-choice .card { height: 100%; transition: box-shadow .12s, border-color .12s; border: 2px solid var(--bs-border-color, #e1e6ee); }
.ui-choice input:checked + .card { border-color: var(--t-600); box-shadow: 0 0 0 3px rgba(var(--t-600-rgb), .2); }
.ui-choice input:focus-visible + .card { outline: 2px solid var(--t-600); }
.ui-mock { width: 100%; height: auto; display: block; border-radius: 6px; }
.ui-swatch { display: flex; height: 38px; border-radius: 8px; overflow: hidden; }
.ui-swatch span { flex: 1; }
/* 1.20 : grille des versements par boursier et par mois */
.cg-grille td.cg { min-width: 3.6rem; white-space: nowrap; text-align: center; cursor: pointer; position: relative; line-height: 1.15; padding: .25rem .2rem; }
.cg-grille td.cg .cg-box { position: absolute; top: 2px; left: 3px; margin: 0; width: .8rem; height: .8rem; }
.cg-grille td.cg small { opacity: .8; }
td.cg-paye, .cg-leg.cg-paye { background: rgba(25,135,84,.16) !important; color: #146c43; }
td.cg-partiel, .cg-leg.cg-partiel { background: rgba(255,193,7,.25) !important; color: #7a5a00; }
td.cg-du, .cg-leg.cg-du { background: rgba(220,53,69,.13) !important; color: #b02a37; }
td.cg-avenir, .cg-leg.cg-avenir { background: rgba(108,117,125,.08) !important; color: #6c757d; }
td.cg-trou, .cg-leg.cg-trou { background: rgba(255,193,7,.10) !important; outline: 2px dashed rgba(204,150,0,.7); outline-offset: -3px; color: #7a5a00; font-weight: 600; }
td.cg-vide { color: #adb5bd; }
td.cg.cg-sel { box-shadow: inset 0 0 0 3px var(--t-600, #2e75b6); }
.cg-leg { display: inline-block; width: 1rem; height: .8rem; border-radius: 2px; vertical-align: -1px; margin-right: .2rem; border: 1px solid rgba(0,0,0,.1); }
.cg-actions { position: sticky; top: .5rem; z-index: 5; }
[data-bs-theme="dark"] td.cg-paye { color: #75b798; } [data-bs-theme="dark"] td.cg-du { color: #ea868f; }
[data-bs-theme="dark"] td.cg-partiel, [data-bs-theme="dark"] td.cg-trou { color: #ffda6a; }
/* 1.20 : 11 rubriques ; libellés courts dans le menu du haut (nom complet en infobulle) */
.nav-short { display: none; }
@media (min-width: 1200px) { nav.navbar .nav-long { display: none; } nav.navbar .nav-short { display: inline; } nav.navbar .navbar-brand small { display: none; } }
@media (min-width: 1200px) and (max-width: 1799.98px) { nav.navbar .nav-home .nav-txt { display: none; } nav.navbar .d-xxl-inline { display: none !important; } }
.cg-grille th, .cg-grille td.text-end { white-space: nowrap; }
.nav-portail { height: 36px; width: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }

/* Bureau d'ordre (version 1.32) */
.bo-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 1.3rem 1.6rem; color: #fff; display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.16), transparent 40%), linear-gradient(125deg, var(--t-900, #14264a), var(--t-600, #2e75b6) 75%); }
.bo-hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: repeating-linear-gradient(135deg, #fff 0 10px, transparent 10px 20px, #c0392b 20px 30px, transparent 30px 40px); height: 6px; }
.bo-hero-txt { flex: 1 1 22rem; position: relative; z-index: 1; }
.bo-hero-k { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; opacity: .85; }
.bo-hero h1 { font-size: 1.55rem; font-weight: 700; margin: .15rem 0 .2rem; }
.bo-hero p { margin: 0; opacity: .9; font-size: .92rem; max-width: 52rem; }
.bo-hero-act { position: relative; z-index: 1; flex: 0 1 28rem; }
.bo-hero-art { position: absolute; right: 1rem; top: -.4rem; width: 170px; opacity: .14; fill: none; stroke: #fff; stroke-width: 6; stroke-linejoin: round; }
.bo-search { position: relative; }
.bo-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #64748b; }
.bo-search input { width: 100%; border: 0; border-radius: 999px; padding: .62rem 1rem .62rem 2.4rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.bo-alerte { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 12px; text-decoration: none; color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, var(--bs-body-bg)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); font-size: .9rem; }
.bo-alerte:hover { background: color-mix(in srgb, var(--c) 16%, var(--bs-body-bg)); color: var(--c); }
.bo-puce { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 65%, #000)); box-shadow: 0 4px 10px color-mix(in srgb, var(--c) 35%, transparent); }
.bo-puce-sm { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; font-size: .85rem; }
.bo-statut, .bo-tag { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; font-weight: 600; white-space: nowrap; color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }
.bo-statut { padding: .14rem .6rem; font-size: .78rem; }
.bo-tag { padding: .08rem .5rem; font-size: .72rem; }
.bo-list { display: flex; flex-direction: column; gap: .5rem; }
.bo-row { --p: transparent; display: flex; gap: .85rem; align-items: center; padding: .7rem .9rem; border-radius: 14px; text-decoration: none; color: inherit; cursor: pointer;
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-left: 4px solid var(--p); transition: transform .12s, box-shadow .12s; }
.bo-row:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31,56,100,.12); color: inherit; }
.bo-row.bo-late { background: color-mix(in srgb, #dc2626 5%, var(--bs-body-bg)); }
.bo-pick input { flex: 0 0 auto; margin: 0; }
.bo-main { flex: 1 1 auto; min-width: 0; }
.bo-l1 { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.bo-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: .82rem; color: var(--t-600, #2e75b6); }
.bo-corr { font-weight: 600; }
.bo-int { font-size: .8rem; color: var(--bs-secondary-color); }
.bo-int i { margin-right: .2rem; }
.bo-l2 { font-size: .9rem; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-l3 { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; align-items: center; }
.bo-date { flex: 0 0 3.2rem; text-align: center; line-height: 1.05; border-left: 1px dashed var(--bs-border-color); padding-left: .6rem; }
.bo-date b { display: block; font-size: 1.35rem; color: var(--t-800, #1f3864); }
.bo-date span { font-size: .7rem; text-transform: uppercase; color: var(--bs-secondary-color); }
.bo-date small { display: block; font-size: .68rem; color: var(--bs-secondary-color); }
.theme-sombre .bo-date b { color: #e6edf7; }
.bo-vide { text-align: center; padding: 2rem 1rem; color: var(--bs-secondary-color); }
.bo-vide i { font-size: 2.6rem; opacity: .5; }
.bo-mois { display: flex; align-items: center; gap: .5rem; margin: .4rem 0 .5rem; font-weight: 700; color: var(--t-800, #1f3864); text-transform: capitalize; }
.bo-mois::after { content: ""; flex: 1; height: 1px; background: var(--bs-border-color); }
.bo-mois small { background: var(--t-100, #eef3fb); border-radius: 999px; padding: 0 .55rem; font-weight: 600; }
.bo-seg { display: inline-flex; flex-wrap: wrap; background: var(--bs-tertiary-bg); border-radius: 12px; padding: 3px; gap: 2px; }
.bo-seg a, .bo-seg label { padding: .38rem .9rem; border-radius: 9px; text-decoration: none; color: var(--bs-body-color); font-weight: 600; font-size: .88rem; cursor: pointer; margin: 0; }
.bo-seg a.on, .bo-seg label.on { background: var(--bs-body-bg); color: var(--c, var(--t-600, #2e75b6)); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.bo-seg label input { display: none; }
.bo-chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.bo-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .7rem; border-radius: 999px; font-size: .8rem; text-decoration: none; color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: var(--bs-body-bg); }
.bo-chip.on, .bo-chip:hover { background: var(--c); color: #fff; }
.bo-chip-sep { width: 1px; height: 1.2rem; background: var(--bs-border-color); margin: 0 .2rem; }
.bo-cachet { --c: #2563eb; flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 9.5rem; padding: .5rem .9rem; border-radius: 12px;
  border: 3px double var(--c); color: var(--c); transform: rotate(-4deg); background: color-mix(in srgb, var(--c) 5%, var(--bs-body-bg)); text-transform: uppercase; }
.bo-cachet b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.1rem; letter-spacing: .03em; }
.bo-cachet small { font-size: .66rem; letter-spacing: .08em; font-weight: 700; }
.bo-form-head, .bo-fiche { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; padding: 1rem 1.2rem; border-radius: 16px; margin-bottom: 1rem;
  background: linear-gradient(110deg, color-mix(in srgb, var(--c) 9%, var(--bs-body-bg)), var(--bs-body-bg) 70%); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--bs-border-color)); }
.bo-fiche-txt { flex: 1 1 22rem; min-width: 0; }
.bo-fiche-act { display: flex; flex-direction: column; gap: .35rem; }
.bo-route { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; color: var(--bs-secondary-color); }
.bo-route > i { color: var(--c); font-size: 1.1rem; }
.bo-types { display: flex; flex-wrap: wrap; gap: .45rem; }
.bo-type input { position: absolute; opacity: 0; pointer-events: none; }
.bo-type span { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 12px; cursor: pointer; font-size: .86rem; font-weight: 600;
  border: 1.5px solid color-mix(in srgb, var(--c) 30%, var(--bs-border-color)); color: var(--c); background: var(--bs-body-bg); transition: all .12s; }
.bo-type span em { font-style: normal; font-size: .65rem; background: color-mix(in srgb, var(--c) 15%, transparent); border-radius: 6px; padding: 0 .3rem; }
.bo-type input:checked + span { background: var(--c); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 40%, transparent); }
.bo-type input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }
.bo-drop { border: 2px dashed color-mix(in srgb, var(--t-600, #2e75b6) 35%, var(--bs-border-color)); }
.bo-dl dt { font-weight: 600; color: var(--bs-secondary-color); font-size: .85rem; }
.bo-details { white-space: normal; line-height: 1.55; }
.bo-viewer .bo-scan { height: 560px; background: var(--bs-tertiary-bg); display: flex; align-items: center; justify-content: center; overflow: auto; border-radius: 0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius); }
.bo-scan iframe { width: 100%; height: 100%; border: 0; }
.bo-scan img { max-width: 100%; max-height: 100%; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.bo-frise { list-style: none; margin: 0; padding: 0 0 0 .3rem; position: relative; }
.bo-frise::before { content: ""; position: absolute; left: 1.05rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--bs-border-color); }
.bo-frise li { display: flex; gap: .7rem; position: relative; padding-bottom: .8rem; }
.bo-frise li > i { flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--c); font-size: .8rem; z-index: 1; box-shadow: 0 0 0 3px var(--bs-body-bg); }
.bo-flow, .bo-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .5rem; counter-reset: s; }
.bo-flow > div, .bo-steps > div { position: relative; padding: .7rem .8rem; border-radius: 12px; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); font-size: .82rem; }
.bo-flow i, .bo-steps i { font-size: 1.3rem; color: var(--t-600, #2e75b6); display: block; margin-bottom: .2rem; }
.bo-flow b { position: absolute; right: .6rem; top: .4rem; font-size: 1.4rem; opacity: .15; }
.bo-steps > div b { display: block; }
.bo-steps > div small { color: var(--bs-secondary-color); }
.bo-steps > div.ok { border-color: #16a34a; background: color-mix(in srgb, #16a34a 7%, var(--bs-body-bg)); }
.bo-steps > div.ok i { color: #16a34a; }
.bo-param { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; padding: .5rem .6rem; border: 1px solid var(--bs-border-color); border-radius: 12px; margin-bottom: .4rem; background: var(--bs-body-bg); }
@media (max-width: 575.98px) { .bo-date { display: none; } .bo-hero-art { display: none; } .bo-cachet { transform: none; } }
/* Bureau d'ordre : choix de l'enveloppe (ouverte, confidentielle, pli fermé pour le SP) — v1.32 */
.bo-env { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem; }
.bo-env label { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border: 1.5px solid var(--bs-border-color); border-radius: 12px; cursor: pointer; margin: 0; transition: border-color .15s, background .15s; }
.bo-env label input { display: none; }
.bo-env label > i { font-size: 1.35rem; color: var(--c); line-height: 1; margin-top: .1rem; }
.bo-env label b { display: block; font-size: .9rem; }
.bo-env label small { display: block; color: var(--bs-secondary-color); font-size: .78rem; line-height: 1.25; }
.bo-env label.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 15%, transparent); }
.bo-ouvrir { border: 2px solid #b45309; }
.bo-ouvrir .card-header { background: color-mix(in srgb, #b45309 14%, transparent); color: #92400e; font-weight: 600; }
[data-bs-theme="dark"] .bo-ouvrir .card-header { color: #fbbf24; }
/* Retenues à la source (v1.33) */
.rs-panel { border: 1.5px dashed color-mix(in srgb, #d97706 55%, var(--bs-border-color)); border-radius: 12px; padding: .7rem .9rem; background: color-mix(in srgb, #d97706 4%, transparent); }
.rs-regles { display: grid; gap: .4rem; }
.rs-regle { display: flex; gap: .6rem; align-items: center; padding: .45rem .7rem; border: 1px solid var(--bs-border-color); border-radius: 10px; cursor: pointer; margin: 0; }
.rs-regle span { flex: 1; } .rs-regle b { display: block; font-size: .88rem; } .rs-regle small { display: block; color: var(--bs-secondary-color); font-size: .76rem; }
.rs-regle em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bs-secondary-color); }
.rs-regle.on { border-color: #d97706; background: color-mix(in srgb, #d97706 9%, transparent); } .rs-regle.on em { color: #b45309; }
.rs-total { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: flex-end; font-size: .92rem; } .rs-total b { font-variant-numeric: tabular-nums; }
.rs-kpi { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--c) 9%, var(--bs-body-bg)); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); height: 100%; }
.rs-kpi > i { font-size: 1.6rem; color: var(--c); } .rs-kpi b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; } .rs-kpi small { color: var(--bs-secondary-color); }

/* Version 1.46 (demande du DAF du 29/10/2026) : zones de saisie bien visibles, avec une bordure nette, dans toute l'application. */
.form-control, .form-select, .input-group-text { border: 1px solid #8e9bb0; }
.form-control, .form-select { background-color: #fff; }
.form-control:hover:not(:focus):not([disabled]), .form-select:hover:not(:focus):not([disabled]) { border-color: #5f6f88; }
.form-control:focus, .form-select:focus { border-color: var(--t-600, #2e75b6); box-shadow: 0 0 0 .2rem rgba(var(--t-600-rgb, 46,117,182), .22); }
textarea.form-control { border-width: 1px; min-height: 2.6rem; }
.form-check-input { border: 1px solid #6f7d93; }
input[type=text]:not([class]), input[type=number]:not([class]), input[type=date]:not([class]), input[type=email]:not([class]), input[type=search]:not([class]), textarea:not([class]), select:not([class]) {
  border: 1px solid #8e9bb0; border-radius: .375rem; padding: .25rem .5rem; background: #fff; }
.form-control[readonly]:not(.flatpickr-input), .form-control:disabled, .form-select:disabled { background-color: #eef1f5; border-color: #b8c1cf; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #dc3545; }
.theme-sombre .form-control, .theme-sombre .form-select, .theme-sombre .input-group-text { border-color: #5d7298; background-color: #121c31; color: var(--bs-body-color); }
.theme-sombre .form-control:hover:not(:focus), .theme-sombre .form-select:hover:not(:focus) { border-color: #7f95bb; }
.theme-sombre .form-check-input { border-color: #7f95bb; }
.budget-obs input { border: none !important; }

/* Version 1.46 : sessions plénières mises en valeur (vitrine, parcours numéroté, cartes de rubrique, documents typés). */
.pl-vitrine-hero { border-radius: 18px; color: #fff; background: radial-gradient(circle at 85% -10%, rgba(201,162,39,.35), transparent 45%), linear-gradient(135deg, #14264a 0%, #1f3864 45%, #2e75b6 100%); box-shadow: 0 10px 30px rgba(20,38,74,.25); position: relative; overflow: hidden; }
.pl-vitrine-hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 28px solid rgba(255,255,255,.06); }
.pl-surtitre { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.pl-theme { font-family: Georgia, 'Times New Roman', serif; font-size: 1.85rem; font-weight: 700; line-height: 1.2; }
.pl-compteur { background: #c9a227; color: #14264a; border-radius: 14px; padding: .55rem 1rem; text-align: center; min-width: 120px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.pl-compteur b { display: block; font-size: 1.9rem; line-height: 1; }
.pl-frise { display: flex; gap: 4px; margin-top: .6rem; }
.pl-frise span { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.22); }
.pl-frise span.termine { background: #c9a227; } .pl-frise span.en_cours { background: #8fc1ec; } .pl-frise span.sans_objet { background: rgba(255,255,255,.08); }
.pl-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .82rem; }
.pl-chip.ok { background: rgba(25,135,84,.85); } .pl-chip.att { background: rgba(255,193,7,.9); color: #3b2f00; } .pl-chip.ko { background: rgba(220,53,69,.85); }
.pl-ed-carte { display: block; height: 100%; border-radius: 14px; padding: 1rem 1.1rem; background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color, #dfe4ec); border-top: 5px solid #2e75b6; color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.pl-ed-carte:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,38,74,.12); color: inherit; }
.pl-ed-carte.preparation { border-top-color: #c9a227; } .pl-ed-carte.realisee { border-top-color: #198754; } .pl-ed-carte.annulee { border-top-color: #adb5bd; opacity: .8; }
.pl-ed-annee { font-size: 2rem; font-weight: 800; color: var(--t-800, #1f3864); line-height: 1; }
.pl-ed-theme { font-family: Georgia, serif; font-style: italic; margin: .4rem 0; min-height: 2.6em; }
.pl-ed-carte .pl-frise span { background: #e3e8ef; } .pl-ed-carte .pl-frise span.termine { background: #198754; } .pl-ed-carte .pl-frise span.en_cours { background: #ffc107; }
.pl-onglets { display: flex; gap: .6rem; flex-wrap: wrap; }
.pl-onglet { flex: 1 1 220px; display: flex; gap: .7rem; align-items: center; padding: .75rem 1rem; border-radius: 14px; border: 1.5px solid var(--bs-border-color, #dfe4ec); background: var(--bs-body-bg, #fff); color: inherit; text-decoration: none; font-weight: 600; transition: all .12s; }
.pl-onglet i { font-size: 1.4rem; color: var(--t-600, #2e75b6); }
.pl-onglet small { display: block; font-weight: 400; color: var(--bs-secondary-color, #6c757d); }
.pl-onglet:hover { border-color: var(--t-600, #2e75b6); color: inherit; }
.pl-onglet.actif { background: linear-gradient(135deg, #1f3864, #2e75b6); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(31,56,100,.25); }
.pl-onglet.actif i, .pl-onglet.actif small { color: #fff; opacity: .95; }
.pl-parcours { background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color, #dfe4ec); border-radius: 14px; padding: .8rem; position: relative; }
.pl-parcours-titre { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bs-secondary-color, #6c757d); margin-bottom: .5rem; font-weight: 600; }
.pl-etape { display: flex; align-items: center; gap: .6rem; padding: .35rem .4rem; border-radius: 10px; color: inherit; text-decoration: none; font-size: .86rem; position: relative; }
.pl-etape:hover { background: var(--t-50, #f5f8fd); color: inherit; }
.pl-etape + .pl-etape::before { content: ""; position: absolute; left: 1.15rem; top: -.45rem; height: .6rem; width: 2px; background: var(--bs-border-color, #dfe4ec); }
.pl-num { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; background: #e9edf3; color: #3d4b60; border: 2px solid #cfd7e3; }
.etat-en_cours .pl-num { background: #fff3cd; border-color: #ffc107; color: #7a5b00; }
.etat-termine .pl-num { background: #198754; border-color: #198754; color: #fff; }
.etat-sans_objet .pl-num { opacity: .5; }
.pl-rub { background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color, #dfe4ec); border-left: 6px solid #9aa8bd; border-radius: 14px; margin-bottom: 1.25rem; scroll-margin-top: 80px; box-shadow: 0 2px 8px rgba(20,38,74,.05); overflow: hidden; }
.pl-rub.etat-en_cours { border-left-color: #ffc107; } .pl-rub.etat-termine { border-left-color: #198754; } .pl-rub.etat-sans_objet { border-left-color: #dee2e6; opacity: .85; }
.pl-rub.pl-mienne { box-shadow: 0 0 0 3px rgba(var(--t-600-rgb, 46,117,182), .35); }
.pl-rub:target { box-shadow: 0 0 0 3px rgba(201,162,39,.6); }
.pl-rub-tete { display: flex; gap: .75rem; align-items: center; padding: .85rem 1.1rem; background: linear-gradient(90deg, var(--t-50, #f5f8fd), var(--bs-body-bg, #fff)); border-bottom: 1px solid var(--bs-border-color, #e6eaf0); }
.pl-rub-tete .pl-num { width: 2.1rem; height: 2.1rem; font-size: .95rem; }
.pl-ico { width: 2.3rem; height: 2.3rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #1f3864; color: #c9a227; font-size: 1.15rem; flex: 0 0 auto; }
.pl-rub-titre { font-size: 1.08rem; font-weight: 700; margin: 0; color: var(--t-800, #1f3864); }
.pl-rub-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: var(--bs-secondary-color, #6c757d); margin-top: .15rem; align-items: center; }
.pl-rub-corps { padding: 1rem 1.1rem; }
.pl-rub-corps .form-label { font-weight: 600; color: #3d4b60; }
.pl-aide { font-size: .85rem; color: var(--bs-secondary-color, #6c757d); background: var(--t-50, #f5f8fd); border-radius: 8px; padding: .45rem .7rem; }
.pl-sous-titre { font-weight: 700; font-size: .9rem; margin: 1rem 0 .4rem; color: var(--t-800, #1f3864); }
.pl-table thead th { background: #eef2f8; font-weight: 600; color: #3d4b60; border-bottom: 2px solid #cfd7e3; }
.pl-lecture { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; gap: .35rem 1rem; font-size: .9rem; margin: 0; }
.pl-lecture dt { color: var(--bs-secondary-color, #6c757d); font-weight: 600; }
.pl-lecture dd { margin: 0; }
.pl-suivi { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; padding: .8rem 1.1rem; background: #f6f8fb; border-top: 1px solid var(--bs-border-color, #e6eaf0); }
.pl-suivi .form-label { font-size: .82rem; margin-bottom: .2rem; font-weight: 600; }
.pl-suivi > div:first-child { min-width: 150px; }
.pl-validation { border: 1.5px dashed #9aa8bd; border-radius: 12px; padding: .7rem .9rem; margin: .8rem 0; background: #fafbfd; }
.pl-validation.etat-valide { border: 1.5px solid #198754; background: #f1faf5; } .pl-validation.etat-soumis { border-color: #ffc107; background: #fffbea; } .pl-validation.etat-a_revoir { border-color: #dc3545; background: #fdf3f4; }
.pj-zone { border: 1px solid var(--bs-border-color, #e1e6ee); border-radius: 12px; padding: .7rem .85rem; margin-top: .9rem; background: #fcfdfe; }
.pj-titre { font-weight: 700; font-size: .9rem; margin-bottom: .45rem; color: var(--t-800, #1f3864); }
.pj-liste li { padding: .2rem 0; font-size: .88rem; }
.pj-nature { background: #1f3864; color: #fff; font-weight: 500; }
.pl-doc { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; margin: .1rem .2rem .1rem 0; border-radius: 999px; border: 1px solid #cfd7e3; background: #fff; font-size: .78rem; text-decoration: none; white-space: nowrap; }
.pl-doc:hover { border-color: #2e75b6; }
.pl-cases { border: 1px solid #b9c3d3; border-radius: 10px; padding: .6rem .7rem; background: #fff; }
.pl-cases-outils { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .4rem; }
.pl-cases-outils input[type=search] { max-width: 240px; }
.pl-compte { font-size: .8rem; font-weight: 600; color: var(--t-700, #24508f); }
.pl-cases-groupe { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bs-secondary-color, #6c757d); margin: .45rem 0 .2rem; font-weight: 600; }
.pl-cases-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .15rem .6rem; }
.pl-case { display: flex; gap: .45rem; align-items: center; padding: .2rem .4rem; border-radius: 6px; cursor: pointer; font-size: .88rem; margin: 0; }
.pl-case:hover { background: #f1f4f9; }
.pl-case.tete { background: #fbf6e3; border: 1px solid #ecd98f; font-weight: 600; }
.pl-case input:checked + span { font-weight: 600; color: var(--t-800, #1f3864); }
.pl-case.cache { display: none; }
.pl-dash { border-radius: 16px; color: #fff; background: linear-gradient(120deg, #14264a, #2e75b6); padding: 1rem 1.25rem; box-shadow: 0 8px 22px rgba(20,38,74,.2); }
.pl-dash a.btn-light { font-weight: 600; }
.theme-sombre .pl-suivi, .theme-sombre .pj-zone, .theme-sombre .pl-validation, .theme-sombre .pl-cases, .theme-sombre .pl-doc { background: var(--bs-tertiary-bg); }
.theme-sombre .pl-table thead th { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
.theme-sombre .pl-case.tete { background: #2c2a1c; border-color: #6b5d24; }
.theme-sombre .pl-rub-titre, .theme-sombre .pj-titre, .theme-sombre .pl-sous-titre { color: var(--bs-emphasis-color); }
.theme-sombre .pl-rub-corps .form-label { color: var(--bs-body-color); }
@media (max-width: 576px) { .pl-theme { font-size: 1.35rem; } .pl-rub-tete { flex-wrap: wrap; } .pl-lecture { grid-template-columns: 1fr; } }

/* Version 1.47 : organigramme */
.org { display: flex; flex-direction: column; gap: .5rem; }
.org-noeud { border: 1px solid var(--bs-border-color); border-left: 4px solid #2c4a7c; border-radius: .5rem; padding: .5rem .75rem; background: var(--bs-body-bg); }
.org-noeud.org-direction { border-left-color: #b8892b; }
.org-noeud.org-secretariat { border-left-color: #6f42c1; }
.org-noeud.org-groupe { border-left-color: #20c997; }
.org-titre { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; }
.org-nom { font-weight: 600; }
.org-resp { font-size: .9rem; }
.org-agents { margin: .35rem 0 0; padding-left: 1.2rem; font-size: .88rem; columns: 2; }
@media (max-width: 768px) { .org-agents { columns: 1; } }
.org-enfants { margin: .5rem 0 0 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
/* Version 1.48 : espaces de discussion */
.disc-fil { max-height: 62vh; overflow-y: auto; }
.disc-jour { text-align: center; margin: .6rem 0; font-size: .8rem; color: var(--bs-secondary-color); }
.disc-jour span { background: var(--bs-tertiary-bg); border-radius: 1rem; padding: .1rem .7rem; }
.disc-msg { max-width: 85%; margin: .35rem 0; padding: .45rem .7rem; border-radius: .7rem; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color-translucent); }
.disc-msg.disc-moi { margin-left: auto; background: rgba(13, 110, 253, .08); border-color: rgba(13, 110, 253, .25); }
.disc-msg.disc-nouveau { border-left: 4px solid var(--bs-danger); }
.disc-tete { font-size: .85rem; }
.disc-texte { white-space: normal; overflow-wrap: anywhere; }
.visio-lien { font-size: 1.05rem; word-break: break-all; }

/* Version 1.50 : espaces de discussion professionnels */
.esp-av { --h: 210; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: hsl(var(--h) 55% 88%); color: hsl(var(--h) 55% 28%); font-weight: 600; font-size: .85rem; letter-spacing: .02em; border: 2px solid var(--bs-body-bg); }
.esp-av.esp-av-sm { width: 1.9rem; height: 1.9rem; font-size: .72rem; }
.esp-av.esp-av-xs { width: 1.6rem; height: 1.6rem; font-size: .62rem; }
[data-bs-theme="dark"] .esp-av { background: hsl(var(--h) 35% 28%); color: hsl(var(--h) 70% 85%); }
.esp-avs { display: inline-flex; } .esp-avs .esp-av + .esp-av { margin-left: -.45rem; }
.esp-carte { transition: box-shadow .15s, transform .15s; height: 100%; } .esp-carte:hover { box-shadow: 0 .4rem 1.2rem rgba(0,0,0,.08); transform: translateY(-1px); }
.esp-carte-ic { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .7rem; flex: 0 0 auto;
  background: rgba(13,110,253,.1); color: var(--bs-primary); font-size: 1.2rem; }
.esp-carte-ic.esp-ic-lg { width: 3.4rem; height: 3.4rem; font-size: 1.6rem; border-radius: .9rem; }
.esp-carte-titre { font-weight: 600; color: var(--bs-body-color); }
.esp-carte-sujet { font-size: .85rem; color: var(--bs-secondary-color); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.esp-intro { color: var(--bs-secondary-color); display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; } .esp-intro > .bi { font-size: 1.3rem; color: var(--bs-primary); }
.esp-sujet { background: var(--bs-tertiary-bg); border-left: 4px solid var(--bs-primary); border-radius: .4rem; padding: .5rem .75rem; }
.esp-sujet-l { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--bs-primary); margin-right: .35rem; }
.esp-entete-btns .btn { white-space: nowrap; }
.esp-filtres { display: flex; flex-wrap: wrap; gap: .3rem; }
.esp-chip { font-size: .75rem; padding: .15rem .6rem; border-radius: 1rem; border: 1px solid var(--bs-border-color); color: var(--bs-body-color); text-decoration: none; background: var(--bs-body-bg); }
.esp-chip:hover { border-color: var(--bs-primary); } .esp-chip.actif { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.esp-fils-liste { max-height: 64vh; overflow-y: auto; }
.esp-fil { border-left: 3px solid transparent; } .esp-fil.esp-fil-nonlu { border-left-color: var(--bs-danger); } .esp-fil.esp-fil-nonlu .esp-fil-titre { font-weight: 700 !important; }
.esp-fil-extrait, .esp-fil-meta { color: var(--bs-secondary-color); overflow: hidden; text-overflow: ellipsis; }
.esp-fil.active .esp-fil-extrait, .esp-fil.active .esp-fil-meta { color: rgba(255,255,255,.85); }
.esp-conv-titre { font-size: 1.05rem; }
.esp-flux { max-height: 64vh; overflow-y: auto; background: var(--bs-tertiary-bg); scroll-behavior: smooth; }
.esp-jour, .esp-nouveaux { text-align: center; margin: .8rem 0 .5rem; font-size: .78rem; color: var(--bs-secondary-color); position: relative; }
.esp-jour span, .esp-nouveaux span { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: 1rem; padding: .1rem .8rem; position: relative; }
.esp-nouveaux::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--bs-danger); }
.esp-nouveaux span { color: var(--bs-danger); border-color: var(--bs-danger); font-weight: 600; }
.esp-msg { display: flex; gap: .6rem; padding: .55rem .6rem; margin: .25rem 0; border-radius: .7rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-left: 4px solid transparent; scroll-margin-top: 4rem; }
.esp-msg:target { box-shadow: 0 0 0 .2rem rgba(255,193,7,.5); }
.esp-msg.esp-moi { background: rgba(13,110,253,.05); }
.esp-msg.esp-g-proposition { border-left-color: var(--bs-info); } .esp-msg.esp-g-question { border-left-color: var(--bs-warning); }
.esp-msg.esp-g-decision { border-left-color: var(--bs-success); background: rgba(25,135,84,.06); } .esp-msg.esp-g-action { border-left-color: var(--bs-danger); }
.esp-msg.esp-epingle { box-shadow: inset 0 0 0 1px rgba(255,193,7,.6); }
.esp-corps { flex: 1 1 auto; min-width: 0; }
.esp-tete { font-size: .88rem; display: flex; flex-wrap: wrap; gap: .1rem .4rem; align-items: baseline; }
.esp-qualite { font-size: .72rem; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); border-radius: .3rem; padding: 0 .35rem; }
.esp-heure { font-size: .75rem; color: var(--bs-secondary-color); } .esp-genre { font-size: .68rem; font-weight: 500; }
.esp-citation { display: block; font-size: .8rem; color: var(--bs-secondary-color); text-decoration: none; border-left: 3px solid var(--bs-border-color); padding: .15rem .5rem; margin: .25rem 0; background: var(--bs-tertiary-bg); border-radius: 0 .3rem .3rem 0; }
.esp-texte { overflow-wrap: anywhere; margin-top: .15rem; line-height: 1.45; }
.esp-mention { color: var(--bs-primary); background: rgba(13,110,253,.08); border-radius: .25rem; padding: 0 .15rem; font-weight: 500; }
.esp-action { margin-top: .4rem; font-size: .82rem; padding: .3rem .55rem; border-radius: .4rem; background: rgba(220,53,69,.06); border: 1px dashed rgba(220,53,69,.4); }
.esp-action.fait { background: rgba(25,135,84,.06); border-color: rgba(25,135,84,.4); } .esp-action.retard { border-style: solid; }
.esp-pjs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.esp-pj { font-size: .8rem; padding: .25rem .55rem; border: 1px solid var(--bs-border-color); border-radius: .4rem; text-decoration: none; background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.esp-pj:hover { border-color: var(--bs-primary); } .esp-pj small { color: var(--bs-secondary-color); }
.esp-pied { display: flex; flex-wrap: wrap; gap: .25rem .55rem; align-items: center; margin-top: .3rem; font-size: .78rem; }
.esp-lien { background: none; border: 0; padding: 0; color: var(--bs-secondary-color); font-size: .78rem; } .esp-lien:hover { color: var(--bs-primary); }
.esp-reac { border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); border-radius: 1rem; padding: 0 .45rem; font-size: .8rem; line-height: 1.5; }
.esp-reac.moi { border-color: var(--bs-primary); background: rgba(13,110,253,.1); }
.esp-emojis { min-width: auto; white-space: nowrap; } .esp-modifie { color: var(--bs-secondary-color); font-style: italic; }
.esp-versions { border-left: 3px solid var(--bs-border-color); padding-left: .5rem; } .esp-versions > div + div { margin-top: .35rem; }
.esp-vu { color: var(--bs-secondary-color); margin-top: .4rem; }
.esp-info { background: rgba(13,202,240,.1); border-radius: .4rem; padding: .35rem .6rem; margin-bottom: .5rem; }
.esp-composer { background: var(--bs-body-bg); }
.esp-reponse { display: flex; align-items: center; gap: .4rem; font-size: .8rem; background: var(--bs-tertiary-bg); border-left: 3px solid var(--bs-primary); padding: .25rem .5rem; margin-bottom: .5rem; border-radius: 0 .3rem .3rem 0; }
.esp-genres { display: flex; flex-wrap: wrap; gap: .25rem; } .esp-genres .btn { font-size: .75rem; padding: .1rem .5rem; }
.esp-cote .card-header { font-size: .9rem; }
.esp-cote-t { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); font-weight: 600; margin-bottom: .25rem; }
.esp-suivi { padding: .3rem .4rem; border-radius: .35rem; text-decoration: none; color: var(--bs-body-color); } .esp-suivi:hover { background: var(--bs-tertiary-bg); }
.esp-doc { padding: .3rem 0; border-bottom: 1px solid var(--bs-border-color-translucent); } .esp-doc:last-child { border-bottom: 0; }
.esp-membres .list-group-item { padding: .35rem .5rem; }
.esp-mentions-liste { position: absolute; z-index: 1080; max-height: 14rem; overflow-y: auto; min-width: 14rem; }
.esp-mentions-liste .dropdown-item.active { background: var(--bs-primary); color: #fff; }
.esp-synthese h2 { font-size: 1.1rem; margin-top: 1.2rem; border-bottom: 2px solid var(--bs-primary); padding-bottom: .2rem; }
@media (max-width: 991.98px) { .esp-flux, .esp-fils-liste { max-height: none; } .esp-flux { max-height: 70vh; } }
@media (max-width: 575.98px) { .esp-msg { padding: .45rem; gap: .45rem; } .esp-msg .esp-av { width: 1.9rem; height: 1.9rem; font-size: .7rem; } }
@media print { .no-print, .esp-composer, .esp-pied form, .esp-lien { display: none !important; } .esp-flux, .esp-fils-liste { max-height: none; overflow: visible; } }
.esp-choix { max-height: 15rem; overflow-y: auto; border: 1px solid var(--bs-border-color-translucent); border-radius: .4rem; padding: .35rem; }

/* Version 1.52 : recherche globale dans la barre du haut, étoile des favoris, corbeille « À traiter » */
.nav-search input { width: 190px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.nav-search input::placeholder { color: rgba(255,255,255,.7); }
.nav-search input:focus { width: 260px; background: #fff; color: #212529; }
.topbar .nav-search input { background: var(--bs-body-bg); color: var(--bs-body-color); border-color: var(--bs-border-color); }
.topbar .nav-search input::placeholder { color: var(--bs-secondary-color); }
@media (max-width: 1199.98px) { .navbar .nav-search { margin: .5rem 0; } .navbar .nav-search input, .navbar .nav-search input:focus { width: 100%; } }
.fav-star { font-size: 1rem; line-height: 1; vertical-align: .1em; }
.fav-star:hover i { color: var(--bs-warning) !important; }
.corbeille tr.retard td:first-child { box-shadow: inset 3px 0 0 var(--bs-danger); }
.corbeille .apercu-btn { padding: 0 .35rem; }
.recherche-groupe h2 { font-size: 1rem; }
.recherche-groupe mark { padding: 0 .1em; }
/* 1.52 : la recherche ne doit pas faire déborder la barre de menus des écrans moyens */
@media (min-width: 1200px) and (max-width: 1799.98px) { .navbar .nav-search input { width: 120px; } .navbar .nav-search input:focus { width: 180px; } }
@media (min-width: 1200px) and (max-width: 1399.98px) { .navbar .nav-search input { width: 90px; } }
/* 1.52 : onze rubriques — sur les écrans de moins de 1800 px, les rubriques sans icône et le nom du portail réduit au logo */
@media (min-width: 1200px) and (max-width: 1799.98px) {
  nav.navbar .navbar-nav.me-auto > li > .nav-link > .bi { display: none !important; }
  nav.navbar .navbar-nav.me-auto > li > .nav-link { padding-left: .5rem !important; padding-right: .5rem !important; }
}
@media (min-width: 1200px) and (max-width: 1499.98px) {
  nav.navbar .navbar-brand > span { display: none; }
  nav.navbar .navbar-nav.me-auto > li > .nav-link { padding-left: .38rem !important; padding-right: .38rem !important; font-size: .88rem; }
}

/* Version 1.57 : annonce des événements (fenêtre surgissante à la connexion), image conseillée 1200 × 800 px */
.annonce-dialog { max-width: min(960px, 94vw); }
.annonce-content { position: relative; background: transparent; border: 0; box-shadow: none; }
.annonce-img { display: block; width: 100%; max-height: 82vh; object-fit: contain; border-radius: .5rem; box-shadow: 0 .5rem 2rem rgba(0,0,0,.45); background: #fff; }
.annonce-close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff;
  background: #1f2937; color: #fff; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 .25rem .75rem rgba(0,0,0,.4); }
.annonce-close:hover { background: #b91c1c; }
.annonce-nav { display: flex; justify-content: space-between; align-items: center; color: #fff; margin-top: .5rem; text-shadow: 0 1px 2px #000; }
@media (max-width: 576px) { .annonce-close { top: 6px; right: 6px; } }
