/* -------------------ROOT -------------------*/
:root {
    --primary: #0A2540;
    --secondary: #22C55E;
    --white: #ffffff;
    --light: #f8fafc;

    --text: #0A2540;
    --muted: #4b5563;
    --header-height: 125px;
    --header-height-mobile: 135px;
}

/* ------------------- HEADER WRAPPER FIXE ------------------- */

:root {
    --header-height: 125px;
    --header-height-mobile: 135px;

    --primary: #0A2540;
    --secondary: #22C55E;
    --white: #ffffff;
    --text: #0A2540;
}


   /*-----------HEADER FIXE-----------------*/

.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--white);
}


   /*---------BODY OFFSET (IMPORTANT)-------------------*/

body {
    padding-top: var(--header-height);
}


   /*-----------TOPBAR-------------*/

.topbar {
    background: #149e46;
    color: var(--white);
    font-size: 14px;
    padding: 10px 0;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: nowrap; /* évite les sauts */
    white-space: nowrap;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
}


   /*----------------------NAVBAR-------------------*/

.custom-navbar {
    background: var(--white);
    padding: 14px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

   /*----------LOGO---------------------*/

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    text-decoration: none;
    gap: 8px;
}

.navbar-brand img {
    height: 55px;
    width: auto;
    object-fit: contain;
}


   /*------------ NAV LINKS ------------------*/
.nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    margin: 0 10px;

    display: flex;
    align-items: center;

    line-height: 1;       /* IMPORTANT */
    min-height: 40px;     /* FIX STABLE HAUTEUR */

    transition: 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link.active {
    color: var(--secondary);
    font-weight: 600;
}


   /*-----------CTA BUTTON--------------*/

.btn-success {
    background: var(--secondary);
    border: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    white-space: nowrap;
}


   /*--------------HAMBURGER-----------------*/

.navbar-toggler {
    border: none;
    box-shadow: none;
    
}

/* =========================
   FIX HAMBURGER DROITE (PROPRE)
========================= */
@media (max-width: 992px) {

    /* force le header sur UNE ligne */
    .custom-navbar .container {
        display: flex;
        align-items: center;
    }

    /* pousse le hamburger à droite */
    .navbar-toggler {
        margin-left: auto;
    }

    /* IMPORTANT : empêche le bouton de prendre toute la largeur */
    .navbar-toggler {
        display: inline-flex;
        width: auto;
    }

    /* menu en dessous */
    .navbar-collapse {
        width: 100%;
    }

    /* liens à gauche */
    .navbar-nav {
        align-items: flex-start;
        width: 100%;
    }
}
   /*-----------RESPONSIVE TABLET + MOBILE-------------*/

@media (max-width: 992px) {

    body {
        padding-top: var(--header-height-mobile);
    }

    .topbar-content {
        flex-direction: column;
        gap: 6px;
        white-space: normal;
        text-align: center;
    }

    .navbar-nav {
        align-items: flex-start;
        padding-top: 10px;
    }

    .nav-link {
        width: 100%;
        margin: 2px 0;
        padding: 6px 10px;
        font-size: 17px;
    }

    .btn-success {
        width: 100%;
        margin-top: 12px;
    }
}


@media (max-width: 576px) {

    .navbar-brand img {
        height: 40px;
    }

    .navbar-brand {
        font-size: 16px;
    }
}

/* -------------------------SECTION HERO SOFICODA------------------- */

.hero {
    position: relative;
    height: 80vh; /* ↓ réduit desktop */
    min-height: 520px;
    overflow: hidden;
}

/*-------------------SLIDES--------------------------------*/
.hero-slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    animation: zoomOnly 6s ease forwards;
}

/* Zoom léger */
@keyframes zoomOnly {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}


  /*----------- OVERLAY---------------*/

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 1;
}


   /*--------------CONTENU CENTRÉ PROPRE--------*/

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: #fff;

    padding: 0 20px;

    animation: fadeInUp 1s ease;
}

/* ANIMATION TEXTE */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*-------------TYPOGRAPHIE------------------*/

.hero h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 700px;
}

/* BOUTON */
.hero .btn {
    font-size: 16px;
    padding: 10px 26px;
    font-weight: 600;
    border-radius: 6px;
}


/*------------RESPONSIVE-------------*/


/* TABLETTE */
@media (max-width: 992px) {
    .hero {
        height: 70vh;
        min-height: 480px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .hero {
        height: 60vh;   /* ↓ plus compact */
        min-height: 420px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        display: none; /* clean mobile */
    }

    .hero .btn {
        font-size: 14px;
        padding: 8px 18px;
    }
}

/* -----------------------COUNTER SECTION-------------------- */
.counter-section {
    margin-top: -60px;
    position: relative;
    z-index: 10; /* pour les passer AU-DESSUS du hero*/
}

/* ---------------------------BOX ---------------------------*/
.counter-box {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);

    border-radius: 12px;
    padding: 25px 15px;

    transition: 0.35s ease;
    cursor: default;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ---------------------------HOVER ---------------------------*/
.counter-box:hover {
    transform: translateY(-6px) scale(1.03);

    box-shadow: 0 20px 45px rgba(0,0,0,0.25);

    background: #ffffff; /* plus propre au hover */
}

/* ---------------------------NUMBERS ---------------------------*/

.counter-box h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
    white-space: nowrap;
}

/* ---------------------------TEXT ---------------------------*/
.counter-box p {
    font-size: 14px;
    color: #011327; 
    opacity: 0.85;
    font-size: medium;
}

/* ---------------------------GRID ---------------------------*/
.counter-section .row > div {
    padding: 10px;
}

/* ---------------------------RESPONSIVE ---------------------------*/
@media (max-width: 768px) {

    .counter-box {
        padding: 18px 10px;
    }

    .counter-box h2 {
        font-size: 26px;
    }

    .counter-box p {
        font-size: 12px;
    }
}

/*-- -------------------SECTION POURQUOI SOFICODA ?--------------------------------------- --*/

.why-section {
    padding: 70px 0;
    background: var(--light);
}

/* TITLE */
.why-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}


.why-section .text-center p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 16.2px;
    line-height: 1.6;
    color: var(--muted);
}

/* BOX */
.why-box {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;

    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    height: 100%;
}

/* ICON */
.why-box i {
    font-size: 35px;
    color: var(--secondary);
    margin-bottom: 15px;
}

/* TEXT */
.why-box h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.why-box p {
    font-size: 15px;
    color: var(--muted);
    margin-top: 15px;
}

/* HOVER */
.why-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .why-section {
        padding: 50px 15px; 
    }

    .why-section h2 {
        font-size: 26px;
        text-align: center;
    }

    .why-section .text-center p {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 10px; 
        text-align: center;
    }

    .why-box {
        padding: 22px 15px; 
        margin-bottom: 15px; 
    }

    .why-box i {
        font-size: 30px; 
    }

    .why-box h5 {
        font-size: 16px; 
    }

    .why-box p {
        font-size: 14px;
        margin-top: 10px;
    }
}

/* -- ------------------SECTION PRESENTATION SERVICES-----------------------------------------  */


.loan-services-section {
    padding: 80px 0;
    background: #fff;
}

/* BADGE */
.section-badge {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* TITLE */
.loan-services-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

/* TEXT */
.loan-services-section p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.7;
}

/* LIST */
.loan-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.loan-list li {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 8px;
}

/* IMAGE */
.loan-services-section img {
    border-radius: 12px;
    transition: 0.3s;
}

.loan-services-section img:hover {
    transform: scale(1.03);
}

.highlight-rate {
    color: #22C55E;
    font-size: 1.3em;
    font-weight: 800;
    padding: 2px 8px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
}

.highlight-rate {
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}
/* RESPONSIVE */
@media (max-width: 768px) {

    .loan-services-section {
        padding: 50px 15px;
        text-align: center;
    }

    .loan-services-section h2 {
        font-size: 26px;
    }

    .loan-list li {
        text-align: left;
    }
}

/* ---------------SECTION SIMULATION CREDIT---------------------------------------- */

.loan-simulator {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

/* ===================== BADGE  */
.section-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    color: #22C55E;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 10px;
}

/*  TITRE  */
.loan-simulator h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

/*  TEXT  */
.loan-simulator p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/*  FORM BOX  */
.simulator-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);

    min-height: 420px; /* même hauteur */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* LABELS */
.simulator-box label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 10px;
}

/* INPUTS */
.simulator-box input {
    margin-top: 6px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

/* RATE INPUT */
.rate-input {
    background: #e5e7eb !important;
    color: #111827 !important;
    font-weight: 700;
    text-align: center;
    cursor: not-allowed;
}

/*  RESULT BOX  */
.result-box {
    background: linear-gradient(135deg, #0A2540, #0f3a66);
    color: #ffffff !important;

    padding: 40px 25px;
    border-radius: 16px;
    text-align: center;

    box-shadow: 0 18px 45px rgba(0,0,0,0.25);

    min-height: 420px; /* 🔥 même hauteur */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TEXTS VISIBLES */
.result-box p,
.result-box small,
.result-box h3,
.result-box h4 {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* LINE */
.result-box hr {
    opacity: 0.2;
    margin: 15px 0;
}

/* MAIN NUMBER */
.result-box h2 {
    font-size: 38px;
    font-weight: 800;
    color: #22C55E !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

/* SECOND NUMBERS */
.result-box h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* CTA BUTTON */
.result-box .btn-light {
    background: #ffffff;
    color: #0A2540;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px;
    transition: 0.3s ease;
    border: none;
}

.result-box .btn-light:hover {
    background: #22C55E;
    color: #fff;
    transform: translateY(-2px);
}

/*  HOVER  */
.simulator-box:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.trust-text {
    margin-top: 18px;
    font-size: 12.5px;

    color: #124871 !important;   
    opacity: 1 !important;       

    line-height: 1.6;

    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    padding: 10px 12px;
    border-radius: 10px;
}
/*  RESPONSIVE  */
@media (max-width: 992px) {
    .loan-simulator h2 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .loan-simulator {
        padding: 50px 15px;
        text-align: center;
    }

    .simulator-box,
    .result-box {
        min-height: auto;
    }

    .result-box {
        margin-top: 20px;
    }
}

/* --------------------------SECTION INFO SOFICODA--------------------------------------- */

.about-section {
    padding: 80px 0;
    background: #f8fafc;
}

/* BADGE */
.about-section .section-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    color: #22C55E;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* TITLE */
.about-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

/* TEXT */
.about-section p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* BUTTON */
.about-section .btn-success {
    padding: 12px 22px;
    font-weight: 600;
}

/* ================= IMAGE STACK ================= */
.image-stack {
    position: relative;
    width: 100%;
    height: 420px;
}

/* BASE STYLE */
.image-stack img {
    position: absolute;
    width: 70%;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: 0.4s ease;
}

/* IMAGE 1 */
.img1 {
    top: 0;
    left: 0;
    z-index: 3;
    transform: rotate(-5deg);
}

/* IMAGE 2 */
.img2 {
    top: 60px;
    left: 80px;
    z-index: 2;
    transform: rotate(3deg);
}

/* IMAGE 3 */
.img3 {
    top: 120px;
    left: 40px;
    z-index: 1;
    transform: rotate(-2deg);
}

/* HOVER EFFECT */
.image-stack img:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 5;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .about-section {
        text-align: center;
    }

    .image-stack {
        height: auto;
        margin-top: 35px;
        position: relative;

        display: flex;
        justify-content: center;
    }

    .image-stack img {
        position: relative;
        width: 100%;
        max-width: 340px;

        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.15);

        transform: none !important;
    }

    .img2,
    .img3 {
        display: none;
    }
}

/* ----------------COMMENT çA MARCHE ? ETAPES------------------------------------------- */

.how-it-works {
    padding: 80px 0;
    background: #ffffff;
}

/* TITRE */
.how-it-works h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.how-it-works p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* STEP BOX */
.step-box {
    background: #f8fafc;
    padding: 30px 20px;
    border-radius: 14px;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    height: 100%;
}

/* HOVER */
.step-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* NUMÉRO */
.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px auto;

    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}

/* TITRE STEP */
.step-box h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* TEXTE STEP */
.step-box p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .how-it-works h2 {
        font-size: 26px;
    }

    .step-box {
        padding: 25px 15px;
    }
}

/* ------------------------SECTION AVIS CLIENTS------------------------------------------------------- */

.testimonial-section {
    padding: 80px 0;
    background: #f6faff;
}

/* HEADER */
.section-badge {
    display: inline-block;
    background: rgba(0,128,0,0.1);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 10px;
}

.testimonial-section h2 {
    font-size: 32px;
    color: var(--primary);
}

.testimonial-intro {
    max-width: 650px;
    margin: 10px auto;
    color: var(--muted);
}

/* ====
   SLIDER
==== */

.testimonial-slider {
    overflow: hidden;
    margin-top: 40px;
}

/* TRACK */
.testimonial-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s ease;
}



   /* CARD PREMIUM */


.testimonial-card {
    flex: 0 0 calc(33.333% - 14px);

    background: #ffffff;
    padding: 28px 24px;
    border-radius: 18px;

    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);

    text-align: left;
    position: relative;

    transition: all 0.3s ease;
}

/* HOVER PROPRE */
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}


   /* HEADER (PHOTO + NOM) */


.testimonial-card .avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;

    border: 2px solid var(--secondary);
    margin-bottom: 12px;
}

/* NOM */
.testimonial-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

/* PETIT TEXTE (OPTION: ROLE / VILLE) */
.testimonial-card small {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-bottom: 10px;
}


   /* ÉTOILES */


.testimonial-card::before {
    content: "★★★★★";
    font-size: 13px;
    color: #facc15;
    position: absolute;
    top: 18px;
    right: 18px;
}


   /* TEXTE */


.testimonial-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;

    margin-top: 10px;
}


   /* STYLE BONUS (QUOTE) */


.testimonial-card::after {
    content: "“";
    position: absolute;
    bottom: 10px;
    right: 15px;

    font-size: 60px;
    color: rgba(0,0,0,0.04);
    font-family: serif;
}


   /* TABLET */


@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 10px);
    }
}


   /* MOBILE */

@media (max-width: 768px) {

    .testimonial-card {
        flex: 0 0 100%;
        padding: 24px 18px;
    }

    .testimonial-card p {
        font-size: 13.5px;
    }
}

/* --------------------SECTION PARTENAIRES---------------------------------------------- */


.partners-section {
    padding: 90px 0;
    background: #fefefe;
}

/* TITRE */
.partners-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.partners-section p {
    font-size: 17px;
    color: var(--muted);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

/*-------------- GRID LOGOS -------------- */
.partners-grid {
    display: flex;
    justify-content: center; /* centre le bloc */
    align-items: center;
    gap: 60px; /* espace entre logos */
    flex-wrap: nowrap; /* 🔥 empêche retour à la ligne */
}
/* LOGOS */

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.partners-logos img {
    width: 120px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

/* HOVER */
.partners-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}


/* LOGO VISIBLE (AJOUTÉ PAR JS) */
.partners-grid img.show {
    opacity: 0.75;
    transform: translateY(0) scale(1);
}

/* HOVER PREMIUM */
.partners-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.08);
}

/* RESPONSIVE TABLET */
@media (max-width: 992px) {
    .partners-grid {
        gap: 50px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .partners-grid {
        gap: 30px;
    }

    .partners-grid img {
        max-height: 40px;
    }

    .partners-section h2 {
        font-size: 28px;
    }

    .partners-section p {
        font-size: 15px;
    }
}

/* ------------------SECTION SEO ACCEUIL FINAL--------------------------------------- */

.seo-footer-section {
    padding: 80px 0;
    background: var(--light);
    color: var(--text);
}

.seo-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* TEXT */
.seo-text {
    flex: 1;
}

.seo-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.seo-footer-section h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.3;
}

.seo-footer-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 12px;
}

/* IMAGE WRAP (STYLE PREMIUM) */
.seo-image-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* glow background shape */
.seo-image-wrap::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    background: var(--secondary);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

/* IMAGE FANTASY */
.seo-image {
    position: relative;
    z-index: 1;
}

.seo-image img {
    width: 100%;
    max-width: 380px;

    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;

    object-fit: cover;

    box-shadow: 0 25px 60px rgba(10, 37, 64, 0.18);

    transition: transform 0.4s ease;
}

.seo-image img:hover {
    transform: translateY(-6px) scale(1.02);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .seo-flex {
        flex-direction: column;
        text-align: center;
    }

    .seo-image img {
        max-width: 300px;
    }
}


/* ---------------------------PAGE SERVICES SOFCODA--------------------------------------------------- */

.services-hero {
    padding: 170px 0 55px; 
    background: linear-gradient(135deg, var(--primary), #0f3a66);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
}

/*  DECORATION GLOW  */
.services-hero::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: var(--secondary);
    opacity: 0.12;
    filter: blur(70px);
    border-radius: 50%;
    top: -100px;
    right: -80px;
}

/*  TITLE  */
.services-hero h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--white);
    animation: fadeInUp 0.7s ease;
}

/*  TEXT  */
.services-hero p {
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    animation: fadeInUp 0.9s ease;
}

/*  ANIMATION  */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*  RESPONSIVE  */

/* TABLET */
@media (max-width: 992px) {
    .services-hero {
        margin-top: -135px;
        padding: 160px 15px 45px;
    }

    .services-hero h1 {
        font-size: 30px;
    }

    .services-hero p {
        font-size: 15px;
    }
}

/*  MOBILE FIX HERO  */
@media (max-width: 576px) {

    .services-hero {
        margin-top: 0 !important;
        padding-top: 95px;
        padding-bottom: 50px;
    }

    .services-hero h1 {
        font-size: 24px;
        margin-top: -20px;
    }

    .services-hero p {
        font-size: 14.5px;
        line-height: 1.6;
    }
}
/* TABLETTE (iPad portrait + landscape) */
@media (min-width: 577px) and (max-width: 1024px) {

    .services-hero {
        margin-top: 0; /* ❌ on supprime le hack */
        padding: 130px 20px 50px;
    }

    .services-hero h1 {
        font-size: 28px;
    }

    .services-hero p {
        font-size: 15px;
        max-width: 90%;
    }
}


/* ---------------------SECTION--SERVICES----------------------------------------------- */

.loan-types-section {
    padding: 80px 0;
    background: #f8fafc;
}

/* TITLE */
.loan-types-section h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

/* INTRO TEXT */
.loan-intro {
    max-width: 750px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.7;
}

/*------------- CARD------------- */
.loan-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: 0.3s ease;

    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.loan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* ............... IMAGE ............... */
.loan-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* TITLE */
.loan-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

/* TEXT */
.loan-card p {
    font-size: 14.5px;
    color: var(--muted);
    margin-bottom: 15px;
    line-height: 1.6;

    flex-grow: 1;
}

/* BUTTON */
.loan-card .btn-success {
    font-size: 14px;
    padding: 10px;
    border-radius: 6px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .loan-types-section {
        padding: 60px 15px;
        text-align: center;
    }

    .loan-types-section h2 {
        font-size: 26px;
    }

    .loan-card img {
        height: 180px;
    }
}

/* ----------------------SECTION POURQUOI CHOISIR UN COURTIER------------------------------ */

.why-broker-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #0A2540 0%, #0f3a66 100%);
    position: relative;
    overflow: hidden;
}

/* effet glow décoratif */
.why-broker-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    opacity: 0.12;
    border-radius: 50%;
    filter: blur(80px);
    top: -120px;
    left: -120px;
}

.why-broker-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: #22C55E;
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(90px);
    bottom: -120px;
    right: -120px;
}

/* TITLE */
.why-broker-section h2 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
}

/* INTRO */
.why-intro {
    max-width: 750px;
    margin: 0 auto;
    font-size: 16px;
    color: #9CA3AF!important;
    line-height: 1.7;
}

/* CARD */
.why-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;

    padding: 30px 20px;
    text-align: center;

    backdrop-filter: blur(10px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: all 0.4s ease;
    height: 100%;
}

/* HOVER */
.why-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* TITLE CARD */
.why-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

/* TEXT CARD */
.why-card p {
    font-size: 14.5px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .why-broker-section {
        padding: 60px 15px;
        text-align: center;
    }

    .why-broker-section h2 {
        font-size: 26px;
    }
}

/* ---------------------SECTION FAQ-------------------------------------------------- */

.faq-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    position: relative;
    overflow: visible; /* IMPORTANT */
}

/* décor subtil */
.faq-section::before,
.faq-section::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    z-index: 0;
}

.faq-section::before {
    background: var(--secondary);
    top: -120px;
    left: -120px;
}

.faq-section::after {
    background: var(--primary);
    bottom: -120px;
    right: -120px;
}

/*  TITLE  */
.faq-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

/*  IMAGE  */
.faq-image img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(10, 37, 64, 0.18);
    transition: 0.4s ease;
    position: relative;
    z-index: 2;
}

.faq-image img:hover {
    transform: translateY(-6px) scale(1.02);
}

/*  ROW FIX  */
.faq-section .row,
.faq-section .col-lg-6 {
    overflow: visible !important;
    position: relative;
    z-index: 2;
}

/*  FAQ ITEM  */
.faq-item {
    position: relative;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;

    margin-bottom: 14px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.06);

    overflow: visible;

    transition: 0.3s ease;

    z-index: 1;
}

/* ACTIVE ITEM = AU-DESSUS */
.faq-item.active {
    z-index: 999;
}

/* hover */
.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/*  QUESTION  */
.faq-question {
    width: 100%;
    border: none;
    background: transparent;

    padding: 18px 20px;

    font-size: 15.5px;
    font-weight: 700;
    color: var(--primary);

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
}

/*  FLÈCHE  */
.icon {
    font-size: 22px;
    color: var(--secondary);
    transition: transform 0.35s ease;
}

/* fermé */
.faq-item .icon {
    transform: rotate(90deg);
}

/* ouvert */
.faq-item.active .icon {
    transform: rotate(-90deg);
}

/*  ANSWER OVERLAY  */
.faq-answer {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;

    background: #ffffff;
    border-radius: 0 0 14px 14px;

    box-shadow: 0 25px 60px rgba(0,0,0,0.18);

    padding: 0 20px;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    transition: all 0.35s ease;

    z-index: 9999; /* 🔥 FIX PRINCIPAL */
}

/* OPEN */
.faq-item.active .faq-answer {
    padding: 15px 20px 18px 20px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* TEXT */
.faq-answer p {
    margin: 0;
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.7;
}

/*  BUTTON  */
.faq-section .btn-success {
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s ease;
}

.faq-section .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25);
}

/*  RESPONSIVE  */
@media (max-width: 768px) {

    .faq-section {
        padding: 60px 15px;
        text-align: center;
    }

    .faq-section h2 {
        font-size: 26px;
    }

    .faq-question {
        font-size: 15px;
    }

    /* mobile = pas overlay (plus safe) */
    .faq-answer {
        position: relative;
        top: auto;
        transform: none;
        opacity: 1;
        max-height: 0;
        padding: 0 20px;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }

    .faq-item.active .faq-answer {
        max-height: 300px;
        padding: 15px 20px;
    }
}
/*  GLOBAL FIX PAGE SHAKE  */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* bloque le scroll gauche/droite */
    max-width: 100%;
}

/* ---------------SEO DK FIN----------------------------------------- */

.seo-dk-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    position: relative;
    overflow: hidden;
}

/* décor léger premium */
.seo-dk-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(90px);
    top: -120px;
    left: -120px;
}

/* CENTRAGE VERSION SANS IMAGE */
.seo-dk-section.no-image .seo-dk-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

/* BADGE */
.seo-dk-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* TITLE */
.seo-dk-section h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 18px;
    line-height: 1.3;
}

/* TEXT */
.seo-dk-section p {
    font-size: 15.5px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .seo-dk-section {
        padding: 60px 15px;
    }

    .seo-dk-section h2 {
        font-size: 26px;
    }

    .seo-dk-section p {
        font-size: 14.5px;
    }
}


/* --------------------PAGE A PROPOS----------------------------------------------------- */

/* HERO */
.about-hero {
    padding: 100px 0 60px;
    background: linear-gradient(rgba(10,37,64,0.85), rgba(10,37,64,0.85)),
                url('images/businessmen-desk.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.about-hero h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-hero p {
    max-width: 600px;
    margin: auto;
    font-size: 16px;
    opacity: 0.9;
}

/* CONTENT */
.about-content {
    padding: 80px 0;
    background: #fff;
}

.about-content h2 {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 15px;
}

.about-content p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

/* IMAGE */
.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .about-hero {
        padding: 80px 15px 40px;
    }

    .about-hero h1 {
        font-size: 26px;
    }

    .about-content {
        padding: 50px 15px;
        text-align: center;
    }
}

/* -----------------------NOS MISSIONS---ET VALEURS--------------------------------------------------- */

.mission-values-section {
    padding: 100px 0;

    /* 🔥 fond uni propre */
    background: #0A2540;

    color: #ffffff;
    position: relative;
    overflow: hidden;
}
/* glow décoratif */
.mission-values-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: #22C55E;
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(100px);
    top: -120px;
    left: -120px;
}

/* ------------- TEXT ---------*/

.mission-values-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.mission-values-section p {
    font-size: 15.5px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

/* BADGE */
.mission-values-section .section-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: #22C55E;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/*------------- VALUES-----------*/

.values-list {
    margin-top: 20px;
}

.value-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: 0.3s ease;
}

/* hover léger */
.value-item:hover {
    padding-left: 8px;
}

/* titre */
.value-item h5 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

/* texte */
.value-item p {
    font-size: 14.5px;
    color: rgba(255,255,255,0.75);
}

/* dernière ligne */
.value-item:last-child {
    border-bottom: none;
}

/* ----------- RESPONSIVE ----------*/

@media (max-width: 768px) {

    .mission-values-section {
        padding: 70px 15px;
        text-align: center;
    }

    .mission-values-section h2 {
        font-size: 26px;
    }

    .mission-values-section p {
        font-size: 14.5px;
    }

    .value-item {
        text-align: center;
    }
}

/* ---------------------AVANTAGES A PROPOS--------------------------------------------------- */


   /* WHY SOFICODA SECTION */


.why-soficoda-section {
    padding: 90px 0;
    background: #f8fafc;
}

   /* TITRE / INTRO */


.why-soficoda-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.why-intro {
    max-width: 700px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
}


   /* BADGE */


.section-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}


   /* LISTE AVANTAGES */


.why-list {
    margin-top: 20px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);

    transition: 0.3s ease;
}

/* hover léger */
.why-item:hover {
    transform: translateX(5px);
}

/* NUMÉRO */
.why-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    min-width: 45px;
}

/* TEXTE */
.why-text h5 {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.why-text p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.6;
}


   /* IMAGE SECTION */


.why-image {
    position: relative;
    text-align: center;
}

.why-image img {
    width: 100%;
    max-width: 450px;

    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);

    transition: 0.4s ease;
}

/* hover image */
.why-image img:hover {
    transform: scale(1.03);
}


   /* RESPONSIVE */


@media (max-width: 992px) {

    .why-soficoda-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {

    .why-soficoda-section {
        padding: 60px 15px;
        text-align: center;
    }

    .why-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .why-number {
        margin: 0 auto;
    }

    .why-image img {
        max-width: 320px;
    }
}
/* --------------------CTA FINAL A PROPOS---------------------------------------------- */

.cta-seo-section {
    padding: 90px 0;
    background: #0A2540;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* glow léger */
.cta-seo-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: #22C55E;
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(120px);
    top: -150px;
    right: -150px;
}

/* badge */
.cta-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* titre */
.cta-seo-section h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* texte */
.cta-seo-section p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 15.5px;
    line-height: 1.8;
    opacity: 0.9;
}

/* petit texte */
.cta-small {
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.7;
}

/* bouton */
.cta-seo-section .btn-success {
    margin-top: 20px;
    background: #22C55E;
    border: none;
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s ease;
}

.cta-seo-section .btn-success:hover {
    background: #16A34A;
    transform: translateY(-2px);
}

/* responsive */
@media (max-width: 768px) {
    .cta-seo-section {
        padding: 70px 15px;
    }

    .cta-seo-section h2 {
        font-size: 26px;
    }
}
/*---------------------- CTA WHITE CLEAN---------------------- */

.cta-seo-section.white-cta {
    padding: 90px 0;
    background: #ffffff; /* 🔥 fond blanc propre */
    color: var(--primary);
    position: relative;
}

/* badge */
.cta-seo-section.white-cta .cta-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* titre */
.cta-seo-section.white-cta h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

/* texte */
.cta-seo-section.white-cta p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--muted);
}

/* petit texte */
.cta-seo-section.white-cta .cta-small {
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.8;
    color: var(--muted);
}

/* bouton */
.cta-seo-section.white-cta .btn-success {
    margin-top: 20px;
    background: var(--secondary);
    border: none;
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s ease;
}

.cta-seo-section.white-cta .btn-success:hover {
    background: #16A34A;
    transform: translateY(-2px);
}

/* petit effet séparation footer */
.cta-seo-section.white-cta {
    border-top: 1px solid rgba(0,0,0,0.06);
}


/* --------------------------PAGE CONTACT SOFICODA---------------------------------------------- */

.contact-section {
    padding: 90px 0;
    background: #f8fafc;
}

/* TITRES */
.contact-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}


   /* FORMULAIRE */


.contact-section form {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.contact-section form:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.contact-section .form-control {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 12px;
    font-size: 14px;
    transition: 0.3s ease;
}

.contact-section .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
    outline: none;
}

.contact-section textarea {
    resize: none;
}


   /* BUTTON */


.contact-section .btn-success {
    background: var(--secondary);
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s ease;
}

.contact-section .btn-success:hover {
    background: #16A34A;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}


   /* CONTACT INFO */


.contact-info {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.contact-info li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text);
}

/* LINKS */
.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    color: var(--secondary);
}

/* WHATSAPP */
.whatsapp-link {
    color: #25D366;
}

.whatsapp-link:hover {
    color: #1ebe5d;
}

.whatsapp-link i {
    font-size: 18px;
}


   /* HORAIRES + ENTREPRISE */


.contact-hours,
.company-info {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.contact-hours h5,
.company-info h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-hours p,
.company-info p {
    font-size: 14px;
    color: var(--muted);
    margin: 4px 0;
}

   /* RESPONSIVE */


@media (max-width: 992px) {

    .contact-hero {
        padding: 70px 20px;
    }

    .contact-section {
        padding: 70px 20px;
    }

    .contact-section form {
        padding: 25px;
    }
}

@media (max-width: 768px) {

    .contact-hero h1 {
        font-size: 30px;
    }

    .contact-section {
        text-align: center;
    }

    .contact-info li {
        justify-content: center;
    }
}

/* ------------------------PAGE DEMANDE DE PRET---------------------------------- */


.apply-section {
    padding: 110px 20px;
    background: #f6f8fc;
}

/* ------------------FORM WRAPPER ------------------*/

.apply-box {
    max-width: 980px;
    margin: auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 60px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

/* decorative top bar */

.apply-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #22c55e, #0A2540);
}

/* ------------------TITLE ------------------*/

.apply-box h2 {
    font-size: 30px;
    margin-bottom: 35px;
    color: #0A2540;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.section-intro {
    text-align: center;
    margin-bottom: 30px;
}

.section-intro h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-intro p {
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ------------------ GRID LAYOUT ------------------ */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* full width fields */
.form-group.full {
    grid-column: span 2;
}

/* ------------------ FIELDS STYLE ------------------ */

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #0A2540;
}

/* INPUT STYLE PREMIUM */
.form-group input,
.form-group select {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e6eaf0;
    font-size: 15px;
    background: #fdfdfd;
    transition: all 0.25s ease;
}

/* hover effect */
.form-group input:hover,
.form-group select:hover {
    border-color: #cbd5e1;
}

/* focus glow */
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 5px rgba(34,197,94,0.12);
    background: #fff;
}

/* ------------------ BUTTON ------------------ */

button {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(34,197,94,0.25);
}

/* ------------- RESPONSIVE ------------- */

@media (max-width: 768px) {

    .apply-box {
        padding: 35px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-group.full {
        grid-column: span 1;
    }
}
@media (max-width: 768px) {

    .apply-section {
        padding: 40px 15px; /* réduit fortement l’espace haut/bas */
    }

    .section-intro {
        margin-bottom: 20px; /* rapproche le titre du formulaire */
    }

    .apply-box {
        padding: 25px; /* un peu plus compact */
    }

    .apply-box h2 {
        margin-bottom: 20px;
    }
}
.security-note{
    margin-top:10px;
    font-size:12px;
    color:#6b7280;
    display:flex;
    align-items:center;
    gap:6px;
}
.security-note .icon{
    font-size:14px;
}

/* -----------------------------PAGE MENTIONS LEGALES------------------------------------------- */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: var(--text);
}

/* ----------------- SECTION ----------------- */
.legal-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f4f7fb, #eef3f8);
}

/* ----------------- CONTENU SANS CARTE ----------------- */
.legal-box {
    max-width: 1000px;
    margin: auto;
}

/* TITRES */
.legal-box h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);

    margin-top: 50px;
    margin-bottom: 12px;

    padding-left: 16px;
    position: relative;
}

/* BARRE DESIGN */
.legal-box h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;

    width: 5px;
    height: 20px;

    background: var(--secondary);
    border-radius: 3px;
}

/* TEXTES */
.legal-box p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted);
}

/* STRUCTURE AÉRÉE */
.legal-box p + h2 {
    margin-top: 60px;
}

/* MISE EN VALEUR */
.legal-box strong {
    color: var(--primary);
    font-weight: 700;
}

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 768px) {

    .page-hero {
        padding: 80px 15px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero p {
        font-size: 15px;
    }

    .legal-section {
        padding: 70px 15px;
    }

    .legal-box h2 {
        font-size: 18px;
    }

    .legal-box p {
        font-size: 14px;
    }
}


/* -----------------------MERCI.PHP---------------------------------- */

.merci-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;

    background:
        linear-gradient(135deg, rgba(10,37,64,0.75), rgba(34,197,94,0.2)),
        url('images/danois3.jpg') center/cover no-repeat;
}


   /* CARD */

.merci-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(10, 37, 64, 0.08);

    padding: 55px 35px;
    border-radius: 18px;
    max-width: 600px;
    width: 100%;
    text-align: center;

    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    transition: 0.4s ease;
}

.merci-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.18);
}


   /* ICON */

.merci-box .icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 25px;

    background: linear-gradient(135deg, #22C55E, #16a34a);
    color: #fff;

    font-size: 36px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);

    animation: pulse 2s infinite;
}


   /* TITRE (UNIQUEMENT MERCI) */

.merci-box h1 {
    font-size: 26px;
    color: #0A2540;
    margin-bottom: 15px;
    font-weight: 700;
}


   /* TEXTES (UNIQUEMENT MERCI) */

.merci-box p {
    font-size: 16px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
}

/* SMALL TEXT */
.merci-box .small {
    font-size: 13px;
    opacity: 0.8;
}


   /* ICON INLINE */

.merci-box i {
    margin-right: 6px;
}


   /* BUTTON */

.merci-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 25px;
    padding: 13px 28px;

    background: linear-gradient(135deg, #22C55E, #16a34a);
    color: #fff;

    text-decoration: none;
    border-radius: 8px;

    font-weight: 600;
    font-size: 15px;

    transition: 0.3s ease;

    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25);
}

.merci-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.35);
}


   /* ANIMATION */

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}


   /* RESPONSIVE */

@media (max-width: 768px) {

    .merci-box {
        padding: 40px 20px;
    }

    .merci-box h1 {
        font-size: 20px;
    }

    .merci-box p {
        font-size: 14px;
    }

    .merci-box .icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
}

/* ----------------------------FOOTER------------------------------------------- */

.footer {
    background: var(--primary);
    color: var(--white);
    padding: 26px 0; /* réduit PC */
}

/* TITRES */
.footer h5 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* TEXTES */
.footer p {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.85;
}

/* LINKS */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.75;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
    opacity: 1;
}

/* FOOTER BOTTOM */
.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 10px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #0A2540;
    color: #fff;
}

.footer-bottom small {
    font-size: 11.5px;
    opacity: 0.9;
}

/* WHATSAPP */
.whatsapp-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.85;
}

.whatsapp-footer a i {
    color: #25D366;
    font-size: 18px;
}


/* MOBILE CLEAN VERSION */

@media (max-width: 768px) {

    .footer {
        padding: 20px 15px; /* ↓ hauteur réduite */
        text-align: center; /* tout centré propre */
    }

    .footer .row > div {
        margin-bottom: 18px;
        text-align: center;
    }

    .footer h5 {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .footer-links li {
        text-align: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
        padding: 8px 10px;
    }

    .whatsapp-footer a {
        justify-content: center;
    }
}

/* TABLET */
@media (max-width: 992px) {
    .footer {
        padding: 24px 0;
    }
}
.siren-bar {
    max-width: 480px;
    margin: 20px auto;
    padding: 12px 15px; /* ⬅️ réduit la hauteur */

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px; /* ⬅️ espace réduit */

    text-align: center;

    background: linear-gradient(180deg, #22C55E 0%, #ffffff 100%);
    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* texte plus compact */
.siren-bar span {
    font-size: 13px;
    font-weight: 600;
    color: #0A2540;
    line-height: 1.3;
}
@media (max-width: 600px) {
    .siren-bar {
        margin: 15px 10px;
        padding: 10px;

        border-radius: 10px;
    }

    .siren-bar span {
        font-size: 12px;
    }
}
/* ---------------- HERO COLLÉ AU HEADER FIXE ---------------- */

html {
    scroll-behavior: smooth;
}
.navbar-collapse {
    transition: none !important;
}

.scroll-buttons {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

/* bouton principal */
.scroll-btn {
    width: 38px;   /* ↓ réduit PC */
    height: 38px;  /* ↓ réduit PC */
    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10, 37, 64, 0.75);
    backdrop-filter: blur(8px);

    color: #fff;
    font-size: 14px; /* ↓ icône plus petite */

    cursor: pointer;

    box-shadow: 0 6px 14px rgba(0,0,0,0.2);

    transition: all 0.25s ease;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* hover */
.scroll-btn:hover {
    transform: translateY(-3px) scale(1.04);
    background: rgba(34, 197, 94, 0.9);
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.25);
}

/* animations plus légères */
.scroll-btn.up {
    animation: floatUp 3s infinite ease-in-out;
}

.scroll-btn.down {
    animation: floatDown 3s infinite ease-in-out;
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes floatDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* MOBILE */
@media (max-width: 768px) {

    .scroll-buttons {
        right: 12px;
        bottom: 12px;
        gap: 6px;
    }

    .scroll-btn {
        width: 32px;   /* ↓ encore plus petit mobile */
        height: 32px;
        font-size: 12px;
    }
}

/* HEADER FIXE */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* hauteur réelle */
.topbar {
    height: 45px;
}

.custom-navbar {
    height: 80px;
}

/* total = 125px */

@media (max-width: 992px) {

    .topbar {
        height: auto;
        padding: 8px 0;
    }

    .custom-navbar {
        height: auto;
        padding: 12px 0;
    }

    body {
        padding-top: 135px; /* légèrement plus */
    }
}
.navbar-collapse {
    transition: none !important;
}
