section[aria-labelledby$="heading"] h2 {
    font-weight: 400;
}

/* Boutons don */
.card-grid a.btn {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    font-weight: var(--btn-font-weight);
    text-decoration: none;
    margin: 1rem auto;
    display: inline-block;
    transition: background 0.2s ease;
}

.card-grid a.btn:hover {
    background: var(--color-accent-secondary-dark);
}

/* Choix libre */
.don-choice {
    text-align: center;
    margin-top: 1.5rem;
}

.don-choice a {
    font-weight: 700;
    color: var(--color-accent-primary);
    text-decoration: underline;
}

section[aria-labelledby="autres-heading"] h2 {
    text-align: center;
}


@media screen and (min-width:64rem) {
    section[aria-labelledby="autres-heading"] .card-grid {
        display: grid;
        grid-template-columns: repeat(2,
                minmax(min(380px, 100%), 1fr));
        gap: 2rem 2.5rem;
        margin-top: 2rem;
        max-width: 800px;
        margin:0 auto;
    }
}

section[aria-labelledby="autres-heading"] .card-grid article {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

section[aria-labelledby="autres-heading"] .card-grid article a {
    padding:0.5rem
}

section[aria-labelledby="autres-heading"] .card-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

section .card-grid h3 {
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    justify-content: space-between;
    color: var(--color-text);
    min-height: initial;
}

section .card-grid h3 span:first-child {
    font-size: 1rem;
    color: grey;
    font-weight: normal;
}

section[aria-labelledby="autres-heading"] .card-grid p {
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.5;
}

section[aria-labelledby="autres-heading"] .card-grid a {
    background: var(--color-accent-primary-light);
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

/* FAQ */
section[aria-labelledby="faq-heading"] {
    margin-top: 3rem;
}

section[aria-labelledby="faq-heading"] details {
    background: var(--color-surface);
    border-radius: 12px;
    /* Ombre douce gris/bleu clair */
    box-shadow: 0 2px 6px var(--color-hover),
        0 4px 12px rgba(95, 94, 165, 0.12);
    /* violette légère */
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.25s ease;
}

section[aria-labelledby="faq-heading"] details:hover {
    /* Accentue l'ombre avec plus de saturation violette */
    box-shadow: 0 3px 8px var(--color-hover),
        0 6px 16px rgba(34, 64, 153, 0.18);
}

section[aria-labelledby="faq-heading"] summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

section[aria-labelledby="faq-heading"] summary::after {
    content: "▾";
    /* flèche bas */
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    transition: transform 0.2s ease;
}

section[aria-labelledby="faq-heading"] details[open] summary::after {
    transform: rotate(-180deg);
    /* flèche haut */
}

section[aria-labelledby="faq-heading"] details p {
    margin-top: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

section[aria-labelledby] {
    min-height: 88vh;
    background-repeat: no-repeat;
    background-size: contain;
}

section[aria-labelledby="mensuels-heading"] {
    background-image: url('/ui/blob/blob_ecoles_middle_left.svg');
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: contain;
}

section[aria-labelledby="faq-heading"] {
    background-image: url('/ui/blob/blob_don_bottom_left.svg');
    background-position: 0 100%;

}

section[aria-labelledby] footer {
    background-color: var(--color-accent-primary-light);
}

section[aria-labelledby] footer a {
    text-align: center;
    color: var(--color-text-primary);
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
}