/* ============================================================
   KMF CONSULTING INTERNATIONAL
   PAGE NOS SERVICES
   DESIGN PREMIUM / INSTITUTIONNEL
   LA DIFFERENCES C'EST L'AJOUT DE A A LA CLASS KMF
   ============================================================ */


/* ============================================================
   VARIABLES LOCALES
   ============================================================ */

.kmfa-services-page {

    --kmf-navy: #e3e6eb;
    --kmf-navy-dark: #e9edf1;
    --kmf-blue: #d2d9e0;

    --kmf-gold: #d4af37;
    --kmf-gold-light: #e4c65a;

    --kmf-white: #ffffff;
    --kmf-text: #1e293b;
    --kmf-muted: #64748b;

    --kmf-section: #f8fafc;
    --kmf-card: #ffffff;

    --kmf-border: rgb(236, 17, 72);

    width: 100%;

    overflow: hidden;

    color: var(--text-main);

    background: var(--bg-body);
}
/* ============================================================
   SERVICE / HERO / BANNIÈRE
   ============================================================ */

.kmfa-services-hero {

    position: relative;

    min-height: 400px; /*470px*/

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 130px 25px 90px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #040549 0%,
            #050838 48%,
            #042696 100%
        );
}
/* Image / lumière en arrière-plan */

.kmfa-services-hero::before {

    content: "";

    position: absolute;

    width: 650px;

    height: 650px;

    border-radius: 50%;

    top: -380px;

    right: -150px;

    background:
        radial-gradient(
            circle,
            rgba(212,175,55,.18) 0%,
            rgba(212,175,55,.06) 35%,
            transparent 70%
        );

    animation:
        kmfHeroLight 10s ease-in-out infinite alternate;

    pointer-events: none;
}


@keyframes kmfHeroLight {

    0% {
        transform: translate(0,0) scale(1);
    }

    100% {
        transform: translate(-80px,70px) scale(1.15);
    }
}


/* Deuxième halo */

.kmfa-services-hero::after {

    content: "";

    position: absolute;

    width: 400px;

    height: 400px;

    border-radius: 50%;

    bottom: -280px;

    left: -120px;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.05),
            transparent 70%
        );

    animation:
        kmfHeroLightTwo 12s ease-in-out infinite alternate;

    pointer-events: none;
}


@keyframes kmfHeroLightTwo {

    0% {
        transform: translate(0,0);
    }

    100% {
        transform: translate(70px,-50px);
    }
}


/* Overlay */

.kmfa-services-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7,24,44,.35),
            rgba(10,31,56,.05),
            rgba(7,24,44,.30)
        );

    z-index: 1;

    pointer-events: none;
}


/* Contenu */

.kmfa-services-hero-content {

    position: relative;

    z-index: 3;

    width: 100%;

    max-width: 850px;

    margin: 0 auto;

    animation:
        kmfHeroContent .9s ease forwards;
}


@keyframes kmfHeroContent {

    from {

        opacity: 0;

        transform: translateY(35px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}
/* ============================================================
   HERO EYEBROW
   ============================================================ */

.kmfa-services-eyebrow {

    display: inline-block;

    color: var(--kmf-gold);

    font-size: .75rem;

    font-weight: 700;

    letter-spacing: 3.5px;

    margin-bottom: 15px;

    animation:
        kmfEyebrow .9s ease .15s both;
}


@keyframes kmfEyebrow {

    from {

        opacity: 0;

        letter-spacing: 8px;
    }

    to {

        opacity: 1;

        letter-spacing: 3.5px;
    }
}


/* Ligne dorée */

.kmfa-services-line {

    width: 55px;

    height: 3px;

    background: var(--kmf-gold);

    margin: 0 auto 20px;

    border-radius: 10px;

    animation:
        kmfLineReveal .8s ease .25s both;
}


@keyframes kmfLineReveal {

    from {

        width: 0;

        opacity: 0;
    }

    to {

        width: 55px;

        opacity: 1;
    }
}


/* ============================================================
   HERO TITRE
   ============================================================ */

.kmfa-services-hero h1 {

    margin: 0 0 20px;

    color: #ffffff;

    font-size: clamp(2.5rem, 5vw, 4.2rem);

    font-weight: 700;

    line-height: 1.05;

    letter-spacing: -1px;

    animation:
        kmfTitleReveal 1s ease .3s both;
}


@keyframes kmfTitleReveal {

    from {

        opacity: 0;

        transform: translateY(20px);

        filter: blur(5px);
    }

    to {

        opacity: 1;

        transform: translateY(0);

        filter: blur(0);
    }
}


/* Description */

.kmfa-services-hero p {

    max-width: 700px;

    margin: 0 auto 30px;

    color: rgba(255,255,255,.82);

    font-size: 1.05rem;

    line-height: 1.8;
    animation:
        kmfHeroText .9s ease .5s both;
}


@keyframes kmfHeroText {

    from {

        opacity: 0;

        transform: translateY(15px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}







/* ============================================================
   BOUTON HERO
   ============================================================ */

.kmf-services-hero-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 13px 25px;

    background: var(--kmf-gold);

    color: var(--kmf-navy);

    border: 1px solid var(--kmf-gold);

    border-radius: 6px;

    font-size: .9rem;

    font-weight: 700;

    box-shadow:
        0 7px 20px rgba(0,0,0,.2);

    transition:
        transform .35s ease,
        background-color .35s ease,
        box-shadow .35s ease;
}


.kmf-services-hero-btn i {

    transition:
        transform .35s ease;
}


.kmf-services-hero-btn:hover {

    background: #ffffff;

    color: black; /*var(--kmf-navy)*/

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(212,175,55,.25);
}


.kmf-services-hero-btn:hover i {

    transform: translateX(5px);
}



/* ============================================================
   INTRODUCTION
   ============================================================ */

.kmfs-services-intro {

    padding: 75px 25px 55px;

    background: var(--kmf-section);

    text-align: center;
}


.kmfs-services-intro-inner {

    max-width: 820px;

    margin: 0 auto;
}


/* Label */

.kmfs-services-intro-label {

    color: gold;  /*var(--kmf-gold)*/

    font-size: .72rem;

    font-weight: 700;

    letter-spacing: 2.5px;

    margin-bottom: 13px;
}


/* Titre */

.kmfs-services-intro h2 {

    position: relative;

    margin: 0 auto 22px;

    color: black;      /*var(--kmf-navy)*/

    font-size: 2.15rem;

    line-height: 1.25;

    font-weight: 700;
}


body.dark-mode .kmf-services-intro h2 {

    color: var(--kmf-gold);
}


/* Ligne */

.kmfs-services-intro h2::after {

    content: "";

    display: block;

    width: 50px;

    height: 3px;

    margin: 16px auto 0;

    background: var(--kmf-gold);

    border-radius: 5px;
}


/* Texte */

.kmfs-services-intro p {

    max-width: 720px;

    margin: 0 auto;

    color: rgb(17, 16, 16);   /*var(--kmf-muted)*/

    font-size: 1rem;

    line-height: 1.8;
}




























/* ==========================================
   SECTION HISTORIQUE - LETTRINES ET FADE-IN
   ========================================== */

.history-section {
    padding: 5rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.history-single-card {
    position: relative;
    background: var(--bg-card);
    padding: 3.5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    overflow: hidden;
}

.quote-icon {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 6rem;
    color: var(--secondary);
    opacity: 0.08;
    pointer-events: none;
}

/* Style des Paragraphes */
.history-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    text-align: justify;
    margin: 0;
}

/* --- EFFET 1 : Lettrine (Première lettre géante) --- */
.history-paragraph::first-letter {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--secondary); /* Couleur Dorée du Thème */
    float: left;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 4px;
    font-family: 'Inter', serif;
}

/* --- EFFET 2 : Animation de chargement au défilement --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Classe activée en JavaScript lors du scroll */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mises en valeur du texte */
.highlight-gold {
    font-weight: 700;
    color: var(--secondary);
}

.badge-inline {
    background: rgba(212, 175, 55, 0.12);
    color: var(--primary);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.95rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

body.dark-mode .badge-inline {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .history-single-card {
        padding: 2rem 1.5rem;
    }
    
    .history-paragraph {
        text-align: left;
    }
    
    .history-paragraph::first-letter {
        font-size: 2.5rem;
    }
}