/*** Spinner Start ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }

/*** Spinner End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-md-square {
    width: 46px;
    height: 46px;
}

.btn-lg-square {
    width: 58px;
    height: 58px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Button End ***/


/*** Topbar Start ***/

.topbar .top-info {
    /*letter-spacing: 1px;*/
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-link a {
    margin-right: 10px;
}

#note {
    width: 500px;
    overflow: hidden;
}

#note small {
    position: relative;
    display: inline-block;
    animation: mymove 10s infinite;
    animation-timing-function: all;
}

@keyframes mymove {
    from {left: -100%;}
    to {left: 100%;}
}

/*** Topbar End ***/


/*** Navbar Start ***/
.navbar .navbar-nav {
    padding: 15px 0;
}

.navbar .navbar-nav .nav-link {
    padding: 10px;
    color: #052f5f;
    font-size: 15px;
    outline: none;
    
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "font awesome 5 free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: .5s;
    opacity: 1;
}

/*** Navbar End ***/


/*** Carousel Start ***/

.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .6);
}

.carousel-caption {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-item p {
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.carousel-control-prev {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 0;
    background: #499b56 !important;
    border-radius: 0 50px 50px 0;
    opacity: 1;
}

.carousel-control-prev:hover {
    background: #fff;
    transition: .8s;
}

.carousel-control-next {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    right: 0;
    background: #499b56 !important;
    border-radius: 50px 0 0 50px;
    opacity: 1;
}

.carousel-control-next:hover {
    background: #fff;
    transition: .8s;
}

.carousel-caption .carousel-content a button.carousel-content-btn1 {
    background: var(--bs-secondary);
    color: #fff;
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn1:hover {
    background: var(--bs-primary);
    color: var(--bs-secondary);
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2 {
    background: var(--bs-primary);
    color: #499b56;
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2:hover {
    background: #499b56;
    color: var(--bs-primary);
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

#carouselId .carousel-indicators li {
    width: 30px;
    height: 10px;
    background: var(--bs-primary);
    margin: 10px;
    border-radius: 30px;
    opacity: 1;
}

#carouselId .carousel-indicators li:hover {
    background: var(--bs-secondary);
    opacity: 1;
}

@media (max-width: 992px) {
    .carousel-item {
        min-height: 500px;
    }
    
    .carousel-item img {
        min-height: 500px;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 40px !important;
    }

    .carousel-item p {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        min-height: 400px;
    }
    
    .carousel-item img {
        min-height: 400px;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 20px !important;
    }

    .carousel-item p {
        font-size: 14px !important;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-white);
}

/*** Carousel End ***/


/*** Services Start ***/

.services .services-item {
    box-shadow: 0 0 60px rgba(0, 0, 0, .2);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 10px 0;
    position: relative;
}


.services-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-radius: 10px 10px 0 0;
    background: #433e84;
    transition: .5s;
}

.services-content::after {
    top: 0;
    bottom: auto;
    border-radius: 10px 10px 10px 10px;
}

.services-item:hover .services-content::after {
    height: 100%;
    opacity: 1;
    transition: .5s;
}

.services-item:hover .services-content-icon {
    position: relative;
    z-index: 2;
}

.services-item .services-content-icon i,
.services-item .services-content-icon p {
    transition: .5s;
}

.services-item:hover .services-content-icon i {
    color: var(--bs-secondary) !important;
}

.services-item:hover .services-content-icon p {
    color: var(--bs-white);
}

/*** Services End ***/


/*** Project Start ***/

.project-img {
    position: relative;
    padding: 15px;
}

.project-img::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-img::after {
    content: "";
    width: 150px;
    height: 150px;
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--bs-primary);
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.project-content a {
    display: inline-block;
    padding: 20px 25px;
    background: var(--bs-primary);
    border-radius: 10px;
}

.project-item:hover .project-content {
    opacity: 1;
    transition: .5s;
}

.project-item:hover .project-img::before,
.project-item:hover .project-img::after {
    opacity: 0;
}

/*** Project End ***/


/*** Blog Start ***/
.blog-item .blog-btn {
    z-index: 2;
}

.blog-btn .blog-btn-icon {
    height: 50px;
    position: relative;
    overflow: hidden;
}

.blog-btn-icon .blog-icon-2 {
    display: flex;
    position: absolute;
    top: 6px;
    left: -140px;
    
}

.blog-btn-icon:hover .blog-icon-2 {
    transition: 1s;
    left: 5px;
    top: 6px;
    padding-bottom: 5px;
}
.blog-icon-1 {
    position: relative;
    top: -4px;
}
.blog-btn-icon:hover .blog-icon-1 {
    top: 0;
    right: -140px;
    transition: 1s;
}

/*** Blog End ***/


/*** Team Start ***/

.team-item {
    border-top: 30px solid var(--bs-secondary) !important;
    background: rgba(239, 239, 241, 0.8);
}

.team-content::before {
    height: 200px;
    display: block;
    content: "";
    position: relative;
    top: -101px;
    background: var(--bs-secondary);
    clip-path: polygon(50% 50%, 100% 50%, 50% 100%, 0% 50%);
    padding: 60px;
    opacity: 1;
}

.team-img-icon {
    position: relative;
    margin-top: -200px;
    padding: 30px;
    padding-bottom: 0;
}

.team-img {
    border: 15px solid var(--bs-white);
}

.team-img img {
    border: 10px solid var(--bs-secondary);
    transition: .5s;
}

.team-item:hover h4 {
    color: var(--bs-primary);
    transition: .5s;
}

.team-item:hover .team-img img {
    transform: scale(1.05);
    border: 10px solid var(--bs-secondary);
}

.team-carousel .owl-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.team-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 50px;
    display: flex;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    width: 56px;
    height: 56px;
    border-radius: 56px;
    margin-left: 15px;
    background: var(--bs-secondary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

@media (max-width: 992px) {
    .team-carousel {
        margin-top: 3rem;
    }

    .team-carousel .owl-nav {
        top: -85px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin-left: -15px;
    }
}

/*** Team End ***/


/*** Testimonial Start ***/

.testimonial-item {
    background: #e3f0eb;

}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #c1dad0;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}

/*** Testimonial End ***/


/*** Contact Start ***/
.contact-detail::before {
    position: absolute;
    content: "";
    height: 50%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgb(210, 243, 235, 1), rgba(230, 250, 245, .3)), url(../img/background.jpg) center center no-repeat;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}

.contact-map {
    background: #499b56;
    min-height: 550px;
}

.contact-form {
    background: #499b56;
}

/*** Contact End ***/


/*** Footer Start ***/

.footer .short-link a,
.footer .help-link a,
.footer .contact-link a {
    transition: .5s;
}

.footer .short-link a:hover,
.footer .help-link a:hover,
.footer .contact-link a:hover {
    letter-spacing: 1px;
}

.footer .hightech-link a:hover {
    background: var(--bs-secondary);
    border: 0;
}

.text-blue-50 {
	color: #052f5f !important;
}

.text-blue {
  color: #052f5f !important;
}

.text-primary-blue {
  color: #052f5f !important;
}

.text-secondary-white {
  color: #fff !important;
}

.text-primary-grenat {
  color: #499b56 !important;
}
/*** Footer End ***/

/* Style Bootstrap forcé pour la pagination */
.pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.pagination li {
  margin: 0 5px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  background-color: #fff;
  color: #007bff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a:hover,
.pagination span:hover {
  background-color: #e9ecef;
  color: #0056b3;
}

.pagination .current,
.pagination span.current {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
  font-weight: bold;
}

.menu-link{
	color: #052f5f !important;
}

/* Style pour le fond semi-transparent du modal */
.search-modal {
  display: none; /* Caché par défaut */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Style pour le contenu du modal */
.search-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
}

/* Style pour le bouton de fermeture */
#close-search {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
#close-search:hover {
  color: #007bff;
}

/* Style pour le champ de recherche */
#search-modal input[type="search"] {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  border: 2px solid #007bff;
  border-radius: 50px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
#search-modal input[type="search"]:focus {
  border-color: #0056b3;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.text-blue a {
	color: #052f5f !important;
}

.menu-item {
	list-style: none !important;
}

/*** Centrer le bloc Menu ****/
.navbar-nav > li > .sub-menu {
position: absolute;
top: 100%;
left: 0;
}

/* 🔥 CAS : menu avec 3 niveaux ou plus */
.navbar-nav > li > .sub-menu.center-mega {
position: absolute; /* sort du flux */
top: 154%; /* ajuste selon ta navbar */
left: 50%;
transform: translateX(-50%);
width: 85vw;
max-width: 1300px;
z-index: 999;
}
/**** FIN ****/

/**** Résoudre le prb de l affichage ****/
@media (min-width: 991px) {
/* ===============================
BASE
================================ */
.navbar-nav {
position: relative;
}

/* ===============================
NIVEAU 2 (MEGA MENU)
================================ */
.navbar-nav > li {
position: relative;
}

/* caché par défaut */
.navbar-nav > li.mega-menu > .sub-menu {
display: none;
position: absolute;
top: 100%; /* sous le menu principal */
left: 50%;
transform: translateX(-50%);
min-width: 900px;
background: #f7f7f7;
padding: 25px 30px;
box-shadow: 0 10px 30px rgba(0,0,0,.15);
z-index: 999;
}

/* ouvert via JS */
.navbar-nav > li.menu-open > .sub-menu {
display: grid;
grid-template-rows: repeat(7, auto);
grid-auto-flow: column;
column-gap: 40px;
}

/* ===============================
ITEMS NIVEAU 2
================================ */
.navbar-nav > li > .sub-menu > li {
position: relative;
white-space: nowrap;
}

.navbar-nav > li > .sub-menu > li > a {
display: block;
padding: 6px 0;
font-weight: 500;
}

/* ===============================
NIVEAU 3+
================================ */
.sub-menu li > .sub-menu {
display: none;
position: absolute;
top: 0;
left: 100%;
min-width: 240px;
background: #fff;
padding: 10px 15px;
box-shadow: 0 8px 20px rgba(0,0,0,.15);
z-index: 1000;
}

/* ouvert via JS */
.sub-menu li.menu-open > .sub-menu {
display: block;
}

/* ===============================
FLÈCHES
================================ */
.menu-item-has-children > a::after {
content: "▸";
font-size: 11px;
margin-left: 6px;
opacity: .6;
}

.navbar-nav > li.mega-menu > .sub-menu {
	left: 50%;
	transform: translate(-50%);
}
}
/******** FIN *************/
/***** Current Menu *******/
/* Style pour l'élément de menu actif */
.navbar-nav .current-menu-item > a,
.mobile-nav .current-menu-item > a {
  font-weight: bold; /* ou une couleur différente */
  color: #499b56 !important; /* couleur de surbrillance */
  background-color: rgba(255, 255, 255, 0.1); /* fond léger */
}

/*********** FIN ***********/

/* =====================================================
BASE MENU
===================================================== */
.main-nav {
background: #fff;
position: relative;
z-index: 100;
}

.navbar-nav {
display: flex;
list-style: none;
margin: 0;
padding: 0;
position: relative;
}

.navbar-nav > li {
position: relative;
}

.navbar-nav > li > a {
padding: 15px 18px;
display: block;
color: #fff;
text-decoration: none;
white-space: nowrap;
}

/* =====================================================
RESET SOUS-MENUS (IMPORTANT)
===================================================== */
.sub-menu {
list-style: none;
margin: 0;
padding: 0;
display: none;
}

/* =====================================================
SOUS-MENU NIVEAU 2 (MEGA MENU)
===================================================== */
.navbar-nav > li > .sub-menu {
position: absolute;
top: 100%;
left: 0;

background: #f7f7f7;
padding: 20px 10px;

box-shadow: 0 10px 30px rgba(0,0,0,0.15);
z-index: 200;

display: none;

/* Grille en colonnes */
grid-template-rows: repeat(7, auto);
grid-auto-flow: column;
column-gap: 40px;
}

/* Affichage hover niveau 2 */
.navbar-nav > li:hover > .sub-menu,
.navbar-nav > li:focus-within > .sub-menu {
display: grid;
}

/* =====================================================
ITEMS DU MEGA MENU
===================================================== */
.navbar-nav > li > .sub-menu > li {
position: relative; /* référence pour niveau 3 */
}

.navbar-nav > li > .sub-menu > li > a {
font-weight: 600;
color: #111;
padding: 6px 0;
display: block;
text-decoration: none;
}

/* =====================================================
SOUS-MENUS NIVEAU 3+ (COLLÉS À L’ITEM)
===================================================== */
.navbar-nav .sub-menu .sub-menu {
position: absolute;
top: 0;
left: 100%;
margin-left: 10px;

background: #ffffff;
min-width: 220px;
padding: 10px 15px;

box-shadow: 0 8px 20px rgba(0,0,0,0.15);
z-index: 300;

display: none;
}

/* Affichage contextuel */
.navbar-nav .sub-menu li:hover > .sub-menu {
display: block;
}

/* =====================================================
LIENS INTERNES
===================================================== */
.navbar-nav .sub-menu li a {
display: block;
padding: 6px 0;
color: #333;
text-decoration: none;
white-space: nowrap;
}

.navbar-nav .sub-menu li a:hover {
color: #0a7cff;
}

/* =====================================================
PUCE POUR ITEMS AVEC SOUS-MENU
===================================================== */
.menu-item-has-children > a::after {
content: "▸";
font-size: 12px;
margin-left: 6px;
opacity: 0.6;
}

/* =====================================================
SÉCURITÉ : AUCUN DÉCALAGE LAYOUT
===================================================== */
.navbar-nav,
.navbar-nav > li,
.navbar-nav > li > .sub-menu {
overflow: visible;
}

/* =====================================================
FIX GRID : empêcher l'étirement vertical des <li>
===================================================== */

/* Chaque item du mega-menu ne prend QUE la hauteur du texte */
.navbar-nav > li > .sub-menu > li {
align-self: start; /* 🔥 CLÉ DU PROBLÈME */
}

/* Référence correcte pour le niveau 3 */
.navbar-nav > li > .sub-menu > li {
position: relative;
display: inline;
}

/* =====================================================
FIX FINAL : items inline pour aligner les sous-menus
===================================================== */

/* Le <li> ne s'étire plus dans la grille */
.navbar-nav > li > .sub-menu > li {
align-self: start; /* empêche l'étirement grid */
position: relative;
width: max-content; /* 🔥 clé : largeur = texte */
}

/* Le lien devient inline */
.navbar-nav > li > .sub-menu > li > a {
display: inline-flex; /* 🔥 inline + stable */
align-items: center;
white-space: nowrap;
}

/* Sous-menu niveau 3 collé AU TEXTE */
.navbar-nav .sub-menu .sub-menu {
position: absolute;
top: 0;
left: 100%;
margin-left: 8px;
}






@media (max-width: 991px) {
	
.navbar .navbar-nav .nav-link {
	font-size: 14px;
}

.mobile-accordion,
.mobile-accordion ul {
list-style: none;
padding: 0;
margin: 0;
width: 100%;
}

.mobile-accordion li {
border-bottom: 1px solid #eaeaea;
padding-bottom: 10px;
}

.mobile-accordion a {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 15px;
text-decoration: none;
color: #000;
width: 100%;
}

.mobile-accordion .sub-menu {
position: static !important;
float: none !important;
transform: none !important;
left: auto !important;
right: auto !important;
top: auto !important;
width: 100% !important;
display: none;
padding-left: 15px;
}

.mobile-accordion a {
white-space: normal !important;
word-break: break-word;
overflow-wrap: break-word;
line-height: 1.4;
}

/* Niveau principal */
.mobile-accordion > li > a {
font-size: 14px;
font-weight: 500;
}

/* Sous-menus (niveau 2 et +) */
.mobile-accordion .sub-menu a {
font-size: 14px;
font-weight: 400;
}

.mobile-accordion li:hover > .sub-menu {
display: none !important;
}

/* Affichage seulement quand .open */
.mobile-accordion li.open > .sub-menu {
display: block !important;
}

/* Icône accordéon */
mobile-accordion li.menu-item-has-children > a {
padding-right: 40px;
}

.mobile-accordion li.menu-item-has-children > a {
position: relative;
padding-right: 45px; /* espace réservé pour le + */
}

.mobile-accordion li.menu-item-has-children > a::after {
content: "+";
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
font-size: 18px;
font-weight: bold;
line-height: 1;
pointer-events: none; /* évite les clics parasites */
}

.mobile-accordion li.open > a::after {
content: "−";
}
}

.tnp-subscription {
	margin: 0 !important;
}

.tnp.tnp-subscription .tnp-field label {
  display: none !important;
}

.tnp-subscription .tnp-submit {
	background-color: #499b56 !important;
}

.text-green {
	color: #499b56;
}