/* ============================================================
   MARCUS — FOOTER D'AIDE CONTEXTUELLE
   ============================================================ */

.marcus-help-footer {
    width: 100%;
    max-width: 1180px;
    margin: 40px auto 20px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.06),
            rgba(124, 58, 237, 0.035)
        ),
        var(--surface, #ffffff);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.marcus-help-footer__content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
}

.marcus-help-footer__identity {
    flex: 0 0 auto;
}

.marcus-help-footer__avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.marcus-help-footer__text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.marcus-help-footer__text strong {
    color: var(--text-color, #0f172a);
    font-size: 15px;
}

.marcus-help-footer__text span {
    color: var(--text-muted, #64748b);
    font-size: 14px;
}

.marcus-help-footer__button,
.marcus-help-footer__submit {
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    background: var(--primary, #2563eb);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.marcus-help-footer__button:hover,
.marcus-help-footer__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.marcus-help-footer__button:focus-visible,
.marcus-help-footer__submit:focus-visible,
.marcus-help-footer__input:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 2px;
}

.marcus-help-footer__panel {
    padding: 0 22px 22px;
}

.marcus-help-footer__panel[hidden] {
    display: none;
}

.marcus-help-footer__form {
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.marcus-help-footer__label {
    display: block;
    margin-bottom: 9px;
    color: var(--text-color, #0f172a);
    font-size: 14px;
    font-weight: 800;
}

.marcus-help-footer__field {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.marcus-help-footer__input {
    width: 100%;
    min-height: 82px;
    resize: vertical;
    padding: 13px 15px;
    border: 1px solid var(--border-color, #dbe3ef);
    border-radius: 13px;
    background: var(--surface, #ffffff);
    color: var(--text-color, #0f172a);
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
}

.marcus-help-footer__input:focus {
    border-color: var(--primary, #2563eb);
}

.marcus-help-footer__response {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 13px;
    background: rgba(37, 99, 235, 0.045);
    color: var(--text-color, #0f172a);
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.marcus-help-footer__response.is-error {
    border-color: rgba(220, 38, 38, 0.18);
    background: rgba(220, 38, 38, 0.05);
    color: #b91c1c;
}

.marcus-help-footer__submit:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

@media (max-width: 760px) {
    .marcus-help-footer {
        margin-top: 28px;
        border-radius: 15px;
    }

    .marcus-help-footer__content {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 18px;
    }

    .marcus-help-footer__text {
        width: calc(100% - 62px);
        flex: initial;
    }

    .marcus-help-footer__button {
        width: 100%;
    }

    .marcus-help-footer__panel {
        padding: 0 18px 18px;
    }

    .marcus-help-footer__field {
        align-items: stretch;
        flex-direction: column;
    }

    .marcus-help-footer__submit {
        width: 100%;
    }
}
