/* Gestion RAT : interface épurée. Couleur d'accent paramétrable (--rat-accent). */
:root {
  --rat-accent: #0223CF;
  --rat-bg: #f5f6f8;
  --rat-surface: #fff;
  --rat-border: #e4e7ec;
  --rat-muted: #5b6270;
  --rat-text: #1f2937;
  --rat-sidebar-w: 236px;
  --rat-radius: 10px;
  --bs-primary: var(--rat-accent);
  --bs-link-color: var(--rat-accent);
  --bs-body-font-size: .925rem;
}
body { background: var(--rat-bg); color: var(--rat-text); font-size: .925rem; }
.btn-primary { --bs-btn-bg: var(--rat-accent); --bs-btn-border-color: var(--rat-accent); --bs-btn-hover-bg: color-mix(in srgb, var(--rat-accent) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--rat-accent) 85%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--rat-accent) 75%, #000); --bs-btn-disabled-bg: var(--rat-accent); --bs-btn-disabled-border-color: var(--rat-accent); }
.btn-outline-primary { --bs-btn-color: var(--rat-accent); --bs-btn-border-color: var(--rat-accent); --bs-btn-hover-bg: var(--rat-accent); --bs-btn-hover-border-color: var(--rat-accent); --bs-btn-active-bg: var(--rat-accent); }
.form-check-input:checked { background-color: var(--rat-accent); border-color: var(--rat-accent); }
.nav-underline .nav-link.active { color: var(--rat-accent); }
a { color: var(--rat-accent); text-decoration: none; }
.min-w-0 { min-width: 0; }

/* Mise en page : la page entière ne défile pas, seule la zone de contenu défile (évite les sauts d'affichage). */
.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar { width: var(--rat-sidebar-w); flex: 0 0 var(--rat-sidebar-w); background: #111827; color: #cbd5e1; display: flex; flex-direction: column; transition: width .15s; z-index: 1040; }
.sidebar .brand { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; }
.sidebar .brand img { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--rat-accent); display: inline-grid; place-items: center; flex: 0 0 32px; }
.sidebar .menu { flex: 1; overflow-y: auto; padding: .25rem .5rem 1rem; scrollbar-width: thin; }
.menu-group { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #8b95a7; padding: .9rem .6rem .3rem; }
.menu-group .bi { transition: transform .15s; font-size: .7rem; }
.menu-group.collapsed .bi { transform: rotate(-90deg); }
.menu-link { display: flex; align-items: center; gap: .65rem; padding: .42rem .6rem; border-radius: 7px; color: #cbd5e1; white-space: nowrap; overflow: hidden; }
.menu-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-link.active { background: var(--rat-accent); color: #fff; }
.menu-link .bi { font-size: 1.05rem; flex: 0 0 auto; }
.sidebar-toggle { all: unset; cursor: pointer; padding: .7rem 1rem; color: #8b95a7; }
.sidebar-toggle:hover { color: #fff; }
body.sidebar-mini .sidebar { width: 64px; flex-basis: 64px; }
body.sidebar-mini .sidebar .brand-name, body.sidebar-mini .menu-link span, body.sidebar-mini .menu-group span { display: none; }
body.sidebar-mini .menu-group { justify-content: center; padding: .5rem 0 .2rem; }
body.sidebar-mini .menu-link { justify-content: center; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: .75rem; padding: .55rem 1.25rem; background: var(--rat-surface); border-bottom: 1px solid var(--rat-border); min-height: 56px; }
.page-title { font-size: 1.15rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.btn-icon { --bs-btn-padding-x: .45rem; --bs-btn-padding-y: .25rem; color: var(--rat-muted); border: 0; }
.btn-icon:hover { color: var(--rat-text); background: #f1f3f6; }
.btn-icon:disabled { opacity: .35; }
.btn-user { display: flex; align-items: center; gap: .5rem; border: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--rat-accent); color: #fff; font-size: .75rem; font-weight: 600; display: inline-grid; place-items: center; }
.content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 1.1rem 1.25rem 3rem; overscroll-behavior: contain; }
@media (max-width: 991.98px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .2s; }
  body.sidebar-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  body.sidebar-mini .sidebar { width: var(--rat-sidebar-w); }
  .content { padding: .9rem .8rem 3rem; }
}

/* Surfaces */
.panel { background: var(--rat-surface); border: 1px solid var(--rat-border); border-radius: var(--rat-radius); padding: 1rem; }
.panel-title { font-size: .95rem; font-weight: 600; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.badge-soft { background: color-mix(in srgb, var(--bc, #6c757d) 14%, transparent); color: color-mix(in srgb, var(--bc, #6c757d) 80%, #000); font-weight: 500; border: 1px solid color-mix(in srgb, var(--bc, #6c757d) 25%, transparent); }
.color-dot { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); vertical-align: -2px; }
.text-muted { color: var(--rat-muted) !important; }

/* Barre d'outils de liste */
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.list-search { position: relative; flex: 0 1 260px; min-width: 160px; }
.list-search .bi { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--rat-muted); font-size: .85rem; }
.list-search input { padding-left: 1.9rem; background: var(--rat-surface); }
.pills { display: inline-flex; background: #eceef2; border-radius: 999px; padding: 2px; }
.pill { padding: .2rem .7rem; border-radius: 999px; color: var(--rat-muted); font-size: .82rem; }
.pill.active { background: var(--rat-surface); color: var(--rat-text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--rat-accent) 10%, #fff); color: var(--rat-accent); font-size: .8rem; }
.chip-warning { background: #fff4d6; color: #8a5a00; }
.list-options { width: 300px; }
.view-switch .btn.active { background: #dfe3ea; }

/* Barre d'actions groupées : n'apparaît qu'avec une sélection */
.batch-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; background: #1f2937; color: #fff; padding: .4rem .6rem; border-radius: var(--rat-radius); margin-bottom: .8rem; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.batch-bar[hidden] { display: none; }
.batch-bar .btn-light { --bs-btn-bg: #374151; --bs-btn-border-color: #374151; --bs-btn-color: #fff; --bs-btn-hover-bg: #4b5563; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #4b5563; --bs-btn-active-color: #fff; }
.batch-bar .btn-link { color: #cbd5e1; }
.batch-bar .btn-icon { color: #cbd5e1; }
.batch-count { font-weight: 600; padding: 0 .3rem; }

/* Groupes repliables */
.list-group-section + .list-group-section { margin-top: .9rem; }
.group-header { all: unset; cursor: pointer; display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; padding: .3rem .1rem; margin-bottom: .35rem; }
.group-header .count { font-weight: 500; color: var(--rat-muted); background: #e8ebf0; border-radius: 999px; padding: 0 .5rem; font-size: .75rem; }
.group-header .chev { transition: transform .15s; font-size: .8rem; }
.list-group-section.collapsed .chev { transform: rotate(-90deg); }
.list-group-section.collapsed .group-body { display: none; }

/* Tableau */
.list-table { background: var(--rat-surface); border: 1px solid var(--rat-border); border-radius: var(--rat-radius); overflow: hidden; --bs-table-hover-bg: #f6f8fb; }
.table-responsive { border-radius: var(--rat-radius); }
.list-table thead th { background: #fafbfc; font-size: .78rem; font-weight: 600; color: var(--rat-muted); text-transform: none; border-bottom-color: var(--rat-border); white-space: nowrap; }
.sort-link { color: inherit; }
.sort-link.active { color: var(--rat-text); }
.list-table td { border-color: #f0f2f5; }
.col-photo { width: 52px; padding-right: 0 !important; }
.col-photo img, .col-photo .ph { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; display: block; }
.ph { display: grid !important; place-items: center; background: #e8ebf0; color: #5b6270; font-weight: 600; font-size: .8rem; }
.row-title { font-weight: 500; }
.row-sub { font-size: .8rem; color: var(--rat-muted); }
.sel-item { cursor: default; user-select: none; }
.sel-item.selected, .list-table tr.sel-item.selected > td { background: color-mix(in srgb, var(--rat-accent) 10%, #fff) !important; }
.is-muted { opacity: .6; }

/* Cartes */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.card-grid.compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .55rem; }
.card-item { background: var(--rat-surface); border: 1px solid var(--rat-border); border-radius: var(--rat-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .12s, border-color .12s; outline: none; }
.card-item:hover { box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.card-item.selected { border-color: var(--rat-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rat-accent) 35%, transparent); }
.card-photo { aspect-ratio: 4 / 3; background: #eef0f4; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-photo .ph { width: 100%; height: 100%; font-size: 1.6rem; }
.compact .card-item { flex-direction: row; align-items: center; }
.compact .card-photo { aspect-ratio: 1; width: 58px; flex: 0 0 58px; margin: .45rem 0 .45rem .45rem; border-radius: 8px; }
.compact .card-photo .ph { font-size: .9rem; }
.card-body-x { padding: .65rem .8rem; min-width: 0; flex: 1; }
.compact .card-body-x { padding: .45rem .6rem; }
.card-title-x { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact .card-title-x { font-size: .88rem; }
.card-sub { font-size: .8rem; color: var(--rat-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin-top: .45rem; font-size: .8rem; }
.compact .card-meta { margin-top: .2rem; font-size: .75rem; }
.meta-l { color: var(--rat-muted); }
.card-big { font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; line-height: 1.15; }
.empty-state { text-align: center; padding: 3rem 1rem; }

/* Fiche détail */
.back-link { display: inline-flex; gap: .3rem; align-items: center; color: var(--rat-muted); font-size: .85rem; margin-bottom: .6rem; }
.detail-head { display: flex; gap: 1rem; align-items: flex-start; background: var(--rat-surface); border: 1px solid var(--rat-border); border-radius: var(--rat-radius); padding: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.detail-photo img, .detail-photo .ph { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; display: block; font-size: 1.5rem; }
.detail-title { font-size: 1.35rem; font-weight: 600; margin: 0; }
.detail-sub { color: var(--rat-muted); }
.detail-actions { display: flex; gap: .4rem; align-items: flex-start; margin-left: auto; }
.detail-tabs { margin-bottom: .9rem; border-bottom: 1px solid var(--rat-border); gap: 1.2rem; }
.detail-tabs .nav-link { padding: .5rem 0; color: var(--rat-muted); }
.tab-count { font-size: .72rem; background: #e8ebf0; border-radius: 999px; padding: 0 .45rem; color: var(--rat-muted); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem 1.25rem; background: var(--rat-surface); border: 1px solid var(--rat-border); border-radius: var(--rat-radius); padding: 1rem; margin: 0; }
.info-grid .wide { grid-column: 1 / -1; }
.info-grid dt { font-size: .75rem; color: var(--rat-muted); font-weight: 500; }
.info-grid dd { margin: 0; overflow-wrap: anywhere; }
.form-more > summary { list-style: none; cursor: pointer; color: var(--rat-muted); font-size: .85rem; display: inline-flex; gap: .3rem; align-items: center; }
.form-more > summary::-webkit-details-marker { display: none; }
.form-more > summary .bi { transition: transform .15s; }
.form-more[open] > summary .bi { transform: rotate(90deg); }
.photo-prev { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid var(--rat-border); padding: 0 0 .9rem .9rem; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rat-accent); }

/* Modales */
.modal-content { border: 0; border-radius: 14px; }
.modal-header { border-bottom-color: var(--rat-border); }
.modal-footer { border-top-color: var(--rat-border); }
.modal-split { display: grid; grid-template-columns: 250px 1fr; min-height: 420px; }
.modal-split .side { background: #f7f8fa; border-right: 1px solid var(--rat-border); padding: 1rem; }
.modal-split .body { padding: 1rem 1.25rem; }
@media (max-width: 767.98px) { .modal-split { grid-template-columns: 1fr; } .modal-split .side { border-right: 0; border-bottom: 1px solid var(--rat-border); } }
.section-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rat-muted); font-weight: 600; margin: 1rem 0 .4rem; }
.section-label:first-child { margin-top: 0; }
.big-input { font-size: 1.1rem; font-weight: 600; }

/* Zone de dépôt : seul le fond de la zone des cartes s'illumine */
.dropzone { position: relative; min-height: 120px; border-radius: var(--rat-radius); }
.dropzone.drag-over { background: color-mix(in srgb, var(--rat-accent) 7%, transparent); outline: 2px dashed color-mix(in srgb, var(--rat-accent) 50%, transparent); outline-offset: 4px; }
.dropzone.drag-over * { pointer-events: none; }
.dropzone-hint { color: var(--rat-muted); font-size: .85rem; text-align: center; padding: 1.5rem; }

.kpi { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.kpi-sub { font-size: .8rem; color: var(--rat-muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }
.kpi-box { background: #f7f8fa; border-radius: 8px; padding: .5rem .7rem; }
.kpi-box .v { font-size: 1.35rem; font-weight: 700; }
.kpi-box .l { font-size: .75rem; color: var(--rat-muted); }

/* Projets : compteurs exclusifs */
.prod-counters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; border-radius: 8px; overflow: hidden; font-size: .72rem; text-align: center; }
.prod-counters > div { background: #f2f4f7; padding: .3rem .1rem; }
.prod-counters .v { font-weight: 700; font-size: .95rem; display: block; }
.prod-counters .but { background: #e7ecff; }
.tree { list-style: none; padding-left: 1rem; margin: 0; }
.tree > li { position: relative; }
.queue-item { background: var(--rat-surface); border: 1px solid var(--rat-border); border-radius: 8px; padding: .5rem .7rem; margin-bottom: .4rem; display: flex; gap: .5rem; align-items: flex-start; }
.queue-item .handle { cursor: grab; color: #b0b7c3; }
.job-card { background: var(--rat-surface); border: 1px solid var(--rat-border); border-radius: 8px; padding: .5rem .7rem; margin-bottom: .45rem; }
.job-card.drop-target.drag-over { border-color: var(--rat-accent); background: color-mix(in srgb, var(--rat-accent) 6%, #fff); }
.thumb-sm { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #eef0f4; }
.color-swatch { width: 34px; height: 34px; border-radius: 8px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; }
.stock-bar { height: 6px; border-radius: 3px; background: #eceef2; overflow: hidden; }
.stock-bar > span { display: block; height: 100%; background: var(--bc, #22c55e); }
.ts-dropdown, .ts-control { font-size: .9rem; }
.ts-wrapper.form-select { padding: 0; }
.ts-wrapper.single .ts-control { padding-right: 2rem; }
.toast { border: 0; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0f172a, color-mix(in srgb, var(--rat-accent) 55%, #0f172a)); background-size: cover; background-position: center; }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
@media print { .sidebar, .topbar, .list-toolbar, .batch-bar, .detail-actions { display: none !important; } .app { height: auto; overflow: visible; display: block; } .content { overflow: visible; } }
.tile { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border: 1px solid var(--rat-border); border-radius: 8px; color: var(--rat-text); background: #fff; }
.tile:hover { border-color: var(--rat-accent); color: var(--rat-accent); }
.tile .bi { font-size: 1.1rem; color: var(--rat-accent); }
.list-group-item.active { background: var(--rat-accent); border-color: var(--rat-accent); }
.color-popup { margin-top: .5rem; padding: .75rem; border: 1px solid var(--rat-border); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.color-dot.lg { width: 1.6rem; height: 1.6rem; flex: none; }
.min-w-0 { min-width: 0; }
.subnav .nav-link { padding: .3rem .8rem; font-size: .875rem; }
.kpi-box.is-accent { border-color: var(--rat-accent); box-shadow: inset 0 0 0 1px var(--rat-accent); }
.kpi-box.is-accent .v { color: var(--rat-accent); }
.plaque-card, .job-card { background: var(--bs-body-bg, #fff); border: 1px solid rgba(0,0,0,.09); border-radius: 8px; padding: .5rem .7rem; }
.plaque-card { cursor: grab; }
.plaque-card.selected { border-color: var(--rat-accent); box-shadow: inset 0 0 0 1px var(--rat-accent); }
.plaque-card .grip { cursor: grab; }
body.dragging-plaque .job-card.drop-target { border-style: dashed; border-color: color-mix(in srgb, var(--rat-accent) 50%, transparent); }
.job-card.drag-over { background: color-mix(in srgb, var(--rat-accent) 8%, transparent); border-color: var(--rat-accent); }

/* ---------- Tableau de bord ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; align-items: start; grid-auto-flow: row dense; }
.hub-widget { grid-column: span 12; background: var(--rat-surface); border: 1px solid var(--rat-border); border-radius: var(--rat-radius); padding: .9rem 1rem 1rem; min-width: 0; }
@media (min-width: 768px) { .hub-s { grid-column: span 6; } .hub-m { grid-column: span 6; } }
@media (min-width: 1200px) { .hub-s { grid-column: span 4; } .hub-m { grid-column: span 6; } .hub-l { grid-column: span 12; } }
.hub-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.hub-head h2 { font-size: .95rem; font-weight: 600; margin: 0; display: flex; gap: .4rem; align-items: center; }
.hub-head h2 a { color: inherit; text-decoration: none; }
.hub-head h2 a:hover { text-decoration: underline; }
.hub-grip, .hub-tools, .hub-edit-only { display: none !important; }
body.hub-editing .hub-grip { display: inline-flex !important; cursor: grab; color: var(--bs-secondary-color); }
body.hub-editing .hub-tools { display: inline-flex !important; }
body.hub-editing .hub-edit-only { display: inline-block !important; }
body.hub-editing .hub-widget { outline: 1px dashed var(--bs-border-color); }
.hub-widget[data-t="s"] [data-taille="s"], .hub-widget[data-t="m"] [data-taille="m"], .hub-widget[data-t="l"] [data-taille="l"] { font-weight: 700; text-decoration: underline; }
.hub-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.hub-l .hub-kpis, .hub-m .hub-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub-kpis .kpi-box { text-decoration: none; color: inherit; }
.hub-list { list-style: none; padding: 0; margin: 0; }
.hub-list li { display: flex; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--bs-border-color-translucent); font-size: .9rem; min-width: 0; }
.hub-list li:last-child { border-bottom: 0; }
.hub-list a { color: inherit; text-decoration: none; }
.hub-list a:hover { text-decoration: underline; }
.hp-field{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
/* Pages d'erreur (404, accès refusé…) */
.error-page { min-height: 100vh; background: var(--bs-tertiary-bg); display: grid; place-items: center; }
.error-card { max-width: 520px; padding: 2.5rem 1.5rem; }
.error-page .error-card { background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(15, 23, 42, .08); }
.error-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; color: var(--rat-accent); background: color-mix(in srgb, var(--rat-accent) 10%, #fff); }
/* Fil d'Ariane au-dessus du titre de page */
.page-head { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; font-size: .75rem; line-height: 1.2; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; }
.crumbs li { overflow: hidden; text-overflow: ellipsis; }
.crumbs li + li::before { content: "›"; margin-right: .3rem; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--rat-accent); text-decoration: underline; }
@media (max-width: 575.98px) {
  .crumbs li:not(:last-child) { display: none; }
  .crumbs li:last-child::before { content: "‹"; }
  .detail-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .detail-tabs .nav-link { white-space: nowrap; }
}
/* Contraste : le jaune Bootstrap est illisible en texte sur fond clair */
.text-warning { color: #9a5800 !important; }
.text-secondary { color: var(--rat-muted) !important; }
.btn-outline-secondary { --bs-btn-color: var(--rat-muted); --bs-btn-border-color: #b9bfc8; }
code { color: #a3195b; }
