﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   App++ â€” Feuille de styles principale consolidÃ©e
   Bootstrap 5 + Radzen Blazor (hybride) â€” Design InApp
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   1. DESIGN SYSTEM â€” InApp Theme Variables
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root, [data-bs-theme="light"] {
    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       App++ Color Palette â€” Rule 60/30/10
       Primary (60%): #4C6E93 - Dark teal for structure
       Secondary (30%): #00B193 - Green for interactive elements
       Accent (10%): #da4f49 - Red for errors/alerts
       â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

    /* Primary brand: slate structure + AppliWeb teal */
    --bs-primary: #0f172a;
    --bs-primary-rgb: 15, 23, 42;
    --bs-secondary: #009e84;
    --bs-secondary-rgb: 0, 158, 132;
    --bs-success: #009e84;
    --bs-info: #3b82f6;
    --bs-warning: #a67235;
    --bs-danger: #9a170c;
    --bs-light: #f8fafc;
    --bs-dark: #0f172a;

    /* Subtle badge backgrounds */
    --bs-primary-bg-subtle: #dce5ee;
    --bs-secondary-bg-subtle: #d4f5ef;
    --bs-success-bg-subtle: #d6f5d6;
    --bs-info-bg-subtle: #d4eef8;
    --bs-warning-bg-subtle: #fef0d0;
    --bs-danger-bg-subtle: #fce0df;

    /* Gray scale */
    --bs-gray-100: #f8fafc;
    --bs-gray-200: #e2e8f0;
    --bs-gray-300: #cbd5e1;
    --bs-gray-400: #94a3b8;
    --bs-gray-500: #64748b;
    --bs-gray-600: #475569;
    --bs-gray-700: #334155;
    --bs-gray-800: #1e293b;
    --bs-gray-900: #0f172a;

    /* Typography */
    --bs-body-font-family: "Poppins", sans-serif;
    --bs-body-font-size: .875rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #1e293b;
    --bs-body-bg: #f8fafc;

    /* Links */
    --bs-link-color: #007a68;
    --bs-link-hover-color: #009e84;
    --bs-link-decoration: none;
    --bs-link-hover-decoration: none;

    /* Borders */
    --bs-border-color: #e2e8f0;
    --bs-border-color-translucent: #e2e8f0;
    --bs-border-radius: 6px;
    --bs-border-radius-sm: 4px;
    --bs-border-radius-lg: 8px;

    /* Focus ring (teal) */
    --bs-focus-ring-color: rgba(0, 158, 132, .25);

    /* App variables */
    --app-font-family: "Poppins", sans-serif;
    --app-primary: #0f172a;
    --app-secondary: #009e84;
    --app-accent: #9a170c;
    --rz-body-font-size: 13px;
    --hub-transition: all 0.2s ease;

    /* Sync Radzen to aw-ui palette */
    --rz-primary: #009e84;
    --rz-primary-lighter: #d4f5ef;
    --rz-primary-dark: #007a68;
    --rz-secondary: #0f172a;
    --rz-secondary-lighter: #e8eef5;
    --rz-danger: #9a170c;
}

/* â”€â”€ Dark theme overrides â”€â”€ */
[data-bs-theme="dark"] {
    --bs-body-color: #e2e8f0;
    --bs-body-bg: #1a1a2e;
    --bs-body-color-rgb: 226, 232, 240;
    --bs-body-bg-rgb: 26, 26, 46;
    --bs-border-color: rgba(255, 255, 255, 0.12);
    --bs-border-color-translucent: rgba(255, 255, 255, 0.12);
    --bs-link-color: #00B193;
    --bs-link-hover-color: #33c4ac;
    --app-primary: #0f3460;
    --app-secondary: #00B193;
    --bs-secondary-bg: #16213e;
    --bs-tertiary-bg: #1a1a2e;

    color-scheme: dark;
}
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .stg-card {
    background: #16213e;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #0f3460;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.15);
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #0f3460;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .stg-row-label { color: #e2e8f0; }
[data-bs-theme="dark"] .stg-row-desc { color: #94a3b8; }
[data-bs-theme="dark"] .stg-row-icon { background: rgba(0, 177, 147, 0.15); color: #00B193; }
[data-bs-theme="dark"] .stg-section-title { color: #94a3b8; }
[data-bs-theme="dark"] .stg-section-line { background: linear-gradient(90deg, rgba(0, 177, 147, 0.4), transparent); }
[data-bs-theme="dark"] .stg-row { border-bottom-color: rgba(255, 255, 255, 0.06); }
[data-bs-theme="dark"] .stg-footer {
    background: #16213e;
    border-top-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .page-content { background: #1a1a2e; }
[data-bs-theme="dark"] .bg-body-secondary { background-color: #0f3460 !important; }
[data-bs-theme="dark"] .text-muted { color: #94a3b8 !important; }
[data-bs-theme="dark"] .dropdown-menu {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .dropdown-item { color: #e2e8f0; }
[data-bs-theme="dark"] .dropdown-item:hover { background: rgba(0, 177, 147, 0.12); color: #00B193; }
[data-bs-theme="dark"] .hub-tab-card { background: #16213e; }

/* Focus states for form controls (green tint) */
.form-control:focus {
    border-color: #00B193;
    box-shadow: 0 0 0 .25rem rgba(0, 177, 147, .25);
}
.form-select:focus {
    border-color: #00B193;
    box-shadow: 0 0 0 .25rem rgba(0, 177, 147, .25);
}

/* EmpÃªcher Bootstrap .btn de polluer les boutons Radzen */
.rz-button.btn { box-shadow: none; }
/* EmpÃªcher Bootstrap .card/.table d'interfÃ©rer avec les composants Radzen */
.rz-card.card { border: none; }
.rz-datatable .table { margin-bottom: 0; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   1b. DESIGN SYSTEM â€” Utility Classes (InApp)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fw-semibold { font-weight: 600 !important; }
.rz-dialog-content .card { }
.kpi-accent { border-left: 4px solid var(--kpi-color, var(--bs-primary)); }

/* â”€â”€ KPI Dashboard Cards â”€â”€ */
.kpi-card {
    border-radius: 14px;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Light mode variants */
.kpi-card--green  { background: #d4f5ef; border-color: rgba(0,177,147,0.18); }
.kpi-card--blue   { background: #dbeafe; border-color: rgba(59,130,246,0.18); }
.kpi-card--teal   { background: #e8edef; border-color: rgba(37,60,69,0.18); }
.kpi-card--amber  { background: #fef3c7; border-color: rgba(245,158,11,0.18); }

/* Dark mode KPI cards â€” vivid glassmorphism */
[data-bs-theme="dark"] .kpi-card--green {
    background: linear-gradient(135deg, rgba(0,177,147,0.18) 0%, rgba(0,177,147,0.06) 100%);
    border-color: rgba(0,177,147,0.35);
    box-shadow: 0 4px 24px rgba(0,177,147,0.10), inset 0 1px 0 rgba(0,177,147,0.12);
}
[data-bs-theme="dark"] .kpi-card--blue {
    background: linear-gradient(135deg, rgba(59,130,246,0.18) 0%, rgba(59,130,246,0.06) 100%);
    border-color: rgba(59,130,246,0.35);
    box-shadow: 0 4px 24px rgba(59,130,246,0.10), inset 0 1px 0 rgba(59,130,246,0.12);
}
[data-bs-theme="dark"] .kpi-card--teal {
    background: linear-gradient(135deg, rgba(100,180,200,0.16) 0%, rgba(100,180,200,0.05) 100%);
    border-color: rgba(100,180,200,0.30);
    box-shadow: 0 4px 24px rgba(100,180,200,0.08), inset 0 1px 0 rgba(100,180,200,0.10);
}
[data-bs-theme="dark"] .kpi-card--amber {
    background: linear-gradient(135deg, rgba(245,158,11,0.18) 0%, rgba(245,158,11,0.06) 100%);
    border-color: rgba(245,158,11,0.35);
    box-shadow: 0 4px 24px rgba(245,158,11,0.10), inset 0 1px 0 rgba(245,158,11,0.12);
}
[data-bs-theme="dark"] .kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* KPI card icon in dark mode â€” stronger glow */
[data-bs-theme="dark"] .kpi-card .icon-shape {
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* KPI label / sublabel in dark mode */
[data-bs-theme="dark"] .kpi-card h2,
[data-bs-theme="dark"] .kpi-card h3 {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .kpi-card .text-muted {
    color: #94a3b8 !important;
}

/* Quick Stats icon shapes in dark mode â€” override pastel bg with dark-adapted tints */
[data-bs-theme="dark"] .quick-stat-icon[style*="#d4f5ef"] {
    background: rgba(0,177,147,0.15) !important;
}
[data-bs-theme="dark"] .quick-stat-icon[style*="#dbeafe"] {
    background: rgba(59,130,246,0.15) !important;
}
[data-bs-theme="dark"] .quick-stat-icon[style*="#e8edef"] {
    background: rgba(100,180,200,0.15) !important;
}
[data-bs-theme="dark"] .quick-stat-icon[style*="#fef3c7"] {
    background: rgba(245,158,11,0.15) !important;
}
[data-bs-theme="dark"] .quick-stat-icon[style*="#fee2e2"] {
    background: rgba(166,27,12,0.15) !important;
}

/* Icon shapes */
.icon-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}
.icon-xs  { width: 1.5rem;  height: 1.5rem;  line-height: 1.5rem; }
.icon-sm  { width: 2rem;    height: 2rem;    line-height: 2rem; }
.icon-md  { width: 2.5rem;  height: 2.5rem;  line-height: 2.5rem; }
.icon-lg  { width: 3rem;    height: 3rem;    line-height: 3rem; }
.icon-xl  { width: 3.5rem;  height: 3.5rem;  line-height: 3.5rem; }
.icon-xxl { width: 4rem;    height: 4rem;    line-height: 4rem; }

/* Button icon */
.btn-icon {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    font-size: .93rem;
    font-weight: 400;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}
.btn-icon.btn-sm { font-size: .875rem; width: 2.19rem; height: 2.19rem; }

/* Avatar system */
.avatar {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 3rem;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-xs  { width: 1.5rem;  height: 1.5rem; }
.avatar-sm  { width: 2rem;    height: 2rem; }
.avatar-md  { width: 2.5rem;  height: 2.5rem; }
.avatar-lg  { width: 3.5rem;  height: 3.5rem; }
.avatar-xl  { width: 5rem;    height: 5rem; }

.avatar-initials {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-transform: uppercase;
    font-weight: 600;
}
.avatar-primary .avatar-initials { color: #fff; background-color: #4C6E93; }

/* Extended spacing */
.mt-6  { margin-top: 2.5rem !important; }
.mb-6  { margin-bottom: 2.5rem !important; }
.py-6  { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-10 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

/* Border dashed */
.border-dashed { border-style: dashed !important; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   2. POLICES ET TYPOGRAPHIE
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html, body, button, input, select, textarea {
    font-family: var(--app-font-family);
}

@font-face {
    font-family: 'AppMaterialSymbols';
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url('/_content/Radzen.Blazor/fonts/MaterialSymbolsOutlined.woff2') format('woff2');
}

.material-icons,
.rz-icon,
.rz-navigation-item-icon-inline,
.rz-navigation-item-icon,
.rz-button .rz-button-icon,
.rz-button .rz-button-icon-left,
.rz-button .rz-button-icon-right {
    font-family: 'AppMaterialSymbols' !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

.material-symbols-outlined {
    font-family: 'AppMaterialSymbols' !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

body, .rz-body {
    font-size: .875rem;
    font-family: var(--app-font-family);
    letter-spacing: normal;
    color: #171717;
}

.rz-text-h1, .rz-text-h2, .rz-text-h3,
.rz-text-h4, .rz-text-h5, .rz-text-h6,
h1, h2, h3, h4, h5, h6 {
    font-family: var(--app-font-family);
    letter-spacing: -0.02em;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   3. BLAZOR FRAMEWORK (error UI, reconnect)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Blazor error boundary */
.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."
}

/* Blazor error UI bar */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
}

/* SignalR Reconnect Modal */
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    background-color: white;
    width: min(20rem, calc(100vw - 2rem));
    margin: auto auto 1.5rem auto;
    padding: 1.25rem 1.5rem;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transition: display 0.35s allow-discrete, overlay 0.35s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity 0.35s both;
}
#components-reconnect-modal[open] {
    animation: components-reconnect-modal-fadeInOpacity 0.35s ease-out both;
    animation-fill-mode: both;
}

#components-reconnect-modal::backdrop {
    background-color: rgba(15, 23, 42, 0.25);
    animation: components-reconnect-modal-fadeInOpacity 0.35s ease-out;
    opacity: 1;
}

html.reconnect-quiet #components-reconnect-modal,
html.reconnect-quiet #components-reconnect-modal::backdrop {
    display: none !important;
}

#components-reconnect-modal[open]:not(.reconnect-visible),
#components-reconnect-modal[open]:not(.reconnect-visible)::backdrop {
    display: none !important;
}

@keyframes components-reconnect-modal-slideUp {
    0%   { transform: translateY(30px) scale(0.95); }
    100% { transform: translateY(0); }
}
@keyframes components-reconnect-modal-fadeInOpacity {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes components-reconnect-modal-fadeOutOpacity {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}
#components-reconnect-modal button {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
}
#components-reconnect-modal button:hover {
    background-color: #3b6ea2;
}
#components-reconnect-modal button:active {
    background-color: #6b9ed2;
}

.components-rejoining-animation {
    position: relative;
    width: 80px;
    height: 80px;
}
.components-rejoining-animation div {
    position: absolute;
    border: 3px solid #0087ff;
    opacity: 1;
    border-radius: 0;
    animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.components-rejoining-animation div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation {
    0%    { top: 40px; left: 40px; width: 0;    height: 0;    opacity: 0; }
    4.9%  { top: 40px; left: 40px; width: 0;    height: 0;    opacity: 0; }
    5%    { top: 40px; left: 40px; width: 0;    height: 0;    opacity: 1; }
    100%  { top: 0;    left: 0;    width: 80px; height: 80px; opacity: 0; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   4. APP LAYOUT â€” InApp-inspired sidebar + topbar + content
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html, body { height: 100%; margin: 0; }

.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--aw-canvas, #e8eef5);
}

/* ── Sidebar (aligned with aw-ui / topnav) ── */
.sidebar {
    width: 240px;
    min-width: 240px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: width 0.3s, min-width 0.3s;
}
.sidebar--collapsed {
    width: 60px;
    min-width: 60px;
}

/* Logo area */
.sb-brand {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
    background: #0f172a;
    text-decoration: none;
    color: inherit;
}
a.sb-brand:hover { opacity: 0.92; }
.sidebar--collapsed .sb-brand { justify-content: center; padding: 0; }

.sb-brand-icon {
    width: 36px; height: 36px;
    border-radius: 7px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    padding: 3px;
}
.sb-brand-logo {
    width: 100%; height: 100%;
    object-fit: contain;
}
.sb-brand-name { font-size: 14px; font-weight: 650; color: #fff; margin: 0; line-height: 1.2; }
.sb-brand-sub  { font-size: 10px; color: rgba(255, 255, 255, 0.55); margin: 0; line-height: 1.2; }

/* Navigation */
.sb-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sb-nav::-webkit-scrollbar { width: 4px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }

.sb-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    padding: 16px 24px 6px;
    margin: 0;
    white-space: nowrap;
    text-transform: uppercase;
}

.sb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    margin: 1px 12px;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: color 0.15s, background 0.15s;
}
.sidebar--collapsed .sb-item { justify-content: center; padding: 10px; margin: 1px 6px; }
.sb-item:hover {
    background: rgba(0, 158, 132, 0.16);
    color: #5eead4;
    text-decoration: none;
}
.sb-item--active {
    background: rgba(0, 158, 132, 0.22) !important;
    color: #5eead4 !important;
    box-shadow: inset 3px 0 0 #009e84;
}
.sb-item--active .sb-icon { color: #5eead4 !important; }

.sb-icon {
    font-size: 18px !important;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
}
.sb-item:hover .sb-icon { color: #5eead4; }

/* Sidebar footer */
.sb-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}
.sb-footer-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
    transition: color 0.15s, background 0.15s;
}
.sidebar--collapsed .sb-footer-btn { justify-content: center; }
.sb-footer-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sb-footer-btn--danger:hover { color: #da4f49; background: rgba(166, 27, 12, 0.15); }

/* Mobile overlay */
.sidebar-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(1px);
    display: none;
    z-index: 1030;
}
.sidebar-overlay.show { display: block; }

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -240px;
        z-index: 1031;
        transition: left 0.3s;
    }
    .sidebar.mobile-show { left: 0; }
    .sidebar--collapsed { width: 240px; min-width: 240px; }
}

/* â”€â”€ Main area â”€â”€ */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* â”€â”€ Topbar (clean white bar) â”€â”€ */
/* ═══════════════════════════════════════════════════════════════
   App chrome — topnav (unified) & topbar
   Aligned with aw-railnav / aw-settings tabs proportions
   ═══════════════════════════════════════════════════════════════ */
.topnav {
    display: flex;
    align-items: stretch;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
}
.topnav--unified {
    height: 48px;
    min-height: 48px;
    padding: 0;
}

.topnav-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 0;
    height: 100%;
}

.topnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    margin-right: 1rem;
    flex-shrink: 0;
    padding: 0 0.15rem;
}
.topnav-brand:hover { color: #5eead4; }
.topnav-brand-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
}
.topnav-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.topnav-brand-name {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.topnav-links {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.topnav-links::-webkit-scrollbar { display: none; }

.topnav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 100%;
    padding: 0 0.7rem;
    margin-bottom: 0;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.12s ease, border-color 0.12s ease;
}
.topnav-item > i {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1;
}
.topnav-item:hover {
    color: #fff;
    background: transparent;
}
.topnav-item:hover > i { opacity: 1; }
.topnav-item--active {
    color: #5eead4;
    background: transparent !important;
    box-shadow: none;
    border-bottom-color: #009e84;
}
.topnav-item--active > i {
    opacity: 1;
    color: #5eead4;
}
.topnav-item--danger:hover {
    color: #fca5a5;
    background: transparent;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    height: 100%;
}
.topnav-tool {
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.12s ease, background 0.12s ease;
}
.topnav-tool:hover {
    color: #5eead4;
    background: rgba(255, 255, 255, 0.06);
}

/* Account menu (profile) — shared dark/light */
.aw-account {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    height: 100%;
}
.aw-account__trigger {
    appearance: none;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 1.85rem;
    padding: 0 0.35rem 0 0.2rem;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: background 0.12s ease;
}
.aw-account__trigger:hover,
.aw-account__trigger--open {
    background: rgba(255, 255, 255, 0.08);
}
.aw-account__avatar {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 6px;
    background: rgba(0, 158, 132, 0.28);
    color: #5eead4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}
.aw-account__avatar--lg {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.05rem;
    border-radius: 8px;
}
.aw-account__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    min-width: 0;
}
.aw-account__name {
    font-size: 0.72rem;
    font-weight: 650;
    color: #fff;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aw-account__role {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aw-account__chevron {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.15s ease;
}
.aw-account__trigger--open .aw-account__chevron {
    transform: rotate(180deg);
}
.aw-account__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 15.5rem;
    background: #fff;
    border: 1px solid var(--aw-line, #cbd5e1);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    z-index: var(--aw-z-float, 10510);
    animation: aw-account-in 0.14s ease both;
}
@keyframes aw-account-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
.aw-account__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
    border-bottom: 1px solid #e8eef5;
}
.aw-account__head .aw-account__avatar {
    background: rgba(0, 158, 132, 0.14);
    color: #007a68;
}
.aw-account__head-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.aw-account__head-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.aw-account__head-role {
    font-size: 0.7rem;
    color: #64748b;
}
.aw-account__list {
    display: flex;
    flex-direction: column;
    padding: 0.35rem;
    gap: 0.1rem;
}
.aw-account__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 550;
    color: #334155;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.12s ease, color 0.12s ease;
}
.aw-account__item > i {
    font-size: 0.95rem;
    color: #64748b;
    width: 1.1rem;
    text-align: center;
}
.aw-account__item:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.aw-account__item:hover > i { color: #009e84; }
.aw-account__footer {
    padding: 0.35rem;
    border-top: 1px solid #e8eef5;
}
.aw-account__item--danger { color: #9a170c; }
.aw-account__item--danger > i { color: #9a170c; }
.aw-account__item--danger:hover {
    background: #fef2f2;
    color: #9a170c;
}

/* Light topbar variant */
.aw-account--light .aw-account__trigger:hover,
.aw-account--light .aw-account__trigger--open {
    background: #f1f5f9;
}
.aw-account--light .aw-account__avatar {
    background: rgba(0, 158, 132, 0.14);
    color: #007a68;
}
.aw-account--light .aw-account__name { color: #0f172a; }
.aw-account--light .aw-account__role { color: #64748b; }
.aw-account--light .aw-account__chevron { color: #94a3b8; }

.topbar-tool {
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 1rem;
}
.topbar-tool:hover {
    color: #009e84;
    border-color: #cbd5e1;
    background: #f8fafc;
}

@media (max-width: 992px) {
    .aw-account__meta { display: none; }
}

.dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--aw-z-float-backdrop, 10500);
    background: transparent;
}

/* Bootstrap / Mud — couche flottante au-dessus des tables & cards */
.dropdown-menu.show,
.dropdown-menu[data-bs-popper] {
    z-index: var(--aw-z-float, 10510) !important;
}
.mud-popover,
.mud-popover.mud-popover-open {
    z-index: var(--aw-z-float, 10510) !important;
}
.mud-dialog-container {
    z-index: var(--aw-z-modal, 11000) !important;
}

.app-layout--topbar .main-area {
    width: 100%;
}

@media (max-width: 992px) {
    .topnav-inner { padding: 0 0.65rem; }
    .topnav-brand { margin-right: 0.5rem; }
    .topnav-brand-name { display: none; }
    .aw-account__meta { display: none; }
    .topnav-item { padding: 0 0.55rem; font-size: 0.74rem; }
}

/* Topbar (sidebar layout companion) */
.topbar {
    height: 48px;
    min-height: 48px;
    background: #fff;
    border-bottom: 1px solid var(--aw-line, #cbd5e1);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.65rem;
    flex-shrink: 0;
}
.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: #0f172a;
    min-width: auto;
}
.topbar-brand:hover { color: #009e84; }
.topbar-brand-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #009e84;
    color: #fff;
    border-radius: 6px;
}
.topbar-brand-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}
.topbar-title { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.topbar-page-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}
.topbar-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: #64748b;
}
.topbar-actions { display: flex; align-items: center; gap: 0.35rem; }
.topbar-btn {
    width: 1.85rem;
    height: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.topbar-btn:hover { background: #e2e8f0; color: #009e84; border-color: #cbd5e1; }

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    height: 1.85rem;
    padding: 0 0.45rem;
    border-radius: 6px;
    border-left: 1px solid #e2e8f0;
    margin-left: 0.25rem;
    transition: background 0.12s ease;
}
.topbar-user:hover { background: #f8fafc; }
.topbar-avatar {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 6px;
    background: rgba(0, 158, 132, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007a68;
    font-size: 0.85rem;
}
.topbar-user-info { display: flex; flex-direction: column; line-height: 1.15; }
.topbar-user-name { font-size: 0.72rem; font-weight: 650; color: #0f172a; }
.topbar-user-role { font-size: 0.62rem; color: #64748b; }

.topbar .rz-profile-menu,
.topbar .rz-profile-menu-trigger { background: transparent !important; border: none !important; box-shadow: none !important; }

.topbar-menu-btn {
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}
.topbar-menu-btn:hover { background: #f1f5f9; color: #009e84; }

/* â”€â”€ Page content â”€â”€ */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem 1.15rem;
}
.page-shell {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

/* â”€â”€ App Footer â”€â”€ */
.app-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--bs-border-color, #e5e7eb);
    background: var(--bs-body-bg, #ffffff);
    padding: 0 20px;
}
.app-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
    letter-spacing: 0.01em;
}
.app-footer-copy strong {
    font-weight: 600;
    color: var(--bs-body-color, #4C6E93);
}
.app-footer-version {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 11px;
    background: var(--bs-tertiary-bg, #f0f0f0);
    padding: 2px 8px;
    border-radius: 4px;
}
[data-bs-theme="dark"] .app-footer {
    border-color: rgba(255,255,255,0.06);
    background: #0f172a;
}
[data-bs-theme="dark"] .app-footer-copy strong {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .app-footer-version {
    background: rgba(255,255,255,0.08);
    color: #94a3b8;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LOVABLE FORM DESIGN SYSTEM
   Style inspirÃ© Lovable / shadcn-ui â€” labels xs muted,
   inputs clean border, selects uniformes, fieldsets groupÃ©s
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Labels â”€â”€ */
.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}

/* â”€â”€ Inputs & Textareas â”€â”€ */
.form-control {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
    height: auto;
    min-height: 38px;
}
.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}
.form-control:focus {
    border-color: #00B193;
    box-shadow: 0 0 0 3px rgba(0, 177, 147, 0.1);
    background: #ffffff;
}
.form-control[readonly],
.form-control:disabled {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

/* â”€â”€ Select â”€â”€ */
.form-select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    min-height: 38px;
}
.form-select:focus {
    border-color: #00B193;
    box-shadow: 0 0 0 3px rgba(0, 177, 147, 0.1);
}

/* â”€â”€ MudBlazor Outlined inputs â€” align with Lovable style â”€â”€ */
.mud-input.mud-input-outlined .mud-input-outlined-border {
    border-color: #e2e8f0;
    border-width: 1px;
}
.mud-input.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: #cbd5e1;
}
.mud-input.mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: #00B193;
    border-width: 1.5px;
}
.mud-input.mud-input-outlined .mud-input-slot {
    font-size: 0.875rem;
}
.mud-input-label {
    font-size: 0.75rem !important;
    color: #64748b !important;
}
.mud-select .mud-input-slot,
.mud-input .mud-input-slot {
    font-size: 0.875rem;
}
.mud-input-root input,
.mud-input-slot input,
.mud-input-control input,
.mud-autocomplete input,
.search-autocomplete input {
    color: #1e293b !important;
    caret-color: #1e293b;
}
.lov-form-body .mud-input input,
.lov-form-body .mud-autocomplete input {
    color: #1e293b !important;
}

/* â”€â”€ Autocomplete recherche : liste sous le champ, texte visible â”€â”€ */
.search-autocomplete-wrap {
    position: relative;
    min-width: 180px;
}
.search-autocomplete-input,
.search-autocomplete input,
.search-autocomplete .mud-input-slot {
    background: #fff !important;
    color: #1e293b !important;
    caret-color: #1e293b;
}
.search-autocomplete-popover.mud-popover-open {
    z-index: 2500 !important;
}
.search-autocomplete-popover .mud-list {
    max-height: 200px;
    overflow-y: auto;
}
.appro-article-picker {
    position: relative;
    z-index: 40;
    overflow: visible;
}
.appro-article-picker .search-autocomplete-wrap {
    max-width: 100%;
}
.appro-article-lines,
.appro-article-lines .appro-lines-table {
    overflow: visible !important;
}
.appro-article-cell {
    overflow: visible !important;
    vertical-align: top;
    min-width: 220px;
}
.appro-line-row:has(.search-autocomplete input:focus),
.appro-line-row:has(.mud-autocomplete.mud-input-focused) {
    position: relative;
    z-index: 30;
}
.appro-form-card .appro-price-input {
    min-width: 130px;
}

/* â”€â”€ Transformation stock â”€â”€ */
.transform-form-body,
.transform-row {
    overflow: visible !important;
}
.transform-col {
    position: relative;
    overflow: visible;
}
@media (min-width: 768px) {
    .transform-col-source {
        border-right: 1px solid var(--rz-base-200, #e2e8f0);
        padding-right: 24px;
    }
    .transform-col-dest {
        padding-left: 24px;
    }
}
.transform-col-title {
    font-weight: 600;
    margin-bottom: 16px;
}
.transform-picker {
    position: relative;
    z-index: 1;
    overflow: visible;
}
.transform-col:focus-within .transform-picker {
    z-index: 60;
}
[data-bs-theme="dark"] .transform-col-source {
    border-right-color: rgba(255, 255, 255, 0.08) !important;
}
[data-bs-theme="dark"] .search-autocomplete-input,
[data-bs-theme="dark"] .search-autocomplete input,
[data-bs-theme="dark"] .search-autocomplete .mud-input-slot {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    caret-color: #e2e8f0;
}

/* â”€â”€ Fieldset for grouped checkboxes (Localisations, etc.) â”€â”€ */
fieldset.lov-fieldset,
.lov-fieldset {
    border: 1px solid #e2e8f0;
    padding: 1rem;
}
fieldset.lov-fieldset legend,
.lov-fieldset legend {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0 0.5rem;
    float: none;
    width: auto;
}
.lov-fieldset-count {
    font-size: 0.75rem;
    color: #00B193;
    margin-top: 0.5rem;
}

/* â”€â”€ Dialog form body spacing â”€â”€ */
.lov-form-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.lov-form-body .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0;
}

/* â”€â”€ Field wrapper â”€â”€ */
.lov-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.lov-field > .form-label {
    margin-bottom: 0;
}

/* â”€â”€ Card form header â€” title + actions â”€â”€ */
.lov-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}
.lov-form-header h5,
.lov-form-header h1 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

/* â”€â”€ Lovable card wrapper (page forms) â”€â”€ */
.lov-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    overflow: hidden;
    background: #fff;
}

/* â”€â”€ Form body â€” light gray background â”€â”€ */
.lov-form-body {
    padding: 1.25rem;
    background: #f8fafc;
}

/* â”€â”€ MudDialog Lovable override â”€â”€ */
/* When NoHeader is used, the dialog content IS the entire dialog */
/* Default: give detail dialogs breathing room */
.mud-dialog-content:first-child {
    padding: 1.25rem 1.5rem !important;
}
/* Lov-form dialogs handle their own padding */
.mud-dialog-content:first-child:has(.lov-form-header) {
    padding: 0 !important;
}
/* With header: ensure generous content padding */
.mud-dialog-content {
    padding: 1.25rem 1.5rem !important;
}
/* Lov-form dialogs with header still handle their own padding */
.mud-dialog-content:has(.lov-form-header) {
    padding: 0 !important;
}
/* Round the dialog itself â€” subtle radius */
.mud-dialog {
    border-radius: 0.5rem !important;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
/* Dialog title bar (header) */
.mud-dialog-title {
    padding: 1rem 1.5rem !important;
    font-size: 1.1rem;
    font-weight: 600;
}
/* Dialog action bar spacing */
.mud-dialog-actions {
    padding: 0.75rem 1.5rem 1rem !important;
}

/* â”€â”€ Dark mode overrides â”€â”€ */
[data-bs-theme="dark"] .form-label {
    color: #94a3b8;
}
[data-bs-theme="dark"] .form-control {
    background: #1e293b;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme="dark"] .form-control::placeholder {
    color: #64748b;
}
[data-bs-theme="dark"] .form-control:focus {
    background: #1e293b;
    border-color: #00B193;
    box-shadow: 0 0 0 3px rgba(0, 177, 147, 0.15);
}
[data-bs-theme="dark"] .form-control[readonly],
[data-bs-theme="dark"] .form-control:disabled {
    background: #0f172a;
    color: #64748b;
}
[data-bs-theme="dark"] .form-select {
    background: #1e293b;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme="dark"] .mud-input.mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme="dark"] .mud-input.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.2);
}
[data-bs-theme="dark"] .mud-input-label {
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] fieldset.lov-fieldset,
[data-bs-theme="dark"] .lov-fieldset {
    border-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme="dark"] fieldset.lov-fieldset legend,
[data-bs-theme="dark"] .lov-fieldset legend {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .lov-form-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: #1e293b;
}
[data-bs-theme="dark"] .lov-form-header h5,
[data-bs-theme="dark"] .lov-form-header h1 {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .lov-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
[data-bs-theme="dark"] .lov-form-body {
    background: #0f172a;
}
[data-bs-theme="dark"] .mud-dialog .lov-form-body {
    background: #0f172a;
    border-top-color: rgba(255, 255, 255, 0.08);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rz-body { padding: 0 !important; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   5. RADZEN COMPONENT OVERRIDES (InApp harmony)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* DataGrid â€” InApp table style */
.rz-datatable th,
.rz-datatable td,
.rz-grid-table th,
.rz-grid-table td {
    padding: 8px 12px !important;
    font-size: .875rem !important;
    font-family: var(--app-font-family) !important;
}

.rz-datatable thead th,
.rz-grid-table thead th {
    background: #f5f5f5 !important;
    color: #262626 !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.rz-datatable tbody tr:hover,
.rz-grid-table tbody tr:hover {
    background: #fafafa !important;
}

.rz-datatable .rz-datatable-filter-row th,
.rz-grid-table .rz-datatable-filter-row th {
    padding: 4px 8px !important;
}

/* Pager â€” Bootstrap pagination style */
.rz-pager {
    font-family: var(--app-font-family) !important;
    font-size: .875rem !important;
}

/* Hub icon badge */
.hub-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0;
    flex-shrink: 0;
}
.hub-icon .rz-icon,
.hub-icon .ti {
    font-size: 22px !important;
}

/* Hub KPI cards */
.hub-kpi {
    padding: 16px 20px !important;
    height: 100%;
}

/* Tabs inside cards */
.rz-card > .rz-tabview {
    margin: 0 !important;
}
.rz-card > .rz-tabview > .rz-tabview-nav {
    padding-left: 16px;
    background: #f5f5f5 !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

/* Tab styling */
.rz-tabview-nav .rz-tabview-nav-link {
    padding: 12px 20px !important;
    font-weight: 500 !important;
    font-size: .875rem !important;
    font-family: var(--app-font-family) !important;
    gap: 6px;
}

/* Card */
.rz-card {
    border-radius: 0 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

/* Dialogs â€” clean square style */
.rz-dialog-wrapper { padding: 16px !important; }
.rz-dialog {
    border-radius: 0 !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    font-family: var(--app-font-family) !important;
}
.rz-dialog-titlebar {
    padding: 14px 20px !important;
    min-height: 50px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #4C6E93 !important;
    color: #fff !important;
}
.rz-dialog-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: var(--app-font-family) !important;
    color: #fff !important;
}
.rz-dialog-titlebar-close {
    color: rgba(255, 255, 255, 0.7) !important;
}
.rz-dialog-titlebar-close:hover {
    color: #fff !important;
}
.rz-dialog-content {
    padding: 16px 20px !important;
    font-size: .875rem !important;
}
.rz-dialog .rz-card {
    box-shadow: none !important;
    border: none !important;
}
.rz-dialog .rz-row,
.rz-dialog .rz-stack,
.rz-dialog .rz-fieldset,
.rz-dialog .rz-col {
    --rz-gap: 0.65rem;
}
.rz-dialog .rz-text-h4,
.rz-dialog .rz-text-h5,
.rz-dialog .rz-text-h6 {
    font-size: 1rem !important;
}
.rz-dialog .rz-datatable th,
.rz-dialog .rz-datatable td,
.rz-dialog .rz-grid-table th,
.rz-dialog .rz-grid-table td {
    padding: 6px 8px !important;
    font-size: 13px !important;
}
.rz-dialog[style*="width"] {
    max-width: min(92vw, 980px) !important;
}

/* Buttons â€” square corners with new palette */
.rz-button {
    min-height: 34px !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 0 !important;
    font-size: .875rem !important;
    font-weight: 500 !important;
    font-family: var(--app-font-family) !important;
    box-shadow: none !important;
}
.rz-button .rz-button-text { font-weight: 500 !important; }
.rz-button .rz-button-icon-left,
.rz-button .rz-button-icon-right,
.rz-button .rz-button-icon {
    font-size: 16px !important;
}
.rz-button.rz-size-small {
    min-height: 30px !important;
    padding: 0.3rem 0.7rem !important;
    font-size: .8125rem !important;
    border-radius: 0 !important;
}
.rz-button.rz-button-text,
.rz-button.rz-variant-text {
    box-shadow: none !important;
}
.rz-button.rz-secondary,
.rz-button.rz-light,
.rz-button.rz-button-outlined,
.rz-button.rz-variant-outlined {
    border-width: 1px !important;
}

/* Primary button override to new green */
.rz-button.rz-primary {
    background-color: #00B193 !important;
    border-color: #00B193 !important;
    color: #fff !important;
}
.rz-button.rz-primary:hover {
    background-color: #009a7d !important;
    border-color: #009a7d !important;
}

/* Secondary button - dark teal */
.rz-button.rz-secondary {
    background-color: #4C6E93 !important;
    border-color: #4C6E93 !important;
    color: #fff !important;
}
.rz-button.rz-secondary:hover {
    background-color: #385472 !important;
    border-color: #385472 !important;
}

/* Danger button - accent red */
.rz-button.rz-danger {
    background-color: #da4f49 !important;
    border-color: #da4f49 !important;
}
.rz-button.rz-danger:hover {
    background-color: #bd362f !important;
    border-color: #bd362f !important;
}

/* Form fields â€” square corners with green focus */
.rz-textbox,
.rz-dropdown,
.rz-numeric,
.rz-datepicker,
.rz-password,
.rz-textarea {
    border-radius: 0 !important;
    font-size: .875rem !important;
    font-family: var(--app-font-family) !important;
}
.rz-textbox:focus,
.rz-state-focused {
    border-color: #00B193 !important;
    box-shadow: 0 0 0 .25rem rgba(0, 177, 147, .25) !important;
}

/* Hide numeric up/down buttons globally */
.rz-spinner-btn-up,
.rz-spinner-btn-down {
    display: none !important;
}

/* Scrollbar slim */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4d4; }
::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }

/* Progress bar */
.rz-progressbar {
    border-radius: 0 !important;
    overflow: hidden;
}

/* Badge pill */
.rz-badge.rz-badge-pill {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* DataGrid global */
.rz-data-grid, .rz-datatable { width: 100% !important; }
.rz-data-grid .rz-data-grid-data,
.rz-datatable .rz-datatable-data,
.rz-data-grid .rz-datatable-scrollable-body,
.rz-datatable .rz-datatable-scrollable-body,
.rz-data-grid .rz-datatable-scrollable-header-box,
.rz-datatable .rz-datatable-scrollable-header-box {
    overflow-x: auto !important;
    overflow-y: hidden;
}
.rz-data-grid .rz-grid-table,
.rz-datatable .rz-grid-table,
.rz-datatable table,
.rz-data-grid table {
    min-width: max-content !important;
    width: 100% !important;
}
.rz-datatable th, .rz-datatable td,
.rz-grid-table th, .rz-grid-table td,
.rz-column-title, .rz-cell-data {
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

/* Notification toast â€” clean square style */
.rz-notification {
    font-family: var(--app-font-family) !important;
    border-radius: 0 !important;
}
.rz-notification-summary {
    font-weight: 500 !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   6. HUB PAGES â€” styles partagÃ©s
   (remplace vente-/stock-/admin-/commande-/report- prefixes)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.hub-header {
    row-gap: 12px;
    padding: 8px 4px 2px;
}

.hub-subtitle {
    overflow-wrap: anywhere;
}

.hub-section-title {
    letter-spacing: -0.01em;
    font-size: 1.05rem;
}

.hub-tabs-shell > .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hub-tabs-shell > .nav-tabs::-webkit-scrollbar {
    display: none;
}
.hub-tabs-shell > .nav-tabs .nav-link {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.55rem 0.75rem;
}

@media (max-width: 992px) {
    .hub-header {
        padding: 4px 0;
    }
    .hub-header h2 {
        font-size: 1rem !important;
    }
    .hub-header small {
        font-size: 0.72rem;
    }
    .hub-tab-card {
        padding: 8px !important;
    }
    .hub-grid-actions .btn {
        min-width: 34px;
        min-height: 34px;
    }
    .hub-ref-panel .card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .page-content {
        padding: 8px 10px 16px;
    }
    .mud-table-root {
        font-size: 0.82rem;
    }
}

.landing-product-tile__loc {
    display: block;
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.25;
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.landing-product-tile__cat {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: #00B193;
    line-height: 1.25;
    margin-top: 0.05rem;
}
.landing-catalog-header__row--toolbar {
    flex: 1;
    min-width: 0;
}

.hub-tabs-shell {
    border: 1px solid var(--rz-base-200, #e2e8f0) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden;
}

.hub-tabs-shell .rz-tabview-panels {
    background: var(--rz-base-background-color);
}

.hub-tabs-shell .rz-tabview-panel {
    padding: 12px;
}

.hub-tabs-shell .rz-card {
    border: 1px solid var(--rz-base-200) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hub-tab-card {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px !important;
}

.hub-filter-row {
    background: var(--rz-base-50, #f8fafc);
    border: 1px solid var(--rz-base-200, #e2e8f0);
    border-radius: 0;
    padding: 10px 8px;
}
.hub-filter-row .rz-textbox,
.hub-filter-row .rz-dropdown {
    width: 100%;
}
.hub-filter-row .mud-input-root input,
.hub-filter-row .mud-input-slot input,
.hub-filter-row .mud-input-control input {
    color: var(--bs-body-color, #1e293b) !important;
    caret-color: var(--bs-body-color, #1e293b);
}
.hub-filter-row .mud-input-label {
    color: var(--bs-secondary-color, #64748b);
}

.hub-tabs-shell .rz-tabview-panel > .rz-stack.rz-orientation-horizontal {
    background: var(--rz-base-50, #f8fafc);
    border: 1px solid var(--rz-base-200);
    border-radius: 0;
    padding: 8px;
}

@media (max-width: 767.98px) {
    .hub-header {
        margin-bottom: 0.75rem;
    }
    .hub-tab-card {
        padding: 8px !important;
    }
}

/* â”€â”€ Hub stats & badges â€” lisibilitÃ© garantie (contraste Ã©levÃ©) â”€â”€ */
.hub-stat {
    border: 1px solid transparent;
    padding: 0.5rem 0.75rem;
    height: 100%;
}
.hub-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.15rem;
}
.hub-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}
.hub-stat--primary  { background: #dce5ee; border-color: #a8bdd4; }
.hub-stat--primary  .hub-stat-value { color: #2d4a66; }
.hub-stat--success  { background: #d6f5d6; border-color: #86c986; }
.hub-stat--success  .hub-stat-value { color: #2d6a2d; }
.hub-stat--warning  { background: #fef0d0; border-color: #f0c86a; }
.hub-stat--warning  .hub-stat-value { color: #92400e; }
.hub-stat--danger   { background: #fce0df; border-color: #e89895; }
.hub-stat--danger   .hub-stat-value { color: #8b2222; }
.hub-stat--info     { background: #d4eef8; border-color: #7ec8e3; }
.hub-stat--info     .hub-stat-value { color: #1e5f7a; }
.hub-stat--neutral  { background: #f1f5f9; border-color: #cbd5e1; }
.hub-stat--neutral  .hub-stat-value { color: #334155; }
.hub-stat--teal     { background: #d4f5ef; border-color: #5eead4; }
.hub-stat--teal     .hub-stat-value { color: #0f766e; }
.hub-stat--clickable { cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.hub-stat--clickable:hover { box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12); transform: translateY(-1px); }
.hub-stat--active { box-shadow: 0 0 0 2px #334155; }

.hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.22rem 0.55rem;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.3;
}
.hub-badge--success   { background: #d6f5d6; color: #2d6a2d; border-color: #86c986; }
.hub-badge--warning   { background: #fef0d0; color: #92400e; border-color: #f0c86a; }
.hub-badge--danger    { background: #fce0df; color: #8b2222; border-color: #e89895; }
.hub-badge--info      { background: #d4eef8; color: #1e5f7a; border-color: #7ec8e3; }
.hub-badge--primary   { background: #dce5ee; color: #2d4a66; border-color: #a8bdd4; }
.hub-badge--neutral   { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.hub-badge--teal      { background: #d4f5ef; color: #0f766e; border-color: #5eead4; }
.hub-badge--xs {
    font-size: 0.62rem; padding: 0.12rem 0.35rem; font-weight: 600;
}

.hub-cmd-new-alert {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d; color: #92400e; border-radius: 10px;
}
.hub-cmd-new-alert .bi-bell-fill { color: #f59e0b; }
.hub-cmd-new-alert__link { color: #b45309; font-weight: 600; text-decoration: underline; }
.hub-cmd-new-dot {
    display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 999px;
    background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
    animation: hubCmdNewPulse 1.8s ease-in-out infinite;
}
@keyframes hubCmdNewPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.85); }
}

.hub-grid-actions {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
}
.hub-grid-actions .btn {
    padding: 0.2rem 0.45rem;
    line-height: 1;
}

/* â”€â”€ Hub dialogs â€” dÃ©tail & formulaires â”€â”€ */
.hub-dialog-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}
@media (max-width: 575.98px) {
    .hub-dialog-meta { grid-template-columns: 1fr; }
}
.hub-dialog-meta-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 0.15rem;
}
.hub-dialog-meta-value {
    font-weight: 600;
    color: #1e293b;
}
.hub-dialog-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin: 0.75rem 0 0.5rem;
}
.hub-dialog-table {
    margin-bottom: 0;
}
.hub-dialog-table thead th {
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
    border-bottom-width: 1px;
}
.hub-dialog-table tfoot td {
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
    font-weight: 700;
}
.hub-dialog-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
}
.hub-dialog-actions-right {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

/* Commande client â€” dÃ©tail compact */
.cmd-detail-dialog.mud-dialog {
    width: calc(100vw - 3rem) !important;
    max-width: 920px !important;
    margin: 1.25rem auto !important;
}
.cmd-detail-dialog .mud-dialog-content {
    padding: 0 !important;
    min-height: 16rem;
}
.cmd-detail-dialog .mud-dialog-actions {
    padding: 0.65rem 1rem 0.85rem !important;
    border-top: 1px solid #e2e8f0;
}
.cmd-detail-dialog__shell {
    display: flex; flex-direction: column;
    min-height: 14rem;
}
.cmd-detail-dialog__head {
    padding: 0.85rem 1.1rem 0.65rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}
.cmd-detail-dialog__head-main {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    margin-bottom: 0.25rem;
}
.cmd-detail-dialog__id {
    font-size: 1rem; font-weight: 700; color: #0f172a;
}
.cmd-detail-dialog__head-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.35rem;
    font-size: 0.78rem; color: #64748b;
}
.cmd-detail-dialog__head-meta i { opacity: 0.85; }
.cmd-detail-dialog__sep { color: #cbd5e1; }
.cmd-detail-dialog__amounts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem; padding: 0.65rem 1.1rem;
    background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.cmd-detail-dialog__amount {
    display: flex; flex-direction: column; gap: 0.05rem;
    font-size: 0.68rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.03em;
}
.cmd-detail-dialog__amount strong {
    font-size: 0.88rem; text-transform: none; letter-spacing: 0; color: #0f172a;
}
.cmd-detail-dialog__articles,
.cmd-detail-dialog__livraisons {
    padding: 0.65rem 1.1rem 0.85rem;
    flex: 1;
}
.cmd-detail-lines {
    display: block;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.cmd-detail-lines__row {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) 3.5rem 7.5rem 8rem 4.5rem;
    column-gap: 0.75rem;
    align-items: center;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}
.cmd-detail-lines__row:last-child { border-bottom: none; }
.cmd-detail-lines__row--head {
    background: #f8fafc;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
}
.cmd-detail-lines__name {
    font-weight: 600;
    color: #0f172a;
    padding-right: 0.25rem;
}
.cmd-detail-dialog__loading {
    display: flex; align-items: center; justify-content: center;
    min-height: 8rem; padding: 1rem;
}
.cmd-detail-dialog__livraisons {
    border-top: 1px solid #f1f5f9;
    padding-top: 0.45rem;
}
.cmd-detail-dialog__subhead {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; color: #64748b; margin-bottom: 0.35rem;
}
.cmd-detail-dialog__table thead th {
    padding: 0.35rem 0.45rem; font-size: 0.68rem;
}
.cmd-detail-dialog__table tbody td {
    padding: 0.35rem 0.45rem; font-size: 0.78rem; vertical-align: middle;
}
@media (max-width: 575.98px) {
    .cmd-detail-dialog__amounts { grid-template-columns: 1fr; gap: 0.25rem; }
}
[data-bs-theme="dark"] .cmd-detail-dialog__head { background: var(--bs-body-bg); border-bottom-color: rgba(148,163,184,0.2); }
[data-bs-theme="dark"] .cmd-detail-dialog__id { color: #e2e8f0; }
[data-bs-theme="dark"] .cmd-detail-dialog__amounts { background: rgba(148,163,184,0.08); border-bottom-color: rgba(148,163,184,0.2); }
[data-bs-theme="dark"] .cmd-detail-dialog__amount strong { color: #e2e8f0; }
[data-bs-theme="dark"] .hub-dialog-meta-label { color: #94a3b8; }
[data-bs-theme="dark"] .hub-dialog-meta-value { color: #e2e8f0; }
[data-bs-theme="dark"] .hub-dialog-section-title { color: #94a3b8; }
[data-bs-theme="dark"] .hub-dialog-table thead th,
[data-bs-theme="dark"] .hub-dialog-table tfoot td { background: rgba(148,163,184,0.1); color: #cbd5e1; }
[data-bs-theme="dark"] .hub-dialog-table tfoot td { border-top-color: rgba(148,163,184,0.25); }

.hub-ref-panel .card-header {
    min-height: 2.75rem;
}

.hub-text-success { color: #2d6a2d !important; }
.hub-text-warning { color: #92400e !important; }
.hub-text-danger  { color: #8b2222 !important; }
.hub-text-info    { color: #1e5f7a !important; }

.hub-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}
.hub-alert--success { background: #d6f5d6; color: #2d6a2d; border-color: #86c986; }
.hub-alert--warning { background: #fef0d0; color: #92400e; border-color: #f0c86a; }
.hub-alert--danger  { background: #fce0df; color: #8b2222; border-color: #e89895; }
[data-bs-theme="dark"] .hub-alert--success { background: rgba(91,183,91,0.2); color: #86efac; border-color: rgba(91,183,91,0.35); }
[data-bs-theme="dark"] .hub-alert--warning { background: rgba(250,167,50,0.2); color: #fcd34d; border-color: rgba(250,167,50,0.35); }
[data-bs-theme="dark"] .hub-alert--danger  { background: rgba(218,79,73,0.2); color: #fca5a5; border-color: rgba(218,79,73,0.35); }

/* Correctifs globaux â€” badges KPI Ã  faible contraste (AdminHub, etc.) */
.hub-tabs-shell .card.bg-primary.bg-opacity-10 .fw-bold,
.card-body .card.bg-primary.bg-opacity-10 .fw-bold.text-primary { color: #2d4a66 !important; }
.hub-tabs-shell .card.bg-success.bg-opacity-10 .fw-bold,
.card-body .card.bg-success.bg-opacity-10 .fw-bold.text-success { color: #2d6a2d !important; }
.hub-tabs-shell .card.bg-warning.bg-opacity-10 .fw-bold,
.card-body .card.bg-warning.bg-opacity-10 .fw-bold.text-warning { color: #92400e !important; }
.hub-tabs-shell .card.bg-danger.bg-opacity-10 .fw-bold,
.card-body .card.bg-danger.bg-opacity-10 .fw-bold.text-danger { color: #8b2222 !important; }
.hub-tabs-shell .card.bg-info.bg-opacity-10 .fw-bold,
.card-body .card.bg-info.bg-opacity-10 .fw-bold.text-info { color: #1e5f7a !important; }
.hub-tabs-shell .card.bg-secondary.bg-opacity-10 .fw-bold,
.card-body .card.bg-secondary.bg-opacity-10 .fw-bold.text-secondary { color: #334155 !important; }

.hub-tabs-shell .badge.bg-success.bg-opacity-15,
.card-body .badge.bg-success.bg-opacity-15 { background-color: #d6f5d6 !important; color: #2d6a2d !important; border-color: #86c986 !important; }
.hub-tabs-shell .badge.bg-warning.bg-opacity-15,
.card-body .badge.bg-warning.bg-opacity-15 { background-color: #fef0d0 !important; color: #92400e !important; border-color: #f0c86a !important; }
.hub-tabs-shell .badge.bg-danger.bg-opacity-15,
.card-body .badge.bg-danger.bg-opacity-15 { background-color: #fce0df !important; color: #8b2222 !important; border-color: #e89895 !important; }
.hub-tabs-shell .badge.bg-info.bg-opacity-15,
.card-body .badge.bg-info.bg-opacity-15 { background-color: #d4eef8 !important; color: #1e5f7a !important; border-color: #7ec8e3 !important; }
.hub-tabs-shell .badge.bg-primary.bg-opacity-15,
.card-body .badge.bg-primary.bg-opacity-15 { background-color: #dce5ee !important; color: #2d4a66 !important; border-color: #a8bdd4 !important; }
.hub-tabs-shell .badge.bg-secondary.bg-opacity-15,
.card-body .badge.bg-secondary.bg-opacity-15 { background-color: #f1f5f9 !important; color: #475569 !important; border-color: #cbd5e1 !important; }

[data-bs-theme="dark"] .hub-stat-label { color: #94a3b8; }
[data-bs-theme="dark"] .hub-stat--primary  { background: rgba(76,110,147,0.25); border-color: rgba(76,110,147,0.4); }
[data-bs-theme="dark"] .hub-stat--primary  .hub-stat-value { color: #cbd5e1; }
[data-bs-theme="dark"] .hub-stat--success  { background: rgba(91,183,91,0.2); border-color: rgba(91,183,91,0.35); }
[data-bs-theme="dark"] .hub-stat--success  .hub-stat-value { color: #86efac; }
[data-bs-theme="dark"] .hub-stat--warning  { background: rgba(250,167,50,0.2); border-color: rgba(250,167,50,0.35); }
[data-bs-theme="dark"] .hub-stat--warning  .hub-stat-value { color: #fcd34d; }
[data-bs-theme="dark"] .hub-stat--danger   { background: rgba(218,79,73,0.2); border-color: rgba(218,79,73,0.35); }
[data-bs-theme="dark"] .hub-stat--danger   .hub-stat-value { color: #fca5a5; }
[data-bs-theme="dark"] .hub-stat--info     { background: rgba(73,175,205,0.2); border-color: rgba(73,175,205,0.35); }
[data-bs-theme="dark"] .hub-stat--info     .hub-stat-value { color: #7dd3fc; }
[data-bs-theme="dark"] .hub-stat--neutral  { background: rgba(148,163,184,0.15); border-color: rgba(148,163,184,0.3); }
[data-bs-theme="dark"] .hub-stat--neutral  .hub-stat-value { color: #e2e8f0; }
[data-bs-theme="dark"] .hub-stat--teal     { background: rgba(0,177,147,0.2); border-color: rgba(0,177,147,0.35); }
[data-bs-theme="dark"] .hub-stat--teal     .hub-stat-value { color: #5eead4; }
[data-bs-theme="dark"] .hub-badge--success   { background: rgba(91,183,91,0.2); color: #86efac; border-color: rgba(91,183,91,0.35); }
[data-bs-theme="dark"] .hub-badge--warning   { background: rgba(250,167,50,0.2); color: #fcd34d; border-color: rgba(250,167,50,0.35); }
[data-bs-theme="dark"] .hub-badge--danger    { background: rgba(218,79,73,0.2); color: #fca5a5; border-color: rgba(218,79,73,0.35); }
[data-bs-theme="dark"] .hub-badge--info      { background: rgba(73,175,205,0.2); color: #7dd3fc; border-color: rgba(73,175,205,0.35); }
[data-bs-theme="dark"] .hub-badge--primary   { background: rgba(76,110,147,0.25); color: #cbd5e1; border-color: rgba(76,110,147,0.4); }
[data-bs-theme="dark"] .hub-badge--neutral   { background: rgba(148,163,184,0.15); color: #cbd5e1; border-color: rgba(148,163,184,0.3); }
[data-bs-theme="dark"] .hub-badge--teal      { background: rgba(0,177,147,0.2); color: #5eead4; border-color: rgba(0,177,147,0.35); }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   7. RAPPORTS â€” styles spÃ©cifiques
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.report-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.report-tabs-shell {
    padding: 0 !important;
    overflow: hidden;
}
.report-tabs-shell .rz-tabview-nav {
    padding: 0 10px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e5e7eb !important;
    gap: 4px;
}
.report-tabs-shell .rz-tabview-nav li { margin: 0 !important; }
.report-tabs-shell .rz-tabview-nav-link {
    padding: 11px 14px !important;
    border-radius: 0 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}
.report-tabs-shell .rz-tabview-selected .rz-tabview-nav-link {
    background: #ffffff !important;
    color: #4C6E93 !important;
    box-shadow: inset 0 2px 0 #00B193;
}
.report-tabs-shell .rz-tabview-panels {
    padding: 16px !important;
    background: #fff;
}

.report-toolbar {
    gap: 10px !important;
    padding: 2px 0 4px;
}
.report-toolbar .rz-selectbutton { gap: 8px; flex-wrap: wrap; }
.report-toolbar .rz-selectbutton .rz-button {
    min-height: 36px !important;
    padding: 0.45rem 1rem !important;
    border-radius: 0 !important;
}
.report-toolbar .rz-datepicker,
.report-toolbar .rz-dropdown,
.report-toolbar .rz-textbox,
.report-toolbar .rz-numeric {
    min-height: 36px !important;
    background: #fff !important;
}

.report-kpi-card {
    padding: 8px 12px !important;
    border-radius: 6px !important;
    text-align: left;
    background: #fff;
    border: 1px solid var(--rz-base-200) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}
.report-kpi-card .card-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 !important;
    text-align: left;
    width: 100%;
}
.report-kpi-card .bi,
.report-kpi-card .rz-icon { font-size: 1rem !important; flex-shrink: 0; opacity: 0.85; }
.report-kpi-card h5,
.report-kpi-card h6,
.report-kpi-card .rz-text-h5,
.report-kpi-card .rz-text-h6 {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}
.report-kpi-card small.text-muted {
    font-size: 0.72rem;
    display: block;
    line-height: 1.2;
}

.report-shell .rz-datatable,
.report-shell .rz-data-grid {
    border-radius: 0 !important;
    overflow: hidden;
}
.report-shell .rz-column-title,
.report-shell .rz-cell-data,
.report-shell .rz-datatable-data td,
.report-shell .rz-grid-table td,
.report-shell .rz-grid-table th {
    font-size: 12px !important;
}
.report-shell .rz-datatable-thead th,
.report-shell .rz-grid-table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   8. SETTINGS â€” logo upload zone
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.logo-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 100px;
    border: 2px dashed var(--rz-border-color);
    border-radius: 0;
    padding: 12px;
    cursor: pointer;
    background: var(--rz-base-background-color);
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
}
.logo-upload-zone:hover {
    border-color: #00B193;
    background: rgba(0, 177, 147, 0.05);
}
.logo-upload-zone.uploading {
    opacity: 0.6;
    cursor: wait;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   9. COMMANDE CLIENT â€” catalogue articles visuel
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.cmd-article-catalog {
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    padding: 1rem;
    background: var(--rz-base-background-color);
}

.cmd-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    max-height: 340px;
    overflow-y: auto;
    padding: 2px;
}

.cmd-article-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    padding: 0;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    overflow: hidden;
}

.cmd-article-card:hover {
    border-color: #00B193;
    box-shadow: 0 2px 8px rgba(0, 177, 147, 0.15);
    transform: translateY(-1px);
}

.cmd-article-card--selected {
    border-color: #00B193;
    box-shadow: 0 0 0 2px rgba(0, 177, 147, 0.25);
}

.cmd-article-card__img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    background: var(--bs-tertiary-bg);
    overflow: hidden;
}

.cmd-article-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmd-article-card__img i {
    font-size: 2rem;
    color: var(--bs-secondary-color);
}

.cmd-article-card__body {
    padding: 0.5rem 0.6rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cmd-article-card__name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cmd-article-card__price {
    font-size: 0.78rem;
    font-weight: 600;
    color: #00B193;
    margin-top: 0.15rem;
}

.cmd-article-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--rz-border-color);
    flex-shrink: 0;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   10. COMMANDE POS â€” catalogue bar / comptoir
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.commande-pos-tab {
    padding: 1rem 1.25rem 1.5rem !important;
}

.pos-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1rem;
    min-height: 520px;
}

.pos-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.pos-catalog-panel,
.pos-cart-panel {
    border: 1px solid var(--rz-border-color);
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--rz-border-color);
    flex-wrap: wrap;
}

.pos-search {
    max-width: 260px;
    min-width: 180px;
}

.pos-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
    overflow-y: auto;
    max-height: 560px;
    align-content: start;
}

.pos-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--rz-border-color);
    border-radius: 12px;
    padding: 0;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
    overflow: hidden;
    min-height: 210px;
}

.pos-product-card:hover {
    transform: scale(1.02);
    border-color: #00B193;
    box-shadow: 0 4px 16px rgba(0, 177, 147, 0.2);
}

.pos-product-card--active {
    border-color: #00B193;
    box-shadow: 0 0 0 3px rgba(0, 177, 147, 0.25);
}

.pos-qty-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    background: #00B193;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pos-product-card__img {
    height: 150px;
    background: var(--bs-tertiary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pos-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos-product-card__info {
    padding: 0.65rem 0.75rem 0.8rem;
}

.pos-product-card__name {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pos-product-card__price {
    margin-top: 0.25rem;
    font-weight: 700;
    color: #00B193;
    font-size: 0.95rem;
}

.pos-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bs-secondary-color);
}

.pos-empty i {
    font-size: 3rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 0.75rem;
}

.pos-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--rz-border-color);
}

.pos-cart-lines {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    min-height: 180px;
    max-height: 320px;
}

.pos-cart-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--rz-border-color);
}

.pos-cart-line:last-child {
    border-bottom: none;
}

.pos-cart-line__main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.pos-cart-line__thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.pos-cart-line__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.pos-cart-line__qty {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.pos-cart-footer {
    padding: 1rem;
    border-top: 1px solid var(--aw-line, #e2e8f0);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.pos-cart-footer__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pos-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.75rem 0 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 2px solid #00B193;
    border-radius: 8px;
    font-size: 1.1rem;
}

.pos-total-box strong {
    font-size: 1.35rem;
    color: #00B193;
}

.pos-print-root {
    display: none;
}

.pos-print-doc {
    padding: 24px;
    font-family: Arial, sans-serif;
    max-width: 80mm;
}

.pos-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 12px 0;
}

.pos-print-table th,
.pos-print-table td {
    border-bottom: 1px solid #ddd;
    padding: 4px 2px;
    text-align: left;
}

.pos-print-total {
    font-size: 16px;
    font-weight: bold;
    text-align: right;
    margin-top: 8px;
}

@media (max-width: 992px) {
    .pos-shell {
        grid-template-columns: 1fr;
    }
    .pos-catalog-grid {
        max-height: 380px;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }
    #pos-print-root,
    #pos-print-root * {
        visibility: visible !important;
    }
    #pos-print-root {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   SETTINGS PAGE â€” Lovable-inspired design
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.stg-page {
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: 80px;
}
.stg-page--wide {
    max-width: 1200px;
}

.stg-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,177,147,0.06);
    overflow: hidden;
}

/* Section header */
.stg-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 26px 20px 12px 20px;
}
.stg-section-icon {
    color: #00B193;
    font-size: 15px;
}
.stg-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(76, 110, 147, 0.55);
    white-space: nowrap;
}
.stg-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(0,177,147,0.2), transparent);
    margin-left: 4px;
}

/* Rows container */
.stg-rows {
    padding: 0 4px;
}
.stg-rows--last {
    padding-bottom: 8px;
}

/* Two-column grid */
.stg-rows--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.stg-rows--2col > .stg-row {
    border-bottom: none;
}
.stg-rows--2col > .stg-row:nth-child(odd) {
    border-right: 1px solid #eaf0ee;
}
@media (max-width: 860px) {
    .stg-page--wide { max-width: 100%; }
    .stg-rows--2col { grid-template-columns: 1fr; }
    .stg-rows--2col > .stg-row:nth-child(odd) { border-right: none; }
}

/* Single row */
.stg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    transition: background 0.15s;
}
.stg-row:hover {
    background: #f8fafa;
}
.stg-row--tall {
    align-items: flex-start;
}

.stg-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.stg-row-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5f2;
    color: #00B193;
    font-size: 17px;
    flex-shrink: 0;
    transition: background 0.15s;
}
.stg-row:hover .stg-row-icon {
    background: #d5f0ea;
}

.stg-row-label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #4C6E93;
    line-height: 1.3;
}
.stg-row-desc {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: #7a8f99;
    line-height: 1.3;
}

.stg-row-ctrl {
    flex-shrink: 0;
    margin-left: 20px;
}

.stg-input {
    background: #f8fafa;
    border-color: #d5e3df;
    font-size: 13px;
}
.stg-input:focus {
    border-color: #00B193;
    box-shadow: 0 0 0 2px rgba(0,177,147,0.15);
}

/* Sticky footer */
.stg-footer {
    position: sticky;
    bottom: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-top: 1px solid #e0ebe8;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    z-index: 5;
}

.stg-footer-reset {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #ef4444;
    background: transparent;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.stg-footer-reset:hover {
    background: rgba(239,68,68,0.08);
    color: #dc2626;
}

.stg-footer-right {
    display: flex;
    gap: 10px;
}

.stg-footer-cancel {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #4C6E93;
    background: #f0f4f3;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.stg-footer-cancel:hover {
    background: #e4ecea;
}

.stg-footer-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #00B193, #00997d);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,177,147,0.25);
    transition: box-shadow 0.15s, transform 0.1s;
}
.stg-footer-save:hover {
    box-shadow: 0 4px 14px rgba(0,177,147,0.35);
}
.stg-footer-save:active {
    transform: scale(0.98);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   9. FACTURATION â€” Lovable-inspired layout
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.fact-shell {
    margin: -24px;
    margin-top: -68px;
    margin-bottom: -24px;
    width: calc(100% + 48px);
    height: calc(100dvh - 3.25rem);
    max-height: calc(100dvh - 3.25rem);
    display: flex;
    flex-direction: column;
    background: var(--rz-base-100, #f8f9fb);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Header */
.fact-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.55rem 1rem; background: #fff;
    border-bottom: 1px solid var(--aw-line, #e5e7eb); flex-shrink: 0;
    gap: 0.75rem;
}
.fact-header .aw-object-head__title { font-size: 1.05rem; }
.fact-header .aw-object-head__eyebrow { font-size: 0.62rem; }
.fact-header-left { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.fact-back-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 0;
    border: 1px solid var(--rz-base-200, #e2e8f0); background: #fff;
    color: var(--rz-text-secondary-color, #64748b);
    cursor: pointer; transition: all 0.15s; padding: 0;
}
.fact-back-btn:hover { background: var(--rz-base-100, #f3f4f6); color: var(--rz-text-color); }
.fact-back-btn .rz-icon { font-size: 16px; }
.fact-header-brand { display: flex; align-items: center; gap: 10px; }
.fact-header-icon {
    width: 36px; height: 36px; border-radius: 0;
    background: #00B193; color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.fact-header-icon .rz-icon { font-size: 18px; }
.fact-header-label {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 600; color: var(--rz-text-secondary-color, #9ca3af);
    margin: 0; line-height: 1.2;
}
.fact-header-title {
    font-size: 15px; font-weight: 600; color: var(--rz-text-color, #1f2937);
    margin: 0; line-height: 1.3;
}
.fact-header-right { display: flex; align-items: center; gap: 8px; }
.fact-badge-mono {
    font-family: 'Consolas', 'Monaco', monospace; font-size: 11px;
    background: var(--rz-base-200, #e2e8f0); padding: 3px 10px; border-radius: 0;
    color: var(--rz-text-secondary-color, #64748b);
}
.fact-badge-draft {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
    font-weight: 600; padding: 4px 12px; border-radius: 0;
    background: var(--rz-base-200, #e2e8f0); color: var(--rz-text-secondary-color, #64748b);
}

/* Two-column body */
.fact-body {
    display: flex; flex: 1 1 auto; min-height: 0; overflow: hidden;
}

/* LEFT column */
.fact-left {
    flex: 1; display: flex; flex-direction: column;
    min-width: 0; background: #fff;
    border-right: 1px solid var(--rz-base-200, #e5e7eb);
}

/* Client bar */
.fact-client-bar {
    padding: 10px 20px; border-bottom: 1px solid var(--rz-base-200, #e5e7eb); flex-shrink: 0;
}
.fact-client-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 0;
    background: var(--rz-base-100, #f8fafc); border: 1px solid var(--rz-base-200, #e2e8f0);
}
.fact-client-pill-name { font-size: 13px; font-weight: 500; color: var(--rz-text-color); }
.fact-client-pill-phone { font-size: 12px; color: var(--rz-text-secondary-color, #6b7280); }
.fact-client-pill-x {
    margin-left: auto; display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 0;
    border: none; background: transparent;
    color: var(--rz-text-secondary-color, #94a3b8); cursor: pointer;
    transition: all 0.15s; padding: 0;
}
.fact-client-pill-x:hover { background: rgba(166, 27, 12, 0.08); color: #da4f49; }
.fact-client-search {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 0;
    background: var(--rz-base-100, #f8fafc); border: 1px solid var(--rz-base-200, #e2e8f0);
}

/* Search bar */
.fact-search-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: #fff;
    border-bottom: 1px solid var(--rz-base-200, #e5e7eb); flex-shrink: 0;
}
.fact-search-wrapper { position: relative; flex: 1 1 auto; min-width: 0; height: 38px; }
.fact-search-icon-wrap {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; z-index: 1;
}
.fact-search-input {
    display: block; width: 100%; height: 38px; box-sizing: border-box;
    border-radius: 0; border: 1px solid var(--rz-base-200, #e2e8f0);
    padding: 0 14px 0 40px; font-size: 13px;
    background: var(--rz-base-100, #f8fafc);
    outline: none; color: var(--rz-text-color, #1e293b);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.fact-search-input::placeholder { color: var(--rz-text-secondary-color, #94a3b8); }
.fact-search-input:focus {
    border-color: #00B193;
    box-shadow: 0 0 0 3px rgba(0, 177, 147, 0.1); background: #fff;
}
.fact-scanner-btn {
    display: flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 16px;
    border: none; border-radius: 0;
    background: #00B193; color: #fff;
    font-size: 13px; font-weight: 500; cursor: pointer;
    white-space: nowrap; transition: background 0.15s;
}
.fact-scanner-btn:hover { background: #009a7d; }
.fact-scanner-btn .rz-icon { font-size: 17px; }

/* Suggestions */
.fact-suggestions {
    position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px;
    max-height: 280px; overflow-y: auto; border-radius: 0;
    border: 1px solid var(--rz-base-200, #e2e8f0); background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); z-index: 30;
}
.fact-suggestion-item {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 10px 14px; border: none; background: none;
    text-align: left; cursor: pointer;
    border-bottom: 1px solid var(--rz-base-100, #f1f5f9); transition: background 0.1s;
}
.fact-suggestion-item:last-child { border-bottom: none; }
.fact-suggestion-item:hover { background: var(--rz-base-100, #f8fafc); }
.fact-suggestion-left { display: flex; align-items: center; gap: 10px; }
.fact-suggestion-icon {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 0;
    background: var(--rz-base-200, #e2e8f0); flex-shrink: 0;
}
.fact-suggestion-icon .rz-icon { font-size: 16px; color: var(--rz-text-secondary-color, #64748b); }
.fact-suggestion-name { font-size: 13px; font-weight: 500; color: var(--rz-text-color, #1e293b); }
.fact-suggestion-meta { font-size: 11px; color: var(--rz-text-secondary-color, #94a3b8); }
.fact-suggestion-price { font-size: 13px; font-weight: 600; color: var(--rz-text-color); white-space: nowrap; }

/* Items area */
.fact-items-area {
    flex: 1 1 auto; overflow-y: auto; min-height: 0; padding: 12px 16px;
}
.fact-items-list { display: flex; flex-direction: column; gap: 8px; }

/* Item card */
.fact-item-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-radius: 0;
    background: #fff; border: 1px solid var(--rz-base-200, #e2e8f0);
    box-shadow: 0 1px 4px -1px rgba(0,0,0,0.05); transition: box-shadow 0.15s;
}
.fact-item-card:hover { box-shadow: 0 2px 8px -2px rgba(0,0,0,0.1); }
.fact-item-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.fact-item-idx {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 0;
    background: var(--rz-base-100, #f8fafc);
    font-size: 11px; font-weight: 700; color: var(--rz-text-secondary-color, #94a3b8); flex-shrink: 0;
}
.fact-item-info { flex: 1; min-width: 0; }
.fact-item-name {
    font-size: 13px; font-weight: 500; color: var(--rz-text-color, #1e293b);
    margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fact-item-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; color: var(--rz-text-secondary-color, #94a3b8); margin: 2px 0 0;
}
.fact-code-chip {
    display: inline-block; font-family: 'Consolas', 'Monaco', monospace; font-size: 10px;
    background: var(--rz-base-200, #e2e8f0); padding: 1px 6px; border-radius: 0;
    color: var(--rz-text-secondary-color, #64748b);
}
.fact-item-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.fact-item-total {
    font-size: 13px; font-weight: 600; color: var(--rz-text-color); white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.fact-item-total-block {
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 88px;
}
.fact-item-total-equiv {
    font-size: 11px; font-weight: 500; color: #059669; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Qty controls */
.fact-qty { display: flex; align-items: center; gap: 2px; }
.fact-qty-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 0;
    border: 1px solid var(--rz-base-200, #e2e8f0);
    background: #fff; color: var(--rz-text-secondary-color, #64748b);
    cursor: pointer; transition: all 0.15s; padding: 0;
}
.fact-qty-btn:hover:not(:disabled) { background: var(--rz-base-100, #f8fafc); color: var(--rz-text-color); }
.fact-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.fact-qty-btn .rz-icon { font-size: 15px; }
.fact-qty-val,
.fact-qty-input {
    min-width: 44px; max-width: 72px; text-align: center; font-size: 14px; font-weight: 600;
    color: var(--rz-text-color); font-variant-numeric: tabular-nums;
}
.fact-qty-input {
    height: 28px; padding: 0 4px;
    border: 1px solid var(--rz-base-300, #cbd5e1); border-radius: 4px;
    background: var(--rz-base-background-color, #fff);
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.fact-qty-input:focus {
    border-color: var(--rz-primary, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.fact-rounding-row { font-size: 12px; color: #64748b; }

/* Delete */
.fact-del-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 0;
    border: none; background: transparent;
    color: var(--rz-text-secondary-color, #94a3b8);
    cursor: pointer; transition: all 0.15s; padding: 0;
}
.fact-del-btn:hover { background: rgba(166, 27, 12, 0.08); color: #da4f49; }
.fact-del-btn .rz-icon { font-size: 16px; }

/* Empty state */
.fact-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; padding: 40px 20px; gap: 8px; opacity: 0.5;
}
.fact-empty-circle {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 0;
    background: var(--rz-base-200, #e2e8f0); margin-bottom: 4px;
}
.fact-empty-circle .rz-icon { font-size: 24px; color: var(--rz-text-secondary-color, #94a3b8); }
.fact-empty-title { font-size: 14px; font-weight: 500; color: var(--rz-text-secondary-color); margin: 0; }
.fact-empty-hint { font-size: 12px; color: var(--rz-text-secondary-color); margin: 0; }

/* RIGHT column (sidebar) — sticky totals + actions */
.fact-right {
    width: 340px;
    display: flex;
    flex-direction: column;
    background: #fff;
    flex-shrink: 0;
    overflow: hidden;
    min-height: 0;
    border-left: 1px solid var(--aw-line, #cbd5e1);
}
.fact-right-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.fact-right-sticky {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid var(--aw-line, #cbd5e1);
    box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.06);
    z-index: 2;
}
.fact-sb-section {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--aw-line, #e2e8f0);
}
.fact-sb-label {
    display: block; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--rz-text-secondary-color, #6b7280); margin-bottom: 8px;
}
.fact-sb-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.fact-reduction-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.fact-loc-readonly {
    display: flex;
    align-items: center;
    min-height: var(--aw-control-h, 2.15rem);
    padding: 0 0.65rem;
    border: 1px solid #94a3b8;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--aw-ink, #0f172a);
    background: #f8fafc;
}
.fact-pct-badge {
    display: flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; border-radius: 0;
    background: var(--rz-base-200, #e2e8f0);
    font-size: 12px; font-weight: 600; color: var(--rz-text-secondary-color, #64748b);
}

/* Totals */
.fact-sb-totals {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.9rem 0.45rem;
}
.fact-sb-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.78rem; color: #475569;
}
.fact-sb-val {
    font-weight: 650;
    color: var(--aw-ink, #0f172a);
    font-variant-numeric: tabular-nums;
}
.fact-sb-divider { height: 1px; background: var(--aw-line, #e2e8f0); margin: 0.25rem 0; }
.fact-sb-net {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--aw-ink, #0f172a);
    align-items: baseline;
}
.fact-net-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #007a68;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.fact-amount-words { padding: 2px 0; font-size: 11px; color: #777; font-style: italic; text-align: right; }
.fact-amount-equiv {
    padding: 0;
    font-size: 0.68rem;
    color: #64748b;
    text-align: right;
}

/* Actions pinned — always visible */
.fact-sb-actions {
    padding: 0.55rem 0.9rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.fact-sb-actions__primary {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}
.fact-sb-actions .aw-btn--ghost:not(.aw-btn--icon) {
    flex: 0 0 auto;
}

/* Responsive */
@media (min-width: 1400px) { .fact-right { width: 360px; } }
@media (max-width: 1100px) {
    .fact-right { width: 300px; }
    .fact-sb-section { padding: 0.6rem 0.75rem; }
    .fact-sb-totals, .fact-sb-actions { padding-left: 0.75rem; padding-right: 0.75rem; }
}
@media (max-width: 860px) {
    .fact-right { width: 270px; }
    .fact-header { padding: 8px 14px; }
    .fact-search-bar { padding: 8px 14px; }
    .fact-client-bar { padding: 8px 14px; }
    .fact-scanner-btn span:not(.rz-icon) { display: none; }
    .fact-scanner-btn { padding: 0 10px; min-width: auto; }
    .fact-items-area { padding: 8px 10px; }
    .fact-sb-actions { flex-wrap: wrap; }
    .fact-sb-actions__primary { width: 100%; flex: 1 1 100%; }
}
@media (max-width: 540px) {
    .fact-shell { margin: -12px -16px -16px -16px; width: calc(100% + 32px); }
    .fact-header-right { display: none; }
    .fact-right { width: 100%; max-height: 42vh; }
    .fact-body { flex-direction: column; }
    .fact-sb-two-cols { grid-template-columns: 1fr; gap: 6px; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   10. IMPRESSION
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media print {
    /* â”€â”€ Masquer tout sauf le contenu du tableau â”€â”€ */
    .sidebar, .topbar, .topbar-actions, .topbar-user,
    .sb-footer, .fact-header, .fact-sb-actions,
    .fact-scanner-btn, .fact-back-btn,
    .topnav, .topnav--unified,
    .report-header, .report-toolbar,
    .nav-tabs, .hub-tabs-shell > .nav,
    .report-tabs-shell > .nav,
    .mud-table-pagination, .mud-table-pagination *,
    footer, .mud-snackbar-provider,
    .rz-button, #blazor-error-ui,
    .btn, button.btn {
        display: none !important;
    }
    html, body { height: auto !important; overflow: visible !important; background: #fff !important; color: #000 !important; }
    .app-layout { display: block !important; height: auto !important; overflow: visible !important; }
    .main-area { width: 100% !important; overflow: visible !important; display: block !important; }
    .page-content { overflow: visible !important; padding: 0 !important; height: auto !important; }
    .report-shell { padding: 0 !important; margin: 0 !important; }
    .report-tabs-shell { box-shadow: none !important; border: none !important; }
    .card { box-shadow: none !important; border: none !important; }
    .card-body { padding: 0 !important; }
    .hub-tabs-shell, .fact-body {
        box-shadow: none !important; border: none !important;
    }
    /* â”€â”€ Forcer la grille MudBlazor Ã  afficher TOUTES les lignes â”€â”€ */
    .mud-table-container { max-height: none !important; overflow: visible !important; }
    .mud-table { overflow: visible !important; }
    .mud-table-root { overflow: visible !important; }
    /* â”€â”€ Tables lisibles â”€â”€ */
    .mud-table-cell, .mud-table-head .mud-table-cell {
        color: #000 !important; font-size: 11px !important;
        border-bottom: 1px solid #ccc !important;
        padding: 4px 8px !important;
    }
    .mud-table-head { background: #f0f0f0 !important; }
    .mud-table-head .mud-table-cell { font-weight: 700 !important; }
    .rz-data-grid, .rz-datatable, .rz-grid-table { width: 100% !important; overflow: visible !important; }
    .rz-data-grid-data tr, .rz-datatable-data tr { page-break-inside: avoid; }
    /* â”€â”€ En-tÃªte d'impression â”€â”€ */
    .app-layout::before {
        content: attr(data-print-title);
        display: block; font-size: 16px; font-weight: 700;
        margin-bottom: 8px; border-bottom: 2px solid #333; padding-bottom: 6px;
    }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    @page { margin: 15mm 12mm; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   11. BOOTSTRAP BUTTONS OVERRIDES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Square corners for all Bootstrap buttons */
.btn {
    border-radius: 0 !important;
}

/* Primary button - green */
.btn-primary {
    background-color: #00B193 !important;
    border-color: #00B193 !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #009a7d !important;
    border-color: #009a7d !important;
    color: #fff !important;
}

/* Secondary button - dark teal */
.btn-secondary {
    background-color: #4C6E93 !important;
    border-color: #4C6E93 !important;
    color: #fff !important;
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #385472 !important;
    border-color: #385472 !important;
}

/* Danger button - accent red */
.btn-danger {
    background-color: #da4f49 !important;
    border-color: #da4f49 !important;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: #bd362f !important;
    border-color: #bd362f !important;
}

/* Outline primary - green outline */
.btn-outline-primary {
    color: #00B193 !important;
    border-color: #00B193 !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #00B193 !important;
    border-color: #00B193 !important;
    color: #fff !important;
}

/* Outline secondary - dark teal outline */
.btn-outline-secondary {
    color: #4C6E93 !important;
    border-color: #4C6E93 !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: #4C6E93 !important;
    border-color: #4C6E93 !important;
    color: #fff !important;
}

/* Badge overrides */
.badge {
    border-radius: 0 !important;
}

.bg-primary {
    background-color: #4C6E93 !important;
}

.bg-secondary {
    background-color: #00B193 !important;
}

.bg-danger {
    background-color: #da4f49 !important;
}

.text-primary {
    color: #4C6E93 !important;
}

.text-secondary {
    color: #00B193 !important;
}

.text-danger {
    color: #da4f49 !important;
}

/* Alert overrides */
.alert {
    border-radius: 0 !important;
}

/* Input/Form control square corners */
.form-control,
.form-select {
    border-radius: 0 !important;
}

/* Card square corners */
.card {
    border-radius: 0 !important;
}

/* Dropdown square corners */
.dropdown-menu {
    border-radius: 0 !important;
}

.dropdown-item {
    border-radius: 0 !important;
}

/* Modal square corners */
.modal-content {
    border-radius: 0 !important;
}

/* Input group square corners */
.input-group > .form-control,
.input-group > .form-select,
.input-group > .btn {
    border-radius: 0 !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FORCE REMOVE ALL RADIUS - NO ROUNDED ANYWHERE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Badge - absolutely no radius */
.badge,
.badge.rounded-pill {
    border-radius: 0 !important;
}

/* Dropdown items */
.dropdown-item,
.dropdown-menu {
    border-radius: 0 !important;
}

/* Alert boxes */
.alert {
    border-radius: 0 !important;
}

/* Pagination */
.pagination .page-link,
.page-link {
    border-radius: 0 !important;
}

/* List group items */
.list-group-item,
.list-group-item.active,
.list-group-item:first-child,
.list-group-item:last-child {
    border-radius: 0 !important;
}

/* Progress bar */
.progress,
.progress-bar {
    border-radius: 0 !important;
}

/* Carousel */
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators [data-bs-target] {
    border-radius: 0 !important;
}

/* Popovers */
.popover {
    border-radius: 0 !important;
}

/* Tooltips */
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow,
.bs-tooltip-top .tooltip-arrow,
.tooltip {
    border-radius: 0 !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Bootstrap nav-tabs â€” custom flat style
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav-tabs {
    border-bottom: 1px solid #e2e8f0;
    background: #f1f5f9;
    gap: 0;
}

.nav-tabs .nav-link {
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 2px solid transparent !important;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-tabs .nav-link:hover {
    color: #4C6E93;
    background: rgba(0, 177, 147, 0.06);
    border-bottom-color: #cbd5e1 !important;
}

.nav-tabs .nav-link.active {
    color: #00B193 !important;
    background: #ffffff !important;
    border-bottom: 2px solid #00B193 !important;
    box-shadow: none;
}

.nav-tabs .nav-link i {
    font-size: 0.85rem;
}

/* Nav pills */
.nav-pills .nav-link {
    border-radius: 0 !important;
}

/* Breadcrumb */
.breadcrumb {
    border-radius: 0 !important;
}

/* Avatar and img-thumbnail */
.avatar,
.img-thumbnail {
    border-radius: 0 !important;
}

/* Spinners */
.spinner-border,
.spinner-grow {
    border-radius: 0 !important;
}

/* Close button */
.btn-close {
    border-radius: 0 !important;
}

/* Form check inputs */
.form-check-input {
    border-radius: 0 !important;
}

/* Range slider */
.form-range {
    border-radius: 0 !important;
}

/* Offcanvas */
.offcanvas {
    border-radius: 0 !important;
}

/* Toasts */
.toast {
    border-radius: 0 !important;
}

/* MudBlazor chip and avatar */
.mud-chip,
.mud-avatar {
    border-radius: 0 !important;
}

/* Radzen components continue to have 0 radius */
.rz-button,
.rz-textbox,
.rz-dropdown,
.rz-card,
.rz-dialog,
.rz-tabview-nav-link {
    border-radius: 0 !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   12. DARK MODE â€” Comprehensive overrides
   All [data-bs-theme="dark"] rules consolidated here
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Layout: Topbar â”€â”€ */
[data-bs-theme="dark"] .topbar {
    background: #0f172a;
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .topbar-page-name { color: #e2e8f0; }
[data-bs-theme="dark"] .topbar-date { color: #94a3b8; }
[data-bs-theme="dark"] .topbar-btn {
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
}
[data-bs-theme="dark"] .topbar-btn:hover {
    background: rgba(0,158,132,0.16);
    color: #5eead4;
}
[data-bs-theme="dark"] .topbar-user {
    border-left-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .topbar-user:hover { background: rgba(255,255,255,0.06); }
[data-bs-theme="dark"] .topbar-user-name { color: #e2e8f0; }
[data-bs-theme="dark"] .topbar-user-role { color: #94a3b8; }
[data-bs-theme="dark"] .topbar-brand { color: #e2e8f0; }
[data-bs-theme="dark"] .topbar-avatar {
    background: rgba(0,158,132,0.22);
    color: #5eead4;
}

/* â”€â”€ Layout: Topnav unified (dark mode) â”€â”€ */
[data-bs-theme="dark"] .topnav,
[data-bs-theme="dark"] .topnav--unified {
    background: #0f172a;
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .topnav-brand { color: #e2e8f0; }
[data-bs-theme="dark"] .topnav-item {
    color: rgba(255,255,255,0.7);
}
[data-bs-theme="dark"] .topnav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .topnav-item--active {
    color: #5eead4;
}
[data-bs-theme="dark"] .topnav-action-btn {
    color: #94a3b8;
}
[data-bs-theme="dark"] .topnav-action-btn:hover {
    color: #5eead4;
}
[data-bs-theme="dark"] .topnav-user-name { color: #e2e8f0; }
[data-bs-theme="dark"] .topnav-user-role { color: #94a3b8; }

/* â”€â”€ Layout: Sidebar (dark mode) â”€â”€ */
[data-bs-theme="dark"] .sidebar {
    background: #0f172a;
    border-right-color: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .sb-brand {
    background: #0f172a;
    border-bottom-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .sb-section-label {
    color: rgba(148,163,184,0.6);
}
[data-bs-theme="dark"] .sb-item {
    color: rgba(226,232,240,0.7);
}
[data-bs-theme="dark"] .sb-item:hover {
    background: rgba(0,158,132,0.16);
    color: #5eead4;
}
[data-bs-theme="dark"] .sb-item--active {
    background: rgba(0,158,132,0.22) !important;
    color: #5eead4 !important;
    box-shadow: inset 3px 0 0 #009e84;
    border-left-color: transparent;
}
[data-bs-theme="dark"] .sb-icon {
    color: rgba(148,163,184,0.6);
}
[data-bs-theme="dark"] .sb-item:hover .sb-icon,
[data-bs-theme="dark"] .sb-item--active .sb-icon {
    color: #5eead4 !important;
}
[data-bs-theme="dark"] .sb-footer {
    border-top-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .sb-footer-btn {
    color: rgba(148,163,184,0.6);
}
[data-bs-theme="dark"] .sb-footer-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
}
[data-bs-theme="dark"] .sb-footer-btn--danger:hover {
    color: #f87171;
    background: rgba(248,113,113,0.1);
}
[data-bs-theme="dark"] .sb-brand-name {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .sb-brand-sub {
    color: rgba(148,163,184,0.6);
}

/* â”€â”€ Layout: App background â”€â”€ */
[data-bs-theme="dark"] .app-layout { background: #1a1a2e; }

/* â”€â”€ Bootstrap cards â”€â”€ */
[data-bs-theme="dark"] .card-header {
    background: transparent !important;
    border-bottom-color: rgba(255,255,255,0.08);
    color: #e2e8f0;
}
[data-bs-theme="dark"] .card-body { color: #e2e8f0; }
[data-bs-theme="dark"] .card-header h3,
[data-bs-theme="dark"] .card-header h4,
[data-bs-theme="dark"] .card-header h5 { color: #e2e8f0; }

/* â”€â”€ Bootstrap list-group (Dashboard, etc.) â”€â”€ */
[data-bs-theme="dark"] .list-group-item {
    background: #16213e;
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .list-group-item:hover {
    background: #1e293b;
}

/* â”€â”€ Bootstrap bg-light fix â”€â”€ */
[data-bs-theme="dark"] .bg-light {
    background-color: rgba(255,255,255,0.08) !important;
    color: #94a3b8 !important;
}

/* â”€â”€ Bootstrap btn-light fix â”€â”€ */
[data-bs-theme="dark"] .btn-light {
    background-color: #1e293b !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .btn-light:hover {
    background-color: #253345 !important;
    color: #fff !important;
}

/* â”€â”€ Bootstrap text-dark fix â”€â”€ */
[data-bs-theme="dark"] .text-dark {
    color: #e2e8f0 !important;
}

/* â”€â”€ Bootstrap border-bottom etc. â”€â”€ */
[data-bs-theme="dark"] .border-bottom {
    border-bottom-color: rgba(255,255,255,0.08) !important;
}
[data-bs-theme="dark"] .border {
    border-color: rgba(255,255,255,0.12) !important;
}
[data-bs-theme="dark"] .border-top {
    border-top-color: rgba(255,255,255,0.08) !important;
}

/* â”€â”€ Badge subtle variants â”€â”€ */
[data-bs-theme="dark"] .bg-primary-subtle {
    background-color: rgba(37,60,69,0.35) !important;
}
[data-bs-theme="dark"] .bg-secondary-subtle,
[data-bs-theme="dark"] .bg-success-subtle {
    background-color: rgba(0,177,147,0.15) !important;
}
[data-bs-theme="dark"] .bg-info-subtle {
    background-color: rgba(59,130,246,0.15) !important;
}
[data-bs-theme="dark"] .bg-warning-subtle {
    background-color: rgba(245,158,11,0.2) !important;
}
[data-bs-theme="dark"] .bg-danger-subtle {
    background-color: rgba(166,27,12,0.2) !important;
}

/* â”€â”€ link-primary â”€â”€ */
[data-bs-theme="dark"] .link-primary {
    color: #00B193 !important;
}
[data-bs-theme="dark"] .link-primary:hover {
    color: #33c4ac !important;
}

/* â”€â”€ Bootstrap text-primary fix â”€â”€ */
[data-bs-theme="dark"] .text-primary {
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .text-success {
    color: #00B193 !important;
}

/* â”€â”€ Tables â”€â”€ */
[data-bs-theme="dark"] .table {
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .table thead th {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-bottom-color: rgba(255,255,255,0.1) !important;
}
[data-bs-theme="dark"] .table tbody tr:hover {
    background: rgba(0,177,147,0.06);
}

/* â”€â”€ Radzen DataGrid dark â”€â”€ */
[data-bs-theme="dark"] .rz-datatable thead th,
[data-bs-theme="dark"] .rz-grid-table thead th {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-bottom-color: rgba(255,255,255,0.1) !important;
}
[data-bs-theme="dark"] .rz-datatable tbody tr,
[data-bs-theme="dark"] .rz-grid-table tbody tr {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .rz-datatable tbody tr:hover,
[data-bs-theme="dark"] .rz-grid-table tbody tr:hover {
    background: rgba(0,177,147,0.08) !important;
}
[data-bs-theme="dark"] .rz-datatable td,
[data-bs-theme="dark"] .rz-grid-table td {
    border-bottom-color: rgba(255,255,255,0.06) !important;
}
[data-bs-theme="dark"] .rz-pager {
    background: #16213e;
    color: #e2e8f0;
    border-top-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .rz-pager .rz-pager-page { color: #94a3b8; }
[data-bs-theme="dark"] .rz-pager .rz-state-active { background: #00B193; color: #fff; }
[data-bs-theme="dark"] .rz-datatable .rz-datatable-filter-row th {
    background: #0f172a !important;
}

/* â”€â”€ MudBlazor DataGrid dark â”€â”€ */
[data-bs-theme="dark"] .mud-table {
    background: #16213e;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .mud-table .mud-table-head th {
    background: #0f172a;
    color: #94a3b8;
    border-bottom-color: rgba(255,255,255,0.1);
}
[data-bs-theme="dark"] .mud-table .mud-table-body td {
    border-bottom-color: rgba(255,255,255,0.06);
    color: #e2e8f0;
}
[data-bs-theme="dark"] .mud-table .mud-table-row:hover {
    background: rgba(0,177,147,0.08) !important;
}
[data-bs-theme="dark"] .mud-table-pagination {
    color: #94a3b8;
}
[data-bs-theme="dark"] .mud-table-toolbar {
    background: transparent;
    color: #e2e8f0;
}

/* â”€â”€ MudBlazor DatePicker â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* IMPORTANT : ne pas mettre Style="width:â€¦" sur MudDatePicker (rÃ©trÃ©cit le calendrier popup).
   Utiliser Class="app-date-field" sur le composant, ou le wrapper .app-date-field-wrap */
.app-date-field-wrap {
    width: 148px;
    max-width: 160px;
    min-width: 124px;
    flex: 0 0 auto;
}
.app-date-field-wrap .mud-picker,
.app-date-field-wrap .mud-input-control {
    width: 100% !important;
    max-width: 100% !important;
}
.mud-input-control.app-date-field,
.mud-picker.app-date-field {
    width: 148px;
    max-width: 160px;
    min-width: 124px;
    flex: 0 0 auto;
}
.mud-popover-paper:has(.mud-picker-calendar-container),
.mud-popover-paper:has(.mud-picker-container),
.mud-picker-inline-paper,
.mud-picker-popover-paper {
    min-width: 320px !important;
    width: auto !important;
    max-width: min(360px, calc(100vw - 24px)) !important;
    overflow: visible !important;
}
.mud-picker-calendar-container,
.mud-picker-calendar,
.mud-picker-content {
    min-width: 300px !important;
    width: 100% !important;
    box-sizing: border-box;
}
.mud-picker-toolbar {
    width: 100%;
    min-width: 280px;
    box-sizing: border-box;
}
.mud-picker-calendar .mud-daypicker-monthday {
    flex: 1 1 14.2857%;
    max-width: 14.2857%;
}
.report-toolbar .app-date-field,
.report-toolbar .app-date-field-wrap,
.hub-filter-row .app-date-field {
    flex-shrink: 0;
}

/* â”€â”€ MudBlazor Select / Autocomplete popover â”€â”€ */
[data-bs-theme="dark"] .mud-popover {
    background: #1e293b;
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.12);
}
[data-bs-theme="dark"] .mud-list-item:hover {
    background: rgba(0,177,147,0.1) !important;
}
[data-bs-theme="dark"] .mud-list-item-text { color: #e2e8f0; }

/* â”€â”€ MudBlazor Dialog dark â”€â”€ */
[data-bs-theme="dark"] .mud-dialog {
    background: #16213e;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .mud-dialog-title {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .mud-dialog-content {
    color: #e2e8f0;
}

/* â”€â”€ MudBlazor Chip dark â”€â”€ */
[data-bs-theme="dark"] .mud-chip.mud-chip-outlined {
    border-color: rgba(255,255,255,0.2);
    color: #e2e8f0;
}

/* â”€â”€ MudBlazor DatePicker dark â”€â”€ */
[data-bs-theme="dark"] .mud-picker {
    background: #1e293b;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .mud-picker-toolbar {
    background: #0f3460;
    color: #e2e8f0;
}

/* â”€â”€ MudBlazor Charts â”€â”€ */
[data-bs-theme="dark"] .mud-chart text {
    fill: #94a3b8 !important;
}
[data-bs-theme="dark"] .mud-chart-legend-item {
    color: #e2e8f0 !important;
}

/* â”€â”€ Radzen Card/Dialog dark â”€â”€ */
[data-bs-theme="dark"] .rz-card {
    background: #16213e !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .rz-dialog {
    background: #16213e !important;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .rz-dialog-content {
    color: #e2e8f0;
}

/* â”€â”€ Radzen tabs dark â”€â”€ */
[data-bs-theme="dark"] .rz-tabview-nav {
    background: #0f172a !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
}
[data-bs-theme="dark"] .rz-tabview-nav-link {
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] .rz-tabview-selected .rz-tabview-nav-link {
    color: #00B193 !important;
    background: #16213e !important;
}
[data-bs-theme="dark"] .rz-tabview-panels {
    background: #16213e;
}

/* â”€â”€ Hub pages dark â”€â”€ */
[data-bs-theme="dark"] .hub-tabs-shell {
    border-color: rgba(255,255,255,0.08) !important;
}
[data-bs-theme="dark"] .hub-filter-row {
    background: #0f172a;
    border-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .hub-filter-row .mud-input-root input,
[data-bs-theme="dark"] .hub-filter-row .mud-input-slot input,
[data-bs-theme="dark"] .hub-filter-row .mud-input-control input {
    color: #e2e8f0 !important;
    caret-color: #e2e8f0;
}
[data-bs-theme="dark"] .hub-tabs-shell .rz-tabview-panel > .rz-stack.rz-orientation-horizontal {
    background: #0f172a;
    border-color: rgba(255,255,255,0.08);
}

/* â”€â”€ Report pages dark â”€â”€ */
[data-bs-theme="dark"] .report-tabs-shell .rz-tabview-nav {
    background: #0f172a !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
}
[data-bs-theme="dark"] .report-tabs-shell .rz-tabview-nav-link {
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] .report-tabs-shell .rz-tabview-selected .rz-tabview-nav-link {
    background: #16213e !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .report-tabs-shell .rz-tabview-panels {
    background: #16213e;
}
[data-bs-theme="dark"] .report-kpi-card {
    background: linear-gradient(180deg, #1e293b 0%, #16213e 100%) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .report-toolbar .rz-datepicker,
[data-bs-theme="dark"] .report-toolbar .rz-dropdown,
[data-bs-theme="dark"] .report-toolbar .rz-textbox,
[data-bs-theme="dark"] .report-toolbar .rz-numeric {
    background: #1e293b !important;
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.12);
}
[data-bs-theme="dark"] .report-shell .rz-datatable-thead th,
[data-bs-theme="dark"] .report-shell .rz-grid-table thead th {
    background: #0f172a !important;
    color: #94a3b8 !important;
}

/* â”€â”€ Facturation page dark â”€â”€ */
[data-bs-theme="dark"] .fact-shell { background: #1a1a2e; }
[data-bs-theme="dark"] .fact-header {
    background: #16213e;
    border-bottom-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .fact-header-title { color: #e2e8f0; }
[data-bs-theme="dark"] .fact-header-label { color: #94a3b8; }
[data-bs-theme="dark"] .fact-back-btn {
    background: #1e293b;
    border-color: rgba(255,255,255,0.12);
    color: #94a3b8;
}
[data-bs-theme="dark"] .fact-back-btn:hover {
    background: #253345;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .fact-badge-mono {
    background: rgba(255,255,255,0.1);
    color: #94a3b8;
}
[data-bs-theme="dark"] .fact-badge-draft {
    background: rgba(255,255,255,0.1);
    color: #94a3b8;
}
[data-bs-theme="dark"] .fact-left {
    background: #16213e;
    border-right-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .fact-right { background: #16213e; }
[data-bs-theme="dark"] .fact-client-bar {
    border-bottom-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .fact-client-pill {
    background: #0f172a;
    border-color: rgba(255,255,255,0.1);
}
[data-bs-theme="dark"] .fact-client-pill-name { color: #e2e8f0; }
[data-bs-theme="dark"] .fact-search-bar {
    background: #16213e;
    border-bottom-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .fact-search-input {
    background: #0f172a;
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.12);
}
[data-bs-theme="dark"] .fact-search-input:focus {
    background: #1e293b;
}
[data-bs-theme="dark"] .fact-suggestions {
    background: #1e293b;
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
[data-bs-theme="dark"] .fact-suggestion-item {
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .fact-suggestion-item:hover {
    background: rgba(0,177,147,0.08);
}
[data-bs-theme="dark"] .fact-suggestion-name { color: #e2e8f0; }
[data-bs-theme="dark"] .fact-suggestion-icon { background: rgba(255,255,255,0.08); }
[data-bs-theme="dark"] .fact-item-card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .fact-item-name { color: #e2e8f0; }
[data-bs-theme="dark"] .fact-item-total { color: #e2e8f0; }
[data-bs-theme="dark"] .fact-item-total-equiv { color: #34d399; }
[data-bs-theme="dark"] .fact-item-idx { background: rgba(255,255,255,0.06); }
[data-bs-theme="dark"] .fact-qty-btn {
    background: #16213e;
    border-color: rgba(255,255,255,0.12);
    color: #94a3b8;
}
[data-bs-theme="dark"] .fact-qty-btn:hover:not(:disabled) {
    background: #253345;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .fact-qty-val,
[data-bs-theme="dark"] .fact-qty-input { color: #e2e8f0; }
[data-bs-theme="dark"] .fact-qty-input {
    background: #1e293b; border-color: #475569;
}
[data-bs-theme="dark"] .fact-qty-input:focus {
    border-color: #60a5fa; box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}
[data-bs-theme="dark"] .fact-sb-section {
    border-bottom-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .fact-sb-divider {
    background: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .fact-sb-net { color: #e2e8f0; }
[data-bs-theme="dark"] .fact-sb-actions {
    border-top-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .fact-items-area { background: #1a1a2e; }
[data-bs-theme="dark"] .fact-empty-circle { background: rgba(255,255,255,0.08); }
[data-bs-theme="dark"] .fact-code-chip { background: rgba(255,255,255,0.1); color: #94a3b8; }
[data-bs-theme="dark"] .fact-pct-badge { background: rgba(255,255,255,0.1); color: #94a3b8; }

/* â”€â”€ Settings page dark â”€â”€ */
[data-bs-theme="dark"] .stg-page .stg-card {
    background: #16213e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15);
}
[data-bs-theme="dark"] .stg-row:hover { background: rgba(255,255,255,0.03); }
[data-bs-theme="dark"] .stg-rows--2col > .stg-row:nth-child(odd) {
    border-right-color: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .stg-input {
    background: #0f172a;
    border-color: rgba(255,255,255,0.12);
    color: #e2e8f0;
}
[data-bs-theme="dark"] .stg-footer-cancel {
    background: #1e293b;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .stg-footer-cancel:hover {
    background: #253345;
}

/* â”€â”€ Nav tabs dark â”€â”€ */
[data-bs-theme="dark"] .nav-tabs {
    background: #0f172a;
    border-bottom-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #94a3b8;
}
[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    color: #e2e8f0;
    background: rgba(0,177,147,0.08);
}
[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    color: #00B193 !important;
    background: #16213e !important;
}

/* â”€â”€ Radzen notification dark â”€â”€ */
[data-bs-theme="dark"] .rz-notification {
    background: #1e293b;
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.12);
}

/* â”€â”€ Radzen Buttons in dark mode â”€â”€ */
[data-bs-theme="dark"] .rz-button.rz-secondary {
    background-color: #1e293b !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .rz-button.rz-secondary:hover {
    background-color: #253345 !important;
}
[data-bs-theme="dark"] .rz-button.rz-light,
[data-bs-theme="dark"] .rz-button.rz-variant-outlined {
    border-color: rgba(255,255,255,0.15) !important;
    color: #e2e8f0 !important;
}

/* â”€â”€ Bootstrap btn-outline-secondary dark â”€â”€ */
[data-bs-theme="dark"] .btn-outline-secondary {
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.2) !important;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.3) !important;
    color: #fff !important;
}
[data-bs-theme="dark"] .btn-secondary {
    background-color: #1e293b !important;
    border-color: rgba(255,255,255,0.12) !important;
}

/* â”€â”€ General text/heading fixes â”€â”€ */
[data-bs-theme="dark"] h1, [data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3, [data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5, [data-bs-theme="dark"] h6 {
    color: #e2e8f0;
}
[data-bs-theme="dark"] p { color: #cbd5e1; }
[data-bs-theme="dark"] .fw-bold { color: #e2e8f0; }

/* â”€â”€ Dark mode scrollbar â”€â”€ */
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #475569; }

/* â”€â”€ Dark mode utility classes for Razor inline color replacement â”€â”€ */
/* Hub icon badge â€” adapt to dark */
[data-bs-theme="dark"] .hub-icon-badge {
    background: rgba(0,177,147,0.15) !important;
    color: #00B193 !important;
}
.hub-icon-badge {
    background: #d4f5ef;
    color: #00B193;
}

/* Admin hub icon badge (dark teal) */
[data-bs-theme="dark"] .hub-icon-badge-admin {
    background: rgba(37,60,69,0.3) !important;
    color: #94a3b8 !important;
}
.hub-icon-badge-admin {
    background: rgba(37,60,69,0.12);
    color: #4C6E93;
}

/* Save button class (teal) â€” works in both modes */
.btn-save-teal {
    background: #0d9488;
    border: none;
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-save-teal:hover {
    background: #0f766e;
    color: #fff;
}

/* â”€â”€ Empty state / muted icons â”€â”€ */
[data-bs-theme="dark"] .icon-shape.bg-light i,
[data-bs-theme="dark"] .icon-shape.bg-light .ti {
    color: #94a3b8 !important;
}

/* â”€â”€ MudInput text color fix â”€â”€ */
[data-bs-theme="dark"] .mud-input-slot,
[data-bs-theme="dark"] .mud-input input,
[data-bs-theme="dark"] .mud-input textarea,
[data-bs-theme="dark"] .mud-autocomplete input,
[data-bs-theme="dark"] .search-autocomplete input {
    color: #e2e8f0 !important;
    caret-color: #e2e8f0;
}
[data-bs-theme="dark"] .mud-select .mud-input-slot {
    color: #e2e8f0 !important;
}

/* â”€â”€ MudBlazor Switch â”€â”€ */
[data-bs-theme="dark"] .mud-switch-label { color: #e2e8f0; }

/* â”€â”€ MudBlazor Checkbox â”€â”€ */
[data-bs-theme="dark"] .mud-checkbox-label { color: #e2e8f0; }

/* â”€â”€ Radzen form fields dark â”€â”€ */
[data-bs-theme="dark"] .rz-textbox,
[data-bs-theme="dark"] .rz-dropdown,
[data-bs-theme="dark"] .rz-numeric,
[data-bs-theme="dark"] .rz-datepicker,
[data-bs-theme="dark"] .rz-password,
[data-bs-theme="dark"] .rz-textarea {
    background: #1e293b;
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.12);
}

/* â”€â”€ Modal backdrop â”€â”€ */
[data-bs-theme="dark"] .mud-overlay {
    background: rgba(0,0,0,0.6);
}

/* â”€â”€ Radzen dialog titlebar already dark (#4C6E93), fine â”€â”€ */

/* â”€â”€ Alert dark â”€â”€ */
[data-bs-theme="dark"] .alert {
    border-color: rgba(255,255,255,0.12);
}
[data-bs-theme="dark"] .alert-info {
    background: rgba(59,130,246,0.12);
    color: #93bbfc;
    border-color: rgba(59,130,246,0.2);
}
[data-bs-theme="dark"] .alert-warning {
    background: rgba(245,158,11,0.12);
    color: #fbbf24;
    border-color: rgba(245,158,11,0.2);
}

/* â”€â”€ form-check â”€â”€ */
[data-bs-theme="dark"] .form-check-label { color: #e2e8f0; }
[data-bs-theme="dark"] .form-check-input {
    background-color: #1e293b;
    border-color: rgba(255,255,255,0.2);
}
[data-bs-theme="dark"] .form-check-input:checked {
    background-color: #00B193;
    border-color: #00B193;
}

/* â”€â”€ Detail view label/value pairs â”€â”€ */
[data-bs-theme="dark"] .detail-label { color: #94a3b8; }
[data-bs-theme="dark"] .detail-value { color: #e2e8f0; }

/* â”€â”€ Services â€” guide visuel simple â”€â”€ */
.svc-guide {
    border: 1px solid #b8e0d8;
    background: #f0faf8;
    padding: 14px 18px;
    border-radius: 0;
}
.svc-guide-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #0f766e;
}
.svc-guide-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.svc-guide-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}
.svc-guide-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00B193;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.svc-guide-arrow {
    color: #94a3b8;
    font-weight: 600;
}
.svc-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00B193;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: middle;
}

.svc-subnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.svc-subnav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.svc-subnav-link:hover {
    background: #f8fafc;
    color: #0f766e;
}
.svc-subnav-link.active {
    background: #00B193;
    border-color: #00B193;
    color: #fff;
}

/* â”€â”€ Services facturation â€” mÃªme look que caisse magasin â”€â”€ */
.fact-shell--loading {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}
.fact-header-icon--svc {
    background: #6366f1;
}
.fact-svc-strip {
    padding: 0 20px 10px;
    background: #fff;
    border-bottom: 1px solid var(--rz-base-200, #e5e7eb);
    flex-shrink: 0;
}
.fact-svc-strip .svc-subnav {
    margin-bottom: 0;
}
.fact-svc-mission-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--rz-base-200, #e5e7eb);
    background: var(--rz-base-50, #f8fafc);
    flex-shrink: 0;
}
.fact-svc-mission-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rz-text-secondary-color, #94a3b8);
    font-weight: 600;
}
.fact-svc-mission-link {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fact-svc-mission-link:hover {
    text-decoration: underline;
}
.fact-svc-hint {
    font-size: 11px;
    color: var(--rz-text-secondary-color, #94a3b8);
    line-height: 1.4;
}
.fact-client-pill--readonly {
    cursor: default;
}
.fact-client-pill--readonly .fact-client-pill-x {
    display: none;
}
.fact-qty--readonly {
    display: flex;
    align-items: baseline;
    gap: 2px;
    padding: 4px 10px;
    background: var(--rz-base-100, #f8fafc);
    border: 1px solid var(--rz-base-200, #e2e8f0);
    border-radius: 0;
}
.fact-qty-unit {
    font-size: 11px;
    color: var(--rz-text-secondary-color, #94a3b8);
    font-weight: 600;
}
.fact-items-area--list {
    background: var(--rz-base-100, #f8f9fb);
}
.fact-item-card--clickable {
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: 1px solid var(--rz-base-200, #e2e8f0);
}
.fact-item-card--clickable:hover {
    border-color: #00B193;
    box-shadow: 0 2px 12px -2px rgba(0, 177, 147, 0.15);
}
.fact-badge-status {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0;
    white-space: nowrap;
}
.fact-badge-status--draft {
    background: #fef0d0;
    color: #92400e;
}
.fact-badge-status--valid {
    background: #d6f5d6;
    color: #2d6a2d;
}
.fact-badge-status--paid {
    background: #dce5ee;
    color: #2d4a66;
}
.fact-badge-status--cancel {
    background: #fce0df;
    color: #8b2222;
}

/* â”€â”€ Encaissement â€” total journalier discret (caisse / paiement) â”€â”€ */
.encaissement-daily {
    margin: 0 0 12px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.75rem;
}
.encaissement-daily-title {
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.encaissement-daily-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.encaissement-daily-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 2px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #f1f5f9;
}
.encaissement-daily-cell--today {
    border-color: #b8e0d8;
    background: #f0faf8;
}
.encaissement-daily-cell-label {
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}
.encaissement-daily-cell-value {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    margin-top: 2px;
}
.encaissement-daily-cell--today .encaissement-daily-cell-value {
    color: #0f766e;
}
.encaissement-daily-projection {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
}
.encaissement-daily-projection strong {
    color: #0d9488;
    font-variant-numeric: tabular-nums;
}
.encaissement-daily-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 2px 0;
    color: #475569;
}
.encaissement-daily-row strong {
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}
.encaissement-daily-pending strong {
    color: #0f766e;
}
.encaissement-daily-after {
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px dashed #e2e8f0;
    font-weight: 500;
}
.encaissement-daily-after strong {
    color: #0d9488;
    font-size: 0.95rem;
}
.encaissement-daily-meta {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 0.7rem;
}
.fact-sb-section + .encaissement-daily,
.encaissement-daily + .fact-sb-actions {
    margin-top: 4px;
}

/* â”€â”€ Hub tabs â€” mise en page cohÃ©rente (tous modules) â”€â”€ */
.hub-tab-panel,
.vente-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* â”€â”€ Hub panel header (toolbar + filtres unifiÃ©s) â”€â”€ */
.hub-tab-panel-header {
    margin: -12px -12px 12px;
    background: var(--rz-base-50, #f8fafc);
    border-bottom: 1px solid var(--rz-base-200, #e2e8f0);
}

.hub-tab-toolbar,
.vente-tab-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 10px 12px;
    margin: 0;
    background: transparent;
    border-bottom: none;
}

.hub-tab-panel-header__strip {
    padding: 0 12px 8px;
}

.hub-tab-panel-header__filters {
    padding: 0 12px 10px;
}

.hub-tab-panel-header__filters .hub-filter-row {
    margin-bottom: 0 !important;
    background: #fff;
}

/* â”€â”€ Stat chips compacts (filtres + compteurs) â”€â”€ */
.hub-stat-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.hub-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    white-space: nowrap;
    transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

button.hub-stat-chip {
    cursor: pointer;
}

button.hub-stat-chip:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.hub-stat-chip--active {
    border-color: #334155 !important;
    background: #fff !important;
    box-shadow: 0 0 0 1px #334155;
    font-weight: 600;
}

.hub-stat-chip__label {
    color: #64748b;
}

.hub-stat-chip--active .hub-stat-chip__label {
    color: #334155;
}

.hub-stat-chip__value {
    font-weight: 700;
    font-size: 0.82rem;
    color: #0f172a;
}

.hub-stat-chip--primary  .hub-stat-chip__value { color: #2d4a66; }
.hub-stat-chip--success  .hub-stat-chip__value { color: #166534; }
.hub-stat-chip--warning  .hub-stat-chip__value { color: #92400e; }
.hub-stat-chip--danger   .hub-stat-chip__value { color: #991b1b; }
.hub-stat-chip--info     .hub-stat-chip__value { color: #1e5f7a; }
.hub-stat-chip--neutral  .hub-stat-chip__value { color: #334155; }
.hub-stat-chip--teal     .hub-stat-chip__value { color: #0f766e; }

.hub-stat-chip--primary.hub-stat-chip--active  { border-color: #4c6e93 !important; box-shadow: 0 0 0 1px #4c6e93; }
.hub-stat-chip--success.hub-stat-chip--active  { border-color: #16a34a !important; box-shadow: 0 0 0 1px #16a34a; }
.hub-stat-chip--warning.hub-stat-chip--active  { border-color: #d97706 !important; box-shadow: 0 0 0 1px #d97706; }
.hub-stat-chip--danger.hub-stat-chip--active   { border-color: #dc2626 !important; box-shadow: 0 0 0 1px #dc2626; }
.hub-stat-chip--info.hub-stat-chip--active     { border-color: #0284c7 !important; box-shadow: 0 0 0 1px #0284c7; }

.hub-stat-chip--static {
    background: rgba(255, 255, 255, 0.7);
}

.hub-stat-strip-sep {
    width: 1px;
    height: 22px;
    background: #cbd5e1;
    margin: 0 4px;
    align-self: center;
}

[data-bs-theme="dark"] .hub-stat-strip-sep {
    background: rgba(148, 163, 184, 0.35);
}

.hub-category-strip {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.1rem 0 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.hub-category-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.hub-category-chip:hover {
    border-color: rgba(0, 177, 147, 0.25);
    color: #0f766e;
}
.hub-category-chip--active {
    background: #f0fdfa;
    border-color: rgba(0, 177, 147, 0.35);
    color: #0f766e;
}
.hub-category-chip__count {
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hub-category-chip--active .hub-category-chip__count {
    background: rgba(0, 177, 147, 0.15);
    color: #0f766e;
}

.hub-actions-menu .dropdown-item {
    font-size: 0.8125rem;
    padding: 0.4rem 0.85rem;
}

.hub-actions-menu .dropdown-item .bi {
    width: 1.1rem;
    opacity: 0.75;
}

.hub-tab-toolbar__meta,
.vente-tab-toolbar__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
}

.hub-tab-toolbar__actions,
.vente-tab-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.hub-period-chip,
.vente-period-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    white-space: nowrap;
}

.hub-period-chip .bi,
.vente-period-chip .bi {
    font-size: 0.85rem;
    opacity: 0.85;
}

.hub-tab-hint,
.vente-tab-hint {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
}

.hub-tab-strip-bar,
.vente-encaissement-bar {
    margin-bottom: 12px;
}

.hub-tab-stats,
.vente-tab-stats {
    margin-bottom: 12px !important;
}

[data-bs-theme="dark"] .hub-tab-toolbar,
[data-bs-theme="dark"] .vente-tab-toolbar {
    background: transparent;
}

[data-bs-theme="dark"] .hub-tab-panel-header {
    background: rgba(148, 163, 184, 0.08);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .hub-tab-panel-header__filters .hub-filter-row {
    background: rgba(15, 23, 42, 0.35);
}

[data-bs-theme="dark"] .hub-stat-chip {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(148, 163, 184, 0.25);
}

[data-bs-theme="dark"] button.hub-stat-chip:hover {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.4);
}

[data-bs-theme="dark"] .hub-stat-chip__label { color: #94a3b8; }
[data-bs-theme="dark"] .hub-stat-chip__value { color: #f1f5f9; }
[data-bs-theme="dark"] .hub-stat-chip--active .hub-stat-chip__label { color: #e2e8f0; }

[data-bs-theme="dark"] .hub-period-chip,
[data-bs-theme="dark"] .vente-period-chip {
    color: #5eead4;
    background: rgba(0, 177, 147, 0.15);
    border-color: rgba(0, 177, 147, 0.35);
}

[data-bs-theme="dark"] .hub-tab-hint,
[data-bs-theme="dark"] .vente-tab-hint {
    color: #94a3b8;
}

.hub-filter-row {
    margin-bottom: 12px !important;
}

/* Encaissement â€” mode compact (barre horizontale) */
.encaissement-daily--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
}

.encaissement-daily-compact-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    white-space: nowrap;
}

.encaissement-daily-compact-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    flex: 1;
}

.encaissement-daily-compact-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.encaissement-daily-compact-item--today {
    background: #f0faf8;
    border-color: #b8e0d8;
}

.encaissement-daily-compact-key {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
}

.encaissement-daily-compact-val {
    font-weight: 700;
    font-size: 0.82rem;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

.encaissement-daily-compact-item--today .encaissement-daily-compact-val {
    color: #0f766e;
}

.encaissement-daily-compact-proj {
    font-size: 0.68rem;
    color: #0d9488;
    font-weight: 600;
    white-space: nowrap;
}

[data-bs-theme="dark"] .vente-tab-toolbar {
    background: rgba(148, 163, 184, 0.08);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .vente-period-chip {
    color: #5eead4;
    background: rgba(0, 177, 147, 0.15);
    border-color: rgba(0, 177, 147, 0.35);
}

[data-bs-theme="dark"] .vente-tab-hint {
    color: #94a3b8;
}

[data-bs-theme="dark"] .encaissement-daily--compact {
    background: rgba(148, 163, 184, 0.06);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .encaissement-daily-compact-item {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.15);
}

[data-bs-theme="dark"] .encaissement-daily-compact-item--today {
    background: rgba(0, 177, 147, 0.12);
    border-color: rgba(0, 177, 147, 0.3);
}

[data-bs-theme="dark"] .encaissement-daily-compact-val {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .encaissement-daily-compact-item--today .encaissement-daily-compact-val {
    color: #5eead4;
}

/* Sous-onglets dans un hub â€” barre unifiÃ©e (nav + contrÃ´les) */
.hub-sub-nav-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 10px 12px;
    margin: -12px -12px 0;
    background: var(--rz-base-50, #f8fafc);
    border-bottom: 1px solid var(--rz-base-200, #e2e8f0);
}

.hub-sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
}

.hub-sub-nav-trailing {
    flex: 1 1 280px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.hub-sub-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hub-sub-nav-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--rz-base-200, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.hub-sub-nav-btn i {
    font-size: 0.9rem;
    color: #64748b;
}

.hub-sub-nav-btn:hover {
    border-color: #00B193;
    color: #0f766e;
    background: rgba(0, 177, 147, 0.04);
}

.hub-sub-nav-btn.active {
    border-color: #00B193;
    background: rgba(0, 177, 147, 0.1);
    color: #0d9488;
    box-shadow: inset 0 0 0 1px rgba(0, 177, 147, 0.2);
}

.hub-sub-nav-btn.active i {
    color: #00B193;
}

.report-tabs-shell .hub-sub-nav-shell + .hub-tab-panel-header {
    margin-top: 0;
    border-top: none;
}

.hub-tab-period-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

[data-bs-theme="dark"] .hub-tab-period-label {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.report-tabs-shell .hub-sub-nav-shell + .hub-tab-panel-header .hub-tab-toolbar {
    padding-top: 8px;
}

[data-bs-theme="dark"] .hub-sub-nav-shell {
    background: #0f172a;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .hub-sub-nav-btn {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

[data-bs-theme="dark"] .hub-sub-nav-btn:hover,
[data-bs-theme="dark"] .hub-sub-nav-btn.active {
    background: rgba(0, 177, 147, 0.12);
    border-color: #00B193;
    color: #5eead4;
}

/* Rapports â€” aligner sur hub-tab-panel-header */
.report-tabs-shell .hub-tab-panel-header {
    margin: -12px -12px 12px;
}
.report-tabs-shell .card-body.hub-tab-card {
    padding: 12px !important;
}

/* â”€â”€ SÃ©lecteur devise utilisateur (USD / FC) â”€â”€ */
.currency-toggle {
    display: inline-flex;
    align-items: stretch;
    height: 1.85rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    flex-shrink: 0;
}

.currency-toggle--skeleton {
    width: 4.6rem;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.currency-toggle-btn {
    border: none;
    background: transparent;
    padding: 0 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    font-family: inherit;
}

.currency-toggle-btn:hover:not(:disabled) {
    background: rgba(0, 158, 132, 0.1);
    color: #007a68;
}

.currency-toggle-btn.active {
    background: #009e84;
    color: #fff;
}

.currency-toggle-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.currency-toggle--topnav {
    height: 1.85rem;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.currency-toggle--topnav .currency-toggle-btn {
    color: rgba(255, 255, 255, 0.72);
}

.currency-toggle--topnav .currency-toggle-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.currency-toggle--topnav .currency-toggle-btn.active {
    background: #009e84;
    color: #fff;
}

.currency-toggle--topbar {
    background: #fff;
    border-color: #e2e8f0;
}

[data-bs-theme="dark"] .currency-toggle--topbar {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.25);
}

[data-bs-theme="dark"] .currency-toggle--topbar .currency-toggle-btn {
    color: #94a3b8;
}

[data-bs-theme="dark"] .currency-toggle--topbar .currency-toggle-btn.active {
    background: #00B193;
    color: #fff;
}

/* LANDING â€” mobile-first portail client */
.landing-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #f1f5f9; }
.landing-shell:has(.landing-hero--strip) .landing-header { border-bottom: none; box-shadow: none; }
.landing-header { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid #e2e8f0; }
.landing-header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0.55rem 0.85rem;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem;
}
@media (max-width: 991.98px) {
    .landing-header-inner {
        display: flex; align-items: center; gap: 0.45rem;
        grid-template-columns: unset;
    }
    .landing-brand { flex: 1; min-width: 0; }
    .landing-brand-name {
        font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        max-width: 10.5rem;
    }
    .landing-brand-by { font-size: 0.58rem; }
}
.landing-header-back {
    display: inline-flex; align-items: center; gap: 0.3rem; flex-shrink: 0;
    color: #64748b; text-decoration: none; font-size: 0.78rem; font-weight: 600;
    padding: 0.25rem 0.35rem 0.25rem 0; margin-right: -0.15rem;
    -webkit-tap-highlight-color: transparent;
}
.landing-header-back i { font-size: 1rem; line-height: 1; }
.landing-header-back:active { color: #00B193; }
.landing-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: #0f172a; font-weight: 700; min-width: 0; }
.landing-brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
.landing-brand-logo { height: 32px; width: auto; }
.landing-brand-name { font-size: 0.95rem; }
.landing-header-nav { display: flex; align-items: center; gap: 0.25rem; }
.landing-header-menu {
    display: flex; align-items: center; gap: 0.15rem;
    margin: 0 auto; padding: 0 0.5rem;
}
.landing-header-actions {
    display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0;
}
.landing-header-link {
    padding: 0.45rem 0.75rem; color: #64748b; text-decoration: none;
    font-size: 0.84rem; font-weight: 500; border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}
.landing-header-link:hover { color: #00B193; background: rgba(0,177,147,0.06); }
.landing-header-link--active { color: #00B193; font-weight: 600; background: rgba(0,177,147,0.1); }
.landing-header-link[data-nav-section] { position: relative; }
.landing-header-link--scroll-active {
    color: #00B193 !important;
    font-weight: 600;
    background: rgba(0,177,147,0.08);
}
.landing-header-link--scroll-active::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.18rem;
    height: 2px;
    border-radius: 1px;
    background: #00B193;
}
.landing-header-drawer__link.landing-header-link--scroll-active {
    color: #00B193;
    background: rgba(0,177,147,0.08);
}
.landing-header-drawer__link.landing-header-link--scroll-active::after {
    content: none;
}
.landing-header-drawer__link.landing-header-link--scroll-active {
    box-shadow: inset 3px 0 0 #00B193;
}
.landing-header-icon-btn {
    position: relative; width: 2.35rem; height: 2.35rem; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #64748b; text-decoration: none; border: 1px solid #e2e8f0; background: #fff;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.landing-header-icon-btn:hover { color: #00B193; border-color: rgba(0,177,147,0.35); background: #f0fdfa; }
.landing-header-icon-btn .landing-cart-badge {
    position: absolute; top: -0.2rem; right: -0.2rem; min-width: 1.1rem; height: 1.1rem;
    font-size: 0.62rem; padding: 0 0.25rem;
}
.landing-header-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    padding: 0.48rem 0.95rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
    text-decoration: none; border: 1px solid transparent; white-space: nowrap;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.landing-header-btn:active { transform: scale(0.98); }
.landing-header-btn--ghost {
    color: #475569; background: #fff; border-color: #e2e8f0;
}
.landing-header-btn--ghost:hover { color: #0f172a; border-color: #cbd5e1; background: #f8fafc; }
.landing-header-btn--ghost.landing-header-btn--muted { color: #94a3b8; border-color: transparent; background: transparent; }
.landing-header-btn--primary {
    color: #fff; background: #00B193; border-color: #00B193;
    box-shadow: 0 6px 18px rgba(0,177,147,0.28);
}
.landing-header-btn--primary:hover { background: #00a085; color: #fff; }
.landing-header-btn--block { width: 100%; }
.landing-header-btn__label {
    max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.landing-header-actions__desktop { display: flex; align-items: center; gap: 0.45rem; }
.landing-header-menu-toggle { border: 1px solid #e2e8f0; background: #fff; cursor: pointer; padding: 0; }
.landing-header-menu-toggle i { font-size: 1.15rem; line-height: 1; }

.landing-header-drawer-layer {
    position: fixed; inset: 0; z-index: 180;
    background: rgba(15, 23, 42, 0.42);
    animation: landingDrawerFade 0.2s ease both;
}
.landing-header-drawer {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 210;
    background: #fff; border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    max-height: min(78dvh, 520px); overflow-y: auto;
    animation: landingDrawerSlide 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes landingDrawerFade {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes landingDrawerSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.landing-header-drawer__nav {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding-bottom: 0.75rem; margin-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.landing-header-drawer__link {
    display: flex; align-items: center; padding: 0.7rem 0.75rem;
    border-radius: 10px; text-decoration: none; color: #334155;
    font-size: 0.92rem; font-weight: 600;
}
.landing-header-drawer__link:hover { background: #f8fafc; color: #00B193; }
.landing-header-drawer__link.landing-header-link--active {
    background: rgba(0,177,147,0.1); color: #00B193;
}
.landing-header-drawer__actions { display: flex; flex-direction: column; gap: 0.5rem; }
.landing-header-drawer__user {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.35rem 0.25rem 0.55rem;
}
.landing-header-drawer__user > i { font-size: 1.6rem; color: #00B193; }
.landing-header-drawer__user strong { display: block; font-size: 0.86rem; color: #0f172a; }
.landing-header-drawer__user span { display: block; font-size: 0.72rem; color: #64748b; }

.landing-header-link--cart { display: inline-flex; align-items: center; gap: 0.35rem; }
.landing-header-link--account {
    display: inline-flex; align-items: center; gap: 0.35rem;
    max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.landing-header-link--account i { color: #00B193; font-size: 1rem; }
.landing-header-link--muted { color: #94a3b8; font-size: 0.8rem; }
.landing-header-link--muted:hover { color: #64748b; }
.landing-main { flex: 1; }

/* Ancienne barre mobile â€” retirÃ©e */
.landing-mobile-bar { display: none !important; }
.landing-footer { border-top: 1px solid #e2e8f0; background: #fff; padding: 0; width: 100%; margin-top: auto; }
.landing-footer--compact {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.3rem;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
}
.landing-footer-compact__links {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 0.25rem 0.65rem;
}
.landing-footer-compact__links a {
    color: #64748b; text-decoration: none; font-size: 0.72rem; font-weight: 500;
    white-space: nowrap;
}
.landing-footer-compact__links a:hover { color: #00B193; }
.landing-footer-compact__copy {
    margin: 0; font-size: 0.66rem; color: #94a3b8; line-height: 1.35;
}
.landing-footer-inner { width: 100%; margin: 0; text-align: center; font-size: 0.8rem; color: #64748b; }
.landing-footer-inner a { color: #00B193; text-decoration: none; }
.landing-footer-sep { margin: 0 0.35rem; }

/* Barre fixe mobile */
.landing-mobile-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
    display: flex; background: #fff; border-top: 1px solid #e2e8f0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 12px rgba(15,23,42,0.06);
}
.landing-mobile-bar__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.15rem; padding: 0.45rem 0.25rem; text-decoration: none; color: #64748b;
    font-size: 0.65rem; font-weight: 600; min-height: 52px;
    border: none; background: transparent; width: 100%; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.landing-mobile-bar__item i { font-size: 1.15rem; }
.landing-mobile-bar__item--active { color: #00B193; }
.landing-mobile-bar__item:active { background: #f8fafc; }

.landing-mobile-menu-layer {
    position: fixed; inset: 0; z-index: 550;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: rgba(15, 23, 42, 0.45);
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
}
.landing-mobile-menu-sheet {
    background: #fff; border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}
.landing-mobile-menu-sheet__handle {
    width: 2.5rem; height: 0.25rem; border-radius: 999px;
    background: #e2e8f0; margin: 0.55rem auto 0.35rem;
}
.landing-mobile-menu-sheet__item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1.15rem;
    text-decoration: none; color: #0f172a; font-size: 0.95rem; font-weight: 600;
    border-top: 1px solid #f1f5f9;
}
.landing-mobile-menu-sheet__item:first-of-type { border-top: none; }
.landing-mobile-menu-sheet__item i { font-size: 1.2rem; color: #64748b; width: 1.35rem; text-align: center; }
.landing-mobile-menu-sheet__item:active { background: #f8fafc; }
.landing-mobile-menu-sheet__user {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1.15rem 0.65rem; border-bottom: 1px solid #f1f5f9;
}
.landing-mobile-menu-sheet__user > i {
    font-size: 1.75rem; color: #00B193; flex-shrink: 0;
}
.landing-mobile-menu-sheet__user strong {
    display: block; font-size: 0.9rem; color: #0f172a; line-height: 1.3;
}
.landing-mobile-menu-sheet__user span {
    display: block; font-size: 0.75rem; color: #64748b; font-weight: 500; margin-top: 0.1rem;
}
.landing-mobile-menu-sheet__item--danger { color: #dc2626; }
.landing-mobile-menu-sheet__item--danger i { color: #dc2626; }
.landing-mobile-menu-sheet__header {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.5rem 0.75rem 0.65rem; font-weight: 700; font-size: 0.95rem; color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
}
.landing-mobile-menu-sheet__back {
    width: 2rem; height: 2rem; border: none; border-radius: 999px;
    background: #f8fafc; color: #334155; display: inline-flex;
    align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
.landing-mobile-menu-sheet__back:active { background: #e2e8f0; }
.landing-mobile-menu-sheet__choices {
    padding: 0.75rem; display: flex; flex-direction: column; gap: 0.55rem;
}
.landing-mobile-menu-sheet__choices .landing-auth-choice { padding: 0.75rem 0.85rem; }
.landing-mobile-menu-sheet__item--btn {
    width: 100%; text-align: left; cursor: pointer; background: #fff; border: none;
    font-family: inherit;
}
.landing-mobile-menu-sheet__item--accent i { color: #00B193; }
.landing-mobile-menu-sheet__chevron { color: #cbd5e1; font-size: 0.85rem; }

/* Hero */
.landing-hero { position: relative; overflow: hidden; }
.landing-hero--strip { padding: 0; }
.landing-hero-bg { position: absolute; inset: 0; background: linear-gradient(120deg, #00B193, #0d9488); }
.landing-hero-content { position: relative; max-width: 720px; margin: 0 auto; text-align: center; color: #fff; }
.landing-hero-title { font-size: 1.15rem; font-weight: 700; margin: 0; line-height: 1.25; }
.landing-hero-sub { font-size: 0.85rem; opacity: 0.9; margin: 0 0 0.75rem; }
.landing-hero-actions { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.75rem; }

@media (max-width: 767.98px) {
    .landing-hero--strip .landing-hero-content {
        max-width: none; padding: 0.7rem 0.75rem; text-align: center;
    }
    .landing-hero--strip .landing-hero-title {
        font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em;
    }
}

.landing-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    padding: 0.45rem 0.85rem; border-radius: 8px; font-weight: 600; font-size: 0.8rem;
    text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.landing-btn--primary { background: #fff; color: #0f766e; }
.landing-btn--solid {
    background: #00B193; color: #fff; border: none;
    padding: 0.6rem 1rem; font-size: 0.875rem; font-weight: 600;
}
.landing-btn--solid:active { opacity: 0.92; }
.landing-btn--solid:disabled { opacity: 0.55; }
.landing-btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }
.landing-btn:disabled { opacity: 0.5; }
.landing-btn--block { width: 100%; }
.landing-btn--sm { padding: 0.4rem 0.75rem; font-size: 0.75rem; }

/* Catalogue */
.landing-catalog {
    padding: 0.85rem 0.75rem 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 12rem);
}
.landing-catalog-inner { max-width: 1200px; margin: 0 auto; }
.landing-catalog-stage {
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.landing-catalog-stage--busy {
    opacity: 0.72;
    transform: scale(0.992);
}
.landing-catalog-panel {
    animation: landingCatalogPanelIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes landingCatalogPanelIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.landing-catalog-header { margin-bottom: 0.85rem; }
.landing-catalog-subtitle {
    margin: 0.2rem 0 0; font-size: 0.82rem; color: #64748b; font-weight: 500;
}
.landing-catalog-breadcrumb {
    margin: 0 0 0.1rem; font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; color: #00B193;
}
.landing-catalog-meta {
    margin: -0.35rem 0 0.65rem; font-size: 0.75rem; color: #64748b;
}
.landing-catalog-header--detail {
    display: flex; align-items: stretch; gap: 0.45rem; margin-bottom: 0.65rem;
    flex-wrap: nowrap;
}
.landing-catalog-header__row {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 0.4rem;
}
.landing-catalog-header__text {
    flex: 0 1 auto; min-width: 0; max-width: 38%;
}
.landing-catalog-search {
    flex: 1 1 auto; min-width: 0;
    display: flex; align-items: center; gap: 0.35rem;
    margin: 0; padding: 0.38rem 0.55rem;
    background: #fff; border: 1px solid #e8ecf1; border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.landing-catalog-search:focus-within {
    border-color: rgba(0, 177, 147, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 177, 147, 0.08);
}
.landing-catalog-search input {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    font-size: 0.78rem; color: #0f172a; padding: 0;
}
.landing-catalog-search > i.bi-search {
    flex-shrink: 0; color: #94a3b8; font-size: 0.82rem; line-height: 1;
}
.landing-catalog-search input::placeholder { color: #94a3b8; }
.landing-catalog-search input::-webkit-search-cancel-button { display: none; }
.landing-catalog-search__clear {
    flex-shrink: 0; width: 1.65rem; height: 1.65rem; padding: 0; border: none;
    border-radius: 999px; background: #f1f5f9; color: #64748b; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.landing-catalog-search__clear i { font-size: 0.7rem; line-height: 1; }
.landing-catalog-search__clear:hover { background: #e2e8f0; color: #0f172a; }
.landing-catalog-search__clear:active { transform: scale(0.92); }
.landing-catalog-search__reset {
    display: inline-block; margin-top: 0.5rem; padding: 0; border: none; background: none;
    color: #00B193; font-size: 0.82rem; font-weight: 600; cursor: pointer; text-decoration: underline;
}
.landing-catalog-back {
    flex-shrink: 0; width: 2.25rem; height: 2.25rem; border: none; border-radius: 999px;
    background: #fff; color: #0f172a; display: inline-flex; align-items: center;
    justify-content: center; cursor: pointer; padding: 0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.landing-catalog-back i { font-size: 1.15rem; line-height: 1; }
.landing-catalog-back:hover { background: #f0fdfa; box-shadow: 0 2px 8px rgba(0, 177, 147, 0.12); }
.landing-catalog-back:active { transform: scale(0.94); }
.landing-catalog-back:disabled { opacity: 0.5; cursor: wait; }
.landing-catalog-header--detail .landing-catalog-title {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 1rem;
}
.landing-catalog-header--detail .landing-catalog-breadcrumb {
    font-size: 0.62rem;
}
.landing-catalog-title { font-size: 1.15rem; font-weight: 700; margin: 0; color: #0f172a; line-height: 1.25; }
.landing-catalog-count {
    min-width: 1.3rem; height: 1.3rem; padding: 0 0.35rem; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; color: #00B193; background: rgba(0,177,147,0.14);
}
.landing-catalog-loading { text-align: center; padding: 2rem; }
.landing-catalog-skeleton {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}
@media (max-width: 767.98px) {
    .landing-catalog-skeleton {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.landing-catalog-skeleton__card {
    min-height: 7.75rem;
    border-radius: 14px;
    background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 50%, #eef2f6 75%);
    background-size: 200% 100%;
    animation: landingCatalogSkeleton 1.2s ease-in-out infinite;
    animation-delay: calc(min(var(--cat-i, 0), 8) * 60ms);
}
@keyframes landingCatalogSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.landing-catalog-panel--loading .landing-catalog-skeleton {
    margin-top: 0.75rem;
}
.landing-catalog-stage {
    position: relative;
}
.landing-main--fade {
    animation: landingMainFadeIn 0.28s ease-out both;
}
@keyframes landingMainFadeIn {
    from { opacity: 0.55; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
#app-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 12000;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, #00B193, #0ea5e9);
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 0.2s ease;
}
.app-boot-fallback {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.app-boot-fallback.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.app-boot-fallback__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}
#app-nav-progress.is-active {
    opacity: 1;
    animation: appNavProgress 1.4s ease-in-out forwards;
}
@keyframes appNavProgress {
    0% { transform: scaleX(0.08); opacity: 1; }
    70% { transform: scaleX(0.78); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
}
.landing-catalog-empty { text-align: center; color: #94a3b8; font-size: 0.85rem; padding: 1.5rem 0; margin: 0; }
.landing-catalog-panel__cart-cta { animation: landingCatalogPanelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.landing-catalog-skeleton--products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.5rem;
}
@media (max-width: 767.98px) {
    .landing-catalog-skeleton--products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.landing-catalog-skeleton__product {
    min-height: 9.5rem;
    border-radius: 12px;
    background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 50%, #eef2f6 75%);
    background-size: 200% 100%;
    animation: landingCatalogSkeleton 1.2s ease-in-out infinite;
    animation-delay: calc(min(var(--cat-i, 0), 6) * 50ms);
}
.landing-catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.5rem;
}
.landing-catalog-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, background 0.12s ease;
}
.landing-catalog-pagination__btn:active:not(:disabled) { transform: scale(0.96); }
.landing-catalog-pagination__btn:disabled { opacity: 0.45; cursor: default; }
.landing-catalog-pagination__info {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    min-width: 4rem;
    text-align: center;
}

/* Grille catÃ©gories â€” style soignÃ© */
.landing-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}
.landing-category-card {
    display: flex; flex-direction: column; align-items: stretch;
    min-height: 7.75rem; padding: 0.55rem 0.5rem 0.4rem;
    border: 1px solid #e8ecf1; border-radius: 14px; background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    text-align: left; cursor: pointer; overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
@keyframes landingCategoryIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.landing-category-card:active:not(:disabled) {
    transform: scale(0.96);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.landing-category-card:disabled { cursor: wait; }
.landing-category-card__title {
    font-size: 0.68rem; font-weight: 700; line-height: 1.3;
    color: #1e293b; margin-bottom: 0.35rem;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    min-height: 2.55em; letter-spacing: 0.01em;
}
.landing-category-card__visual {
    position: relative; flex: 1; min-height: 4.35rem;
    display: flex; align-items: flex-end; justify-content: center;
}
.landing-category-card__arc {
    position: absolute; left: 50%; bottom: -0.2rem; transform: translateX(-50%);
    width: 118%; height: 4.35rem; border-radius: 50% 50% 0 0;
    background: linear-gradient(165deg, #ccfbf1 0%, #e0f2fe 55%, #f0f9ff 100%);
}
.landing-category-card__images {
    position: relative; z-index: 1; width: 100%; height: 4rem;
    display: flex; align-items: flex-end; justify-content: center; gap: 0.12rem;
}
.landing-category-card__images img {
    max-width: 42%; max-height: 3.5rem; width: auto; height: auto;
    object-fit: contain; display: block;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08));
}
.landing-category-card__images img:nth-child(2) { max-width: 36%; max-height: 3.1rem; }
.landing-category-card__images img:nth-child(3) { max-width: 30%; max-height: 2.7rem; }
.landing-category-card__placeholder {
    width: 2.5rem; height: 2.5rem; border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 0.35rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.landing-category-card__placeholder i {
    font-size: 1.15rem; color: #00B193; opacity: 0.75;
}

@media (min-width: 576px) {
    .landing-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.65rem;
    }
    .landing-category-card { min-height: 8.75rem; padding: 0.6rem 0.55rem 0.45rem; }
    .landing-category-card__title { font-size: 0.74rem; }
    .landing-category-card__visual { min-height: 4.85rem; }
    .landing-category-card__arc { height: 4.65rem; }
    .landing-category-card__images { height: 4.35rem; }
}

@media (min-width: 768px) {
    .landing-catalog {
        padding: 1.15rem 1.25rem 1.5rem;
        background: linear-gradient(180deg, #f1f5f9 0%, #fff 14rem);
    }
    .landing-catalog-title { font-size: 1.35rem; }
    .landing-catalog-header__row {
        align-items: center;
    }
    .landing-catalog-header__text {
        flex: 1 1 0; max-width: none;
    }
    .landing-catalog-header--detail .landing-catalog-title {
        font-size: 1.35rem;
    }
    .landing-catalog-header--detail .landing-catalog-breadcrumb {
        font-size: 0.68rem;
    }
    .landing-catalog-search {
        flex: 0 1 22rem;
        max-width: 22rem;
        margin-left: auto;
        padding: 0.5rem 0.75rem;
        border-radius: 12px;
    }
    .landing-catalog-search input {
        font-size: 0.88rem;
    }
    .landing-catalog-search > i.bi-search {
        font-size: 0.95rem;
    }
    .landing-category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.8rem;
    }
    .landing-category-card { min-height: 9.75rem; border-radius: 16px; }
    .landing-category-card__title { font-size: 0.8rem; }
}

@media (min-width: 992px) {
    .landing-category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.9rem;
    }
}

@media (hover: hover) and (pointer: fine) {
    .landing-category-card:hover:not(:disabled) {
        transform: translateY(-3px);
        border-color: #cbd5e1;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.09);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-catalog-panel,
    .landing-category-card,
    .landing-catalog-stage,
    .landing-product-grid--compact .landing-product-tile { animation: none; transition: none; }
}

/* Grille produits â€” responsive phone / tablette / desktop */
.landing-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
}
.landing-product-tile-wrap {
    position: relative;
    height: 100%;
}
.landing-product-tile__remove {
    position: absolute; top: 0.4rem; left: 0.4rem; z-index: 3;
    width: 1.35rem; height: 1.35rem; padding: 0; border: none; border-radius: 999px;
    background: #fff; color: #64748b; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}
.landing-product-tile__remove i { font-size: 0.75rem; line-height: 1; }
.landing-product-tile__remove:hover,
.landing-product-tile__remove:focus-visible {
    background: #fee2e2; color: #dc2626; border-color: #fecaca;
}
.landing-product-tile__remove:active { transform: scale(0.92); }
.landing-product-tile {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border-radius: 12px;
    border: 1px solid #e2e8f0; overflow: hidden;
    position: relative; padding: 0; width: 100%; text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.landing-product-tile--in-cart {
    border-color: #00B193;
    box-shadow: 0 0 0 1px rgba(0,177,147,0.15);
}
.landing-product-tile--in-cart .landing-product-tile__body { background: #f0fdfa; }
.landing-product-tile:active { transform: scale(0.96); transition: transform 0.08s ease; }
.landing-product-tile__badge {
    position: absolute; top: 0.4rem; right: 0.4rem; z-index: 2;
    min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem; border-radius: 999px;
    background: #00B193; color: #fff; font-size: 0.68rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.landing-product-tile__badge--carousel { top: 0.5rem; right: 0.5rem; }
.landing-product-tile__img {
    aspect-ratio: 1; width: 100%; flex-shrink: 0;
    background: #f8fafc; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.landing-product-tile__img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.landing-product-tile__img i { font-size: 1.75rem; color: #cbd5e1; }
.landing-product-tile__body {
    flex: 1; display: flex; flex-direction: column; justify-content: space-between;
    gap: 0.35rem; padding: 0.5rem 0.55rem 0.6rem; min-height: 4.5rem;
}
.landing-product-tile__name {
    font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: #0f172a;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    min-height: 2.6em;
}
.landing-product-tile__price {
    display: block; font-size: 0.8rem; font-weight: 700; color: #00B193;
    margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (min-width: 576px) {
    .landing-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .landing-product-tile__name { font-size: 0.78rem; }
    .landing-product-tile__price { font-size: 0.82rem; }
}

@media (min-width: 768px) {
    .landing-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }
    .landing-product-tile { border-radius: 14px; }
    .landing-product-tile__body { min-height: 4.75rem; padding: 0.55rem 0.65rem 0.65rem; }
    .landing-product-tile__name { font-size: 0.82rem; min-height: 2.65em; }
    .landing-product-tile__price { font-size: 0.88rem; }
}

@media (min-width: 992px) {
    .landing-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    .landing-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Grille produits compacte â€” vue catÃ©gorie (mobile-first, tuiles plus petites) */
.landing-product-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}
.landing-product-grid--compact .landing-product-tile {
    animation: none;
}
.landing-product-grid--compact .landing-product-tile { border-radius: 8px; }
.landing-product-grid--compact .landing-product-tile__img { aspect-ratio: 1; max-height: 5.5rem; }
.landing-product-grid--compact .landing-product-tile__img i { font-size: 1.25rem; }
.landing-product-grid--compact .landing-product-tile__body {
    min-height: 0; padding: 0.35rem 0.4rem 0.45rem; gap: 0.15rem;
}
.landing-product-grid--compact .landing-product-tile__name {
    font-size: 0.62rem; min-height: 2.4em; line-height: 1.25;
    -webkit-line-clamp: 2;
}
.landing-product-grid--compact .landing-product-tile__price { font-size: 0.68rem; }
.landing-product-grid--compact .landing-product-tile__badge {
    top: 0.25rem; right: 0.25rem;
    min-width: 1.05rem; height: 1.05rem; font-size: 0.58rem;
}

@media (min-width: 576px) {
    .landing-product-grid--compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.5rem;
    }
    .landing-product-grid--compact .landing-product-tile__img { max-height: 6.5rem; }
    .landing-product-grid--compact .landing-product-tile__name { font-size: 0.68rem; }
    .landing-product-grid--compact .landing-product-tile__price { font-size: 0.72rem; }
}

@media (min-width: 768px) {
    .landing-product-grid--compact {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.65rem;
    }
    .landing-product-grid--compact .landing-product-tile { border-radius: 10px; }
    .landing-product-grid--compact .landing-product-tile__img { max-height: 7.5rem; }
    .landing-product-grid--compact .landing-product-tile__body { padding: 0.4rem 0.5rem 0.5rem; }
    .landing-product-grid--compact .landing-product-tile__name { font-size: 0.72rem; }
    .landing-product-grid--compact .landing-product-tile__price { font-size: 0.78rem; }
}

@media (min-width: 992px) {
    .landing-product-grid--compact {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

@media (hover: hover) and (pointer: fine) {
    .landing-product-tile:hover {
        border-color: #cbd5e1;
        box-shadow: 0 4px 14px rgba(15,23,42,0.08);
    }
    .landing-product-tile--in-cart:hover {
        border-color: #00B193;
        box-shadow: 0 4px 14px rgba(0,177,147,0.12);
    }
}

/* Auth pages */
.landing-auth {
    padding: 2rem 1rem 2.5rem;
    display: flex; justify-content: center; align-items: flex-start;
    min-height: calc(100dvh - 12rem);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 45%);
}
.landing-auth-card {
    width: 100%; max-width: 440px; background: #fff; border-radius: 16px;
    padding: 1.5rem 1.35rem 1.35rem;
    border: 1px solid #e8ecf1;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.07);
}
.landing-auth-back { display: inline-block; font-size: 0.8rem; color: #64748b; text-decoration: none; margin-bottom: 1.15rem; }
.landing-auth-back:hover { color: #00B193; }
.landing-auth-brand {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    margin-bottom: 1.15rem; padding-bottom: 1.15rem;
    border-bottom: 1px solid #eef2f6;
}
.landing-auth-brand__logo {
    height: 52px; width: auto; margin-bottom: 0.55rem;
}
.landing-auth-brand__text strong {
    display: block; font-size: 1.05rem; font-weight: 800; color: #0f172a; line-height: 1.25;
}
.landing-auth-brand__text span {
    display: block; margin-top: 0.15rem; font-size: 0.72rem; color: #64748b; letter-spacing: 0.01em;
}
.landing-auth-icon {
    width: 44px; height: 44px; border-radius: 10px; background: rgba(0,177,147,0.1); color: #00B193;
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 0.75rem;
}
.landing-auth-title {
    font-size: 1.28rem; font-weight: 800; margin-bottom: 0.5rem;
    text-align: center; color: #0f172a;
}
.landing-auth-sub { color: #64748b; font-size: 0.86rem; margin-bottom: 1.1rem; text-align: center; line-height: 1.55; }
.landing-auth-footer { font-size: 0.84rem; color: #64748b; }
.landing-auth-footer a { color: #00B193; font-weight: 600; text-decoration: none; }
.landing-auth-footer a:hover { text-decoration: underline; }

.landing-auth-card--login { max-width: 440px; }
.landing-auth-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
    padding: 0.25rem; margin-bottom: 1rem;
    background: #f1f5f9; border-radius: 12px; border: 1px solid #e2e8f0;
}
.landing-auth-tabs__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    padding: 0.55rem 0.5rem; border: none; border-radius: 9px;
    background: transparent; color: #64748b;
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.landing-auth-tabs__btn i { font-size: 0.95rem; }
.landing-auth-tabs__btn--active {
    background: #fff; color: #0f766e;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.landing-auth-tabs__btn--active i { color: #00B193; }

.landing-auth-choices {
    display: flex; flex-direction: column; gap: 0.65rem;
}
.landing-auth-choice {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 0.9rem; border-radius: 12px;
    border: 1px solid #e2e8f0; background: #fff;
    text-decoration: none; color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.landing-auth-choice:active { transform: scale(0.98); }
.landing-auth-choice--client { border-color: rgba(0, 177, 147, 0.25); background: #f0fdfa; }
.landing-auth-choice--staff { background: #f8fafc; }
.landing-auth-choice__icon {
    width: 2.5rem; height: 2.5rem; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 1.1rem;
}
.landing-auth-choice--client .landing-auth-choice__icon {
    background: #fff; color: #00B193; border: 1px solid rgba(0, 177, 147, 0.2);
}
.landing-auth-choice--staff .landing-auth-choice__icon {
    background: #fff; color: #64748b; border: 1px solid #e2e8f0;
}
.landing-auth-choice__body {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem;
}
.landing-auth-choice__body strong { font-size: 0.9rem; color: #0f172a; line-height: 1.25; }
.landing-auth-choice__body small { font-size: 0.72rem; color: #64748b; line-height: 1.3; }
.landing-auth-choice__arrow { color: #94a3b8; font-size: 0.85rem; flex-shrink: 0; }
@media (hover: hover) {
    .landing-auth-choice--client:hover {
        border-color: #00B193; box-shadow: 0 4px 14px rgba(0, 177, 147, 0.12);
    }
    .landing-auth-choice--staff:hover {
        border-color: #cbd5e1; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    }
}

.landing-auth .landing-btn--primary {
    margin-top: 0.15rem;
    min-height: 2.75rem; font-size: 0.92rem; font-weight: 700;
    border-radius: 999px;
    background: #00B193; color: #fff; border: none; width: 100%;
    padding: 0.6rem 1rem;
}
.landing-auth .form-control { font-size: 0.9rem; padding: 0.5rem 0.75rem; }
.landing-auth .form-label { font-size: 0.85rem; margin-bottom: 0.25rem; }
.landing-auth .alert { font-size: 0.8rem; line-height: 1.4; }
.landing-auth button.landing-btn--primary { cursor: pointer; }
.landing-auth button.landing-btn--primary:active { opacity: 0.92; }

.landing-cart-icon-wrap { position: relative; display: inline-flex; }
.landing-cart-badge {
    position: absolute; top: -0.35rem; right: -0.45rem; min-width: 0.95rem; height: 0.95rem;
    padding: 0 0.2rem; border-radius: 999px; background: #00B193; color: #fff;
    font-size: 0.55rem; font-weight: 700; line-height: 0.95rem; text-align: center;
}
.landing-cart-badge--inline {
    position: static; display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.1rem; height: 1.1rem; padding: 0 0.25rem; font-size: 0.62rem;
}

.landing-catalog-cart-cta {
    margin-top: 0.85rem; padding: 0.65rem 0.75rem; border-radius: 10px;
    background: #fff; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    font-size: 0.8rem; font-weight: 600; color: #334155;
}

.landing-panier { padding: 0; background: #f1f5f9; min-height: 0; }
.landing-panier-inner { max-width: 560px; margin: 0 auto; padding: 0 0.65rem 0.75rem; }

.landing-panier-topbar {
    display: grid;
    grid-template-columns: 2.5rem 1fr 2.5rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.65rem;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.05);
}
.landing-panier-back {
    width: 2.25rem; height: 2.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; color: #0f172a; text-decoration: none;
    background: #fff; border: 1px solid #e8ecf1;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.landing-panier-back i { font-size: 1.1rem; line-height: 1; }
.landing-panier-back:hover {
    background: #f0fdfa; border-color: rgba(0, 177, 147, 0.25);
    box-shadow: 0 2px 8px rgba(0, 177, 147, 0.12);
}
.landing-panier-back:active { transform: scale(0.94); }
.landing-panier-topbar__center {
    min-width: 0; text-align: center;
}
.landing-panier-topbar__title-row {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.45rem; max-width: 100%;
}
.landing-panier-count {
    flex-shrink: 0;
    min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 700; line-height: 1;
    color: #fff; background: #00B193;
    box-shadow: 0 1px 4px rgba(0, 177, 147, 0.35);
}
.landing-panier-topbar__meta {
    margin: 0.12rem 0 0; padding: 0;
    font-size: 0.68rem; font-weight: 500; color: #64748b;
    letter-spacing: 0.01em;
}
.landing-panier-topbar__clear,
.landing-panier-topbar__spacer {
    width: 2.25rem; height: 2.25rem; justify-self: end;
}
.landing-panier-topbar__clear {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; border: 1px solid #e8ecf1;
    background: #fff; color: #94a3b8;
    font-size: 0.9rem; padding: 0; cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.landing-panier-topbar__clear:hover {
    background: #fef2f2; color: #dc2626; border-color: #fecaca;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}
.landing-panier-topbar__clear:active { transform: scale(0.94); }
.landing-panier-title {
    font-size: 1.05rem; font-weight: 700; margin: 0;
    color: #0f172a; white-space: nowrap; line-height: 1.2;
}

.landing-panier-empty {
    text-align: center; padding: 2rem 1rem; color: #94a3b8; background: #fff;
    border-radius: 12px; border: 1px solid #e2e8f0;
}
.landing-panier-empty i { font-size: 2rem; display: block; margin-bottom: 0.5rem; opacity: 0.5; }
.landing-panier-empty p { margin-bottom: 1rem; font-size: 0.9rem; }

.landing-panier-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
}
.landing-panier-line {
    display: flex; gap: 0.5rem; padding: 0.7rem 0.75rem; align-items: flex-start;
    border-bottom: 1px solid #f1f5f9;
}
.landing-panier-line__remove {
    flex-shrink: 0; align-self: center;
    width: 1.75rem; height: 1.75rem; padding: 0; border: none; border-radius: 999px;
    background: #f8fafc; color: #64748b; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e2e8f0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}
.landing-panier-line__remove i { font-size: 0.85rem; line-height: 1; }
.landing-panier-line__remove:hover,
.landing-panier-line__remove:focus-visible {
    background: #fee2e2; color: #dc2626; border-color: #fecaca;
}
.landing-panier-line__remove:active { transform: scale(0.92); }
.landing-panier-line:last-child { border-bottom: none; }
.landing-panier-line__thumb {
    width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #f8fafc;
}
.landing-panier-line__thumb--empty {
    display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 1.25rem;
}
.landing-panier-line__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.landing-panier-line__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.landing-panier-line__row--sub { align-items: center; }
.landing-panier-line__name {
    font-size: 0.85rem; line-height: 1.3; color: #0f172a;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.landing-panier-line__total { font-size: 0.85rem; font-weight: 700; color: #00B193; white-space: nowrap; padding-top: 0.05rem; }
.landing-panier-line__unit { font-size: 0.72rem; color: #64748b; }
.landing-panier-line__qty {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.1rem 0.25rem;
}
.landing-panier-line__qty-val { min-width: 1.25rem; text-align: center; font-size: 0.8rem; font-weight: 700; }
.landing-panier-qty-btn {
    width: 1.65rem; height: 1.65rem; border-radius: 6px; border: none; background: transparent;
    display: inline-flex; align-items: center; justify-content: center; padding: 0; font-weight: 700;
    color: #00B193; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.landing-panier-qty-btn:active { background: #e2e8f0; }

.landing-panier-client {
    margin: 0.55rem 0 0; padding: 0.65rem 0.75rem;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    font-size: 0.78rem; color: #64748b; text-align: left;
}
.landing-panier-client--connected { border-color: rgba(0, 177, 147, 0.25); background: #f0fdfa; }
.landing-panier-client__row {
    display: flex; align-items: center; gap: 0.4rem; line-height: 1.35;
}
.landing-panier-client__row + .landing-panier-client__row { margin-top: 0.25rem; }
.landing-panier-client__row i { color: #00B193; flex-shrink: 0; }
.landing-panier-client__name { font-weight: 600; color: #0f172a; }
.landing-panier-client__row--phone span { font-weight: 600; color: #0f172a; letter-spacing: 0.02em; }
.landing-panier-client__actions {
    margin: 0.4rem 0 0; padding-top: 0.4rem; border-top: 1px solid rgba(0, 177, 147, 0.15);
    font-size: 0.72rem; text-align: center;
}
.landing-panier-client a { color: #00B193; text-decoration: none; font-weight: 600; }
.landing-panier-client a:hover { text-decoration: underline; }

.landing-profile-list {
    margin: 0; padding: 0; list-style: none;
}
.landing-profile-list__row {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding: 0.65rem 0; border-bottom: 1px solid #f1f5f9;
}
.landing-profile-list__row:last-child { border-bottom: none; }
.landing-profile-list__row dt {
    margin: 0; font-size: 0.72rem; font-weight: 600; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.landing-profile-list__row dd { margin: 0; font-size: 0.95rem; font-weight: 600; color: #0f172a; }
.landing-profile-list__row--highlight {
    background: #f0fdfa; margin: 0 -0.75rem; padding: 0.75rem;
    border-radius: 10px; border: 1px solid rgba(0, 177, 147, 0.2); border-bottom: none;
}
.landing-profile-list__phone { font-size: 1.05rem; letter-spacing: 0.03em; color: #0f766e; }
.landing-profile-hint {
    margin: 0.75rem 0 0; font-size: 0.75rem; line-height: 1.45; color: #64748b;
}
.landing-auth-card--profile { max-width: 420px; }
.landing-btn--outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.55rem 1rem; border-radius: 10px; border: 1px solid #e2e8f0;
    background: #fff; color: #334155; font-weight: 600; text-decoration: none;
    font-size: 0.85rem; text-align: center;
}
.landing-btn--outline:hover { background: #f8fafc; color: #0f172a; }

.landing-panier-checkout {
    margin-top: 0.65rem; padding: 0.75rem; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 12px;
}
.landing-panier-total {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 0.65rem; padding-bottom: 0.65rem; border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem; color: #64748b;
}
.landing-panier-total strong { color: #0f172a; font-size: 1.15rem; font-weight: 700; }
.landing-panier-submit { padding-top: 0.65rem; padding-bottom: 0.65rem; font-size: 0.9rem; }
.landing-panier-hint {
    margin: 0.45rem 0 0; text-align: center; font-size: 0.72rem; color: #94a3b8;
}
.landing-panier-signup {
    margin: 0.35rem 0 0; text-align: center; font-size: 0.78rem; color: #64748b;
}
.landing-panier-signup a { color: #00B193; font-weight: 600; text-decoration: none; }

.landing-panier-tabs {
    display: flex; gap: 0.35rem; margin-bottom: 0.65rem;
    padding: 0.25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
}
.landing-panier-tab {
    flex: 1; border: none; background: transparent; border-radius: 9px;
    padding: 0.55rem 0.5rem; font-size: 0.78rem; font-weight: 600; color: #64748b;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.landing-panier-tab--active {
    background: #f0fdfa; color: #0f766e; box-shadow: inset 0 0 0 1px rgba(0, 177, 147, 0.25);
}
.landing-panier-tab__badge {
    min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; border-radius: 999px;
    font-size: 0.62rem; font-weight: 700; line-height: 1; color: #fff; background: #00B193;
}

.landing-cmd-list { display: flex; flex-direction: column; gap: 0.55rem; }
.landing-cmd-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
}
.landing-cmd-card__head {
    width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.5rem;
    padding: 0.7rem 0.75rem; border: none; background: transparent; text-align: left; cursor: pointer;
}
.landing-cmd-card__head-main { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.landing-cmd-card__num { font-size: 0.82rem; font-weight: 700; color: #0f172a; }
.landing-cmd-card__date { font-size: 0.68rem; color: #64748b; }
.landing-cmd-card__chevron { color: #94a3b8; font-size: 0.85rem; }
.landing-cmd-card__summary {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 0 0.75rem 0.55rem; font-size: 0.78rem; color: #64748b;
}
.landing-cmd-card__summary strong { color: #00B193; font-size: 0.92rem; }

.landing-cmd-status {
    display: inline-flex; align-items: center; padding: 0.2rem 0.45rem; border-radius: 999px;
    font-size: 0.62rem; font-weight: 700; white-space: nowrap;
}
.landing-cmd-status--new { background: #fef3c7; color: #92400e; }
.landing-cmd-status--progress { background: #dbeafe; color: #1e40af; }
.landing-cmd-status--delivered { background: #cffafe; color: #0e7490; }
.landing-cmd-status--paid { background: #dcfce7; color: #166534; }
.landing-cmd-status--neutral { background: #f1f5f9; color: #475569; }

.landing-cmd-delivery { padding: 0 0.75rem 0.65rem; }
.landing-cmd-delivery__label {
    display: flex; justify-content: space-between; font-size: 0.68rem; color: #64748b; margin-bottom: 0.25rem;
}
.landing-cmd-delivery__bar {
    height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden;
}
.landing-cmd-delivery__fill {
    display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #00B193, #14b8a6);
    transition: width 0.35s ease;
}

.landing-cmd-card__body {
    padding: 0.65rem 0.75rem 0.75rem; border-top: 1px solid #f1f5f9; background: #fafbfc;
}
.landing-cmd-section-title {
    margin: 0 0 0.45rem; font-size: 0.72rem; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.landing-cmd-lines,
.landing-cmd-livraisons {
    margin: 0 0 0.75rem; padding: 0; list-style: none;
}
.landing-cmd-line {
    padding: 0.45rem 0; border-bottom: 1px solid #eef2f7;
}
.landing-cmd-line:last-child { border-bottom: none; }
.landing-cmd-line__main {
    display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start;
}
.landing-cmd-line__name { font-size: 0.8rem; font-weight: 600; color: #0f172a; line-height: 1.3; }
.landing-cmd-line__price { font-size: 0.78rem; font-weight: 700; color: #00B193; white-space: nowrap; }
.landing-cmd-line__meta { font-size: 0.68rem; color: #64748b; margin-top: 0.15rem; }

.landing-cmd-livraison {
    display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.45rem 0;
    border-bottom: 1px solid #eef2f7; font-size: 0.75rem; color: #475569;
}
.landing-cmd-livraison:last-child { border-bottom: none; }
.landing-cmd-livraison i { color: #00B193; margin-top: 0.1rem; }
.landing-cmd-livraison__body { display: flex; flex-direction: column; gap: 0.1rem; }
.landing-cmd-livraison__body strong { color: #0f172a; font-size: 0.78rem; }

.landing-cmd-no-livraison,
.landing-cmd-paid-note,
.landing-cmd-balance-note {
    margin: 0; font-size: 0.75rem; line-height: 1.45; color: #64748b;
}
.landing-cmd-paid-note { color: #166534; font-weight: 600; }
.landing-cmd-balance-note { color: #92400e; font-weight: 600; }
.landing-cmd-footer { margin-top: 0.35rem; }

@media (max-width: 767.98px) {
    .landing-panier-inner { padding-bottom: 0.5rem; }
}

@media (min-width: 768px) {
    .landing-panier { padding: 1rem 0 2rem; }
    .landing-panier-inner { padding: 0 1.25rem; }
    .landing-panier-topbar { padding: 0.85rem 1rem; margin-bottom: 0.85rem; }
    .landing-panier-title { font-size: 1.15rem; }
}

@media (min-width: 768px) {
    .landing-header-inner { padding: 0.65rem 1.25rem; }
    .landing-brand-logo { height: 36px; }
    .landing-catalog { padding: 1.25rem; padding-top: 1rem; }
    .landing-catalog-title { font-size: 1.25rem; }
    .landing-category-strip { flex-wrap: wrap; overflow: visible; }
    .landing-category-chip { font-size: 0.75rem; text-transform: none; letter-spacing: 0; font-weight: 600; }
    .landing-hero-actions { gap: 0.65rem; }
    .landing-btn { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
    .landing-carousel .carousel-inner,
    .landing-carousel .carousel-item,
    .landing-carousel-slide { height: 280px; }
    .landing-auth { padding-bottom: 2rem; }
}

@media (min-width: 992px) {
    .landing-carousel .carousel-inner,
    .landing-carousel .carousel-item,
    .landing-carousel-slide { height: 360px; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HOME â€” Page d'accueil marketing
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.home-page {
    background: #fff;
    color: #0f172a;
    --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --home-radius: 14px;
    --home-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}
.home-container { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }

/* Typographie sections */
.home-kicker {
    margin: 0 0 0.75rem; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.78);
}
.home-kicker__sep { opacity: 0.55; margin: 0 0.15rem; }
.home-label {
    margin: 0 0 0.45rem; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: #00B193;
}
.home-label--light { color: rgba(255,255,255,0.72); }
.home-section-title {
    margin: 0; font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; color: #0f172a;
}
.home-section-title--left { text-align: left; }
.home-section-title--light { color: #fff; }
.home-section-sub {
    margin: 0.65rem 0 0; font-size: 0.92rem; line-height: 1.65; color: #64748b; max-width: 34rem;
}
.home-section-sub--light { color: rgba(255,255,255,0.82); }
.home-section-head { margin-bottom: 2rem; text-align: center; }
.home-section-head .home-section-sub { margin-left: auto; margin-right: auto; }

/* Boutons dÃ©diÃ©s */
.home-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.7rem 1.2rem; border-radius: 999px; font-size: 0.84rem; font-weight: 600;
    text-decoration: none; border: 1px solid transparent; transition: transform 0.2s var(--home-ease), box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer; font-family: inherit;
}
.home-btn:active { transform: scale(0.98); }
.home-btn--primary { background: #00B193; color: #fff; box-shadow: 0 8px 24px rgba(0,177,147,0.28); }
.home-btn--primary:hover { background: #00a085; color: #fff; }
.home-btn--ghost {
    background: rgba(255,255,255,0.1); color: #fff;
    border-color: rgba(255,255,255,0.35); backdrop-filter: blur(4px);
}
.home-btn--ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }
.home-btn--light { background: #fff; color: #0f766e; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.home-btn--light:hover { color: #0d9488; }
.home-btn--sm { padding: 0.55rem 1rem; font-size: 0.8rem; }
.home-btn--block { width: 100%; }

/* Visuels + animations images */
.home-visual {
    position: relative; overflow: hidden; background: #e8edf2;
}
.home-visual__img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.04);
    transition: opacity 0.7s var(--home-ease), transform 0.65s var(--home-ease);
    will-change: transform, opacity;
}
.home-visual__img.is-loaded {
    opacity: 1; transform: scale(1);
}
.home-visual__img.is-fallback { display: none; }
.home-visual__fallback {
    position: absolute; inset: 0; opacity: 1;
    transition: transform 0.65s var(--home-ease);
}
.home-visual--fallback .home-visual__fallback { opacity: 1; }
.home-visual__fallback--hero {
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0,177,147,0.45), transparent 55%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(76,110,147,0.5), transparent 50%),
        linear-gradient(145deg, #0c4a43 0%, #134e4a 40%, #1e3a5f 100%);
}
.home-visual__fallback--about {
    background:
        radial-gradient(circle at 30% 30%, rgba(0,177,147,0.35), transparent 45%),
        linear-gradient(160deg, #dce5ee, #c5d4e3 50%, #b8cfc9 100%);
}
.home-visual__fallback--catalogue {
    background: linear-gradient(135deg, #d4f5ef 0%, #a7f3d0 45%, #6ee7b7 100%);
}
.home-visual__fallback--stock {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 50%, #60a5fa 100%);
}
.home-visual__fallback--vente {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 50%, #f59e0b 100%);
}
.home-visual__fallback--commandes {
    background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 50%, #8b5cf6 100%);
}
.home-visual__fallback--scolaire {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 45%, #f59e0b 100%);
}
.home-visual__fallback--hrm {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 45%, #1d4ed8 100%);
}
.home-visual--hero { width: 100%; height: 100%; min-height: 100%; }
.home-visual--about { aspect-ratio: 4 / 4.2; }
.home-visual--card { aspect-ratio: 16 / 10; }

.home-feature-card:hover .home-visual__img,
.home-feature-card:hover .home-visual__fallback,
.home-about__frame:hover .home-visual__img,
.home-about__frame:hover .home-visual__fallback {
    transform: scale(1.06);
}
.home-visual::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.22) 50%, transparent 58%);
    transform: translateX(-120%);
    transition: transform 0.85s var(--home-ease);
}
.home-feature-card:hover .home-visual::after,
.home-about__frame:hover .home-visual::after {
    transform: translateX(120%);
}

/* Scroll reveal â€” visible par dÃ©faut, animÃ© aprÃ¨s init JS */
[data-reveal] {
    opacity: 1; transform: none;
    transition: opacity 0.75s var(--home-ease) var(--reveal-delay, 0ms),
                transform 0.75s var(--home-ease) var(--reveal-delay, 0ms);
}
.home-page.home-anim-ready [data-reveal]:not(.is-visible) {
    opacity: 0; transform: translateY(24px);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .home-hero__slide-img,
    .home-about__photo { animation: none !important; transform: none !important; }
}

.home-products,
.home-school,
.home-hrm,
.home-values,
.home-services,
.home-testimonials,
.home-contact,
.home-cta {
    content-visibility: auto;
    contain-intrinsic-size: auto 480px;
}

/* Hero */
.home-hero {
    position: relative; min-height: clamp(480px, 88vh, 680px);
    display: flex; align-items: flex-end; overflow: hidden; color: #fff;
    padding-top: 3.5rem;
}
.home-hero__media {
    position: absolute; inset: 0;
    transform: translateY(var(--parallax-y, 0));
    will-change: transform;
}
.home-hero__carousel,
.home-hero__carousel .carousel-inner,
.home-hero__carousel .carousel-item {
    height: 100%; min-height: clamp(480px, 88vh, 680px);
}
.home-hero__carousel .carousel-item {
    overflow: hidden;
}
.home-hero__slide-img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
    transform: scale(1);
}
.home-hero__carousel .carousel-item.active .home-hero__slide-img {
    animation: homeKenBurns 8s ease-out forwards;
}
@keyframes homeKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
.home-hero__carousel.carousel-fade .carousel-item {
    transition: opacity 1.1s ease-in-out;
}
.home-hero__indicators {
    position: absolute; z-index: 3; bottom: 1.35rem; left: 50%; right: auto;
    top: auto; margin: 0; transform: translateX(-50%);
    display: flex; gap: 0.4rem;
}
.home-hero__indicators [data-bs-target] {
    width: 2.25rem; height: 0.2rem; border: none; border-radius: 999px;
    background: rgba(255,255,255,0.35); opacity: 1;
    transition: background 0.25s ease, transform 0.25s ease;
}
.home-hero__indicators [data-bs-target].active {
    background: #00B193; transform: scaleX(1.08);
}
.home-hero__overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(0deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.45) 38%, rgba(15,23,42,0.25) 100%),
        linear-gradient(90deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.35) 42%, transparent 72%);
}
.home-hero__content {
    position: relative; z-index: 2; width: 100%;
    padding: 2.5rem 1rem 3.25rem; max-width: 640px;
}
.home-hero__title {
    margin: 0 0 0.85rem; font-size: clamp(1.75rem, 5.5vw, 2.75rem);
    font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
}
.home-hero__lead {
    margin: 0 0 1.35rem; font-size: 0.95rem; line-height: 1.65;
    color: rgba(255,255,255,0.88); max-width: 30rem;
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.home-hero__scroll {
    position: absolute; z-index: 3; bottom: 1rem; left: 50%; transform: translateX(-50%);
    width: 1.5rem; height: 2.25rem; border: 1.5px solid rgba(255,255,255,0.35); border-radius: 999px;
    display: none;
}
.home-hero__scroll span {
    position: absolute; top: 0.35rem; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
    background: rgba(255,255,255,0.8); border-radius: 999px;
    animation: homeScrollDot 1.8s ease-in-out infinite;
}
@keyframes homeScrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(10px); opacity: 0; }
}

/* Bandeau chiffres */
.home-strip {
    padding: 1.35rem 0; background: #0f172a; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.home-strip__grid {
    display: grid; gap: 0.85rem;
    grid-template-columns: repeat(2, 1fr);
}
.home-strip__item {
    padding: 0.65rem 0.5rem; text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.home-strip__item:nth-child(2n) { border-right: none; }
.home-strip__item strong {
    display: block; font-size: 1.15rem; font-weight: 800; color: #00B193; line-height: 1.2;
}
.home-strip__item span {
    display: block; margin-top: 0.2rem; font-size: 0.68rem; font-weight: 500;
    color: rgba(255,255,255,0.55); letter-spacing: 0.02em;
}

/* Ã€ propos */
.home-about { padding: 3.5rem 0; background: #fff; }
.home-about__grid { display: grid; gap: 2rem; align-items: start; }
.home-about__frame {
    position: relative; border-radius: var(--home-radius); overflow: hidden;
    box-shadow: var(--home-shadow);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    aspect-ratio: 4 / 5;
    max-height: 520px;
}
.home-about__photo {
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center 12%;
    transform: scale(1);
    transition: transform 0.6s var(--home-ease);
}
.home-about__frame:hover .home-about__photo {
    transform: scale(1.03);
}
.home-about__badge {
    position: absolute; bottom: -0.75rem; right: 1rem; z-index: 3;
    padding: 0.65rem 0.85rem; background: #fff; border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.12);
}
.home-about__badge span { display: block; font-size: 0.82rem; font-weight: 800; color: #0f172a; }
.home-about__badge small { display: block; font-size: 0.68rem; color: #64748b; margin-top: 0.1rem; }
.home-about__text {
    display: flex; flex-direction: column; gap: 0;
}
.home-about__text .home-label,
.home-about__text .home-section-title,
.home-about__ceo-signature,
.home-about__text .home-btn {
    text-align: left;
}
.home-about__ceo {
    margin: 1rem 0 1.15rem; padding: 0 0 0 1rem;
    border-left: 3px solid #00B193;
}
.home-about__ceo-quote {
    margin: 0 0 0.75rem;
    font-size: 0.98rem; font-style: italic; line-height: 1.75; color: #1e293b;
    text-align: justify; text-justify: inter-word;
    hyphens: auto; -webkit-hyphens: auto;
    text-align-last: left;
}
.home-about__ceo-signature {
    font-style: normal; font-size: 0.82rem; line-height: 1.45; color: #64748b;
}
.home-about__ceo-signature strong {
    display: block; font-weight: 800; color: #0f172a;
}
.home-about__body {
    display: flex; flex-direction: column; gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.home-about__quote {
    margin: 0; font-size: 0.95rem; line-height: 1.75; color: #334155;
    text-align: justify; text-justify: inter-word;
    hyphens: auto; -webkit-hyphens: auto;
    text-align-last: left;
}
.home-about__quote--muted { color: #64748b; font-size: 0.88rem; }

/* Gamme produits AppliWeb */
.home-products {
    padding: 3.5rem 0;
    background: #fff;
}
.home-products__grid {
    display: grid; gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-product-card {
    display: flex; flex-direction: column; gap: 0.35rem;
    padding: 1.1rem 1.15rem 1rem;
    border: 1px solid #e8ecf1; border-radius: 16px;
    background: #fafbfc; text-decoration: none; color: inherit;
    transition: border-color 0.22s ease, box-shadow 0.28s ease, transform 0.25s var(--home-ease);
}
.home-product-card:hover {
    border-color: rgba(0,177,147,0.35);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}
.home-product-card__kicker {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: #64748b;
}
.home-product-card__name {
    font-size: 1.35rem; font-weight: 800; color: #0f172a; line-height: 1.15;
}
.home-product-card--store .home-product-card__name { color: #0f766e; }
.home-product-card--cash .home-product-card__name { color: #b45309; }
.home-product-card--hrm .home-product-card__name { color: #1d4ed8; }
.home-product-card--school .home-product-card__name { color: #7c3aed; }
.home-product-card__text {
    margin: 0; font-size: 0.82rem; line-height: 1.55; color: #64748b;
}
.home-product-card__tags {
    margin: 0.35rem 0 0.5rem; padding: 0; list-style: none;
    display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.home-product-card__tags li {
    padding: 0.18rem 0.5rem; border-radius: 999px;
    font-size: 0.65rem; font-weight: 600; color: #475569;
    background: #fff; border: 1px solid #e2e8f0;
}
.home-product-card__cta {
    margin-top: auto; font-size: 0.78rem; font-weight: 700; color: #00B193;
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.home-product-card__cta i { font-size: 0.85rem; transition: transform 0.2s ease; }
.home-product-card:hover .home-product-card__cta i { transform: translateX(3px); }

/* Gestion scolaire */
.home-school {
    padding: 3.5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 55%, #fff 100%);
}
.home-school__grid {
    display: grid; gap: 2rem; align-items: center;
}
.home-school__text {
    display: flex; flex-direction: column; gap: 0;
    order: 2;
}
.home-school__text .home-label,
.home-school__text .home-section-title,
.home-school__text .home-btn {
    text-align: left;
}
.home-school__lead {
    margin: 0.85rem 0 1.25rem;
    font-size: 0.95rem; line-height: 1.75; color: #475569;
    text-align: justify; text-justify: inter-word;
    hyphens: auto; -webkit-hyphens: auto;
    text-align-last: left;
}
.home-school__features {
    margin: 0 0 1.35rem; padding: 0; list-style: none;
    display: grid; gap: 0.75rem;
}
.home-school__features li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.75rem 0.85rem; border-radius: 12px;
    background: #fff; border: 1px solid #e8ecf1;
    transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.home-school__features li:hover {
    border-color: rgba(0,177,147,0.28);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.home-school__feature-icon {
    flex-shrink: 0;
    width: 2.35rem; height: 2.35rem; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: #ecfdf8; color: #00B193; font-size: 1.05rem;
}
.home-school__features li strong {
    display: block; font-size: 0.88rem; font-weight: 800; color: #0f172a;
    margin-bottom: 0.12rem;
}
.home-school__features li span {
    display: block; font-size: 0.8rem; line-height: 1.5; color: #64748b;
}
.home-school__media {
    position: relative; order: 1;
    padding-bottom: 0.5rem;
}
.home-school__frame {
    position: relative; border-radius: var(--home-radius); overflow: hidden;
    box-shadow: var(--home-shadow);
    background: #fff;
    aspect-ratio: 5 / 4;
    max-height: 480px;
}
.home-school__photo {
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center 35%;
    transition: transform 0.6s var(--home-ease);
}
.home-school__frame:hover .home-school__photo {
    transform: scale(1.03);
}
.home-school__badge {
    position: absolute; bottom: -0.5rem; left: 1rem; z-index: 3;
    padding: 0.65rem 0.85rem; background: #fff; border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.12);
}
.home-school__badge span { display: block; font-size: 0.82rem; font-weight: 800; color: #0f172a; }
.home-school__badge small { display: block; font-size: 0.68rem; color: #64748b; margin-top: 0.1rem; }

/* GRH / HRM */
.home-hrm {
    padding: 3.5rem 0;
    background: #fff;
}
.home-hrm__grid {
    display: grid; gap: 2rem; align-items: center;
}
.home-hrm__text {
    display: flex; flex-direction: column; gap: 0;
    order: 2;
}
.home-hrm__text .home-label,
.home-hrm__text .home-section-title,
.home-hrm__text .home-btn { text-align: left; }
.home-hrm__lead {
    margin: 0.85rem 0 1.25rem;
    font-size: 0.95rem; line-height: 1.75; color: #475569;
    text-align: justify; text-justify: inter-word;
    hyphens: auto; -webkit-hyphens: auto;
    text-align-last: left;
}
.home-hrm__features {
    margin: 0 0 1.35rem; padding: 0; list-style: none;
    display: grid; gap: 0.75rem;
}
.home-hrm__features li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.75rem 0.85rem; border-radius: 12px;
    background: #f8fafc; border: 1px solid #e8ecf1;
    transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.home-hrm__features li:hover {
    border-color: rgba(29, 78, 216, 0.25);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.home-hrm__feature-icon {
    flex-shrink: 0;
    width: 2.35rem; height: 2.35rem; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: #eff6ff; color: #1d4ed8; font-size: 1.05rem;
}
.home-hrm__features li strong {
    display: block; font-size: 0.88rem; font-weight: 800; color: #0f172a;
    margin-bottom: 0.12rem;
}
.home-hrm__features li span {
    display: block; font-size: 0.8rem; line-height: 1.5; color: #64748b;
}
.home-hrm__media {
    position: relative; order: 1;
    padding-bottom: 0.5rem;
}
.home-hrm__frame {
    position: relative; border-radius: var(--home-radius); overflow: hidden;
    box-shadow: var(--home-shadow);
    background: #0f172a;
    aspect-ratio: 5 / 4;
    max-height: 480px;
}
.home-hrm__photo {
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transition: transform 0.6s var(--home-ease);
}
.home-hrm__frame:hover .home-hrm__photo { transform: scale(1.03); }
.home-hrm__badge {
    position: absolute; bottom: -0.5rem; right: 1rem; z-index: 3;
    padding: 0.65rem 0.85rem; background: #fff; border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.12);
}
.home-hrm__badge span { display: block; font-size: 0.82rem; font-weight: 800; color: #0f172a; }
.home-hrm__badge small { display: block; font-size: 0.68rem; color: #64748b; margin-top: 0.1rem; }

.home-btn--ghost-dark {
    background: #fff; color: #0f172a; border: 1px solid #d6dee8;
}
.home-btn--ghost-dark:hover { background: #f8fafc; color: #0f172a; }

/* Modules â€” bandeau Magnific-style */
.home-features { padding: 3.5rem 0 4rem; background: #f8fafc; }
.home-modules { display: flex; flex-direction: column; gap: 1.35rem; }

.home-modules__marquee {
    position: relative; overflow: hidden;
    padding: 0.75rem 0 1.75rem;
    margin: 0 -0.25rem;
}
.home-modules__marquee-fade {
    position: absolute; top: 0; bottom: 0; width: 4.5rem; z-index: 4; pointer-events: none;
}
.home-modules__marquee-fade--left {
    left: 0; background: linear-gradient(90deg, #f8fafc 30%, transparent);
}
.home-modules__marquee-fade--right {
    right: 0; background: linear-gradient(270deg, #f8fafc 30%, transparent);
}
.home-modules__track {
    display: flex; align-items: flex-start; gap: 1rem; width: max-content;
    animation: homeModulesMarquee 38s linear infinite;
    will-change: transform;
}
.home-modules__marquee:hover .home-modules__track {
    animation-play-state: paused;
}
@keyframes homeModulesMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.home-module-card {
    --home-module-w-hover: clamp(300px, 34vw, 380px);
    position: relative; z-index: 1;
    flex: 0 0 auto;
    width: clamp(200px, 22vw, 240px);
    min-height: 132px;
    display: flex; flex-direction: column;
    padding: 1rem 1.1rem 1.05rem;
    border: 1px solid #e8ecf1; border-radius: 16px;
    background: #fff; cursor: default; text-align: left;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition:
        width 0.48s var(--home-ease),
        border-color 0.28s ease,
        box-shadow 0.32s ease,
        transform 0.32s var(--home-ease),
        z-index 0s linear 0.12s;
    font-family: inherit;
}
.home-module-card:hover,
.home-module-card:focus-within {
    width: var(--home-module-w-hover);
    z-index: 12;
    border-color: #00B193;
    box-shadow: 0 22px 48px rgba(0, 177, 147, 0.16);
    transform: translateY(-6px);
    transition:
        width 0.48s var(--home-ease),
        border-color 0.28s ease,
        box-shadow 0.32s ease,
        transform 0.32s var(--home-ease),
        z-index 0s;
    outline: none;
}

.home-module-card__surface {
    display: flex; flex-direction: column; gap: 0.85rem;
    flex-shrink: 0;
}
.home-module-card__visual {
    width: 3.25rem; height: 3.25rem; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #0f172a; font-size: 1.35rem;
    background: #fff;
    border: 1px solid #d6dee8;
    transition:
        transform 0.35s var(--home-ease),
        background 0.28s ease,
        color 0.28s ease,
        border-color 0.28s ease;
}
.home-module-card:hover .home-module-card__visual,
.home-module-card:focus-within .home-module-card__visual {
    transform: scale(1.05);
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.home-module-card__title {
    margin: 0;
    font-size: 0.95rem; font-weight: 800; color: #0f172a; line-height: 1.35;
}

.home-module-card__panel {
    display: flex; flex-direction: column; gap: 0.65rem;
    max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
    transform: translateY(6px);
    transition:
        max-height 0.48s var(--home-ease),
        opacity 0.32s ease 0.06s,
        transform 0.38s var(--home-ease) 0.04s;
}
.home-module-card:hover .home-module-card__panel,
.home-module-card:focus-within .home-module-card__panel {
    max-height: 320px; opacity: 1; pointer-events: auto;
    transform: translateY(0);
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #eef2f6;
}
.home-module-card__panel-head {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.home-modules__badge {
    display: inline-flex; padding: 0.22rem 0.55rem; border-radius: 999px;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.home-modules__badge--public { background: #d4f5ef; color: #0f766e; }
.home-modules__badge--client { background: #ede9fe; color: #6d28d9; }
.home-modules__badge--staff { background: #dbeafe; color: #1d4ed8; }
.home-modules__badge--school { background: #fef3c7; color: #b45309; }
.home-modules__badge--hrm { background: #dbeafe; color: #1d4ed8; }
.home-modules__badge--neutral { background: #f1f5f9; color: #64748b; }
.home-module-card__desc {
    margin: 0; font-size: 0.84rem; line-height: 1.6; color: #64748b;
}
.home-module-card__list {
    margin: 0; padding: 0; list-style: none;
    display: flex; flex-direction: column; gap: 0.4rem;
}
.home-module-card__list li {
    display: flex; align-items: flex-start; gap: 0.45rem;
    font-size: 0.8rem; color: #334155; line-height: 1.45;
}
.home-module-card__list i { color: #00B193; margin-top: 0.12rem; flex-shrink: 0; }
.home-module-card__panel .home-btn { align-self: flex-start; margin-top: 0.15rem; }

.home-modules__foot {
    margin-top: 1.5rem; padding: 1.15rem 1.2rem; border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 100%);
    border: 1px solid #e2e8f0; text-align: center;
}
.home-modules__foot p { margin: 0 0 0.85rem; font-size: 0.84rem; line-height: 1.6; color: #475569; }
.home-modules__foot-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
    .home-modules__track { animation: none; }
    .home-module-card,
    .home-module-card__panel,
    .home-module-card__visual {
        transition: none;
    }
}

@media (min-width: 768px) {
    .home-module-card {
        --home-module-w-hover: 360px;
        width: 220px;
        min-height: 140px;
        padding: 1.15rem 1.25rem 1.2rem;
    }
    .home-module-card__visual {
        width: 3.5rem; height: 3.5rem; font-size: 1.45rem;
    }
    .home-module-card__title { font-size: 1rem; }
}

/* Engagement */
.home-values {
    padding: 3.5rem 0; background: #0f172a; color: #fff;
    background-image: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(0,177,147,0.18), transparent 55%);
}
.home-values__layout { display: grid; gap: 2rem; }
.home-values__cards { display: grid; gap: 0.85rem; }
.home-value-card {
    padding: 1.15rem 1.2rem; border-radius: 12px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.home-value-card:hover {
    background: rgba(255,255,255,0.07); border-color: rgba(0,177,147,0.35);
}
.home-value-card__num {
    display: block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
    color: #00B193; margin-bottom: 0.45rem;
}
.home-value-card__title { margin: 0 0 0.35rem; font-size: 0.95rem; font-weight: 700; }
.home-value-card__text { margin: 0; font-size: 0.82rem; line-height: 1.55; color: rgba(255,255,255,0.72); }

/* Services */
.home-services { padding: 3.5rem 0; background: #fff; }
.home-services__grid {
    display: grid; gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.home-service-card {
    padding: 1rem; border-radius: 12px; border: 1px solid #eef2f7; background: #fafbfc;
    transition: border-color 0.2s ease, transform 0.25s var(--home-ease);
}
.home-service-card:hover {
    border-color: rgba(0,177,147,0.3); transform: translateY(-2px);
}
.home-service-card__icon {
    width: 2.1rem; height: 2.1rem; border-radius: 8px; background: #ecfdf8; color: #00B193;
    display: flex; align-items: center; justify-content: center; font-size: 0.95rem; margin-bottom: 0.6rem;
}
.home-service-card__title { margin: 0 0 0.3rem; font-size: 0.86rem; font-weight: 700; }
.home-service-card__text { margin: 0; font-size: 0.76rem; line-height: 1.5; color: #64748b; }

/* TÃ©moignages */
.home-testimonials { padding: 3.5rem 0; background: #f8fafc; }
.home-testimonials__grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.home-testimonial {
    margin: 0; padding: 1.25rem 1.2rem 1.1rem; background: #fff;
    border-radius: var(--home-radius); border: 1px solid #e8ecf1;
    box-shadow: 0 6px 24px rgba(15,23,42,0.04);
}
.home-testimonial__mark {
    font-size: 2.5rem; line-height: 1; color: #00B193; opacity: 0.35;
    font-family: Georgia, serif; margin-bottom: -0.5rem;
}
.home-testimonial__quote {
    margin: 0 0 1rem; font-size: 0.88rem; line-height: 1.65; color: #475569;
}
.home-testimonial__author {
    display: flex; align-items: center; gap: 0.65rem;
}
.home-testimonial__avatar {
    width: 2.25rem; height: 2.25rem; border-radius: 999px; flex-shrink: 0;
    background: linear-gradient(135deg, #00B193, #4C6E93); color: #fff;
    font-size: 0.62rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.home-testimonial__author strong { display: block; font-size: 0.8rem; color: #0f172a; }
.home-testimonial__author span { display: block; font-size: 0.7rem; color: #94a3b8; }

/* Contact */
.home-contact { padding: 3.5rem 0; background: #fff; }
.home-contact__wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.home-contact__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}
.home-contact__lead {
    margin: 0;
    line-height: 1.65;
}
.home-contact__lead strong { color: #0f172a; font-weight: 700; }
.home-contact__cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
.home-contact-card {
    padding: 1.25rem 1.2rem;
    border: 1px solid #e8ecf1;
    border-radius: var(--home-radius);
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
    text-align: center;
}
.home-contact-card__icon {
    width: 2.75rem; height: 2.75rem; margin: 0 auto 0.75rem;
    border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
    color: #0f172a; font-size: 1.15rem;
}
.home-contact-card__title {
    margin: 0 0 0.35rem; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase; color: #64748b;
}
.home-contact-card__text {
    margin: 0; font-size: 0.95rem; line-height: 1.55; color: #0f172a; font-weight: 600;
}
.home-contact-card__text a {
    color: inherit; text-decoration: none;
}
.home-contact-card__text a:hover { color: #00B193; }

/* CTA */
.home-cta {
    padding: 3rem 0 3.5rem; background: linear-gradient(125deg, #00B193 0%, #0d9488 55%, #0f766e 100%);
    color: #fff; text-align: center;
}
.home-cta__inner { max-width: 520px; }
.home-cta__title { margin: 0 0 0.55rem; font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 800; line-height: 1.25; }
.home-cta__text { margin: 0 0 1.15rem; font-size: 0.88rem; line-height: 1.6; opacity: 0.92; }

/* Shell accueil */
.landing-shell:has(.home-page) { background: #fff; }
.landing-shell--home .landing-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: transparent; border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.landing-shell--auth .landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.landing-shell--auth .landing-auth {
    flex: 1;
    min-height: auto;
    padding-bottom: 2.5rem;
}

.landing-shell--home .landing-brand { color: #fff; }
.landing-shell--home .landing-brand-by {
    display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.04em;
    color: rgba(255,255,255,0.65); text-transform: none; margin-top: 0.05rem;
}
.landing-shell--home .landing-header-link { color: rgba(255,255,255,0.88); }
.landing-shell--home .landing-header-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.landing-shell--home .landing-header-link--active {
    color: #fff; background: rgba(255,255,255,0.16);
}
.landing-shell--home .landing-header-icon-btn {
    color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.08);
}
.landing-shell--home .landing-header-icon-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.landing-shell--home .landing-header-btn--ghost {
    color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08);
}
.landing-shell--home .landing-header-btn--ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }
.landing-shell--home .landing-header-btn--primary { box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.landing-shell--home .landing-header-menu-toggle {
    color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.08);
}
.landing-shell--home.landing-shell--scrolled .landing-header-menu-toggle {
    color: #64748b; border-color: #e2e8f0; background: #fff;
}
.landing-shell--home.landing-shell--menu-open .landing-header {
    background: #fff; border-bottom-color: #e2e8f0;
}
.landing-shell--home.landing-shell--menu-open .landing-brand,
.landing-shell--home.landing-shell--menu-open .landing-header-icon-btn,
.landing-shell--home.landing-shell--menu-open .landing-header-menu-toggle {
    color: #0f172a; border-color: #e2e8f0; background: #fff;
}
.landing-shell--home.landing-shell--menu-open .landing-brand-by {
    color: #94a3b8;
}
.landing-shell--home.landing-shell--menu-open .landing-header-btn--ghost {
    color: #475569 !important;
    border-color: #e2e8f0 !important;
    background: #fff !important;
}
.landing-shell--home.landing-shell--menu-open .landing-header-btn--ghost:hover {
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}
.landing-shell--home.landing-shell--menu-open .landing-header-drawer__link {
    color: #334155;
}
.landing-shell--home.landing-shell--menu-open .landing-header-drawer__link:hover {
    color: #00B193;
}
.landing-shell--home.landing-shell--menu-open .landing-header-drawer__link.landing-header-link--active {
    color: #00B193;
    background: rgba(0,177,147,0.1);
}
.landing-shell--menu-open { overflow: hidden; }
.landing-shell--home.landing-shell--scrolled .landing-header {
    background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
    border-bottom-color: #e8ecf1; box-shadow: 0 4px 24px rgba(15,23,42,0.06);
}
.landing-shell--home.landing-shell--scrolled .landing-brand { color: #0f172a; }
.landing-shell--home.landing-shell--scrolled .landing-brand-by { color: #94a3b8; }
.landing-shell--home.landing-shell--scrolled .landing-header-link { color: #64748b; }
.landing-shell--home.landing-shell--scrolled .landing-header-link:hover { color: #00B193; background: rgba(0,177,147,0.06); }
.landing-shell--home.landing-shell--scrolled .landing-header-link--active {
    color: #00B193; background: rgba(0,177,147,0.1);
}
.landing-shell--home.landing-shell--scrolled .landing-header-icon-btn {
    color: #64748b; border-color: #e2e8f0; background: #fff;
}
.landing-shell--home.landing-shell--scrolled .landing-header-btn--ghost {
    color: #475569; border-color: #e2e8f0; background: #fff;
}
.landing-shell--home.landing-shell--scrolled .landing-header-link--muted { color: #94a3b8; }

.landing-shell--spy-ready .landing-header-link--active:not(.landing-header-link--scroll-active) {
    color: inherit;
    font-weight: 500;
    background: transparent;
}
.landing-shell--home.landing-shell--spy-ready:not(.landing-shell--scrolled) .landing-header-link--active:not(.landing-header-link--scroll-active) {
    color: rgba(255,255,255,0.88);
}
.landing-shell--home.landing-shell--spy-ready:not(.landing-shell--scrolled) .landing-header-link--scroll-active {
    color: #fff !important;
    background: rgba(255,255,255,0.12);
}
.landing-shell--home.landing-shell--spy-ready:not(.landing-shell--scrolled) .landing-header-link--scroll-active::after {
    background: #fff;
}

.landing-shell.landing-shell--scrolled .landing-header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom-color: #e8ecf1;
    box-shadow: 0 4px 24px rgba(15,23,42,0.06);
}

/* Footer compact â€” pages publiques */
@media (max-width: 767.98px) {
    .landing-catalog {
        padding: 0.75rem 0.85rem 1rem;
    }
    .landing-panier {
        padding-bottom: 0.25rem;
    }
    .home-school {
        padding: 2.25rem 0;
    }
    .home-school__frame {
        max-height: none;
        aspect-ratio: 4 / 3;
    }
    .home-school__badge {
        left: 0.75rem;
        bottom: -0.35rem;
    }
    .home-school__lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .home-school__features li {
        padding: 0.65rem 0.75rem;
    }
    .home-products__grid {
        grid-template-columns: 1fr;
    }
    .home-hrm {
        padding: 2.25rem 0;
    }
    .home-hrm__frame {
        max-height: none;
        aspect-ratio: 4 / 3;
    }
    .home-hrm__badge {
        right: 0.75rem;
        bottom: -0.35rem;
    }
    .home-hrm__lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .home-hrm__features li {
        padding: 0.65rem 0.75rem;
    }
}

@media (min-width: 768px) {
    .landing-footer--compact {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.55rem 1.25rem;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    .landing-footer-compact__copy { text-align: right; }
}

@media (min-width: 768px) {
    .home-container { padding: 0 1.5rem; }
    .home-hero { align-items: center; }
    .home-hero__content { padding: 4rem 1.5rem; }
    .home-hero__scroll { display: block; }
    .home-strip__grid { grid-template-columns: repeat(4, 1fr); }
    .home-strip__item { border-right: 1px solid rgba(255,255,255,0.08); }
    .home-strip__item:last-child { border-right: none; }
    .home-about__grid { grid-template-columns: 0.95fr 1.05fr; gap: 3rem; align-items: start; }
    .home-about__media { position: relative; padding-bottom: 1rem; }
    .home-about__frame { max-height: 560px; }
    .home-school__grid {
        grid-template-columns: 1.05fr 0.95fr; gap: 3rem;
    }
    .home-school__text { order: 1; }
    .home-school__media { order: 2; padding-bottom: 1rem; }
    .home-school__features {
        grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem;
    }
    .home-school__frame { max-height: 520px; }
    .home-hrm__grid {
        grid-template-columns: 0.95fr 1.05fr; gap: 3rem;
    }
    .home-hrm__text { order: 2; }
    .home-hrm__media { order: 1; padding-bottom: 1rem; }
    .home-hrm__features {
        grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem;
    }
    .home-hrm__frame { max-height: 520px; }
    .home-products__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
    .home-values__layout { grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
    .home-values__intro { text-align: left; }
    .home-contact__cards { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}

@media (min-width: 992px) {
    .home-hero__content { max-width: 680px; }
}
