:root {
    --dc-bg: #0a0c10;
    --dc-sidebar: #0d1016;
    --dc-panel: #151922;
    --dc-panel-soft: #1a1f29;
    --dc-panel-hover: #202631;
    --dc-border: rgba(255, 255, 255, 0.075);
    --dc-border-strong: rgba(255, 212, 0, 0.23);
    --dc-text: #f7f8fb;
    --dc-muted: #8e96a6;
    --dc-yellow: #ffd400;
    --dc-yellow-soft: rgba(255, 212, 0, 0.12);
    --dc-green: #39d98a;
    --dc-green-soft: rgba(57, 217, 138, 0.12);
    --dc-blue: #55aaff;
    --dc-blue-soft: rgba(85, 170, 255, 0.12);
    --dc-purple: #a77bff;
    --dc-purple-soft: rgba(167, 123, 255, 0.12);
    --dc-orange: #ff9f43;
    --dc-orange-soft: rgba(255, 159, 67, 0.12);
    --dc-red: #ff5d68;
    --dc-red-soft: rgba(255, 93, 104, 0.12);
    --dc-radius: 16px;
    --dc-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 72% -10%, rgba(255, 212, 0, 0.07), transparent 34%),
        var(--dc-bg);
    color: var(--dc-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.dc-shell {
    display: block;
    min-height: 100vh;
}

.dc-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    z-index: 60;

    display: flex;
    flex-direction: column;

    width: 250px;
    height: 100dvh;

    padding: 22px 16px 32px;

    background: rgba(13, 16, 22, 0.98);
    border-right: 1px solid var(--dc-border);
    backdrop-filter: blur(18px);

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: #343a46 transparent;
}

.dc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;

    color: var(--dc-text);
    text-decoration: none;
}

.dc-brand-mark {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border-radius: 14px;
    background: var(--dc-yellow);
    color: #111;

    font-size: 23px;

    box-shadow: 0 9px 24px rgba(255, 212, 0, 0.19);
}

.dc-brand strong,
.dc-brand small {
    display: block;
}

.dc-brand strong {
    font-size: 21px;
    line-height: 1;
    letter-spacing: 0.08em;
}

.dc-brand small {
    margin-top: 4px;
    color: var(--dc-muted);
    font-size: 9px;
    letter-spacing: 0.19em;
}

.dc-season-card {
    flex: 0 0 auto;

    margin: 22px 0 18px;
    padding: 13px 14px;

    border: 1px solid var(--dc-border-strong);
    border-radius: 13px;

    background: var(--dc-yellow-soft);
}

.dc-season-card span,
.dc-season-card strong {
    display: block;
}

.dc-season-card span {
    color: var(--dc-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.dc-season-card strong {
    margin-top: 5px;
    color: var(--dc-yellow);
    font-size: 13px;
}

/* ZONE QUI SCROLLE */
.dc-nav {
    display: grid;
    gap: 5px;

    flex: 0 0 auto;

    min-height: auto;

    overflow: visible;

    padding: 0;
}

.dc-nav::-webkit-scrollbar {
    width: 5px;
}

.dc-nav::-webkit-scrollbar-track {
    background: transparent;
}

.dc-nav::-webkit-scrollbar-thumb {
    background: #343a46;
    border-radius: 99px;
}

.dc-nav a,
.dc-side-links a {
    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 42px;
    padding: 9px 11px;

    border-radius: 11px;

    color: #c2c7d0;
    text-decoration: none;
    font-size: 13px;

    transition: .18s ease;
}

.dc-nav a:hover,
.dc-side-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .055);
    transform: translateX(2px);
}

.dc-nav a.active {
    color: #111;
    background: var(--dc-yellow);
    font-weight: 800;
}

.dc-nav a.dc-nav-highlight {
    color: var(--dc-yellow);
    border: 1px solid var(--dc-border-strong);
    background: var(--dc-yellow-soft);
}

.dc-nav-badge {
    display: grid;
    place-items: center;

    min-width: 20px;
    height: 20px;

    margin-left: auto;
    padding: 0 6px;

    border-radius: 99px;

    background: var(--dc-yellow);
    color: #111;

    font-size: 10px;
}

.dc-nav-badge.danger {
    background: var(--dc-red);
    color: #fff;
}

/* IMPORTANT : ne doit plus prendre toute la place */
.dc-sidebar-spacer {
    flex: 1 0 14px;
    min-height: 14px;
}

.dc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.dc-sidebar::-webkit-scrollbar-thumb {
    background: #343a46;
    border-radius: 99px;
}

.dc-side-links {
    flex: 0 0 auto;

    display: grid;
    gap: 1px;

    padding: 14px 0;

    border-top: 1px solid var(--dc-border);
}

.dc-side-links a {
    min-height: 34px;
    font-size: 11px;
}

.dc-side-links a.root {
    color: var(--dc-purple);
}
.dc-user-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--dc-border);
    border-radius: 13px;
    background: var(--dc-panel);
}
.dc-user-avatar, .dc-topbar-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--dc-yellow);
    color: #111;
    font-weight: 900;
}
.dc-user-avatar { width: 38px; height: 38px; }
.dc-user-info { min-width: 0; }
.dc-user-info strong, .dc-user-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-user-info strong { font-size: 11px; }
.dc-user-info small { margin-top: 2px; color: var(--dc-muted); font-size: 10px; }
.dc-logout { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--dc-muted); text-decoration: none; }
.dc-logout:hover { color: #fff; background: rgba(255,255,255,.06); }

.dc-main {
    min-width: 0;
    margin-left: 250px;
    padding: 0 24px 36px;
}
.dc-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    margin: 0 -24px 18px;
    padding: 0 24px;
    border-bottom: 1px solid var(--dc-border);
    background: rgba(10, 12, 16, 0.88);
    backdrop-filter: blur(18px);
}
.dc-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dc-eyebrow { display: block; color: #b6bdc9; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.dc-eyebrow b { color: var(--dc-yellow); }
.dc-topbar h1 { margin: 3px 0 0; font-size: 15px; }
.dc-menu-button { display: none; border: 1px solid var(--dc-border); background: var(--dc-panel); color: #fff; border-radius: 10px; width: 38px; height: 38px; }
.dc-topbar-right { display: flex; align-items: center; gap: 8px; }
.dc-topbar-item, .dc-topbar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 7px 11px;
    border: 1px solid var(--dc-border);
    border-radius: 11px;
    background: rgba(21,25,34,.6);
}
.dc-topbar-item strong, .dc-topbar-item small, .dc-topbar-user strong, .dc-topbar-user small { display: block; }
.dc-topbar-item strong, .dc-topbar-user strong { font-size: 10px; }
.dc-topbar-item small, .dc-topbar-user small { color: var(--dc-muted); font-size: 8px; }
.dc-topbar-avatar { width: 30px; height: 30px; font-size: 11px; }

.dc-flash { margin-bottom: 14px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--dc-border); font-size: 12px; }
.dc-flash.success { color: var(--dc-green); background: var(--dc-green-soft); border-color: rgba(57,217,138,.25); }
.dc-flash.error { color: var(--dc-red); background: var(--dc-red-soft); border-color: rgba(255,93,104,.25); }


.dc-overlay { display:none; }
@media (max-width:900px){    .dc-shell { grid-template-columns: 1fr; }
}
@media (max-width:900px){    .dc-sidebar { position: fixed; left: 0; top: 0; width: 250px; transform: translateX(-105%); transition: .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.4); }
}
@media (max-width:900px){    .dc-sidebar.open { transform: translateX(0); }
}
@media (max-width:900px){    .dc-main { margin-left: 0; padding: 0 16px 28px; }
}
@media (max-width:900px){    .dc-topbar { margin: 0 -16px 16px; padding: 0 16px; }
}
@media (max-width:900px){    .dc-menu-button { display: block; }
}
@media (max-width:900px){    .dc-topbar-item { display: none; }
}
@media (max-width:900px){    .dc-overlay { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); }
}
@media (max-width:900px){    .dc-overlay.show { display: block; }
}
@media (max-width:620px){    .dc-topbar-user div { display: none; }
}

.pbc-day-mode{font-size:12px;color:var(--dc-muted);margin:10px 0 16px}

.pbc-password-field { position: relative; display: block; }
.pbc-password-field input { padding-right: 54px; min-height: 48px; font-size: 16px; }
.pbc-password-toggle { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; color: inherit; background: transparent; cursor: pointer; }
.pbc-password-toggle[hidden] { display: none; }
.pbc-password-toggle:focus-visible { outline: 2px solid #b58c00; outline-offset: -2px; }
.pbc-eye-slash { display: none; }
.pbc-password-toggle[aria-pressed="true"] .pbc-eye-slash { display: block; }
.pbc-freshness { margin: 8px 0 18px; color: var(--dc-muted); font-size: 12px; }
.pbc-freshness span { display: block; margin-top: 4px; }
