/* ═══════════════════════════════════════════════════════════
   VANSTECH — thème partagé (authentification + pages légales)
   Mêmes tokens que la page d'accueil (public/index.html).
   ═══════════════════════════════════════════════════════════ */

:root {
    --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;
    --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

    --r-xl: 28px;
    --r-lg: 20px;
    --r-md: 14px;
    --r-sm: 10px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);

    --bg: #f3f3ee;
    --bg-2: #e9e9e2;
    --surface: #ffffff;
    --surface-2: #f7f7f3;
    --ink: #10120f;
    --ink-2: #454a43;
    --muted: #6f756b;
    --line: rgba(16, 18, 15, .09);
    --line-2: rgba(16, 18, 15, .16);
    --accent: #14a35b;
    --accent-ink: #0b7a42;
    --accent-soft: rgba(20, 163, 91, .11);
    --on-accent: #ffffff;
    --danger: #c2341c;
    --danger-soft: rgba(194, 52, 28, .09);
    --success: #0b7a42;
    --success-soft: rgba(20, 163, 91, .1);
    --shadow: 0 1px 2px rgba(30, 40, 25, .06), 0 12px 32px -12px rgba(30, 40, 25, .18);
    --shadow-lg: 0 2px 4px rgba(30, 40, 25, .05), 0 40px 80px -30px rgba(30, 50, 25, .35);
    --grain-opacity: .05;
    --bubble-in: #ffffff;
    --bubble-out: #d8f8e3;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b0c0b;
        --bg-2: #111311;
        --surface: #161816;
        --surface-2: #1c1f1c;
        --ink: #eef0ea;
        --ink-2: #b6bbb0;
        --muted: #858b80;
        --line: rgba(238, 240, 234, .08);
        --line-2: rgba(238, 240, 234, .15);
        --accent: #2fdc80;
        --accent-ink: #6af0a6;
        --accent-soft: rgba(47, 220, 128, .1);
        --on-accent: #06140c;
        --danger: #ff8a73;
        --danger-soft: rgba(255, 110, 85, .1);
        --success: #6af0a6;
        --success-soft: rgba(47, 220, 128, .1);
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
        --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .8);
        --grain-opacity: .07;
        --bubble-in: #202c33;
        --bubble-out: #005c4b;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0b0c0b;
    --bg-2: #111311;
    --surface: #161816;
    --surface-2: #1c1f1c;
    --ink: #eef0ea;
    --ink-2: #b6bbb0;
    --muted: #858b80;
    --line: rgba(238, 240, 234, .08);
    --line-2: rgba(238, 240, 234, .15);
    --accent: #2fdc80;
    --accent-ink: #6af0a6;
    --accent-soft: rgba(47, 220, 128, .1);
    --on-accent: #06140c;
    --danger: #ff8a73;
    --danger-soft: rgba(255, 110, 85, .1);
    --success: #6af0a6;
    --success-soft: rgba(47, 220, 128, .1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .8);
    --grain-opacity: .07;
    --bubble-in: #202c33;
    --bubble-out: #005c4b;
    color-scheme: dark;
}

/* ═════════ Base ═════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    min-height: 100dvh;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.hidden { display: none !important; }

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::after { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::after { mix-blend-mode: screen; } }

.vt-skip {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-200%);
    transition: transform .2s var(--ease);
}
.vt-skip:focus { transform: none; }

.vt-serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent-ink); }
.vt-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.vt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--muted);
}
.vt-eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }

/* ═════════ Barre du haut ═════════ */
.vt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.vt-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    font-size: 15.5px;
    letter-spacing: .04em;
}
.vt-brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line), 0 4px 12px -4px rgba(0, 0, 0, .2);
    overflow: hidden;
}
.vt-brand-mark img { width: 32px; height: 32px; object-fit: contain; }

.theme-switch {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border-radius: 999px;
    background: var(--line);
}
.theme-switch button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 15px;
    color: var(--muted);
    transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ═════════ Mise en page auth (écran partagé) ═════════ */
.vt-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: 100dvh;
}

.vt-aside {
    position: sticky;
    top: 12px;
    align-self: start;
    height: calc(100dvh - 24px);
    min-height: 560px;
    margin: 12px 0 12px 12px;
    border-radius: var(--r-xl);
    background: var(--bg-2);
    border: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 4vw, 56px);
}
.vt-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(var(--line-2) 1px, transparent 1px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 80%);
}
.vt-aside::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 620px;
    height: 620px;
    right: -220px;
    bottom: -220px;
    background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
}
.vt-aside-title {
    font-size: clamp(34px, 3.6vw, 54px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 650;
    max-width: 12ch;
    text-wrap: balance;
}
.vt-aside-title .vt-serif { font-size: 1.08em; }

.vt-stage {
    perspective: 1100px;
    margin: 40px 0;
}
.vt-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
    transform: rotateY(-14deg) rotateX(6deg);
    transform-style: preserve-3d;
    animation: vt-sway 9s ease-in-out infinite;
}
@keyframes vt-sway {
    0%, 100% { transform: rotateY(-14deg) rotateX(6deg) translateY(0); }
    50% { transform: rotateY(-8deg) rotateX(3deg) translateY(-8px); }
}
.vt-bubble {
    max-width: 84%;
    padding: 10px 13px 8px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-line;
    background: var(--bubble-in);
    box-shadow: var(--shadow);
    opacity: 0;
    animation: vt-pop .6s var(--spring) forwards;
}
.vt-bubble small { display: block; margin-top: 3px; text-align: right; font-size: 10.5px; color: var(--muted); }
.vt-bubble.in { align-self: flex-start; border-top-left-radius: 4px; transform: translateZ(20px); }
.vt-bubble.out { align-self: flex-end; border-top-right-radius: 4px; background: var(--bubble-out); transform: translateZ(50px); }
/* Bulle "message supprimé" (commande !revoke) : remplace le contenu d'une bulle .in déjà affichée. */
.vt-bubble.in.deleted, .vt-bubble.out.deleted { display: flex; align-items: center; gap: 6px; font-style: italic; color: var(--muted); background: transparent; box-shadow: none; padding: 4px 2px; }
.vt-bubble.deleted i { font-size: 15px; }
/* Indicateur "en train d'écrire…", trois points qui clignotent en cascade. */
.vt-bubble.typing { display: flex; gap: 4px; padding: 11px 13px; align-self: flex-start; }
.vt-bubble.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: vt-blink 1.2s infinite; }
.vt-bubble.typing span:nth-child(2) { animation-delay: .15s; }
.vt-bubble.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes vt-blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.vt-bubble:nth-child(1) { animation-delay: .3s; }
.vt-bubble:nth-child(2) { animation-delay: 1.1s; }
.vt-bubble:nth-child(3) { animation-delay: 1.9s; }
/* #vt-chat-demo (JS) ajoute déjà ses propres délais entre bulles : pas besoin du décalage ci-dessus. */
#vt-chat-demo .vt-bubble { animation-delay: 0s; }
@keyframes vt-pop { from { opacity: 0; translate: 0 14px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }

.vt-points { list-style: none; display: grid; gap: 12px; }
.vt-points li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.vt-points i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 16px;
}

.vt-main {
    display: flex;
    flex-direction: column;
    padding: 24px clamp(20px, 5vw, 64px);
}
.vt-main > .vt-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 0;
    animation: vt-rise .7s var(--ease) both;
}
@keyframes vt-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.vt-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    font-size: 12.5px;
    color: var(--muted);
}
.vt-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.vt-foot a:hover { color: var(--ink); }

/* ═════════ Mise en page centrée (pages d'état) ═════════ */
.vt-center {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 24px clamp(16px, 5vw, 48px);
    position: relative;
    isolation: isolate;
}
.vt-center::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50% 40% at 50% 100%, var(--accent-soft), transparent 70%),
        radial-gradient(var(--line) 1px, transparent 1px);
    background-size: auto, 20px 20px;
}
.vt-center > .vt-card {
    margin: auto;
    width: 100%;
    max-width: 460px;
    animation: vt-rise .7s var(--ease) both;
}
.vt-card {
    padding: clamp(28px, 4vw, 40px);
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.vt-card.is-wide { max-width: 540px; }
.vt-center > .vt-foot { margin-top: 24px; justify-content: center; }

/* ═════════ Titres ═════════ */
.vt-h1 {
    font-size: clamp(30px, 3.4vw, 40px);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 640;
    text-wrap: balance;
}
.vt-lead { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; text-wrap: pretty; }
.vt-head { margin-bottom: 28px; }
.vt-text-center { text-align: center; }

/* ═════════ Formulaires ═════════ */
.vt-form { display: grid; gap: 18px; }
.vt-field { display: grid; gap: 7px; }
.vt-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vt-label { font-size: 13.5px; font-weight: 550; color: var(--ink); }
.vt-label .opt { font-weight: 400; color: var(--muted); }
.vt-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.vt-input::placeholder { color: var(--muted); opacity: .8; }
.vt-input:hover { border-color: var(--muted); }
.vt-input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.vt-input-wrap { position: relative; }
.vt-input-wrap .vt-input { padding-right: 48px; }
.vt-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--muted);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.vt-eye:hover { color: var(--ink); background: var(--line); }
.vt-eye svg { width: 19px; height: 19px; }
.vt-hint { font-size: 12.5px; color: var(--muted); }

.vt-strength {
    height: 4px;
    border-radius: 4px;
    background: var(--line);
    overflow: hidden;
    margin-top: 4px;
}
.vt-strength > div { height: 100%; width: 0; border-radius: inherit; transition: width .35s var(--ease), background-color .35s var(--ease); }

.vt-check {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 13.5px;
    color: var(--ink-2);
    cursor: pointer;
    user-select: none;
}
.vt-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 6px;
    border: 1.5px solid var(--line-2);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.vt-check input::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--on-accent);
    border-bottom: 2px solid var(--on-accent);
    transform: rotate(-45deg) translate(1px, -1px) scale(0);
    transition: transform .25s var(--spring);
}
.vt-check input:checked { background: var(--accent); border-color: var(--accent); }
.vt-check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.vt-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ═════════ Boutons et liens ═════════ */
.vt-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 560;
    font-size: 15px;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: transform .25s var(--spring), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), opacity .2s;
}
.vt-btn:active:not(:disabled) { transform: scale(.98); }
.vt-btn:disabled { opacity: .5; cursor: not-allowed; }
.vt-btn--primary { background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px -12px rgba(20, 163, 91, .55); }
.vt-btn--primary:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); }
.vt-btn--primary i { transition: transform .3s var(--spring); }
.vt-btn--primary:hover:not(:disabled) i { transform: translateX(3px); }
.vt-btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.vt-btn--ghost:hover:not(:disabled) { background: var(--line); }
.vt-btn--google { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.vt-btn--google:hover { border-color: var(--muted); box-shadow: var(--shadow); }
.vt-btn--google svg { width: 19px; height: 19px; }

.vt-link { color: var(--accent-ink); font-weight: 550; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.vt-link:hover { text-decoration-color: currentColor; }
.vt-link-small { font-size: 13px; }
.vt-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); transition: color .2s var(--ease), gap .25s var(--ease); }
.vt-back:hover { color: var(--ink); gap: 12px; }
.vt-alt { margin-top: 24px; text-align: center; font-size: 14px; color: var(--ink-2); }

.vt-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}
.vt-divider::before, .vt-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }

/* ═════════ Alertes ═════════ */
.vt-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
    border: 1px solid transparent;
    animation: vt-alert-in .35s var(--spring);
}
.vt-alert--error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.vt-alert--success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 35%, transparent); color: var(--success); }
@keyframes vt-alert-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.vt-invite {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    animation: vt-alert-in .5s var(--spring);
}
.vt-invite i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 20px;
    flex-shrink: 0;
}
.vt-invite small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--accent-ink); }
.vt-invite b { font-size: 16px; font-weight: 600; }

/* ═════════ États (vérification, etc.) ═════════ */
.vt-icon-badge {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 20px;
    font-size: 30px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    position: relative;
}
.vt-icon-badge.is-error { background: var(--danger-soft); color: var(--danger); }
.vt-icon-badge.is-pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    border: 1.5px solid var(--accent);
    animation: vt-ping 2.2s var(--ease) infinite;
}
@keyframes vt-ping { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

.vt-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid var(--line-2);
    border-top-color: var(--accent);
    animation: vt-spin .9s linear infinite;
}
@keyframes vt-spin { to { transform: rotate(360deg); } }

.vt-steps {
    list-style: none;
    counter-reset: s;
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 16px 18px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--line);
    text-align: left;
}
.vt-steps li { counter-increment: s; display: flex; gap: 12px; font-size: 14px; color: var(--ink-2); }
.vt-steps li::before {
    content: counter(s, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent-ink);
    padding-top: 2px;
}

.code-input {
    width: 100%;
    max-width: 52px;
    aspect-ratio: 4 / 5;
    text-align: center;
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    color: var(--ink);
    box-shadow: 0 4px 0 -1px var(--line-2);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .25s var(--spring);
}
.code-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: translateY(-2px); }
.code-input:disabled { opacity: .5; cursor: not-allowed; }
.vt-otp { display: flex; justify-content: center; gap: 8px; margin: 14px 0 18px; }

/* ═════════ Pages légales ═════════ */
.vt-doc-page { min-height: 100dvh; }
.vt-doc-top {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px clamp(16px, 4vw, 40px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.vt-doc-top .vt-top { max-width: 1120px; margin: 0 auto; }
.vt-doc-hero { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px) 40px; }
.vt-doc-hero h1 {
    margin-top: 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 640;
    text-wrap: balance;
}
.vt-doc-meta { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.vt-doc {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px) 96px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}
.vt-toc {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 2px;
    padding-left: 14px;
    border-left: 1px solid var(--line-2);
}
.vt-toc::before { content: 'Sommaire'; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.vt-toc a {
    position: relative;
    padding: 5px 0;
    font-size: 13.5px;
    color: var(--muted);
    transition: color .2s var(--ease);
}
.vt-toc a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform .25s var(--ease);
}
.vt-toc a:hover { color: var(--ink); }
.vt-toc a.is-active { color: var(--ink); }
.vt-toc a.is-active::before { transform: scaleY(1); }

.vt-prose { max-width: 68ch; color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.vt-prose > p:first-child { font-size: 18px; color: var(--ink); line-height: 1.6; }
.vt-prose h2 {
    scroll-margin-top: 96px;
    margin: 56px 0 14px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.025em;
    font-weight: 620;
    color: var(--ink);
}
.vt-prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.vt-prose p + p { margin-top: 14px; }
.vt-prose ul { margin: 12px 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.vt-prose li { position: relative; padding-left: 22px; }
.vt-prose li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.vt-prose strong { color: var(--ink); font-weight: 600; }
.vt-prose a { color: var(--accent-ink); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.vt-prose a:hover { text-decoration-color: currentColor; }
.vt-table-wrap { margin: 16px 0; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.vt-prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.vt-prose th, .vt-prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vt-prose tr:last-child td { border-bottom: 0; }
.vt-prose th { background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 13px; }
.vt-doc-end { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ═════════ Responsive ═════════ */
@media (max-width: 960px) {
    .vt-auth { grid-template-columns: 1fr; }
    .vt-aside { display: none; }
    .vt-doc { grid-template-columns: 1fr; gap: 0; }
    .vt-toc { display: none; }
}
@media (max-width: 480px) {
    .vt-main { padding: 16px; }
    .vt-main > .vt-form-wrap { padding: 36px 0; }
    .vt-card { border-radius: var(--r-lg); }
    .vt-otp { gap: 6px; }
    .vt-foot { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .vt-bubble { opacity: 1; }
    html { scroll-behavior: auto; }
}
