/* =========================================================
   QAPSULE – Formulaire de demande revendeur (front)
   ========================================================= */

:root {
    --q-indigo: #2e4053;
    --q-yellow: #f3c56c;
    --q-salmon: #f08262;
    --q-gray-light: #f8fafc;
    --qreseller-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --qreseller-border: 1px solid #e2e8f0;
}

.qreseller {
    max-width: 720px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--qreseller-shadow);
    color: var(--q-indigo);
    font-family: inherit;
}

/* En-tête : on impose notre typo car les thèmes stylent agressivement titres et paragraphes. */
.qreseller .qreseller__title {
    margin: 0 0 10px;
    padding: 0;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--q-indigo);
}

.qreseller .qreseller__intro {
    margin: 0 0 32px;
    padding: 0;
    max-width: 46ch;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    color: #64748b;
}

.qreseller__notice {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.qreseller__notice--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.qreseller__notice--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.qreseller__notice p {
    margin: 0;
}

.qreseller__section {
    border: var(--qreseller-border);
    border-radius: 12px;
    padding: 18px 20px 22px;
    margin: 0 0 20px;
}

.qreseller .qreseller__section legend {
    padding: 0 10px;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
    color: var(--q-indigo);
}

.qreseller__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.qreseller__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 500;
}

.qreseller__field--full {
    display: block;
    margin-bottom: 20px;
}

.qreseller__field--full span {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.qreseller__field input,
.qreseller__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: var(--qreseller-border);
    border-radius: 8px;
    background: var(--q-gray-light);
    font-size: 0.95rem;
    color: var(--q-indigo);
    box-sizing: border-box;
}

.qreseller__field input:focus,
.qreseller__field textarea:focus {
    outline: none;
    border-color: var(--q-yellow);
    box-shadow: 0 0 0 3px rgba(243, 197, 108, 0.25);
}

.qreseller__actions {
    text-align: right;
}

.qreseller__submit {
    background: var(--q-salmon);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.qreseller__submit:hover {
    filter: brightness(0.95);
}

@media (max-width: 560px) {
    .qreseller {
        padding: 20px;
    }
    .qreseller__grid {
        grid-template-columns: 1fr;
    }
}
