/* Police Poppins : @font-face locaux dans css/fonts.css (plus d'appel à
   fonts.googleapis.com). */

/* Variables CSS */
:root {
    --primary-color: #000000;
    --secondary-color: #34bd6b;

    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --text-color: #333333;
    /* Titres : noir du logo (#000000), à la place du gris très foncé.
       Voir la règle générale h1…h6, plus bas, après `body`. */
    --couleur-titres: #000000;
    /* Boutons : même accent rouge, avec un rouge plus foncé au survol. */
    --couleur-boutons: #EB292C;
    --couleur-boutons-fonce: #C12224;
    --light-text: #ffffff;
    --background-color: #f8f9fa;
    --background-image: url('../images/bac2.jpg');

    /* Reprise des variables Bootstrap. Sans elles, ses utilitaires
       (.text-primary, .bg-primary), les liens et les anneaux de focus gardent
       le bleu #0d6efd du framework — invisible dans nos fichiers, donc facile
       à oublier lors d'un changement de charte. */
    --bs-blue: #000000;
    --bs-primary: #000000;
    --bs-primary-rgb: 0, 0, 0;
    --bs-link-color: #000000;
    --bs-link-color-rgb: 0, 0, 0;
    --bs-link-hover-color: #000000;
    --bs-link-hover-color-rgb: 0, 0, 0;
    --bs-focus-ring-color: rgba(0, 0, 0, 0.25);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.testimonial-carousel .owl-nav button {
    position: absolute;
    background: var(--couleur-boutons) !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    font-size: 20px !important;
}

.testimonial-carousel .owl-nav button.owl-prev {
    left: -20px;
}

.testimonial-carousel .owl-nav button.owl-next {
    right: -20px;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.avatar-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .testimonial-carousel .owl-nav {
        display: none;
    }
}


/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}
.stats-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.stats-label {
    font-size: 1.1rem;
    opacity: 0.9;
}
/* Process Steps Cards */
.process-step {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.process-step h4 {
    color: var(--couleur-titres);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.process-step p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Features Cards */
.feature-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    color: #000000;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--couleur-titres);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Section Spacing */
.process-section, .features-section {
    padding: 5rem 0;
}

.process-section h2, .features-section h2 {
    margin-bottom: 3rem;
    color: var(--couleur-titres);
        font-size: 2rem;
    text-align: center;
}

/* Loan Type Cards */
.loan-type-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.loan-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.loan-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loan-type-card:hover::before {
    opacity: 1;
}

.loan-type-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.loan-type-card h3 {
    color: var(--couleur-titres);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.loan-type-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.loan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.loan-features-list li {
    color: #555;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.loan-features-list li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.loan-type-card .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .loan-type-card {
        padding: 1.75rem;
    }
    
    .loan-type-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .loan-type-card {
        padding: 1.5rem;
    }
    
    .loan-type-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .loan-type-card h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .loan-type-card {
        padding: 1.25rem;
    }
    
    .loan-type-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .loan-features-list li {
        font-size: 0.9rem;
    }
}

/* Calculator Results Styles */
.calculator-result {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.result-header h3 {
    color: #000000;
    margin-bottom: 0.5rem;
}

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

.result-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.result-item h4 {
    color: #fd0d0d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.result-item p {
    color: #212529;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.result-details {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.result-details h4 {
    color: #fd0d0d;
    margin-bottom: 1rem;
}

.result-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-details li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.result-details li:last-child {
    border-bottom: none;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.result-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    min-width: 200px;
}

.result-actions .btn-print {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.result-actions .btn-print:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('images/cta-pattern.svg') no-repeat;
    background-size: cover;
    opacity: 0.1;
}

/* Dropdown Submenu */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
}
.dropdown-submenu:hover .dropdown-menu {
    display: block;
}
/* Removed invalid CSS block */

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.service-icon i {
    font-size: 2rem;
    color: white;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 1rem;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #000000;
    padding: 3px;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}
.stats-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.stats-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('images/cta-pattern.svg') no-repeat;
    background-size: cover;
    opacity: 0.1;
}

/* Dropdown Submenu */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
}
.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.personal-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 1rem;
    opacity: 0.9;
}
    /* ...existing styles... */
    
    .dropdown-submenu {
        position: relative;
    }
    
    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
    }
    
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu > .dropdown-item:after {
        display: inline-block;
        margin-left: 0.5em;
        vertical-align: middle;
        content: "";
        border-top: 0.3em solid transparent;
        border-right: 0;
        border-bottom: 0.3em solid transparent;
        border-left: 0.3em solid;
    }

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* ==========================================================================
   COULEUR DES TITRES — --couleur-titres (#000000)
   ==========================================================================
   Tous les titres du site (h1…h6) passent au noir du logo (#000000), à la
   place du gris très foncé qu'ils héritaient de `body` (#333333) ou de
   Bootstrap (#212529).

   ⚠️ Cette règle est écrite AVANT les règles de section : elle ne concerne que
   les titres qui n'ont pas de couleur propre. Les titres de la charte
   (noir #000000) et les titres blancs sur fond sombre gardent leur
   couleur, leurs sélecteurs (classes) étant plus spécifiques — ou `!important`.
   Le bandeau cookies (fond sombre) est révoqué plus bas (.cookie-alert h5).
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--couleur-titres);
}

/* Titres de cartes Bootstrap (`.card-title`, ex. noms des banques partenaires) :
   Bootstrap impose `color: var(--bs-card-title-color)`, variable laissée VIDE
   par `.card` — la déclaration devient invalide et l'emporte sur la règle h5
   ci-dessus (le titre hérite alors de `.card`, soit #212529). Cette règle de
   classe reprend donc la main pour appliquer le noir. */
.card-title {
    color: var(--couleur-titres);
}

/* --------------------------------------------------------------------------
   EXCEPTIONS — TITRES SUR FOND SOMBRE (ils restent blancs)
   Les bandeaux héros (photo + voile noir) et la bannière du carrousel de
   l'accueil affichent un texte blanc : le noir y serait illisible.
   Ces titres reprennent la couleur du conteneur (`color: inherit`), comme
   avant l'ajout de la règle générale des titres.
   -------------------------------------------------------------------------- */
.hero-section h1, .hero-section h2, .hero-section h3,
.hero-section h4, .hero-section h5, .hero-section h6,
.text-white h1, .text-white h2, .text-white h3,
.text-white h4, .text-white h5, .text-white h6,
.carousel-caption h1, .carousel-caption h2, .carousel-caption h3,
.carousel-caption h4, .carousel-caption h5, .carousel-caption h6 {
    color: inherit;
}

/* ==========================================================================
   BOUTONS — ACCENT ROUGE (--couleur-boutons)
   ==========================================================================
   Les boutons d'action du site passent au rouge #EB292C, texte blanc ; au
   survol ils s'assombrissent (#C12224). Les boutons clairs ou à contour
   (btn-light, btn-outline-*) suivent la même couleur. Restent inchangés :
   les croix de fermeture (.btn-close) et le bouton WhatsApp (vert de marque).
   ========================================================================== */

/* Boutons Bootstrap : navbar « Apply for a Loan », retour en haut, impression,
   prise de rendez-vous de l'accueil (btn-primary) et bouton à contour de la
   politique de cookies (btn-outline-primary). */
.btn-primary {
    --bs-btn-bg: var(--couleur-boutons);
    --bs-btn-border-color: var(--couleur-boutons);
    --bs-btn-hover-bg: var(--couleur-boutons-fonce);
    --bs-btn-hover-border-color: var(--couleur-boutons-fonce);
    --bs-btn-active-bg: var(--couleur-boutons-fonce);
    --bs-btn-active-border-color: var(--couleur-boutons-fonce);
    --bs-btn-disabled-bg: var(--couleur-boutons);
    --bs-btn-disabled-border-color: var(--couleur-boutons);
    --bs-btn-focus-shadow-rgb: 235, 41, 44;
}

.btn-outline-primary {
    --bs-btn-color: var(--couleur-boutons);
    --bs-btn-border-color: var(--couleur-boutons);
    --bs-btn-hover-bg: var(--couleur-boutons);
    --bs-btn-hover-border-color: var(--couleur-boutons);
    --bs-btn-active-bg: var(--couleur-boutons-fonce);
    --bs-btn-active-border-color: var(--couleur-boutons-fonce);
    --bs-btn-disabled-color: var(--couleur-boutons);
    --bs-btn-disabled-border-color: var(--couleur-boutons);
}

/* Gestion du débordement de texte */
.text-translated {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
}

/* Structure de base */
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    padding: 0;
    top: 0 !important;
    /* Exprimé en rem (0.875rem = 14 px à l'échelle d'origine) pour suivre
       l'échelle générale du site définie en fin de fichier. */
    font-size: 0.875rem;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Navigation */
.navbar {
    background: var(--primary-gradient);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Boutons */
.btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-light {
    background-color: var(--couleur-boutons);
    color: var(--light-text);
    border: none;
}

.btn-light:hover {
    background-color: var(--couleur-boutons-fonce);
    color: var(--light-text);
    transform: translateY(-1px);
}

/* Le bouton « Accept » du bandeau cookies est désactivé tant que la case n'est
   pas cochée : Bootstrap lui applique alors son gris par défaut (--bs-btn-
   disabled-*), qui l'emporte sur `.btn-light`. On garde donc le rouge, en plus
   pâle, pour signaler l'état inactif. */
.btn-light:disabled,
.btn-light.disabled {
    background-color: #F0A3A5;
    color: #ffffff;
    border: none;
    opacity: 1;
}

.btn-outline-light {
    border: 2px solid var(--light-text);
    color: var(--light-text);
}

.btn-outline-light:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background: var(--primary-gradient);
    color: var(--light-text);
    padding: 3rem 0;
    width: 100%;
}

footer h5 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary-gradient);
        padding: 1rem;
        border-radius: 4px;
        margin-top: 0.5rem;
    }

    .nav-buttons {
        margin-top: 1rem;
        flex-direction: column;
    gap: 0.5rem;
}

    .nav-buttons .btn {
        width: 100%;
        margin: 0.25rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .process-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .testimonial-image {
        height: 250px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-collapse.show {
    animation: fadeIn 0.3s ease forwards;
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    padding: 8rem 0 6rem;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-pattern.png') repeat;
    opacity: 0.1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    color: #4CAF50;
    font-size: 1.25rem;
}

.hero-image-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Service Cards */
.services-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.services-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.service-card {
    flex: 1;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.service-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay i {
    color: white;
    font-size: 2.5rem;
}

.service-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--couleur-titres);
}

.service-rate {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #666;
}

.service-features li i {
    color: var(--primary-color);
}

.service-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.process-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.process-card:hover {
    transform: translateY(-10px);
}

.process-number {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 600;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.process-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.process-card p {
    color: #666;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.testimonial-image {
    height: 300px;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #666;
}

.testimonial-author h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--primary-color);
    margin-bottom: 0;
}
.stats-section {
    background-color: #f8f9fa;
}

.stats-section .compact-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.stats-section .compact-card:hover {
    transform: translateY(-5px);
}

.stats-section .counter {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stats-section .text-muted {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .stats-section .counter {
        font-size: 2rem;
    }
}
.stats-section .compact-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.stats-section .compact-card:hover {
    transform: translateY(-5px);
}

.stats-section .counter {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .stats-section .counter {
        font-size: 2rem;
    }

    .stats-section .card-body {
        padding: 1.5rem !important;
    }
}


/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Additional Responsive Adjustments */
@media (max-width: 991.98px) {
    .loan-type-card {
        padding: 1.75rem;
    }
    
    .loan-type-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .loan-type-card {
        padding: 1.5rem;
    }
    
    .loan-type-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .loan-type-card h3 {
        font-size: 1.25rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .loan-type-card {
        padding: 1.25rem;
    }
    
    .loan-type-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .loan-features-list li {
        font-size: 0.9rem;
    }
    
    .result-item {
        padding: 0.75rem;
    }
}

/* Responsive adjustments for services */
@media (max-width: 1200px) {
    .services-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-card {
        min-width: 280px;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
    width: 100%;
        max-width: 400px;
}
}

/* Styles pour le navbar */
body {
    overflow-x: hidden; /* Empêche le défilement horizontal */
    padding-top: 10px; /* Hauteur de la navbar */
}

.navbar {
    position: fixed;
   
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

/* Styles pour l'offcanvas */
.offcanvas {
    max-width: 300px;
}

/* Ajustements responsives */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px; /* Logo plus petit sur mobile */
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Fix pour les éléments qui pourraient causer le défilement horizontal */
.row {
    margin-left: 0;
    margin-right: 0;
}

.container-fluid,
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
}

.cookie-alert {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    margin: 0;
    border-radius: 0;
    /* Fond sombre : le texte doit être clair. Sans cette règle, la couleur
       héritée de `.alert-dark` (quasi noire) rendait le bandeau illisible. */
    color: #ffffff;
    background-color: #212529;
    max-height: 85vh;
    overflow-y: auto;
}

.cookie-alert a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-alert .form-check-label {
    color: #ffffff;
}

/* ==========================================================================
   CHAMP PIÈGE ANTI-ROBOT (formulaires de contact et de demande de crédit)
   Un humain ne le voit pas et ne peut pas le remplir ; un robot qui remplit
   tous les champs le remplit et se fait rejeter côté serveur. Volontairement
   hors écran plutôt qu'en « display: none » : beaucoup de robots ignorent les
   champs masqués par display. Défini ici, dans la feuille chargée par toutes
   les pages, car le formulaire de contact n'inclut pas grant-form.css.
   ========================================================================== */
.gf-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.cookie-alert.show {
    transform: translateY(0);
}

/* Le bandeau cookies a un fond sombre : ses titres restent clairs et ne
   prennent pas l'accent rouge (règle générale h1…h6 plus haut). */
.cookie-alert h1,
.cookie-alert h2,
.cookie-alert h3,
.cookie-alert h4,
.cookie-alert h5,
.cookie-alert h6 {
    color: inherit;
}

@media (max-width: 767px) {
    .cookie-alert {
        bottom: 56px; /* Hauteur de la barre de navigation mobile */
    }
}

/* ==========================================================================
   TITRES DE SECTION (partagés : page À propos, page d'accueil)
   Les variables --primaire / --accent sont définies par le conteneur de la
   section concernée (voir css/timeline.css et css/home-charts.css).
   ========================================================================== */
.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;
}

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

/* ==========================================================================
   GARDE-FOU ANTI-DÉBORDEMENT HORIZONTAL
   Empêche la page d'être plus large que la fenêtre, quelle que soit sa
   largeur : navigateur étroit, panneau intégré à l'éditeur, iframe d'aperçu…
   C'est la cause du message « Content width exceeds iframe size ».
   Vérifié : aucun élément du site n'utilise « position: sticky », donc
   « overflow-x: hidden » n'a aucun effet de bord ici.
   ========================================================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Aucun média ne peut dépasser son conteneur */
img,
svg,
video,
canvas,
iframe,
embed,
object {
    max-width: 100%;
}

/* Un mot très long (URL, adresse e-mail, code) ne peut pas élargir la page */
body {
    overflow-wrap: break-word;
    word-wrap: break-word; /* anciens navigateurs */
}

/* ==========================================================================
   FLUIDITÉ — défilement, apparition des blocs, images
   ==========================================================================
   Tout ce qui suit vise le confort de navigation : défilement doux, pas de
   « saut » pendant le chargement des images, apparitions plus rapides, et
   respect du réglage système « réduire les animations ».
   ========================================================================== */

/* --- 1. Défilement doux ------------------------------------------------
   Les liens vers une ancre (#section) glissent au lieu de sauter.
   `scroll-padding-top` évite que la barre de navigation, qui reste en haut
   de l'écran, recouvre le titre de la section visée. */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* Le même décalage quand on atteint un élément par tabulation */
:target {
    scroll-margin-top: 90px;
}

/* --- 2. Respect de « réduire les animations » --------------------------
   Si le visiteur a demandé moins d'animations dans son système (motion
   sickness, économie de batterie…), on coupe tout. Cette règle est placée
   APRÈS les réglages de vitesse : à spécificité égale, c'est la dernière
   déclarée qui gagne. */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- 3. Images : plus de « saut » pendant le chargement ----------------
   Le navigateur connaît les dimensions du fichier et réserve la place
   exacte : le texte ne se décale plus quand la photo arrive. */
img {
    height: auto;
}

/* --- 4. Apparitions plus rapides ---------------------------------------
   AOS anime les blocs à leur entrée dans l'écran. On raccourcit la durée
   par défaut pour que le contenu se pose au lieu de « flotter ». */
[data-aos] {
    transition-duration: 600ms !important;
    transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

/* Annulation prioritaire pour les visiteurs qui réduisent les animations */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        transition-duration: 0.01ms !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* --- 5. Boutons et liens : retour visuel immédiat ---------------------- */
a,
button,
.btn {
    transition: color 0.18s ease, background-color 0.18s ease,
        border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

/* --- 6. Barres de défilement discrètes (navigateurs WebKit) ------------ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #eef1f6;
}

::-webkit-scrollbar-thumb {
    background: #c3ccd8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ==========================================================================
   ÉCHELLE GÉNÉRALE DU SITE
   ==========================================================================
   Tout le site — typographie, marges, paddings des sections, boutons,
   champs de formulaire, composants Bootstrap — est exprimé en « rem »,
   c'est-à-dire en multiples de la taille définie ci-dessous.

   ⚠ IL N'Y A DONC QU'UNE SEULE VALEUR À MODIFIER pour agrandir ou réduire
     l'ensemble du site d'un seul coup :

         16px  = taille d'origine (site livré)
         15px  = − 6 %
         14px  = − 12,5 %   <-- valeur actuelle
         13px  = − 19 %

     Tous les réglages ci-dessus restent valables : ils s'expriment en rem
     et suivent donc automatiquement cette échelle.

   ⚠ Ne pas descendre sous 13px : en dessous, les textes secondaires
     (mentions, .form-text) passent sous 10px et deviennent difficiles à lire.
   ========================================================================== */
html {
    font-size: 14px;
}
