/* ------------------------------------------------------------------
   Formulaire d'opt-out promoteur (/retrait-fiche-promoteur/).
   Sobre et sans friction : c'est une garantie, pas une page marketing.
   Tokens --vefa-* du design system (chargés globalement via tokens.css).
   ------------------------------------------------------------------ */

.optout-page {
    padding: 40px 16px 72px;
    background: var(--vefa-bg-muted, #f8fafc);
    min-height: 60vh;
}

.optout-page__inner {
    max-width: 680px;
    margin: 0 auto;
}

.optout-header__title {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 700;
    color: var(--vefa-text, #0f172a);
}

.optout-header__intro {
    margin: 0 0 16px;
    color: var(--vefa-text-muted, #475569);
    line-height: 1.65;
}

.optout-header__promises {
    margin: 0 0 28px;
    padding: 14px 18px 14px 34px;
    background: var(--vefa-surface, #fff);
    border: 1px solid var(--vefa-border, #e2e8f0);
    border-radius: 12px;
    color: var(--vefa-text, #0f172a);
}

.optout-header__promises li { margin: 4px 0; line-height: 1.55; }

.optout-context,
.optout-alert {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.94rem;
}

.optout-context {
    background: var(--vefa-primary-soft, rgba(52, 152, 219, 0.08));
    border: 1px solid var(--vefa-border, #e2e8f0);
    color: var(--vefa-text, #0f172a);
}

.optout-alert {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.optout-form {
    padding: 24px;
    background: var(--vefa-surface, #fff);
    border: 1px solid var(--vefa-border, #e2e8f0);
    border-radius: 14px;
}

.optout-form__row { margin-bottom: 18px; }

.optout-form__label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--vefa-text, #0f172a);
}

.optout-form__input {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    color: var(--vefa-text, #0f172a);
    background: #fff;
    border: 1px solid var(--vefa-border, #e2e8f0);
    border-radius: 8px;
}

.optout-form__input:focus {
    outline: 2px solid var(--vefa-primary, #3498db);
    outline-offset: 1px;
    border-color: transparent;
}

.optout-form ul { margin: 0; padding: 0; list-style: none; }
.optout-form ul li { margin: 4px 0; }
.optout-form ul label { font-weight: 400; margin-left: 6px; }

.optout-form__help {
    margin: 6px 0 0;
    font-size: 0.83rem;
    color: var(--vefa-text-muted, #64748b);
}

.optout-form__error,
.optout-form__errors {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #b91c1c;
}

.optout-form__legal {
    margin: 16px 0 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--vefa-text-muted, #64748b);
}

/* Honeypot : sorti du flux sans display:none ni type=hidden, que les bots ignorent. */
.optout-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.optout-btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    color: #fff;
    background: var(--vefa-accent, #ff4000);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
}

.optout-btn:hover { filter: brightness(0.94); color: #fff; }

.optout-btn--ghost {
    color: var(--vefa-text, #0f172a);
    background: transparent;
    border: 1px solid var(--vefa-border, #e2e8f0);
}

.optout-card {
    padding: 28px;
    background: var(--vefa-surface, #fff);
    border: 1px solid var(--vefa-border, #e2e8f0);
    border-radius: 14px;
}

.optout-card--success { border-left: 4px solid #16a34a; }

.optout-card__title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vefa-text, #0f172a);
}

.optout-card p { line-height: 1.65; }

.optout-card__muted {
    color: var(--vefa-text-muted, #64748b);
    font-size: 0.92rem;
}

/* Bloc de code des consignes robots.txt (page /bot/) : doit rester copiable
   tel quel, donc pas de retour à la ligne automatique qui casserait la directive. */
.bot-code {
    margin: 12px 0;
    padding: 12px 14px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
}

.optout-card + .optout-card { margin-top: 20px; }

.optout-card h2.optout-card__title { font-size: 1.15rem; }

.optout-card code {
    padding: 1px 5px;
    background: var(--vefa-bg-muted, #f1f5f9);
    border-radius: 4px;
    font-size: 0.88em;
}
