:root {
    --color-neutral-canvas: #f0f2f5;
    --color-background-app: var(--color-neutral-canvas);
    --color-surface-muted: var(--color-neutral-canvas);
    --color-primary: var(--color-brand-primary);
}

.bg-app {
    background-color: var(--color-background-app);
}

.ba-segmented {
    --ba-segmented-track: #f0f2f5;
    --ba-segmented-active: #ffffff;
    --ba-segmented-text: #475569;
    --ba-segmented-active-text: #0f172a;
    position: relative;
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background-color: var(--ba-segmented-track);
    padding: 0.25rem;
    color: var(--ba-segmented-text);
    scrollbar-width: none;
}

.ba-segmented::-webkit-scrollbar {
    display: none;
}

.ba-segmented[data-surface="muted"] {
    --ba-segmented-track: #ffffff;
    --ba-segmented-active: #f0f2f5;
}

.ba-segmented[data-fit="full"] {
    display: flex;
    width: 100%;
}

.ba-segmented[data-fit="full"] .ba-segmented-item {
    flex: 1 1 0%;
    min-width: 0;
}

.ba-segmented-item {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 9999px;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.15;
    color: inherit;
    white-space: nowrap;
    transition: color .16s ease, background-color .16s ease;
}

.ba-segmented-item:hover {
    color: #0f172a;
}

.ba-segmented-item.is-active,
.ba-segmented-item[aria-current="page"] {
    background-color: var(--ba-segmented-active);
    color: var(--ba-segmented-active-text);
}

.ba-segmented.has-indicator .ba-segmented-item {
    transition: color .16s ease;
}

.ba-segmented.has-indicator .ba-segmented-item.is-active,
.ba-segmented.has-indicator .ba-segmented-item[aria-current="page"] {
    background-color: transparent;
}

.ba-segmented-indicator {
    position: absolute;
    z-index: 0;
    top: 0.25rem;
    left: 0.25rem;
    height: calc(100% - 0.5rem);
    border-radius: 9999px;
    background-color: var(--ba-segmented-active);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    opacity: 0;
    transform: translate3d(0, 0, 0);
    will-change: transform, width, opacity;
    transition: transform .16s cubic-bezier(.22,1,.36,1), width .16s cubic-bezier(.22,1,.36,1), opacity .1s ease;
    pointer-events: none;
}

.ba-segmented-count {
    display: inline-flex;
    min-width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0 0.375rem;
    background-color: var(--color-brand-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .ba-segmented-indicator {
        transition: none;
    }
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
label[for],
summary,
select {
    cursor: pointer;
}

button:disabled,
[role="button"][aria-disabled="true"] {
    cursor: not-allowed;
}

.ba-tile-blue { background-color: #dbeafe; border: 1px solid #bfdbfe; }
.ba-tile-cyan { background-color: #cffafe; border: 1px solid #a5f3fc; }
.ba-tile-green { background-color: #dcfce7; border: 1px solid #bbf7d0; }
.ba-tile-violet { background-color: #ede9fe; border: 1px solid #ddd6fe; }
.ba-share-neutral { background-color: #4755691a; color: #475569; }
.ba-share-x { background-color: #0f14191a; color: #0f1419; }
.ba-post-media-surface { background-color: #f0f2f5; }
.ba-animators-hero-frame { border: 2px solid rgba(10, 102, 194, .30); background: #eef5ff; box-shadow: 14px 14px 0 0 rgba(10, 102, 194, .16); }
.ba-amber-frame { border: 2px solid #fcd34d; }
.ba-hiw-particulier { --hiw-accent: #0f766e; --hiw-accent-dark: #115e59; --hiw-soft: #e6f7f5; --hiw-border: #b7e4df; --hiw-footer: #f0faf9; --hiw-footer-border: #ccebe8; --hiw-cta: #0f766e; }
.ba-hiw-pro { --hiw-accent: #0a66c2; --hiw-accent-dark: #004182; --hiw-soft: #e8f3ff; --hiw-border: #b6d7f5; --hiw-footer: #f3f8ff; --hiw-footer-border: #d7e8f8; --hiw-cta: #0a66c2; }

html.dark .ba-tile-blue { background-color: #1d3348; border-color: #2b4a6b; }
html.dark .ba-tile-cyan { background-color: #1d3348; border-color: #2b4a6b; }
html.dark .ba-tile-green { background-color: #1d3226; border-color: #2b5a41; }
html.dark .ba-tile-violet { background-color: #2a2440; border-color: #453d66; }
html.dark .ba-share-neutral { background-color: rgba(163, 173, 181, .14); color: #a3adb5; }
html.dark .ba-share-x { background-color: rgba(233, 237, 240, .12); color: #e9edf0; }
html.dark .ba-post-media-surface { background-color: #111418; }
html.dark .ba-animators-hero-frame { border-color: rgba(112, 181, 249, .35); background: #1d3348; box-shadow: 14px 14px 0 0 rgba(112, 181, 249, .12); }
html.dark .ba-amber-frame { border-color: #6d5a30; }
html.dark .ba-hiw-particulier { --hiw-accent: #5dbd85; --hiw-accent-dark: #7ccd9e; --hiw-soft: #1d3226; --hiw-border: #2b5a41; --hiw-footer: #1d3226; --hiw-footer-border: #2b5a41; }
html.dark .ba-hiw-pro { --hiw-accent: #70b5f9; --hiw-accent-dark: #9cccfb; --hiw-soft: #1d3348; --hiw-border: #2b4a6b; --hiw-footer: #1d3348; --hiw-footer-border: #2b4a6b; }
html.dark a.ba-social-puck { background-color: #ffffff; }
html.dark a.ba-social-puck:hover { background-color: rgba(255, 255, 255, .9); }

html.dark #site-header { box-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
html.dark #site-header .ba-nav { color: #a3adb5; }
html.dark #site-header .ba-nav:hover { background-color: #2c343b; color: #e9edf0; }
html.dark #site-header .ba-nav.is-active, html.dark #site-header .ba-nav.text-brand-600 { background-color: #1d3348; color: #70b5f9; box-shadow: inset 0 0 0 1px #2b4a6b; }
html.dark #site-header .ba-nav.is-active:hover, html.dark #site-header .ba-nav.text-brand-600:hover { background-color: #1d3348; color: #70b5f9; }
html.dark .ba-nav-menu-tile { color: #a3adb5; }
html.dark .ba-nav-menu-item { color: #c6cdd3; }
html.dark .ba-nav-menu-item:hover { background: #262d33; color: #e9edf0; }
html.dark .ba-nav-menu-item:hover .ba-nav-menu-tile { color: #70b5f9; }
html.dark .ba-nav-menu-item.is-active { background: #0a66c2; color: #ffffff; }
html.dark .ba-nav-menu-item.is-active:hover { background: #0958a8; color: #ffffff; }
html.dark .ba-nav-menu-item.is-active .ba-nav-menu-tile, html.dark .ba-nav-menu-item.is-active:hover .ba-nav-menu-tile { color: #ffffff; }
html.dark .ba-menu-card { border-color: #33393f; box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }

html.dark #ba-chat { color: #e9edf0; }
html.dark #ba-chat-teaser > div { border-color: #33393f; background: #1d2226; box-shadow: 0 10px 18px rgba(0, 0, 0, .5); }
html.dark #ba-chat-teaser p:first-child { color: #e9edf0; }
html.dark #ba-chat-teaser p + p { color: #a3adb5; }
html.dark #ba-chat-teaser-close { color: #7f8990; }
html.dark #ba-chat-launcher { border-color: #33393f; background: #1d2226; box-shadow: 0 10px 18px rgba(0, 0, 0, .55); }
html.dark #ba-chat-badge { border-color: #111418; }
html.dark #ba-chat-panel { border-color: #33393f; background: #1d2226; box-shadow: 0 20px 30px rgba(0, 0, 0, .5); }
html.dark #ba-chat-messages { background: #111418; }
html.dark #ba-chat-form { border-top-color: #33393f; background: #1d2226; }
html.dark #ba-chat-input { border-color: #464e56; background: #22282d; color: #e9edf0; }
html.dark #ba-chat .ba-msg-assistant { border-color: #33393f; background: #2c343b; color: #e9edf0; }

html.dark .pm-dialog { background: #1d2226; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); }
html.dark .pm-header { border-bottom-color: #33393f; }
html.dark .pm-title { color: #e9edf0; }
html.dark .pm-close { background: #2c343b; color: #e9edf0; }
html.dark .pm-close:hover { background: #33393f; }
html.dark .pm-body [data-post-comments-panel] { background: #1d2226; }
html.dark .pm-body .ba-composer { background: #1d2226; }
html.dark .mv-panel { background: #1d2226; }
html.dark .mv-panel .ba-composer { background: #1d2226; }
html.dark [data-mv-panel] [data-post-comment-form] { background: #1d2226; border-top-color: #33393f; }

html.dark .ba-cmt-bubble { background: #2c343b; }
html.dark .ba-cmt-name { color: #e9edf0; }
html.dark .ba-cmt-body { color: #dfe4e8; }
html.dark .ba-cmt-like, html.dark .ba-cmt-replybtn { color: #a3adb5; }
html.dark .ba-cmt-like.is-reacted { color: #70b5f9; }
html.dark .ba-cmt-time { color: #7f8990; }
html.dark .ba-cmt-reactmenu { background: #1d2226; border-color: #33393f; box-shadow: 0 6px 22px rgba(0, 0, 0, .5); }
html.dark .ba-cmt-count { color: #a3adb5; }
html.dark .ba-cmt-replies > .ba-cmt::before { border-color: #3c444c; }
html.dark .ba-cmt-replies > .ba-cmt:not(:last-child)::after { background: #3c444c; }
html.dark .ba-reply-field { background: #22282d; border-color: #464e56; }
html.dark .ba-reply-editable { color: #e9edf0; }
html.dark .ba-reply-editable:empty::before { color: #7f8990; }
html.dark .ba-mention { color: #70b5f9; background: #1d3348; }
html.dark .ba-cmt-mention { color: #70b5f9; }
html.dark .ba-composer { background: #1d2226; }
html.dark .ba-composer-error { color: #f28b82; }
html.dark .ba-emoji-btn { color: #a3adb5; }
html.dark .ba-emoji-btn:hover { background: #2c343b; }
html.dark .ba-emoji-panel { background: #1d2226; border-color: #33393f; box-shadow: 0 12px 32px rgba(0, 0, 0, .6); }
html.dark .ba-emoji-panel button:hover { background: #2c343b; }
html.dark .ba-mention-panel { background: #1d2226; border-color: #33393f; box-shadow: 0 12px 32px rgba(0, 0, 0, .6); }
html.dark .ba-mention-item.is-active, html.dark .ba-mention-item:hover { background: #2c343b; }
html.dark .ba-mention-item .av { background: #1d3348; color: #70b5f9; }
html.dark .ba-mention-item .nm { color: #e9edf0; }

html.dark .ba-flip-sep { background: #33393f; }
html.dark .ba-flip-label { color: #8d97a0; }

:root { --ba-content: 1413px; }
.ba-container { width: 100%; max-width: var(--ba-content); margin-left: auto; margin-right: auto; padding-left: 0.75rem; padding-right: 0.75rem; }
.max-w-\[1600px\] { max-width: var(--ba-content); }
.ba-read-xl { max-width: min(36rem, var(--ba-content)); }
.ba-read-2xl { max-width: min(42rem, var(--ba-content)); }
.ba-read-4xl { max-width: min(56rem, var(--ba-content)); }
.ba-read-5xl { max-width: min(64rem, var(--ba-content)); }
.ba-read-6xl { max-width: min(72rem, var(--ba-content)); }
.ba-read-820 { max-width: min(820px, var(--ba-content)); }
@media (min-width: 640px) { .ba-container { padding-left: 1rem; padding-right: 1rem; } }
@media (min-width: 1024px) { .ba-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
