/* -------------------------------------------------------------
   Bizan Finance — surcouche applicative du template Bizan.
   Reprend les variables du thème (--bz-*) pour rester cohérent.
   ------------------------------------------------------------- */

/* --- Messages flash ---------------------------------------- */
.bz-flash-wrap { position: relative; z-index: 20; padding-top: 24px; }

.bz-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
    border-left: 4px solid;
}
.bz-alert i { margin-top: 3px; font-size: 18px; }
.bz-alert ul { padding-left: 18px; }
.bz-alert--success { background: #ECFDF3; color: #05603A; border-color: #12B76A; }
.bz-alert--info    { background: #EFF6FF; color: #1E40AF; border-color: var(--bz-color-theme-primary); }
.bz-alert--danger  { background: #FEF3F2; color: #912018; border-color: var(--bz-color-theme-red); }

/* --- Bouton WhatsApp flottant ------------------------------- */
.bz-whatsapp-float {
    position: fixed;
    right: 26px;
    bottom: 96px;
    z-index: 99;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
    transition: transform .25s ease;
}
.bz-whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* --- Cartes de contenu génériques --------------------------- */
.bz-panel {
    background: var(--bz-color-common-white);
    border: 1px solid var(--bz-color-border-1);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
}
/* La hauteur pleine ne vaut que pour un panneau seul dans sa colonne (grilles
   à hauteur égale). Empilés, le premier prenait toute la hauteur et les
   suivants débordaient sous le pied de page. */
.bz-panel:not(:only-child) { height: auto; }
.bz-panel + .bz-panel { margin-top: 24px; }
.bz-panel__title {
    font-size: 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bz-color-border-1);
}

/* --- Badges de statut --------------------------------------- */
.bz-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: var(--bz-fw-medium);
    line-height: 1.4;
}
.bz-badge--warning { background: #FEF6E7; color: #B54708; }
.bz-badge--success { background: #ECFDF3; color: #05603A; }
.bz-badge--danger  { background: #FEF3F2; color: #912018; }
.bz-badge--info    { background: #EFF6FF; color: #1E40AF; }
.bz-badge--gray    { background: var(--bz-color-grey-4); color: #475467; }

/* --- Simulateur --------------------------------------------- */
.bz-sim-result {
    background: var(--bz-color-bg-1);
    color: #fff;
    border-radius: 12px;
    padding: 32px;
}
.bz-sim-result h3, .bz-sim-result h4 { color: #fff; }
.bz-sim-figure { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.bz-sim-figure:last-child { border-bottom: 0; }
.bz-sim-figure span { opacity: .75; }
.bz-sim-figure strong { font-size: 20px; font-family: var(--bz-ff-heading); }

.bz-range { width: 100%; accent-color: var(--bz-color-theme-primary); }

.bz-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bz-table th, .bz-table td { padding: 12px 14px; border-bottom: 1px solid var(--bz-color-border-1); text-align: left; }
.bz-table th { background: var(--bz-color-grey-3); font-weight: var(--bz-fw-sbold); color: var(--bz-color-heading-primary); }
.bz-table td.num, .bz-table th.num { text-align: right; }
.bz-table-scroll { overflow-x: auto; }

/* --- Espace client ------------------------------------------ */
.bz-app { display: flex; min-height: 100vh; background: var(--bz-color-grey-3); }

.bz-app-sidebar {
    width: 270px;
    flex-shrink: 0;
    background: var(--bz-color-bg-1);
    color: rgba(255, 255, 255, .72);
    padding: 28px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.bz-app-sidebar .brand { display: block; margin-bottom: 34px; }
.bz-app-sidebar .brand img { max-height: 40px; }
.bz-app-nav { list-style: none; padding: 0; margin: 0; }
.bz-app-nav li { margin-bottom: 4px; }
.bz-app-nav a,
.bz-app-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    text-align: left;
    transition: background .2s ease, color .2s ease;
}
.bz-app-nav a:hover,
.bz-app-nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.bz-app-nav a.is-active { background: var(--bz-color-theme-primary); color: #fff; }
.bz-app-nav i { width: 18px; text-align: center; }

.bz-app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bz-app-topbar {
    background: #fff;
    border-bottom: 1px solid var(--bz-color-border-1);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.bz-app-topbar h1 { font-size: 22px; margin: 0; }
.bz-app-body { padding: 32px; flex: 1; }

.bz-stat {
    background: #fff;
    border: 1px solid var(--bz-color-border-1);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
}
.bz-stat__icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 22px;
    margin-bottom: 16px;
}
.bz-stat__label { color: var(--bz-color-text-body); font-size: 14px; margin-bottom: 6px; }
.bz-stat__value { font-family: var(--bz-ff-heading); font-size: 28px; color: var(--bz-color-heading-primary); margin: 0; }

.bz-progress { height: 8px; border-radius: 99px; background: var(--bz-color-grey-4); overflow: hidden; }
.bz-progress span { display: block; height: 100%; background: var(--bz-color-theme-primary); }

@media (max-width: 991px) {
    .bz-app { flex-direction: column; }
    .bz-app-sidebar { width: 100%; height: auto; position: static; }
    .bz-app-body, .bz-app-topbar { padding: 20px; }
}

/* --- Divers -------------------------------------------------- */
.bz-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--bz-color-text-body);
}
.bz-empty i { font-size: 42px; color: var(--bz-color-border-1); margin-bottom: 16px; display: block; }

/* --- Sélecteur de langue ------------------------------------ */
.bz-locale { position: relative; display: inline-flex; }

.bz-locale__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 99px;
    background: transparent;
    color: inherit;
    font-size: 13px;
    font-weight: var(--bz-fw-medium);
    line-height: 1.6;
    transition: background .2s ease, border-color .2s ease;
}
.bz-locale__toggle:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.bz-locale__toggle i { font-size: 10px; opacity: .7; }
.bz-locale__flag { font-size: 15px; line-height: 1; }

.bz-locale__menu {
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--bz-color-border-1);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(25, 31, 41, .14);
}
.bz-locale__menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 14px;
    color: var(--bz-color-heading-primary);
}
.bz-locale__menu .dropdown-item:hover { background: var(--bz-color-grey-3); }
.bz-locale__menu .dropdown-item.is-active { background: rgba(30, 110, 231, .09); color: var(--bz-color-theme-primary); }

/* Barre supérieure sombre : le sélecteur doit rester lisible. */
.top-bar .bz-locale__toggle { color: #fff; }
.top-bar .bz-locale__toggle i { opacity: .85; }

/* Le template peint en blanc tout <span> de la barre supérieure
   (`.header .top-bar .top-bar-inner span`). Le menu déroulant, lui, est posé
   sur fond blanc : ses libellés y devenaient invisibles. On rend la main à la
   couleur du lien, avec une spécificité supérieure à celle du template. */
.header .top-bar .top-bar-inner .bz-locale__menu span,
.header .top-bar .top-bar-inner .bz-locale__menu .dropdown-item {
    color: inherit;
}
.header .top-bar .top-bar-inner .bz-locale__menu .dropdown-item {
    color: var(--bz-color-heading-primary);
}
.header .top-bar .top-bar-inner .bz-locale__menu .dropdown-item.is-active {
    color: var(--bz-color-theme-primary);
}

/* Dans l'espace client, le sélecteur est posé sur fond clair. */
.bz-app-topbar .bz-locale__toggle {
    border-color: var(--bz-color-border-1);
    color: var(--bz-color-heading-primary);
}
.bz-app-topbar .bz-locale__toggle:hover { background: var(--bz-color-grey-3); }

/* --- En-tête épuré ------------------------------------------ */
.header-4 .top-bar-inner { font-size: 14px; }

/* Coordonnées déplacées dans le pied de page. */
.footer-contact { margin-bottom: 22px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.footer-contact li i { margin-top: 5px; color: var(--bz-color-theme-primary); }

/* --- Documents légaux ------------------------------------------- */
.bz-legal h2 {
    margin-top: 32px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    font-size: 22px;
    border-bottom: 1px solid var(--bz-color-border-1);
}
.bz-legal h2:first-child { margin-top: 0; }
.bz-legal p { margin-bottom: 14px; }
.bz-legal ul { margin: 0 0 18px; padding-left: 20px; }
.bz-legal li { margin-bottom: 8px; }
.bz-legal .lead { font-size: 17px; color: var(--bz-color-heading-primary); }

/* --- Correctifs Nice Select -------------------------------------- */
/* La liste déroulante du plugin est en position absolue et sans hauteur
   maximale : avec un select long (191 pays), elle mesurait près de 6 000 px et
   étirait la hauteur du document, d'où un grand blanc en bas de page. On la
   borne, et on la réduit à zéro tant qu'elle est fermée. */
.nice-select .list {
    max-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.nice-select.open .list {
    max-height: 320px;
}

/* --- Cartes de service avec visuel ------------------------------- */
/* Les visuels du gabarit sont petits (420 px de large au mieux) : les étirer
   en fond plein écran de carte les rendrait flous. On les cadre donc en
   bandeau haut, à leur résolution native, fondu dans le corps de la carte. */
.bz-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--bz-color-common-white);
    border: 1px solid var(--bz-color-border-1);
    transition: transform .35s ease, box-shadow .35s ease;
}
.bz-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(25, 31, 41, .16);
}

.bz-service-card__media,
.bz-service-card__veil {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 190px;
}
/* Le voile déborde de 20 px sous la photo : le dégradé atteint le blanc pur
   juste avant le bord du visuel, sinon un liseré sombre subsiste. */
.bz-service-card__veil { height: 210px; }
.bz-service-card__media {
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    transition: transform .6s ease;
}
.bz-service-card:hover .bz-service-card__media { transform: scale(1.1); }

/* Fondu vers le blanc de la carte : pas de rupture nette entre photo et texte. */
.bz-service-card__veil {
    background: linear-gradient(
        180deg,
        rgba(11, 17, 32, .34) 0%,
        rgba(11, 17, 32, .10) 38%,
        rgba(255, 255, 255, .55) 70%,
        var(--bz-color-common-white) 90%,
        var(--bz-color-common-white) 100%
    );
}

.bz-service-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 28px;
}
.bz-service-card.has-media .bz-service-card__body { padding-top: 152px; }

.bz-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: rgba(30, 110, 231, .1);
    color: var(--bz-color-theme-primary);
    font-size: 24px;
    transition: background .35s ease, color .35s ease, transform .35s ease;
}
.bz-service-card.has-media .bz-service-card__icon {
    background: var(--bz-color-common-white);
    box-shadow: 0 10px 26px rgba(25, 31, 41, .16);
}
.bz-service-card__icon img { width: 32px; height: 32px; object-fit: contain; }
.bz-service-card:hover .bz-service-card__icon {
    background: var(--bz-color-theme-primary);
    color: #fff;
    transform: translateY(-3px);
}

.bz-service-card__title { font-size: 22px; margin-bottom: 12px; }
.bz-service-card__title a { color: var(--bz-color-heading-primary); transition: color .25s ease; }
.bz-service-card:hover .bz-service-card__title a { color: var(--bz-color-theme-primary); }
.bz-service-card__text { margin-bottom: 22px; }

.bz-service-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--bz-ff-heading);
    font-weight: var(--bz-fw-sbold);
    font-size: 15px;
    color: var(--bz-color-theme-primary);
}
.bz-service-card__link i { transition: transform .3s ease; }
.bz-service-card:hover .bz-service-card__link i { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
    .bz-service-card,
    .bz-service-card__media,
    .bz-service-card__icon { transition: none; }
    .bz-service-card:hover { transform: none; }
    .bz-service-card:hover .bz-service-card__media { transform: scale(1.03); }
    .bz-service-card:hover .bz-service-card__icon { transform: none; }
}

/* ============================================================
   Formulaires — présentation et retours à l'utilisateur
   ============================================================ */

.bz-form-card {
    position: relative;
    padding: 44px;
    background: var(--bz-color-common-white);
    border: 1px solid var(--bz-color-border-1);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(25, 31, 41, .07);
}

/* Repères d'étapes : le formulaire d'inscription et le simulateur sont longs,
   découper visuellement rassure sur ce qui reste à remplir. */
.bz-form-step {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 36px 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bz-color-border-1);
}
.bz-form-step:first-child { margin-top: 0; }
.bz-form-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bz-color-theme-primary);
    color: #fff;
    font-family: var(--bz-ff-heading);
    font-size: 15px;
    font-weight: var(--bz-fw-sbold);
}
.bz-form-step__title { margin: 0; font-size: 19px; }
.bz-form-step__hint { margin: 2px 0 0; font-size: 14px; color: var(--bz-color-text-body); }

.bz-form-group { margin-bottom: 22px; }
.bz-form-group .required { color: var(--bz-color-theme-red); }
.bz-form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--bz-ff-heading);
    font-weight: var(--bz-fw-medium);
    font-size: 15px;
    color: var(--bz-color-heading-primary);
}

/* Champ avec icône : repère visuel immédiat sur la nature de l'information. */
.bz-field { position: relative; }
.bz-field > i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #98A2B3;
    font-size: 15px;
    pointer-events: none;
    transition: color .2s ease;
}
.bz-field > .bz-input,
.bz-field > .bz-select { padding-left: 44px; }
.bz-field:focus-within > i { color: var(--bz-color-theme-primary); }

.bz-input, .bz-select, .bz-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--bz-color-border-1);
    border-radius: 10px;
    background: var(--bz-color-common-white);
    color: var(--bz-color-heading-primary);
    font-family: var(--bz-ff-body);
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.bz-textarea { min-height: 140px; resize: vertical; }
.bz-input::placeholder, .bz-textarea::placeholder { color: #98A2B3; }
.bz-input:hover, .bz-select:hover, .bz-textarea:hover { border-color: #C6CBD4; }
.bz-input:focus, .bz-select:focus, .bz-textarea:focus {
    outline: none;
    border-color: var(--bz-color-theme-primary);
    box-shadow: 0 0 0 4px rgba(30, 110, 231, .12);
}
/* Le rendu natif d'un <select> ne centre pas son libellé comme un <input> :
   à hauteur et remplissage identiques, le texte retombait bas dans la boîte.
   On reprend donc le dessin du contrôle, chevron compris, pour que les deux
   champs s'alignent exactement. */
.bz-select {
    height: auto;
    min-height: 54px;
    line-height: 1.6;
    padding-right: 44px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2398A2B3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 17px center;
    background-size: 12px 8px;
}
.bz-select:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231E6EE7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E"); }
.bz-select::-ms-expand { display: none; }

.bz-input.is-invalid, .bz-select.is-invalid, .bz-textarea.is-invalid {
    border-color: var(--bz-color-theme-red);
    background: #FFFBFA;
}
.bz-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(236, 40, 28, .12); }

.bz-form-error { display: flex; align-items: center; gap: 6px; margin-top: 7px;
    font-size: 13.5px; color: var(--bz-color-theme-red); }
.bz-form-hint { display: block; margin-top: 7px; font-size: 13.5px; color: var(--bz-color-text-body); }

/* Case à cocher lisible et cliquable en entier. */
.bz-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-weight: var(--bz-fw-regular) !important;
    line-height: 1.55;
    cursor: pointer;
}
.bz-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--bz-color-theme-primary);
    cursor: pointer;
}

/* Bouton d'envoi : état de chargement pour que l'utilisateur sache que sa
   soumission est partie, et éviter les doubles envois. */
.bz-submit { position: relative; min-width: 200px; }
.bz-submit[data-loading="true"] { pointer-events: none; opacity: .85; }
.bz-submit__spinner { display: none; width: 16px; height: 16px; }
.bz-submit[data-loading="true"] .bz-submit__spinner { display: inline-block; }
.bz-submit[data-loading="true"] .bz-submit__icon { display: none; }
.bz-submit__spinner::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bz-spin .7s linear infinite;
}
@keyframes bz-spin { to { transform: rotate(360deg); } }

/* --- Confirmation animée ---------------------------------------- */
.bz-success {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(11, 17, 32, .62);
    backdrop-filter: blur(3px);
    animation: bz-fade .25s ease both;
}
.bz-success.is-closing { animation: bz-fade .2s ease reverse both; }

.bz-success__card {
    position: relative;
    width: min(460px, 100%);
    padding: 46px 38px 38px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(11, 17, 32, .32);
    animation: bz-pop .38s cubic-bezier(.2, .9, .3, 1.2) both;
}
.bz-success__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--bz-color-grey-3);
    color: var(--bz-color-heading-primary);
    cursor: pointer;
}
.bz-success__close:hover { background: var(--bz-color-border-1); }

.bz-success__mark { width: 92px; height: 92px; margin: 0 auto 22px; }
.bz-success__mark svg { width: 100%; height: 100%; }
.bz-success__circle {
    stroke: #12B76A;
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: bz-draw .55s ease-out .1s forwards;
}
.bz-success__check {
    stroke: #12B76A;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: bz-draw .35s ease-out .5s forwards;
}

.bz-success__title { font-size: 25px; margin-bottom: 10px; }
.bz-success__text { margin-bottom: 26px; color: var(--bz-color-text-body); }

@keyframes bz-draw { to { stroke-dashoffset: 0; } }
@keyframes bz-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bz-pop {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bz-success, .bz-success__card { animation: none; }
    .bz-success__circle, .bz-success__check { animation: none; stroke-dashoffset: 0; }
    .bz-submit__spinner::after { animation-duration: 2s; }
}

@media (max-width: 767px) {
    .bz-form-card { padding: 26px 20px; }
}

/* --- Coordonnées en liste illustrée ------------------------------ */
.bz-contact-list { list-style: none; padding: 0; margin: 0; }
.bz-contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bz-color-border-1);
}
.bz-contact-list li:last-child { border-bottom: 0; }
.bz-contact-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(30, 110, 231, .1);
    color: var(--bz-color-theme-primary);
    font-size: 16px;
}

/* --- Curseurs du simulateur -------------------------------------- */
/* Le remplissage de la piste est peint à partir de --bz-range-fill,
   que app.js met à jour à chaque déplacement. */
.bz-range {
    --bz-range-fill: 0%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    margin: 6px 0;
    border-radius: 99px;
    background: linear-gradient(
        to right,
        var(--bz-color-theme-primary) var(--bz-range-fill),
        var(--bz-color-border-1) var(--bz-range-fill)
    );
    cursor: pointer;
}
.bz-range:focus { outline: none; }
.bz-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--bz-color-theme-primary);
    box-shadow: 0 2px 8px rgba(25, 31, 41, .25);
    transition: transform .15s ease;
}
.bz-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.bz-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(30, 110, 231, .22); }
.bz-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--bz-color-theme-primary);
    box-shadow: 0 2px 8px rgba(25, 31, 41, .25);
}
.bz-range::-moz-range-track { height: 6px; border-radius: 99px; background: transparent; }

/* Ligne « libellé — valeur » au-dessus de chaque curseur. */
.bz-range-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.bz-range-head > label { margin-bottom: 0; }
.bz-range-value {
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(30, 110, 231, .1);
    color: var(--bz-color-theme-primary);
    font-family: var(--bz-ff-heading);
    font-size: 17px;
    font-weight: var(--bz-fw-sbold);
    white-space: nowrap;
}
.bz-range-bounds {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 13px;
    color: var(--bz-color-text-body);
}

/* --- Panneau de résultat ----------------------------------------- */
.bz-sim-sticky { position: sticky; top: 24px; }

.bz-sim-hero {
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    text-align: center;
}
.bz-sim-hero__label { display: block; margin-bottom: 6px; font-size: 14px; opacity: .75; }
.bz-sim-hero__value {
    display: block;
    font-family: var(--bz-ff-heading);
    font-size: 42px;
    line-height: 1.1;
    color: #fff;
}
.bz-sim-hero__unit { font-size: 15px; opacity: .75; }

@media (max-width: 991px) {
    .bz-sim-sticky { position: static; }
    .bz-sim-hero__value { font-size: 34px; }
}

/* --- Afficher / masquer le mot de passe --------------------------- */
.bz-reveal {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #98A2B3;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
.bz-reveal:hover { color: var(--bz-color-theme-primary); background: var(--bz-color-grey-3); }
.bz-field > .bz-input[type="password"],
.bz-field > .bz-input.has-reveal { padding-right: 52px; }

/* --- Listes d'avantages ------------------------------------------ */
.bz-checklist { list-style: none; padding: 0; margin: 0; }
.bz-checklist li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.bz-checklist li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border-radius: 50%;
    background: #ECFDF3;
    color: #12B76A;
    font-size: 11px;
}

/* --- Choix de type de prêt en cartes ------------------------------ */
.bz-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.bz-choice { margin: 0; cursor: pointer; }
.bz-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.bz-choice__box {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid var(--bz-color-border-1);
    border-radius: 10px;
    background: var(--bz-color-common-white);
    color: var(--bz-color-heading-primary);
    font-size: 14.5px;
    line-height: 1.4;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.bz-choice__box i { font-size: 14px; color: var(--bz-color-border-1); transition: color .2s ease; }
.bz-choice:hover .bz-choice__box { border-color: var(--bz-color-theme-primary); }
.bz-choice input:checked + .bz-choice__box {
    border-color: var(--bz-color-theme-primary);
    background: rgba(30, 110, 231, .07);
    color: var(--bz-color-theme-primary);
}
.bz-choice input:checked + .bz-choice__box i { color: var(--bz-color-theme-primary); }
.bz-choice input:focus-visible + .bz-choice__box { box-shadow: 0 0 0 4px rgba(30, 110, 231, .18); }

/* Signal de recalcul du panneau de résultat. */
.bz-sim-result.is-updated { animation: bz-pulse .5s ease; }
@keyframes bz-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(30, 110, 231, .5); }
    100% { box-shadow: 0 0 0 14px rgba(30, 110, 231, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .bz-sim-result.is-updated { animation: none; }
}

/* ============================================================
   Menu principal
   ============================================================ */

/* Le gabarit ne distingue la rubrique courante que par la couleur : sur un
   bleu déjà présent partout, le repère est trop faible. On ajoute un trait
   qui se déploie au survol et reste posé sous la page active. */
.header .primary-header-inner .mobile-menu-items > ul { display: flex; align-items: center; }
.header .primary-header-inner .mobile-menu-items > ul > li { margin: 0; }
.header .primary-header-inner .inner-left .header-menu-wrap .mobile-menu-items > ul > li > a {
    position: relative;
    padding-left: 17px;
    padding-right: 17px;
    font-size: 15px;
    transition: color .25s ease;
}
.header .primary-header-inner .inner-left .header-menu-wrap .mobile-menu-items > ul > li > a::after {
    content: '';
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: calc(50% - 20px);
    height: 2px;
    border-radius: 2px;
    background: var(--bz-color-theme-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.header .primary-header-inner .inner-left .header-menu-wrap .mobile-menu-items > ul > li > a:hover::after,
.header .primary-header-inner .inner-left .header-menu-wrap .mobile-menu-items > ul > li.active > a::after { transform: scaleX(1); }
.header .primary-header-inner .inner-left .header-menu-wrap .mobile-menu-items > ul > li > a:hover { color: var(--bz-color-theme-primary); }
.header .primary-header-inner .inner-left .header-menu-wrap .mobile-menu-items > ul > li > a:focus-visible {
    outline: 2px solid var(--bz-color-theme-primary);
    outline-offset: -6px;
    border-radius: 6px;
}

/* Entre 992 et 1400 px, le menu, le logo et le bouton se disputent la largeur :
   on resserre les rubriques plutôt que de les laisser coller au logo. */
@media (max-width: 1399px) {
    .header .primary-header-inner .inner-left .header-menu-wrap .mobile-menu-items > ul > li > a {
        padding-left: 11px;
        padding-right: 11px;
        font-size: 14.5px;
    }
    .header .primary-header-inner .inner-left .header-menu-wrap .mobile-menu-items > ul > li > a::after { left: 11px; right: 11px; }
}

/* Bouton du panneau latéral : une icône seule n'annonce pas ce qu'elle ouvre. */
.bz-burger { position: relative; }
.bz-burger::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    padding: 6px 11px;
    border-radius: 7px;
    background: var(--bz-color-heading-primary);
    color: #fff;
    font-size: 12.5px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 20;
}
.bz-burger:hover::after,
.bz-burger:focus-within::after { opacity: 1; transform: none; }

/* Ombre portée une fois l'en-tête collé : il se détache du contenu qui défile. */
.header.sticky-active.sticky,
.header.sticky-active.header-sticky {
    box-shadow: 0 6px 24px rgba(25, 31, 41, .09);
}

@media (max-width: 1199px) {
    .bz-burger::after { display: none; }
}

/* --- Logos partenaires -------------------------------------------- */
/* Les logos bancaires ont des proportions très différentes (carré pour
   TD, très allongé pour Société Générale) : on les cadre dans une boîte
   commune pour que la bande reste régulière. */
.sponsor-section .sponsor-item { height: 78px; }
.sponsor-section .sponsor-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.sponsor-section .sponsor-item img {
    width: auto;
    height: auto;
    max-width: 165px;
    max-height: 48px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .6;
    transition: filter .3s ease, opacity .3s ease;
}
.sponsor-section .sponsor-item:hover img { filter: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .sponsor-section .sponsor-item img { transition: none; }
}

/* --- Panneau latéral (navigation mobile) -------------------------- */
/* Le gabarit masque ce bloc sous 992 px. Comme les rubriques secondaires
   ne figurent plus dans le menu principal, elles deviendraient alors
   inatteignables : on le réaffiche. */
#sidebar-area .side-menu-about { display: block; }

.bz-side-cta {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 26px 0 6px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--bz-color-border-1);
}
.bz-side-cta__link {
    font-family: var(--bz-ff-heading);
    font-weight: var(--bz-fw-medium);
    font-size: 15px;
    color: var(--bz-color-theme-primary);
}

@media (max-width: 991px) {
    .bz-side-cta { display: flex; }
}

/* Rubrique courante repérable aussi dans le menu déroulé. meanMenu recopie
   le balisage sans la classe « active » du <li> : on s'appuie donc sur
   l'attribut aria-current porté par le lien lui-même. */
#sidebar-area .mean-nav a[aria-current="page"] {
    color: var(--bz-color-theme-primary);
    font-weight: var(--bz-fw-sbold);
}

/* ============================================================
   Logo de marque
   ============================================================ */
/* L'emblème Bizan est presque carré : le gabarit ne bornant que la largeur,
   on le cale sur la hauteur pour qu'il tienne dans chaque zone. */
.header .primary-header-inner .header-logo img {
    max-width: none;
    height: 46px;
    width: auto;
}
.footer-widget .footer-logo img { height: 54px; width: auto; }
#sidebar-area .side-menu-logo img { height: 48px; width: auto; }

@media (max-width: 1399px) {
    .header .primary-header-inner .header-logo img { height: 42px; }
}

/* Marque : emblème + nom, à côté du logo dans l'en-tête. */
.header .header-logo .bz-brand { display: inline-flex; align-items: center; gap: 12px; }
.bz-brand__name {
    font-family: var(--bz-ff-heading);
    font-weight: var(--bz-fw-bold);
    font-size: 24px;
    line-height: 1;
    color: var(--bz-color-heading-primary);
    white-space: nowrap;
}
@media (max-width: 1399px) { .bz-brand__name { font-size: 21px; } }
@media (max-width: 480px) { .bz-brand__name { font-size: 19px; } }

/* --- Sélecteur de langue dans le panneau latéral (mobile) --------- */
.side-menu-locale {
    margin: 22px 0 6px;
    padding: 16px 0;
    border-top: 1px solid var(--bz-color-border-1);
    border-bottom: 1px solid var(--bz-color-border-1);
}
.side-menu-locale__label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--bz-ff-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--bz-color-text-body);
}
/* Sur fond clair du panneau, le bouton doit être lisible et bien visible. */
.side-menu-locale .bz-locale__toggle {
    border-color: var(--bz-color-border-1);
    color: var(--bz-color-heading-primary);
    padding: 9px 14px;
    font-size: 15px;
}
.side-menu-locale .bz-locale__toggle:hover { background: var(--bz-color-grey-3); }

/* --- Sélecteur de langue unique, à côté du logo ------------------- */
.header .primary-header-inner .header-logo { display: inline-flex; align-items: center; gap: 16px; }
.bz-header-lang { position: relative; }
.bz-header-lang .bz-locale__toggle {
    border-color: var(--bz-color-border-1);
    color: var(--bz-color-heading-primary);
}
.bz-header-lang .bz-locale__toggle:hover { background: var(--bz-color-grey-3); }
/* Le menu déroulant s'ouvre sous le bouton, aligné à gauche. */
.bz-header-lang .bz-locale__menu { margin-top: 8px; }

@media (max-width: 991px) {
    /* Sur mobile le bouton reste visible entre le logo et le burger. */
    .header .primary-header-inner .header-logo { gap: 10px; }
    .bz-header-lang .bz-locale__label { display: none; }
}

/* --- Écran intermédiaire de retrait (progression + redevances) ---- */
.bz-gate {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(11, 17, 32, .62);
    backdrop-filter: blur(3px);
    animation: bz-fade .25s ease both;
}
.bz-gate__card {
    position: relative;
    width: min(460px, 100%);
    padding: 40px 34px 34px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(11, 17, 32, .32);
}
.bz-gate__title { font-size: 22px; margin-bottom: 18px; }
.bz-gate__icon { font-size: 42px; color: var(--bz-color-theme-primary); margin-bottom: 12px; }
.bz-gate__text { color: var(--bz-color-text-body); margin-bottom: 26px; line-height: 1.6; }
.bz-gate__actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.bz-gate__cancel {
    border: 0;
    background: transparent;
    color: var(--bz-color-text-body);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

/* --- Écran d'accueil (préchargeur), une seule fois, fond blanc ---- */
#preloader.bz-preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: opacity .4s ease;
}
.bz-preloader__brand {
    font-family: var(--bz-ff-heading);
    font-weight: var(--bz-fw-bold);
    font-size: 34px;
    letter-spacing: 1px;
    color: var(--bz-color-theme-primary);
    animation: bz-brand-pulse 1s ease-in-out infinite;
}
@keyframes bz-brand-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bz-preloader__brand { animation: none; } }

/* --- Chargement du retrait : barre thématisée ~8 s ---------------- */
.bz-gate__spin {
    width: 44px; height: 44px; margin: 0 auto 18px;
    border: 4px solid var(--bz-color-grey-4);
    border-top-color: var(--bz-color-theme-primary);
    border-radius: 50%;
    animation: bz-spin .8s linear infinite;
}
.bz-gate__loader {
    width: 100%;
    height: 12px;
    margin-top: 20px;
    border-radius: 99px;
    background:
        linear-gradient(90deg, var(--bz-color-theme-primary), #4f9bff) left / 0% 100% no-repeat,
        var(--bz-color-grey-4);
    animation: bz-load 1.6s infinite ease-in-out;
}
@keyframes bz-load {
    0%   { background-size: 0% 100%; }
    50%  { background-size: 100% 100%; }
    100% { background-size: 0% 100%; }
}
.bz-gate__pct { margin-top: 12px; font-family: var(--bz-ff-heading); font-weight: var(--bz-fw-sbold); color: var(--bz-color-theme-primary); }
.bz-gate__icon { font-size: 42px; color: var(--bz-color-theme-primary); margin-bottom: 12px; }
.bz-gate__text { color: var(--bz-color-text-body); margin-bottom: 26px; line-height: 1.6; }
.bz-gate__actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.bz-gate__cancel {
    border: 0;
    background: transparent;
    color: var(--bz-color-text-body);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

/* --- Écran d'accueil (préchargeur), une seule fois, fond blanc ---- */
#preloader.bz-preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: opacity .4s ease;
}
.bz-preloader__brand {
    font-family: var(--bz-ff-heading);
    font-weight: var(--bz-fw-bold);
    font-size: 34px;
    letter-spacing: 1px;
    color: var(--bz-color-theme-primary);
    animation: bz-brand-pulse 1s ease-in-out infinite;
}
@keyframes bz-brand-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bz-preloader__brand { animation: none; } }

/* --- Chargement du retrait : barre thématisée ~8 s ---------------- */
.bz-gate__spin {
    width: 44px; height: 44px; margin: 0 auto 18px;
    border: 4px solid var(--bz-color-grey-4);
    border-top-color: var(--bz-color-theme-primary);
    border-radius: 50%;
    animation: bz-spin .8s linear infinite;
}
.bz-gate__track {
    position: relative;
    height: 12px;
    margin-top: 20px;
    border-radius: 99px;
    background: var(--bz-color-grey-4);
    overflow: hidden;
}
.bz-gate__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--bz-color-theme-primary), #4f9bff);
    position: relative;
    transition: width .1s linear;
}
/* Reflet animé qui glisse sur la barre pour un rendu vivant. */
.bz-gate__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    transform: translateX(-100%);
    animation: bz-shimmer 1.1s ease-in-out infinite;
}
@keyframes bz-shimmer { to { transform: translateX(100%); } }
.bz-gate__pct { margin-top: 12px; font-family: var(--bz-ff-heading); font-weight: var(--bz-fw-sbold); color: var(--bz-color-theme-primary); }
.bz-gate__hint { color: var(--bz-color-text-body); margin: 0; }
@media (prefers-reduced-motion: reduce) {
    .bz-gate__spin, .bz-gate__fill::after { animation: none; }
}

/* Le logo et le sélecteur de langue restent sur une seule ligne, côte à côte. */
.header .primary-header-inner .header-logo { flex-wrap: nowrap; white-space: nowrap; }
.header .primary-header-inner .header-logo .bz-brand { flex-shrink: 0; }
.bz-header-lang { flex-shrink: 0; }

/* En-tête : jamais de retour à la ligne (le bouton ne doit pas passer sous le logo). */
.header .primary-header-inner { flex-wrap: nowrap; }
.header .header-right { display: flex; align-items: center; gap: 28px; }

/* Lien « Se connecter » discret à côté du bouton principal (ordinateur). */
.bz-header-login {
    font-family: var(--bz-ff-heading);
    font-weight: var(--bz-fw-medium);
    font-size: 15px;
    color: var(--bz-color-heading-primary);
    white-space: nowrap;
    margin-right: 6px;
}
.bz-header-login:hover { color: var(--bz-color-theme-primary); }
@media (max-width: 991px) {
    /* Sur mobile, « Se connecter » vit déjà dans le panneau latéral. */
    .bz-header-login { display: none; }
}
