#container-dons {
    background: #fff;
    color: #07216c;
}

/* Header & nav ================================================================== */
.form-dons-header {
    padding: 24px 24px 16px;
}
.form-dons-header h1 {
    text-transform: uppercase;
    text-align: center;
    font-size: 1.75rem;
}
.form-dons-header h1 strong { color: #d62349; }

.form-dons-nav {
    list-style: none;
    margin: 16px 0 8px;
    padding: 0;
    display: flex;
    gap: 8px;
}

.form-dons-nav .nav-item {
    flex: 1;
}

.form-dons-nav .nav-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    text-decoration: none;
    background: #ebebeb;
    font-size: 0.9rem;
}

.form-dons-nav .nav-item.active a {
    background: #d62349;
    color: #fff;
}

.form-dons-nav .nav-item.active svg path {
    fill: currentColor;
}

.form-dons-progress {
    margin-top: 10px;
    height: 4px;
    background: #ebebeb;
    border-radius: 999px;
    overflow: hidden;
}

.form-dons-progress-bar {
    height: 100%;
    background: #d62349;
    width: 0;
    transition: width 0.3s ease;
}

/* Progress step 1 ==================================================================== */
.form-dons-progress-bar.step-1 { width: 33%; }

.form-dons-body { padding: 24px; }
.don-section {
    max-width: 100%;
    margin: 0 auto 20px;
    background: #f9f9f9;
    padding: 20px;
}
.don-section h2 { 
    font-size: 1.5rem;
    margin: 0 0 1rem;
}
.don-section:last-child { margin-bottom: 0; }
.don-amount-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.don-amount-btn {
    flex: 1 1 calc(50% - 10px);
    border: 2px solid #d62349;
    background-color: #fff;
    border-radius: .75rem;
    font-size: 1.125rem;
    padding: 10px 8px;
    font-weight: 600;
    color: #07216c;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.don-amount-btn:hover {
    box-shadow: 0 0 0 2px rgba(214, 35, 73, 0.15);
}
.don-amount-btn.is-active {
    background: #d62349;
    color: #fff;
}
.don-amount-free {
    display: flex;
    align-items: center;
}
.don-amount-free label {
    display: block;
    flex: 0 0 auto;
    margin-right: 1rem;
    font-weight: 600;
}
.don-amount-input-wrapper {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #ebebeb;
    max-width: 260px;
    flex: 1 1 auto;
}
.don-amount-input-wrapper input[type="number"] {
    border: none;
    padding: 10px 16px;
    height: 40px;
    flex: 1;
    appearance: textfield;
}
.don-amount-input-wrapper input[type="number"]::-webkit-outer-spin-button,
.don-amount-input-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.don-currency {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-weight: 600;
}
.don-amount-help {
    margin-top: 6px;
    font-size: 0.85rem;
    opacity: 0.8;
}
.don-section-fiscal {
    margin-top: 16px;
}
.don-fiscal-resume {
    background: #ebebeb;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.don-fiscal-resume strong {
    font-weight: 700;
    color: #b81d3c;
}
.don-fiscal-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* Footer ==================================================================== */
.form-dons-footer {
    padding: 0 24px 24px;
    display: flex;
    justify-content: flex-end;
}
.btn-next-step {
    border: none;
    padding: 12px 24px;
    background: #d62349;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-next-step svg {
    fill: #fff;
    margin-left: .5rem;
}
.btn-next-step:hover {
    background: #b11537;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Mobile & petites tablettes */
@media (max-width: 575px) {

    .form-dons-header {
        padding: 16px 16px 12px;
    }

    .form-dons-header h1 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .form-dons-nav { gap: 4px; }
    .form-dons-nav .nav-item a {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
    .form-dons-nav .nav-item strong { display: none }

    .form-dons-body { padding: 16px; }
    .don-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    .don-section h2 {
        font-size: 1.25rem;
    }
    .don-amount-list {
        gap: 8px;
        margin-bottom: 14px;
    }
    .don-amount-btn {
        padding: 9px 8px;
        font-size: 1rem;
    }
    .don-amount-free {
        flex-direction: column;
        align-items: flex-start;
    }
    .don-amount-free label {
        margin-right: 0;
        margin-bottom: 0.4rem;
    }
    .don-amount-input-wrapper {
        max-width: 100%;
        width: 100%;
    }
    .form-dons-footer {
        padding: 0 16px 16px;
        justify-content: center;
    }
    .btn-next-step {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 360px) {

    .form-dons-header h1 {
        font-size: 1.2rem;
    }
    .don-section h2 {
        font-size: 1.1rem;
    }
    .don-amount-btn {
        font-size: 0.95rem;
        padding: 8px 6px;
    }
    .don-fiscal-resume,
    .don-fiscal-text {
        font-size: 0.8rem;
    }
}

/* Progress step 2 ==================================================================== */
.form-dons-progress-bar.step-2 { width: 66%; }

/* Switch Particulier / Organisme */
.don-type-switch {
    display: flex;
    width: 100%;
    border: 2px solid #d62349;
    border-radius: .75rem;
    overflow: hidden;
    margin-bottom: 20px;
}
.don-type-btn {
    padding: 10px 18px;
    border: none;
    background-color: #fff;
    font-weight: 600; 
    color: #07216c;
    cursor: pointer;
    flex: 1 1 auto;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.don-type-btn.is-active {
    background-color: #d62349;
    color: #fff;
}

/* Champs coordonnées */
.dons-field-group {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.dons-field-group label {
    display: block;
    margin: 0;
    line-height: 1.2;
    font-weight: 600;
    padding: 0 16px 0 0;
    min-width: 150px;
    flex: 0 0 auto;
}

.dons-field-group select,
.dons-field-group input[type="text"],
.dons-field-group input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1px solid #ebebeb;
    height: 40px;
}
#don-forme-juridique-text { margin-left: 10px; }

/* Bloc organisme */
.coordonnees-organisme {
    padding-top: 20px;
    display: none;
}
.don-organisme-label {
    margin: 0 0 16px;
    font-size: 1.125rem;
    color: #003ea5;
}

/* Footer étape 2 : retour + continuer */
.form-dons-footer--step2 {
    justify-content: space-between;
}
.btn-prev-step {
    border: 2px solid #d62349;
    text-transform: uppercase;
    font-size: .875rem;
    font-weight: 600;
    background: #fff;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #07216c;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-prev-step svg {
    margin-right: .5rem;
    fill: #07216c;
}
.btn-prev-step:hover {
    background: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

@media (max-width: 575px) {
    .form-dons-footer--step2 {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .btn-prev-step,
    .btn-next-step {
        width: 100%;
    }
    .don-type-switch {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .dons-field-group {
        flex-wrap: wrap;
    }
    .dons-field-group label {
        margin: 0 0 6px;
        min-width: auto;
        flex: 0 0 100%;
    }
    #don-forme-juridique-text {
        margin-top: 6px;
        margin-left: 0;
    }
}

.btn-next-step:disabled,
.btn-next-step.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* Progress step 3 ==================================================================== */
.form-dons-progress-bar.step-3 { width: 100%; }

/* Tableau récapitulatif */
.don-recap-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.don-recap-table th,
.don-recap-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #ebebeb;
}

.don-recap-table th {
    width: 30%;
    font-weight: 600;
    text-align: left;
}

.submit-load.submit-loading {
    position: relative;
    pointer-events: none;
    background-image: url(../images/submit-loader.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    min-height: 40px;
    color: #b11537;
    font-size: 0;
    overflow: hidden;
}
.submit-load.submit-loading:disabled,
.submit-load.submit-loading.btn-disabled {
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
}
.submit-load.submit-loading svg { display: none; }
.submit-load.submit-loading::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #b11537 url(../images/submit-loader.svg) center no-repeat;
    background-size: 30px 30px;
}

/* Bloc montant du don */
.don-recap-amount {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #d62349;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.don-recap-amount-label {
    margin: 0;
    font-weight: 600;
}

.don-recap-amount-value {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #d62349;
}

/* Rappel fiscal avec petite icône */
.don-fiscal-resume--icon {
    position: relative;
    padding-left: 32px;
}

.don-fiscal-resume--icon::before {
    content: "!";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #d62349;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #d62349;
}

/* Conditions générales */
.don-conditions-wrapper {
    margin-top: 14px;
}

.don-conditions {
    font-size: 0.9rem;
    line-height: 1.4;
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
}

.don-conditions input[type="checkbox"] {
    margin-top: 2px;
}

.don-conditions a {
    text-decoration: underline;
}

/* Bouton Payer (gros bouton) */
.btn-pay {
    min-width: 200px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

/* Responsive recap */
@media (max-width: 480px) {
    .don-recap-amount {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }
}

/* Confirmation ======================================================= */
.form-dons-confirm {
    min-height: 100vh;
    padding: 32px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9f0f2 0%, #ffffff 40%, #f3f6ff 100%);
}
.form-dons-confirm h1 strong {
    color: #d62349;
    text-transform: uppercase;
    font-size: 1.75em;
    line-height: 1em;
    display: block;
}
.don-confirm-card {
    max-width: 640px;
    width: 100%;
    /*background: #ffffff;*/
    padding: 28px 24px 24px;
    text-align: center;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);*/
}
.don-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.don-confirm-icon img {
    display: block;
    width: 100%;
    height: 100%;
}
.don-confirm-icon img.big-thanks {
    display: inline-block;
    animation: bigThanksShake 1s ease-in-out infinite;
    transform-origin: 50% 60%;
}
@keyframes bigThanksShake {
    0%   { transform: translateX(0) rotate(0deg) scale(1); }
    10%  { transform: translateX(-3px) rotate(-8deg) scale(1.05); }
    20%  { transform: translateX(3px)  rotate(8deg)  scale(1.05); }
    30%  { transform: translateX(-3px) rotate(-6deg) scale(1.03); }
    40%  { transform: translateX(3px)  rotate(6deg)  scale(1.03); }
    50%  { transform: translateX(-2px) rotate(-4deg) scale(1.02); }
    60%  { transform: translateX(2px)  rotate(4deg)  scale(1.02); }
    70%  { transform: translateX(-1px) rotate(-2deg) scale(1.01); }
    80%  { transform: translateX(1px)  rotate(2deg)  scale(1.01); }
    100% { transform: translateX(0)   rotate(0deg)  scale(1); }
}

.don-confirm-title {
    font-size: 1.7rem;
    margin: 0 0 14px;
    text-transform: none;
}

.don-confirm-main {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.don-confirm-sub {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.85;
    margin-bottom: 20px;
}

/* Bouton fermer */
.btn-close-step {
    border: none;
    padding: 10px 28px;
    background: #d62349;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-close-step:hover {
    background: #b11537;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

/* Responsive confirmation */
@media (max-width: 480px) {
    .don-confirm-card {
        padding: 24px 18px 20px;
    }

    .don-confirm-title {
        font-size: 1.4rem;
    }
}