/* VV Missions — système visuel léger, entièrement scoped sous .vvm (indépendant du thème et de Bootstrap). */

.vvm {
    --vvm-bg: #F3F6F9;
    --vvm-card: #ffffff;
    --vvm-border: #E6EBF0;
    --vvm-border-strong: #D5DDE5;
    --vvm-ink: #14263A;
    --vvm-muted: #5B6B7B;
    --vvm-soft: #F7F9FB;
    --vvm-accent: #0F7C8C;
    --vvm-accent-ink: color-mix(in srgb, var(--vvm-accent) 78%, #000);
    --vvm-accent-soft: color-mix(in srgb, var(--vvm-accent) 12%, #fff);
    --vvm-accent-ring: color-mix(in srgb, var(--vvm-accent) 22%, transparent);
    --vvm-navy: #14263A;
    --vvm-danger: #C0392B;
    --vvm-danger-ink: #9B2C2C;
    --vvm-danger-soft: #FDECEC;
    --vvm-ok: #1B6B3A;
    --vvm-ok-soft: #E3F6EA;
    --vvm-warn-ink: #6B4E00;
    --vvm-warn-soft: #FFF8DC;
    --vvm-radius: 14px;
    --vvm-radius-sm: 10px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--vvm-ink);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.vvm *, .vvm *::before, .vvm *::after { box-sizing: border-box; }
.vvm h1, .vvm h2, .vvm h3, .vvm h4, .vvm p, .vvm ul, .vvm ol { margin: 0; padding: 0; }
.vvm ul, .vvm ol { list-style: none; }
.vvm a { color: var(--vvm-accent); text-decoration: none; }
.vvm a:hover { color: var(--vvm-accent-ink); text-decoration: underline; }
.vvm input, .vvm select, .vvm textarea, .vvm button { font: inherit; color: inherit; }
.vvm svg { display: inline-block; vertical-align: middle; flex: none; }
.vvm [hidden] { display: none !important; }

/* ---- Texte ---- */
.vvm .vvm-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.vvm .vvm-kicker { font-size: 12px; font-weight: 700; color: var(--vvm-accent); text-transform: uppercase; letter-spacing: .08em; }
.vvm .vvm-lead { font-size: 14px; color: var(--vvm-muted); }
.vvm .vvm-muted { color: var(--vvm-muted); }
.vvm .vvm-small { font-size: 13px; }
.vvm .vvm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vvm .vvm-req { color: var(--vvm-danger); font-weight: 700; }

/* ---- Cartes ---- */
.vvm .vvm-card { background: var(--vvm-card); border: 1px solid var(--vvm-border); border-radius: var(--vvm-radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.vvm .vvm-card.is-active { border-color: var(--vvm-accent); box-shadow: 0 0 0 4px var(--vvm-accent-ring); }
.vvm .vvm-card-head { display: flex; align-items: center; gap: 12px; }
.vvm .vvm-card-head h2, .vvm .vvm-card-head h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.vvm .vvm-card-head p { font-size: 13px; color: var(--vvm-muted); margin-top: 2px; }
.vvm .vvm-card-head .vvm-spacer { margin-left: auto; }
.vvm .vvm-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #E8EEF4; color: var(--vvm-ink); flex: none; }
.vvm .vvm-num.is-done { background: var(--vvm-ok-soft); color: var(--vvm-ok); }
.vvm .vvm-num.is-active { background: var(--vvm-accent); color: #fff; }
.vvm .vvm-num .vvm-num-check { display: none; }
.vvm .vvm-num.is-done .vvm-num-check { display: inline-block; }
.vvm .vvm-num.is-done .vvm-num-n { display: none; }
.vvm .vvm-card-title { font-size: 15px; font-weight: 700; }

/* ---- Champs ---- */
.vvm .vvm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vvm .vvm-field label, .vvm .vvm-label { font-size: 13px; font-weight: 600; color: var(--vvm-ink); }
.vvm .vvm-input { display: block; width: 100%; height: 44px; border: 1px solid var(--vvm-border-strong); border-radius: var(--vvm-radius-sm); padding: 0 14px; background: #fff; color: var(--vvm-ink); font-size: 15px; line-height: 1.3; margin: 0; }
.vvm textarea.vvm-input { height: auto; min-height: 72px; padding: 12px 14px; resize: vertical; }
.vvm .vvm-input:focus { outline: 0; border-color: var(--vvm-accent); box-shadow: 0 0 0 4px var(--vvm-accent-ring); }
.vvm .vvm-input[readonly] { background: var(--vvm-soft); color: var(--vvm-muted); }
.vvm .vvm-input.is-invalid { border-color: var(--vvm-danger); }
.vvm .vvm-input-sm { height: 36px; font-size: 13px; padding: 0 10px; }
.vvm .vvm-error { color: var(--vvm-danger); font-size: 12.5px; }
.vvm .vvm-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.vvm .vvm-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.vvm .vvm-grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.vvm .vvm-span-all { grid-column: 1 / -1; }
.vvm .vvm-check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--vvm-border); border-radius: 12px; background: var(--vvm-soft); font-size: 14px; line-height: 1.55; cursor: pointer; font-weight: 400; }
.vvm .vvm-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--vvm-accent); }
.vvm .vvm-check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; font-weight: 500; }
.vvm .vvm-check-inline input { width: 18px; height: 18px; margin: 0; accent-color: var(--vvm-accent); }

/* ---- Boutons ---- */
.vvm .vvm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--vvm-border-strong); background: #fff; color: var(--vvm-ink); font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap; margin: 0; }
.vvm .vvm-btn:hover { background: var(--vvm-soft); text-decoration: none; color: var(--vvm-ink); }
.vvm .vvm-btn-primary { background: var(--vvm-accent); border-color: var(--vvm-accent); color: #fff; font-weight: 700; }
.vvm .vvm-btn-primary:hover { background: var(--vvm-accent-ink); border-color: var(--vvm-accent-ink); color: #fff; }
.vvm .vvm-btn-dark { background: var(--vvm-navy); border-color: var(--vvm-navy); color: #fff; }
.vvm .vvm-btn-dark:hover { background: #0e1b2a; color: #fff; }
.vvm .vvm-btn-dashed { border: 1.5px dashed var(--vvm-accent); color: var(--vvm-accent); background: #fff; }
.vvm .vvm-btn-dashed:hover { background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); }
.vvm .vvm-btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.vvm .vvm-btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.vvm .vvm-btn[disabled] { opacity: .55; cursor: default; }
.vvm .vvm-btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 9px; }
.vvm .vvm-link { background: none; border: 0; padding: 0; color: var(--vvm-accent); font-weight: 600; font-size: 13px; cursor: pointer; }
.vvm .vvm-link:hover { text-decoration: underline; }

/* ---- Pastilles, avatars, messages ---- */
.vvm .vvm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #E8EEF4; color: var(--vvm-ink); font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.vvm .vvm-pill-accent { background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); }
.vvm .vvm-pill-soft { background: #EEF2F6; font-weight: 500; }
.vvm .vvm-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.4; background: color-mix(in srgb, var(--c, #6c757d) 13%, #fff); color: color-mix(in srgb, var(--c, #6c757d) 72%, #000); }
.vvm .vvm-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #6c757d); flex: none; }
.vvm .vvm-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--vvm-accent); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; letter-spacing: .02em; }
.vvm .vvm-avatar-soft { background: #E8EEF4; color: var(--vvm-ink); }
.vvm .vvm-avatar-lg { width: 44px; height: 44px; font-size: 14px; }
.vvm .vvm-avatar-xs { width: 26px; height: 26px; font-size: 10px; }
.vvm .vvm-alert { padding: 12px 16px; border-radius: 12px; border: 1px solid transparent; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.vvm .vvm-alert-danger, .vvm .alert-danger { background: var(--vvm-danger-soft); color: var(--vvm-danger-ink); border-color: #F5C6CB; }
.vvm .vvm-alert-warning, .vvm .alert-warning { background: var(--vvm-warn-soft); color: var(--vvm-warn-ink); border-color: #F3E3A1; }
.vvm .vvm-alert-success, .vvm .alert-success { background: var(--vvm-ok-soft); color: var(--vvm-ok); border-color: #C3E6CB; }
.vvm .vvm-alert-info, .vvm .alert-info { background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); border-color: #BEE5EB; }
.vvm .vvm-note { font-size: 13px; color: var(--vvm-muted); }
.vvm .vvm-note-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--vvm-warn-soft); color: var(--vvm-warn-ink); font-size: 13px; line-height: 1.5; }
.vvm .vvm-note-red { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--vvm-danger-soft); color: var(--vvm-danger-ink); font-size: 13px; font-weight: 600; }
.vvm .vvm-infostrip { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: var(--vvm-soft); border-radius: 10px; padding: 14px 16px; }
.vvm .vvm-infostrip-id { flex: 1 1 200px; }
.vvm .vvm-infostrip-id b { display: block; font-weight: 700; }
.vvm .vvm-infostrip-id span { font-size: 13px; color: var(--vvm-muted); }
.vvm .vvm-infostrip-meta { display: flex; gap: 24px; font-size: 13px; color: var(--vvm-muted); }
.vvm .vvm-infostrip-meta b { color: var(--vvm-ink); display: block; }
.vvm .vvm-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); font-size: 13px; font-weight: 600; align-self: end; }
.vvm .vvm-chip:empty { display: none; }

/* ---- Barre de contexte (pages demandeur) ---- */
.vvm .vvm-ctx { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0 18px; border-bottom: 1px solid var(--vvm-border); margin-bottom: 24px; font-size: 14px; }
.vvm .vvm-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; color: var(--vvm-ink); }
.vvm .vvm-brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--vvm-navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.vvm .vvm-brand span { color: var(--vvm-muted); font-weight: 500; }
.vvm .vvm-ctx-user { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--vvm-muted); flex-wrap: wrap; }
.vvm .vvm-ctx-user b { color: var(--vvm-ink); font-weight: 600; }

/* ---- Connexion ---- */
.vvm.vvm-login { display: flex; flex-wrap: wrap; border-radius: var(--vvm-radius); overflow: hidden; border: 1px solid var(--vvm-border); background: var(--vvm-bg); min-height: 560px; }
.vvm .vvm-login-panel { flex: 1 1 380px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.vvm .vvm-login-box { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--vvm-border); border-radius: 18px; padding: 32px; box-shadow: 0 10px 30px rgba(20,38,58,.06); display: flex; flex-direction: column; gap: 18px; margin: 0; }
.vvm .vvm-login-box h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.vvm .vvm-login-box .vvm-lead { margin-top: 4px; }
.vvm .vvm-field-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vvm .vvm-field-head a { font-size: 13px; font-weight: 500; }
.vvm .vvm-pwd { position: relative; }
.vvm .vvm-pwd .vvm-input { padding-right: 44px; }
.vvm .vvm-pwd button { position: absolute; right: 5px; top: 5px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--vvm-muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.vvm .vvm-login-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--vvm-muted); border-top: 1px solid var(--vvm-border); padding-top: 14px; }
.vvm .vvm-login-foot span { display: inline-flex; align-items: center; gap: 6px; }
.vvm .vvm-lang a { font-weight: 700; margin-left: 8px; }
.vvm .vvm-lang a.is-off { color: var(--vvm-muted); font-weight: 500; }
.vvm .vvm-logged { display: flex; flex-direction: column; gap: 14px; }
/* Page de connexion sans panneau de présentation : la boîte seule, centrée, sans cadre ni hauteur imposée. */
.vvm.vvm-login.vvm-login-solo { min-height: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; justify-content: center; }
/* min-width: 0 et max-width: 100 % : sur un écran plus étroit que 460 px, la boîte rétrécit au lieu de déborder. */
.vvm.vvm-login-solo .vvm-login-panel { flex: 0 1 460px; min-width: 0; max-width: 100%; padding: 32px 0 48px; }

/* ---- Écrans de compte hors thème (templates/account-screen.php) : choix du mot de passe, mot de passe oublié ---- */
body.vvm-account-body { margin: 0; min-height: 100vh; background: #F3F6F9; }
.vvm.vvm-login.vvm-account { min-height: 100vh; border: 0; border-radius: 0; align-items: center; }
.vvm .vvm-account-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.vvm .vvm-account-id { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; border-radius: 10px; background: var(--vvm-soft); font-size: 13px; color: var(--vvm-muted); }
.vvm .vvm-account-id b { color: var(--vvm-ink); font-weight: 600; word-break: break-all; }
.vvm .vvm-account-id .vvm-pill { margin-left: auto; }
.vvm .vvm-login-box > .vvm-btn { width: 100%; }
.vvm .vvm-code-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.vvm .vvm-code-form > .vvm-btn { width: 100%; }
.vvm .vvm-code-input { height: 56px; font-size: 26px; font-weight: 700; letter-spacing: .3em; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vvm .vvm-login-foot .vvm-link { font-size: 13px; }
/* Initiales du logo carré : elles héritaient de la couleur du sous-titre et devenaient illisibles. */
.vvm .vvm-brand .vvm-brand-mark { color: #fff; }
/* Écrans de compte : marque au-dessus de la boîte, le tout centré dans la fenêtre. */
.vvm.vvm-account .vvm-login-panel { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 20px; padding: 32px 16px 48px; }
.vvm.vvm-account .vvm-login-panel > .vvm-brand { justify-content: center; }
@media (max-width: 767px) {
    .vvm.vvm-account { min-height: 0; }
    .vvm.vvm-account .vvm-login-panel { padding: 24px 16px; }
    .vvm.vvm-account .vvm-login-box { padding: 24px 20px; }
}
}

/* ---- Mise en page formulaire ---- */
.vvm .vvm-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.vvm .vvm-rail { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.vvm .vvm-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.vvm .vvm-rail-card { background: #fff; border: 1px solid var(--vvm-border); border-radius: var(--vvm-radius); padding: 18px; }
.vvm .vvm-rail-card .vvm-kicker { color: var(--vvm-muted); }
.vvm .vvm-rail-sub { font-size: 13px; color: var(--vvm-muted); margin: 4px 0 12px; }
.vvm .vvm-progress { height: 6px; border-radius: 999px; background: #E8EEF4; margin-bottom: 14px; overflow: hidden; }
.vvm .vvm-progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--vvm-accent); transition: width .3s; }
.vvm .vvm-rail-nav { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.vvm .vvm-rail-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--vvm-muted); text-decoration: none; }
.vvm .vvm-rail-nav a:hover { background: var(--vvm-soft); text-decoration: none; }
.vvm .vvm-rail-nav a .vvm-num { width: 22px; height: 22px; font-size: 11px; background: transparent; border: 1.5px solid var(--vvm-border-strong); color: var(--vvm-muted); }
.vvm .vvm-rail-nav a.is-done { color: var(--vvm-ink); }
.vvm .vvm-rail-nav a.is-done .vvm-num { background: var(--vvm-ok-soft); border-color: transparent; color: var(--vvm-ok); }
.vvm .vvm-rail-nav a.is-active { background: var(--vvm-accent); color: #fff; font-weight: 600; }
.vvm .vvm-rail-nav a.is-active .vvm-num { background: rgba(255,255,255,.25); border-color: transparent; color: #fff; }
.vvm .vvm-rail-help { background: var(--vvm-navy); color: #fff; border-radius: var(--vvm-radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.vvm .vvm-rail-help b { font-weight: 700; }
.vvm .vvm-rail-help p { opacity: .85; line-height: 1.5; }
.vvm .vvm-rail-help a { color: #fff; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; word-break: break-all; }
.vvm .vvm-head { display: flex; flex-direction: column; gap: 6px; }
.vvm .vvm-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* Personnes */
.vvm .vvm-person { border: 1px solid var(--vvm-border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: #FBFCFD; }
.vvm .vvm-person-head { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.vvm .vvm-person-head .vvm-btn { margin-left: auto; }
.vvm .vvm-empty { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px dashed var(--vvm-border-strong); border-radius: 12px; color: var(--vvm-muted); font-size: 14px; flex-wrap: wrap; }
.vvm .vvm-empty .vvm-btn { margin-left: auto; }

/* Tuiles de prestations */
.vvm .vvm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.vvm .vvm-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 2px solid var(--vvm-border); border-radius: 12px; background: #fff; cursor: pointer; color: var(--vvm-muted); font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s; margin: 0; }
.vvm .vvm-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.vvm .vvm-tile-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--vvm-accent); color: #fff; display: none; place-items: center; }
.vvm .vvm-tile.is-on, .vvm .vvm-tile:has(input:checked) { border-color: var(--vvm-accent); background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); font-weight: 700; }
.vvm .vvm-tile.is-on .vvm-tile-check, .vvm .vvm-tile:has(input:checked) .vvm-tile-check { display: grid; }
.vvm .vvm-tile:focus-within { box-shadow: 0 0 0 4px var(--vvm-accent-ring); }

/* Segments (classe train / avion, formule) */
.vvm .vvm-seg { display: inline-flex; background: #F1F4F7; border-radius: 10px; padding: 4px; height: 44px; }
.vvm .vvm-seg label { display: inline-flex; align-items: center; padding: 0 16px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--vvm-muted); cursor: pointer; position: relative; margin: 0; }
.vvm .vvm-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.vvm .vvm-seg label.is-on, .vvm .vvm-seg label:has(input:checked) { background: #fff; color: var(--vvm-ink); font-weight: 700; box-shadow: 0 1px 3px rgba(20,38,58,.12); }
.vvm .vvm-seg-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.vvm .vvm-seg-item { display: flex; flex-direction: column; gap: 6px; }
.vvm .vvm-seg-item.is-off { opacity: .45; }

/* Transport : deux colonnes */
.vvm .vvm-leg { border: 1px solid var(--vvm-border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.vvm .vvm-leg-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.vvm .vvm-leg-title span { width: 26px; height: 26px; border-radius: 8px; background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); display: grid; place-items: center; }
.vvm .vvm-leg-title.is-back span { background: #E8EEF4; color: var(--vvm-ink); }
.vvm .vvm-grid-leg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Dépôt de fichier */
.vvm .vvm-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px; border: 2px dashed #B9C6D3; border-radius: 12px; background: var(--vvm-soft); color: var(--vvm-muted); text-align: center; cursor: pointer; font-size: 14px; margin: 0; font-weight: 400; }
.vvm .vvm-drop:hover, .vvm .vvm-drop.is-over { border-color: var(--vvm-accent); background: var(--vvm-accent-soft); }
.vvm .vvm-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.vvm .vvm-drop-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); display: grid; place-items: center; }
.vvm .vvm-drop b { color: var(--vvm-ink); }
.vvm .vvm-drop-name { font-size: 12px; }
.vvm .vvm-drop-name.is-set { color: var(--vvm-ok); font-weight: 600; }
.vvm .vvm-file-current { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; }

/* Barre collante */
.vvm .vvm-stickybar { position: sticky; bottom: 0; margin: 8px -4px 0; padding: 14px 4px; background: color-mix(in srgb, var(--vvm-bg) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--vvm-border); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; z-index: 2; }
.vvm .vvm-stickybar .vvm-note { display: inline-flex; align-items: center; gap: 8px; }
.vvm .vvm-stickybar > .vvm-btn-primary { margin-left: auto; }
.vvm .vvm-wiz-nav { display: none; align-items: center; gap: 10px; width: 100%; flex-wrap: wrap; }
.vvm .vvm-wiz-count { font-size: 13px; font-weight: 700; color: var(--vvm-muted); background: #F1F4F7; border-radius: 999px; padding: 6px 10px; }
.vvm .vvm-wiz-bar { width: 100%; height: 6px; border-radius: 999px; background: #E8EEF4; overflow: hidden; }
.vvm .vvm-wiz-bar span { display: block; height: 100%; background: var(--vvm-accent); }

/* Assistant mobile */
.vvm.vvm-wizard .vvm-rail { display: none; }
.vvm.vvm-wizard .vvm-card[data-vvm-section] { display: none; }
.vvm.vvm-wizard .vvm-card[data-vvm-section].is-current { display: flex; }
.vvm.vvm-wizard .vvm-stickybar .vvm-note, .vvm.vvm-wizard .vvm-stickybar > .vvm-btn-primary { display: none; }
.vvm.vvm-wizard .vvm-stickybar.is-last > .vvm-btn-primary { display: inline-flex; margin-left: 0; width: 100%; }
.vvm.vvm-wizard .vvm-wiz-nav { display: flex; }
.vvm.vvm-wizard .vvm-wiz-nav .vvm-btn { flex: 1; }

/* ---- Récapitulatif ---- */
.vvm .vvm-stepper { display: flex; align-items: center; font-size: 13px; margin-bottom: 20px; }
.vvm .vvm-stepper li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--vvm-muted); }
.vvm .vvm-stepper li.is-done { color: var(--vvm-ok); }
.vvm .vvm-stepper li.is-active { color: var(--vvm-ink); font-weight: 700; }
.vvm .vvm-stepper li .vvm-num { width: 28px; height: 28px; font-size: 12px; }
.vvm .vvm-stepper li.is-done .vvm-num { background: var(--vvm-ok-soft); color: var(--vvm-ok); }
.vvm .vvm-stepper li.is-active .vvm-num { background: var(--vvm-accent); color: #fff; }
.vvm .vvm-stepper li.is-todo .vvm-num { background: transparent; border: 1.5px solid var(--vvm-border-strong); color: var(--vvm-muted); }
.vvm .vvm-stepper-line { flex: 1; height: 2px; background: var(--vvm-border-strong); margin: 0 12px; }
.vvm .vvm-stepper-line.is-done { background: var(--vvm-ok); }
.vvm .vvm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.vvm .vvm-fact { padding: 12px 14px; border-radius: 10px; background: var(--vvm-soft); min-width: 0; }
.vvm .vvm-fact-l { font-size: 11px; font-weight: 700; color: var(--vvm-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.vvm .vvm-fact b { display: block; font-weight: 600; }
.vvm .vvm-fact small { font-size: 13px; color: var(--vvm-muted); }
.vvm .vvm-fact .vvm-ok-text { color: var(--vvm-ok); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.vvm .vvm-card-tile { background: #fff; border: 1px solid var(--vvm-border); border-radius: 12px; padding: 14px 16px; }
.vvm .vvm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vvm .vvm-chips .vvm-pill { height: 32px; font-size: 13px; }
.vvm .vvm-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vvm .vvm-actions .vvm-push { margin-left: auto; }
.vvm .vvm-recap .vvm-card-head h2 { font-size: 15px; }
.vvm .vvm-recap .vvm-card { gap: 14px; }
.vvm .vvm-recap-box { padding: 14px; border: 1px solid var(--vvm-border); border-radius: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.vvm .vvm-recap-strip { padding: 14px; border-radius: 10px; background: var(--vvm-soft); font-size: 13px; display: flex; flex-wrap: wrap; gap: 18px; }

/* ---- Tables ---- */
.vvm .vvm-scroll { overflow-x: auto; }
.vvm .vvm-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0; }
.vvm .vvm-table th { text-align: left; color: var(--vvm-muted); font-size: 12px; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--vvm-border); white-space: nowrap; background: transparent; }
.vvm .vvm-table td { padding: 10px; border-bottom: 1px solid #F1F4F7; vertical-align: top; }
.vvm .vvm-table tr:last-child td { border-bottom: 0; }
.vvm .vvm-table-kv th { width: 32%; background: var(--vvm-soft); color: var(--vvm-ink); font-weight: 600; vertical-align: top; border-bottom: 1px solid #F1F4F7; white-space: normal; }
.vvm .vvm-table-dark thead th { background: var(--vvm-navy); color: #fff; }
.vvm .vvm-table-persons { min-width: 640px; }
/* Huit colonnes depuis l'ajout des copies de pièces : les en-têtes passent à la ligne plutôt que de pousser la dernière colonne hors du cadre. */
.vvm .vvm-table-persons th { white-space: normal; vertical-align: bottom; }
.vvm .vvm-table-persons th, .vvm .vvm-table-persons td { padding-left: 8px; padding-right: 8px; }

/* ---- Confirmation ---- */
.vvm .vvm-done { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--vvm-border); border-radius: 18px; padding: 40px; box-shadow: 0 10px 30px rgba(20,38,58,.06); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.vvm .vvm-done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--vvm-ok-soft); color: var(--vvm-ok); display: grid; place-items: center; }
.vvm .vvm-done .vvm-title { font-size: 26px; }
.vvm .vvm-refbox { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 12px; background: var(--vvm-soft); border: 1px solid var(--vvm-border); flex-wrap: wrap; justify-content: center; }
.vvm .vvm-refbox .vvm-fact-l { margin: 0; }
.vvm .vvm-ref { font-size: 22px; font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--vvm-accent); letter-spacing: .02em; }
.vvm .vvm-steps { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; text-align: left; }
.vvm .vvm-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--vvm-soft); font-size: 13px; }
.vvm .vvm-step-ico { width: 26px; height: 26px; border-radius: 8px; background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); display: grid; place-items: center; flex: none; }
.vvm .vvm-steps b { display: block; }
.vvm .vvm-steps small { color: var(--vvm-muted); font-size: 13px; }

/* ---- Tableau de bord ---- */
.vvm .vvm-topbar { background: var(--vvm-navy); color: #fff; border-radius: var(--vvm-radius); padding: 10px 20px; min-height: 60px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.vvm .vvm-topbar .vvm-brand { color: #fff; }
.vvm .vvm-topbar .vvm-brand-mark { background: #fff; color: var(--vvm-navy); }
.vvm .vvm-tabs { display: flex; gap: 4px; }
.vvm .vvm-tabs a { padding: 8px 14px; border-radius: 8px; color: rgba(255,255,255,.8); font-weight: 600; font-size: 14px; text-decoration: none; }
.vvm .vvm-tabs a:hover { color: #fff; text-decoration: none; }
.vvm .vvm-tabs a.is-active { background: rgba(255,255,255,.14); color: #fff; }
.vvm .vvm-topsearch { margin-left: auto; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border-radius: 10px; padding: 0 12px; height: 38px; min-width: 240px; color: rgba(255,255,255,.85); }
.vvm .vvm-topsearch input { flex: 1; background: transparent; border: 0; color: #fff; outline: 0; font-size: 14px; min-width: 0; margin: 0; padding: 0; }
.vvm .vvm-topsearch input::placeholder { color: rgba(255,255,255,.55); }
.vvm .vvm-topuser { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.vvm .vvm-topuser a { color: rgba(255,255,255,.7); font-size: 13px; }
.vvm .vvm-topuser a:hover { color: #fff; }
.vvm .vvm-pagehead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.vvm .vvm-pagehead h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.vvm .vvm-pagehead .vvm-lead { margin-top: 4px; }
.vvm .vvm-pagehead .vvm-actions { margin-left: auto; }
.vvm .vvm-panel { background: #fff; border: 1px solid var(--vvm-border); border-radius: var(--vvm-radius); overflow: hidden; }
.vvm .vvm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--vvm-border); background: #FBFCFD; margin: 0; }
.vvm .vvm-filters-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--vvm-muted); margin-right: 6px; }
.vvm .vvm-fpill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--vvm-border-strong); background: #fff; font-size: 13px; font-weight: 600; color: var(--vvm-ink); margin: 0; }
.vvm .vvm-fpill select, .vvm .vvm-fpill input { border: 0; background: transparent; font-weight: 600; color: var(--vvm-ink); font-size: 13px; outline: 0; max-width: 170px; height: auto; padding: 0; margin: 0; }
.vvm .vvm-fpill.is-on { border-color: var(--vvm-accent); background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); }
.vvm .vvm-fpill.is-on select, .vvm .vvm-fpill.is-on input { color: var(--vvm-accent-ink); font-weight: 700; }
.vvm .vvm-filters .vvm-push { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vvm .vvm-table-list { min-width: 960px; }
.vvm .vvm-table-list th { padding: 10px 12px; background: #FBFCFD; }
.vvm .vvm-table-list th:first-child, .vvm .vvm-table-list td:first-child { padding-left: 18px; }
.vvm .vvm-table-list th:last-child, .vvm .vvm-table-list td:last-child { padding-right: 18px; }
.vvm .vvm-table-list td { padding: 12px; vertical-align: middle; }
.vvm .vvm-table-list tbody tr:hover td { background: var(--vvm-soft); }
.vvm .vvm-sort { color: var(--vvm-muted); text-decoration: none; }
.vvm .vvm-sort.is-active { color: var(--vvm-ink); }
.vvm .vvm-sub { display: block; font-size: 11px; color: var(--vvm-muted); margin-top: 2px; }
.vvm .vvm-who { display: inline-flex; align-items: center; gap: 8px; }
.vvm .vvm-who .vvm-avatar { width: 28px; height: 28px; font-size: 11px; }
.vvm .vvm-mini-pill { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #EEF2F6; color: var(--vvm-ink); font-size: 11px; font-weight: 700; margin: 1px 2px 1px 0; white-space: nowrap; }
.vvm .vvm-mini-pill.is-accent { background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); }
.vvm .vvm-row-actions { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.vvm .vvm-panel-foot { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--vvm-border); font-size: 13px; color: var(--vvm-muted); flex-wrap: wrap; }
.vvm .vvm-pager { margin-left: auto; display: inline-flex; gap: 6px; }
.vvm .vvm-pager a, .vvm .vvm-pager span { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--vvm-border); color: var(--vvm-ink); font-weight: 600; text-decoration: none; font-size: 13px; }
.vvm .vvm-pager .is-active { background: var(--vvm-navy); border-color: var(--vvm-navy); color: #fff; }
.vvm .vvm-count { color: var(--vvm-muted); font-size: 13px; }
.vvm .vvm-empty-state { padding: 40px 20px; text-align: center; color: var(--vvm-muted); }

/* Fiche */
.vvm .vvm-crumb { font-size: 13px; color: var(--vvm-muted); margin-bottom: 14px; }
.vvm .vvm-crumb span { margin: 0 6px; }
/* .vvm-card empile ses enfants en colonne : sans flex-direction: row, les 320 px de base de .vvm-head
   s'appliquaient à la hauteur et laissaient un grand vide entre le titre et les boutons. */
.vvm .vvm-detail-head { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.vvm .vvm-detail-head .vvm-head { flex: 1 1 320px; }
.vvm .vvm-detail-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vvm .vvm-detail-title h1 { font-size: 26px; font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.01em; }
.vvm .vvm-detail-head .vvm-actions { gap: 8px; }
.vvm .vvm-tiles-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.vvm .vvm-detail-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.vvm .vvm-detail-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.vvm .vvm-detail-side { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.vvm .vvm-quote { font-size: 14px; line-height: 1.55; padding: 12px 14px; border-left: 3px solid var(--vvm-accent); background: var(--vvm-soft); border-radius: 0 10px 10px 0; }
.vvm .vvm-status-form { display: flex; gap: 8px; }
.vvm .vvm-status-form .vvm-input { height: 42px; font-weight: 600; }
.vvm .vvm-notes { display: flex; flex-direction: column; gap: 12px; }
.vvm .vvm-notes li { display: flex; gap: 10px; }
.vvm .vvm-note-body { flex: 1; background: var(--vvm-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.vvm .vvm-note-body small { display: block; margin-top: 4px; font-size: 11px; color: var(--vvm-muted); }
.vvm .vvm-timeline { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--vvm-muted); }
.vvm .vvm-timeline li { display: flex; gap: 10px; align-items: flex-start; }
.vvm .vvm-timeline li b { color: var(--vvm-ink); }
.vvm .vvm-tl-ico { width: 22px; height: 22px; border-radius: 6px; background: #EEF2F6; color: var(--vvm-ink); display: grid; place-items: center; flex: none; }
.vvm .vvm-tl-ico.is-ok { background: var(--vvm-ok-soft); color: var(--vvm-ok); }
.vvm .vvm-tl-ico.is-accent { background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); }
.vvm .vvm-tl-ico.is-warn { background: #FDF1E7; color: #8A3E1C; }
.vvm .vvm-ids-masked { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; color: var(--vvm-muted); }

/* Journal : pastilles d'action */
.vvm .vvm-act { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #EEF2F6; color: var(--vvm-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.vvm .vvm-act-mail, .vvm .vvm-act-submit { background: var(--vvm-ok-soft); color: var(--vvm-ok); }
.vvm .vvm-act-status_change, .vvm .vvm-act-pdf { background: var(--vvm-accent-soft); color: var(--vvm-accent-ink); }
.vvm .vvm-act-view, .vvm .vvm-act-export, .vvm .vvm-act-file { background: #FDF1E7; color: #8A3E1C; }
.vvm .vvm-act-purge { background: var(--vvm-danger-soft); color: var(--vvm-danger-ink); }
.vvm .vvm-act-note { background: #EEE9FA; color: #4C3A9E; }

/* ---- Pleine largeur (réglage « Largeur des pages », classe posée sur <body> par includes/auth.php) ----
   Le conteneur sort de la colonne du thème et occupe la fenêtre. Formulaire et récapitulatif : contenu centré sur
   1200 px. Tableau de bord (liste, fiche, journal) : toute la largeur de la fenêtre, avec une marge de 24 px. */
body.vvm-page-wide { overflow-x: clip; }
body.vvm-page-wide .vvm.vvm-form,
body.vvm-page-wide .vvm.vvm-recap,
body.vvm-page-wide .vvm.vvm-mine,
body.vvm-page-wide .vvm.vvm-dash { box-sizing: border-box; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; padding: 24px max(20px, calc(50vw - 600px)) 40px; background: var(--vvm-bg); }
body.vvm-page-wide .vvm.vvm-dash { padding-left: 24px; padding-right: 24px; }

/* ---- Formulaire en quatre étapes : blocs à l'intérieur d'une carte ---- */
.vvm .vvm-card [id^="vvm-s-"], .vvm .vvm-card[id^="vvm-s-"] { scroll-margin-top: 24px; }
.vvm.vvm-form .vvm-infostrip { gap: 6px 28px; padding: 12px 16px; font-size: 14px; color: var(--vvm-muted); }
.vvm.vvm-form .vvm-infostrip b { color: var(--vvm-ink); font-weight: 600; }
.vvm .vvm-sub { display: flex; flex-direction: column; gap: 12px; }
.vvm .vvm-sub + .vvm-sub { border-top: 1px solid var(--vvm-border); padding-top: 18px; }
.vvm .vvm-sub-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.vvm .vvm-rows { display: flex; flex-direction: column; gap: 12px; }
.vvm .vvm-rows:empty { display: none; }
.vvm .vvm-btn-add { align-self: flex-start; }
.vvm .vvm-person { padding: 12px 16px 16px; gap: 10px; background: #fff; }
.vvm .vvm-person-head { color: var(--vvm-muted); font-size: 13px; }
.vvm .vvm-grid-person { display: grid; gap: 12px 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vvm .vvm-span-2 { grid-column: span 2; }
.vvm .vvm-block { border: 1px solid var(--vvm-border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.vvm .vvm-block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.vvm .vvm-block .vvm-leg { border: 0; background: var(--vvm-soft); }
.vvm .vvm-business { display: flex; flex-direction: column; gap: 10px; }
.vvm .vvm-tile { flex-direction: row; align-items: center; padding: 14px; }
.vvm .vvm-drop-row { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; gap: 12px 16px; padding: 14px 16px; }
.vvm .vvm-drop-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.vvm .vvm-drop-text b { font-size: 14px; }
.vvm .vvm-stickybar .vvm-error { font-size: 13px; }

/* ---- Copies de pièces d'identité (étape Personnes) ---- */
.vvm .vvm-docs { display: grid; gap: 12px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 12px; border-top: 1px dashed var(--vvm-border-strong); }
.vvm .vvm-doc { padding: 12px; border: 1px dashed #B9C6D3; border-radius: 10px; background: var(--vvm-soft); }
.vvm .vvm-doc.is-set { border-style: solid; border-color: color-mix(in srgb, var(--vvm-ok) 35%, #fff); background: var(--vvm-ok-soft); }
.vvm .vvm-file { display: block; width: 100%; max-width: 100%; font-size: 13px; min-height: 44px; padding: 8px 0; }
.vvm .vvm-file.is-invalid { outline: 2px solid var(--vvm-danger); outline-offset: 2px; border-radius: 6px; }
.vvm .vvm-doc-state { font-size: 12.5px; color: var(--vvm-muted); word-break: break-all; }
.vvm .vvm-doc-state.is-set { color: var(--vvm-ok); font-weight: 600; }
.vvm .vvm-doc-state:empty { display: none; }
.vvm .vvm-doc-help { margin: 0; }
.vvm .vvm-doc-thumb { display: block; max-width: 100%; max-height: 120px; border-radius: 6px; border: 1px solid var(--vvm-border-strong); background: #fff; object-fit: contain; }
.vvm .vvm-doc-bar { display: block; height: 6px; border-radius: 3px; background: #DDE3E9; overflow: hidden; }
.vvm .vvm-doc-bar span { display: block; height: 100%; width: 0; background: var(--vvm-accent); transition: width .15s; }
.vvm .vvm-doc-state.is-error { color: var(--vvm-danger); font-weight: 600; }
.vvm.is-uploading .vvm-stickybar > .vvm-btn-primary { opacity: .6; }

/* ---- Liste du tableau de bord : onglets de statut, filtres, compte à rebours ---- */
.vvm .vvm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vvm .vvm-tabs { margin-right: auto; }
.vvm .vvm-topsearch { margin-left: 0; }
.vvm .vvm-listbar { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--vvm-border); }
.vvm .vvm-stabs { display: flex; flex-wrap: wrap; gap: 6px; }
.vvm .vvm-stabs a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: #EEF2F6; color: var(--vvm-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.vvm .vvm-stabs a:hover { background: #E2E8EE; color: var(--vvm-ink); text-decoration: none; }
.vvm .vvm-stabs a.is-on { background: var(--vvm-navy); color: #fff; }
.vvm .vvm-stabs .vvm-stab-due { margin-left: auto; background: #fff; border: 1px solid var(--vvm-border-strong); }
.vvm .vvm-stabs .vvm-stab-due.is-on { background: var(--vvm-accent); border-color: var(--vvm-accent); color: #fff; }
.vvm .vvm-listbar .vvm-filters { padding: 0; border: 0; background: none; }
.vvm .vvm-listbar .vvm-filters .vvm-input { width: auto; flex: 1 1 150px; height: 40px; font-size: 14px; }
.vvm .vvm-listbar .vvm-filters .vvm-filter-q { flex: 2 1 240px; }
.vvm .vvm-filter-date { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 400; color: var(--vvm-muted); flex: 1 1 170px; }
.vvm .vvm-listbar .vvm-filters .vvm-btn { height: 40px; }
.vvm .vvm-table-list { min-width: 1120px; font-size: 14px; }
.vvm .vvm-table-list th { padding: 12px 14px; text-transform: uppercase; letter-spacing: .04em; }
.vvm .vvm-table-list td { padding: 14px; }
.vvm .vvm-table-list td:first-child { white-space: nowrap; }
.vvm .vvm-table-list .vvm-sub { font-size: 12px; }
.vvm .vvm-table-list .vvm-mini-pill { font-size: 12px; }
.vvm .vvm-row-actions .vvm-btn { height: 40px; }
.vvm .vvm-row-actions .vvm-btn-icon { width: 40px; }
.vvm .vvm-table-list tbody tr.is-urgent td { background: #FFF8EC; }
.vvm .vvm-table-list tbody tr.is-late td { background: #FDF3F2; }
.vvm .vvm-timer { display: flex; flex-direction: column; gap: 2px; min-width: 140px; color: var(--vvm-muted); }
.vvm .vvm-timer-t { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vvm .vvm-timer-s { font-size: 12px; font-weight: 600; }
.vvm .vvm-timer-bar { display: block; height: 5px; margin-top: 4px; border-radius: 3px; background: #DDE3E9; overflow: hidden; }
.vvm .vvm-timer-bar span { display: block; height: 100%; background: currentColor; }
.vvm .vvm-timer.is-run .vvm-timer-t, .vvm .vvm-timer.is-run .vvm-timer-bar { color: var(--vvm-accent-ink); }
.vvm .vvm-timer.is-urgent { color: #8F4300; }
.vvm .vvm-timer.is-late, .vvm .vvm-timer.is-ko { color: #A3271D; }
.vvm .vvm-timer.is-ok .vvm-timer-t { color: var(--vvm-ok); }
.vvm .vvm-timer.is-none .vvm-timer-t { font-weight: 400; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .vvm .vvm-grid-person { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    body.vvm-page-wide .vvm.vvm-form,
    body.vvm-page-wide .vvm.vvm-recap,
    body.vvm-page-wide .vvm.vvm-mine,
    body.vvm-page-wide .vvm.vvm-dash { padding: 16px 14px 24px; }
    .vvm .vvm-stabs .vvm-stab-due { margin-left: 0; }
    .vvm .vvm-block { padding: 14px; }
    .vvm .vvm-title { font-size: 24px; }
    .vvm .vvm-card { padding: 16px; }
    .vvm .vvm-rail { position: static; max-width: none; }
    .vvm .vvm-topsearch { margin-left: 0; width: 100%; }
    .vvm .vvm-stepper .vvm-step-txt { display: none; }
    .vvm .vvm-done { padding: 24px 18px; }
    .vvm .vvm-grid-leg { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .vvm .vvm-docs { grid-template-columns: 1fr; }
    .vvm .vvm-grid-person { grid-template-columns: 1fr; }
    .vvm .vvm-span-2 { grid-column: auto; }
}

/* ---- « Mes demandes » ---- */
.vvm .vvm-table-mine { min-width: 640px; }
.vvm .vvm-ctx-user a { white-space: nowrap; }

/* ---- Formulaire : colonne de progression à côté du formulaire, ou au-dessus s'il n'y a pas la place ----
   La décision se prend sur la largeur réelle du formulaire (requête de conteneur), pas sur celle de la fenêtre :
   dans un thème qui limite la largeur du contenu, la colonne passait au-dessus tout en restant « collante », et
   recouvrait le formulaire pendant le défilement. Elle ne colle plus que lorsqu'elle est réellement sur le côté.
   Empilée, elle se réduit à une barre d'étapes compacte, sans l'encadré d'aide. */
.vvm.vvm-form { container-type: inline-size; container-name: vvmform; }
.vvm .vvm-layout { display: block; }
.vvm .vvm-rail { position: static; top: auto; max-width: none; margin: 0 0 20px; }
.vvm .vvm-rail-card { padding: 14px 16px; }
.vvm .vvm-rail-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.vvm .vvm-rail-nav a { padding: 6px 10px; }
.vvm .vvm-rail-help { display: none; }
@container vvmform (min-width: 880px) {
    .vvm .vvm-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
    .vvm .vvm-rail { position: sticky; top: 24px; margin: 0; }
    .vvm .vvm-rail-card { padding: 18px; }
    .vvm .vvm-rail-nav { flex-direction: column; flex-wrap: nowrap; gap: 3px; }
    .vvm .vvm-rail-nav a { padding: 7px 8px; }
    .vvm .vvm-rail-help { display: flex; }
}

/* ---- Offre jointe (fiche du tableau de bord) ---- */
.vvm .vvm-offer-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.vvm .vvm-offer-form .vvm-btn { align-self: flex-start; }
.vvm .vvm-offer-current { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--vvm-border); }
.vvm .vvm-table-mine { min-width: 760px; }
