/* ============================================================
   PrêtExpress - Feuille de style principale
   ============================================================ */

:root {
    --primaire: #1a3c8f;
    --primaire-fonce: #122a63;
    --primaire-clair: #eef2fb;
    --dore: #ffb800;
    --succes: #198754;
    --fond: #f4f6fb;
    --texte: #1f2937;
    --texte-muet: #6b7280;
    --bordure: #e9edf3;
    --arrondi: 18px;
    --arrondi-petit: 12px;
    --ombre: 0 8px 30px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
    --ombre-forte: 0 18px 50px rgba(15, 23, 42, 0.14), 0 4px 14px rgba(15, 23, 42, 0.08);
    --ombre-survol: 0 16px 40px rgba(26, 60, 143, 0.14), 0 4px 12px rgba(26, 60, 143, 0.08);

    /* Alignement des couleurs Bootstrap sur la charte.
       Bootstrap utilise #0d6efd par défaut : trop clair sur fond blanc ou sur
       son propre fond « subtle », le texte devient difficile à lire
       (ex. badges « bg-primary-subtle text-primary »). On le remplace par le
       bleu de la charte (--primaire) qui offre un bien meilleur contraste. */
    --bs-primary: #1a3c8f;
    --bs-primary-rgb: 26, 60, 143;
    --bs-primary-text-emphasis: #122a63;
    --bs-primary-bg-subtle: #eef2fb;
    --bs-primary-border-subtle: #c9d5ef;
    --bs-link-color: #1a3c8f;
    --bs-link-color-rgb: 26, 60, 143;
    --bs-link-hover-color: #122a63;
    --bs-link-hover-color-rgb: 18, 42, 99;
}

* {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--fond);
    color: var(--texte);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 450;
    letter-spacing: -0.01em;
}

a {
    transition: all 0.2s ease;
}

/* Scrollbar discrète */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================================
   Composants globaux (boutons, formulaires, badges, tableaux)
   ============================================================ */
.btn {
    border-radius: 10px;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: var(--bordure);
    padding: 0.55rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primaire);
    box-shadow: 0 0 0 0.2rem rgba(26, 60, 143, 0.12);
}

.input-group-text {
    border-radius: 10px 0 0 10px;
    border-color: var(--bordure);
    background: var(--primaire-clair);
    color: var(--primaire);
}

.form-check-input:checked {
    background-color: var(--primaire);
    border-color: var(--primaire);
}

.badge {
    font-weight: 400;
    padding: 0.45em 0.7em;
    border-radius: 50px;
}

/* Badges « type de virement » : fond plein + texte blanc (lisibles) */
.badge-sepa {
    background-color: var(--primaire);
    color: #ffffff;
}

.badge-international {
    background-color: #8a5a00;
    color: #ffffff;
}

.badge-sepa i,
.badge-international i {
    color: #ffffff;
}

/* Badges des cartes « Certifications » (page À propos) :
   même doré et même bleu nuit que les médailles .certif-medaille */
.badge-certif {
    background: linear-gradient(135deg, #ffb800 0%, #e0a400 100%);
    color: #122a63;
    font-weight: 450;
}

.table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--texte-muet);
    font-weight: 400;
    border-bottom-width: 1px;
}

.nav-pills .nav-link {
    border-radius: 50px;
    color: var(--texte);
    font-weight: 400;
}

.nav-pills .nav-link.active {
    background: var(--primaire);
    color: #ffffff;
}

.nav-pills .nav-link:not(.active):hover {
    background: var(--primaire-clair);
}

.progress {
    border-radius: 50px;
    background: #eef1f6;
}

/* ============================================================
   Barre de navigation
   ============================================================ */
.navbar-principale {
    background: #ffffff;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--bordure);
}

.navbar-principale .navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--primaire-fonce);
}

.logo-navbar {
    height: 40px;
    width: auto;
    max-width: 220px;
}

.navbar-principale .nav-link {
    font-weight: 400;
    color: var(--texte);
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    transition: all 0.2s ease;
}

.navbar-principale .nav-link:hover,
.navbar-principale .nav-link.active {
    color: var(--primaire);
    background: var(--primaire-clair);
}

/* Mobile : bouton menu (hamburger) de la même taille que le sélecteur de langue */
.navbar-principale .navbar-toggler {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1;
    background-color: #f8f9fa;
    border-color: var(--bordure);
}
.navbar-principale .navbar-toggler-icon {
    width: 18px;
    height: 18px;
}
/* Effet au survol / clic : fond gris comme le sélecteur de langue (btn-light) */
.navbar-principale .navbar-toggler:hover {
    background-color: #d3d4d5;
    border-color: #c6c7c8;
}
.navbar-principale .navbar-toggler:active,
.navbar-principale .navbar-toggler:focus,
.navbar-principale .navbar-toggler:focus-visible {
    background-color: #c6c7c8;
    border-color: #babdbe;
    box-shadow: none;
    outline: none;
}

/* Mobile / tablette : menu déplié de la navbar */
@media (max-width: 991.98px) {
    .navbar-principale .nav-link {
        font-size: 1rem;
        padding: 0.6rem 0.9rem;
    }

    /* Trait de séparation au-dessus du premier lien du menu (« Accueil ») */
    .navbar-principale .navbar-collapse .navbar-nav {
        border-top: 1px solid var(--bordure);
        padding-top: 0.6rem;
        margin-top: 0.6rem;
    }

    .navbar-principale .dropdown-menu {
        border: none;
        box-shadow: none;
    }
    .navbar-principale .dropdown-menu .dropdown-item {
        font-size: 0.96rem;
        padding: 0.45rem 1rem;
    }
}

.avatar-petit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primaire-clair);
    color: var(--primaire);
    font-size: 0.8rem;
    font-weight: 400;
}

/* ============================================================
   Section héros
   ============================================================ */
.hero-section {
    background:
        radial-gradient(900px 400px at 80% -10%, rgba(255, 184, 0, 0.18), transparent 60%),
        linear-gradient(135deg, var(--primaire) 0%, var(--primaire-fonce) 60%, #0b1a3f 100%);
    color: #ffffff;
    padding: 5rem 0;
    overflow: hidden;
}

.titre-hero {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.texte-dore {
    color: var(--dore);
}

.lead-herbe {
    font-size: 1.1rem;
    max-width: 540px;
}

.stats-hero h2 {
    font-size: 1.6rem;
}

.hero-visuel {
    position: relative;
}

.hero-image {
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.35));
    animation: flottement 6s ease-in-out infinite;
}

@keyframes flottement {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ============================================================
   Sections générales
   ============================================================ */
.section-blanche {
    background-color: #ffffff;
}

.section-foncee {
    background: linear-gradient(135deg, var(--primaire) 0%, var(--primaire-fonce) 100%);
}

.titre-surtitre {
    display: inline-block;
    color: var(--primaire);
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.section-foncee .titre-surtitre {
    color: var(--dore);
}

.titre-section {
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

/* ============================================================
   Cartes avantages
   ============================================================ */
.carte-avantage {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi);
    padding: 1.6rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.carte-avantage:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombre-survol);
    border-color: var(--primaire);
}

/* Variante « fond foncé » des cartes avantages (sections bleues :
   « Votre crédit en 4 étapes » sur la page Crédits). La classe était
   utilisée sans style : les cartes restaient blanches et leur texte
   text-white-50 devenait illisible. */
.carte-avantage-fonce {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.carte-avantage-fonce:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: var(--dore);
}

.carte-avantage-fonce h5 {
    color: #ffffff;
}

.carte-avantage-fonce .icone-avantage {
    background: rgba(255, 255, 255, 0.14);
    color: var(--dore);
}

.carte-avantage-fonce p.text-white-50 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.icone-avantage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primaire-clair);
    color: var(--primaire);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================================
   Étapes
   ============================================================ */
.etape {
    position: relative;
    text-align: center;
    padding: 2rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--arrondi);
    height: 100%;
    transition: transform 0.25s ease, background 0.25s ease;
}

.etape:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.06);
}

.icone-etape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--dore);
    font-size: 1.6rem;
}

/* ============================================================
   Offres
   ============================================================ */
.carte-offre {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid var(--bordure);
    border-radius: 22px;
    padding: 2rem 1.8rem;
    height: 100%;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.carte-offre:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombre-survol);
}

.badge-offre {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primaire-clair);
    color: var(--primaire);
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
}

.badge-or {
    background: var(--dore);
    color: var(--primaire-fonce);
}

.icone-offre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: var(--primaire-clair);
    color: var(--primaire);
    font-size: 1.8rem;
}

.listes-offres {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}

.listes-offres li {
    padding: 0.4rem 0;
}

/* ============================================================
   Témoignages
   ============================================================ */
.carte-temoignage {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--arrondi);
    padding: 1.8rem;
    height: 100%;
}

.carte-temoignage .etoiles i {
    color: var(--dore);
}

/* ============================================================
   Témoignages — carrousel (Owl Carousel)
   ============================================================ */
.temoignage-carrousel .item {
    padding: 0.5rem 0.25rem;
}

.carte-temoignage-carrousel {
    background: #ffffff;
    border-radius: var(--arrondi);
    padding: 1.8rem;
    height: 100%;
    box-shadow: var(--ombre);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid var(--bordure);
}

.carte-temoignage-carrousel:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombre-survol);
    border-color: var(--primaire);
}

.avatar-carrousel {
    display: flex;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.temoignage-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primaire-clair);
    box-shadow: var(--ombre);
}

.nom-carrousel {
    color: var(--primaire-fonce);
}

.secteur-carrousel {
    color: var(--primaire);
    font-weight: 600;
}

.etoiles-carrousel i {
    color: var(--dore);
}

.texte-carrousel {
    color: var(--texte-muet);
    font-size: 0.9rem;
    line-height: 1.65;
}

.temoignage-carrousel .owl-dots {
    margin-top: 1.5rem;
}

.temoignage-carrousel .owl-dots .owl-dot span {
    background: #cbd5e1;
    width: 10px;
    height: 10px;
    margin: 4px;
    transition: background 0.2s ease;
}

.temoignage-carrousel .owl-dots .owl-dot.active span,
.temoignage-carrousel .owl-dots .owl-dot:hover span {
    background: var(--dore);
}

/* ============================================================
   Comment ça marche — étapes en cartes
   ============================================================ */


.process-step-card {
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.process-step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombre-survol);
}

.process-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primaire-clair);
    color: var(--primaire);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.process-step-card:hover .process-step-icon {
    background: var(--primaire);
    color: #ffffff;
    transform: scale(1.06);
}

/* ============================================================
   Compte épargne (demande + virement interne)
   ============================================================ */


.carte-avantage-benefice {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi-petit);
    padding: 1.1rem;
    height: 100%;
    text-align: center;
}

.carte-avantage-benefice i {
    display: block;
    color: var(--primaire);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ============================================================
   Stepper (Comment ça marche — image réelle)
   ============================================================ */
.image-reelle {
    border-radius: 22px;
    box-shadow: var(--ombre-forte);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.badge-flottant {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border-radius: 14px;
    padding: 0.7rem 1.05rem;
    box-shadow: var(--ombre-survol);
    font-size: 0.85rem;
}

.badge-flottant i {
    font-size: 1.3rem;
}

.stepper-vertical {
    position: relative;
}

.etape-stepper {
    position: relative;
    display: flex;
    gap: 1.1rem;
    padding-bottom: 1.9rem;
}

.etape-stepper:last-child {
    padding-bottom: 0;
}

.etape-stepper::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: var(--bordure);
}

.etape-stepper:last-child::before {
    display: none;
}

.numero-stepper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primaire), var(--primaire-fonce));
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(26, 60, 143, 0.3);
}

.contenu-stepper h6 {
    color: var(--primaire-fonce);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.contenu-stepper p {
    color: var(--texte-muet);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================================
   CTA
   ============================================================ */


/* ============================================================
   Boutons
   ============================================================ */
.btn-primaire {
    background: var(--primaire);
    color: #ffffff;
    border: 1px solid var(--primaire);
}

.btn-primaire:hover,
.btn-primaire:focus {
    background: var(--primaire-fonce);
    border-color: var(--primaire-fonce);
    color: #ffffff;
}

.btn-outline-primaire {
    border: 1px solid var(--primaire);
    color: var(--primaire);
}

.btn-outline-primaire:hover {
    background: var(--primaire);
    border-color: var(--primaire);
    color: #ffffff;
}

/* ============================================================
   Sections "features" de la page d'accueil (image + texte)
   ============================================================ */
.section-feature {
    background-color: #ffffff;
    padding: 4.5rem 0;
}

.section-feature-alt {
    background: linear-gradient(180deg, #f6f8fd 0%, #eef2fb 100%);
}

.feature-visuel {
    position: relative;
}

.feature-image {
    filter: drop-shadow(0 24px 45px rgba(11, 26, 63, 0.22));
    animation: flottement 6s ease-in-out infinite;
}

/* Photos réelles (personnes) — cadre arrondi, pas d'animation flottement */
.photo-reelle {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 22px 45px rgba(11, 26, 63, 0.28);
    object-fit: cover;
    border: 6px solid #ffffff;
}

.section-foncee .photo-reelle {
    border-color: rgba(255, 255, 255, 0.9);
}

.feature-liste {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
}

.feature-liste li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.42rem 0;
    color: #33415e;
    font-size: 1rem;
}

.feature-liste li i {
    color: var(--dore);
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* ============================================================
   Authentification (cartes)
   ============================================================ */
.carte-auth {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid var(--bordure);
    border-radius: 22px;
    padding: 2.2rem;
    box-shadow: var(--ombre);
    margin-top: 2rem;
}

/* Drapeau du pays dans le champ de sélection */
.drapeau-select {
    width: 22px;
    height: 16px;
}

.icone-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--primaire-clair);
    color: var(--primaire);
    font-size: 1.8rem;
}

.icone-alerte {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    font-size: 1.8rem;
}

.icone-alerte.alerte-danger  { background: #fdeaea; color: #dc3545; }
.icone-alerte.alerte-success { background: #e8f7ee; color: #198754; }
.icone-alerte.alerte-info    { background: #e9f1fe; color: var(--primaire); }
.icone-alerte.alerte-warning { background: #fff3e0; color: #e67e22; }

/* ------------------------------------------------------------
   Spinner des boutons d'authentification : bleu de la charte
   ------------------------------------------------------------ */
.btn[data-spinner] .spinner-border {
    color: var(--primaire);
}

/* Pastille blanche derrière le spinner sur les boutons bleus pleins
   pour que le bleu de la charte reste bien visible */
.btn-primaire[data-spinner] .spinner-border {
    background: #ffffff;
    border-radius: 50%;
}

.avatar-profil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primaire) 0%, var(--primaire-fonce) 100%);
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 400;
    box-shadow: 0 10px 30px rgba(26, 60, 143, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

/* Page Profil : bandeau d'identité (avatar + nom + actions sur la photo).
   Les actions occupent toute la largeur sur mobile et une colonne fixe
   à partir des écrans larges (le reste du bandeau s'étire). */
.profil-bandeau-actions {
    width: 100%;
}

@media (min-width: 992px) {
    .profil-bandeau-actions {
        width: 300px;
        margin-left: auto;
    }
}

.lien-texte {
    color: var(--primaire);
    text-decoration: none;
}

.lien-texte:hover {
    color: var(--primaire-fonce);
    text-decoration: underline;
}

/* ============================================================
   Panneaux (espace client / admin)
   ============================================================ */
.carte-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi);
    padding: 1.6rem;
    box-shadow: var(--ombre);
}

.carte-stat {
    background: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi);
    padding: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--ombre);
    height: 100%;
}

.icone-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.bg-primaire { background: var(--primaire); }

.valeur-stat {
    display: block;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.1;
}

.libelle-stat {
    display: block;
    color: var(--texte-muet);
    font-size: 0.85rem;
}

/* Cartes statistiques modernes */


.carte-stat-moderne {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi);
    padding: 1.2rem;
    box-shadow: var(--ombre);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.carte-stat-moderne:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombre-survol);
    border-color: rgba(26, 60, 143, 0.25);
}

.icone-stat-moderne {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.bg-degrade-bleu   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-degrade-vert   { background: linear-gradient(135deg, #22c55e, #15803d); }
.bg-degrade-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-degrade-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bg-degrade-rouge  { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bg-degrade-cyan   { background: linear-gradient(135deg, #06b6d4, #0e7490); }

/* Cercles des cartes statistiques : gris */
.carte-stat-moderne .icone-stat-moderne {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.valeur-stat-moderne {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--texte);
}

.libelle-stat-moderne {
    display: block;
    color: var(--texte-muet);
    font-size: 0.82rem;
}

/* ---- Barre de progression de collecte (organisation) ---- */
.progress-campagne {
    width: 100%;
    background: #e9edf3;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}
.progress-campagne-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primaire), var(--primaire-fonce));
    border-radius: 999px;
    transition: width 0.6s ease;
}
.progress-campagne-bar.terminee {
    background: linear-gradient(90deg, #16a34a, #15803d);
}

/* ============================================================
   Contact
   ============================================================ */
.hero-contact {
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(255, 184, 0, 0.18), transparent 60%),
        linear-gradient(135deg, var(--primaire) 0%, var(--primaire-fonce) 60%, #0b1a3f 100%);
    color: #ffffff;
    padding: 4.5rem 0;
    overflow: hidden;
}

.hero-contact .titre-surtitre {
    color: var(--dore);
}

.hero-contact h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.badge-contact {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.badge-contact i {
    color: var(--dore);
}

.contact-hero-img {
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.35));
    animation: flottement 6s ease-in-out infinite;
}

/* ============================================================
   Simulation / récapitulatif
   ============================================================ */
.carte-simulation {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi);
    padding: 1.8rem;
    box-shadow: var(--ombre);
    color: var(--texte);
}

.recap-ligne {
    border-bottom: 1px dashed var(--bordure);
    padding-bottom: 0.8rem;
}

.carte-simulation .texte-dore {
    color: #b8860b;
}

.form-label-petit {
    font-size: 0.85rem;
}

/* ============================================================
   Détail du prêt
   ============================================================ */
.liste-infos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.liste-infos li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--bordure);
}

.liste-infos li span {
    color: var(--texte-muet);
}

.suivi-dossier {
    position: relative;
    padding-left: 0.25rem;
}

.suivi-etape {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 0.9rem 0;
}

.suivi-etape:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 44px;
    bottom: -6px;
    width: 2px;
    background: var(--bordure);
}

.suivi-etape .point {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 0.9rem;
    flex-shrink: 0;
    z-index: 1;
}

.suivi-etape.fait .point {
    background: var(--succes);
    color: #ffffff;
}

.suivi-etape.actif .point {
    background: var(--dore);
    color: var(--primaire-fonce);
}

.suivi-etape.refuse .point {
    background: #dc3545;
    color: #ffffff;
}

.echeancier {
    font-size: 0.9rem;
}

/* ============================================================
   Admin
   ============================================================ */


.zone-messages {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 8px;
    line-height: 1;
}

/* ============================================================
   Pied de page
   ============================================================ */
.footer-site {
    background: #ffffff;
    border-top: 1px solid var(--bordure);
}

.footer-site h6 {
    font-size: 0.85rem;
    color: var(--texte);
}

.liste-footer {
    list-style: none;
    padding: 0;
    margin: 0;
}

.liste-footer li {
    margin-bottom: 0.55rem;
    color: var(--texte-muet);
    font-size: 0.92rem;
}

.liste-footer a {
    color: var(--texte-muet);
    text-decoration: none;
    transition: color 0.2s ease;
}

.liste-footer a:hover {
    color: var(--primaire);
}

/* Cartes client : zone non encadrée pour éviter l'effet « carte dans une carte » */
.carte-client-bloc {
    padding: 0.25rem;
}

.pied-bas {
    background: var(--fond);
    border-top: 1px solid var(--bordure);
}

/* Bande supérieure du footer (certification + CTA) */
.footer-bande-haut {
    background: var(--fond);
    border-bottom: 1px solid var(--bordure);
}

.footer-bande-haut .btn {
    white-space: nowrap;
}

/* Liens légaux du pied de page */
.footer-liens-legaux a {
    color: var(--texte-muet);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.footer-liens-legaux a:hover {
    color: var(--primaire);
}

/* ============================================================
   Layout du tableau de bord (sidebar + topbar)
   ============================================================ */
.dashboard-layout {
    min-height: 100vh;
    background: var(--fond);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    background: #1e293b;
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease;
}

/* Sidebar repliée (ordinateur) */
.sidebar.plie {
    width: 76px !important;
}

.sidebar.plie .sidebar-entete {
    justify-content: center;
    padding: 1.25rem 0.5rem 1rem;
}

.sidebar.plie .sidebar-entete .sidebar-entete-titre,
.sidebar.plie .sidebar-entete #fermerSidebar {
    display: none;
}

.sidebar.plie .sidebar-nav {
    padding: 1rem 0.6rem;
}

.sidebar.plie .nav-lien {
    justify-content: center;
    padding: 0.7rem 0;
    gap: 0;
}

.sidebar.plie .nav-lien span {
    display: none;
}

.sidebar.plie .nav-lien i {
    font-size: 1.25rem;
    width: auto;
}

.sidebar.plie .sidebar-bas {
    padding: 1rem 0.6rem;
    align-items: center;
}

.sidebar.plie .sidebar-bas .nav-lien span,
.sidebar.plie .carte-utilisateur .nom-utilisateur,
.sidebar.plie .carte-utilisateur .role-utilisateur,
.sidebar.plie .carte-utilisateur .btn-deconnexion {
    display: none;
}

.sidebar.plie .carte-utilisateur {
    justify-content: center;
    padding: 0.5rem;
}

.sidebar.plie ~ .dashboard-contenu {
    margin-left: 76px !important;
}

.sidebar-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-entete-titre {
    font-weight: 400;
    font-size: 1rem;
    color: #ffffff;
}

.sidebar-nav {
    padding: 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
}

.nav-lien {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-lien i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.nav-lien:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-lien.active {
    background: var(--dore);
    color: var(--primaire-fonce);
    font-weight: 400;
}

/* Badge de compteur dans la sidebar (ex : messages non lus) */
.badge-lien {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 400;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.sidebar-bas {
    padding: 1rem 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.carte-utilisateur {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.7rem;
}

.avatar-utilisateur {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--dore);
    color: var(--primaire-fonce);
    font-weight: 400;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
}

/* Photo de profil : l'image remplit le cadre arrondi de l'avatar
   (sinon l'initiale du prénom reste affichée) */
.avatar-petit img,
.avatar-utilisateur img,
.avatar-profil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.nom-utilisateur {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.2;
}

.role-utilisateur {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.btn-deconnexion {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.18);
    color: #ff8a93;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-deconnexion:hover {
    background: #dc3545;
    color: #ffffff;
}

.dashboard-contenu {
    margin-left: 270px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--bordure);
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.topbar-gauche {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.topbar-gauche > div {
    min-width: 0;
}

.topbar-titre {
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-sous-titre {
    font-size: 0.82rem;
    color: var(--texte-muet);
    margin-bottom: 0;
}

.topbar-droite {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* Drapeau du sélecteur de langue (topbar) */
.drapeau-langue {
    width: 22px;
    height: 16px;
}

.drapeau-option {
    width: 20px;
    height: 14px;
    vertical-align: -2px;
}

.dashboard-main {
    padding: 1.5rem;
    flex: 1;
    position: relative;
}

/* ============================================================
   Compte désactivé : contenu grisé + cadenas central
   ============================================================ */
.compte-desactive-overlay {
    position: absolute;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(244, 246, 251, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 18px;
}

.compte-desactive-carte {
    background: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: 20px;
    box-shadow: var(--ombre-forte);
    padding: 2.2rem 2.5rem;
    text-align: center;
    max-width: 430px;
    width: 100%;
}

.compte-desactive-cadenas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.35);
}

/* Onglets mobiles (bas d'écran) */
.nav-mobile-bas {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #ffffff;
    border-top: 1px solid var(--bordure);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    display: flex;
}

.nav-mobile-lien {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.45rem 0.25rem 0.55rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

/* Badge de compteur dans la nav mobile (messages non lus) */
.badge-mobile {
    position: absolute;
    top: 3px;
    right: 14%;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 400;
    min-width: 15px;
    height: 15px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.nav-mobile-lien i {
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef1f6;
    color: #64748b;
    transition: all 0.2s ease;
}

.nav-mobile-lien.active {
    color: var(--primaire);
    font-weight: 400;
}

.nav-mobile-lien.active i {
    background: var(--dore);
    color: #122a63;
}

.voile-sidebar {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1044;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.voile-sidebar.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive : sidebar off-canvas sur mobile */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 270px;
    }

    .sidebar.plie {
        width: 270px;
    }

    .sidebar.plie .sidebar-entete {
        justify-content: space-between;
        padding: 1.25rem 1.25rem 1rem;
    }

    .sidebar.plie .sidebar-entete .sidebar-entete-titre,
    .sidebar.plie .sidebar-entete #fermerSidebar {
        display: initial;
    }

    .sidebar.plie .nav-lien {
        justify-content: flex-start;
        padding: 0.7rem 0.9rem;
        gap: 0.8rem;
    }

    .sidebar.plie .nav-lien span {
        display: initial;
    }

    .sidebar.plie .nav-lien i {
        font-size: 1.1rem;
        width: 22px;
    }

    .sidebar.plie .sidebar-bas {
        padding: 1rem 0.9rem;
        align-items: stretch;
    }

    .sidebar.plie .sidebar-bas .nav-lien span,
    .sidebar.plie .carte-utilisateur .nom-utilisateur,
    .sidebar.plie .carte-utilisateur .role-utilisateur,
    .sidebar.plie .carte-utilisateur .btn-deconnexion {
        display: initial;
    }

    .sidebar.plie .carte-utilisateur {
        justify-content: flex-start;
        padding: 0.7rem;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
    }

    .dashboard-contenu,
    .sidebar.plie ~ .dashboard-contenu {
        margin-left: 0;
    }

    .dashboard-main {
        padding: 1rem 1rem 5.5rem;
    }

    /* Sidebar mobile : police et icônes réduites */
    .sidebar .nav-lien {
        font-size: 0.85rem;
        padding: 0.55rem 0.9rem;
        gap: 0.7rem;
    }

    .sidebar .nav-lien i {
        font-size: 0.95rem;
        width: 20px;
    }

    .sidebar .sidebar-entete-titre {
        font-size: 0.9rem;
    }

    .sidebar .nom-utilisateur {
        font-size: 0.82rem;
    }

    .sidebar .role-utilisateur {
        font-size: 0.72rem;
    }
}

/* ============================================================
   Carte bancaire (compte)
   ============================================================ */
.carte-compte {
    background: linear-gradient(120deg, var(--primaire) 0%, var(--primaire-fonce) 60%, #0d1b3e 100%);
    border-radius: 22px;
    padding: 1.6rem;
    color: #ffffff;
    box-shadow: var(--ombre-forte);
}

.puce-carte {
    display: inline-block;
    position: relative;
    width: 44px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #d4af37 0%, #f5d97a 60%, #b08d2a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.puce-carte::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
}

.solde-compte {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.carte-compte-compacte {
    padding: 1.2rem 1.4rem;
    border-radius: 18px;
}

.carte-compte-compacte .solde-compte {
    font-size: 1.5rem;
}

.btn-masque-solde {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.8rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-masque-solde:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.btn-plier-sidebar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 0;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-plier-sidebar:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-plier-sidebar i {
    font-size: 1.05rem;
}

.rib-texte {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.03em;
    word-break: break-all;
}

/* ============================================================
   Carte Mastercard
   ============================================================ */


/* Carte inactive : grisée, le bandeau d'état reste coloré */


/* Carte inactive : grisée{
    filter: grayscale(1);
    opacity: 0.72;
}

@media (max-width: 575.98px) {
}

/* ============================================================
   Cartes bancaires SVG (compte + Mastercard)
   ============================================================ */
.carte-svg {
    position: relative;
    display: block;
    width: 100%;
}

.carte-svg svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Carte inactive : corps grisé, la notice reste colorée */
.carte-svg.inactive .mastercard-corps {
    filter: grayscale(1);
    opacity: 0.8;
}

/* Bouton masquer/afficher le solde (par-dessus la carte SVG) */
.carte-svg .btn-masque-solde {
    position: absolute;
    right: 18px;
    bottom: 22px;
    z-index: 2;
}

/* ============================================================
   Carrousel de cartes bancaires (compte + Mastercard)
   ============================================================ */
.carousel-cartes .carousel-indicators {
    margin-bottom: -1.4rem;
}

.carousel-cartes .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primaire);
    opacity: 0.35;
}

.carousel-cartes .carousel-indicators .active {
    opacity: 1;
}

/* Ordinateur : les cartes côte à côte */
@media (min-width: 768px) {
    .carousel-cartes .carousel-inner {
        display: flex;
        gap: 1.5rem;
    }

    .carousel-cartes .carousel-item {
        display: block;
        flex: 0 0 calc(50% - 0.75rem);
        width: 50%;
        margin-right: 0;
    }

    .carousel-cartes .carousel-item.active {
        transform: none;
    }

    .carousel-cartes .carousel-item-next,
    .carousel-cartes .carousel-item-prev {
        display: none;
    }

    .carousel-cartes .carousel-item > div {
        height: 100%;
    }
}

.operation {
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--bordure);
}

.operation:last-child {
    border-bottom: none;
}

.icone-operation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1rem;
    flex-shrink: 0;
}

.icone-confirmation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    font-size: 1.9rem;
}

/* Carte client (version mobile) */


/* Lignes compactes des listes en mode mobile (remplace les grosses cartes) */
.ligne-compacte {
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--bordure);
}

.ligne-compacte:last-child {
    border-bottom: none;
}

/* Élément non lu : repère discret (au lieu d'une carte colorée) */
.ligne-compacte.non-lue {
    border-left: 3px solid var(--dore);
    padding-left: 0.7rem;
}

/* Directives (page Infos de paiement) : en-tête et corps resserrés */
.ligne-compacte .message-liste-entete {
    padding: 0.7rem 0;
}

.ligne-compacte .message-liste-entete .icone-site {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: none;
}

.ligne-compacte .message-liste-corps {
    padding: 0 0 0.9rem;
}

/* Actions rapides (grille d'icônes) */
.action-rapide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.5rem 0.6rem;
    border: 1px solid var(--bordure);
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    text-decoration: none;
    color: var(--texte);
    font-size: 0.82rem;
    font-weight: 400;
    height: 100%;
    transition: all 0.2s ease;
}

.action-rapide:hover {
    transform: translateY(-3px);
    box-shadow: var(--ombre-survol);
    border-color: var(--primaire);
    color: var(--primaire);
    text-decoration: none;
}

.nav-mobile-lien.active i {
    background: var(--dore);
    color: #122a63;
}

.action-rapide-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.3rem;
    /* Gris (cohérent avec les cercles des statistiques) */
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

/* Badge cloche de notification */
.badge-bell {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 400;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
}

.notif-dropdown {
    width: 340px;
    max-width: calc(100vw - 1rem);
}

.notif-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--bordure);
    font-size: 0.9rem;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    white-space: normal;
}

.notif-item.non-lue {
    background: var(--primaire-clair);
}

.notif-item .icone-notification-petit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primaire-clair);
    color: var(--primaire);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notif-item.non-lue .icone-notification-petit {
    background: var(--dore);
    color: var(--primaire-fonce);
}

.notif-texte {
    display: flex;
    flex-direction: column;
}

/* Liste des notifications (page) */
.liste-notifications {
    max-height: 620px;
    overflow-y: auto;
}

.carte-notification {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 0.6rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    border-bottom: 1px dashed var(--bordure);
    position: relative;
    background: #ffffff;
}

.carte-notification:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* Non lue : fond gris */
.carte-notification.non-lue {
    background: #eef0f5;
}

/* Notifications cliquables (tableau de bord) */
a.carte-notification {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

a.carte-notification:hover {
    background: #e8edf8;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

a.carte-notification.non-lue:hover {
    background: #e3e7f2;
}

.notif-checkbox {
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.icone-notification {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Carte message / directive (page « Mes messages ») */


/* Section paiement (formulaire admin) */
.paiement-section {
    border: 1px dashed var(--bordure);
    border-radius: 14px;
    padding: 1rem;
    background: #f8fafc;
}

/* Carte informations de paiement (vue client) */
.carte-paiement {
    border: 1px solid #fcd34d;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #fffdf5, #fff8e1);
    margin-top: 0.6rem;
}

.carte-paiement-entete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--primaire-fonce);
    margin-bottom: 0.7rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #fcd34d;
}

.carte-paiement-entete i {
    color: var(--dore);
    font-size: 1.1rem;
}

.montant-paiement {
    color: #b45309;
    font-size: 1.05rem;
}

/* Liste des messages (page client) */


.message-liste-entete {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    background: transparent;
    border: none;
    color: var(--texte);
    text-align: left;
}

.message-liste-entete:hover {
    background: rgba(26, 60, 143, 0.04);
}

.message-liste-entete .icone-stat-moderne {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* Icône du site (badge NORV Bank) dans la liste des paiements */
.message-liste-entete .icone-site {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.message-liste-chevron {
    color: var(--texte-muet);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.message-liste-entete[aria-expanded="true"] .message-liste-chevron {
    transform: rotate(180deg);
}

.message-liste-corps {
    padding: 0.25rem 1.1rem 1.1rem;
}

/* ============================================================
   Messagerie (client ↔ admin) — une carte, deux côtés
   ============================================================ */
.messagerie-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ===== La carte unique : liste à gauche, fil à droite ===== */
.messagerie-carte {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi);
    box-shadow: var(--ombre);
    overflow: hidden;
    min-height: 560px;
    max-height: 680px;
}

/* ---- Colonne gauche : liste des conversations ---- */
.messagerie-liste {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--bordure);
    background: #ffffff;
}

.messagerie-liste-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1.05rem 1.3rem;
    border-bottom: 1px solid var(--bordure);
    background: linear-gradient(135deg, var(--primaire), var(--primaire-fonce));
    color: #ffffff;
}

.messagerie-liste-entete .fw-bold {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.messagerie-liste-entete .badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff;
    font-weight: 400;
}

.messagerie-liste-corps {
    padding: 0.75rem;
    overflow-y: auto;
    min-height: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.messagerie-conv {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--texte);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    position: relative;
    border: 1px solid transparent;
}

.messagerie-conv:hover {
    background: var(--primaire-clair);
    text-decoration: none;
    color: var(--texte);
}

.messagerie-conv.active {
    background: linear-gradient(135deg, #eef2fb, #e4ebf9);
    border-color: rgba(26, 60, 143, 0.25);
    box-shadow: 0 4px 14px rgba(26, 60, 143, 0.08);
}

.messagerie-conv.non-lue {
    background: #fffaf0;
    border-color: rgba(255, 184, 0, 0.35);
}

.messagerie-conv.non-lue:hover {
    background: #fdf3dd;
}

.messagerie-conv-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: #ffffff;
    font-weight: 400;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.messagerie-conv.active .messagerie-conv-icone,
.messagerie-conv:hover .messagerie-conv-icone {
    background: linear-gradient(135deg, var(--primaire), var(--primaire-fonce));
}

.messagerie-conv-infos {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.messagerie-conv-titre {
    font-weight: 400;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messagerie-conv-extrait {
    font-size: 0.78rem;
    color: var(--texte-muet);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messagerie-conv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.messagerie-conv-meta .small {
    font-size: 0.68rem;
}

.messagerie-conv-meta .badge {
    font-size: 0.68rem;
    border-radius: 50px;
}

/* Point orange « non lu » */
.messagerie-conv.non-lue::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

/* ---- Pied de la liste : nouveau message ---- */
.messagerie-liste-pied {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid var(--bordure);
    background: #ffffff;
}

.messagerie-liste-pied .btn {
    border-radius: 12px;
}

/* ---- Colonne droite : fil de discussion ---- */
.messagerie-fil {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.messagerie-fil-entete {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.3rem;
    border-bottom: 1px solid var(--bordure);
    background: linear-gradient(135deg, var(--primaire), var(--primaire-fonce));
    color: #ffffff;
}

.messagerie-fil-entete .messagerie-conv-icone {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.messagerie-fil-entete .fw-bold {
    color: #ffffff;
}

.messagerie-fil-entete small,
.messagerie-fil-entete .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

.messagerie-fil-entete .text-success {
    color: #4ade80 !important;
}

.messagerie-fil-entete .btn-outline-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.messagerie-fil-entete .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.messagerie-fil-entete .btn-outline-primaire {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.messagerie-fil-entete .btn-outline-primaire:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.messagerie-fil-corps {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 1.4rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(26, 60, 143, 0.04) 0, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 184, 0, 0.05) 0, transparent 40%),
        #f7f9fc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---- Bulles de discussion ---- */
.bulle-ligne {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 80%;
    animation: bulle-apparition 0.25s ease;
}

@keyframes bulle-apparition {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulle-moi {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bulle-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #ffffff;
    font-weight: 400;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.bulle-moi .bulle-avatar {
    background: linear-gradient(135deg, var(--dore), #e09b00);
}

.bulle-contenu {
    min-width: 0;
}

.bulle-auteur {
    font-size: 0.74rem;
    font-weight: 400;
    color: var(--texte-muet);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bulle-moi .bulle-auteur {
    text-align: right;
}

.bulle-texte {
    background: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: 16px 16px 16px 6px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    word-break: break-word;
}

.bulle-moi .bulle-texte {
    background: linear-gradient(135deg, var(--primaire), var(--primaire-fonce));
    border-color: var(--primaire);
    color: #ffffff;
    border-radius: 16px 16px 6px 16px;
    box-shadow: 0 6px 18px rgba(26, 60, 143, 0.22);
}

.bulle-date {
    font-size: 0.7rem;
    color: var(--texte-muet);
    margin-top: 0.25rem;
}

.bulle-moi .bulle-date {
    text-align: right;
}

/* Pied de bulle : date + statut d'envoi (horloge / double coche) */
.bulle-pied {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
}
.bulle-pied .bulle-date {
    margin-top: 0;
}
.bulle-moi .bulle-pied {
    justify-content: flex-end;
}
.bulle-statut {
    font-size: 0.72rem;
    line-height: 1;
    color: var(--texte-muet);
}
.bulle-statut.statut-echec {
    color: #dc3545;
}
.bulle-ligne.bulle-en-envoi {
    opacity: 0.72;
    transition: opacity 0.2s ease;
}

/* ---- Formulaire de réponse ---- */
.messagerie-fil-form {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    padding: 1rem 1.3rem 1.2rem;
    border-top: 1px solid var(--bordure);
    background: #ffffff;
}

.messagerie-fil-form textarea {
    resize: none;
    border-radius: 14px;
    background: #f8fafc;
    border-color: var(--bordure);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.messagerie-fil-form textarea:focus {
    background: #ffffff;
    border-color: var(--primaire);
    box-shadow: 0 0 0 0.2rem rgba(26, 60, 143, 0.12);
}

/* ---- Barre de saisie style WhatsApp ---- */
.messagerie-saisie-whatsapp {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
    background: #f0f2f5;
    border-radius: 24px;
    padding: 0.3rem 0.5rem 0.3rem 0.55rem;
    position: relative;
}
.messagerie-saisie-whatsapp textarea {
    flex: 1;
    min-width: 0;
    resize: none;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0.5rem 0.15rem;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 120px;
    color: var(--texte);
}
.messagerie-saisie-whatsapp textarea:focus {
    outline: none !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}
.messagerie-saisie-whatsapp textarea::placeholder {
    color: #8696a0;
}
.messagerie-icon {
    background: transparent;
    border: none;
    color: #54656f;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0.35rem;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.messagerie-icon:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--primaire);
}
.messagerie-fichier-chip {
    align-self: center;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
    background: var(--primaire-clair);
    color: var(--primaire);
    border-radius: 10px;
    padding: 0.2rem 0.5rem;
    margin-right: 0.15rem;
    flex-shrink: 0;
}
/* Bouton d'envoi circulaire (style WhatsApp) */
.messagerie-envoyer-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primaire), var(--primaire-fonce));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 60, 143, 0.3);
    transition: transform 0.15s ease, background 0.2s ease;
}
.messagerie-envoyer-btn:hover {
    background: var(--primaire-fonce);
    transform: scale(1.06);
}
.messagerie-envoyer-btn:disabled {
    opacity: 0.75;
    transform: none;
}
/* Spinner affiché pendant l'envoi du message */
.messagerie-envoyer-btn .envoyer-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: envoyer-rotation 0.6s linear infinite;
}
@keyframes envoyer-rotation {
    to { transform: rotate(360deg); }
}
.messagerie-fil-form.envoi-en-cours .messagerie-saisie-whatsapp textarea {
    opacity: 0.6;
}
.messagerie-fil-form.envoi-en-cours .messagerie-envoyer-btn {
    cursor: progress;
}

/* ---- Bulle pièce jointe ---- */
.bulle-fichier {
    background: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: 14px;
    padding: 0.6rem 0.9rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    max-width: 280px;
}
.bulle-moi .bulle-fichier {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}
.bulle-fichier a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primaire);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    word-break: break-all;
}
.bulle-moi .bulle-fichier a {
    color: #ffffff;
}
.bulle-fichier-taille {
    font-weight: 400;
    color: var(--texte-muet);
    white-space: nowrap;
}
.bulle-moi .bulle-fichier-taille {
    color: rgba(255, 255, 255, 0.8);
}
.bulle-texte-fichier {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* ---- Bulle sticker ---- */
.bulle-sticker img {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
    background: #ffffff;
}

/* ---- Panneau de stickers (au-dessus de la pilule, style WhatsApp) ---- */
.panneau-stickers {
    position: absolute;
    bottom: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem;
    background: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    z-index: 30;
}
.panneau-stickers.d-none {
    display: none;
}
.sticker-option {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    line-height: 0;
}
.sticker-option img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: block;
}
.sticker-option:hover {
    transform: scale(1.12);
    border-color: var(--primaire);
}

/* ---- État vide du fil ---- */
.messagerie-fil-vide {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(26, 60, 143, 0.04) 0, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 184, 0, 0.05) 0, transparent 40%),
        #f7f9fc;
}

.messagerie-fil-vide h2 {
    color: var(--primaire-fonce);
}

/* Messagerie responsive */
@media (max-width: 991.98px) {
    .messagerie-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .messagerie-carte {
        min-height: 0;
        max-height: none;
        height: calc(100vh - 300px);
        min-height: 420px;
    }

    /* Sur mobile : un seul panneau visible à la fois (selon la classe .actif) */
    .messagerie-liste,
    .messagerie-fil {
        display: none;
    }

    .messagerie-liste.actif,
    .messagerie-fil.actif {
        display: flex;
    }

    .messagerie-liste {
        width: 100%;
        border-right: none;
    }

    .messagerie-liste-corps,
    .messagerie-fil-corps {
        max-height: none;
    }

    .bulle-ligne {
        max-width: 92%;
    }
}

@media (max-width: 575.98px) {
    .messagerie-carte {
        height: calc(100vh - 280px);
        min-height: 400px;
    }

    .messagerie-fil-corps {
        padding: 1rem 0.85rem;
    }

    .bulle-ligne {
        max-width: 96%;
    }

    .bulle-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .bulle-texte {
        font-size: 0.84rem;
        padding: 0.65rem 0.85rem;
    }

    .messagerie-fil-form {
        padding: 0.85rem 0.9rem;
    }

    .messagerie-conv-icone {
        width: 38px;
        height: 38px;
    }
}

/* Popup de succès */
.icone-succes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e8f7ee;
    color: #198754;
    font-size: 2.2rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-contact {
        padding: 3rem 0;
    }

    .section-feature {
        padding: 3rem 0;
    }

    .carte-auth {
        padding: 1.5rem;
    }

    body {
        font-size: 0.8125rem;
    }

    h1 { font-size: calc(1.375rem + 0.4vw); }
    h2 { font-size: calc(1.2rem + 0.3vw); }
    h3 { font-size: 1.05rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.925rem; }

    .solde-compte {
        font-size: 1.6rem;
    }
}

/* ============================================================
   Responsive : cartes et panneaux sur mobile
   ============================================================ */
@media (max-width: 575.98px) {
    body {
        font-size: 0.75rem;
    }

    /* Boutons du hero en pleine largeur sur mobile */
    .hero-boutons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-boutons .btn {
        width: 100%;
    }

    /* Boutons des sections feature en 50/50 sur mobile */
    .section-feature .d-flex.gap-2 .btn,
    .section-feature-alt .d-flex.gap-2 .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.55rem 0.4rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Évite le débordement horizontal (gutter g-5 > padding du conteneur) */
    .hero-section,
    .hero-contact,
    .section-foncee,
    .section-feature,
    .section-feature-alt,
    .section-blanche {
        overflow-x: hidden;
    }

    /* Même cause, corrigée à la source : une gouttière g-5 (48px) applique des
       marges négatives de -24px qui dépassent le padding (12-16px) des
       conteneurs. Sur mobile, on la ramène à 24px → plus aucun débordement
       horizontal, même sans le masquage ci-dessus. */


    /* Même cause, corrigée à la source : une gouttière g-5 (48px) applique des
       marges négatives de -24px qui dépassent le padding (12-16px) des
       conteneurs. Sur mobile, on la ramène à 24px → plus aucun débordement
       horizontal, même sans le masquage ci-dessus. */
    .row.g-5{
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }

    .contact-hero-img {
        max-width: 320px !important;
    }

    .etape-stepper {
        padding-bottom: 1.4rem;
        gap: 0.9rem;
    }

    .numero-stepper {
        width: 36px;
        height: 36px;
    }

    .etape-stepper::before {
        left: 17px;
        top: 40px;
    }

    .badge-flottant {
        bottom: 0.9rem;
        left: 0.9rem;
        padding: 0.55rem 0.8rem;
        font-size: 0.78rem;
    }

    .badge-flottant i {
        font-size: 1.1rem;
    }

    h1 { font-size: 1.25rem; }
    h2 { font-size: 1.1rem; }
    h3 { font-size: 0.975rem; }
    h4 { font-size: 0.95rem; }
    h5 { font-size: 0.875rem; }

    .carte-panel,
    .carte-auth {
        padding: 1rem;
    }

    /* Cartes avantages affichées 2 par ligne sur mobile : padding/jetons réduits */
    .carte-avantage {
        padding: 1rem;
        border-radius: 14px;
    }

    .carte-avantage .icone-avantage {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.15rem;
        margin-bottom: 0.7rem;
    }

    .carte-compte {
        padding: 1.2rem;
    }

    .solde-compte {
        font-size: 1.3rem;
    }

    .carte-compte-compacte .solde-compte {
        font-size: 1.15rem;
    }

    .rib-texte {
        font-size: 0.75rem;
    }

    .topbar {
        padding: 0.7rem 0.9rem;
    }

    .topbar-sous-titre {
        display: none;
    }

    .carte-stat-moderne {
        padding: 0.85rem;
        gap: 0.6rem;
    }

    .icone-stat-moderne {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
        border-radius: 50%;
    }

    .valeur-stat-moderne {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .libelle-stat-moderne {
        font-size: 0.68rem;
    }

    .table thead th {
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .nav-mobile-bas .nav-lien span {
        font-size: 0.6rem;
    }
}

/* ============================================================
   Relevé de compte
   ============================================================ */
.releve-document {
    background: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: 20px;
    box-shadow: var(--ombre-forte);
    padding: 1.75rem;
}

.releve-entete {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primaire);
    margin-bottom: 1.25rem;
}

.releve-banque {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    line-height: 1.4;
}

.releve-logo {
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--primaire);
    letter-spacing: -0.02em;
}

.releve-logo-img {
    height: 44px;
    width: auto;
    max-width: 240px;
    margin-bottom: 0.25rem;
}

.releve-banque small {
    color: #6b7280;
}

.releve-titre {
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #1e293b;
    font-size: 1.05rem;
    padding: 0.35rem 1.1rem;
    background: #f1f5f9;
    border-radius: 10px;
}

.releve-infos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.releve-libelle {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

.releve-valeur {
    font-weight: 400;
    color: #1e293b;
}

.releve-synthese {
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    height: 100%;
}

.releve-synthese .releve-libelle {
    margin-bottom: 0.3rem;
}

.releve-synthese .releve-valeur {
    font-size: 1.05rem;
}

.releve-thead th {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.releve-ouverture td {
    background: #f8fafc;
}

.releve-pied {
    border-top: 1px dashed #d1d5db;
}

/* Impression du relevé */
@media print {
    /* Marges de page à 0 : le navigateur n'a alors plus de place pour imprimer
       son en-tête (date + titre de l'onglet) ni son pied de page (URL +
       pagination). L'espace blanc est recréé par le padding du relevé. */
    @page {
        size: A4 portrait;
        margin: 0;
    }

    body {
        background: #ffffff !important;
    }

    .sidebar,
    .topbar,
    .nav-mobile-bas,
    .voile-sidebar,
    .no-print {
        display: none !important;
    }

    .dashboard-layout {
        display: block !important;
    }

    .dashboard-contenu {
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .dashboard-main {
        padding: 0 !important;
        margin: 0 !important;
    }

    .carte-panel {
        box-shadow: none !important;
        border: none !important;
    }

    .releve-document {
        box-shadow: none !important;
        border: none !important;
        padding: 12mm !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    /* Les lignes du relevé ne sont jamais coupées entre deux pages */
    .releve-table tr,
    .releve-synthese,
    .releve-entete,
    .releve-infos {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* L'en-tête du tableau se répète en haut de chaque page */
    .releve-thead {
        display: table-header-group;
    }

    /* Un peu d'air dans les cellules : le relevé pouvant tenir sur plusieurs
       pages, chaque ligne (et l'en-tête répété) garde une marge verticale */
    .releve-table> :not(caption)>*>* {
        padding: .42rem .5rem !important;
    }

    .table {
        --bs-table-bg: transparent !important;
    }
}

/* ============================================================
   À propos — hero spécifique & chronologie (parcours)
   ============================================================ */
.hero-a-propos {
    background:
        radial-gradient(700px 380px at 12% -5%, rgba(255, 184, 0, 0.16), transparent 55%),
        radial-gradient(900px 420px at 95% 115%, rgba(26, 60, 143, 0.55), transparent 62%),
        linear-gradient(135deg, var(--primaire) 0%, var(--primaire-fonce) 55%, #0b1a3f 100%);
}

.hero-a-propos-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 184, 0, 0.16);
    color: var(--dore);
    border: 1px solid rgba(255, 184, 0, 0.4);
    padding: 0.45rem 1.05rem;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.hero-piliers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

.pilier-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    border-radius: 50px;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    color: #ffffff;
}

.pilier-hero i {
    color: var(--dore);
}

/* Chronologie (Notre parcours) */
.timeline-norv {
    position: relative;
}

.timeline-norv::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--dore), var(--primaire));
}

.jalon-timeline {
    position: relative;
    display: flex;
    gap: 1.2rem;
    padding-bottom: 1.8rem;
}

.jalon-timeline:last-child {
    padding-bottom: 0;
}

.jalon-annee {
    flex-shrink: 0;
    width: 56px;
    height: 40px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--primaire);
    border: 1px solid var(--bordure);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.92rem;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(26, 60, 143, 0.08);
}

.jalon-annee.dore {
    background: var(--dore);
    color: var(--primaire-fonce);
    border-color: var(--dore);
}

.jalon-contenu {
    padding-top: 0.2rem;
}

.jalon-contenu h6 {
    color: var(--primaire-fonce);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.jalon-contenu p {
    color: var(--texte-muet);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.process-step-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 60, 143, 0.14) !important;
}

.process-step-card:hover .process-step-icon {
    background: #1a3c8f !important;
    color: #ffffff !important;
}

/* Couleurs utilitaires */
.text-primaire {
    color: var(--primaire) !important;
}

/* Contenu légal pleine largeur (mentions, CGU, confidentialité) */
.contenu-legal {
    max-width: 880px;
    margin: 0 auto;
}

.contenu-legal h2 {
    color: var(--primaire-fonce);
}

.bg-primaire {
    background-color: var(--primaire) !important;
}

/* Bande partenaires (page d'accueil) */
.badge-partenaires {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--texte-muet);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.1rem;
}

.badge-partenaires i {
    font-size: 1.35rem;
    color: var(--primaire);
}

/* Logos affichés seuls (Apple Pay / Google Pay) */
.badge-partenaires-logo i {
    font-size: 1.9rem;
}

.badge-partenaires-logo {
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.badge-partenaires-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Médailles de certification (page À propos) */
.certif-medaille {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb800 0%, #e0a400 100%);
    color: #122a63;
    font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.35);
}

/* ============================================================
   Typographie : contenu Regular 400, titres et boutons 450
   ============================================================ */


/* ============================================================
   Typographie : contenu Regular 400, titres et boutons 450
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.btn,
.fw-bold,
.fw-semibold,
strong,
b {
    font-weight: 450 !important;
}

/* ============================================================
   Vérification d'identité : selfie avec le document (webcam)
   ============================================================ */
.webcam-bloc {
    max-width: 480px;
}

.webcam-ecran {
    position: relative;
    width: 100%;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(160deg, #101c3f 0%, #0b1a3f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.webcam-ecran video,
.webcam-ecran img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.webcam-ecran img {
    object-fit: contain;
    background: #000;
}

.webcam-vide {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 2rem 1rem;
    max-width: 360px;
    font-size: 0.9rem;
}

.webcam-vide i {
    font-size: 2.6rem;
    color: #ffb800;
    display: block;
    margin-bottom: 0.7rem;
}

/* ============================================================
   Vérification d'identité : stepper horizontal (3 étapes)
   ============================================================ */
.stepper-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
}

.stepper-etape {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 64px;
    color: #6c7a96;
}

.stepper-cercle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef1f7;
    color: #6c7a96;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.stepper-libelle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.stepper-liaison {
    width: 44px;
    height: 2px;
    background: #dde3ee;
    margin: 17px 0.4rem 0;
    flex-shrink: 0;
}

.stepper-etape.active { color: var(--primaire-fonce); }
.stepper-etape.active .stepper-cercle {
    background: var(--primaire);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--primaire-clair);
}

.stepper-etape.fait { color: var(--primaire); }
.stepper-etape.fait .stepper-cercle {
    background: #22c55e;
    color: #ffffff;
}

.etape-wizard .btn-aller,
.etape-wizard .btn-retour {
    min-width: 130px;
}

/* ============================================================
   Sélecteur de fichier traduit (document d'identité)
   ============================================================ */
.fichier-zone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px dashed #c6d0e3;
    background: #f8fafd;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fichier-zone:hover {
    border-color: var(--primaire);
    background: #eef2fb;
}

.fichier-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.fichier-bouton {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    background: var(--primaire-clair);
    color: var(--primaire-fonce);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.fichier-nom {
    color: #6b7a99;
    font-size: 0.85rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   Boutons pleine largeur sur mobile — pages publiques (hors accueil)
   Le <body> public porte « page-publique page-<slug> » (voir routeur.php
   + includes/header.php) : la page d'accueil (page-index) et le tableau de
   bord (dashboard-header.php) ne sont pas concernés.
   ============================================================ */
@media (max-width: 767.98px) {

    body.page-publique:not(.page-index) main .btn:not(.btn-close):not(.btn-link):not(.toggle-motdepasse):not(.dropdown-toggle),
    body.page-publique:not(.page-index) .carte-auth .btn:not(.btn-close):not(.btn-link):not(.toggle-motdepasse):not(.dropdown-toggle) {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Plusieurs boutons qui se suivent : empilement vertical régulier */


    /* Plusieurs boutons qui se suivent : empilement vertical régulier */
    body.page-publique:not(.page-index) main .btn+.btn{
        margin-top: 0.6rem;
    }

    /* .hero-boutons et les conteneurs à gap gèrent déjà l'espacement */
    body.page-publique:not(.page-index) .hero-boutons .btn+.btn,
    body.page-publique:not(.page-index) main .d-flex.gap-1>*+*,
    body.page-publique:not(.page-index) main .d-flex.gap-2>*+*,
    body.page-publique:not(.page-index) main .d-flex.gap-3>*+* {
        margin-top: 0;
    }

    /* Conteneurs de boutons (contenu de page uniquement — jamais la navbar) : une seule colonne */
    body.page-publique:not(.page-index) main .hero-boutons,
    body.page-publique:not(.page-index) main .d-flex:has(> .btn + .btn),
    body.page-publique:not(.page-index) .carte-auth .d-flex:has(> .btn + .btn) {
        flex-direction: column;
        align-items: stretch;
    }

    /* Neutralise le 50/50 des boutons de section sur ces pages */
    body.page-publique:not(.page-index) .section-feature .d-flex.gap-2 .btn,
    body.page-publique:not(.page-index) .section-feature-alt .d-flex.gap-2 .btn {
        flex: 1 1 auto;
        width: 100%;
        font-size: 0.9rem;
        white-space: normal;
    }
}

/* ============================================================
   Barre de navigation — boutons « Connexion » et « Inscription »
   en 50/50 dans le menu mobile (< 992px). Aucun changement sur bureau.
   ============================================================ */
@media (max-width: 991.98px) {
    .actions-compte > .btn {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
    }
}

