/*
 * Citya Construction Desk — design d'après Citya Legal Desk / Citya People (charte Citya).
 * Palette citya.com : space-cadet #1a1d56, blue-crayola #1c5eeb,
 * baby-blue-eyes #a7c0f7, gestion #009767, syndic #f18700,
 * vente #e40521, location #af1280. Typographie : Urbanist.
 */
:root {
    --cy-navy: #1a1d56;
    --cy-blue: #1c5eeb;
    --cy-blue-dark: #1548c2;
    --cy-blue-soft: #a7c0f7;
    --cy-blue-tint: #eef3fe;
    --cy-green: #009767;
    --cy-orange: #f18700;
    --cy-red: #e40521;
    --cy-magenta: #af1280;
    --cy-steel: #6693c6;
    --cy-bg: #f4f6fb;
    --cy-surface: #ffffff;
    --cy-text: #2b2e4a;
    --cy-text-muted: #64678a;
    --cy-border: #e4e9f5;
    --cy-shadow-sm: 0 1px 3px rgba(26, 29, 86, 0.07), 0 1px 2px rgba(26, 29, 86, 0.05);
    --cy-shadow-md: 0 6px 18px rgba(26, 29, 86, 0.09);
    --cy-shadow-lg: 0 16px 40px rgba(26, 29, 86, 0.14);
    --cy-radius: 1rem;
    --cy-radius-sm: 0.65rem;
    --cy-radius-pill: 9999px;

    --bs-primary: var(--cy-blue);
    --bs-body-color: var(--cy-text);
    --bs-border-radius: var(--cy-radius-sm);
    --bs-border-radius-lg: var(--cy-radius);
    --bs-link-color-rgb: 28, 94, 235;
    --bs-link-hover-color-rgb: 21, 72, 194;
}

body {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cy-bg);
    min-height: 100vh;
    color: var(--cy-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Pied de page collé en bas même sur les pages courtes */
    display: flex;
    flex-direction: column;
}
body > footer { margin-top: auto !important; }

h1, h2, h3 { color: var(--cy-navy); font-weight: 800; letter-spacing: -0.02em; }
h4, h5, h6 { color: var(--cy-navy); font-weight: 700; }
a { color: var(--cy-blue); }

/* ---------- Sidebar gauche : repliée (icônes), dépliée au survol ---------- */
:root {
    --sb-collapsed: 76px;
    --sb-expanded: 268px;
}
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px;
    background: linear-gradient(135deg, var(--cy-navy) 0%, var(--cy-blue) 100%);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
/* 3rem + le py-4 (1.5rem) des conteneurs = 4.5rem avant le titre,
   pour que les titres passent sous la cloche de notifications. */
body.with-sidebar { padding-left: var(--sb-expanded); padding-top: 3rem; transition: padding-left 0.22s ease; }
body.with-sidebar.sb-hidden { padding-left: 4.75rem; } /* couloir pour le bouton d'ouverture */

.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sb-expanded);
    background: var(--cy-surface);
    border-right: 1px solid var(--cy-border);
    display: flex; flex-direction: column;
    z-index: 1040;
    overflow: hidden;
    transition: transform 0.22s ease;
    white-space: nowrap;
}
body.sb-hidden .sidebar { transform: translateX(-100%); }

.sb-label { overflow: hidden; text-overflow: ellipsis; }

/* Bouton masquer (en haut de la barre) + bouton réafficher flottant */
.sb-toggle {
    margin-left: auto;
    width: 32px; height: 32px; flex-shrink: 0;
    border: 1px solid var(--cy-border);
    border-radius: 10px;
    background: var(--cy-surface);
    color: var(--cy-text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sb-toggle:hover { background: var(--cy-blue-tint); color: var(--cy-blue); }

.sb-open-btn {
    position: fixed; top: 1rem; left: 1.25rem;
    z-index: 1050;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--cy-surface);
    border: 1px solid var(--cy-border);
    box-shadow: var(--cy-shadow-md);
    color: var(--cy-navy);
    font-size: 1rem;
    display: none; align-items: center; justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sb-open-btn:hover { background: var(--cy-blue-tint); color: var(--cy-blue); }
body.sb-hidden .sb-open-btn { display: inline-flex; }

.sb-brand {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 1rem 1.15rem;
    text-decoration: none;
    border-bottom: 1px solid var(--cy-border);
    flex-shrink: 0;
}
.sb-brand-text { font-weight: 800; font-size: 1.05rem; color: var(--cy-navy); }

.sb-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0.75rem 0.65rem; overscroll-behavior: contain; scrollbar-width: thin; }
.sb-bottom { border-top: 1px solid var(--cy-border); padding: 0.6rem 0.65rem; flex-shrink: 0; }

.sb-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.55rem 0.6rem;
    margin-bottom: 0.15rem;
    border-radius: var(--cy-radius-sm);
    color: var(--cy-navy);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sb-item:hover { background-color: var(--cy-blue-tint); color: var(--cy-blue); }
.sb-item.active { background-color: var(--cy-blue-tint); color: var(--cy-blue-dark); }

.sb-icon {
    width: 34px; height: 34px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
    position: relative;
}
.sb-dot {
    position: absolute; top: -2px; right: -2px;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--cy-red); color: #fff;
    border-radius: 8px; font-size: 0.62rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
/* Barre toujours dépliée : le compteur s'affiche en badge à droite du libellé */
.sb-icon .sb-dot { display: none; }

.sb-cta {
    background-color: var(--cy-blue); color: #fff !important;
    box-shadow: 0 4px 14px rgba(28, 94, 235, 0.35);
    margin-bottom: 0.85rem;
}
.sb-cta:hover { background-color: var(--cy-blue-dark); }

.sb-section {
    margin: 0.9rem 0.6rem 0.25rem;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--cy-text-muted);
    min-height: 1em;
    border-top: 1px solid var(--cy-border);
    padding-top: 0.6rem;
}
.sb-notif {
    display: block;
    padding: 0.45rem 0.6rem 0.45rem 2.7rem;
    font-size: 0.82rem; font-weight: 500;
    color: var(--cy-navy);
    text-decoration: none;
    border-radius: var(--cy-radius-sm);
    white-space: normal;
}
.sb-notif small { color: var(--cy-text-muted); }
.sb-notif:hover { background-color: var(--cy-blue-tint); }
.sb-notif.lu { color: var(--cy-text-muted); }

/* ---------- Cloche de notifications (coin supérieur droit) ---------- */
.topbar-notif {
    position: fixed;
    top: 1rem; right: 1.25rem;
    z-index: 1050;
}
.notif-bell {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--cy-surface);
    border: 1px solid var(--cy-border);
    box-shadow: var(--cy-shadow-md);
    color: var(--cy-navy);
    font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.notif-bell:hover { background: var(--cy-blue-tint); color: var(--cy-blue); transform: translateY(-1px); }
.notif-count {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--cy-red); color: #fff;
    border-radius: 9px; font-size: 0.68rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.notif-menu { min-width: 330px; max-height: 420px; overflow-y: auto; }
.notif-menu .dropdown-item { white-space: normal; }

.sb-user { cursor: default; }
.sb-user .sb-label { line-height: 1.25; }
.sb-user:hover { background: transparent; color: var(--cy-navy); }
.sb-logout:hover { background-color: rgba(228, 5, 33, 0.08); color: var(--cy-red); }

.dropdown-menu {
    border: 1px solid var(--cy-border);
    border-radius: var(--cy-radius-sm);
    box-shadow: var(--cy-shadow-md);
    padding: 0.5rem;
}
.dropdown-item { border-radius: 0.5rem; font-weight: 500; padding: 0.5rem 0.9rem; }
.dropdown-item:hover { background-color: var(--cy-blue-tint); color: var(--cy-blue); }

/* ---------- Cartes ---------- */
.card {
    border: 1px solid var(--cy-border);
    border-radius: var(--cy-radius);
    box-shadow: var(--cy-shadow-sm);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--cy-shadow-md); transition: 0.2s; }
.card-header { background: transparent; border-bottom: 1px solid var(--cy-border); font-weight: 700; color: var(--cy-navy); }

/* KPI du tableau de bord */
.kpi-card { display: block; text-decoration: none; color: inherit; }
.kpi-card .kpi-value { font-size: 1.9rem; font-weight: 800; color: var(--cy-navy); line-height: 1.15; }
.kpi-card .kpi-label { color: var(--cy-text-muted); font-weight: 600; font-size: 0.85rem; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--cy-shadow-md); transition: 0.2s; }
.kpi-split {
    border-top: 1px solid var(--cy-border);
    padding-top: 0.5rem;
    font-size: 0.8rem;
}
.kpi-split > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.kpi-split-label { color: var(--cy-text-muted); font-weight: 600; }
.kpi-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}

/* ---------- Boutons pilule Citya ---------- */
.btn {
    border-radius: var(--cy-radius-pill);
    font-weight: 700;
    padding: 0.5rem 1.3rem;
    transition: 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 0.28rem 0.9rem; }
.btn-primary { background-color: var(--cy-blue); border-color: var(--cy-blue); box-shadow: 0 4px 14px rgba(28, 94, 235, 0.3); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--cy-blue-dark); border-color: var(--cy-blue-dark); }
.btn-outline-primary { color: var(--cy-blue); border-color: var(--cy-blue); }
.btn-outline-primary:hover { background-color: var(--cy-blue); color: #fff; }
.btn-outline-secondary { color: var(--cy-navy); border-color: var(--cy-border); }
.btn-outline-secondary:hover { background-color: var(--cy-bg); border-color: var(--cy-navy); color: var(--cy-navy); }
.btn-success { background-color: var(--cy-green); border-color: var(--cy-green); }
.btn-outline-danger { color: var(--cy-red); border-color: rgba(228, 5, 33, 0.4); }
.btn-outline-danger:hover { background-color: var(--cy-red); border-color: var(--cy-red); }

/* ---------- Couleurs sémantiques ---------- */
.text-primary { color: var(--cy-blue) !important; }
.text-success { color: var(--cy-green) !important; }
.text-warning { color: var(--cy-orange) !important; }
.text-danger { color: var(--cy-red) !important; }
.text-secondary { color: var(--cy-text-muted) !important; }
.bg-primary { background-color: var(--cy-blue) !important; }
.bg-success { background-color: var(--cy-green) !important; }
.bg-warning { background-color: var(--cy-orange) !important; }
.bg-danger { background-color: var(--cy-red) !important; }

/* ---------- Badges statut workflow ---------- */
.badge { padding: 0.45em 0.95em; border-radius: var(--cy-radius-pill); font-weight: 700; }
.step-badge { font-size: 0.78rem; }
.step-impaye          { background: rgba(26, 29, 86, 0.10); color: var(--cy-navy); }
.step-relance         { background: var(--cy-blue-tint); color: var(--cy-blue-dark); }
.step-mise_en_demeure { background: rgba(241, 135, 0, 0.14); color: #a35b00; }
.step-avocat          { background: rgba(175, 18, 128, 0.12); color: var(--cy-magenta); }
.step-tribunal        { background: rgba(102, 147, 198, 0.18); color: #33567e; }
.step-jugement        { background: rgba(228, 5, 33, 0.10); color: #c00420; }
.step-execution       { background: rgba(228, 5, 33, 0.16); color: #a00318; }
.step-cloture         { background: rgba(0, 151, 103, 0.14); color: #00714d; }

.badge-pause   { background: rgba(241, 135, 0, 0.14); color: #a35b00; }
.badge-attente { background: rgba(241, 135, 0, 0.14); color: #a35b00; }
.badge-ok      { background: rgba(0, 151, 103, 0.14); color: #00714d; }
.badge-ko      { background: rgba(228, 5, 33, 0.10); color: #c00420; }
.badge-neutre  { background: rgba(26, 29, 86, 0.08); color: var(--cy-navy); }

/* ---------- Tableaux ---------- */
.table { border-color: var(--cy-border); }
.table thead th {
    font-weight: 700; text-transform: uppercase; font-size: 0.75rem;
    letter-spacing: 0.06em; color: var(--cy-text-muted);
}
.table-hover tbody tr:hover { background-color: var(--cy-blue-tint); cursor: pointer; }

/* ---------- Formulaires ---------- */
.form-control, .form-select {
    border-radius: var(--cy-radius-sm);
    border-color: var(--cy-border);
    padding: 0.55rem 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--cy-blue);
    box-shadow: 0 0 0 3px rgba(28, 94, 235, 0.18);
}
.form-label { font-weight: 600; color: var(--cy-navy); margin-bottom: 0.35rem; }

/* ---------- Alertes ---------- */
.alert { border: 0; border-radius: var(--cy-radius-sm); font-weight: 500; }
.alert-success { background-color: rgba(0, 151, 103, 0.12); color: #00714d; }
.alert-danger  { background-color: rgba(228, 5, 33, 0.09); color: #c00420; }
.alert-warning { background-color: rgba(241, 135, 0, 0.13); color: #a35b00; }
.alert-info    { background-color: var(--cy-blue-tint); color: var(--cy-blue-dark); }

/* ---------- Frise workflow ---------- */
.wf-stepper { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 0.5rem 0 1rem; }
.wf-step { display: flex; flex-direction: column; align-items: center; min-width: 96px; position: relative; text-align: center; }
.wf-step:not(:last-child)::after {
    content: ''; position: absolute; top: 19px; left: calc(50% + 22px); right: calc(-50% + 22px);
    height: 2px; background: var(--cy-border);
}
.wf-step.done:not(:last-child)::after { background: var(--cy-green); }
.wf-dot {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--cy-surface); border: 2px solid var(--cy-border); color: var(--cy-text-muted);
    font-weight: 700; z-index: 1;
}
.wf-step.done .wf-dot { background: var(--cy-green); border-color: var(--cy-green); color: #fff; }
.wf-step.current .wf-dot { background: var(--cy-blue); border-color: var(--cy-blue); color: #fff; box-shadow: 0 0 0 5px rgba(28, 94, 235, 0.18); }
.wf-label { font-size: 0.76rem; font-weight: 700; margin-top: 0.45rem; color: var(--cy-text-muted); max-width: 110px; }
.wf-step.current .wf-label { color: var(--cy-blue-dark); }
.wf-step.done .wf-label { color: #00714d; }

/* ---------- Onglets fiche dossier ---------- */
.nav-tabs { border-bottom: 1px solid var(--cy-border); }
.nav-tabs .nav-link {
    border: 0; border-bottom: 3px solid transparent; border-radius: 0;
    color: var(--cy-text-muted); font-weight: 600;
}
.nav-tabs .nav-link.active {
    color: var(--cy-blue-dark); border-bottom-color: var(--cy-blue); background: transparent;
}

/* ---------- Divers ---------- */
.avatar-sm {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--cy-blue-tint); color: var(--cy-blue-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}
.list-tight .list-group-item { border-color: var(--cy-border); padding: 0.7rem 1rem; }
.text-mono { font-variant-numeric: tabular-nums; }
.timeline-item { border-left: 2px solid var(--cy-border); padding: 0 0 1.1rem 1.1rem; position: relative; }
.timeline-item::before {
    content: ''; position: absolute; left: -6px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%; background: var(--cy-blue);
}
.doc-preview { background: #fff; border: 1px solid var(--cy-border); border-radius: var(--cy-radius-sm); padding: 2.4rem; white-space: pre-wrap; font-size: 0.95rem; }
@media print {
    .sidebar, .no-print, .alert { display: none !important; }
    body, body.with-sidebar { background: #fff; padding-left: 0; padding-top: 0; }
    .doc-preview { border: 0; padding: 0; }
}


/* =====================================================================
 * Citya Construction Desk — compléments
 * ===================================================================== */
.badge-info { background: var(--cy-blue-tint); color: var(--cy-blue-dark); }

/* Étapes du circuit de validation */
.step-depot       { background: rgba(26, 29, 86, 0.09); color: var(--cy-navy); }
.step-incomplet   { background: rgba(228, 5, 33, 0.10); color: #c00420; }
.step-completude  { background: rgba(102, 147, 198, 0.18); color: #33567e; }
.step-revue       { background: var(--cy-blue-tint); color: var(--cy-blue-dark); }
.step-revision    { background: rgba(241, 135, 0, 0.14); color: #a35b00; }
.step-avis        { background: rgba(175, 18, 128, 0.11); color: var(--cy-magenta); }
.step-approbation { background: rgba(0, 151, 103, 0.12); color: #00714d; }
.step-travaux     { background: rgba(241, 135, 0, 0.18); color: #8a4d00; }
.step-cloture     { background: rgba(0, 151, 103, 0.20); color: #005c3f; }
.step-refuse      { background: rgba(228, 5, 33, 0.14); color: #a00318; }

.wf-step.refused .wf-dot { background: var(--cy-red); border-color: var(--cy-red); color: #fff; }

/* Page d'en-tête de section */
.page-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cy-orange); }

/* Vue multi-associations */
.assoc-card { text-decoration: none; color: inherit; display: block; height: 100%; }
.assoc-card:hover { transform: translateY(-3px); box-shadow: var(--cy-shadow-md); transition: 0.2s; }
.assoc-code {
    width: 46px; height: 46px; border-radius: 14px; font-weight: 800; font-size: 0.95rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--cy-navy), var(--cy-blue)); color: #fff;
}
.mini-stat { font-size: 0.8rem; color: var(--cy-text-muted); }
.mini-stat strong { color: var(--cy-navy); font-size: 1rem; }

/* Listes de contrôle (pièces, points d'inspection, clôture) */
.check-list .list-group-item { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.check-ok  { color: var(--cy-green); }
.check-ko  { color: var(--cy-red); }
.check-wait{ color: var(--cy-orange); }

/* Fiche projet : bloc identité */
.id-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.9rem 1.5rem; }
.id-grid .k { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cy-text-muted); }
.id-grid .v { font-weight: 600; color: var(--cy-navy); }
.next-action {
    border-left: 4px solid var(--cy-orange); background: rgba(241, 135, 0, 0.07);
    border-radius: var(--cy-radius-sm); padding: 0.75rem 1rem;
}

/* Versions de soumission */
.version-pill {
    display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 28px;
    border-radius: 8px; font-weight: 800; font-size: 0.8rem; background: var(--cy-navy); color: #fff;
}
.version-pill.old { background: var(--cy-border); color: var(--cy-text-muted); }

/* Messagerie */
.msg { border-radius: var(--cy-radius); padding: 0.75rem 1rem; background: var(--cy-bg); margin-bottom: 0.75rem; }
.msg.mine { background: var(--cy-blue-tint); margin-left: 3rem; }
.msg .meta { font-size: 0.78rem; color: var(--cy-text-muted); }

/* Photos de chantier */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; }
.photo-grid figure { margin: 0; border: 1px solid var(--cy-border); border-radius: var(--cy-radius-sm); overflow: hidden; background: #fff; }
.photo-grid img { width: 100%; height: 120px; object-fit: cover; display: block; }
.photo-grid figcaption { font-size: 0.75rem; padding: 0.4rem 0.55rem; color: var(--cy-text-muted); }

/* Tampon « plan approuvé » */
.stamp {
    display: inline-block; border: 2px solid var(--cy-green); color: var(--cy-green); border-radius: 6px;
    padding: 0 0.4rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-3deg);
}

/* Écran de connexion */
.login-page { min-height: 100vh; display: flex; align-items: stretch; }
.login-brand-panel {
    background: linear-gradient(160deg, #0d0f3a 0%, var(--cy-navy) 50%, var(--cy-blue) 135%);
    color: #fff; display: flex; flex-direction: column; justify-content: center;
    padding: 4rem 4.5rem; position: relative; overflow: hidden;
}
.login-brand-panel::after {
    content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 135, 0, 0.28) 0%, transparent 70%);
    bottom: -180px; right: -180px;
}
.login-brand-panel h1 { color: #fff; font-size: 2.6rem; font-weight: 800; line-height: 1.15; }
.login-brand-panel p { color: var(--cy-blue-soft); font-size: 1.08rem; max-width: 29rem; }
.login-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; max-width: 30rem; margin-top: 2rem; position: relative; z-index: 1; }
.login-roles div { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 0.8rem 0.95rem; font-size: 0.85rem; color: #dfe6fb; }
.login-roles strong { display: block; color: #fff; font-size: 0.92rem; }
.login-form-panel { background: var(--cy-bg); display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.login-card { width: 100%; max-width: 470px; background: var(--cy-surface); border-radius: 1.5rem; border: 1px solid var(--cy-border); box-shadow: var(--cy-shadow-lg); padding: 2.6rem; }
.demo-accounts { font-size: 0.85rem; }
.demo-accounts button { text-align: left; }
@media (max-width: 991px) { .login-brand-panel { display: none !important; } }

/* Mobile : barre latérale masquée par défaut */
@media (max-width: 991px) {
    body.with-sidebar { padding-left: 0; padding-top: 4.5rem; }
    body.with-sidebar:not(.sb-shown) .sidebar { transform: translateX(-100%); }
    body.with-sidebar .sb-open-btn { display: inline-flex; }
    body.sb-shown .sidebar { transform: none; box-shadow: var(--cy-shadow-lg); }
}

/* Badges dans les titres */
h1 .badge, h2 .badge { font-size: 0.78rem; vertical-align: middle; }
