html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* ===================================================================
   app.css — PR 1 : RETHEME "Le Hors-Série"
   Chemin cible : src/Webbaker.Client/wwwroot/css/app.css
   ───────────────────────────────────────────────────────────────────
   Stratégie : conserver votre app.css existant et AJOUTER à la fin
   les sections ci-dessous. Aucune suppression des règles actuelles
   (styles Blazor error-ui, loading-progress, validation…).
   =================================================================== */

/* ═══ 1. Tokens de design Hors-Série ════════════════════════════════ */
:root {
    /* Palette encre / crème / accent */
    --hs-ink:          #18160F;
    --hs-ink-2:        #2B261C;
    --hs-ink-3:        #4A4336;
    --hs-ink-4:        #6B6354;
    --hs-line:         #E5DFD2;
    --hs-line-2:       #D8D0BE;
    --hs-cream:        #F5F0E6;
    --hs-cream-2:      #EDE6D5;
    --hs-paper:        #FBF8F0;
    --hs-accent:       #C9752F;  /* terracotta — CTA et highlights */
    --hs-accent-ink:   #FFFFFF;
    --hs-ok:           #2F7A44;
    --hs-warn:         #C27A1A;
    --hs-err:          #B4452B;

    /* Typographie — Inter partout pour cohérence UI, WindSong réservé au brand mark */
    --hs-font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hs-font-serif:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hs-font-script:  'WindSong', cursive;
    --hs-font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* ═══ 2. Typographie globale ═══════════════════════════════════════ */
html, body {
    font-family: var(--hs-font-sans);
    background: var(--hs-cream);
    color: var(--hs-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Sélection = accent */
::selection { background: var(--hs-accent); color: #fff; }

/* ═══ 3. Brand lock-up (MainLayout) ════════════════════════════════ */
.hs-brand-appbar {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin-left: .5rem;
}
.hs-brand-script {
    font-family: var(--hs-font-script);
    font-size: 1.3rem;
    line-height: 1;
    color: var(--hs-ink);
}
.hs-brand-divider {
    color: var(--hs-accent);
    letter-spacing: .1em;
    font-size: .75rem;
    opacity: .8;
}
.hs-brand-label {
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--hs-ink-4);
    font-weight: 600;
}

.hs-drawer-header {
    background: var(--hs-paper);
    border-bottom: 1px solid var(--hs-line-2);
    padding: 1.25rem 1.25rem 1rem !important;
}
.hs-brand-drawer { display: flex; flex-direction: column; gap: .35rem; }
.hs-brand-script-lg {
    font-family: var(--hs-font-script);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--hs-ink);
}
.hs-brand-tagline {
    font-size: .625rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--hs-ink-4);
    font-weight: 500;
}

/* ═══ 4. AppBar Hors-Série ════════════════════════════════════════ */
.hs-appbar {
    background: var(--hs-paper) !important;
    color: var(--hs-ink) !important;
    border-bottom: 1px solid var(--hs-line) !important;
    backdrop-filter: blur(8px);
}
.hs-appbar .mud-appbar-appbar { background: transparent !important; }
.hs-chip-status .mud-chip {
    font-size: .7rem;
    letter-spacing: .04em;
}

/* ═══ 5. Drawer & navigation ═══════════════════════════════════════ */
.hs-drawer .mud-drawer {
    background: var(--hs-paper) !important;
    border-right: 1px solid var(--hs-line) !important;
}
.hs-nav .mud-nav-link {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--hs-ink-3);
    margin: 1px 8px;
    border-radius: 3px;
    padding: 8px 12px;
    transition: background .12s, color .12s;
    border-left: 2px solid transparent;
}
.hs-nav .mud-nav-link:hover {
    background: var(--hs-cream-2) !important;
    color: var(--hs-ink) !important;
}
.hs-nav .mud-nav-link.active {
    background: var(--hs-cream-2) !important;
    color: var(--hs-ink) !important;
    font-weight: 600;
    border-left: 2px solid var(--hs-accent);
}
.hs-nav .mud-nav-link .mud-icon-root { font-size: 1.05rem; }
.hs-nav .mud-divider {
    margin: .5rem 1rem !important;
    border-color: var(--hs-line) !important;
}

/* ═══ 6. Titres (MudText H1-H6) — sans-serif, poids 500, tracking serré ═══ */
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6 {
    font-family: var(--hs-font-sans) !important;
    font-weight: 500 !important;
    letter-spacing: -.015em;
}

/* ═══ 7. Boutons — coins droits, type sobre ══════════════════════ */
.mud-button-root {
    border-radius: 3px !important;
    text-transform: none !important;
    letter-spacing: .02em !important;
    font-weight: 500 !important;
}
.mud-button-filled.mud-button-filled-primary {
    background-color: var(--hs-ink) !important;
    color: var(--hs-cream) !important;
}
.mud-button-filled.mud-button-filled-primary:hover {
    background-color: var(--hs-ink-2) !important;
}
.mud-button-filled.mud-button-filled-secondary {
    background-color: var(--hs-accent) !important;
    color: var(--hs-accent-ink) !important;
}

/* ═══ 8. Cards, tables, inputs ═══════════════════════════════════ */
.mud-paper, .mud-card {
    border: 1px solid var(--hs-line) !important;
    box-shadow: none !important;
    border-radius: 4px !important;
}
.mud-table-container .mud-table-head .mud-table-cell {
    background: var(--hs-cream) !important;
    color: var(--hs-ink-4) !important;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .625rem;
    font-weight: 600;
    border-bottom: 1px solid var(--hs-line) !important;
}
.mud-input-control .mud-input-outlined .mud-input-outlined-border {
    border-color: var(--hs-line-2) !important;
    border-radius: 3px !important;
}

/* ═══ 9. Scrollbars discrets ═════════════════════════════════════ */
*::-webkit-scrollbar        { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb  { background: var(--hs-line-2); border-radius: 4px; }
*::-webkit-scrollbar-track  { background: transparent; }

/* ═══ 10. Utilitaires ════════════════════════════════════════════ */
.hs-num   { font-variant-numeric: tabular-nums; }
.hs-mono  { font-family: var(--hs-font-mono); }
.hs-serif { font-family: var(--hs-font-serif); }
.hs-dots-sep {
    display: inline-flex; align-items: center; gap: 3px;
    color: var(--hs-accent);
}
.hs-dots-sep::before,
.hs-dots-sep::after,
.hs-dots-sep > span {
    content: ''; width: 3px; height: 3px; border-radius: 50%;
    background: currentColor;
}

/* ===================================================================
   app.css — PR 2 : COMPLÉMENTS SHELL
   Chemin cible : src/Webbaker.Client/wwwroot/css/app.css
   ───────────────────────────────────────────────────────────────────
   À AJOUTER à la suite des ajouts PR1. Ce bloc ajoute le styling du
   breadcrumb, de la recherche globale, de l'horloge, des groupes de
   navigation et du footer drawer.
   =================================================================== */

/* ═══ Breadcrumb (topbar) ═══════════════════════════════════════════ */
.hs-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: .75rem;
    font-size: .8125rem;
}
.hs-breadcrumb-home {
    color: var(--hs-ink-4);
    display: inline-flex;
}
.hs-breadcrumb-home .mud-icon-root { font-size: 1rem; }
.hs-breadcrumb-sep {
    color: var(--hs-line-2);
    font-weight: 300;
}
.hs-breadcrumb-item {
    color: var(--hs-ink-3);
    letter-spacing: .01em;
}
.hs-breadcrumb-item.is-last {
    color: var(--hs-ink);
    font-weight: 600;
}

/* ═══ Recherche globale ═════════════════════════════════════════════ */
.hs-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--hs-cream-2);
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 5px 10px;
    min-width: 300px;
    transition: border-color .15s, background .15s;
}
.hs-search:focus-within {
    border-color: var(--hs-ink-4);
    background: #fff;
}
.hs-search-icon { color: var(--hs-ink-4); }
.hs-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font: 400 .8125rem/1 var(--hs-font-sans);
    color: var(--hs-ink);
}
.hs-search-input::placeholder { color: var(--hs-ink-4); }
.hs-search-kbd {
    font-family: var(--hs-font-mono);
    font-size: .625rem;
    color: var(--hs-ink-4);
    background: #fff;
    border: 1px solid var(--hs-line);
    border-radius: 2px;
    padding: 1px 5px;
    letter-spacing: 0;
}
/* Variante contextuelle — icône filtre + bordure accent */
.hs-search--contextual {
    border-color: var(--hs-accent);
    background: color-mix(in srgb, var(--hs-accent) 6%, var(--hs-cream));
}
.hs-search--contextual .hs-search-icon { color: var(--hs-accent); }

/* ═══ Horloge ═══════════════════════════════════════════════════════ */
.hs-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
    padding: 0 .75rem;
    margin-left: .5rem;
    border-left: 1px solid var(--hs-line);
}
.hs-clock-time {
    font-family: var(--hs-font-mono);
    font-size: .9375rem;
    font-weight: 500;
    color: var(--hs-ink);
    font-variant-numeric: tabular-nums;
}
.hs-clock-date {
    font-size: .625rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hs-ink-4);
    margin-top: 2px;
}

/* ═══ Status pill connexion ════════════════════════════════════════ */
.hs-status-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 2px;
    margin-left: .5rem;
}
.hs-status-pill.is-online {
    background: rgba(47,122,68,.08);
    color: var(--hs-ok);
}
.hs-status-pill.is-offline {
    background: rgba(180,69,43,.08);
    color: var(--hs-err);
}
.hs-status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(255,255,255,.5);
}
.hs-status-pill.is-online .hs-status-dot {
    animation: hs-pulse 2s ease-in-out infinite;
}
@keyframes hs-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .4; }
}

.hs-icon-btn { color: var(--hs-ink-3) !important; }

/* ═══ Drawer — brand header ════════════════════════════════════════ */
.hs-brand-drawer {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    align-items: flex-start;
}
.hs-brand-dots {
    display: flex; gap: 4px;
    margin: .1rem 0 .1rem;
}
.hs-brand-dots span {
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--hs-accent);
}

/* ═══ Drawer — groupes de navigation ═══════════════════════════════ */
.hs-nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: .25rem 0 1rem;
}
.hs-nav-group { margin-bottom: .75rem; }
.hs-nav-group-label {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--hs-ink-4);
    padding: .75rem 1.25rem .35rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.hs-nav-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hs-line);
}
.hs-nav-admin { color: var(--hs-warn) !important; }

/* ═══ Drawer — footer ══════════════════════════════════════════════ */
.hs-drawer-footer {
    border-top: 1px solid var(--hs-line);
    padding: .75rem 1.25rem;
    background: var(--hs-cream-2);
}
.hs-drawer-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .6875rem;
    padding: 2px 0;
}
.hs-drawer-footer-label {
    color: var(--hs-ink-4);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.hs-drawer-footer-value {
    color: var(--hs-ink);
    font-family: var(--hs-font-mono);
    font-variant-numeric: tabular-nums;
}

/* ===================================================================
   app.css — PR 3 : COMPOSANTS RÉUTILISABLES
   À AJOUTER à la suite des ajouts PR1 + PR2.
   =================================================================== */

/* ═══ HsPageHeader ══════════════════════════════════════════════════ */
.hs-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: .5rem 0 1rem;
}
.hs-page-header-main { flex: 1; min-width: 0; }

.hs-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--hs-ink-4);
    margin-bottom: .4rem;
}
.hs-page-eyebrow-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--hs-accent);
}

.hs-page-title {
    font-family: var(--hs-font-serif);
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.01em;
    color: var(--hs-ink);
    margin: 0;
}

.hs-page-subtitle {
    font-size: .9375rem;
    color: var(--hs-ink-3);
    margin-top: .35rem;
    max-width: 60ch;
    text-wrap: pretty;
}

.hs-page-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-shrink: 0;
    padding-top: .5rem;
}

.hs-page-header-rule {
    position: relative;
    height: 1px;
    background: var(--hs-line);
    margin: 0 0 1.75rem;
}
.hs-page-header-rule-accent {
    position: absolute;
    left: 0; top: 0;
    width: 56px; height: 1px;
    background: var(--hs-accent);
}

/* ═══ HsStatCard ════════════════════════════════════════════════════ */
.hs-stat-card {
    background: #fff;
    border: 1px solid var(--hs-line);
    border-radius: 4px;
    padding: 1.1rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-height: 130px;
    position: relative;
    transition: border-color .15s, transform .15s;
}
.hs-stat-card:hover { border-color: var(--hs-line-2); }
.hs-stat-card.is-highlight {
    background: var(--hs-ink);
    color: var(--hs-cream);
    border-color: var(--hs-ink);
}
.hs-stat-card.is-highlight .hs-stat-label,
.hs-stat-card.is-highlight .hs-stat-unit { color: rgba(245,240,230,.6); }
.hs-stat-card.is-highlight .hs-stat-value { color: var(--hs-cream); }

.hs-stat-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hs-ink-4);
}
.hs-stat-icon { color: var(--hs-accent); }

.hs-stat-value-row {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    margin-top: .2rem;
}
.hs-stat-value {
    font-family: var(--hs-font-serif);
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1;
    color: var(--hs-ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}
.hs-stat-unit {
    font-size: .8125rem;
    color: var(--hs-ink-4);
    font-weight: 500;
}

.hs-stat-delta {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    margin-top: .2rem;
}
.hs-stat-delta .mud-icon-root { font-size: .9rem; }
.hs-stat-delta.is-up   { color: var(--hs-ok); }
.hs-stat-delta.is-down { color: var(--hs-err); }
.hs-stat-delta-label {
    color: var(--hs-ink-4);
    font-weight: 400;
    margin-left: .25rem;
}

.hs-stat-footer {
    margin-top: auto;
    padding-top: .5rem;
    border-top: 1px dashed var(--hs-line);
    font-size: .75rem;
    color: var(--hs-ink-4);
}

/* ═══ HsSectionTitle ═══════════════════════════════════════════════ */
.hs-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
}
.hs-section-title-text {
    font-family: var(--hs-font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--hs-ink);
    margin: 0;
    flex-shrink: 0;
}
.hs-section-title-rule {
    flex: 1;
    height: 1px;
    background: var(--hs-line);
}
.hs-section-title-action {
    flex-shrink: 0;
    font-size: .75rem;
    color: var(--hs-ink-4);
}

/* ═══ Gantt Planning Timeline ══════════════════════════════════════ */

/* Conteneur principal */
.hs-gantt-wrap {
    background: var(--hs-paper);
    border: 1px solid var(--hs-line);
    border-radius: 6px;
    overflow: hidden;
    transition: opacity .2s;
}
.hs-gantt-wrap.hs-gantt-loading {
    opacity: .55;
    pointer-events: none;
}

/* Table */
.hs-gantt-table {
    width: 100%;
    overflow-x: auto;
}

/* Constante : largeur de la colonne "POSTE" */
:root { --hs-gantt-label-w: 148px; }

/* ── En-tête heures ── */
.hs-gantt-header-row {
    display: flex;
    align-items: stretch;
    border-bottom: 2px solid var(--hs-line);
    position: sticky;
    top: 0;
    background: var(--hs-paper);
    z-index: 10;
}
.hs-gantt-header-label {
    font-family: var(--hs-font-sans);
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hs-ink-4);
    display: flex;
    align-items: flex-end;
    padding: .5rem .75rem .4rem;
}

.hs-gantt-label-cell {
    width: var(--hs-gantt-label-w);
    min-width: var(--hs-gantt-label-w);
    flex-shrink: 0;
    border-right: 1px solid var(--hs-line);
}

.hs-gantt-timeline-cell {
    flex: 1;
    position: relative;
    min-width: 600px;
}

/* Colonnes heures dans l'en-tête */
.hs-gantt-hours-track {
    display: flex;
    height: 100%;
    align-items: flex-end;
}
.hs-gantt-hour-mark {
    flex: 1;
    font-family: var(--hs-font-mono);
    font-size: .6875rem;
    color: var(--hs-ink-4);
    padding: .5rem 0 .35rem .3rem;
    border-left: 1px solid var(--hs-line-2);
    line-height: 1;
}
.hs-gantt-hour-mark:first-child { border-left: none; }

/* Badge heure courante */
.hs-gantt-now-badge {
    position: absolute;
    top: .25rem;
    background: var(--hs-err);
    color: #fff;
    font-family: var(--hs-font-mono);
    font-size: .6875rem;
    font-weight: 700;
    padding: .15rem .4rem;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 12;
    pointer-events: none;
}
.hs-gantt-now-badge::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--hs-err);
}

/* ── Lignes de données ── */
.hs-gantt-data-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--hs-line);
    min-height: 72px;
}
.hs-gantt-data-row:last-child { border-bottom: none; }
.hs-gantt-data-row:hover .hs-gantt-timeline-cell {
    background: color-mix(in srgb, var(--hs-cream) 60%, transparent);
}

/* Étiquette poste gauche */
.hs-gantt-label-cell {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    background: var(--hs-paper);
}
.hs-gantt-row-accent {
    width: 3px;
    align-self: stretch;
    border-radius: 3px;
    flex-shrink: 0;
}
.hs-gantt-row-label {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.hs-gantt-row-name {
    font-family: var(--hs-font-sans);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--hs-ink);
    line-height: 1.3;
}
.hs-gantt-row-type {
    font-family: var(--hs-font-sans);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hs-ink-4);
}

/* Timeline */
.hs-gantt-timeline-cell {
    position: relative;
    background: var(--hs-cream);
}

/* Lignes verticales des heures */
.hs-gantt-vline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--hs-line);
    pointer-events: none;
}

/* Ligne heure courante */
.hs-gantt-now-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--hs-err);
    opacity: .85;
    z-index: 8;
    pointer-events: none;
}

/* ── Blocs batch ── */
.hs-gantt-batch {
    position: absolute;
    top: 7px;
    bottom: 7px;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: filter .12s, transform .12s;
    min-width: 40px;
    border: 1px solid transparent;
}
.hs-gantt-batch:hover {
    filter: brightness(.94);
    transform: scaleY(1.02);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Couleurs par catégorie de recette */
.hs-gantt-batch--pain        { background: #F2D98E; border-color: #D9BF6E; }
.hs-gantt-batch--viennoiserie{ background: #B8D9C0; border-color: #8FBC9A; }
.hs-gantt-batch--patisserie  { background: #C8D9E8; border-color: #99BAD0; }
.hs-gantt-batch--traiteur    { background: #E8D2C4; border-color: #C9A88E; }
.hs-gantt-batch--autre       { background: #E2DDD4; border-color: #C8C2B4; }

.hs-gantt-batch-inner {
    padding: .25rem .45rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.hs-gantt-batch-name {
    font-family: var(--hs-font-sans);
    font-size: .75rem;
    font-weight: 600;
    color: var(--hs-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.hs-gantt-batch-meta {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-family: var(--hs-font-mono);
    font-size: .6rem;
    color: var(--hs-ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.hs-gantt-batch-time { color: var(--hs-ink-4); }
.hs-gantt-batch-person { color: var(--hs-ink-3); }

/* ── État vide ── */
.hs-gantt-empty-state {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--hs-line);
}

/* ── Pied de Gantt : équipe ── */
.hs-gantt-footer {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1rem;
    border-top: 1px solid var(--hs-line);
    background: var(--hs-paper);
}
.hs-gantt-footer-label {
    font-family: var(--hs-font-sans);
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hs-ink-4);
    white-space: nowrap;
}
.hs-gantt-footer-dots {
    font-size: .9rem;
    color: var(--hs-ink-4);
    letter-spacing: .05em;
}
.hs-gantt-avatars {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}
.hs-gantt-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hs-font-sans);
    font-size: .6875rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    letter-spacing: .02em;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   Tableur de production (« conducteur de fournil ») — BGB-1
   Grille produits × créneaux horaires, codes d'étape balisés.
   ═══════════════════════════════════════════════════════════════════════ */
.hs-tableur-wrap {
    overflow-x: auto;
    border: 1px solid var(--hs-line);
    border-radius: 4px;
    background: var(--hs-paper);
    margin-top: 1rem;
}
.hs-tableur-print-title {
    display: none; /* visible uniquement à l'impression */
    font-family: var(--hs-font-sans);
    font-weight: 600;
    padding: .5rem .75rem;
}
.hs-tableur {
    border-collapse: collapse;
    width: 100%;
    font-family: var(--hs-font-sans);
    font-size: .8125rem;
}
.hs-tableur th,
.hs-tableur td {
    border: 1px solid var(--hs-line);
}
.hs-tableur thead th {
    background: var(--hs-cream-2);
    color: var(--hs-ink-3);
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    padding: 6px 4px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
.hs-tableur-rowhead {
    text-align: left;
    min-width: 220px;
    max-width: 260px;
    padding: 8px 10px;
    background: var(--hs-paper);
    position: sticky;
    left: 0;
    z-index: 2;
    vertical-align: top;
}
.hs-tableur thead .hs-tableur-rowhead { z-index: 3; }
.hs-tableur-product {
    font-weight: 600;
    color: var(--hs-ink);
}
.hs-tableur-rowmeta {
    font-size: .6875rem;
    color: var(--hs-ink-4);
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 2px;
}
.hs-tableur-row { cursor: pointer; }
.hs-tableur-row:hover .hs-tableur-rowhead { background: var(--hs-cream-2); }
.hs-tableur-cell {
    padding: 0;
    height: 34px;
    min-width: 44px;
    text-align: center;
}
.hs-tableur-code {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 700;
    font-size: .75rem;
    color: var(--hs-ink);
}

/* Palette des étapes — teintes pastel harmonisées avec les couleurs de catégorie du Gantt */
.hs-tableur-cell--preparation    .hs-tableur-code,
.hs-tableur-swatch.hs-tableur-cell--preparation    { background: #E8E2D4; }
.hs-tableur-cell--pesee          .hs-tableur-code,
.hs-tableur-swatch.hs-tableur-cell--pesee          { background: #EDE6D5; }
.hs-tableur-cell--petrissage     .hs-tableur-code,
.hs-tableur-swatch.hs-tableur-cell--petrissage     { background: #F2D98E; }
.hs-tableur-cell--repos          .hs-tableur-code,
.hs-tableur-swatch.hs-tableur-cell--repos          { background: #DCD3E8; }
.hs-tableur-cell--faconnage      .hs-tableur-code,
.hs-tableur-swatch.hs-tableur-cell--faconnage      { background: #C8D9E8; }
.hs-tableur-cell--pousse         .hs-tableur-code,
.hs-tableur-swatch.hs-tableur-cell--pousse         { background: #B8D9C0; }
.hs-tableur-cell--cuisson        .hs-tableur-code,
.hs-tableur-swatch.hs-tableur-cell--cuisson        { background: #E8B98E; }
.hs-tableur-cell--refroidissement .hs-tableur-code,
.hs-tableur-swatch.hs-tableur-cell--refroidissement { background: #CFE0E2; }
.hs-tableur-cell--finition       .hs-tableur-code,
.hs-tableur-swatch.hs-tableur-cell--finition       { background: #E8D2C4; }
.hs-tableur-cell--autre          .hs-tableur-code,
.hs-tableur-swatch.hs-tableur-cell--autre          { background: #E2DDD4; }

/* Légende */
.hs-tableur-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
    margin-top: .85rem;
}
.hs-tableur-legend-title {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hs-ink-4);
}
.hs-tableur-legend-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--hs-ink-3);
}
.hs-tableur-swatch {
    width: 26px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid var(--hs-line-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .625rem;
    font-weight: 700;
    color: var(--hs-ink);
}

/* Impression : le boulanger imprime le conducteur pour le fournil */
@media print {
    .hs-appbar, .hs-drawer, .mud-appbar, .mud-drawer { display: none !important; }
    .hs-tableur-print-title { display: block; }
    .hs-tableur-wrap { overflow: visible; border: none; }
    .hs-tableur-code,
    .hs-tableur-swatch {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
