/*
 * Surcouche de marque BANK EUR.
 * Chargée après style.css/responsive.css : redéfinit les couleurs du thème
 * livré (qui n'utilise aucune variable CSS, juste des hex en dur).
 * Palette : vert / blanc / or (remplace le bleu marine initial).
 * Ne pas éditer style.css directement : tout se fait ici pour rester
 * facile à ajuster/retirer.
 */

:root {
    --brand-green: #0b6e4f;
    --brand-green-dark: #084d38;
    --brand-green-light: #1e9e6f;
    --brand-gold: #bb8534;
    --brand-gold-light: #d4a655;
    --brand-neutral-bg: #f7f8fa;
    --brand-border: #e4e8ee;
}

/* ---- En-tête / navigation ---- */
.header-area {
    background: var(--brand-green) !important;
}

/* Langue + connexion ajoutées au <ul> de #main-nav pour être disponibles
   dans le tiroir mobile (hc-offcanvas-nav reprend ce <ul> tel quel) : sur
   desktop, ces fonctions ont déjà leurs propres zones dans l'en-tête, donc
   on masque les doublons à partir du point où le thème bascule en menu
   plein (991px, même palier que .mobile-menu / .hc-nav-original). */
@media (min-width: 992px) {
    .mobile-only-nav-item {
        display: none !important;
    }
}

.header-menu ul li:hover > a,
.header-menu ul li ul.sub li:hover > a {
    color: var(--brand-gold-light) !important;
}

.header-menu ul li ul.sub li a {
    color: var(--brand-green) !important;
}

.header-btn a {
    background: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    transition: background .2s ease;
}

.header-btn a:hover {
    background: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
}

/* ---- Hero : slider d'arrière-plan ----
   3 diapositives en fondu enchaîné (défilement auto + puces), overlay
   sombre pour la lisibilité du texte. Tant qu'une vraie photo n'a pas été
   déposée dans public/uploads/hero/slide-N.jpg, un dégradé de marque
   (propre à chaque diapo) s'affiche à la place avec une étiquette — jamais
   d'image cassée. Logique de défilement : hero-slider.js. */
.hero-area {
    background: var(--brand-green) !important;
    position: relative;
    overflow: hidden;
    min-height: 720px;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    /* "cover" remplit toute la diapo (pas de bandes vides), avec un
       recadrage inévitable vu que l'image ne fait pas le même ratio que
       la zone. Position ancrée en haut ("top center") plutôt que centrée :
       le recadrage ne mange que le bas de l'image, jamais le haut (visages
       souvent cadrés en haut d'une photo). */
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide:nth-child(1) { background-color: var(--brand-green); }
.hero-slide:nth-child(2) { background-color: var(--brand-green-dark); }
.hero-slide:nth-child(3) { background-color: #0a5a41; }

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 35, 24, .42);
    z-index: 1;
}

.hero-slider-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .25);
    padding: 0;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.hero-slider-dot.is-active,
.hero-slider-dot:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    transform: scale(1.15);
}

@media (max-width: 767px) {
    .hero-area {
        min-height: 520px;
    }

    /* slide-2 et slide-4 montrent chacune deux visuels de carte côte à côte
       (recto + verso) sur un visuel très large (ratio ~1.9:1), sur fond
       blanc uni. Un recadrage "cover" (même avec un ancrage horizontal
       calculé précisément) reste fragile sur mobile : la hauteur réelle du
       bandeau héro varie avec la longueur du texte (donc avec la langue) et
       la largeur exacte de l'écran, deux facteurs qu'aucun pourcentage fixe
       ne peut anticiper de façon fiable — d'où un recadrage encore trop
       serré sur certains appareils malgré l'ajustement précédent.
       Pour ces deux visuels spécifiquement (pas des photos : un fond blanc
       uni, donc aucun effet de "bandes" visible), on bascule sur "contain" :
       l'image complète est toujours entièrement visible, quelle que soit la
       hauteur réellement rendue. Les slides 1 et 3 (vraies photos) restent
       en "cover" plein cadre, inchangées. */
    .hero-slide:nth-child(2),
    .hero-slide:nth-child(4) {
        background-size: contain;
        background-position: center center;
        background-color: #fff;
    }
}

/* .hero-area centre désormais son contenu verticalement (flex) : le
   padding-top:100px hérité de style.css (pensé pour l'ancienne mise en
   page à deux colonnes avec calculateur) devient redondant. */
.hero-slider-content .slider-left-content {
    padding-top: 0;
}

/* Bouton principal du Hero ("Obtenir un prêt"). Remplace l'ancien lien
   .popup, qui était câblé sur une lightbox vidéo (magnific-popup, type
   iframe) : le clic était intercepté et n'ouvrait jamais la page de
   demande de prêt — le CTA principal du site ne fonctionnait pas. */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-gold) !important;
    color: #fff !important;
    border: 1px solid var(--brand-gold) !important;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 600;
    transition: background .2s ease, transform .15s ease;
}

.hero-cta-btn:hover {
    background: var(--brand-gold-light) !important;
    border-color: var(--brand-gold-light) !important;
    transform: translateY(-1px);
    text-decoration: none;
}

.hero-cta-btn svg {
    font-size: 20px;
}

/* ---- Menu mobile (hc-offcanvas-nav.css, feuille séparée jamais
   couverte par les règles ci-dessus puisqu'elle ne partage aucun
   sélecteur avec style.css) ---- */
.hc-offcanvas-nav .nav-container,
.hc-offcanvas-nav .nav-wrapper,
.hc-offcanvas-nav ul {
    background: var(--brand-green) !important;
}

.hc-offcanvas-nav .nav-highlight,
.hc-offcanvas-nav.nav-levels-expand .nav-container li.level-open,
.hc-offcanvas-nav.nav-levels-none .nav-container li.level-open {
    background: var(--brand-green-dark) !important;
}

.hc-offcanvas-nav.nav-levels-expand .nav-container li.level-open > .nav-item-wrapper > a:hover,
.hc-offcanvas-nav.nav-levels-none .nav-container li.level-open > .nav-item-wrapper > a:hover,
.hc-offcanvas-nav:not(.touch-device) li:not(.custom-content) a:hover {
    background: var(--brand-gold) !important;
}

.hc-offcanvas-nav ul:first-of-type:not(:first-child) > li:first-child:not(.nav-back):not(.nav-close) > a,
.hc-offcanvas-nav a.nav-next,
.hc-offcanvas-nav.rtl a.nav-next {
    border-color: var(--brand-green-light) !important;
}

/* Le plugin hc-offcanvas-nav insère un lien "Fermer" dont le libellé par
   défaut ("Close", voir script.js : insertClose) n'est pas traduit et
   s'affichait en toutes lettres à côté de la croix. La croix (span avec
   ::before/::after en pixels fixes, non affectée par font-size) suffit
   amplement comme affordance de fermeture : on masque juste le texte. */
.hc-offcanvas-nav li.nav-close > a {
    font-size: 0;
}

.hc-offcanvas-nav.nav-levels-expand .nav-container li.level-open > .nav-item-wrapper > a,
.hc-offcanvas-nav.nav-levels-none .nav-container li.level-open > .nav-item-wrapper > a {
    border-bottom-color: var(--brand-green-dark) !important;
}

.hc-nav-trigger span,
.hc-nav-trigger span::before,
.hc-nav-trigger span::after {
    background: var(--brand-green) !important;
}

/* Le burger devient une croix à l'ouverture : la barre du milieu doit
   redevenir transparente, sinon le !important ci-dessus la laisse
   visible par-dessus la croix formée par ::before/::after. */
.hc-nav-trigger.toggle-open span {
    background: rgba(0, 0, 0, 0) !important;
}

/* ---- Pied de page ---- */
.footer-area {
    background: var(--brand-green) !important;
}

.footer-bottom-area {
    background: var(--brand-green-dark) !important;
}

.footer-area.footer-demo-1 .agent-social-links ul li a {
    color: var(--brand-green) !important;
    transition: background .2s ease, color .2s ease;
}

.footer-area.footer-demo-1 .agent-social-links ul li a:hover {
    background: var(--brand-gold) !important;
    color: #fff !important;
}

.footer-area.footer-demo-1 .footer-newsletter-input button {
    background: var(--brand-gold) !important;
}

.footer-newsletter-input button {
    background: var(--brand-gold) !important;
}

.footer-phone-icon svg {
    color: var(--brand-gold-light) !important;
}

.footer-bottom-content span a {
    color: var(--brand-gold-light) !important;
}

/* ---- Bannière "Get a Loan" (accueil) ----
   Fond en dégradé uni : pas de photo de substitution générique ici, pour
   que ce ne soit pas pris pour un visuel définitif. Une vraie photo
   (agence, équipe, client) peut être ajoutée en arrière-plan plus tard en
   remettant une déclaration background-image sur cette règle. */
.cta-banner-dark {
    position: relative;
    background-image: linear-gradient(115deg, var(--brand-green-dark), var(--brand-green));
}

.cta-banner-dark .section-title h4,
.cta-banner-dark .single-service h5 {
    color: #fff !important;
}

.cta-banner-dark .section-des p,
.cta-banner-dark .single-service p {
    color: rgba(255, 255, 255, .85) !important;
}

/* ---- Boutons / CTA ---- */
.calculation-checkout-btn button {
    background: var(--brand-green) !important;
    transition: background .2s ease, transform .15s ease;
}

.calculation-checkout-btn button:hover {
    background: var(--brand-gold) !important;
    transform: translateY(-1px);
}

/* Variante lien (<a>) du même bouton : style.css ne stylait que <button>,
   laissant les liens (ex. "Créer mon compte" après soumission d'une demande
   de prêt) sans fond, donc invisibles (texte blanc sur fond blanc). */
.calculation-checkout-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    padding: 0 18px;
    white-space: nowrap;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    color: #fff !important;
    background: var(--brand-green) !important;
    font-size: 15px;
    transition: background .2s ease, transform .15s ease;
}

.calculation-checkout-btn a:hover {
    background: var(--brand-gold) !important;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .calculation-checkout-btn a {
        font-size: 12px;
        padding: 0 10px;
    }
}

.counter-area {
    background-color: rgba(11, 110, 79, .08) !important;
}

.counter-number h2 {
    color: var(--brand-green) !important;
}

/* ---- Actualités / liens texte ---- */
.news-title h3,
.news-action a {
    color: var(--brand-green-light) !important;
}

/* ---- Sidebar espace client ---- */
.slidebar-nav-area ul li.nav-item.active,
.slidebar-nav-area ul li.nav-item:hover {
    background: rgba(11, 110, 79, .92) !important;
    border-left-color: var(--brand-gold) !important;
}

/* ---- Mise en valeur des visuels : cartes, images, témoignages, équipe ---- */
.news-img img,
.feedback-user-img img,
.sponser-img-photo,
.service-icon img {
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(11, 110, 79, .12);
    transition: transform .25s ease, box-shadow .25s ease;
}

.feedback-user-img img,
.sponser-img-photo {
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(11, 110, 79, .15);
}

.news-img img:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(11, 110, 79, .18);
}

.single-service,
.single-news,
.single-feedback,
.single-sponser {
    border-radius: 14px;
    transition: box-shadow .25s ease, transform .25s ease;
}

.single-news:hover,
.single-service:hover {
    box-shadow: 0 10px 28px rgba(11, 110, 79, .10);
    transform: translateY(-3px);
}

/* Badges / puces de mise en avant (ex. "8000+ clients") */
.single-counter {
    border-radius: 12px;
}

/* ---- Section "Top Investor" / équipe de direction ----
   Refonte carte : centrage propre, respiration entre les cartes empilées
   sur mobile (elles n'avaient qu'un espacement en haut, ce qui les collait
   les unes aux autres une fois en colonne unique), avatar en cercle,
   liseré doré au survol. */
.single-sponser {
    margin-top: 30px;
    margin-bottom: 10px;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid var(--brand-border);
    box-shadow: 0 10px 26px rgba(11, 110, 79, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.single-sponser:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(11, 110, 79, .16);
    border-color: var(--brand-gold);
}

.sponser-img-photo {
    width: 110px;
    height: 110px;
    background-size: cover;
    background-position: center;
    margin: 0 auto 15px;
    border: 3px solid var(--brand-neutral-bg);
}

.sponser-social-links ul li a {
    background: var(--brand-green) !important;
    transition: background .2s ease, transform .2s ease;
}

.sponser-social-links ul li a:hover {
    background: var(--brand-gold) !important;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .single-sponser {
        margin-top: 22px;
        padding: 26px 15px;
    }

    .sponser-img-photo {
        width: 90px;
        height: 90px;
    }
}

/* ---- Petites animations d'entrée au défilement ----
   Ajoutées via la classe .reveal-on-scroll posée sur les cartes dans les
   templates + scroll-reveal.js (IntersectionObserver, sans dépendance
   externe). Dégradé discret, pas d'effet agressif. */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---- Témoignages : refonte des cartes ---- */
.single-feedback {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 26px rgba(11, 110, 79, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.single-feedback:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(11, 110, 79, .14);
    border-color: var(--brand-gold);
}

.feedback-user-img img {
    box-shadow: 0 6px 18px rgba(11, 110, 79, .18);
    border: 3px solid var(--brand-neutral-bg);
}

.feedback-rating {
    margin-bottom: 16px;
}

.feedback-rating .iconify {
    font-size: 17px;
    color: var(--brand-gold);
    margin: 0 1px;
}

.feedback-des p {
    color: #4a5a52 !important;
    font-size: 16px;
    line-height: 1.7;
    font-style: italic;
}

.feedback-user-name h5 {
    font-size: 19px !important;
    font-weight: 700;
    margin-bottom: 2px;
}

.feedback-user-position p {
    font-size: 14px;
}

/* ---- Page "À propos" (inspirée de themewagon.github.io/boldo/about.html) ---- */
.about-hero-banner {
    background: var(--brand-green);
    padding: 90px 0 70px;
}

.about-hero-banner h1 {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 18px;
    margin-top: 40px;
}

.about-hero-banner p {
    color: rgba(255, 255, 255, .85);
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto;
}

.about-gallery-strip {
    margin-top: -45px;
    position: relative;
    z-index: 2;
}

.about-section-eyebrow {
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
}

.about-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-green-dark);
    margin-bottom: 14px;
}

.about-section-des {
    color: #5c6b63;
    max-width: 700px;
}

.about-numbers-area {
    background: var(--brand-green);
    padding: 70px 0;
}

.about-numbers-area p {
    color: rgba(255, 255, 255, .85);
}

.about-number {
    color: var(--brand-gold-light);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 6px;
}

.about-numbers-area .col-md-3 p {
    color: #fff;
    margin: 0;
}

.about-team-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    padding: 30px 18px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.about-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(11, 110, 79, .14);
}

.about-team-photo {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin: 0 auto 16px;
    box-shadow: 0 6px 18px rgba(11, 110, 79, .18);
}

.about-team-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-green-dark);
    margin-bottom: 4px;
}

.about-team-card p {
    font-size: 14px;
    color: #5c6b63;
    margin: 0;
}

.about-values-area {
    background: var(--brand-green-dark);
    padding: 70px 0;
    margin-bottom: 70px;
}

.about-value-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.about-value-row:last-child {
    border-bottom: none;
}

.about-value-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-value-icon .iconify {
    font-size: 26px;
    color: var(--brand-gold-light);
}

.about-value-text h3 {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
}

.about-value-text p {
    color: rgba(255, 255, 255, .8);
    margin: 0;
}

.about-cta-box {
    background: var(--brand-green);
    border-radius: 18px;
    padding: 60px 30px;
}

.about-cta-box h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .about-hero-banner {
        padding: 70px 0 50px;
    }

    .about-hero-banner h1 {
        font-size: 28px;
    }

    .about-gallery-strip {
        margin-top: 0;
    }

    .about-number {
        font-size: 32px;
    }

    .about-value-row {
        gap: 16px;
    }
}

/* ---- Emplacement réservé pour une image à ajouter manuellement ---- */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 2px dashed var(--brand-border);
    background: var(--brand-neutral-bg);
    border-radius: 14px;
    color: #8a97a3;
    text-align: center;
    padding: 20px;
}

.image-placeholder p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

/* Variante "contenue" avec ratio 3:2 (proportions d'une photo de groupe
   classique) plutôt qu'une hauteur fixe : height:auto + aspect-ratio
   calcule la hauteur à partir de la largeur disponible, donc la photo
   entière reste visible et bien proportionnée, quelle que soit la largeur
   de l'écran — pas de recadrage sévère ni d'agrandissement excessif comme
   avec un bandeau plein écran de hauteur fixe. */
.image-placeholder-contained {
    aspect-ratio: 3 / 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .image-placeholder-contained {
        aspect-ratio: 4 / 3;
    }
}

/* ---- Flèches de navigation owl-carousel (aucun style par défaut fourni
   par owl.carousel.min.css : theme non chargé) : boutons ronds verts, pour
   signaler qu'il reste des éléments à découvrir dans le carrousel.
   Volontairement EN DESSOUS du carrousel (pas en overlay centré sur la
   hauteur de la carte) : un overlay à top:50% se retrouvait au milieu du
   texte dès qu'une carte dépassait une certaine hauteur (cas fréquent sur
   mobile, où chaque carte occupe toute la largeur) -> texte chevauché par
   les boutons. Un rang de boutons sous le carrousel ne peut jamais chevaucher
   le contenu, quelle que soit la hauteur de la carte ou la longueur du texte. ---- */
.owl-carousel {
    position: relative;
}

.owl-carousel .owl-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-green) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(11, 110, 79, .3);
    transition: background .2s ease, transform .2s ease;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--brand-gold) !important;
    transform: scale(1.08);
}

.owl-carousel .owl-nav button.disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 767px) {
    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ---- Cartes de service de hauteur égale dans le carrousel : sans ça,
   des descriptions de longueurs différentes (selon la langue ou le
   service) donnaient des cartes de hauteurs inégales et un bouton "En
   savoir plus" qui ne s'alignait pas d'une carte à l'autre. ---- */
#service.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

#service.owl-carousel .owl-item {
    display: flex;
    height: auto;
}

#service.owl-carousel .owl-item > div {
    display: flex;
    width: 100%;
}

#service .single-service {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#service .service-des {
    flex: 1;
}

#service .service-action {
    margin-top: auto;
}

@media (max-width: 767px) {
    #service .single-service {
        padding: 34px 20px;
    }
}

/* ---- Garde-fous responsive : pas de scroll horizontal, images fluides ---- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container, .container-fluid {
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* ---- Passe mobile générale ----
   Le thème d'origine garde le même padding vertical (100px, via les
   classes utilitaires .pt-100/.pb-100) et les mêmes tailles de police sur
   TOUTES les tailles d'écran — d'où un rendu mobile trop aéré, avec des
   titres disproportionnés et un calculateur de prêt du Hero qui déborde
   (bouton de devise à 50px de marge + police 21px dans un champ étroit).
   Un seul point de rupture (767px) couvre les deux paliers "small mobile"
   et "mobile" déjà définis dans responsive.css, pour un résultat cohérent
   plutôt que des correctifs épars par taille d'écran. */
@media (max-width: 767px) {
    .pt-100 { padding-top: 60px !important; }
    .pb-100 { padding-bottom: 60px !important; }
    .pt-150 { padding-top: 90px !important; }
    .mb-100 { margin-bottom: 60px !important; }

    .section-title h4 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .section-des p {
        font-size: 15px !important;
    }

    .slider-left-content h2 {
        font-size: 26px !important;
        line-height: 1.35 !important;
    }

    .slider-left-content {
        padding-top: 50px !important;
    }

    /* Calculateur de prêt (Hero) : le padding-top de 100px d'origine
       s'ajoutait à celui du Hero lui-même, créant un grand vide avant le
       widget une fois empilé sous le texte. */
    .payment-calculation {
        padding-top: 25px !important;
    }

    .money-currency a {
        padding: 0 18px !important;
        font-size: 15px !important;
    }

    .money-input-field input {
        font-size: 17px !important;
        padding-top: 22px !important;
    }

    .hero-cta-btn {
        padding: 13px 28px !important;
    }

    /* Cartes : padding resserré pour ne pas gaspiller la largeur réduite */
    .single-how-it-works {
        padding: 30px 18px !important;
    }

    .single-sponser {
        padding: 24px 16px !important;
    }

    .footer-area {
        padding: 60px 0 !important;
    }

    .footer-left-area,
    .footer-menu {
        margin-bottom: 40px !important;
    }

    .calculation-checkout-btn button {
        height: 56px !important;
        font-size: 16px !important;
    }

    /* Évite qu'un titre de section pousse le bouton du CTA "Get a Loan"
       hors de l'écran faute d'espace vertical suffisant entre les blocs
       empilés. */
    .cta-banner-dark .section-title,
    .cta-banner-dark .section-des {
        margin-bottom: 12px;
    }
}

@media (max-width: 400px) {
    .slider-left-content h2 {
        font-size: 22px !important;
    }

    .money-currency a {
        padding: 0 12px !important;
    }

    .money-currency a span {
        font-size: 13px;
    }
}
