/* =====================================================
   Questionnaire anonyme post-don & sa synthèse
   ===================================================== */

/* Colonne affiche un peu plus étroite que le survey (desktop only ;
   en deçà de 1024px le survey repasse en une colonne, on n’y touche pas). */
@media (min-width: 1025px) {
    .pds-layout {
        grid-template-columns: minmax(340px, 4fr) minmax(560px, 7fr);
    }
}

/* Synthèse : un graphe par ligne (le survey/transparence en met deux). */
.charts.pds-charts {
    grid-template-columns: 1fr;
}

/* En tablette et moins (le panneau passe pleine largeur) on masque l’affiche. */
@media (max-width: 1024px) {
    .pds-affiche {
        display: none;
    }
}

.pds-poster {
    gap: 1.25rem;
    padding: 2rem 1.75rem;
    overflow-y: auto;
}

/* Le surlignage global est rouge sur rouge dans ce panneau : on l’inverse. */
.pds-poster ::selection {
    background: var(--paper);
    color: var(--red);
}

.pds-poster__title {
    font-family: "Anton", sans-serif;
    font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem);
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0;
}

.pds-poster__intro p {
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 0 0.75rem;
}

.pds-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.pds-tabs__link {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    border: 1px solid currentColor;
}

.pds-tabs__link.is-active {
    background: var(--paper);
    color: var(--red);
    border-color: var(--paper);
}

/* Formulaire — un widget par question */
.pds-question .pds-widget {
    width: 100%;
    max-width: 32rem;
    padding: 0.55rem 0.7rem;
    font: inherit;
    border: 1px solid var(--ink, #1a1a1a);
    border-radius: 6px;
    background: var(--paper, #fff);
}

.pds-question textarea.pds-widget {
    min-height: 5rem;
    resize: vertical;
}

.pds-question .errors {
    color: var(--red, #e30613);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.pds-submit {
    margin: 2rem 0 3rem;
}

.pds-submit button {
    font-family: "Anton", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.8rem 1.6rem;
    border: 0;
    border-radius: 8px;
    background: var(--red, #e30613);
    color: var(--paper, #fff);
    cursor: pointer;
}
