@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* =========================================================
   OPTIMISATIONS DE PERFORMANCE - PrestUp Group
   ========================================================= */

/* Services Section Styles */
.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    height: 100%;
    position: relative;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.service-card:hover .service-overlay {
    opacity: 0.9;
}

.service-content {
    padding: 30px 25px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -60px auto 20px;
    box-shadow: 0 10px 30px rgba(40, 100, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
    background: #2864FF;
}

.service-icon i {
    font-size: 36px;
    color: #2864FF;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon i {
    color: #fff;
}

.service-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.service-card:hover .service-content h4 {
    color: #ffbf06;
}

.service-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.service-content .btn {
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.service-content .btn i {
    transition: transform 0.3s ease;
}

.service-card:hover .btn i {
    transform: translateX(5px);
}

/* Style du titre des services */
.service-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    padding-top: 15px;
}

/* Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.service-card {
    animation: float 6s ease-in-out infinite;
}

.service-card:nth-child(2) {
    animation-delay: 0.5s;
}

.service-card:nth-child(3) {
    animation-delay: 1s;
}

.service-card:nth-child(4) {
    animation-delay: 1.5s;
}

/* Responsive */
@media (max-width: 991px) {
    .service-card {
        margin-bottom: 30px;
    }
    
    .service-img {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .service-img {
        height: 220px;
    }
}

/* Styles pour la section services */
#services {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#services .section-head {
    margin-bottom: 60px;
}

#services .sub-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    color: #2864FF;
}

#services .title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    position: relative;
    line-height: 1.2;
}

#services .icon-bx-wraper {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.5s;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

#services .icon-bx-wraper:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

#services .icon-bx {
    width: 90px;
    height: 90px;
    line-height: 90px;
    text-align: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

#services .icon-bx:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #f5f9ff;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.5s;
}

#services .icon-bx i {
    font-size: 40px;
    color: #2864FF;
    line-height: 90px;
    transition: all 0.5s;
}

#services .icon-bx-wraper:hover .icon-bx i {
    color: #fff;
}

#services .icon-bx-wraper:hover .icon-bx:before {
    background: #2864FF;
    transform: scale(1.1);
}

#services .icon-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    transition: all 0.5s;
}

#services .icon-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

#services .btn-outline-primary {
    color: #2864FF;
    border-color: #2864FF;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.5s;
}

#services .btn-outline-primary:hover {
    background: #2864FF;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(40, 100, 255, 0.2);
}

/* Responsive styles */
@media (max-width: 991px) {
    #services {
        padding: 70px 0;
    }
    
    #services .title {
        font-size: 36px;
    }
    
    #services .icon-bx-wraper {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    #services .title {
        font-size: 30px;
    }
    
    #services .section-head {
        margin-bottom: 40px;
    }
}

/* Animation pour les icônes */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 100, 255, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 100, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 100, 255, 0);
    }
}

#services .icon-bx-wraper:hover .icon-bx {
    animation: pulse 1.5s infinite;
}

/* Styles pour la barre de navigation fixe */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px 0; /* Ajout d'un padding vertical */
}

/* Ajustement du conteneur du menu */
.header-nav {
    padding: 0 15px;
}

/* Ajustement du logo pour le centrage vertical */
.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Ajustement des éléments du menu */
.main-menu > ul > li > a {
    padding: 10px 15px;
    display: inline-block;
}

/* Ajustement pour le menu mobile */
@media (max-width: 991px) {
    .site-header {
        padding: 10px 0;
    }
    
    .main-menu {
        padding-top: 15px;
    }
}

/* Espacement pour la barre de navigation fixe */
.banner-five {
    margin-top: 70px; /* Réduit pour être juste sous la barre de navigation */
    position: relative;
    z-index: 1;
}

/* Ajustement pour les écrans mobiles */
@media (max-width: 991px) {
    .banner-five {
        margin-top: 60px; /* Réduit pour mobile */
    }
}

/* Ajustement du conteneur principal */
.page-wraper {
    padding-top: 0; /* Réinitialisation du padding si nécessaire */
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Poppins Regular'), local('Poppins-Regular'),
         url('../fonts/poppins-v15-latin-regular.woff2') format('woff2'),
         url('../fonts/poppins-v15-latin-regular.woff') format('woff');
}

/* =========================================================
   NAVIGATION - PrestUp Group
   ========================================================= */

/* Barre de navigation principale */
.site-header {
    background-color: #1E3A8A !important; /* Bleu foncé MNS */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    will-change: transform, background-color, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Conteneur de la barre de navigation */
.main-bar {
    padding: 0.5rem 0;
}

/* Logo */
.logo-header {
    padding: 0.5rem 0;
}

.logo-header img {
    max-height: 60px;
    transition: all 0.3s ease;
    width: auto;
}

/* Menu de navigation */
.header-nav {
    margin-left: auto;
}

.header-nav .navbar-nav {
    align-items: center;
}

/* Liens de navigation */
.header-nav .nav.navbar-nav > li > a {
    color: #1E3A8A !important;
    font-weight: 500;
    padding: 0.8rem 1.2rem !important;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    will-change: color, transform;
    display: inline-block;
}

/* Effet de survol des liens */
.header-nav .nav.navbar-nav > li > a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #ffbf06; /* Jaune/Or MNS */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-nav .nav.navbar-nav > li > a:hover:after,
.header-nav .nav.navbar-nav > li.active > a:after {
    width: 60%;
}

/* Couleur de survol */
.header-nav .nav.navbar-nav > li > a:hover,
.header-nav .nav.navbar-nav > li.active > a {
    color: #ffbf06 !important; /* Jaune/Or MNS au survol */
}

/* Bouton de menu mobile */
.navbar-toggler.navicon {
    border: none;
    padding: 0.5rem;
    margin: 0;
}

.navicon span {
    background: #ffffff; /* Couleur des barres du menu burger */
    height: 3px;
    width: 25px;
    display: block;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Menu mobile ouvert */
.header-nav.show {
    background: #1E3A8A;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
}

/* Menu déroulant */
.header-nav .nav.navbar-nav > li .sub-menu {
    background: #1E3A8A; /* Fond du menu déroulant */
    border: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    padding: 0.5rem 0;
    min-width: 220px;
}

.header-nav .nav.navbar-nav > li .sub-menu > li > a {
    color: #ffffff !important;
    padding: 0.6rem 1.5rem !important;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.header-nav .nav.navbar-nav > li .sub-menu > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffbf06 !important;
    padding-left: 1.8rem !important;
}

/* Animation de la barre de navigation au scroll */
.sticky-header.sticky-on {
    background: rgba(30, 58, 138, 0.98) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

/* Espacement pour le contenu sous la barre de navigation */
.page-content {
    padding-top: 100px; /* Ajustez cette valeur selon la hauteur de votre barre de navigation */
}

/* Préchargeur optimisé */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1E3A8A; /* Bleu MNS */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    will-change: opacity, visibility;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Animation du préchargeur */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #ffbf06; /* Jaune MNS */
    animation: spin 1s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

/* Optimisation du contenu plié (above-the-fold) */
.above-the-fold {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Optimisation des polices */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-kerning: normal;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* Optimisation des transitions */
a, button, .btn, .nav-link {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    will-change: color, background-color, border-color, box-shadow, transform;
}

/* Optimisation des images de fond */
.banner-inner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translateZ(0);
    position: relative;
    overflow: hidden;
}

.banner-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.6); /* Bleu MNS avec transparence */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

/* Styles généraux pour empêcher le défilement horizontal */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* =========================================================
   OPTIMISATION DES PERFORMANCES
   ========================================================= */
/* Optimisation des images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    will-change: transform;
    transition: opacity 0.3s ease;
}

/* Style pour les images en chargement */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Images de fond optimisées */
.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translateZ(0);
}

/* Amélioration du rendu des polices */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Styles pour les cartes de services */
.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #ffbf06; /* Bordure jaune/or au survol */
}

.service-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 100, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h4 {
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-card:hover .service-content h4 {
    color: #2864FF;
}

.service-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-hover {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hover i {
    transition: transform 0.3s ease;
}

.btn-hover:hover i {
    transform: translateX(5px);
}

.page-wraper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Styles pour la section Services */
.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-media {
    height: 200px;
    overflow: hidden;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-media img {
    transform: scale(1.05);
}

.service-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1f2471;
    font-weight: 600;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    min-height: 60px;
}

.btn-primary {
    background: #2864FF;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #1a4fd8;
    transform: translateY(-2px);
    color: #fff;
}

/* Styles pour la section Pourquoi nous choisir */
.about-content {
    position: relative;
    z-index: 1;
    padding: 40px 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
}

.about-media {
    position: relative;
    z-index: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 15px;
}

.about-media:hover img {
    transform: scale(1.03);
}

.experience-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #2864FF, #00A3FF);
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(40, 100, 255, 0.3);
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.experience-box h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

.experience-box p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.icon-box {
    transition: all 0.3s ease;
    background: rgba(40, 100, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 15px;
    flex-shrink: 0;
}

.icon-box i {
    font-size: 28px;
    color: #2864FF;
    transition: all 0.3s ease;
}

.feature-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 10px;
}

.feature-box:hover {
    background: rgba(40, 100, 255, 0.03);
    transform: translateY(-5px);
}

.feature-box:hover .icon-box {
    background: #2864FF;
}

.feature-box:hover .icon-box i {
    color: #fff;
    animation: float 1.5s ease-in-out infinite;
}

.feature-content h5 {
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.feature-box:hover h5 {
    color: #2864FF;
}

.feature-content p {
    color: #666;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Animation pour les icônes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* Animation pour les cartes de services */
.wow.fadeInUp {
    visibility: visible;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .about-content {
        margin-bottom: 40px;
    }
    
    .experience-box {
        padding: 15px 20px;
    }
    
    .experience-box h2 {
        font-size: 32px;
    }
    
    .feature-box {
        padding: 10px;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
    
    .icon-box i {
        font-size: 24px;
    }
}

/* Style pour la section titre */
.section-head {
    margin-bottom: 50px;
    text-align: center;
}

.section-head .sub-title {
    color: #1f2471;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
}

.section-head .title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2471;
}

.section-head p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}
