/* =========================================================
   HOME PAGE — assets/css/home.css
========================================================= */

/* =========================================================
   HERO
========================================================= */

.home-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/*.home-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}*/

.home-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    animation: heroKenBurns 30s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: .9;
    }
    50% {
        transform: scale(1.12) translate(-1%, -1%);
        opacity: 1;
    }
    100% {
        transform: scale(1.05) translate(1%, 1%);
        opacity: .95;
    }
}

.home-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 60%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 1;
}

/*
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.62) 0%,
        rgba(0,0,0,0.35) 60%,
        rgba(0,0,0,0.20) 100%
    );
    z-index: 1;
}
*/

.home-hero-eyebrow {
    color: #ED6A18;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
}

.home-hero-title {
    color: #ffffff;
    font-size: clamp(2.2rem, 3vw, 4.1rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 32px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    max-width: 780px;
}

.home-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-tag {
    /* border-radius: 30px; */
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 500;
}

.hero-tag--muted {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.hero-tag--orange {
    background: #ED6A18;
    color: #ffffff;
}

/* =========================================================
   SHARED UTILITIES
========================================================= */

.home-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
}

.home-body-text {
    color: #6b7280;
    line-height: 1.8;
    font-size: 0.95rem;
}

.text-orange {
    color: #ED6A18;
}

.btn-home-secondary {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #111827;
    /* border-radius: 50px; */
    padding: 11px 28px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-home-secondary:hover {
    background: #111827;
    color: #ffffff;
}

.btn-news-all{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid #005FAC;
    color:#005FAC;
    padding:8px 16px;
    font-size:.85rem;
    text-decoration:none;
    transition:.3s;
}

.btn-news-all:hover{
    background:#005FAC;
    color:#fff;
}

/* =========================================================
   WHO ARE — VIDEO CARD
========================================================= */

.home-about {
    background: #ffffff;
}

.home-values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-values-list li {
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.5;
}

.home-video-wrapper {
    position: relative;
    /* border-radius: 20px; */
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.home-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.90);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ED6A18;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.home-play-btn:hover {
    background: #ED6A18;
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.08);
}

.home-video-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    /* border-radius: 20px; */
    backdrop-filter: blur(4px);
}

/* =========================================================
   MAP SECTION
========================================================= */

/* =========================================================
   MAP SECTION
========================================================= */

.home-map-section{
    background:#f3f3f3;
    padding:0;
}

#world-map{
    width:100%;
    height:650px;
    background:#f3f3f3;
    border:1px solid #e6e6e6;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
}

/* container vector map */
.jvectormap-container{
    background:#f3f3f3 !important;
}

/* =========================================================
   TOOLTIP MKBA
========================================================= */

/* =========================================================
   MAP SECTION
========================================================= */

/* =========================================================
   MAP SECTION
========================================================= */

.home-map-section{
    background:#f3f3f3;
    padding:0;
}

#world-map{
    width:100%;
    height:500px;
    background:#f3f3f3;
}

/* =========================================================
   COULEURS MAP (jsVectorMap overrides)
========================================================= */

.jvectormap-container{
    background:#f3f3f3 !important;
}

/* =========================================================
   TOOLTIP DEFAULT (hover simple)
========================================================= */

.mkba-tooltip{
    background:#fff;
    padding:12px 14px;
    border:1px solid #e5e5e5;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    min-width:180px;
    font-size:13px;
    border-radius:6px;
}

/* =========================================================
   MAP SECTION
========================================================= */

.home-map-section {
    background: #f3f3f3;
    padding: 0;
    position: relative;
}

#world-map {
    width: 100%;
    height: 500px;
    background: #f3f3f3;
    border: 1px solid #e0e0e0;
}

/* Fond du container jsVectorMap */
.jvm-container,
.jvectormap-container {
    background: #f3f3f3 !important;
}

/* Transition fluide sur les régions */
.jvm-region {
    transition: fill .25s ease;
    cursor: default;
}

/* Curseur pointer uniquement sur les pays actifs */
.jvm-region[data-active="true"] {
    cursor: pointer;
}

/* =========================================================
   CARD CLICK — positioning fix
========================================================= */

.home-map-section .container {
    position: relative; /* garantit le référentiel de position */
}

.mkba-country-card {
    position: absolute;
    width: 220px;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    overflow: hidden;
    z-index: 99999;
    display: none;
    transform: translate(-50%, calc(-100% - 12px));
    pointer-events: auto;
    border: 1px solid #e0e0e0;
}

.mkba-country-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.mkba-country-card-header img {
    width: 22px;
    height: 15px;
    object-fit: cover;
}

.mkba-country-card-header strong {
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.mkba-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #888;
    line-height: 1;
}

.mkba-close:hover { color: #333; }

.mkba-country-card-body {
    padding: 10px 12px;
    background: #fff;
}


.mkba-country-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-bottom: 6px;
}

.mkba-country-row:last-child { margin-bottom: 0; }

.mkba-country-row span   { color: #555; font-weight: 500; }
.mkba-country-row strong { color: #111; font-weight: 700; }


/* =========================================================
   TOOLTIP HOVER NATIF
========================================================= */

.mkba-tooltip {
    background: #fff;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}


/* =========================================================
   SERVICES VERSION MAQUETTE
========================================================= */
.home-services-section {
    background: #DEEFF8;
}

.service-item {
    padding-right: 25px;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: underline;
    text-decoration-color: #1f2937;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .3s ease,
                text-decoration-color .3s ease;
}

.service-title:hover {
    color: #005FAC;
    text-decoration-color: #005FAC;
}

.service-desc {
    font-size: 1rem;
    line-height: 2;
    color: #374151;
    margin: 0;
}

/* =========================================================
   PRODUITS
========================================================= */

.home-products-section {
    background: #f6f6f6;
}

.section-heading{
    position:relative;
    display:inline-block;
}

.section-accent{
    position:absolute;
    width:50px;
    height:34px;
    background:#FBE6D7;
    left:15px;
    top:20px;
    transform:translateY(-50%);
    z-index:0;
}

.home-section-title{
    position:relative;
    z-index:1;
    margin:0;
}

.home-section-title {
    position: relative;
    z-index: 1;
}

.product-card {
    position: relative;
    background: #fff;
    border: 1px solid #e9e9e9;
    min-height: 135px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* Trait bleu caché */
.product-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #005FAC;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s ease;
}

/* Apparition au hover */
.product-card:hover::after {
    transform: scaleX(1);
}

.product-link {
    position: absolute;
    top: 12px;
    right: 14px;
    color: #6fa8dc;
    font-size: .9rem;
}

.product-icon {
    width: 52px;
    height: 52px;
    background: #EAF5FF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.product-icon i {
    color: #005FAC;
    font-size: 1.4rem;
}

.product-title {
    text-align: center;
    font-size: .95rem;
    font-weight: 500;
    color: #374151;
    padding: 0 10px;
}

/* =========================================================
   INDICATEURS
========================================================= */
.home-stats-section {
    background: #F8EEE9;
}

.stats-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: #2f3542;
    max-width: 500px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-dot {
    width: 38px;
    height: 38px;
    background: #F5BC97;
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-number {
    font-size: 2.3rem;
    font-weight: 700;
    color: #2f3542;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-text {
    font-size: .95rem;
    color: #555;
    margin-top: 6px;
}

/* =========================================================
   RÉALISATIONS
========================================================= */

.home-achievements-section{
    background:#fff;
}

.home-achievement-card{
    background:#EAF3FB;
    border:none;
    padding:24px 28px;
    display:flex;
    align-items:flex-start;
    gap:20px;
    transition:.3s;
}

.home-achievement-card:hover{
    transform:translateY(-2px);
}

.home-achievement-logos{
    display:flex;
    flex-direction:row;
    gap:10px;
    align-items:flex-start;
    flex-shrink:0;
}

.home-ach-logo{
    width:55px;
    height:auto;
    border:none;
    background:none;
    padding:0;
}

.home-ach-flag{
    width:28px;
    height:28px;
    object-fit:cover;
    border-radius:50%;
    border:none;
    padding:0;
}

.home-achievement-body{
    flex:1;
}

.home-ach-name{
    font-size:1.1rem;
    font-weight:600;
    color:#4A4A4A;
    margin-bottom:3px;
}

.home-ach-sub{
    font-size:.80rem;
    color:#8A8A8A;
    margin-bottom:15px;
}

.home-ach-desc{
    font-size:.88rem;
    color:#555;
    line-height:2;
    margin-bottom:15px;
}

.home-ach-link-wrapper{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
}

.home-ach-separator{
    color:#005FAC;
    font-size:1rem;
    font-weight:700;
    line-height:1;
}

.home-ach-link{
    position:relative;
    display:inline-block;

    color:#005FAC;
    font-size:.85rem;
    font-weight:600;
    text-decoration:none;

    transition:color .3s ease;
}

/* Soulignement animé */
.home-ach-link::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-2px;
    width:100%;
    height:2px;
    background:#005FAC;

    transform:scaleX(0);
    transform-origin:left;
    transition:transform .3s ease;
}

.home-ach-link:hover{
    color:#ED6A18;
}

.home-ach-link:hover::after{
    transform:scaleX(1);
}

/* =========================================================
   ACTUALITÉS
========================================================= */

.home-news-section{
    background:#fff;
}

.home-news-card{
    position:relative;
    background:#F2F2F2;
    height:100%;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    transition:.3s ease;
}

.home-news-card:hover{
    transform:translateY(-3px);
}

.home-news-card::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:3px;
    background:#005FAC;
    transform:scaleX(0);
    transform-origin:center;
    transition:transform .3s ease;
}

.home-news-card:hover::after{
    transform:scaleX(1);
}

.home-news-img-wrapper{
    display:block;
    aspect-ratio:16/10;
    overflow:hidden;
}

.home-news-img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .4s ease;
}

.home-news-card:hover .home-news-img{
    transform:scale(1.05);
}

.home-news-body{
    padding:14px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.home-news-date{
    font-size:.72rem;
    color:#9C9C9C;
    margin-bottom:10px;
}

.home-news-title{
    margin-bottom:12px;
    line-height:1.3;
}

.home-news-title-link{
    color:#005FAC;
    font-size:1.05rem;
    font-weight:500;
    text-decoration:none;
    transition:color .3s ease;
}

.home-news-card:hover .home-news-title-link,
.home-news-title-link:hover{
    color:#ED6A18;
}

.home-news-desc{
    color:#666;
    font-size:.85rem;
    line-height:1.7;
    flex:1;
}

.home-news-link{
    align-self:flex-end;
    margin-top:auto; /* pousse le lien vers le bas */
    display:inline-flex;
    align-items:center;
    gap:4px;
    color:#005FAC;
    font-size:.82rem;
    font-weight:500;
    text-decoration:none;
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease,
        color .3s ease;
}

.home-news-card:hover .home-news-link{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.home-news-link:hover{
    color:#ED6A18;
}

.home-news-link i{
    transition:transform .3s ease;
}

.home-news-link:hover i{
    transform:translateX(4px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .home-hero {
        max-height: 700px;
        min-height: 500px;
    }

    #mkba-map {
        height: 320px;
    }

    .home-achievement-card {
        flex-direction: column;
        gap: 16px;
    }

    .home-achievement-logos {
        flex-direction: row;
    }
}

@media (max-width: 767px) {
    .home-hero-title {
        font-size: 2rem;
    }

    .home-hero {
        max-height: 600px;
    }

    #mkba-map {
        height: 260px;
    }

    .home-stat-value {
        font-size: 1.8rem;
    }

    .home-industries-grid {
        justify-content: center;
    }
}

.home-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.home-video-iframe iframe {
    width: 100%;
    height: 100%;
    border: 0;
}