.afb-footer {
    width: 100%;
    font-family: inherit;
    color: #fff;
}

/* ==========================================================
   ZONE A - AVANTAGES
   ========================================================== */

.afb-footer-benefits {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 28px 35px;
    background: #fff;
    color: #073C63;
}

.afb-footer-benefit {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
    column-gap: 18px;

    min-width: 0;
    padding: 0 28px;

    border-right: 1px solid #d8e7ef;
}

.afb-footer-benefit:first-child {
    padding-left: 0;
}

.afb-footer-benefit:last-child {
    padding-right: 0;
    border-right: 0;
}

.afb-footer-benefit-icon {
    width: 74px;
    min-width: 74px;

    color: #1390E6;
    font-size: 46px;
    line-height: 1;

    text-align: center;
}
.afb-footer-benefit-icon img {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0 auto;
}

.afb-footer-benefit > div:last-child {
    min-width: 0;
}

.afb-footer-benefit strong {
    display: block;

    margin: 0 0 5px;

    color: #073C63;

    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.afb-footer-benefit span {
    display: block;

    margin-bottom: 4px;

    color: #1390E6;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.afb-footer-benefit small {
    display: block;

    color: #304658;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}

/* Évite les retours à la ligne excessifs sur grand écran */
@media (min-width: 1400px) {

    .afb-footer-benefit strong {
        font-size: 16px;
    }

    .afb-footer-benefit small {
        font-size: 13px;
    }
}
/* ==========================================================
   ZONE B - CONCEPT
   ========================================================== */

.afb-footer-concept {
    display: grid;
    grid-template-columns: 260px 1fr 330px;
    align-items: center;
    gap: 28px;
    padding: 30px 7%;
    background: #e2f4ff;
    color: #073C63;
}

.afb-footer-concept-logo {
    padding-right: 32px;
    border-right: 1px solid #1390E6;
    text-align: center;
}

.afb-footer-concept-logo img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.afb-footer-concept-text h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #073C63;
}

.afb-footer-concept-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #243f52;
}

.afb-footer-concept-button {
    text-align: right;
}

.afb-footer-concept-button a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 300px;
    padding: 16px 20px;
    border: 2px solid #1390E6;
    border-radius: 4px;
    color: #1390E6;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================
   ZONE C - FOOTER PRINCIPAL
   ========================================================== */

.afb-footer-main {
    background: #0B568A;
    padding: 36px 4% 0;
}

.afb-footer-main-inner {
    display: grid;
    grid-template-columns: 300px 270px 370px 280px 360px;
    width: 100%;
    max-width: 1780px;
    margin: 0 auto;
}

.afb-footer-brand {
    padding: 15px 34px 15px 10px;
    border-right: 1px solid rgba(255,255,255,.35);
}

.afb-footer-brand-logo {
    display: block;
    width: 270px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.afb-footer-column {
    min-width: 0;
    padding: 0 28px;
    border-right: 1px solid rgba(255,255,255,.35);
}

.afb-footer-column:last-child {
    border-right: 0;
}

.afb-footer-column h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 18px;
}

.afb-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.afb-footer-column li {
    margin-bottom: 10px;
}

.afb-footer-column a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
    transition: .2s ease;
}

.afb-footer-column a::before {
    content: "›";
    display: inline-block;
    margin-right: 9px;
}

.afb-footer-column a:hover {
    color: #A8CCD8;
    transform: translateX(2px);
}

/* ==========================================================
   ZONE D - NEWSLETTER + PAIEMENT
   ========================================================== */

.afb-footer-newsletter {
    display: grid;
    grid-template-columns: 420px minmax(400px, 1fr) 500px;
    align-items: center;
    gap: 28px;

    max-width: 1780px;
    margin: 28px auto 0;
    padding: 20px 10px 28px;

    border-top: 1px solid rgba(255,255,255,.3);
}

.afb-footer-newsletter-intro {
    display: flex;
    align-items: center;
    gap: 22px;
}

.afb-footer-newsletter-icon {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex: 0 0 70px;
}

.afb-footer-newsletter-title strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.afb-footer-newsletter-title span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #d7edf8;
    white-space: nowrap;
}

.afb-footer-newsletter-form {
    display: flex;
    width: 100%;
    align-self: center;
}

.afb-footer-newsletter-form input {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: 0;
    background: #fff;
    color: #333;
    border-radius: 4px 0 0 4px;
}

.afb-footer-newsletter-form button {
    min-width: 190px;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: #1390E6;
    color: #fff;
    font-weight: 700;
    padding: 0 20px;
}

/* Paiement aligné sur la newsletter */
.afb-footer-payment {
    grid-column: 3;
    grid-row: 1;

    display: flex;
    align-items: center;
    gap: 20px;

    border-left: 1px solid rgba(255,255,255,.35);
    padding-left: 28px;
    margin: 0;
}


.afb-footer-payment-icon {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 52px;

    border: 0;
    margin: 0;
    padding: 0;
}

.afb-footer-payment > div {
    min-width: 0;
    border-left: 0;
    padding-left: 0;
}

.afb-footer-payment strong {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    color: #A8CCD8;
    white-space: nowrap;
}

.afb-footer-payment-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.afb-payment-item {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 42px;

    background: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    box-sizing: border-box;
}

.afb-payment-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.afb-payment-card {
    width: 62px;
}

.afb-payment-wide {
    width: 115px;
}

/* Message newsletter */
/* Placement précis des 3 blocs sur la première ligne */

.afb-footer-newsletter-intro {
    grid-column: 1;
    grid-row: 1;
}

.afb-footer-newsletter-form {
    grid-column: 2;
    grid-row: 1;
}

.afb-footer-payment {
    grid-column: 3;
    grid-row: 1;
}

/* Le message reste uniquement sous le formulaire */
.afb-footer-newsletter-message {
    grid-column: 2;
    grid-row: 2;
    margin-top: -8px;
    font-size: 13px;
}
.afb-footer-newsletter-message.success {
    color: #d8f5df;
}

.afb-footer-newsletter-message.error {
    color: #ffd0d0;
}
/* ==========================================================
   ZONE E - BARRE LEGALE
   ========================================================== */

.afb-footer-legal {
    display: grid;
    grid-template-columns: 380px minmax(700px, 1fr) 260px;
    align-items: center;
    gap: 20px;

    padding: 18px 4%;
    background: #073C63;
    color: #fff;
    font-size: 12px;
}

.afb-footer-company strong,
.afb-footer-company span {
    display: block;
}

.afb-footer-company span {
    margin-top: 3px;
    color: #d7edf8;
}

.afb-footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.afb-footer-legal-links a {
    color: #fff;
    text-decoration: none;
    padding: 0 18px;
    border-right: 1px solid rgba(255,255,255,.35);
}

.afb-footer-legal-links a:last-child {
    border-right: 0;
}

.afb-footer-copyright {
    text-align: right;
    line-height: 1.5;
}

/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 1199px) {

    .afb-footer-benefits {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 25px;
    }

    .afb-footer-benefit {
        border-right: 0;
    }

    .afb-footer-concept {
        grid-template-columns: 200px 1fr;
    }

    .afb-footer-concept-button {
        grid-column: 1 / -1;
        text-align: center;
    }

    .afb-footer-main-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .afb-footer-brand {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.3);
        margin-bottom: 25px;
    }

    .afb-footer-column {
        border-right: 0;
        margin-bottom: 30px;
    }

    .afb-footer-newsletter {
        grid-template-columns: 1fr;
    }

    .afb-footer-legal {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .afb-footer-copyright {
        text-align: center;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {
	
	/* Correction grille newsletter mobile */
.afb-footer-newsletter {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
}

.afb-footer-newsletter-intro,
.afb-footer-newsletter-form,
.afb-footer-payment,
.afb-footer-newsletter-message {
    grid-column: 1 !important;
}

.afb-footer-newsletter-intro {
    grid-row: 1 !important;
}

.afb-footer-newsletter-form {
    grid-row: 2 !important;
}

.afb-footer-newsletter-message {
    grid-row: 3 !important;
    margin-top: 0;
}

.afb-footer-payment {
    grid-row: 4 !important;
    width: 100%;
    padding-left: 0;
    border-left: 0;
}

.afb-footer-newsletter-title {
    min-width: 0;
}

.afb-footer-newsletter-title strong,
.afb-footer-newsletter-title span {
    white-space: normal;
}

.afb-footer-payment-list {
    flex-wrap: wrap;
}

    .afb-footer-benefits {
        grid-template-columns: 1fr;
        padding-left: 15px;
        padding-right: 15px;
    }

    .afb-footer-benefit {
        padding: 14px 0;
        border-bottom: 1px solid #d8e7ef;
    }

    .afb-footer-benefit:last-child {
        border-bottom: 0;
    }

    .afb-footer-concept {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        text-align: center;
    }

    .afb-footer-concept-logo {
        border-right: 0;
        border-bottom: 1px solid #1390E6;
        padding: 0 0 20px;
    }

    .afb-footer-concept-button a {
        min-width: 0;
        width: 100%;
    }

    .afb-footer-main {
        padding-left: 15px;
        padding-right: 15px;
    }

    .afb-footer-main-inner {
        grid-template-columns: 1fr;
    }

    .afb-footer-column {
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,.25);
        padding-bottom: 20px;
    }

    .afb-footer-newsletter {
        padding-left: 0;
        padding-right: 0;
    }

    .afb-footer-newsletter-form {
        display: block;
    }

    .afb-footer-newsletter-form input {
        border-radius: 4px;
    }

    .afb-footer-newsletter-form button {
        width: 100%;
        min-height: 48px;
        margin-top: 8px;
        border-radius: 4px;
    }

    .afb-footer-payment-list {
        flex-wrap: wrap;
    }

    .afb-footer-legal-links {
        display: block;
    }

    .afb-footer-legal-links a {
        display: block;
        padding: 5px 0;
        border-right: 0;
    }
}

/* newsletter message*/
.afb-footer-newsletter-message {
    grid-column: 2;
    margin-top: -15px;
    font-size: 13px;
}

@media (max-width: 767px) {
    .afb-footer-newsletter-message {
        grid-column: 1 !important;
        grid-row: 3 !important;
        margin-top: 0;
    }
}


.afb-footer-newsletter-message.success {
    color: #d8f5df;
}

.afb-footer-newsletter-message.error {
    color: #ffd0d0;
}