/* Styles propres à la page Don (s'ajoute à about.css) */
.container.narrow { max-width: 820px; }
.center-text { text-align: center; }

.donation-form fieldset { border: 1px solid #ddd; border-radius: 8px; padding: 20px; margin: 0 0 25px; background: #fff; }
.donation-form legend { font-weight: bold; color: var(--primary-blue); padding: 0 8px; font-size: 18px; }

/* Montants */
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.amt input, .pay input { position: absolute; opacity: 0; pointer-events: none; }
.amt { position: relative; display: block; }
.amt span {
    display: block; padding: 14px 8px; text-align: center; font-weight: bold;
    border: 2px solid #ccc; border-radius: 8px; cursor: pointer; background: #fff;
    transition: border-color 0.2s, background-color 0.2s;
}
.amt:hover span { border-color: var(--primary-blue); }
.amt input:checked + span { border-color: var(--primary-blue); background: var(--primary-blue); color: #fff; }
.amt input:focus-visible + span, .pay input:focus-visible + .pay-body { outline: 3px solid var(--primary-blue); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: bold; font-size: 14px; }
.field small { color: #555; }
.field input {
    font: inherit; padding: 10px 12px; border: 1px solid #aaa; border-radius: 5px; background: #fff; width: 100%;
}
.field input:focus { border-color: var(--primary-blue); }
.field.free { margin-top: 18px; max-width: 320px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }

.freq { display: flex; flex-wrap: wrap; gap: 25px; }
.freq label { cursor: pointer; display: flex; align-items: center; gap: 8px; }

/* Moyens de paiement */
.pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.pay { position: relative; display: block; }
.pay-body {
    display: flex; flex-direction: column; gap: 2px; padding: 14px;
    border: 2px solid #ccc; border-radius: 8px; cursor: pointer; background: #fff; height: 100%;
    transition: border-color 0.2s, background-color 0.2s;
}
.pay:hover .pay-body { border-color: var(--primary-blue); }
.pay input:checked + .pay-body { border-color: var(--primary-blue); background: #e8f1fd; }
.pay-icon { font-size: 24px; line-height: 1.2; }
.pay small { color: #555; }

/* Récapitulatif */
.summary {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
    padding: 16px 20px; margin-bottom: 15px; border-radius: 8px; background: var(--light-bg);
    border-left: 5px solid var(--secondary-orange);
}
.sum-label { color: #555; }
.summary strong { font-size: 18px; }
.error { margin: 0 0 15px; padding: 12px; border-left: 4px solid #b3261e; background: #fdecea; color: #7a1c16; }
.submit { border: none; cursor: pointer; font-size: 17px; width: 100%; margin: 0; padding: 15px; }
.secure { font-size: 13px; color: #555; text-align: center; margin: 12px 0 0; }

/* Instructions de paiement */
.result { padding: 30px; border-radius: 8px; border: 1px solid #ddd; background: #fff; }
.result h2 { color: var(--primary-blue); margin: 0 0 20px; }
.res-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 15px; margin: 0 0 20px; padding: 15px; background: var(--light-bg); border-radius: 8px; }
.res-info dt { font-weight: bold; }
.res-info dd { margin: 0; overflow-wrap: anywhere; }
.res-info div { display: contents; }
.res-info [hidden] { display: none; }
#res-steps { padding-left: 22px; margin: 0 0 20px; }
#res-steps li { margin-bottom: 8px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.link-btn { background: none; border: none; color: var(--primary-blue); text-decoration: underline; cursor: pointer; font: inherit; margin-top: 15px; padding: 0; }

/* Domaines */
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tags li { padding: 8px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--primary-blue); color: var(--primary-blue); font-weight: bold; font-size: 14px; }

/* Photo du bandeau de la page */
.page-hero { --hero-img: url('img4.jpeg'); --hero-pos: center 45%; }
