/* SecretGift V8.2 — lisibilité globale et réponses destinataire */
:root {
    --sg-button-dark: #171512;
    --sg-button-gold: #d4b46f;
    --sg-button-border: #8f7441;
    --sg-success-bg: #e4f6eb;
    --sg-success-text: #145f36;
    --sg-danger-bg: #fde8eb;
    --sg-danger-text: #8a2130;
}

.btn,
button,
input[type="submit"],
input[type="button"] {
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .01em;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    opacity: 1;
}

.btn {
    background: var(--sg-button-dark);
    color: #fff;
}

.btn:hover,
button:hover {
    filter: brightness(.96);
}

.btn:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
    outline: 3px solid rgba(202, 164, 90, .38);
    outline-offset: 2px;
}

.btn-gold {
    background: var(--sg-button-gold) !important;
    color: #17120a !important;
    border: 1px solid #ae8e50;
}

.btn-outline {
    background: #fff !important;
    color: #171512 !important;
    border: 2px solid var(--sg-button-border) !important;
}

.btn-danger {
    background: #842b36 !important;
    color: #fff !important;
}

button:disabled,
.btn[aria-disabled="true"],
input:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.responsive-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.delivery-proof-video {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 16px;
    background: #000;
}

.privacy-note {
    margin-top: 12px;
}

.answer-empty {
    padding: 18px;
    border: 1px dashed #d9d0c2;
    border-radius: 14px;
    background: #faf8f4;
}

.answer-attempts {
    display: grid;
    gap: 16px;
}

.answer-attempt {
    border: 1px solid #e2dbcf;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.answer-attempt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f5ef;
    border-bottom: 1px solid #e8e1d6;
}

.answer-attempt-head strong,
.answer-attempt-head small {
    display: block;
}

.answer-attempt-head small {
    margin-top: 3px;
    color: #726c63;
}

.answer-list {
    display: grid;
}

.answer-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid #eee8de;
}

.answer-row:last-child {
    border-bottom: 0;
}

.answer-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f2ead9;
    color: #5a4728;
    font-weight: 850;
}

.answer-content {
    min-width: 0;
}

.answer-question,
.answer-value {
    display: block;
    overflow-wrap: anywhere;
}

.answer-question {
    margin-bottom: 5px;
    color: #655f56;
    font-size: 13px;
}

.answer-value {
    color: #171512;
    font-size: 16px;
}

.answer-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.answer-result.is-correct {
    color: var(--sg-success-text);
    background: var(--sg-success-bg);
    border: 1px solid #b9e5ca;
}

.answer-result.is-wrong {
    color: var(--sg-danger-text);
    background: var(--sg-danger-bg);
    border: 1px solid #f2bdc5;
}

@media (max-width: 700px) {
    .dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .responsive-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .responsive-actions .btn,
    .form-card .btn-block,
    .mission-actions .btn {
        width: 100%;
    }

    .answer-attempt-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .answer-row {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .answer-row > .answer-result {
        grid-column: 2;
        justify-self: start;
    }

    .nav .btn,
    .nav a {
        min-height: 42px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 420px) {
    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        width: 100%;
        min-height: 48px;
        font-size: 15px;
    }

    .answer-row {
        padding: 14px 12px;
    }
}
