/* FeedbHal — feuille de style globale
 * Sobre, lisible, responsive. Inspiré du design system OrgaHal mais standalone.
 * Palette : neutre + un accent (à ajuster si une couleur de marque est fournie).
 */

:root {
    --fb-bg: oklch(0.985 0.004 250);
    --fb-surface: #ffffff;
    --fb-surface-2: oklch(0.965 0.006 250);
    --fb-border: oklch(0.9 0.008 250);
    --fb-ink: oklch(0.18 0.015 250);
    --fb-ink-2: oklch(0.4 0.012 250);
    --fb-muted: oklch(0.55 0.012 250);
    /* Accent terracotta (#c2410c) — distinct de Google Forms */
    --fb-accent: oklch(0.59 0.16 40);
    --fb-accent-strong: oklch(0.5 0.18 40);
    --fb-accent-soft: oklch(0.96 0.04 40);
    --fb-success: oklch(0.55 0.14 150);
    --fb-success-soft: oklch(0.95 0.05 150);
    --fb-danger: oklch(0.55 0.18 25);
    --fb-danger-soft: oklch(0.95 0.04 25);
    --fb-info: oklch(0.59 0.16 40);
    --fb-info-soft: oklch(0.96 0.04 40);

    --fb-radius: 8px;
    --fb-radius-lg: 12px;
    --fb-radius-sm: 6px;
    --fb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --fb-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --fb-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --fb-transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);
    --fb-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--fb-bg);
    color: var(--fb-ink);
    font-family: var(--fb-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--fb-accent);
    text-decoration: none;
    transition: color var(--fb-transition);
}
a:hover { color: var(--fb-accent-strong); text-decoration: underline; }

/* ===== Header / nav admin ===== */

.fb-header {
    background: var(--fb-ink);
    color: oklch(0.95 0.005 250);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 56px;
    box-shadow: var(--fb-shadow);
}
.fb-header h1 {
    font-size: 17px;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.fb-header nav {
    display: flex;
    gap: 4px;
}
.fb-header nav a {
    color: oklch(0.85 0.01 250);
    padding: 8px 12px;
    border-radius: var(--fb-radius-sm);
    font-size: 14px;
    transition: background var(--fb-transition), color var(--fb-transition);
}
.fb-header nav a:hover {
    background: oklch(0.28 0.015 250);
    color: white;
    text-decoration: none;
}
.fb-header nav a.is-active {
    color: white;
    background: oklch(0.28 0.015 250);
}
.fb-header .fb-user a {
    color: oklch(0.85 0.01 250);
}
.fb-header .fb-user a:hover {
    color: white;
    text-decoration: none;
}
.fb-header .fb-user {
    margin-left: auto;
    font-size: 13px;
    color: oklch(0.75 0.01 250);
    display: flex;
    align-items: center;
    gap: 12px;
}
.fb-header .fb-user a { color: oklch(0.85 0.01 250); }
.fb-header .fb-user a:hover { color: white; }

/* ===== Layout principal ===== */

.fb-main {
    max-width: 1080px;
    margin: 32px auto;
    padding: 0 24px;
}
.fb-main--narrow { max-width: 680px; }

.fb-h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
.fb-h3 {
    margin: 24px 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--fb-ink);
}
.fb-muted { color: var(--fb-muted); font-size: 14px; }

/* ===== Cards ===== */

.fb-card {
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--fb-shadow-sm);
}
.fb-card--hero {
    background: linear-gradient(180deg, var(--fb-surface) 0%, var(--fb-surface-2) 100%);
    padding: 32px;
}

/* ===== Flash messages ===== */

.fb-flash {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: var(--fb-radius);
    font-size: 14px;
    border: 1px solid transparent;
}
.fb-flash--info { background: var(--fb-info-soft); border-color: color-mix(in oklab, var(--fb-info) 30%, transparent); color: color-mix(in oklab, var(--fb-info) 80%, var(--fb-ink)); }
.fb-flash--success { background: var(--fb-success-soft); border-color: color-mix(in oklab, var(--fb-success) 30%, transparent); color: color-mix(in oklab, var(--fb-success) 80%, var(--fb-ink)); }
.fb-flash--error { background: var(--fb-danger-soft); border-color: color-mix(in oklab, var(--fb-danger) 30%, transparent); color: color-mix(in oklab, var(--fb-danger) 80%, var(--fb-ink)); }

/* ===== Forms ===== */

.fb-field { margin-bottom: 18px; }
.fb-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--fb-ink);
}
.fb-label__req { color: var(--fb-danger); margin-left: 2px; }
.fb-hint {
    font-size: 12px;
    color: var(--fb-muted);
    margin-top: 6px;
}

.fb-input,
.fb-textarea,
.fb-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    background: var(--fb-surface);
    font: inherit;
    color: var(--fb-ink);
    transition: border-color var(--fb-transition), box-shadow var(--fb-transition);
    box-sizing: border-box;
}
.fb-input:focus,
.fb-textarea:focus,
.fb-select:focus {
    outline: none;
    border-color: var(--fb-accent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--fb-accent) 20%, transparent);
}
.fb-textarea { min-height: 96px; resize: vertical; }

.fb-scale, .fb-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}
.fb-scale-opt, .fb-choices-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    cursor: pointer;
    font-size: 14px;
    background: var(--fb-surface);
    transition: border-color var(--fb-transition), background var(--fb-transition);
    user-select: none;
}
.fb-scale-opt:hover, .fb-choices-opt:hover {
    /* Hover dérivé de l'accent (vert olive sur affiche 2026, terracotta sinon)
       via color-mix — pas d'orange statique qui jurerait avec la DA affiche. */
    border-color: var(--fb-accent);
    background: color-mix(in oklab, var(--fb-accent) 12%, var(--fb-surface));
}
.fb-scale-opt input, .fb-choices-opt input {
    margin: 0;
    accent-color: var(--fb-accent);
}

/* ===== Buttons ===== */

.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--fb-accent);
    color: white;
    border: 0;
    padding: 9px 16px;
    border-radius: var(--fb-radius);
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    font-size: 14px;
    transition: background var(--fb-transition), transform var(--fb-transition), box-shadow var(--fb-transition);
    text-decoration: none;
}
.fb-btn:hover { background: var(--fb-accent-strong); color: white; text-decoration: none; }
.fb-btn:active { transform: translateY(1px); }

/* Bouton submit du form public : lift visuel + ring focus accessible. */
.fb-survey-submit .fb-btn {
    box-shadow: 0 1px 2px color-mix(in oklab, var(--fb-accent) 40%, transparent);
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 600;
}
.fb-survey-submit .fb-btn:hover {
    box-shadow: 0 2px 6px color-mix(in oklab, var(--fb-accent) 50%, transparent);
}
.fb-btn:focus-visible {
    outline: 2px solid var(--fb-accent);
    outline-offset: 2px;
}
.fb-btn--secondary {
    background: transparent;
    color: var(--fb-ink-2);
    border: 1px solid var(--fb-border);
}
.fb-btn--secondary:hover { background: var(--fb-surface-2); color: var(--fb-ink); }
.fb-btn--ghost {
    background: transparent;
    color: var(--fb-ink-2);
    border: 1px solid var(--fb-border);
}
.fb-btn--ghost:hover { background: var(--fb-surface-2); color: var(--fb-ink); border-color: var(--fb-accent); }
.fb-btn--danger { background: var(--fb-danger); }
.fb-btn--danger:hover { background: color-mix(in oklab, var(--fb-danger) 85%, var(--fb-ink)); }

.fb-btn--block { width: 100%; justify-content: center; }
.fb-btn--lg { padding: 12px 20px; font-size: 15px; }

/* ===== Tables ===== */

.fb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.fb-table th, .fb-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--fb-border);
}
.fb-table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fb-ink-2);
    background: var(--fb-surface-2);
}
.fb-table tr:hover td { background: var(--fb-bg); }
.fb-table tr:last-child td { border-bottom: 0; }

/* ===== Badges ===== */

.fb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--fb-surface-2);
    color: var(--fb-ink-2);
    border: 1px solid var(--fb-border);
}
.fb-badge--accent { background: var(--fb-accent-soft); color: var(--fb-accent-strong); border-color: color-mix(in oklab, var(--fb-accent) 30%, transparent); }
.fb-badge--success { background: var(--fb-success-soft); color: color-mix(in oklab, var(--fb-success) 70%, var(--fb-ink)); border-color: color-mix(in oklab, var(--fb-success) 30%, transparent); }
.fb-badge--danger { background: var(--fb-danger-soft); color: color-mix(in oklab, var(--fb-danger) 70%, var(--fb-ink)); border-color: color-mix(in oklab, var(--fb-danger) 30%, transparent); }

/* ===== Form wrapper (pour les pages publiques) ===== */

.fb-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px;
}
.fb-page__inner {
    width: 100%;
    max-width: 680px;
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius-lg);
    padding: 32px 36px;
    box-shadow: var(--fb-shadow);
}
.fb-page__inner--narrow { max-width: 420px; }
.fb-page__intro {
    color: var(--fb-ink-2);
    line-height: 1.6;
    margin: 12px 0 24px;
    white-space: pre-line;
}
.fb-page__title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* ===== Survey form (public) ===== */

.fb-page--survey {
    background: var(--fb-bg);
    flex-direction: column;
    align-items: stretch;
}

.fb-survey-hero {
    /* Cadre gauche : header (titre + tag) en haut, affiche en dessous.
       Pas de fond pour ne pas concurrencer l'affiche ; juste l'image sur
       surface neutre avec une fine bordure. */
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
}

.fb-survey-hero__img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--fb-surface-2);
    border: 1px solid var(--fb-border);
    margin: 0 auto;
    padding: 12px;
}

.fb-survey-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    /* Fond gris translucide : lisible sur blanc OU sur affiche colorée. */
    color: var(--fb-ink);
    background: var(--fb-surface-2);
    border: 1px solid var(--fb-border);
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fb-survey-tag--muted {
    color: var(--fb-ink-2);
    background: var(--fb-surface-2);
}
.fb-survey-tag__dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.fb-page__title--survey {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 8px 0 4px;
    line-height: 1.15;
}

.fb-page__inner .fb-page__intro {
    font-size: 16px;
    color: var(--fb-ink-2);
    margin: 12px 0 28px;
}

.fb-survey-form {
    margin-top: 8px;
}

.fb-survey-submit {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--fb-border);
    display: flex;
    justify-content: flex-end;
}

/* ===== Survey public — layout fluide (impeccable) ===== */

.fb-page--survey {
    /* Fond de page legerement teinté vers l'accent (8%) — visible mais pas criard.
       Évite le flat-cream AI-default 2026 tout en restant discret. */
    background: color-mix(in oklch, var(--fb-accent, #c2410c) 8%, var(--fb-bg));
    min-height: 100vh;
}

.fb-survey {
    width: 100%;
    max-width: 1100px;
    margin: 32px auto 64px;
    padding: 0 16px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

/* Desktop : affiche à gauche (sticky), form + header à droite. */
@media (min-width: 880px) {
    .fb-survey {
        grid-template-columns: minmax(320px, 1fr) minmax(0, 1.4fr);
        align-items: start;
    }
    .fb-survey-hero {
        position: sticky;
        top: 24px;
    }
}

.fb-survey-body {
    background: var(--fb-surface, #fff);
    border: 1px solid var(--fb-border, oklch(0.92 0.005 250));
    border-radius: 12px;
    padding: 32px 32px 36px;
}

.fb-survey__head {
    margin: 0 0 24px;
    padding: 0;
    color: var(--fb-ink);
}

.fb-survey__title {
    font-size: clamp(28px, 4.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    /* Titre en accent-deep : identite assumée, cohérente avec l'affiche. */
    color: var(--fb-accent-strong, #4a6046);
    margin: 0 0 6px;
    text-wrap: balance;
}

.fb-survey__intro {
    /* Bandeau pleine largeur, collé en haut/à droite du body (margin négatif
       qui annule le padding). Coins arrondis en haut (matchent body 12px),
       plats en bas pour joindre le form sans espace visuel.
       Couleurs imposées par David : fond vert profond #4d5e44,
       texte clair #f9f9f9 (contraste ~6.7:1, WCAG AA OK). */
    margin: -32px -32px 48px;
    padding: 36px 32px 24px;
    background: #4d5e44;
    color: #f9f9f9;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.fb-survey__intro strong {
    color: #f9f9f9;
    font-weight: 700;
}

.fb-survey-rgpd a {
    color: var(--fb-accent-strong, #9a3412);
}

.fb-survey__head {
    margin-bottom: 36px;
}

.fb-survey__form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.fb-survey-submit {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--fb-border);
    display: flex;
    justify-content: stretch;
}

/* ===== Question cards (admin form_edit) ===== */

.fb-question-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: none;
}

.fb-question-card {
    display: block;
    padding: 14px 18px;
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    transition: border-color var(--fb-transition), background var(--fb-transition);
}
.fb-question-card:hover {
    border-color: color-mix(in oklab, var(--fb-accent) 35%, var(--fb-border));
}

.fb-question-card__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.fb-question-card__num {
    font-size: 20px;
    font-weight: 700;
    color: var(--fb-accent);
    line-height: 1.2;
    letter-spacing: -0.02em;
    min-width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.fb-question-card__summary {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.fb-question-card__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--fb-ink);
    line-height: 1.4;
    text-wrap: balance;
    flex: 0 1 auto;
}

.fb-question-card__help {
    flex-basis: 100%;
    margin-top: 4px;
    font-size: 13px;
    color: var(--fb-ink-2);
    line-height: 1.45;
}

.fb-question-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    align-items: center;
}

.fb-question-card__type {
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 500;
}
.fb-question-card__type--scale {
    background: color-mix(in oklab, var(--fb-accent) 12%, transparent);
    color: var(--fb-accent-strong);
}
.fb-question-card__type--choice {
    background: color-mix(in oklab, #2563eb 12%, transparent);
    color: #1e3a8a;
}
.fb-question-card__type--text {
    background: var(--fb-surface-2);
    color: var(--fb-ink-2);
}
.fb-question-card__type--date {
    background: color-mix(in oklab, #16a34a 12%, transparent);
    color: #14532d;
}

.fb-question-card__required {
    color: var(--fb-accent-strong);
    font-weight: 500;
}
.fb-question-card__optional {
    color: var(--fb-ink-2);
}

.fb-question-card__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.fb-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--fb-radius);
    color: var(--fb-ink-2);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    transition: background var(--fb-transition), color var(--fb-transition), border-color var(--fb-transition);
}
.fb-icon-btn:hover {
    background: var(--fb-surface-2);
    color: var(--fb-ink);
}
.fb-icon-btn:focus-visible {
    outline: 2px solid var(--fb-accent);
    outline-offset: 1px;
}
.fb-icon-btn--danger:hover {
    background: var(--fb-danger-soft);
    color: var(--fb-danger);
}

.fb-question-card__edit {
    display: block;
    margin-top: 12px;
}
.fb-question-card__edit > summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--fb-radius);
    display: inline-block;
}
.fb-question-card__edit > summary::-webkit-details-marker {
    display: none;
}
.fb-question-card__edit[open] > summary {
    background: var(--fb-surface-2);
}

.fb-question-card__edit-panel {
    margin-top: 10px;
    padding: 18px 20px;
    background: var(--fb-surface-2);
    border-radius: var(--fb-radius);
}

.fb-question-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.fb-question-edit-grid__full {
    grid-column: 1 / -1;
}

.fb-question-edit-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.fb-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    cursor: pointer;
    font-size: 14px;
}
.fb-toggle input[type="checkbox"] {
    margin: 0;
}

@media (max-width: 720px) {
    .fb-question-edit-grid {
        grid-template-columns: 1fr;
    }
    .fb-question-card__head {
        grid-template-columns: auto 1fr;
    }
    .fb-question-card__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

/* ===== "Autre" option (QCM) ===== */

.fb-other-opt {
    color: var(--fb-ink-2);
}

.fb-other-field {
    margin-top: 8px;
    margin-left: 24px;
}
.fb-other-field input[type="text"],
.fb-other-field textarea {
    width: 100%;
    max-width: 420px;
    padding: 8px 12px;
    font: inherit;
    font-size: 14px;
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    color: var(--fb-ink);
}
.fb-other-field input[type="text"]:focus,
.fb-other-field textarea:focus {
    outline: 2px solid var(--fb-accent);
    outline-offset: 0;
    border-color: var(--fb-accent);
}

/* ===== Survey question fieldset (impeccable) ===== */

.fb-q {
    border: 0;
    padding: 0;
    margin: 0 0 32px;
}
.fb-q:last-child {
    margin-bottom: 0;
}

.fb-q-legend,
.fb-q__legend {
    font-size: 16px;
    font-weight: 600;
    color: var(--fb-ink);
    line-height: 1.4;
    letter-spacing: -0.005em;
    margin: 0 0 10px;
    padding: 0;
    text-wrap: balance;
}
.fb-q-req {
    color: var(--fb-danger);
    margin-left: 2px;
    font-weight: 700;
}

.fb-q__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fb-q-hint {
    font-size: 13px;
    color: var(--fb-ink-2);
    margin: 8px 0 0;
    line-height: 1.5;
}

/* Inputs pleine largeur */
.fb-survey-form .fb-input,
.fb-survey-form .fb-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
}
.fb-survey-form .fb-textarea {
    min-height: 132px;
    resize: vertical;
    line-height: 1.5;
}
.fb-survey-form .fb-input:focus,
.fb-survey-form .fb-textarea:focus {
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--fb-accent) 18%, transparent);
}

/* Scale (1-5, 1-10) : cartes lisibles */
.fb-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}
.fb-scale-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    background: var(--fb-surface);
    color: var(--fb-ink);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
    transition: border-color var(--fb-transition), background var(--fb-transition), color var(--fb-transition);
}
.fb-scale-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.fb-scale-opt__value {
    display: inline-block;
}
.fb-scale-opt:hover {
    border-color: var(--fb-accent);
}
.fb-scale-opt:has(input:checked) {
    background: var(--fb-accent);
    border-color: var(--fb-accent);
    color: white;
}

/* Choices (radio/checkbox) : cartes claires */
.fb-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}
.fb-choices-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    background: var(--fb-surface);
    color: var(--fb-ink);
    font-size: 15px;
    cursor: pointer;
    user-select: none;
    transition: border-color var(--fb-transition), background var(--fb-transition);
}
.fb-choices-opt input {
    margin: 0;
    accent-color: var(--fb-accent);
}
.fb-choices-opt:hover {
    border-color: var(--fb-accent);
}
.fb-choices-opt:has(input:checked) {
    border-color: var(--fb-accent);
    background: color-mix(in oklab, var(--fb-accent) 8%, var(--fb-surface));
}

/* RGPD footer (form public) */

.fb-survey-rgpd {
    margin-top: 32px;
    padding: 18px 20px;
    background: var(--fb-surface-2);
    border-radius: var(--fb-radius);
    font-size: 13px;
    line-height: 1.55;
    color: var(--fb-ink-2);
}
.fb-survey-rgpd p {
    margin: 0 0 8px;
}
.fb-survey-rgpd p:last-child {
    margin-bottom: 0;
}
.fb-survey-rgpd__title {
    font-weight: 600;
    font-size: 13px;
    color: var(--fb-ink);
    margin-bottom: 10px;
    letter-spacing: -0.005em;
}
.fb-survey-rgpd a {
    color: var(--fb-accent-strong);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== Header image upload (admin) ===== */

.fb-header-preview {
    margin-bottom: 12px;
    padding: 8px;
    background: var(--fb-surface-2);
    border-radius: var(--fb-radius);
    border: 1px solid var(--fb-border);
    display: flex;
    justify-content: center;
}
.fb-header-preview__img {
    display: block;
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--fb-radius);
    object-fit: cover;
}

.fb-header-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 16px;
    border: 2px dashed var(--fb-border);
    border-radius: var(--fb-radius);
    background: var(--fb-surface);
    cursor: pointer;
    text-align: center;
    transition: border-color var(--fb-transition), background var(--fb-transition);
}
.fb-header-drop:hover,
.fb-header-drop:focus-visible {
    border-color: var(--fb-accent);
    background: var(--fb-accent-soft);
    outline: none;
}
.fb-header-drop.is-drag-over {
    border-color: var(--fb-accent);
    background: var(--fb-accent-soft);
    border-style: solid;
}
.fb-header-drop__title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--fb-ink);
}
.fb-header-drop__hint {
    margin: 0;
    font-size: 12px;
    color: var(--fb-ink-2);
}
.fb-header-drop__status {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--fb-accent-strong);
}

.fb-page__subtitle {
    color: var(--fb-muted);
    font-size: 14px;
    margin: 0 0 24px;
}

/* ===== Empty state ===== */

.fb-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--fb-muted);
}
.fb-empty__icon { font-size: 48px; margin-bottom: 12px; }

/* ===== Stat ===== */

.fb-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 12px 0;
}
.fb-stat__value { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--fb-ink); }
.fb-stat__label { font-size: 13px; color: var(--fb-muted); }

/* ===== KPIs (dashboard) ===== */

.fb-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 12px 0;
}
.fb-kpi {
    background: var(--fb-surface-2);
    border: 1px solid var(--fb-border);
    border-radius: 8px;
    padding: 16px;
}
.fb-kpi__label {
    font-size: 12px;
    color: var(--fb-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.fb-kpi__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--fb-accent-strong);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.fb-kpi__sub {
    font-size: 12px;
    color: var(--fb-muted);
    margin-top: 4px;
}

/* ===== Status pills (invitations) ===== */

.fb-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}
.fb-status--ok {
    background: var(--fb-success-soft);
    color: color-mix(in oklab, var(--fb-success) 80%, var(--fb-ink));
    border-color: color-mix(in oklab, var(--fb-success) 30%, transparent);
}
.fb-status--warn {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}
.fb-status--muted {
    background: var(--fb-surface-2);
    color: var(--fb-muted);
    border-color: var(--fb-border);
}

/* ===== Bar chart horizontal (dashboard) ===== */

.fb-bar {
    position: relative;
    background: var(--fb-surface-2);
    border: 1px solid var(--fb-border);
    border-radius: 4px;
    overflow: hidden;
    min-height: 22px;
    width: 100%;
}
.fb-bar__fill {
    background: var(--fb-accent);
    height: 100%;
    transition: width 0.3s ease;
    min-width: 0;
}
.fb-bar__label {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 500;
    color: var(--fb-ink);
    z-index: 1;
}

/* ===== Question block (dashboard) ===== */

.fb-question-block {
    padding: 16px 0;
    border-bottom: 1px solid var(--fb-border);
}
.fb-question-block:last-child {
    border-bottom: 0;
}
.fb-question-block__title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--fb-ink);
}
.fb-question-block__title .fb-badge {
    font-weight: 400;
}
.fb-question-block__summary {
    background: var(--fb-accent-soft);
    border-left: 3px solid var(--fb-accent);
    padding: 8px 12px;
    border-radius: 4px;
    margin: 0 0 12px;
    font-size: 14px;
}

/* ===== Required badge ===== */

.fb-badge--required {
    background: var(--fb-danger-soft);
    color: var(--fb-danger);
    border-color: color-mix(in oklab, var(--fb-danger) 30%, transparent);
    font-size: 11px;
}

/* ===== Compact table ===== */

.fb-table--compact th,
.fb-table--compact td {
    padding: 6px 10px;
    font-size: 13px;
}

/* ===== Verbatims (text questions) ===== */

.fb-verbatims {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fb-verbatim {
    background: var(--fb-surface-2);
    border-left: 3px solid var(--fb-accent);
    padding: 10px 14px;
    border-radius: 4px;
}
.fb-verbatim__text {
    margin: 0 0 4px;
    color: var(--fb-ink);
    font-style: italic;
    line-height: 1.5;
}
.fb-verbatim__meta {
    margin: 0;
    font-size: 12px;
    color: var(--fb-muted);
}

/* ===== HERO (édition éditoriale) ===== */

.fb-hero {
    background: linear-gradient(180deg, var(--fb-surface) 0%, var(--fb-accent-soft) 100%);
    border-radius: var(--fb-radius-lg);
    border: 1px solid var(--fb-border);
    padding: 28px 32px;
}
.fb-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.fb-hero__title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--fb-ink);
    text-wrap: balance;
}
.fb-hero__subtitle {
    margin: 6px 0 0;
    color: var(--fb-ink-2);
    font-size: 14px;
}
.fb-hero__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.fb-hero__metric {
    background: var(--fb-surface);
    border: 1px solid var(--fb-accent);
    border-radius: var(--fb-radius);
    padding: 20px 24px;
    margin: 0 0 20px;
    text-align: center;
}
.fb-hero__metric-value {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--fb-accent-strong);
}
.fb-hero__metric-suffix {
    font-size: 0.4em;
    color: var(--fb-muted);
    margin-left: 6px;
    font-weight: 500;
}
.fb-hero__metric-label {
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    color: var(--fb-muted);
    font-weight: 600;
}
.fb-hero__metric-meta {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--fb-ink-2);
}
.fb-hero__kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.fb-hero__kpi {
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    padding: 12px 16px;
}
.fb-hero__kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--fb-ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.fb-hero__kpi-label {
    margin-top: 4px;
    font-size: 12px;
    color: var(--fb-muted);
}

/* ===== ÉDITORIAL : RÉSUMÉ / ANALYSE / CONSEILS ===== */

.fb-editorial__heading {
    margin: 0 0 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fb-accent-strong);
    font-weight: 700;
}
.fb-editorial__prose {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--fb-ink-2);
    text-wrap: pretty;
}
.fb-editorial__prose strong {
    color: var(--fb-ink);
    font-weight: 600;
}
.fb-editorial__prose em {
    color: var(--fb-ink);
    font-style: italic;
}

/* Résumé — plus compact */
.fb-resume {
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    padding: 18px 22px;
}
.fb-editorial__prose--resume {
    font-size: 15px;
}

/* Analyse — paragraphe long */
.fb-analyse {
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    padding: 22px 24px;
}
.fb-analyse .fb-editorial__prose {
    font-size: 15px;
    color: var(--fb-ink);
    max-width: 70ch;  /* body line-length cap (skill impeccable) */
}

/* Conseils — list numérotée par kind */
.fb-conseils {
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    padding: 22px 24px;
}
.fb-conseils__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fb-conseils__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--fb-surface-2);
    border-radius: var(--fb-radius);
    border-left: 4px solid var(--fb-muted);
}
.fb-conseils__item--fix {
    border-left-color: var(--fb-danger);
}
.fb-conseils__item--keep {
    border-left-color: var(--fb-success);
}
.fb-conseils__item--try {
    border-left-color: var(--fb-accent);
}
.fb-conseils__number {
    display: inline-flex;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--fb-ink);
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
}
.fb-conseils__item--fix .fb-conseils__number {
    background: var(--fb-danger-soft);
    color: var(--fb-danger);
    border-color: color-mix(in oklab, var(--fb-danger) 30%, transparent);
}
.fb-conseils__item--keep .fb-conseils__number {
    background: var(--fb-success-soft);
    color: color-mix(in oklab, var(--fb-success) 80%, var(--fb-ink));
    border-color: color-mix(in oklab, var(--fb-success) 30%, transparent);
}
.fb-conseils__item--try .fb-conseils__number {
    background: var(--fb-accent);
    color: white;
    border-color: var(--fb-accent);
}
.fb-conseils__body {
    flex: 1;
    min-width: 0;
}
.fb-conseils__title {
    font-weight: 600;
    font-size: 15px;
    color: var(--fb-ink);
    margin-bottom: 4px;
    line-height: 1.35;
}
.fb-conseils__detail {
    font-size: 14px;
    line-height: 1.5;
    color: var(--fb-ink-2);
}

/* ===== QUESTION BLOCK (refonte) ===== */

.fb-q-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.fb-q {
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    padding: 18px 20px;
    /* reset visuel d'avant (border-bottom, padding 0) */
    margin: 0;
}
.fb-q--full {
    grid-column: 1 / -1; /* texte long : pleine largeur */
    background: var(--fb-surface-2);
}
.fb-q__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.fb-q__label {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--fb-ink);
    line-height: 1.4;
    text-wrap: balance;
}
.fb-q--full .fb-q__label {
    font-size: 16px;
}
.fb-q__meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.fb-q__viz {
    display: grid;
    grid-template-columns: 160px 160px 1fr;
    gap: 20px;
    align-items: center;
}
.fb-q--full .fb-q__viz {
    grid-template-columns: 160px 160px 1fr;
}
.fb-q:not(.fb-q--full) .fb-q__viz {
    grid-template-columns: 110px 1fr;
    gap: 14px;
}
.fb-q:not(.fb-q--full) .fb-q__readable {
    display: none; /* on n'a plus la place en mode compact 2-cols */
}
.fb-q__readable {
    text-align: center;
}
.fb-q__avg {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.fb-q__avg-val {
    font-size: 28px;
    font-weight: 700;
    color: var(--fb-accent-strong);
    letter-spacing: -0.02em;
}
.fb-q__avg-max {
    font-size: 14px;
    color: var(--fb-muted);
}
.fb-q__count {
    margin-top: 6px;
    font-size: 12px;
    color: var(--fb-muted);
}
.fb-q__table {
    margin: 0;
    font-size: 13px;
}
.fb-q__cell-color {
    width: 12px !important;
    padding: 0 !important;
    border-radius: 2px;
}

/* ===== CAMEMBERT (SVG inline) ===== */

.fb-pie {
    display: flex;
    justify-content: center;
}
.fb-pie svg {
    display: block;
}

/* ===== THEMES (mots récurrents) ===== */

.fb-themes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.fb-themes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
}
.fb-theme {
    background: var(--fb-accent-soft);
    color: var(--fb-accent-strong);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 500;
    border: 1px solid color-mix(in oklab, var(--fb-accent) 20%, transparent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.fb-theme__count {
    background: var(--fb-accent);
    color: white;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

/* ===== BEST VERBATIM ===== */

.fb-best-verbatim {
    margin: 0;
    padding: 16px 20px;
    background: var(--fb-surface-2);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    font-family: Georgia, "Iowan Old Style", "Charter", serif;
    font-size: 17px;
    line-height: 1.55;
    font-style: italic;
    color: var(--fb-ink-2);
    text-wrap: pretty;
}
.fb-best-verbatim__cite {
    display: block;
    margin-top: 10px;
    font-family: var(--fb-font);
    font-size: 12px;
    font-style: normal;
    color: var(--fb-muted);
    text-align: right;
}

/* ===== Text details (collapsible verbatims) ===== */

.fb-q-text-details {
    margin-top: 12px;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    background: var(--fb-surface);
}
.fb-q-text-details__summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    user-select: none;
    border-radius: var(--fb-radius);
    transition: background var(--fb-transition);
}
.fb-q-text-details__summary:hover {
    background: var(--fb-surface-2);
}
.fb-q-text-details__summary::-webkit-details-marker {
    display: none;
}
.fb-q-text-details__summary::marker {
    display: none;
    content: '';
}
.fb-q-text-details[open] > .fb-q-text-details__summary {
    border-bottom: 1px solid var(--fb-border);
    border-radius: var(--fb-radius) var(--fb-radius) 0 0;
}
.fb-q-text-details__count {
    font-weight: 600;
    color: var(--fb-ink);
}
.fb-q-text-details__hint {
    margin-left: auto;
    font-size: 12px;
    color: var(--fb-muted);
}
.fb-q-text-details__chevron {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--fb-accent-soft);
    color: var(--fb-accent-strong);
    font-weight: 700;
    transition: transform 180ms ease;
}
.fb-q-text-details[open] .fb-q-text-details__chevron {
    transform: rotate(180deg);
}
.fb-q-text-details__content {
    padding: 18px;
    background: var(--fb-surface-2);
    border-radius: 0 0 var(--fb-radius) var(--fb-radius);
}

/* ===== Timeline (distribution journalière des réponses) ===== */

.fb-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fb-timeline__row {
    display: grid;
    grid-template-columns: 60px 1fr 32px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.fb-timeline__label {
    color: var(--fb-muted);
    font-variant-numeric: tabular-nums;
}
.fb-timeline__count {
    color: var(--fb-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* ===== Mini-thèmes par question (remplace nuage global) ===== */

.fb-q-themes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--fb-border);
}
.fb-q-themes__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fb-muted);
    font-weight: 600;
    margin-right: 4px;
}
.fb-q-theme {
    background: var(--fb-accent-soft);
    color: var(--fb-accent-strong);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid color-mix(in oklab, var(--fb-accent) 20%, transparent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fb-q-theme__count {
    background: var(--fb-accent);
    color: white;
    border-radius: 999px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* ===== Détails éditorial (Résumé + Analyse + Conseils) ===== */

.fb-editorial-details {
    margin-top: 12px;
}
.fb-editorial-details > .fb-q-text-details__summary {
    padding: 18px 22px;
    background: var(--fb-surface);
}
.fb-editorial-details > .fb-q-text-details__summary:hover {
    background: var(--fb-accent-soft);
}
.fb-editorial-details[open] > .fb-q-text-details__summary {
    background: var(--fb-accent-soft);
}
.fb-editorial-details[open] > .fb-q-text-details__summary {
    border-radius: var(--fb-radius) var(--fb-radius) 0 0;
}
.fb-editorial-details > .fb-q-text-details__content {
    padding: 22px 24px;
}
.fb-editorial-details .fb-q-text-details__count {
    font-size: 17px;
    font-weight: 600;
}
.fb-editorial-section {
    margin-bottom: 22px;
}
.fb-editorial-section:last-child {
    margin-bottom: 0;
}
.fb-editorial-section__heading {
    margin: 0 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--fb-accent-strong);
}
.fb-editorial-section + .fb-editorial-section {
    padding-top: 18px;
    border-top: 1px solid var(--fb-border);
}

/* ===== Accent badge (héro ★) ===== */
.fb-badge--accent {
    background: var(--fb-accent);
    color: white;
    border-color: var(--fb-accent);
    font-weight: 600;
}

/* ===== Responsive ===== */

@media (max-width: 640px) {
    .fb-main { padding: 0 16px; }
    .fb-page__inner { padding: 24px 20px; }
    .fb-header { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
    .fb-header .fb-user { margin-left: 0; width: 100%; }
    .fb-page__title { font-size: 20px; }
    .fb-page__title--survey { font-size: 24px; }
    .fb-survey-hero { margin-top: 12px; }
    .fb-survey-submit { justify-content: stretch; }
    .fb-survey-submit .fb-btn { width: 100%; }
}

/* ===== Bouton "retour en haut" (form public) ===== */

.fb-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--fb-accent);
    color: #ffffff;
    border: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px color-mix(in oklab, var(--fb-accent) 40%, transparent);
    z-index: 50;
    transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms;
}
.fb-back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px color-mix(in oklab, var(--fb-accent) 50%, transparent);
}
.fb-back-to-top:focus-visible {
    outline: 2px solid var(--fb-accent);
    outline-offset: 3px;
}
.fb-back-to-top[hidden] { display: none; }

@media (max-width: 860px) {
    .fb-q__viz { grid-template-columns: 1fr; gap: 16px; }
    .fb-pie { margin: 0 auto; }
    .fb-themes-grid { grid-template-columns: 1fr; }
    .fb-q-grid { grid-template-columns: 1fr; }
    .fb-q:not(.fb-q--full) .fb-q__viz { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .fb-hero { padding: 20px 18px; }
    .fb-hero__top { flex-direction: column; }
    .fb-hero__actions { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
