/* ============================================================================
   PROXY-AIDE FACTURATION — Feuille de styles officielle (HTML5 / CSS3)
   Source unique : /public/assets/css/style.css
   Fonctionne 100 % hors-ligne (polices Poppins locales)
   ============================================================================ */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
}

:root {
    --blue: #00667e;
    --blue-dark: #004f63;
    --blue-bright: #0f6fd8;
    --teal: #148b91;
    --purple: #7c3aed;
    --orange: #f59e0b;
    --green: #16a34a;
    --ink: #1e293b;
    --muted: #64748b;
    --line: #d4e3ea;
    --bg: #eef6fc;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(15, 76, 129, 0.07);
}

* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: linear-gradient(155deg, #eef6fc 0%, #f7fbff 48%, #e8f3fc 100%);
    font: 14px 'Poppins', Arial, Helvetica, sans-serif;
    color: var(--ink);
    position: relative;
}

.page-bg-waves {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 320' preserveAspectRatio='none'%3E%3Cpath d='M160,0 C300,120 480,60 660,160 C740,205 780,220 800,210 L800,0 Z' fill='%23cfe6fa' fill-opacity='0.45'/%3E%3Cpath d='M320,0 C450,90 610,45 800,130 L800,0 Z' fill='%23b8daf8' fill-opacity='0.35'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300' preserveAspectRatio='none'%3E%3Cpath d='M0,120 C160,60 320,210 560,260 C680,285 750,295 800,300 L0,300 Z' fill='%23c5e2fb' fill-opacity='0.42'/%3E%3Cpath d='M0,190 C140,150 280,250 470,300 L0,300 Z' fill='%239bcaf5' fill-opacity='0.28'/%3E%3C/svg%3E");
    background-position: top right, bottom left;
    background-repeat: no-repeat;
    background-size: 62vw auto, 58vw auto;
}

.ui-icon,
svg.ui-icon {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    display: inline-block;
    max-width: 32px;
    max-height: 32px;
}

.ui-icon--xs {
    width: 0.9em;
    height: 0.9em;
}

.ui-icon--sm {
    width: 1em;
    height: 1em;
}

.ui-icon--lg {
    width: 26px;
    height: 26px;
}

body.menu-open {
    overflow: hidden;
}

button, input, select, textarea {
    font: inherit;
}

button, .btn-proxy {
    cursor: pointer;
    border: 0;
    border-radius: 10px;
    padding: 9px 15px;
    background: linear-gradient(135deg, #0d6efd 0%, #00667e 100%);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.18);
    transition: transform 0.14s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button:hover, .btn-proxy:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #004f63 100%);
    color: #fff;
    transform: translateY(-1px);
}

.btn-pill {
    border-radius: 999px !important;
}

button.secondary, .btn-proxy.secondary {
    background: #fff;
    color: #1e4b5f;
    border: 1px solid #d4e3ea;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.05);
}

button.secondary:hover, .btn-proxy.secondary:hover {
    background: #f0f7fc;
    color: #0b4f71;
    border-color: #b7d3e4;
}

button.danger, .btn-proxy.danger {
    background: var(--danger);
    color: #fff;
}

button.danger:hover, .btn-proxy.danger:hover {
    background: #8c2e33;
    color: #fff;
}

button.success, .btn-proxy.success {
    background: var(--success);
    color: #fff;
}

button.sm, .btn-proxy.sm {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 5px;
}

/* Structure principale */
.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.side {
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid #dce8f0;
    padding: 20px 14px 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.mobile-menu-btn,
.mobile-close-btn,
.side-backdrop {
    display: none;
}

.brand {
    text-align: center;
    padding: 6px 0 20px;
    border-bottom: 1px solid #e4ebed;
}

.brand img {
    width: 96px;
    height: 92px;
    object-fit: contain;
}

.brand b {
    display: block;
    color: var(--blue);
    letter-spacing: 0.3px;
    font-size: 15px;
    margin-top: 4px;
}

.brand small {
    color: #73848a;
    font-size: 12px;
}

.nav {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.nav-group {
    display: grid;
    gap: 3px;
}

.nav-group-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #87989e;
    padding: 0 12px 3px;
}

.nav-link-item {
    border-radius: 999px;
    padding: 10px 13px;
    transition: background 0.16s ease, color 0.16s ease;
    text-align: left;
    background: transparent;
    color: #364b56;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-link-item .nav-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link-item .nav-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon--blue {
    color: #0d6efd;
    background: #e7f1ff;
}

.nav-icon--teal {
    color: #0d9488;
    background: #e6f7f5;
}

.nav-icon--purple {
    color: #7c3aed;
    background: #f1eaff;
}

.nav-icon--orange {
    color: #d97706;
    background: #fef3c7;
}

.nav-icon--green {
    color: #16a34a;
    background: #e6f9ed;
}

.nav-icon--slate {
    color: #475569;
    background: #eef2f6;
}

.nav-link-item.active {
    background: linear-gradient(90deg, #dceeff 0%, #c4e1fd 100%);
    color: #094980;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.12);
}

.nav-link-item:hover:not(.active) {
    background: #f0f6fb;
    color: #0a5880;
}

.nav-badge {
    font-size: 10px;
    background: #e2eef8;
    color: #0b5394;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.side-note {
    font-size: 11px;
    color: #1f4562;
    line-height: 1.5;
    margin: auto -14px 0;
    padding: 46px 20px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 120' preserveAspectRatio='none'%3E%3Cpath d='M0,28 C65,5 120,46 190,22 C225,10 245,12 260,20 L260,120 L0,120 Z' fill='%23cce6fc' fill-opacity='0.65'/%3E%3Cpath d='M0,56 C70,32 145,76 260,44 L260,120 L0,120 Z' fill='%2388c3f7' fill-opacity='0.55'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 100%;
}

.main {
    padding: 26px;
    min-width: 0;
}

/* Barre supérieure */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.top-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 260px;
}

.top-title-wrap {
    min-width: 0;
}

.top h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #174c5b;
    line-height: 1.2;
}

.top p {
    margin: 4px 0 0;
    color: #78868b;
    font-size: 13px;
}

.top-right-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.new-doc-dropdown {
    position: relative;
}

.dropdown-caret {
    font-size: 10px;
    opacity: 0.9;
}

.new-doc-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #d5e2e5;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(18, 52, 62, 0.14);
    padding: 6px;
    display: none;
    z-index: 900;
}

.new-doc-dropdown.is-open .new-doc-menu {
    display: grid;
    gap: 4px;
}

.new-doc-item {
    display: block;
    padding: 9px 11px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--ink);
    transition: background 0.14s ease;
}

.new-doc-item:hover {
    background: #edf5f7;
}

.new-doc-item strong {
    display: block;
    font-size: 13px;
    color: var(--blue);
}

.new-doc-item small {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.top-account-cluster {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tz-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #d6e4ec;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    color: #2f5164;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.05);
}

.tz-icon {
    color: var(--blue-bright);
    display: inline-flex;
    align-items: center;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid #d6e4ec;
    border-radius: 999px;
    padding: 4px 6px 4px 6px;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.05);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #00667e 100%);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-meta strong {
    display: block;
    font-size: 11px;
    color: #174c5b;
    line-height: 1.2;
}

.user-meta small {
    display: block;
    font-size: 10px;
    color: var(--muted);
}

.logout-form {
    display: inline;
    margin: 0;
}

.btn-logout,
button.btn-logout {
    font-size: 11px;
    color: #b91c1c;
    text-decoration: none;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    background: #fff5f5;
    border: 1px solid #f4bebe;
    box-shadow: none;
    transition: background 0.14s ease;
}

.btn-logout:hover,
button.btn-logout:hover {
    background: #fee2e2;
    color: #991b1b;
    transform: none;
}

/* Alertes flash */
.flash-container {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.flash-alert {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
}

.flash-alert > span {
    min-width: 0;
    word-break: break-word;
}

.flash-success {
    background: #e4f5ed;
    color: #135e42;
    border: 1px solid #b8e4cf;
}

.flash-danger {
    background: #fceaea;
    color: #8b262c;
    border: 1px solid #f3c2c4;
}

.flash-warning {
    background: #fff6e0;
    color: #82560d;
    border: 1px solid #f3dc9f;
}

.flash-info {
    background: #e6f3f7;
    color: #0f566b;
    border: 1px solid #b9dde7;
}

.flash-close {
    background: transparent;
    color: inherit;
    padding: 0 6px;
    font-size: 18px;
}

/* Tableau de bord & Cartes */
.dashboard {
    display: grid;
    gap: 18px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.stat {
    background: #fff;
    border: 1px solid #e1ebf2;
    border-radius: var(--radius);
    padding: 18px 18px 24px;
    min-height: 130px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.stat.stat-plain {
    display: block;
}

.stat::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.stat--blue::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 40' preserveAspectRatio='none'%3E%3Cpath d='M0,28 C90,10 190,38 320,8 L320,40 L0,40 Z' fill='%23dbeafe' fill-opacity='0.85'/%3E%3C/svg%3E");
}

.stat--green::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 40' preserveAspectRatio='none'%3E%3Cpath d='M0,28 C90,10 190,38 320,8 L320,40 L0,40 Z' fill='%23dcfce7' fill-opacity='0.9'/%3E%3C/svg%3E");
}

.stat--purple::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 40' preserveAspectRatio='none'%3E%3Cpath d='M0,28 C90,10 190,38 320,8 L320,40 L0,40 Z' fill='%23ede9fe' fill-opacity='0.9'/%3E%3C/svg%3E");
}

.stat--orange::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 40' preserveAspectRatio='none'%3E%3Cpath d='M0,28 C90,10 190,38 320,8 L320,40 L0,40 Z' fill='%23fef3c7' fill-opacity='0.9'/%3E%3C/svg%3E");
}

.stat-icon,
.stat-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    position: relative;
    z-index: 1;
}

.stat-icon svg,
.stat-icon-circle svg {
    width: 26px;
    height: 26px;
    color: #fff;
    flex: 0 0 auto;
}

.stat--blue .stat-icon,
.stat--blue .stat-icon-circle {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.stat--green .stat-icon,
.stat--green .stat-icon-circle {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.25);
}

.stat--purple .stat-icon,
.stat--purple .stat-icon-circle {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.25);
}

.stat--orange .stat-icon,
.stat--orange .stat-icon-circle {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.25);
}

.stat-body {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.stat-body small,
.stat-body strong,
.stat-body span,
.stat.stat-plain small,
.stat.stat-plain strong,
.stat.stat-plain span {
    display: block;
    min-width: 0;
    overflow-wrap: break-word;
}

.stat small {
    display: block;
    color: #5b6d78;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.35;
}

.stat strong {
    display: block;
    position: static;
    color: #0f293a;
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    line-height: 1.2;
    margin: 4px 0 3px;
}

.stat span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
}

.stat-mini-glyph {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    opacity: 0.7;
    z-index: 1;
}

.stat-mini-glyph svg {
    width: 22px;
    height: 22px;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 18px;
}

.dash-panel, .panel {
    background: #fff;
    border: 1px solid #e1ebf2;
    border-radius: var(--radius);
    padding: 20px;
    min-width: 0;
    box-shadow: var(--shadow);
}

.dash-panel h2, .panel h2 {
    font-size: 15px;
    font-weight: 700;
    color: #0f3a54;
    margin: 0 0 14px;
}

.dash-panel--wave {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 80' preserveAspectRatio='none'%3E%3Cpath d='M0,55 C240,12 500,76 760,26 C870,8 950,24 1000,38 L1000,80 L0,80 Z' fill='%23dbeafe' fill-opacity='0.45'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 62px;
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #0f3a54;
    margin: 0 0 14px;
}

.panel-heading-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-heading-icon--blue {
    background: #e7f1ff;
    color: #0d6efd;
}

.pill-ico {
    display: inline-flex;
    align-items: center;
}

.pill-ico--blue {
    color: #0d6efd;
}

.quick-pill-btn {
    border-radius: 999px !important;
    background: #e8f3ff !important;
    color: #0b5394 !important;
    border: 1px solid #cce3fb !important;
    box-shadow: none !important;
}

.quick-pill-btn:hover {
    background: #d5e9ff !important;
    color: #083e6e !important;
}

.chart-empty-state {
    min-height: 195px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    background: #f8fbfe;
    border: 1px dashed #cfe0ec;
    border-radius: 14px;
    padding: 20px;
}

.chart-empty-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e6f0fe;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-empty--inline {
    flex-direction: row;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 18px 10px;
}

.empty-info-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.onboarding-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.onboarding-head p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.onboarding-step-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.onboarding-step.is-done {
    border-color: #bbf7d0;
    background: #f4fdf7;
}

.onboarding-step.is-done .onboarding-num {
    background: var(--green);
}

.bars {
    height: 170px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    border-bottom: 1px solid #e4ebed;
    padding: 8px 4px 0;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 7px;
    min-width: 0;
}

.bar {
    width: min(34px, 70%);
    min-height: 3px;
    background: linear-gradient(180deg, #168b98, #00667e);
    border-radius: 6px 6px 2px 2px;
}

.bar-col small {
    font-size: 10px;
    color: #78868b;
}

.bar-col b {
    font-size: 9px;
    color: #42616a;
}

.dash-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.quick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f2;
}

.quick:last-child {
    border: 0;
}

.quick strong {
    font-size: 12px;
    color: #31515a;
}

.quick small {
    display: block;
    color: #829096;
    font-size: 10px;
    margin-top: 3px;
}

/* Badges de statut */
.status-pill {
    font-size: 10px;
    background: #e9f3f4;
    color: #17677a;
    border-radius: 20px;
    padding: 4px 9px;
    white-space: nowrap;
    font-weight: 700;
    display: inline-block;
}

.status-pill.badge-success {
    background: #e3f5ec;
    color: #156b49;
}

.status-pill.badge-warning {
    background: #fff3d6;
    color: #8f5d0a;
}

.status-pill.badge-danger {
    background: #fde8e9;
    color: #962b31;
}

.status-pill.badge-info {
    background: #e5f2f7;
    color: #0e5c75;
}

.status-pill.badge-secondary {
    background: #eceff0;
    color: #5a696e;
}

/* Éditeur + Aperçu A4 côte à côte */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.field {
    display: grid;
    gap: 5px;
    margin-bottom: 11px;
}

.field label {
    font-size: 12px;
    font-weight: 600;
    color: #3e5359;
}

.field-help {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 2px;
}

.form-section {
    padding: 16px 0;
    border-top: 1px solid #e7eff1;
}

.form-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
    margin: 0 0 12px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #d5e0e2;
    border-radius: 5px;
    padding: 9px;
    background: #fff;
    color: #26383e;
    font-size: 13px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(0, 102, 126, 0.12);
}

.field textarea {
    resize: vertical;
    min-height: 55px;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Tableau d'édition des lignes de prestations */
.items {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.items th {
    text-align: left;
    color: var(--blue);
    font-size: 10px;
    border-bottom: 1px solid var(--line);
    padding: 8px 4px;
}

.items td {
    padding: 6px 3px;
    border-bottom: 1px solid #edf1f2;
}

.items input {
    width: 100%;
    min-width: 0;
    border: 1px solid #e0e7e8;
    padding: 7px 5px;
    border-radius: 4px;
    font-size: 12px;
}

.items .qty {
    width: 60px;
}

.items .price {
    width: 90px;
}

.remove {
    background: #f7e9e9;
    color: #9a3434;
    padding: 6px 9px;
    border-radius: 4px;
}

.remove:hover {
    background: #eccaca;
    color: #781e1e;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

/* Tableaux de données de gestion */
.data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: #5b6f76;
    background: #f6f9fa;
    padding: 11px 10px;
    border-bottom: 1px solid #dce5e7;
    font-weight: 700;
}

.data-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #edf1f2;
    vertical-align: middle;
}

.data-table tr:hover td {
    background: #f9fcfd;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
    padding: 14px;
    background: #f8fbfc;
    border: 1px solid #e3ecee;
    border-radius: 8px;
}

.filter-bar .field {
    margin-bottom: 0;
    min-width: 0;
}

.filter-bar-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Conteneur d'aperçu A4 proportionnel */
.preview-wrap {
    background: #e9eef0;
    padding: 16px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.paper-stage {
    width: 210mm;
    min-height: 0;
    position: relative;
    margin: 0 auto;
}

.proxy-a4-sheet {
    box-shadow: 0 2px 14px rgba(26, 62, 75, 0.12);
    transform-origin: top left;
}

.empty, .dash-empty {
    color: #839196;
    text-align: center;
    padding: 28px 18px;
    font-size: 13px;
    background: #f9fcfd;
    border: 1px dashed #d3e1e4;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-title {
    font-size: 15px;
    font-weight: 700;
    color: #254b55;
    margin: 0;
}

.empty-desc {
    margin: 0;
    color: var(--muted);
    max-width: 440px;
    line-height: 1.5;
}

/* Guide de démarrage (Tableau de bord vide) */
.onboarding-card {
    background: linear-gradient(135deg, #ffffff 0%, #f3f9fa 100%);
    border: 1px solid #cce0e4;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0, 102, 126, 0.06);
}

.onboarding-card h2 {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--blue);
}

.onboarding-card > p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.onboarding-step {
    background: #fff;
    border: 1px solid #dce8eb;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.onboarding-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.onboarding-step h3 {
    margin: 0;
    font-size: 14px;
    color: #174c5b;
}

.onboarding-step p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
    flex: 1;
}

/* Onglets de la page Paramètres */
.settings-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 6px;
    background: #fff;
    border: 1px solid #dce5e7;
    border-radius: 10px;
}

.settings-tab-btn {
    background: transparent;
    color: #465d63;
    border: 0;
    border-radius: 7px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.settings-tab-btn:hover {
    background: #edf5f7;
    color: var(--blue);
}

.settings-tab-btn.active {
    background: var(--blue);
    color: #fff;
}

.tab-badge-danger {
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1.2;
}

.settings-tab-panel {
    display: none;
}

.settings-tab-panel.active {
    display: block;
}

.sticky-save-bar {
    position: sticky;
    bottom: 12px;
    z-index: 40;
    margin-top: 18px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #c9dce0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(18, 52, 62, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Bloc Remise à zéro (Zone de danger) */
.danger-zone {
    border: 1px solid #efc6c8;
    background: #fff9f9;
    border-radius: 12px;
    padding: 20px;
}

.danger-zone h2 {
    color: var(--danger);
}

.reset-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}

.reset-step-box {
    background: #fff;
    border: 1px solid #e6ecee;
    border-radius: 8px;
    padding: 12px;
}

.reset-step-box strong {
    display: block;
    font-size: 12px;
    color: #174c5b;
    margin-bottom: 4px;
}

.reset-step-box small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}

.reset-check-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 18px;
}

.reset-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e1e9eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.reset-check-item input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.reset-check-item.is-locked {
    background: #f5f8f9;
    cursor: not-allowed;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.saved-list {
    display: grid;
    gap: 8px;
}

.saved {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border: 1px solid #e1e8e9;
    border-radius: 7px;
    padding: 11px 13px;
    background: #fff;
}

.saved strong {
    font-size: 13px;
    color: #24515b;
}

.saved small {
    display: block;
    color: #78868b;
    margin-top: 3px;
    font-size: 11px;
}

.saved .mini {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.hidden {
    display: none !important;
}

.hint {
    font-size: 11px;
    color: #77868b;
    line-height: 1.5;
    margin-top: 10px;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #174f5c;
    color: #fff;
    padding: 12px 17px;
    border-radius: 7px;
    box-shadow: 0 4px 18px #0003;
    display: none;
    z-index: 9999;
    font-size: 13px;
    font-weight: 600;
}

/* Responsivité de l'interface */
@media (max-width: 1280px) {
    .app {
        grid-template-columns: 230px 1fr;
    }
    .main {
        padding: 20px;
    }
    .layout {
        grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
        gap: 18px;
    }
    .tz-badge {
        display: none;
    }
}

@media (max-width: 1120px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .app {
        grid-template-columns: 1fr;
    }
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        flex-shrink: 0;
        background: #fff;
        color: var(--blue);
        border: 1px solid #d5e0e2;
        border-radius: 8px;
        font-size: 20px;
        line-height: 1;
    }
    .mobile-menu-btn:hover {
        background: #e8f2f3;
        color: var(--blue-dark);
    }
    .side-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(16, 40, 48, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 998;
    }
    .side-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }
    .side {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(290px, 84vw);
        z-index: 999;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.16);
        padding: 18px 16px;
    }
    .side.is-open {
        transform: translateX(0);
    }
    .mobile-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        padding: 0;
        background: #eef4f5;
        color: #32525b;
        border-radius: 6px;
        font-size: 20px;
    }
    .mobile-close-btn:hover {
        background: #dce8eb;
        color: #173c45;
    }
    .brand {
        padding: 6px 0 14px;
    }
    .brand img {
        width: 68px;
        height: 64px;
    }
    .main {
        padding: 16px;
    }
    .top {
        align-items: flex-start;
        gap: 12px;
    }
    .top-right-tools {
        width: 100%;
        justify-content: space-between;
    }
    .onboarding-steps,
    .reset-steps-grid {
        grid-template-columns: 1fr;
    }
    .preview-wrap {
        padding: 10px;
    }
}

@media (max-width: 640px) {
    .main {
        padding: 12px;
    }
    .top h1 {
        font-size: 18px;
    }
    .top p {
        font-size: 12px;
    }
    .top-right-tools {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .top-right-tools .btn-proxy {
        width: 100%;
        padding: 9px 10px;
        font-size: 12px;
    }
    .top-right-tools .user-chip {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: space-between;
    }
    .top-right-tools .user-meta {
        flex: 1;
        min-width: 0;
    }
    .top-right-tools .user-meta strong {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .settings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .settings-tab-btn {
        white-space: nowrap;
    }
    .sticky-save-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .sticky-save-bar button {
        width: 100%;
    }
    .stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .stat {
        padding: 14px;
    }
    .dash-panel, .panel {
        padding: 14px;
    }
    .two, .three {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .filter-bar .field {
        min-width: 0;
        max-width: none !important;
    }
    .filter-bar-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-bar-actions .btn-proxy,
    .filter-bar-actions button {
        width: 100%;
        justify-content: center;
    }
    .saved, .quick {
        flex-direction: column;
        align-items: flex-start;
    }
    .saved .mini {
        width: 100%;
    }
    .items .qty {
        width: 50px;
    }
    .items .price {
        width: 72px;
    }
    .actions .btn-proxy,
    .actions button {
        flex: 1 1 auto;
    }
    .toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================================
   PAGES D'AUTHENTIFICATION (Connexion, Mot de passe oublié, Réinitialisation)
   ============================================================================ */
body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    background: linear-gradient(155deg, #e9f4fc 0%, #f6faff 50%, #e4f1fb 100%);
}

.login-shell {
    width: 100%;
    max-width: 1100px;
    min-height: 620px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(10, 62, 102, 0.14);
    border: 1px solid #dce8f2;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    position: relative;
    z-index: 1;
}

.login-form-side {
    background: #fff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.login-logo {
    max-width: 220px;
    width: 68px;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.login-brand-text strong {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #0b5d7a;
    line-height: 1.15;
}

.login-brand-text span {
    display: block;
    font-size: 10px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #5c7480;
    font-weight: 600;
    margin-top: 2px;
}

.login-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: #093556;
    line-height: 1.15;
}

.login-subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--muted);
}

.login-field {
    margin-bottom: 16px;
}

.login-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a4c;
    margin-bottom: 6px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #5c7684;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.login-input-icon svg {
    width: 20px;
    height: 20px;
}

.login-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border: 1px solid #d5e0e2;
    border-radius: 14px;
    background: #f9fcfd;
    color: #0f293a;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-input--pwd {
    padding-right: 50px;
}

.login-input:focus {
    outline: none;
    background: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.login-eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #526a78;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-eye-btn:hover {
    background: #eaf3f9;
    color: #0b4f71;
    transform: translateY(-50%);
}

.login-eye-btn svg {
    width: 20px;
    height: 20px;
}

.login-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 20px;
}

.login-forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: #0b5d8f;
    text-decoration: none;
}

.login-forgot-link:hover {
    text-decoration: underline;
}

.login-submit-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0b5696 0%, #0d74d1 100%);
    box-shadow: 0 10px 24px rgba(11, 86, 150, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.login-submit-btn svg {
    width: 20px;
    height: 20px;
}

.login-submit-btn:hover {
    background: linear-gradient(135deg, #09487e 0%, #0b63b3 100%);
}

.login-submit-btn:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.login-input:focus-visible,
.login-eye-btn:focus-visible,
.login-submit-btn:focus-visible,
.login-hero-cta:focus-visible,
.login-dot-btn:focus-visible,
.login-arrow-btn:focus-visible,
.login-support-link:focus-visible,
.login-forgot-link:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.login-footer {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #edf3f7;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

/* Colonne droite (panneau bleu) */
.login-hero-side {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #004f8c 0%, #0a6dc2 52%, #0092b8 100%);
    color: #fff;
    padding: 48px 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}

.login-hero-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 600' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C180,80 120,250 280,320 C390,370 460,340 500,310 L500,0 Z' fill='%23003766' fill-opacity='0.36'/%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

.login-hero-side::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 150' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C130,5 260,110 500,35 L500,150 L0,150 Z' fill='%2318d8cf' fill-opacity='0.34'/%3E%3Cpath d='M0,95 C150,45 310,130 500,75 L500,150 L0,150 Z' fill='%23003c75' fill-opacity='0.58'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.login-hero-img {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 85%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    opacity: 0.34;
    pointer-events: none;
    z-index: 0;
}

.login-support-link {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.login-support-link svg {
    width: 18px;
    height: 18px;
}

.login-support-link:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.login-slides {
    position: relative;
    z-index: 3;
    min-height: 235px;
    margin: auto 0 28px;
}

.login-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.login-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.login-hero-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.22;
    color: #fff;
}

.login-hero-accent {
    color: #5cf2ea;
}

.login-hero-desc {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    max-width: 380px;
}

.login-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #09406e;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 11px 22px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 32, 66, 0.22);
}

.login-hero-cta svg {
    width: 18px;
    height: 18px;
}

.login-hero-cta:hover {
    background: #f0f9ff;
    color: #072f52;
}

.login-dots {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 8px;
}

.login-arrow-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 18px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: none;
}

.login-dot-btn {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    border: 0;
    box-shadow: none;
}

.login-dot-btn:hover {
    background: rgba(255, 255, 255, 0.72);
    transform: none;
}

.login-dot-btn.is-active {
    width: 24px;
    background: #fff;
}

.auth-strength-bar {
    height: 6px;
    background: #e6eef0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}

.auth-strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.2s, background-color 0.2s;
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
        min-height: auto;
    }
    .login-form-side {
        padding: 32px 28px;
    }
    .login-hero-side {
        min-height: 280px;
        padding: 32px 26px 24px;
    }
    .login-slides {
        min-height: 185px;
        margin: 26px 0 12px;
    }
    .login-hero-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    body.login-page {
        padding: 12px 10px;
    }
    .login-shell {
        border-radius: 22px;
    }
    .login-form-side {
        padding: 24px 18px;
    }
    .login-hero-side {
        padding: 24px 18px 20px;
        min-height: 250px;
    }
    .login-title {
        font-size: 24px;
    }
}

/* ============================================================================
   IMPRESSION A4 EXACTE (@media print)
   ============================================================================ */
@page {
    size: A4 portrait;
    margin: 0;
}

@media print {
    body {
        background: white !important;
    }
    .app, .main, .layout, .preview-wrap, .paper-stage {
        display: block !important;
    }
    .side, .top, .editor-panel, .no-print, .flash-container, .toast {
        display: none !important;
    }
    .main {
        padding: 0 !important;
    }
    .preview-wrap {
        padding: 0 !important;
        background: white !important;
        overflow: visible !important;
    }
    .paper-stage {
        width: 210mm !important;
        height: auto !important;
        min-height: 297mm !important;
        margin: 0 !important;
    }
    .proxy-a4-sheet {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        zoom: 1 !important;
        transform: none !important;
        box-shadow: none !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
