/* Espace vendeur : pages d'accès et tableau de bord provisoire. Palette OGEBOO (marine / or), mobile d'abord. */
:root {
    --v-navy: #0B1B34;
    --v-gold: #C9A24B;
    --v-ink: #1b2230;
    --v-muted: #5b6472;
    --v-line: #d8d3c4;
    --v-bg: #f6f3ea;
    --v-error: #a83232;
    --v-ok: #2f6b3f;
}
@media (prefers-color-scheme: dark) {
    :root { --v-ink: #e8eaef; --v-muted: #aab2c0; --v-line: #2c3a55; --v-bg: #0a1426; }
}
*, *::before, *::after { box-sizing: border-box; }
.vendor-body { margin: 0; font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--v-ink); background: var(--v-bg); min-height: 100vh; display: flex; flex-direction: column; }
.vendor-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--v-navy); }
.vendor-brand { color: #fff; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.vendor-link, .vendor-link-btn { color: #e7ddbf; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.vendor-main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 24px 16px 48px; }
.vendor-card { background: #fff; color: #1b2230; border: 1px solid var(--v-line); border-radius: 14px; padding: 24px 20px; box-shadow: 0 6px 24px rgba(11, 27, 52, .08); }
.vendor-card-wide { max-width: 720px; }
.vendor-card h1 { margin: 0 0 8px; font-size: 1.4rem; color: var(--v-navy); }
.vendor-lead { margin: 0 0 18px; color: #4a5160; }
.vendor-card label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: .92rem; }
.vendor-optional { font-weight: 400; color: #6b7280; }
.vendor-card input { width: 100%; padding: 12px; font: inherit; border: 1px solid #c9c3b2; border-radius: 10px; background: #fff; color: #1b2230; }
.vendor-card input:focus { outline: 2px solid var(--v-gold); outline-offset: 1px; border-color: var(--v-gold); }
.vendor-card input[aria-invalid="true"] { border-color: var(--v-error); }
.vendor-code { font-size: 1.6rem; letter-spacing: .5em; text-align: center; }
.vendor-hint { margin: 6px 0 0; font-size: .82rem; color: #6b7280; }
.vendor-error { margin: 6px 0 0; font-size: .88rem; color: var(--v-error); }
.vendor-btn { width: 100%; margin-top: 22px; padding: 13px; border: 0; border-radius: 10px; background: var(--v-navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.vendor-btn:hover, .vendor-btn:focus-visible { background: #14305c; }
.vendor-alt { margin: 16px 0 0; text-align: center; font-size: .92rem; color: #4a5160; }
.vendor-alt a, .vendor-card a { color: #7a5e1c; }
.vendor-resend { margin-top: 14px; text-align: center; }
.vendor-resend .vendor-link-btn { color: #7a5e1c; }
.vendor-resend .vendor-link-btn[disabled] { color: #8a8f99; text-decoration: none; cursor: not-allowed; }
.vendor-flash { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--v-line); background: #fff; color: #1b2230; }
.vendor-flash-error { border-color: var(--v-error); background: #fbeaea; }
.vendor-flash-success { border-color: var(--v-ok); background: #e8f2ea; }
.vendor-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.vendor-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #eee9d9; color: #3a3320; font-size: .82rem; font-weight: 600; }
.vendor-badge-warn { background: #fdf0cf; color: #7a5e1c; }
@media (min-width: 640px) { .vendor-main { padding-top: 48px; } .vendor-card { padding: 32px; } }

/* Assistant de configuration, notifications, récapitulatif */
.vendor-h2 { font-size: 1.1rem; margin: 20px 0 10px; color: var(--v-navy); }
.vendor-card select, .vendor-card textarea { width: 100%; padding: 12px; font: inherit; border: 1px solid #c9c3b2; border-radius: 10px; background: #fff; color: #1b2230; }
.vendor-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.vendor-card legend { font-weight: 600; margin-bottom: 6px; }
.vendor-progress { height: 8px; background: #e7e1cf; border-radius: 999px; overflow: hidden; margin: 12px 0 4px; }
.vendor-progress-bar { height: 100%; background: var(--v-gold); transition: width .3s; }
.vendor-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.vendor-step { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--v-line); border-radius: 999px; font-size: .82rem; text-decoration: none; color: #3a3320 !important; background: #faf8f2; }
.vendor-step.is-current { background: var(--v-navy); color: #fff !important; border-color: var(--v-navy); }
.vendor-step.is-done .vendor-step-n { color: var(--v-ok); font-weight: 700; }
.vendor-step.is-current.is-done .vendor-step-n { color: #9be2ad; }
.vendor-step-l { display: none; }
@media (min-width: 720px) { .vendor-step-l { display: inline; } }
.vendor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.vendor-btn-inline { width: auto; margin-top: 0; padding: 12px 20px; text-decoration: none; display: inline-block; }
.vendor-btn-secondary { display: inline-block; padding: 11px 16px; border: 1px solid var(--v-navy); border-radius: 10px; background: #fff; color: var(--v-navy) !important; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.vendor-upload { margin: 14px 0; padding: 14px; border: 1px dashed var(--v-line); border-radius: 12px; background: #fcfbf7; }
.vendor-upload form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.vendor-upload input[type=file] { width: auto; max-width: 100%; padding: 8px; }
.vendor-thumb { display: block; max-width: 160px; max-height: 120px; margin-top: 8px; border-radius: 8px; border: 1px solid var(--v-line); object-fit: cover; }
.vendor-doc { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 8px; font-size: .9rem; }
.vendor-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin: 10px 0 !important; }
.vendor-check input { width: auto !important; margin-top: 4px; }
.vendor-contract { max-height: 280px; overflow: auto; padding: 14px; border: 1px solid var(--v-line); border-radius: 10px; background: #fcfbf7; font-size: .9rem; margin: 10px 0 14px; }
.vendor-recap { width: 100%; border-collapse: collapse; font-size: .92rem; }
.vendor-recap th { text-align: left; width: 38%; padding: 8px 10px 8px 0; color: #4a5160; vertical-align: top; }
.vendor-recap td { padding: 8px 0; border-bottom: 1px solid var(--v-line); }
.vendor-notes { list-style: none; margin: 0; padding: 0; }
.vendor-notes li { padding: 10px 0; border-bottom: 1px solid var(--v-line); }
.vendor-notes li.is-unread { border-left: 3px solid var(--v-gold); padding-left: 10px; }
.vendor-notes small { color: #6b7280; }
.vendor-badge-error { background: #fbeaea; color: var(--v-error); }
.vendor-badge-ok { background: #e8f2ea; color: var(--v-ok); }
.vendor-badge-info { background: #e8eef9; color: #1f3b73; }
.vendor-flash-info { border-color: #9bb4e0; background: #eef3fc; }
.vendor-inline { margin-bottom: 8px; }
.vendor-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Bouton « œil » des champs mot de passe */
.vendor-pw { position: relative; display: block; }
.vendor-pw input { padding-right: 46px; }

.vendor-pw-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.vendor-pw-toggle:hover { background: rgba(11, 27, 52, 0.07); color: var(--v-navy, #0B1B34); }
.vendor-pw-toggle:focus-visible { outline: 2px solid var(--v-gold, #C9A24B); outline-offset: 1px; }
.vendor-pw-toggle[aria-pressed="true"] { color: var(--v-navy, #0B1B34); }
