@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --v14-navy: #0a1a2f;
    --v14-navy-2: #102945;
    --v14-navy-3: #1a3a5b;
    --v14-amber: #e9a23b;
    --v14-gold: #f6c66e;
    --v14-cream: #fdf3e1;
    --v14-ink: #14243a;
    --v14-muted: #66768d;
    --v14-line: #e4eaf2;
    --v14-page: #f3f6fa;
    --v14-card: #ffffff;
    --v14-shadow: 0 12px 32px rgba(10, 26, 47, .055);

    /* Compatibilité avec les variables du thème historique */
    --gold: #e9a23b;
    --gold2: #f6c66e;
    --gold-light: #fdf3e1;
    --gold-border: #f0d9ac;
    --green: #16835f;
    --green-light: #eaf7f0;
    --green-border: #b9e6ce;
    --green-text: #155b43;
    --red: #b83d43;
    --red-light: #fff0ef;
    --red-border: #f4d0ce;
    --red-text: #8e3036;
    --purple: #7350a5;
    --purple-light: #f4effb;
    --purple-border: #d9c8ef;
    --blue: #315f86;
    --blue-light: #edf3f8;
    --blue-border: #c7d7e5;
    --blue-text: #254965;
    --bg: #f3f6fa;
    --surface: #ffffff;
    --t1: #0a1a2f;
    --t2: #26384d;
    --t3: #66768d;
    --t4: #8997a9;
    --b1: #e4eaf2;
    --b2: #d2dce7;
    --b3: #a7b5c4;
    --sidebar-w: 76px;
    --topbar-h: 68px;
    --bottom-nav-h: 66px;
    --shadow-xs: 0 1px 3px rgba(10, 26, 47, .04);
    --shadow-sm: 0 4px 14px rgba(10, 26, 47, .055);
    --shadow-md: 0 12px 28px rgba(10, 26, 47, .09);
    --shadow-lg: 0 22px 48px rgba(10, 26, 47, .15);
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
}

.v14-admin,
.v14-space-picker,
.v14-auth-forgot,
.v14-security {
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.v14-admin {
    color: var(--v14-ink);
    background: var(--v14-page);
    overflow-x: hidden;
}
.v14-admin button,
.v14-admin input,
.v14-admin select,
.v14-admin textarea {
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.v14-admin :focus-visible {
    outline: 3px solid rgba(233, 162, 59, .42);
    outline-offset: 2px;
}
.v14-admin :is(h1, h2, h3, h4) {
    color: var(--v14-navy);
    letter-spacing: -.025em;
}
.v14-admin :is(.content, .page-content, .main-content, .wrap) {
    min-width: 0;
}

/* Composants réutilisés par les modules historiques */
.v14-admin :is(.card, .kpi-card, .form-card, .table-card, .rapport-card, .info-card, .profile-card, .wallet-card, .bo-card, .pack-card, .item-card) {
    background: var(--v14-card) !important;
    border-color: var(--v14-line) !important;
    border-radius: 18px !important;
    box-shadow: var(--v14-shadow) !important;
}
.v14-admin :is(.card-header, .card-head, .bo-card-h) {
    border-color: var(--v14-line) !important;
}
.v14-admin .card-label {
    color: var(--v14-muted) !important;
    letter-spacing: .08em;
}
.v14-admin :is(.sec-title, .page-title, .section-title, .table-title) {
    color: var(--v14-navy) !important;
}
.v14-admin :is(.table-wrap, .table-responsive, .table-container, .table-scroll, .rapport-table-wrap) {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.v14-admin :is(table, .data-table, .rapport-table) {
    max-width: 100%;
    border-color: var(--v14-line);
    color: var(--v14-ink);
}
.v14-admin :is(th, td) {
    border-color: var(--v14-line);
}
.v14-admin th {
    color: var(--v14-muted);
    background: #f7f9fc;
    font-weight: 800;
}
.v14-admin td {
    color: var(--v14-ink);
}
.v14-admin input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="file"]),
.v14-admin select,
.v14-admin textarea {
    border-color: #d8e1eb;
    border-radius: 10px;
    color: var(--v14-ink);
}
.v14-admin input:focus,
.v14-admin select:focus,
.v14-admin textarea:focus {
    border-color: var(--v14-amber) !important;
    box-shadow: 0 0 0 3px rgba(233, 162, 59, .15) !important;
}
.v14-admin button,
.v14-admin .btn {
    border-radius: 11px;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.v14-admin :is(.msg, .flash, .alert, .notice, .toast) {
    border-radius: 12px;
}
.v14-admin ::selection {
    color: var(--v14-navy);
    background: rgba(246, 198, 110, .48);
}

/* Layout du premier espace authentifié : rail V14 + contenu */
.v14-admin.v14-legacy {
    display: flex;
    min-height: 100vh;
    --sidebar-w: 76px;
    --topbar-h: 68px;
}
.v14-admin.v14-legacy .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    width: 76px !important;
    background: linear-gradient(180deg, #0a1a2f 0%, #071629 100%) !important;
    border: 0 !important;
    box-shadow: 8px 0 24px rgba(10, 26, 47, .08);
}
.v14-admin.v14-legacy .sb-brand {
    height: 68px;
    padding: 0 15px;
    justify-content: center;
    border-color: rgba(255, 255, 255, .08);
}
.v14-admin.v14-legacy .sb-brand-ico {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--v14-navy);
    background: linear-gradient(140deg, var(--v14-gold), var(--v14-amber));
    box-shadow: 0 8px 20px rgba(233, 162, 59, .2);
}
.v14-admin.v14-legacy .sb-brand-name,
.v14-admin.v14-legacy .sb-brand-sub,
.v14-admin.v14-legacy .sb-fold,
.v14-admin.v14-legacy .sb-status {
    display: none !important;
}
.v14-admin.v14-legacy .sb-nav {
    gap: 4px;
    padding: 14px 12px 18px;
}
.v14-admin.v14-legacy .sb-sec-label {
    display: none !important;
}
.v14-admin.v14-legacy .sb-nav .ni {
    display: flex;
    width: 50px;
    min-height: 48px;
    height: 48px;
    margin: 2px auto;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 16px;
    color: #b8c6d7;
    background: transparent;
}
.v14-admin.v14-legacy .sb-nav .ni svg {
    width: 20px;
    height: 20px;
    color: currentColor;
}
.v14-admin.v14-legacy .sb-nav .ni .label,
.v14-admin.v14-legacy .sb-nav .ni .nbadge {
    display: none !important;
}
.v14-admin.v14-legacy .sb-nav .ni:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .09);
}
.v14-admin.v14-legacy .sb-nav .ni.active {
    color: #fff;
    background: rgba(233, 162, 59, .18);
}
.v14-admin.v14-legacy .sb-nav .ni.active::before {
    left: -12px;
    width: 3px;
    background: var(--v14-amber);
}
.v14-admin.v14-legacy .main {
    min-width: 0;
    margin-left: 76px !important;
    background: var(--v14-page);
}
.v14-admin.v14-legacy .topbar {
    height: var(--topbar-h);
    padding: 0 clamp(14px, 2.5vw, 30px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--v14-line);
    box-shadow: 0 4px 18px rgba(10, 26, 47, .035);
    backdrop-filter: blur(14px);
}
.v14-admin.v14-legacy .tb-title {
    overflow: hidden;
    color: var(--v14-navy);
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v14-admin.v14-legacy .tb-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: min(48vw, 460px);
    margin-top: 2px;
    overflow: hidden;
    color: var(--v14-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v14-admin.v14-legacy .v14-context-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--v14-amber);
    box-shadow: 0 0 0 3px rgba(233, 162, 59, .12);
}
.v14-admin.v14-legacy .v14-context-name {
    overflow: hidden;
    text-overflow: ellipsis;
}
.v14-admin.v14-legacy .tb-actions {
    gap: 9px;
}
.v14-admin.v14-legacy .icon-btn {
    width: 38px;
    height: 38px;
    border-color: var(--v14-line);
    border-radius: 12px;
    color: var(--v14-muted);
}
.v14-admin.v14-legacy .icon-btn:hover {
    border-color: #efd5a5;
    color: var(--v14-navy);
    background: var(--v14-cream);
}
.v14-admin.v14-legacy .tb-user {
    border-color: transparent;
    background: transparent;
}
.v14-admin.v14-legacy .tb-user:hover {
    border-color: var(--v14-line);
    background: #f7f9fc;
}
.v14-admin.v14-legacy .tb-avatar-img {
    width: 36px;
    height: 36px;
    border-color: #f0d9ac;
}
.v14-admin.v14-legacy .tb-uname {
    color: var(--v14-navy);
    font-weight: 800;
}
.v14-admin.v14-legacy .tb-urole {
    color: var(--v14-muted);
}
.v14-admin.v14-legacy .content {
    width: 100%;
    max-width: 1540px;
    padding: clamp(18px, 2.5vw, 36px) clamp(15px, 3vw, 44px) 54px;
    gap: 22px;
}
.v14-admin.v14-legacy .bottom-nav {
    display: none;
}

/* Layout des modules site/organisateur */
.v14-admin.v14-office {
    min-height: 100vh;
    --sidebar-w: 76px;
    --topbar-h: 68px;
    --black: #0a1a2f;
    --white: #ffffff;
    --bg: #f3f6fa;
    --line: #e4eaf2;
    --muted: #66768d;
    --blue: #315f86;
    --blue-soft: #edf3f8;
    --red: #b83d43;
    --red-soft: #fff0ef;
}
.v14-admin.v14-office .app-wrapper {
    min-height: 100vh;
    background: var(--v14-page);
}
.v14-admin.v14-office .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 160;
    width: 76px !important;
    height: 100vh;
    background: linear-gradient(180deg, #0a1a2f 0%, #071629 100%) !important;
    border: 0 !important;
    box-shadow: 8px 0 24px rgba(10, 26, 47, .08);
}
.v14-admin.v14-office .sidebar-brand {
    height: 68px;
    padding: 0 15px;
    justify-content: center;
    border-color: rgba(255, 255, 255, .08);
}
.v14-admin.v14-office .brand-logo-full {
    display: none !important;
}
.v14-admin.v14-office .brand-logo-ico {
    display: block !important;
    width: 42px;
    height: 42px;
    padding: 5px;
    border-radius: 14px;
    background: var(--v14-cream);
}
.v14-admin.v14-office .sb-fold,
.v14-admin.v14-office .sidebar-user,
.v14-admin.v14-office .sidebar-footer {
    display: none !important;
}
.v14-admin.v14-office .sidebar-nav {
    padding: 14px 12px 18px;
}
.v14-admin.v14-office .sidebar-nav .nav-label {
    display: none !important;
}
.v14-admin.v14-office .sidebar-nav a {
    position: relative;
    display: flex;
    width: 50px;
    min-height: 48px;
    height: 48px;
    margin: 3px auto;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 16px;
    color: #b8c6d7;
    background: transparent;
}
.v14-admin.v14-office .sidebar-nav a .nav-ico {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: transparent;
    color: currentColor;
}
.v14-admin.v14-office .sidebar-nav a .nav-txt,
.v14-admin.v14-office .sidebar-nav a .nav-count {
    display: none !important;
}
.v14-admin.v14-office .sidebar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}
.v14-admin.v14-office .sidebar-nav a.active {
    color: #fff;
    background: rgba(233, 162, 59, .18);
}
.v14-admin.v14-office .sidebar-nav a.active .nav-ico {
    color: var(--v14-gold);
    background: transparent;
}
.v14-admin.v14-office .sidebar-nav a.active::before {
    position: absolute;
    top: 25%;
    bottom: 25%;
    left: -12px;
    width: 3px;
    content: "";
    border-radius: 0 3px 3px 0;
    background: var(--v14-amber);
}
.v14-admin.v14-office .main-content {
    min-width: 0;
    margin-left: 76px;
    background: var(--v14-page);
}
.v14-admin.v14-office .top-bar {
    height: var(--topbar-h);
    padding: 0 clamp(14px, 2.5vw, 30px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--v14-line);
    box-shadow: 0 4px 18px rgba(10, 26, 47, .035);
    backdrop-filter: blur(14px);
}
.v14-admin.v14-office .top-bar-left,
.v14-admin.v14-office .site-switch {
    min-width: 0;
}
.v14-admin.v14-office .site-switch {
    flex: 1;
}
.v14-admin.v14-office .site-switch :is(.site-title, select) {
    max-width: min(56vw, 480px);
    overflow: hidden;
    color: var(--v14-navy);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v14-admin.v14-office .site-switch select {
    min-width: 0;
}
.v14-admin.v14-office .user-menu {
    flex-shrink: 0;
    border-color: var(--v14-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}
.v14-admin.v14-office .user-avatar {
    border: 2px solid #f0d9ac;
    background: var(--v14-navy);
}
.v14-admin.v14-office .user-name {
    color: var(--v14-navy);
}
.v14-admin.v14-office .user-role {
    color: var(--v14-muted);
}
.v14-admin.v14-office .logout-btn {
    border-radius: 11px;
    background: var(--v14-cream);
    color: #a56a17;
}
.v14-admin.v14-office .logout-btn:hover {
    background: var(--v14-gold);
    color: var(--v14-navy);
}
.v14-admin.v14-office .page-content {
    width: 100%;
    max-width: 1380px;
    padding: clamp(18px, 2.5vw, 36px) clamp(15px, 3vw, 44px) 48px;
}
.v14-admin.v14-office .bottom-nav {
    display: none;
}

/* Pages administrateur autonomes : même barre et même système visuel */
.v14-admin.v14-standalone,
.v14-admin.v14-standalone *,
.v14-admin.v14-standalone *::before,
.v14-admin.v14-standalone *::after {
    box-sizing: border-box;
}
.v14-admin.v14-standalone {
    min-height: 100vh;
    margin: 0;
    background: var(--v14-page);
}
.v14-admin.v14-standalone .top {
    display: none !important;
}
.v14-standalone-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    background: linear-gradient(110deg, #071629, #0a1a2f 66%, #12304e);
    box-shadow: 0 8px 24px rgba(10, 26, 47, .14);
}
.v14-standalone-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(1480px, 100%);
    min-height: 70px;
    margin: 0 auto;
    padding: 10px 24px;
}
.v14-standalone-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
}
.v14-standalone-brand img {
    display: block;
    width: auto;
    height: 32px;
    max-width: 168px;
    object-fit: contain;
}
.v14-standalone-brand span {
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.v14-standalone-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
}
.v14-standalone-nav::-webkit-scrollbar { display: none; }
.v14-standalone-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.v14-standalone-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}
.v14-standalone-nav a.is-active {
    color: var(--v14-navy);
    border-color: rgba(246, 198, 110, .75);
    background: linear-gradient(135deg, var(--v14-gold), var(--v14-amber));
}
.v14-standalone-nav a.is-exit {
    color: #ffd4d1;
}
.v14-standalone-nav a.is-exit:hover {
    color: #fff;
    background: rgba(184, 61, 67, .26);
}
.v14-admin.v14-standalone .wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(20px, 2.5vw, 36px) clamp(14px, 2.5vw, 28px) 56px;
}
.v14-admin.v14-standalone .wrap > h1 {
    margin: 0 0 6px;
    color: var(--v14-navy);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -.045em;
}
.v14-admin.v14-standalone .sous {
    max-width: 860px;
    margin: 0 0 22px;
    color: var(--v14-muted);
    font-size: 13px;
    line-height: 1.65;
}
.v14-admin.v14-standalone :is(.card, .kpi) {
    background: var(--v14-card) !important;
    border: 1px solid var(--v14-line) !important;
    border-radius: 18px !important;
    box-shadow: var(--v14-shadow) !important;
}
.v14-admin.v14-standalone .card {
    padding: 20px 22px;
}
.v14-admin.v14-standalone .card h2 {
    color: var(--v14-navy);
    font-size: 16px;
    font-weight: 800;
}
.v14-admin.v14-standalone .kpi {
    padding: 15px 17px;
}
.v14-admin.v14-standalone .kpi .lab {
    color: var(--v14-muted);
    letter-spacing: .09em;
}
.v14-admin.v14-standalone .kpi .val,
.v14-admin.v14-standalone .total {
    color: var(--v14-navy);
}
.v14-admin.v14-standalone .mini {
    color: #77869a;
}
.v14-admin.v14-standalone .btn {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 11px;
    font-family: inherit;
    font-weight: 800;
}
.v14-admin.v14-standalone .b-ok {
    color: #fff;
    background: linear-gradient(135deg, #153655, #0a1a2f);
}
.v14-admin.v14-standalone .b-ok:hover {
    background: linear-gradient(135deg, #1a3a5b, #102945);
}
.v14-admin.v14-standalone .b-ghost {
    border-color: var(--v14-line);
    color: var(--v14-navy);
}
.v14-admin.v14-standalone :is(input, select, textarea) {
    max-width: 100%;
    border-color: #d8e1eb;
    border-radius: 10px;
    background-color: #fff;
    color: var(--v14-ink);
    font-family: inherit;
}
.v14-admin.v14-standalone input:focus,
.v14-admin.v14-standalone select:focus,
.v14-admin.v14-standalone textarea:focus {
    border-color: var(--v14-amber) !important;
    box-shadow: 0 0 0 3px rgba(233, 162, 59, .15) !important;
}
.v14-admin.v14-standalone table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.v14-admin.v14-standalone th {
    color: var(--v14-muted);
    border-bottom-color: var(--v14-line);
    background: #f7f9fc;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
}
.v14-admin.v14-standalone td {
    border-bottom-color: #edf1f5;
}
.v14-admin.v14-standalone .msg {
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(10, 26, 47, .04);
}
.v14-admin.v14-payment-settings .wrap {
    max-width: 1040px;
}

/* Sélecteur d'espace après identification */
.v14-space-picker,
.v14-space-picker *,
.v14-space-picker *::before,
.v14-space-picker *::after {
    box-sizing: border-box;
}
.v14-space-picker {
    min-height: 100vh;
    margin: 0;
    color: var(--v14-ink);
    background: radial-gradient(ellipse at 12% 4%, #173758 0%, #0a1a2f 48%, #061427 100%);
}
.v14-space-picker .cs-header {
    border-bottom-color: rgba(255, 255, 255, .1);
    background: rgba(7, 22, 41, .88);
}
.v14-space-picker .cs-header .brand-logo-full {
    display: block;
    width: auto;
    height: 36px;
    max-width: 190px;
    object-fit: contain;
}
.v14-space-picker .cs-header .brand-logo-ico {
    display: none;
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}
.v14-space-picker .auth-page {
    z-index: 1;
}
.v14-space-picker .sheet {
    border: 1px solid rgba(255, 255, 255, .54);
    border-radius: 24px;
    background: #fffdf9;
    box-shadow: 0 24px 74px rgba(1, 11, 23, .38);
}
.v14-space-picker .sheet h1 {
    color: var(--v14-navy);
}
.v14-space-picker .role-pill {
    border: 1px solid #f0d9ac;
    border-radius: 999px;
    background: var(--v14-cream);
    color: #9b6518;
}
.v14-space-picker .search {
    border-color: #dfe6ee;
    border-radius: 13px;
    background: #fff;
}
.v14-space-picker .search:focus-within {
    border-color: var(--v14-amber);
    box-shadow: 0 0 0 3px rgba(233, 162, 59, .14);
}
.v14-space-picker .site-card {
    border-color: #e2e8ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(10, 26, 47, .055);
}
.v14-space-picker .site-card:hover {
    border-color: var(--v14-amber);
    box-shadow: 0 12px 26px rgba(10, 26, 47, .12);
}
.v14-space-picker .site-logo {
    border-radius: 14px;
    background: linear-gradient(145deg, var(--v14-gold), var(--v14-amber));
    color: var(--v14-navy);
}
.v14-space-picker .site-logo img {
    border-radius: 12px;
}
.v14-space-picker .site-go {
    border-color: #f0d9ac;
    background: var(--v14-cream);
    color: #9b6518;
}
.v14-space-picker .site-card:hover .site-go {
    border-color: var(--v14-amber);
    background: var(--v14-amber);
    color: var(--v14-navy);
}
.v14-space-picker .auth-footer {
    color: rgba(255, 255, 255, .75);
}

/* Mot de passe oublié : feuille V14 cohérente avec l'écran de connexion */
.v14-auth-forgot {
    min-height: 100vh;
    color: var(--v14-ink);
    background: radial-gradient(ellipse at 14% 8%, #173758 0%, #0a1a2f 48%, #061427 100%) !important;
}
.v14-auth-forgot .auth-page {
    display: flex;
    background: transparent !important;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    padding: 28px 18px;
}
.v14-auth-forgot .auth-brand .brand-logo-full {
    display: block !important;
    width: auto;
    height: 44px;
    max-width: min(245px, 78vw);
    filter: none;
}
.v14-auth-forgot .auth-brand .brand-logo-ico {
    display: none !important;
}
.v14-auth-forgot .auth-sheet {
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 26px 72px rgba(2, 12, 26, .3);
}
.v14-auth-forgot .auth-footer {
    margin-top: 0;
    padding-top: 14px;
    color: rgba(255, 255, 255, .74);
}
.v14-auth-forgot .auth-footer-sep {
    color: rgba(255, 255, 255, .48);
}
.v14-auth-forgot .alert-ok {
    border-color: #cde8dc;
    border-radius: 12px;
    background: #edf8f2;
    color: #155b43;
}
.v14-auth-forgot .alert-error {
    border-color: var(--v14-red-line, #f4d0ce);
    border-radius: 12px;
}

/* Confirmation du portefeuille : écran sécurisé sans changer le flux */
.v14-security {
    min-height: 100vh;
    color: var(--v14-ink);
    background: radial-gradient(ellipse at 18% 4%, #173758 0%, #0a1a2f 52%, #061427 100%);
}
.v14-security .box {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 26px 72px rgba(2, 12, 26, .3);
}
.v14-security .head {
    border-bottom: 1px solid rgba(246, 198, 110, .22);
    background: linear-gradient(135deg, #0a1a2f, #163756);
}
.v14-security .head h1 {
    color: #fff;
    letter-spacing: -.025em;
}
.v14-security .body {
    color: var(--v14-ink);
}
.v14-security input {
    font: 600 14px/1.4 "Manrope", system-ui, sans-serif;
    border-color: #d8e1eb;
    border-radius: 11px;
}
.v14-security input:focus {
    border-color: var(--v14-amber);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 162, 59, .15);
}
.v14-security .btn {
    border: 1px solid var(--v14-amber);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--v14-gold), var(--v14-amber));
    color: var(--v14-navy);
    font: 800 13px/1.35 "Manrope", system-ui, sans-serif;
}
.v14-security .btn:hover {
    background: var(--v14-gold);
}
.v14-security .info {
    color: var(--v14-muted);
}

@media (max-width: 820px) {
    .v14-admin.v14-standalone .grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .v14-admin.v14-office .main-content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .v14-admin.v14-office .sidebar {
        width: min(86vw, 320px) !important;
        transform: translateX(-105%);
        transition: transform .24s ease;
    }
    .v14-admin.v14-office .sidebar.open {
        transform: translateX(0);
    }
    .v14-admin.v14-office .sidebar-brand {
        justify-content: flex-start;
        padding: 0 16px;
    }
    .v14-admin.v14-office .brand-logo-full {
        display: block !important;
        width: auto;
        height: 36px;
        max-width: 190px;
    }
    .v14-admin.v14-office .brand-logo-ico {
        display: none !important;
    }
    .v14-admin.v14-office .sb-close {
        display: grid;
        place-items: center;
        flex: 0 0 36px;
        margin-left: auto;
        border-color: rgba(255, 255, 255, .15);
        background: rgba(255, 255, 255, .08);
        color: #fff;
    }
    .v14-admin.v14-office .sidebar-nav {
        overflow-y: auto;
        padding: 12px 12px 18px;
    }
    .v14-admin.v14-office .sidebar-nav .nav-label {
        display: block !important;
        color: rgba(255, 255, 255, .44);
    }
    .v14-admin.v14-office .sidebar-nav a {
        width: 100%;
        min-height: 44px;
        height: auto;
        margin: 2px 0;
        padding: 5px 9px;
        justify-content: flex-start;
        gap: 10px;
        border-radius: 12px;
    }
    .v14-admin.v14-office .sidebar-nav a .nav-ico {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: rgba(255, 255, 255, .07);
        color: currentColor;
    }
    .v14-admin.v14-office .sidebar-nav a .nav-txt {
        display: block !important;
        flex: 1;
        min-width: 0;
        color: inherit;
        font-size: 13px;
    }
    .v14-admin.v14-office .sidebar-nav a .nav-count {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }
    .v14-admin.v14-office .sidebar-user {
        display: flex !important;
        margin: 0 12px 12px;
        border-color: rgba(255, 255, 255, .12);
        color: #fff;
    }
    .v14-admin.v14-office .sidebar-user .su-name {
        color: #fff;
    }
    .v14-admin.v14-office .sidebar-user .su-role {
        color: rgba(255, 255, 255, .6);
    }
    .v14-admin.v14-office .sidebar-footer {
        display: block !important;
        color: rgba(255, 255, 255, .38);
    }
    .v14-admin.v14-office .main-content {
        width: 100%;
        margin-left: 0;
    }
    .v14-admin.v14-office .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 150;
        background: rgba(4, 15, 29, .48);
        backdrop-filter: blur(3px);
    }
    .v14-admin.v14-office .mobile-overlay.open {
        display: block;
    }
    .v14-admin.v14-office .top-bar {
        position: sticky;
        top: 0;
        z-index: 100;
        height: 64px;
        padding: 0 12px;
    }
    .v14-admin.v14-office .burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-color: var(--v14-line);
        border-radius: 12px;
        color: var(--v14-navy);
    }
    .v14-admin.v14-office .site-switch {
        gap: 7px;
    }
    .v14-admin.v14-office .site-switch img {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }
    .v14-admin.v14-office .site-switch :is(.site-title, select) {
        max-width: 44vw;
        font-size: 12px;
    }
    .v14-admin.v14-office .user-menu {
        gap: 4px;
        padding: 3px;
        border-color: transparent;
    }
    .v14-admin.v14-office .user-info,
    .v14-admin.v14-office .user-menu .logout-btn {
        display: none;
    }
    .v14-admin.v14-office .page-content {
        padding: 18px 14px calc(78px + env(safe-area-inset-bottom));
    }
    .v14-admin.v14-office .bottom-nav {
        display: flex;
        position: fixed;
        inset: auto 0 0;
        z-index: 140;
        height: calc(66px + env(safe-area-inset-bottom));
        padding: 0 3px env(safe-area-inset-bottom);
        border-top: 1px solid var(--v14-line);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 24px rgba(10, 26, 47, .06);
        backdrop-filter: blur(16px);
    }
    .v14-admin.v14-office .bottom-nav a {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 54px;
        color: #7d8998;
        font-size: 9px;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
    }
    .v14-admin.v14-office .bottom-nav a svg {
        width: 19px;
        height: 19px;
    }
    .v14-admin.v14-office .bottom-nav a.active {
        color: #a96d18;
    }
}

@media (max-width: 768px) {
    .v14-admin.v14-legacy .content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .v14-admin.v14-legacy .sidebar {
        width: min(86vw, 304px) !important;
        transform: translateX(-105%);
        transition: transform .24s ease;
    }
    .v14-admin.v14-legacy .sidebar.open {
        transform: translateX(0);
        box-shadow: 12px 0 36px rgba(3, 13, 27, .3);
    }
    .v14-admin.v14-legacy .sb-brand {
        justify-content: flex-start;
        padding: 0 16px;
    }
    .v14-admin.v14-legacy .sb-brand-name {
        display: block !important;
        color: #fff;
    }
    .v14-admin.v14-legacy .sb-brand-sub {
        display: block !important;
        color: rgba(255, 255, 255, .58);
    }
    .v14-admin.v14-legacy .sb-close {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        margin-left: auto;
        border-color: rgba(255, 255, 255, .14);
        background: rgba(255, 255, 255, .08);
        color: #fff;
    }
    .v14-admin.v14-legacy .sb-nav {
        padding: 10px 12px 18px;
    }
    .v14-admin.v14-legacy .sb-sec-label {
        display: block !important;
        padding: 12px 10px 4px;
        color: rgba(255, 255, 255, .42);
    }
    .v14-admin.v14-legacy .sb-nav .ni {
        width: 100%;
        min-height: 44px;
        height: auto;
        margin: 2px 0;
        padding: 7px 10px;
        justify-content: flex-start;
        gap: 11px;
        border-radius: 12px;
        color: rgba(255, 255, 255, .78);
    }
    .v14-admin.v14-legacy .sb-nav .ni svg {
        width: 18px;
        height: 18px;
    }
    .v14-admin.v14-legacy .sb-nav .ni .label {
        position: static;
        display: block !important;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        clip-path: none;
        flex: 1;
        color: inherit;
        font-size: 13px;
    }
    .v14-admin.v14-legacy .sb-nav .ni.active {
        color: #fff;
        background: rgba(233, 162, 59, .18);
    }
    .v14-admin.v14-legacy .sb-nav .ni.active::before {
        left: 0;
        top: 19%;
        bottom: 19%;
    }
    .v14-admin.v14-legacy .main {
        width: 100%;
        margin-left: 0 !important;
    }
    .v14-admin.v14-legacy .topbar {
        position: sticky;
        top: 0;
        z-index: 100;
        height: 62px;
        gap: 8px;
        padding: 0 12px;
    }
    .v14-admin.v14-legacy .tb-burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-color: var(--v14-line);
        border-radius: 12px;
    }
    .v14-admin.v14-legacy .tb-actions {
        gap: 4px;
    }
    .v14-admin.v14-legacy .tb-user {
        padding: 2px;
    }
    .v14-admin.v14-legacy .tb-user > svg {
        display: none;
    }
    .v14-admin.v14-legacy .tb-divider {
        display: none;
    }
    .v14-admin.v14-legacy .content {
        padding: 17px 13px calc(84px + env(safe-area-inset-bottom));
        gap: 17px;
    }
    .v14-admin.v14-legacy .bottom-nav {
        display: flex;
        position: fixed;
        inset: auto 0 0;
        z-index: 150;
        height: calc(66px + env(safe-area-inset-bottom));
        padding: 0 2px env(safe-area-inset-bottom);
        border-top: 1px solid var(--v14-line);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 24px rgba(10, 26, 47, .06);
        backdrop-filter: blur(16px);
    }
    .v14-admin.v14-legacy .bottom-nav a {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 54px;
        color: #7d8998;
        font-size: 9px;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
    }
    .v14-admin.v14-legacy .bottom-nav a svg {
        width: 19px;
        height: 19px;
    }
    .v14-admin.v14-legacy .bottom-nav a.active {
        color: #a96d18;
    }
    .v14-admin.v14-legacy .bottom-nav a span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .v14-admin.v14-legacy .tb-title {
        max-width: 48vw;
        font-size: 13px;
    }
    .v14-admin.v14-legacy .tb-crumb {
        display: none;
    }
    .v14-admin.v14-standalone .wrap {
        padding: 18px 13px 40px;
    }
    .v14-admin.v14-standalone .card {
        padding: 16px 14px;
    }
    .v14-admin.v14-standalone .grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .v14-admin.v14-standalone .kpi {
        min-width: 0;
        padding: 12px 12px;
    }
    .v14-admin.v14-standalone .kpi .val {
        overflow-wrap: anywhere;
        font-size: 17px;
    }
    .v14-admin.v14-standalone table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .v14-admin.v14-standalone th,
    .v14-admin.v14-standalone td {
        padding-right: 12px;
        padding-left: 12px;
    }
    .v14-admin.v14-payment-settings .wrap {
        padding-bottom: 28px;
    }
    .v14-space-picker .auth-page {
        padding: 20px 14px;
    }
    .v14-space-picker .sheet {
        padding: 24px 18px 22px;
        border-radius: 20px;
    }
    .v14-auth-forgot .auth-page {
        justify-content: flex-start;
        min-height: 100svh;
        padding: 22px 15px calc(18px + env(safe-area-inset-bottom));
    }
    .v14-auth-forgot .auth-sheet {
        max-width: 460px;
        padding: 25px 21px 22px;
        border-radius: 21px;
    }
}

@media (max-width: 420px) {
    .v14-standalone-inner {
        flex-wrap: wrap;
        gap: 7px 12px;
        padding: 10px 14px 8px;
    }
    .v14-standalone-brand {
        min-height: 34px;
    }
    .v14-standalone-brand img {
        height: 28px;
        max-width: 138px;
    }
    .v14-standalone-brand span {
        font-size: 9px;
    }
    .v14-standalone-nav {
        width: 100%;
        margin-left: 0;
    }
    .v14-standalone-nav a {
        min-height: 34px;
        padding: 0 10px;
        font-size: 10px;
    }
    .v14-admin.v14-standalone .grille {
        gap: 8px;
    }
    .v14-admin.v14-standalone .kpi .lab {
        font-size: 9px;
    }
}

@media (max-width: 350px) {
    .v14-admin.v14-legacy .topbar {
        padding-right: 8px;
        padding-left: 8px;
    }
    .v14-admin.v14-legacy .tb-burger {
        width: 34px;
        height: 34px;
    }
    .v14-admin.v14-legacy .tb-title {
        max-width: 40vw;
        font-size: 12px;
    }
    .v14-admin.v14-legacy .icon-btn {
        width: 34px;
        height: 34px;
    }
    .v14-admin.v14-legacy .tb-avatar-img {
        width: 32px;
        height: 32px;
    }
    .v14-admin.v14-standalone .grille {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .v14-space-picker .cs-header .brand-logo-full {
        display: none;
    }
    .v14-space-picker .cs-header .brand-logo-ico {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v14-admin *,
    .v14-space-picker *,
    .v14-auth-forgot *,
    .v14-security * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
