/* ============================================================
   Page « Souscription » — template/souscription.php
   Intégration de la maquette Adobe XD « Souscription » (1680 px,
   conteneur 1140 px). Couleurs : bleu #2a4075, rouge #b5232d,
   or #e6be41, brun #957f64, gris-bleu #8a9dab, bleu clair #58a9c3.
   ============================================================ */

/* Ancres (« Faire un don », flèche) : défilement progressif. */
html {
    scroll-behavior: smooth;
}

.souscription {
    color: #323337;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    line-height: 24px;
    overflow: hidden;
}

.souscription *,
.souscription *::before,
.souscription *::after {
    box-sizing: border-box;
}

.sous-wrap {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.souscription p {
    margin: 0;
}

.souscription p + p {
    margin-top: 24px;
}

.souscription a {
    color: inherit;
}

.sous-text a,
.sous-action__text a {
    color: #b5232d;
    text-decoration: underline;
}

/* Titres de section (gris-bleu) */
.sous-h2 {
    font-family: 'castor_oneregular';
    font-weight: normal;
    font-size: 42px;
    line-height: 42px;
    color: #8a9dab;
    margin: 0 0 27px;
}

/* ------------------------------ BANDEAU ------------------------------ */
.sous-hero {
    background: linear-gradient(to bottom, #957f64 0, #957f64 376px, #fff 376px);
}

.sous-hero__inner {
    display: flex;
    padding-top: 50px;
}

.sous-hero__block {
    width: 50%;
    height: 382px;
    position: relative;
}

.sous-hero__block--text {
    background: #8a9dab;
    color: #fff;
    text-align: center;
    padding: 56px 57px 0;
}

.sous-hero__title {
    font-family: 'castor_oneregular';
    font-weight: normal;
    font-size: 64px;
    line-height: 57px;
    color: #e5c4b0;
    margin: 0;
    text-transform: uppercase;
}

/* Cocarde à la place du « o » : la maquette élargit l'espace (68 px) et y centre le logo
   de 64 px, sans modifier la hauteur de ligne (image sortie du flux). */
.sous-hero__o {
    display: inline-block;
    position: relative;
    width: 68px;
    height: 1px;
    vertical-align: baseline;
}

.sous-hero__logo {
    position: absolute;
    left: 2px;
    bottom: -5px;
    width: 64px;
    height: 64px;
}

.sous-hero__line {
    position: absolute;
    left: 100px;
    right: 101px;
    top: 181px;
    height: 2px;
    background: #e5c4b0;
}

.sous-hero__label {
    position: absolute;
    left: calc(50% + 5px);
    top: 168px;
    box-sizing: content-box;
    height: 27px;
    padding: 0 10px;
    background: #d11317;
    border: 6px solid #8a9dab;
    border-radius: 20px;
    transform: translateX(-50%) rotate(-3deg);
    transform-origin: center;
    font-family: 'castor_oneregular';
    font-size: 24px;
    line-height: 27px;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}

.souscription .sous-hero__accroche {
    position: absolute;
    left: 0;
    right: 0;
    top: 225px;
    margin: 0;
    font-family: 'castor_oneregular';
    font-size: 24px;
    line-height: 26px;
    color: #fff;
    text-transform: uppercase;
}

.sous-hero__hl {
    display: inline-block;
    height: 25px;
    line-height: 25px;
    vertical-align: baseline;
    background: #27428c;
    border-radius: 26px;
    padding: 0 10px;
}

.sous-hero__block--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.souscription .sous-hero__cta {
    position: relative;
    z-index: 1;
    display: block;
    width: 749px;
    max-width: 100%;
    height: 72px;
    margin: -17px auto 0;
    background: #e6be41;
    border-radius: 4px;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    line-height: 72px;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-align: center;
    transition: background .2s linear;
}

.souscription .sous-hero__cta:hover,
.souscription .sous-hero__cta:focus {
    background: #b5232d;
    color: #fff;
    text-decoration: none;
}

/* ---------------------------- PRÉSENTATION ---------------------------- */
.sous-intro {
    text-align: center;
    padding: 57px 0 54px;
}

.sous-intro__title {
    font-family: 'castor_oneregular';
    font-weight: normal;
    font-size: 62px;
    line-height: 57px;
    color: #2a4075;
    margin: 0 0 38px;
}

.sous-intro__text {
    max-width: 855px;
    margin: 0 auto;
}

/* Interlignage 40 px (au lieu des 24 px de la maquette, prévus pour une seule ligne) ;
   les marges compensent pour conserver la position de la maquette sur une ligne. */
.souscription .sous-intro__quote {
    font-family: 'castor_oneregular';
    font-size: 36px;
    line-height: 40px;
    color: #b5232d;
    max-width: 1027px;
    margin: 27px auto 25px;
}

/* --------------------------- SECTION RECENSEMENT --------------------------- */
.sous-s1,
.sous-s2 {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.sous-s1__image,
.sous-s1__content,
.sous-s2__image,
.sous-s2__content {
    width: calc(50% - 15px);
}

.sous-s1__image img {
    display: block;
    width: 100%;
    height: 549px;
    object-fit: cover;
}

.sous-s1__content {
    padding-top: 44px;
}

.sous-s1__text1 {
    font-weight: 700;
    margin-bottom: 9px;
}

.sous-s1__text2 {
    margin: 40px 0 24px;
}

.souscription .sous-btn {
    display: inline-block;
    height: 60px;
    padding: 0 19px;
    background: #e6be41;
    border-radius: 4px;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    line-height: 60px;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .2s linear;
}

.souscription .sous-btn:hover,
.souscription .sous-btn:focus {
    background: #b5232d;
    color: #fff;
    text-decoration: none;
}

/* Un <br> dans le libellé ne s'applique que sur mobile (bouton sur deux lignes). */
.sous-btn br {
    display: none;
}

/* ----------------------------- SECTION ACTIONS ----------------------------- */
.sous-s2 {
    margin-top: 69px;
}

.sous-s2__content {
    padding-top: 43px;
}

.sous-s2__image img {
    display: block;
    width: 100%;
    height: 592px;
    object-fit: cover;
}

.sous-actions {
    list-style: none;
    margin: 23px 0 0;
    padding: 0;
}

.sous-action {
    position: relative;
    padding-left: 71px;
    min-height: 43px;
    margin-bottom: 7px;
}

.sous-action:first-child {
    margin-bottom: 15px;
}

.sous-action__num {
    position: absolute;
    left: 20px;
    top: 8px;
    width: 35px;
    height: 35px;
    background: rgba(149, 127, 100, .098);
}

.sous-action__num span {
    display: block;
    font-family: 'castor_oneregular';
    font-size: 52px;
    line-height: 27px;
    color: #957f64;
}

/* ------------------------------- CONCLUSION ------------------------------- */
.sous-conclusion {
    text-align: center;
    margin-top: 83px;
}

.sous-conclusion__title {
    font-family: 'castor_oneregular';
    font-weight: normal;
    font-size: 62px;
    line-height: 57px;
    color: #2a4075;
    max-width: 882px;
    margin: 0 auto;
}

.sous-fleche {
    display: block;
    width: 42px;
    height: 76px;
    margin: 25px auto -13px;
    position: relative;
    z-index: 2;
}

.sous-fleche img {
    display: block;
    width: 42px;
    height: 76px;
}

/* ----------------------------- MODULE DE DON ----------------------------- */
.sous-don {
    background: #efece7 url("../images/backgrounds/bg-actus.png") repeat;
    padding: 78px 0 180px;
    text-align: center;
}

.sous-don__title {
    font-family: 'castor_oneregular';
    font-weight: normal;
    font-size: 62px;
    line-height: 57px;
    color: #b5232d;
    margin: 0;
}

.souscription .sous-don__subtitle {
    font-family: 'castor_oneregular';
    font-size: 42px;
    line-height: 57px;
    color: #b5232d;
    margin: -3px 0 0;
}

.sous-form {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-top: 50px;
    text-align: left;
}

.sous-form__left {
    width: 750px;
    display: flex;
    flex-direction: column;
}

.sous-tabs {
    display: flex;
    height: 57px;
    margin-bottom: 10px;
}

.sous-tab {
    flex: 1 1 0;
    background: #fff;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 0 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 18px;
    line-height: 20px;
    color: #2a4075;
    cursor: pointer;
    transition: border-color .2s linear;
}

.sous-tab.is-active {
    border-bottom-color: #2a4075;
}

.sous-tab:focus {
    outline: none;
}

.sous-tab:focus-visible {
    outline: 2px solid #2a4075;
    outline-offset: -2px;
}

.sous-card {
    flex: 1 1 auto;
    background: #fff;
    padding: 34px 30px 30px;
}

.sous-card__title {
    font-family: 'castor_oneregular';
    font-weight: normal;
    font-size: 42px;
    line-height: 42px;
    color: #b5232d;
    margin: 0 0 28px;
}

.sous-card__intro .sous-text {
    margin-bottom: 30px;
}

/* Civilité */
.sous-radios {
    display: flex;
    align-items: center;
    gap: 50px;
    height: 25px;
    margin-bottom: 18px;
}

.sous-radio {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 14px;
    line-height: 21px;
    color: #2a4075;
    text-transform: uppercase;
    cursor: pointer;
    margin: 0;
}

.sous-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sous-radio__dot {
    position: relative;
    width: 25px;
    height: 25px;
    margin-right: 10px;
    background: #fff;
    border: 2px solid #2a4075;
    border-radius: 50%;
    flex-shrink: 0;
}

.sous-radio input:checked + .sous-radio__dot::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2a4075;
}

.sous-radio input:focus-visible + .sous-radio__dot {
    box-shadow: 0 0 0 3px rgba(42, 64, 117, .25);
}

/* Champs */
.sous-row {
    display: flex;
    gap: 30px;
    margin-bottom: 18px;
}

.sous-field {
    width: calc(50% - 15px);
    min-width: 0;
}

.sous-field--cp {
    width: 135px;
    flex-shrink: 0;
}

.sous-field--cp + .sous-field {
    width: calc(100% - 165px);
}

.sous-field > label,
.sous-label {
    display: block;
    font-weight: 900;
    font-size: 14px;
    line-height: 21px;
    color: #2a4075;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.sous-field input[type="text"],
.sous-field input[type="email"],
.sous-field input[type="tel"],
.sous-field input[type="number"] {
    display: block;
    width: 100%;
    height: 49px;
    background: #f4f4f4;
    border: 0;
    border-radius: 2px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 16px;
    color: #2a4075;
    -moz-appearance: textfield;
}

.sous-field input::-webkit-outer-spin-button,
.sous-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sous-field input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #2a4075;
}

.sous-field input:invalid.is-touched {
    box-shadow: inset 0 0 0 2px #b5232d;
}

/* Montants */
.sous-row--montant {
    margin-bottom: 0;
}

.sous-amounts {
    display: flex;
    gap: 16px;
}

/* Onglet entreprise : 4 montants de 74 px répartis sur toute la largeur (maquette). */
.sous-amounts--pro {
    justify-content: space-between;
    gap: 11px;
}

.sous-amounts--pro .sous-amount {
    width: 74px;
}

/* Onglet entreprise : la ligne Dénomination / SIRET remplace la civilité,
   52 px sous le texte (fusion des marges avec les 30 px du texte). */
.sous-row--pro {
    margin-top: 52px;
}

.sous-amount {
    position: relative;
    width: 70px;
    height: 49px;
    margin: 0;
    background: #f4f4f4;
    border-radius: 2px;
    font-family: 'castor_oneregular';
    font-size: 28px;
    line-height: 49px;
    color: #2a4075;
    text-align: center;
    cursor: pointer;
    transition: background .15s linear, color .15s linear;
}

.sous-amount input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sous-amount:hover {
    background: #e6e6e6;
}

.sous-amount.is-active,
.sous-amount input:checked + span {
    background: #2a4075;
    color: #fff;
}

.sous-amount span {
    display: block;
    border-radius: 2px;
}

.sous-libre {
    position: relative;
}

.sous-libre input {
    padding-right: 44px !important;
    font-family: 'castor_oneregular' !important;
    font-size: 28px !important;
}

.sous-libre span {
    position: absolute;
    right: 15px;
    top: 0;
    font-family: 'castor_oneregular';
    font-size: 28px;
    line-height: 49px;
    color: #2a4075;
    pointer-events: none;
}

.sous-card__infos {
    margin-top: 38px;
}

.sous-card__infos p + p {
    margin-top: 10px;
}

/* Colonne règlement */
.sous-pay {
    position: relative;
    width: 360px;
    flex-shrink: 0;
    background: #2a4075;
    color: #fff;
    padding: 55px 15px 118px;
}

.sous-pay__title {
    font-family: 'castor_oneregular';
    font-weight: normal;
    font-size: 42px;
    line-height: 42px;
    color: #fff;
    text-align: center;
    margin: 0 0 42px;
}

.sous-pay__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 23px;
    margin-bottom: 24px;
}

.sous-pay__label {
    font-weight: 900;
    font-size: 14px;
    line-height: 16px;
    text-transform: uppercase;
    margin: 0;
}

.sous-pay__amount {
    position: relative;
    width: 158px;
    flex-shrink: 0;
}

.sous-pay__amount input {
    display: block;
    width: 100%;
    height: 49px;
    background: #f4f4f4;
    border: 0;
    border-radius: 2px;
    padding: 0 36px 0 8px;
    font-family: 'castor_oneregular';
    font-size: 28px;
    color: #2a4075;
    text-align: right;
}

.sous-pay__amount span {
    position: absolute;
    right: 13px;
    top: 0;
    font-family: 'castor_oneregular';
    font-size: 28px;
    line-height: 49px;
    color: #2a4075;
}

.sous-pay__amount--reduc {
    width: 151px;
}

.sous-pay__amount--reduc input {
    padding-right: 32px;
}

.sous-pay__amount--reduc span {
    right: 6px;
}

.sous-pay__reduc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    background: #58a9c3;
    border-radius: 5px;
    padding: 0 10px 0 16px;
    margin-bottom: 24px;
}

.sous-pay__reduc-label {
    width: 139px;
    margin: 0;
    font-weight: 900;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: -.007em;
    text-align: right;
}

.sous-pay__card {
    position: relative;
    background: #fff;
    border-radius: 5px;
    padding: 23px 30px 45px;
    color: #2a4075;
}

.sous-pay__field-label {
    display: block;
    font-weight: 900;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: -.007em;
    color: #b5232d;
    margin-bottom: 5px;
}

.sous-stripe {
    height: 20px;
    font-size: 16px;
}

.sous-pay__card-row {
    display: flex;
    margin-top: 22px;
}

.sous-pay__card-row .sous-pay__field {
    width: 150px;
    flex-shrink: 0;
}

.sous-pay__submit {
    display: block;
    width: 100%;
    height: 43px;
    margin-top: 20px;
    background: #b5232d;
    border: 1px solid #b5232d;
    border-radius: 2px;
    color: #fff;
    font-family: inherit;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: -.008em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s linear;
}

.sous-pay__submit:hover,
.sous-pay__submit:focus {
    background: #fff;
    color: #b5232d;
}

.sous-pay__submit:disabled {
    opacity: .6;
    cursor: wait;
}

.sous-pay__errors {
    color: #b5232d;
    font-size: 13px;
    line-height: 17px;
    margin-bottom: 10px;
}

.sous-pay__errors:empty {
    display: none;
}

.sous-pay__loader {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .85);
    border-radius: 5px;
}

.sous-spinner {
    position: relative;
    width: 64px;
    height: 64px;
}

.sous-spinner div {
    box-sizing: border-box;
    position: absolute;
    width: 51px;
    height: 51px;
    margin: 6px;
    border: 6px solid #2a4075;
    border-radius: 50%;
    border-color: #2a4075 transparent transparent transparent;
    animation: sous-spin 1.2s cubic-bezier(.5, 0, .5, 1) infinite;
}

.sous-spinner div:nth-child(1) { animation-delay: -.45s; }
.sous-spinner div:nth-child(2) { animation-delay: -.3s; }
.sous-spinner div:nth-child(3) { animation-delay: -.15s; }

@keyframes sous-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sous-pay__h {
    font-weight: 900;
    font-size: 14px;
    line-height: 16px;
    text-transform: uppercase;
    margin: 25px 0 10px;
}

.sous-pay__text {
    font-size: 14px;
    line-height: 20px;
}

.sous-pay__h--securite {
    margin-top: 49px;
}

.sous-pay__text--securite {
    line-height: 21px;
}

.sous-pay__text p + p {
    margin-top: 20px;
}

.sous-pay__text a {
    color: #fff;
    text-decoration: underline;
}

.sous-pay__ruban {
    position: absolute;
    left: 50%;
    bottom: -120px;
    width: 188px;
    height: 219px;
    transform: translateX(-50%);
}

/* ---------------------------------- FAQ ---------------------------------- */
.sous-faq {
    padding: 70px 0 83px;
    background: #fff;
}

.sous-faq__title {
    font-family: 'castor_oneregular';
    font-weight: normal;
    font-size: 62px;
    line-height: 57px;
    color: #2a4075;
    text-align: center;
    margin: 0 0 51px;
}

.sous-faq__list {
    max-width: 1000px;
    margin: 0 auto;
}

.sous-faq__item + .sous-faq__item {
    margin-top: 2px;
}

.sous-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 69px;
    background: #2a4075;
    border: 0;
    padding: 22px;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    text-align: left;
    cursor: pointer;
    transition: background .2s linear;
}

.sous-faq__q span {
    max-width: 731px;
}

.sous-faq__q:focus {
    outline: none;
}

.sous-faq__q:focus-visible {
    outline: 2px solid #b5232d;
    outline-offset: 2px;
}

.sous-faq__chevron {
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform .2s linear;
}

.sous-faq__item.is-open .sous-faq__q {
    background: #b5232d;
}

.sous-faq__item.is-open .sous-faq__chevron {
    transform: rotate(180deg);
}

.sous-faq__a {
    padding: 15px 20px 16px;
}

/* -------------------------------- RESPONSIVE -------------------------------- */
@media screen and (max-width: 1199px) {
    .sous-hero__block--text {
        padding-left: 30px;
        padding-right: 30px;
    }

    .sous-hero__title {
        font-size: 54px;
        line-height: 50px;
    }

    .sous-hero__o {
        width: 58px;
    }

    .sous-hero__logo {
        width: 54px;
        height: 54px;
        bottom: -4px;
    }

    .sous-hero__line {
        left: 60px;
        right: 60px;
    }

    .sous-hero__label {
        left: 50%;
    }

    .sous-form__left {
        width: calc(100% - 390px);
    }

    .sous-field--cp {
        width: 120px;
    }

    .sous-field--cp + .sous-field {
        width: calc(100% - 150px);
    }

    .sous-amounts {
        gap: 10px;
    }

    .sous-amount {
        width: 62px;
    }
}

@media screen and (max-width: 991px) {
    .sous-hero {
        background: #957f64;
        padding-bottom: 40px;
    }

    .sous-hero__inner {
        flex-direction: column;
        padding-top: 30px;
    }

    .sous-hero__block {
        width: 100%;
        height: auto;
    }

    .sous-hero__block--text {
        padding: 40px 20px 30px;
    }

    .sous-hero__line,
    .sous-hero__label,
    .souscription .sous-hero__accroche {
        position: static;
    }

    .sous-hero__line {
        display: block;
        width: 60%;
        margin: 20px auto;
    }

    .sous-hero__label {
        display: inline-block;
        padding: 0 16px;
        margin: 0 0 20px;
        transform: rotate(-3deg);
    }

    .sous-hero__block--image img {
        height: auto;
    }

    .sous-intro__title,
    .sous-conclusion__title,
    .sous-don__title,
    .sous-faq__title {
        font-size: 44px;
        line-height: 42px;
    }

    .souscription .sous-intro__quote {
        font-size: 28px;
        line-height: 34px;
    }

    .sous-s1,
    .sous-s2 {
        flex-direction: column;
        gap: 30px;
    }

    .sous-s2 {
        flex-direction: column-reverse;
    }

    .sous-s1__image,
    .sous-s1__content,
    .sous-s2__image,
    .sous-s2__content {
        width: 100%;
        padding-top: 0;
    }

    .sous-s1__image img,
    .sous-s2__image img {
        height: auto;
    }

    .souscription .sous-btn {
        max-width: 100%;
        white-space: normal;
        line-height: 20px;
        padding: 20px 19px;
        height: auto;
        text-align: center;
    }

    .souscription .sous-btn br {
        display: inline;
    }

    .souscription .sous-don__subtitle {
        font-size: 30px;
        line-height: 34px;
    }

    .sous-form {
        flex-direction: column;
    }

    .sous-form__left,
    .sous-pay {
        width: 100%;
    }

    .sous-pay {
        margin-bottom: 120px;
    }
}

@media screen and (max-width: 575px) {
    .sous-hero__title {
        font-size: 40px;
        line-height: 38px;
    }

    .sous-hero__o {
        width: 44px;
    }

    .sous-hero__logo {
        width: 40px;
        height: 40px;
        bottom: -3px;
    }

    .sous-hero__accroche {
        font-size: 20px;
        line-height: 24px;
    }

    .souscription .sous-hero__cta {
        height: 60px;
        line-height: 60px;
    }

    .sous-intro__title,
    .sous-conclusion__title,
    .sous-don__title,
    .sous-faq__title {
        font-size: 34px;
        line-height: 34px;
    }

    .sous-h2,
    .sous-card__title,
    .sous-pay__title {
        font-size: 32px;
        line-height: 32px;
    }

    .sous-card {
        padding: 20px;
    }

    .sous-tab {
        font-size: 15px;
    }

    .sous-radios {
        gap: 24px;
    }

    .sous-row {
        flex-direction: column;
        gap: 18px;
    }

    .sous-field,
    .sous-field--cp,
    .sous-field--cp + .sous-field {
        width: 100%;
    }

    .sous-amounts {
        flex-wrap: wrap;
    }

    .sous-pay__card {
        padding: 20px;
    }

    .sous-pay__card-row .sous-pay__field {
        width: 50%;
    }

    .sous-faq__q {
        font-size: 16px;
        padding: 16px;
    }
}
