/* ============================================================
   AFRICOM-CI — CSS UPGRADE v4
   Icônes solutions + Galerie + Menu mobile v2 + dynamisme
   ============================================================ */

/* ============================================================
   FIX ICÔNES SOLUTIONS — Centrage et affichage garantis
   ============================================================ */

/* Règle universelle pour les icônes Font Awesome dans un cercle */
.solution-card .icon-box i,
.solution-card-v2-icon i,
.bento-featured-icon i,
.bento-compact-icon i,
.related-card-icon i,
.detail-intro-icon i,
.detail-feature-icon i,
.detail-hero-icon i,
.why-v3-icon i,
.about-v3-feature-icon i,
.about-v3-badge-icon i,
.about-feature-icon i,
.value-icon i,
.value-card-icon i,
.team-avatar i,
.team-photo-bg i,
.stats-band-icon i,
.contact-card-icon i,
.contact-card-v2-icon i,
.contact-split-map-icon i,
.case-contact i,
.case-study-v3-block-icon i,
.presentation-badge i,
.presentation-feature-icon i,
.mobile-menu-profile-avatar i,
.mm-icon i,
.mobile-menu-nav .mm-icon i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-style: normal !important;
    text-align: center !important;
}

/* Icônes FA Brands */
.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Fallback : toutes les <i> avec une classe fa- */
i[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0B2545, #1B4F8A);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: opacity .6s ease, visibility .6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-logo img {
    height: 110px;
    width: auto;
    background: #fff;
    border-radius: 12px;
    padding: 8px 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
    animation: pulse-loader 1.5s ease-in-out infinite;
}

@keyframes pulse-loader {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.06); opacity: .9; }
}

.page-loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,.15);
    border-radius: 3px;
    overflow: hidden;
}

.page-loader-bar span {
    display: block;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #fff);
    border-radius: 3px;
    animation: loader-slide 1.2s ease-in-out infinite;
}

@keyframes loader-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* ============================================================
   MENU MOBILE v2 — Panneau premium
   ============================================================ */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 88%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right .5s cubic-bezier(.22,.61,.36,1);
    box-shadow: -25px 0 70px rgba(11,37,69,.35);
    overflow: hidden;
}

.mobile-menu-panel.open { right: 0; }

/* Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, #0B2545, #1B4F8A);
    position: relative;
    flex-shrink: 0;
}

.mobile-menu-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(74,144,217,.4), transparent 55%);
    pointer-events: none;
}

.mobile-menu-logo {
    position: relative;
    z-index: 2;
}

.mobile-menu-logo img {
    height: 42px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 5px 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.mobile-menu-close {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .35s cubic-bezier(.22,.61,.36,1);
}

.mobile-menu-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s;
}

.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child  { transform: rotate(-45deg); }

.mobile-menu-close:hover {
    background: rgba(255,255,255,.25);
    transform: rotate(90deg);
}

/* Profil (help) */
.mobile-menu-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    background: var(--color-light);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.mobile-menu-profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(74,144,217,.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-profile-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.mobile-menu-profile-info a {
    font-size: 12.5px;
    color: var(--color-accent);
    font-weight: 600;
}

/* Navigation */
.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.mobile-menu-nav::-webkit-scrollbar { width: 5px; }
.mobile-menu-nav::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 5px;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav > ul > li {
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.mobile-menu-nav > ul > li:last-child { border-bottom: none; }

/* Lien principal */
.mobile-menu-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 22px;
    color: var(--color-primary);
    font-size: 14.5px;
    font-weight: 600;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
    position: relative;
}

.mobile-menu-nav .mm-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(74,144,217,.1);
    color: var(--color-accent);
    font-size: 16px;
    flex-shrink: 0;
    transition: all .35s cubic-bezier(.22,.61,.36,1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-nav .mm-text {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.mobile-menu-nav .mm-arrow {
    font-size: 12px;
    color: var(--color-gray);
    transition: transform .3s;
    opacity: .5;
}

.mobile-menu-nav .mm-badge {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .8px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

.mobile-menu-nav > ul > li > a:hover,
.mobile-menu-nav > ul > li > a.active {
    background: linear-gradient(90deg, rgba(74,144,217,.08), transparent);
    padding-left: 26px;
}

.mobile-menu-nav > ul > li > a:hover .mm-icon,
.mobile-menu-nav > ul > li > a.active .mm-icon {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: #fff;
    transform: scale(1.06) rotate(-4deg);
    box-shadow: 0 8px 20px rgba(74,144,217,.35);
}

.mobile-menu-nav > ul > li > a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-secondary));
    border-radius: 0 4px 4px 0;
}

.mobile-menu-nav > ul > li > a:hover .mm-arrow {
    transform: translateX(4px);
    color: var(--color-accent);
    opacity: 1;
}

/* Bouton toggle sous-menu */
.mm-toggle {
    position: absolute;
    top: 15px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74,144,217,.08);
    border: none;
    color: var(--color-accent);
    font-size: 13px;
    cursor: pointer;
    transition: all .35s cubic-bezier(.22,.61,.36,1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mm-toggle:hover { background: rgba(74,144,217,.2); }
.mm-toggle.open {
    transform: rotate(180deg);
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: #fff;
}

/* Sous-menu */
.mm-submenu {
    display: none;
    background: linear-gradient(180deg, var(--color-light), #fff);
    padding: 8px 0;
    border-top: 1px solid var(--color-border);
    animation: mm-slide-down .35s cubic-bezier(.22,.61,.36,1);
}

.mm-submenu.open { display: block; }

@keyframes mm-slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mm-submenu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 22px 11px 32px;
    font-size: 13px;
    color: var(--color-gray);
    font-weight: 500;
    transition: all .25s;
    position: relative;
}

.mm-submenu a i {
    color: var(--color-accent);
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.mm-submenu a::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
    transform: translateY(-50%);
    opacity: 0;
    transition: all .25s;
}

.mm-submenu a:hover {
    background: rgba(74,144,217,.06);
    color: var(--color-accent);
    padding-left: 40px;
}

.mm-submenu a:hover::before { opacity: 1; }

/* Réseaux sociaux */
.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 18px 22px;
    border-top: 1px solid var(--color-border);
    background: #fff;
    flex-shrink: 0;
}

.mobile-menu-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(74,144,217,.08);
    color: var(--color-accent);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
}

.mobile-menu-social a:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: #fff;
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 24px rgba(74,144,217,.4);
}

/* CTA footer */
.mobile-menu-footer {
    padding: 16px 22px 22px;
    background: linear-gradient(180deg, #fff, var(--color-light));
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--color-danger), #b71c1c);
    color: #fff;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 10px 24px rgba(211,47,47,.3);
    transition: all .3s;
}

.mobile-menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(211,47,47,.45);
}

/* ============================================================
   GALERIE — Section + grille + filtres + lightbox
   ============================================================ */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, var(--color-light) 100%);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(74,144,217,.06), transparent 60%);
    pointer-events: none;
}

.gallery-section .container { position: relative; z-index: 2; }

/* Filtres */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
}

.gallery-filter i {
    font-size: 12px;
    color: var(--color-accent);
    transition: color .3s;
}

.gallery-filter:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.gallery-filter.active {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 26px rgba(74,144,217,.35);
}

.gallery-filter.active i { color: #fff; }

/* Grille galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 50px;
}

.gallery-item {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(11,37,69,.08);
    transition: all .5s cubic-bezier(.22,.61,.36,1);
    animation-delay: var(--delay, 0s);
    position: relative;
    cursor: pointer;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(11,37,69,.18);
}

.gallery-img {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--color-light);
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22,.61,.36,1);
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(11,37,69,.9));
    opacity: 0;
    transition: opacity .4s;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 18px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,.95);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .8px;
    backdrop-filter: blur(6px);
}

.gallery-cat i { color: var(--color-accent); font-size: 10px; }

.gallery-zoom {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: all .35s cubic-bezier(.22,.61,.36,1);
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-zoom:hover {
    background: var(--color-accent);
    color: #fff;
    transform: scale(1.15) rotate(90deg);
}

.gallery-info {
    padding: 20px 22px 24px;
}

.gallery-info h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 8px;
    line-height: 1.35;
}

.gallery-info p {
    font-size: 13.5px;
    color: var(--color-gray);
    line-height: 1.6;
    margin: 0;
}

/* CTA galerie */
.gallery-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 26px 32px;
    background: linear-gradient(135deg, #0B2545, #1B4F8A);
    border-radius: 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.gallery-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(74,144,217,.35), transparent 55%);
    pointer-events: none;
}

.gallery-cta > * { position: relative; z-index: 2; }

.gallery-cta-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 260px;
}

.gallery-cta-content > i {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(74,144,217,.25);
    color: var(--color-accent);
    font-size: 24px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-cta-content strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
}

.gallery-cta-content p {
    font-size: 14px;
    color: rgba(255,255,255,.8);
    margin: 0;
    line-height: 1.5;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11,37,69,.96);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    opacity: 0;
    visibility: hidden;
    transition: all .4s cubic-bezier(.22,.61,.36,1);
}

.gallery-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    transform: scale(.92);
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

.gallery-lightbox.open .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 40px 100px rgba(0,0,0,.5);
}

.lightbox-caption {
    text-align: center;
    color: #fff;
    max-width: 700px;
}

.lightbox-caption h4 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
}

.lightbox-caption p {
    font-size: 15px;
    color: rgba(255,255,255,.75);
    margin: 0;
    line-height: 1.6;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all .3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.1) translateX(-4px); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.1) translateX(4px); }

/* ============================================================
   DYNAMISME — Effets supplémentaires
   ============================================================ */

/* Curseur personnalisé sur les boutons */
.btn-hero, .btn-primary-custom, .btn-ghost,
.gallery-filter, .gallery-zoom, .btn-admin-primary {
    cursor: pointer;
}

/* Effet tilt subtil au survol des cartes */
.solution-card-v2, .project-v3-card, .gallery-item,
.bento-featured, .bento-compact, .value-card-v2 {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Halo au survol */
.solution-card-v2:hover::after,
.project-v3-card:hover::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--color-accent), transparent 60%);
    opacity: .15;
    pointer-events: none;
    z-index: 1;
}

/* Particules supplémentaires (déjà présentes) */

/* Animations des chiffres */
.stats-band-value {
    background: linear-gradient(135deg, #fff 30%, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-light); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-accent), var(--color-secondary));
    border-radius: 10px;
    border: 2px solid var(--color-light);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .gallery-img { height: 200px; }

    .gallery-cta {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .gallery-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }

    .gallery-lightbox { padding: 30px 60px; }
}

@media (max-width: 767px) {
    .gallery-section { padding: 60px 0; }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-img { height: 220px; }

    .gallery-filter {
        padding: 9px 16px;
        font-size: 12.5px;
    }

    .gallery-cta { padding: 22px; }

    .lightbox-close { top: 12px; right: 12px; width: 44px; height: 44px; }
    .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 16px; }

    .lightbox-caption h4 { font-size: 17px; }
    .lightbox-caption p { font-size: 13.5px; }

    .gallery-lightbox { padding: 20px 15px; }

    /* Menu mobile plus compact */
    .mobile-menu-panel { width: 92%; }
    .mobile-menu-nav > ul > li > a { padding: 13px 20px; font-size: 13.5px; }
    .mobile-menu-nav .mm-icon { width: 36px; height: 36px; font-size: 15px; }
    .mm-toggle { top: 12px; right: 14px; width: 36px; height: 36px; }
    .mm-submenu a { padding: 10px 20px 10px 28px; font-size: 12.5px; }
    .mobile-menu-social a { width: 38px; height: 38px; font-size: 14px; }
}

@media (max-width: 480px) {
    .gallery-img { height: 200px; }
    .gallery-filter { padding: 8px 14px; font-size: 12px; }
    .mobile-menu-panel { width: 95%; }
}
/* ============================================================
   BANDEAU DÉFILANT — IMAGES MATÉRIEL (compact & design)
   ============================================================ */
.tech-band-section {
    background: #fff;
    padding: 35px 0 30px;         /* ← réduit de 60px à 35px */
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* Petite ligne d'accent en haut */
.tech-band-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    border-radius: 3px;
}

/* Rangée */
.tech-band-row {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 8px 0;               /* ← réduit */
}

/* Fondu sur les bords (blanc → transparent) */
.tech-band-row::before,
.tech-band-row::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;                  /* ← réduit de 140px à 100px */
    z-index: 3;
    pointer-events: none;
}

.tech-band-row::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%);
}

.tech-band-row::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, rgba(255,255,255,0) 100%);
}

/* Piste */
.tech-band-track {
    display: flex;
    gap: 20px;                     /* ← réduit de 40px à 20px */
    width: max-content;
    animation: tech-band-scroll 35s linear infinite;
    will-change: transform;
    align-items: center;
}

.tech-band-row:hover .tech-band-track {
    animation-play-state: paused;
}

@keyframes tech-band-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-33.333%, 0, 0); }
}

/* Carte — hauteur réduite, design épuré */
.tech-band-card {
    flex-shrink: 0;
    width: 420px;                  /* ← réduit de 780px */
    height: 260px;                 /* ← réduit de 480px */
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #fff;
    transition: all .5s cubic-bezier(.22,.61,.36,1);
    box-shadow: 0 4px 20px rgba(11,37,69,.08);
}

.tech-band-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(11,37,69,.15);
}

.tech-band-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;           /* ← préserve l'image entière sans zoom coupé */
    display: block;
    padding: 8px;                  /* ← léger espace autour de l'image */
    transition: transform .8s cubic-bezier(.22,.61,.36,1);
}

.tech-band-card:hover img {
    transform: scale(1.04);
}

/* Effet bordure dégradée au survol */
.tech-band-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--color-accent), transparent 60%) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}

.tech-band-card:hover::after {
    opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .tech-band-section { padding: 28px 0 24px; }
    .tech-band-card {
        width: 340px;
        height: 210px;
    }
    .tech-band-track { gap: 16px; }
}

@media (max-width: 991px) {
    .tech-band-section { padding: 24px 0 20px; }

    .tech-band-card {
        width: 280px;
        height: 175px;
        border-radius: 12px;
    }

    .tech-band-track { gap: 14px; }
    .tech-band-row::before,
    .tech-band-row::after { width: 60px; }
}

@media (max-width: 767px) {
    .tech-band-section { padding: 20px 0 16px; }

    .tech-band-card {
        width: 220px;
        height: 140px;
        border-radius: 10px;
    }

    .tech-band-track {
        gap: 10px;
        animation-duration: 25s;
    }

    .tech-band-row::before,
    .tech-band-row::after { width: 30px; }
}

@media (max-width: 480px) {
    .tech-band-card {
        width: 180px;
        height: 115px;
    }
    .tech-band-section { padding: 16px 0 14px; }
}
/* ============================================================
   NOS SOLUTIONS — Cartes avec images de fond
   ============================================================ */
.solutions-grid-img {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 45px;
}

/* Carte */
.solution-img-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 340px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: all .5s cubic-bezier(.22,.61,.36,1);
    animation-delay: var(--delay, 0s);
    box-shadow: 0 8px 28px rgba(11,37,69,.12);
    isolation: isolate;
}

.solution-img-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(11,37,69,.25);
}

/* Image de fond */
.solution-img-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.solution-img-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22,.61,.36,1);
}

.solution-img-card:hover .solution-img-bg img {
    transform: scale(1.12);
}

/* Overlay dégradé sombre pour lisibilité */
.solution-img-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg,
        rgba(11,37,69,.15) 0%,
        rgba(11,37,69,.55) 45%,
        rgba(11,37,69,.95) 100%);
    transition: all .4s;
}

.solution-img-card:hover .solution-img-overlay {
    background: linear-gradient(180deg,
        rgba(74,144,217,.25) 0%,
        rgba(11,37,69,.7) 45%,
        rgba(11,37,69,.98) 100%);
}

/* Contenu */
.solution-img-content {
    position: relative;
    z-index: 3;
    padding: 24px 22px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}

/* Numéro en haut de la carte */
.solution-img-number {
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 42px;
    font-weight: 900;
    color: rgba(255,255,255,.15);
    line-height: 1;
    letter-spacing: -2px;
    transition: all .4s;
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
}

.solution-img-card:hover .solution-img-number {
    color: rgba(74,144,217,.5);
    transform: translateY(-4px) scale(1.08);
}

/* Titre */
.solution-img-content h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
    transition: all .3s;
}

.solution-img-card:hover .solution-img-content h3 {
    transform: translateY(-2px);
    color: #fff;
}

/* Description */
.solution-img-content p {
    font-size: 13px;
    color: rgba(255,255,255,.75);
    line-height: 1.55;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all .3s;
}

.solution-img-card:hover .solution-img-content p {
    color: rgba(255,255,255,.9);
}

/* Lien "En savoir +" */
.solution-img-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all .4s cubic-bezier(.22,.61,.36,1);
    align-self: flex-start;
}

.solution-img-card:hover .solution-img-link {
    opacity: 1;
    transform: translateY(0);
}

.solution-img-link i {
    transition: transform .3s;
}

.solution-img-card:hover .solution-img-link i {
    transform: translateX(4px);
}

/* Barre accent au survol */
.solution-img-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
    z-index: 5;
}

.solution-img-card:hover::after {
    transform: scaleX(1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .solutions-grid-img {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .solution-img-card { height: 320px; }
}

@media (max-width: 991px) {
    .solutions-grid-img {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .solution-img-card { height: 300px; }
}

@media (max-width: 767px) {
    .solutions-grid-img {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .solution-img-card { height: 240px; }

    .solution-img-content { padding: 20px 18px; }

    .solution-img-number {
        font-size: 34px;
        top: 14px;
        left: 16px;
    }

    .solution-img-content h3 { font-size: 16px; }
    .solution-img-content p { font-size: 12.5px; -webkit-line-clamp: 2; }

    /* Toujours afficher le lien en mobile */
    .solution-img-link {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .solution-img-card { height: 220px; }
    .solution-img-number { font-size: 28px; }
}

/* ============================================================
   ICÔNE DANS LES CARTES SOLUTIONS (en haut à droite)
   ============================================================ */
.solution-img-icon {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .15);
    border: 1.5px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all .4s cubic-bezier(.22, .61, .36, 1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

.solution-img-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.solution-img-card:hover .solution-img-icon {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.1) rotate(-6deg);
    box-shadow: 0 10px 24px rgba(74, 144, 217, .5);
}

/* Le numéro descend un peu pour laisser la place à l'icône */
.solution-img-number {
    top: 78px !important;
}

/* ============================================================
   HAMBURGER — UNIQUEMENT SUR MOBILE
   ============================================================ */

/* Par défaut (desktop) : cacher le hamburger */
.btn-mobile-menu {
    display: none !important;
}

/* Afficher le hamburger uniquement en dessous de 992px (mobile + tablette) */
@media (max-width: 991px) {
    .btn-mobile-menu {
        display: inline-flex !important;
    }

    /* Cacher la nav desktop */
    .main-nav,
    .main-header .col-lg-7 {
        display: none !important;
    }
}

/* S'assurer que la recherche reste visible sur desktop */
@media (min-width: 992px) {
    .btn-search {
        display: inline-flex !important;
    }
}
/* ============================================================
   CHIFFRES CLÉS — Grille adaptative
   ============================================================ */

/* Grille flexible : s'adapte au nombre d'éléments */
.stats-band-v3 .stats-band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Chaque item */
.stats-band-v3 .stats-band-item {
    text-align: center;
    color: #fff;
    padding: 20px 10px;
    border-radius: 16px;
    transition: all .4s cubic-bezier(.22, .61, .36, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stats-band-v3 .stats-band-item:hover {
    background: rgba(255, 255, 255, .06);
    transform: translateY(-4px);
}

/* Icône : s'assure qu'elle s'affiche toujours */
.stats-band-v3 .stats-band-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(74, 144, 217, .25);
    border: 2px solid rgba(74, 144, 217, .5);
    color: #fff;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .4s;
    flex-shrink: 0;
}

.stats-band-v3 .stats-band-icon i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    font-style: normal !important;
}

.stats-band-v3 .stats-band-item:hover .stats-band-icon {
    background: var(--color-accent);
    transform: scale(1.1) rotate(-8deg);
}

/* Valeur */
.stats-band-v3 .stats-band-value {
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #fff 30%, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Libellé */
.stats-band-v3 .stats-band-label {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .85);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* Masquer les séparateurs qui ne fonctionnent plus avec auto-fit */
.stats-band-v3 .stats-band-item::after {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .stats-band-v3 .stats-band-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .stats-band-v3 .stats-band-value { font-size: 42px; }
}

@media (max-width: 480px) {
    .stats-band-v3 .stats-band-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stats-band-v3 .stats-band-value { font-size: 38px; }
    .stats-band-v3 .stats-band-icon { width: 52px; height: 52px; font-size: 20px; }
}

/* ============================================================
   SOUS-MENU — Version simple et fiable
   ============================================================ */

/* Position du conteneur parent */
.main-nav > ul > li.has-sub {
    position: relative;
}

/* Sous-menu caché par défaut */
.main-nav .has-sub .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(11, 37, 69, .15);
    border: 1px solid #E5E7EB;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;

    z-index: 9999;
    list-style: none;
    margin: 0;
}

/* Affichage au survol */
.main-nav .has-sub:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Items */
.main-nav .has-sub .submenu li {
    list-style: none;
    margin: 0;
}

.main-nav .has-sub .submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #1A1A1A;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.main-nav .has-sub .submenu li a:hover {
    background: rgba(74, 144, 217, .08);
    color: #4A90D9;
}

.main-nav .has-sub .submenu li a i {
    width: 18px;
    color: #4A90D9;
    font-size: 13px;
    flex-shrink: 0;
    text-align: center;
}

/* Séparateur entre catégories */
.main-nav .has-sub .submenu .submenu-divider {
    padding: 10px 14px 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    list-style: none;
    margin-top: 4px;
    border-top: 1px solid #E5E7EB;
}

.main-nav .has-sub .submenu .submenu-divider:first-child {
    border-top: none;
    margin-top: 0;
}

/* Lien "voir tout" */
.main-nav .has-sub .submenu .submenu-footer {
    display: block;
    margin-top: 6px;
    padding: 10px 14px;
    background: #F5F7FA;
    border-radius: 8px;
    text-align: center;
    color: #4A90D9;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.main-nav .has-sub .submenu .submenu-footer:hover {
    background: #4A90D9;
    color: #fff;
}

/* Masquer sur mobile (le menu mobile a sa propre logique) */
@media (max-width: 991px) {
    .main-nav .has-sub .submenu {
        display: none !important;
    }
}