/*** Spinner Start ***/
/*** Spinner ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    background-color: white;
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    pointer-events: none;
}

#spinner.show {
    opacity: 1;
    visibility: visible;
  transition-delay: 0s;
}

#logo-spinner {
    width: 80px;
    height: auto;
    animation: zoomInOut 2s ease-in-out infinite;
}
/* Logo animé */


@keyframes zoomInOut {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }
}

/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

/***.dropdown-menu {
    z-index: 1050 !important;
}***/
/* === Toggler moderne === */
.navbar-toggler {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  padding: 0;
  z-index: 1050;
}
.toggler-icon {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #001659;
  border-radius: 2px;
  transition: all 0.4s ease-in-out;
  transform-origin: 1px;
}
.navbar-toggler.collapsed span:nth-child(1) { transform: rotate(0) translateY(0); }
.navbar-toggler.collapsed span:nth-child(2) { opacity: 1; }
.navbar-toggler.collapsed span:nth-child(3) { transform: rotate(0) translateY(0); }
.navbar-toggler:not(.collapsed) span:nth-child(1) { transform: rotate(45deg); }
.navbar-toggler:not(.collapsed) span:nth-child(2) { opacity: 0; }
.navbar-toggler:not(.collapsed) span:nth-child(3) { transform: rotate(-45deg); }

/* === Dropdown moderne === */
.dropdown-menu {
  border: none;
  border-radius: 12px;
  padding: 0; /* reset */
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  animation: dropdownFade 0.3s ease forwards;
  transform-origin: top center;
  overflow: hidden;
}
@keyframes dropdownFade {
  0% { opacity: 0; transform: translateY(10px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 0;
  border-bottom: 1px solid #eee; 
  transition: all 0.3s ease;
}

.dropdown-item:last-child {
  border-bottom: none; /* pas de ligne sur le dernier */
}

.dropdown-item:hover {
  background-color: #001659;
  color: #fff !important;
  transform: translateX(4px);
} 
/* Bouton + / - pour mobile */
.toggle-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 10px;
  display: inline-flex; /* visible sur mobile */
}
@media (min-width: 992px) {
  .toggle-btn { display: none; }

  .nav-item.dropdown:hover .dropdown-menu {
    display: block; /* Bootstrap gère l'affichage */
    margin-top: 0;
    position: absolute;
    width: auto;
  }
  
  .dropdown-menu .dropdown-divider {
    margin: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    opacity: 0.6;
  }
}

/* Et on masque sur mobile */
@media (max-width: 991px) {
  .dropdown-menu .dropdown-divider {
    display: none;
  }
}
/* === Dropdown moderne === */
html, body {
 
  overscroll-behavior : none; /* يمنع bounce عمودي */
  background: whitesmoke; /* أو أي لون خلفية لصفحتك */
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: 0.5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    color: #fff !important; /* forcer icône blanche */
}

.btn.btn-primary {
    border: none;
    background: var(--bs-primary); /* bleu bootstrap */
    color: #fff !important; /* icône blanche par défaut */
}

.btn.btn-primary:hover {
    background: #FF5E15!important; /* carré devient orange */
    color: #fff !important; /* icône forcée blanche */
}

.btn.btn-primary:hover i {
    color: #fff !important; /* icône blanche au hover */
}

.btn.btn-secondary {
    color: var(--bs-white);
    border: none;
     border-radius: 20px;
}

.btn.btn-secondary:hover {
    background: var(--bs-primary);
}

/*******************************
/********** Topbar **********/
/* Topbar superposée */
/* Topbar superposée */
 /*** Topbar Start ***/
/*** Topbar ***/
/*** Topbar Start ***/
.topbar {
  padding: 2px 10px 2px 20px;
  background: var(--bs-primary);
}
/*** Topbar End ***/


/* ===== Navbar de base ===== */
/* ===== Navbar de base ===== */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
  transition: background 0.5s, box-shadow 0.5s;
  box-shadow: none !important;
}

/* ===== Homepage : transparente au repos (desktop) ===== */
.homepage .navbar {
  background: transparent !important;
}
.homepage .navbar .nav-link {
  color: white !important;
 
}

.homepage .navbar .nav-link:hover {
  color: var(--bs-secondary) !important;
 
}
/* Liens avec effet soulignement progressif */



/* .navbar .nav-link:hover {
  color: var(--bs-secondary) !important;
}

.navbar .nav-link:hover::after {
  width: 100%;
}*/

.homepage .navbar.scrolled {
  background: whitesmoke !important;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.6) !important; /* ظل للأسفل فقط */
}

.homepage .navbar.scrolled .nav-link {
  color: var(--bs-primary) !important;
  border-bottom: none;
}

.homepage .navbar.scrolled .nav-link:hover {
  color: var(--bs-secondary) !important;
  
}

/* ===== Autres pages : navbar toujours solide ===== */
.page .navbar {
   position: fixed;
  background: whitesmoke !important;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.6) !important; /* ظل للأسفل فقط */
 
}

.page .navbar .nav-link {
  color: var(--bs-primary) !important;
}

.page .navbar .nav-link:hover {
  color: var(--bs-secondary) !important;
  
}

/* ===== Dropdown toujours blanc ===== */
.navbar .dropdown-menu {
  background: white !important;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
/* لما القائمة (dropdown) تكون مفتوحة → لون الزر الرئيسي */
.nav-item.dropdown.show > .nav-link,
.nav-item.dropdown:hover > .nav-link {
  color: var(--bs-secondary) !important; /* برتقالي */
  /* سطر سفلي */
  transition: color 0.3s ease, border-bottom 0.3s ease;
}


/* ===== Mobile : navbar et menu solides ===== */
@media (max-width: 992px) {
 
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: whitesmoke !important;
    box-shadow: 0 0 4px rgba(0,0,0,0.1) !important;
  }
  .homepage .navbar {
  position: fixed;
  background: whitesmoke !important;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.6) !important; /* ظل للأسفل فقط */
  }

  .homepage .navbar .nav-link {
    color: #001659 !important;
  }


  .navbar-collapse {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: -100%; /* caché par défaut */
    width: 250px;
    height: 100vh;
    background-color: #fff;
    padding: 2rem 1rem;
    transition: left 0.4s ease;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .navbar-collapse.show { left: 0; }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.0);
    z-index: 1049;
    display: none;
  }
  .nav-overlay.show { display: block; pointer-events: auto; }

  .navbar-nav { flex-direction: column; width: 100%; }
  .navbar-nav .nav-item { border-bottom: 1px solid #001659; }
  .navbar-nav .nav-item:last-child { border-bottom: none; }
  .navbar-nav .nav-link {
    font-size: 1.1rem;
    padding: 10px 0;
    width: 100%;
    color: #001659 !important;
    border-bottom: 1px solid #ddd;
  }
  .navbar-nav .nav-link:hover {
    color: #fff;
    background: #001659;
    border-radius: 6px;
    padding-left: 10px;
  }

  /* === Dropdown mobile + / - === */
  .dropdown-menu {
    display: none; /* caché par défaut */
    position: static !important;
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .dropdown-menu.show { display: block; }

  .dropdown-item {
    white-space: normal;
    font-size: 1rem;
    padding: 12px 15px;
    border-bottom: 1px solid #eee !important;
  }
  .dropdown-item:last-child { border-bottom: none; }

  .toggle-btn {
    display: inline-flex;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 10px;
  }
}

.page .navbar .nav-link.active1 {
  color: #FF5E15 !important;
  font-weight: 600;
}
.page .navbar .nav-link.active2 {
  color: #FF5E15 !important;
  font-weight: 600;
}
.homepage .navbar .nav-link.active {
  color: #FF5E15 !important;
  font-weight: 600;
}

/* 🔥 FORCE LA COULEUR ORANGE POUR LA PAGE "À PROPOS" */

 /* .navbar .nav-link:hover {
    color: var(--bs-secondary) !important;
    border-bottom: none;
  }
.nav-item.dropdown:hover .dropdown-menu {
     display: block;
    margin-top: 0;
  }}
  /* ✅ Menu mobile aussi en whitesmoke */
  /* .navbar-collapse {
    background: whitesmoke !important;
    padding: 1rem;
    /*border-top: 1px solid rgba(0,0,0,0.1);*/
    /* box-shadow: 0 2px 4px rgba(0,0,0,20); 
  } */

.img-rounded-custom {
  border-radius: 20px; /* غيّر الرقم حسب ما تريد */
}



  /* dropdown en click → comportement bootstrap par défaut, donc pas besoin de hover */


 /* corrige un léger décalage */

/* Lien actif (Scrollspy) */

/* Décaler le carousel vers le haut */
/* Desktop (min-width 992px) uniquement sur la homepage */



 /*===== Carousel plein écran (desktop) ===== */
.carousel {
  margin-top: -45px !important;
}

.carousel,
.carousel-item,
.carousel-item img {
  height: 100vh;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: image-zoom 20s ease-in-out infinite alternate;
}

/* Effet zoom progressif */
@keyframes image-zoom {
  from {
    transform: scale(1);
    filter: blur(0px);
    opacity: 1;
  }
  to {
    transform: scale(1.2);
    filter: blur(3px);
    opacity: 0.9;
  }
}

/* Overlay sombre */
.carousel .carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .5);
  z-index: 1;
  pointer-events: none;
}

/* Caption centré */
.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centré verticalement */
  align-items: center;
  text-align: center;
  z-index: 2;
  padding: 0 15px;
}

/* ===== Texte ajustable ===== */
.carousel-caption h1 {
  font-size: clamp(1.5rem, 4vw + 0.5rem, 3.5rem);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.carousel-caption p {
  font-size: clamp(0.9rem, 1.2vw + 0.5rem, 1.3rem);
  line-height: 1.6;
  color: #eee;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

/* Boutons du carousel */
.carousel-caption .btn {
  font-size: clamp(0.85rem, 1vw + 0.3rem, 1rem);
  padding: 0.8rem 2rem;
  border-radius: 2rem;
}

/* Indicators */
.carousel-indicators {
  bottom: 30px;
  z-index: 5;
}
.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bs-secondary);
  background: var(--bs-white);
  margin: 0 8px;
  transition: 0.3s;
}
.carousel-indicators .active {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* Flèches */
.carousel-control-prev,
.carousel-control-next {
  z-index: 10;
  width:auto;
}
.carousel-control-prev {
  left: 0; /* extrême gauche */
}

.carousel-control-next {
  right: 0; /* extrême droite */
}
/*.carousel-control-prev span,
.carousel-control-next span {
  width: 56px;
  height: 56px;
  background-color: var(--bs-primary);
 /* border-radius: 50%;*/
 /* transition: 0.3s;
}
.carousel-control-prev:hover span,
.carousel-control-next:hover span {
  background-color: var(--bs-secondary);
}*/

/* ===== Mobile : carousel normal ===== */
@media (max-width: 991.98px) {
  .carousel {
    margin-top: -20px !important; /* pour compenser la navbar fixe */
  }
}

/* ===== Petits écrans ===== */

  @media (max-width: 767.98px) {
  .carousel-caption {
    padding: 0 25px;
    justify-content: center; /* texte bien centré */
    padding-bottom: 0;
  }


  .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .carousel .carousel-item::after {
    background: rgba(0, 0, 0, 0.6); /* plus sombre pour lisibilité */
  }
   .carousel-control-prev span,
  .carousel-control-next span {
    width: 44px;
    height: 44px;
  }
    .carousel,
  .carousel-item,
  .carousel-item img {
    height: calc(100vh);
   
  }
}

/* ===== Très petits écrans ===== */
@media (max-width: 480px) {
  .carousel-caption h1 {
    font-size: 1.4rem;
  }
  .carousel-caption p {
    font-size: 0.9rem;
  }
}


/*
-------------------------------------------------------------------
VIDEO - SECTION
-------------------------------------------------------------------
*/


.scrolling-text {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  max-width: 900px; /* 👈 عدل العرض إذا تحب */
   margin: 0 auto; 
}

.scrolling-text span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 10s linear infinite;
  color: #fff;
  font-weight: bold;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/*

/*** a propos video start ***/
/*.video-section {
  position: relative;
  height: 30vh;
  overflow: hidden;
  color: #FF5E15; 
}

.video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Breadcrumb فوق الفيديو */
.breadcrumb-nowrap {
  white-space: nowrap;        /* interdit le retour à la ligne */
  overflow: hidden;           /* évite débordement */
  text-overflow: ellipsis;    /* ... si trop long */
  display: flex;
  flex-wrap: nowrap;
}

/* Optionnel : garder les items collés */
.breadcrumb-item {
  white-space: nowrap;
}

/* Supprime le double slash Bootstrap et garde un seul */
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #6c757d;
}

/* Style des liens du breadcrumb */
.breadcrumb-link {
  color: #007bff; /* bleu GSA Automation */
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* Effet hover : changement de couleur + soulignement animé */
.breadcrumb-link:hover {
  color:#001659 ; /* bleu plus foncé */
  text-decoration: underline;
  text-underline-offset: 4px; /* espace entre le texte et le soulignement */
}

/* Dernier élément actif (page courante) */
.breadcrumb-item.active {
  color: #212529;
  font-weight: 600;
}
.breadcrumb { font-size: clamp(10.5px, 2.5vw, 18px); }



/*** a propos video end ***/

/*** About Start ***/
.about .about-item-content-img {
    border: 4px solid;
    border-color: var(--bs-secondary) var(--bs-primary) var(--bs-primary) var(--bs-secondary);
}

.about .about-item-image {
    position: relative;
    background: var(--bs-light);
    background-image: url(../img_GSA/alim.jpeg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.about .about-item-image .img-1 {
    margin-bottom: 250px;
    margin-right: 0;
    border: 4px solid;
    border-color: var(--bs-secondary) var(--bs-light) var(--bs-light) var(--bs-secondary);
    z-index: 3;
}

.about .about-item-image .img-2 {
    margin-top: 250px;
    margin-left: 0;
    border: 4px solid;
    border-color: var(--bs-light) var(--bs-secondary) var(--bs-secondary) var(--bs-light);
    z-index: 3;
}

.about .about-item-image::before {
    width: 80%;
    height: 80%;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid;
    border-style: dotted;
    border-color: var(--bs-white);
    background: var(--bs-primary);
    z-index: 2;
}

.about .about-item-image .about-item-image-content {
    width: 55%;
    height: 55%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bs-secondary);
    border: 4px solid var(--bs-primary);
    opacity: 0.9;
    z-index: 4;
}

.about .about-item-image .about-item-image-effect {
    position: absolute;
    top: 0;
    right: 0;
}

/*** About End ***/

/*** Features Start ***/
.feature .feature-item {
    position: relative;
    transition: 0.5s;
}
/*** transformer en orange ***/
.topbar a {
  color: #f8f9fa; /* blanc (Bootstrap text-light) */
  text-decoration: none; /* enlever le soulignement */
  transition: color 0.3s ease; /* effet doux */
}

.topbar a i {
  color: #f8f9fa; /* icône en blanc */
  transition: color 0.3s ease;
}

.topbar a:hover {
  color: #FF5E15; /* texte devient orange */
}

.topbar a:hover i {
  color: #FF5E15; /* icône devient orange */
}
/*** transformer en orange ***/
.feature .feature-item:hover {
    background: var(--bs-white);
    border: 1px solid transparent;
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
}

.feature .feature-item:hover a {
    transition: 0.5s;
}

.feature .feature-item:hover a:hover {
    color: var(--bs-secondary);
}

.feature .feature-item .feature-img img {
    border: transparent;
    transition: 0.5s;
}

.feature .feature-item:hover .feature-img img {
    border: 1px solid var(--bs-secondary);
}

/*** Features End ***/

/*** Services Start ***/
.material-symbols-outlined {
  font-size: 5em; /* مثل fa-5x */
}

.service .service-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: 0.5s;
    z-index: 1;
    border-radius: 25px;
      border-top: 5px solid #001659;    /* الحد الأزرق العلوي */
    border-bottom: 5px solid #001659; /* الحد الأزرق السفلي */
     border-right: 5px solid #001659;    /* الحد الأزرق العلوي */
    border-left: 5px solid #001659; /* الحد الأزرق السفلي */
}

.service .service-item .service-img img {
    transition: 0.5s;
    width: 100%;
  height: 450px; 
  /* أو أي ارتفاع يناسبك */
   object-fit: cover;
  overflow: hidden;
  position: relative;
}
.service .service-item:hover .service-img img {
    transform: scale(1.2);
    
    
}

.service .service-item::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    z-index: 2;
}

.service .service-item:hover:after {
    height: 100%;
    background: rgba(0, 0, 0, .4);
}

.service .service-item .service-content {
    position: absolute;
    width: 100%;
    height: auto;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: 0.5s;
    opacity: 0;
    z-index: 3;
}

.service .service-item:hover .service-content {
    opacity: 1;
}

.service .service-item:hover .service-content a.fs-4 {
    color: var(--bs-white);
    transition: 0.5s;
}

.service .service-item:hover .service-content a.fs-4:hover {
    color: var(--bs-secondary);
}

.service .service-item .service-tytle {
    position: absolute;
    width: 100%;
    height: 80px;
    bottom: 0;
    right: 0;
    background: var(--bs-white);
    display: flex;
    transition: 0.5s;
    z-index: 3;
}

.service .service-item:hover .service-tytle {
    margin-right: -100%;
}

/*** Services End ***/

/*** Fact Counter ***/
.counter {
    background: linear-gradient(rgba(0, 18, 72, 0.9), rgba(0, 22, 89, 1)), url(../img/counter.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.counter .counter-btn:hover {
    background: var(--bs-white);
    color: var(--bs-secondary);
}

.counter .counter-box {
    padding-right: 20px;
    padding-bottom: 20px;
}

.counter .counter-item {
    width: 100%;
    height: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.counter .counter-item .counter-item-style {
    position: absolute;
    width: calc(100% - 20px);
    height: 100%;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    z-index: 2;
}

.counter .counter-item .counter-item-inner {
    position: relative;
    top: 20px;
    left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    background: var(--bs-white);
    box-shadow: 20px 20px rgba(255, 94, 21, 1);
    z-index: 3;
}

.counter .counter-item .counter-counting {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-primary);
    font-size: 30px;
}

/*** Fact Counter ***/
/***WHATSAPP ***/
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #1ebe5a;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* 👉 Visible seulement à partir de 768px */
@media (max-width: 768px) {
  .whatsapp-button {
    display: none;
  }
}
/*** Projects Start ***/
.project .project-item .project-img {
    position: relative;
}

.project .project-item .project-img::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 70%;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    z-index: -1;
}

.project .project-item .project-content a.h4 {
    transition: 0.5s;
}

.project .project-item:hover .project-content a.h4:hover {
    color: var(--bs-secondary);
}

/*** Projects End ***/


/*** Team Start ***/
.team .team-item {
    position: relative;
    z-index: 1;
}

.team .team-item .team-img {
    position: relative;
    overflow: hidden;
}

.team .team-item .team-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .2);
    transition: 0.5s;
    z-index: 2;

}

.team .team-item:hover .team-img::after {
    height: 100%;
}

.team .team-item .team-img .team-icon {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    transform: scale(-1);
    margin-bottom: 100%;
    background: transparent;
    transition: 0.5s;
    opacity: 0;
    z-index: 5;

}

.team .team-item:hover .team-img .team-icon {
    transform: scale(1);
    margin-bottom: 0;
    opacity: 1;
}

.team .team-item .team-border-style-1,
.team .team-item .team-border-style-2 {
    width: 50%;
    height: 50%;
    position: absolute;
    background: var(--bs-secondary);
    transition: 0.5s;
    z-index: -1;
}

.team .team-item .team-border-style-1 {
    top: 0;
    left: 0;
}

.team .team-item .team-border-style-2 {
    right: 0;
    bottom: 0;
}

.team .team-item .team-border-style-3,
.team .team-item .team-border-style-4 {
    width: 0;
    height: 0;
    position: absolute;
    background: var(--bs-secondary);
    transition: 0.5s;
    z-index: -1;
}

.team .team-item .team-border-style-3 {
    top: 0;
    right: 0;
}

.team .team-item .team-border-style-4 {
    left: 0;
    bottom: 0;
}

.team .team-item:hover .team-border-style-1,
.team .team-item:hover .team-border-style-2 {
    width: 0%;
    height: 0%;
}

.team .team-item:hover .team-border-style-3,
.team .team-item:hover .team-border-style-4 {
    width: 50%;
    height: 50%;
}

/*** Team End ***/

/*** Blog Start ***/
.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog .blog-item .blog-content {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.blog .blog-item .blog-content a {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-content a:hover {
    color: var(--bs-secondary);
}

/*** Blog End ***/

/*** testimonial Start ***/
.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-left: 20px;
    margin-top: 20px;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    border: 1px solid var(--bs-secondary);
    background: var(--bs-primary);
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 20px;
    height: 20px;
    border: 1px solid var(--bs-primary);
    background: var(--bs-secondary) !important;
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot span {
    position: relative;
    margin-top: 50%;
    margin-left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.testimonial-carousel .owl-dots .owl-dot span::after {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-white);
}

@media (max-width: 992px) {
    .owl-carousel.testimonial-carousel {
        padding-top: 30px;
    }

    .testimonial .owl-nav .owl-prev,
    .testimonial .owl-nav .owl-next {
        top: -30px;
    }
}

/*** testimonial End ***/
/*** methodologie Start ***/
/* Section globale */
.about-how-it-works {
  padding: 60px 0;
  background: #f9f9f9; /* arrière-plan clair */
  position: relative;
  z-index: 1;
}

/* Titre section */
.about-how-it-works .heading {
  text-align: center;
  margin-bottom: 40px;
}

.about-how-it-works .heading span {
  display: block;
  color: #ff6600; /* orange */
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-how-it-works .heading h2 {
  font-size: 32px;
  font-weight: 700;
  color: #0a3d62; /* bleu foncé */
  margin: 0;
}

.about-how-it-works .heading .bermi-icon {
  width: 60px;
  margin-bottom: 15px;
}

/* Grille des étapes */
.about-how-it-works .plans {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  margin: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s ease-in-out;
}

.about-how-it-works .plans:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Numéro étape */
.about-how-it-works .y-box {
  width: 60px;
  height: 60px;
  background: #0a3d62; /* bleu */
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.about-how-it-works .plans:hover .y-box {
  background: #ff6600; /* orange au hover */
}

/* Titres des étapes */
.about-how-it-works .plans h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0a3d62;
  margin-bottom: 10px;
}

/* Texte */
.about-how-it-works .plans p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* Responsive */
@media (max-width: 767px) {
  .about-how-it-works .plans {
    margin: 15px auto;
    max-width: 90%;
  }
}

/*** methodologie end ***/
 
/*** secteur start***/
/* Bloc principal */
.module-content.section-content {
 font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;

  color: #222;
}

/* Grand titre */
.module-content h1 {
  font-size: 55px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #0a3d62; /* bleu foncé */
}

/* Titre avec texte rotatif (gradient) */
.ld-gradient-heading {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: initial !important;
  background-clip: text;
  display: inline-block;
  animation: fadeIn 1s ease-in-out;
}

/* Conteneur */
.txt-rotate-keywords {
  display: inline-block;
  position: relative;
}

/* Tous les mots par défaut */
.txt-rotate-keyword {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;

  font-weight: 700;
  background: linear-gradient(270deg, #ff6600, #ff9900, #ff6600);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  transition: opacity 0.8s ease-in-out;
  animation: gradientMove 5s ease infinite; /* dégradé en mouvement */
}

/* Mot actif */
.txt-rotate-keyword.active {
  opacity: 1;
  position: relative;
}

/* Animation dégradé */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Paragraphe */
.module-content p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-top: 15px;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .module-content h1 {
    font-size: 36px;
  }
  .ld-gradient-heading {
    font-size: 28px;
  }
}


/*** secteur end ***/

/* ===== Base container ===== */
.video-section-undernavbar {
  position: relative;
  width: 100%;
  min-height: 300px; /* fallback min-height */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* left align text */
  padding: 60px 5%;
  overflow: hidden;
}

/* ===== Background video ===== */
.video-section-undernavbar video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* keep aspect ratio, cover area */
  z-index: 0;
}

/* ===== Text overlay ===== */
.video-title-under {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
}

.video-title-under h4 {
  margin: 0;
  font-size: clamp(16px, 2vw, 22px); /* responsive font */
  font-weight: 800;
   color: #fff;
}

.video-title-under h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 4vw, 42px); /* responsive font */
  font-weight: 900;
  color: #FF5E15;
}

/* ===== Tablet adjustments ===== */





/* ===== Mobile adjustments ===== */
@media (max-width: 576px) {
  .video-section-undernavbar {
    padding: 40px 10px;
    min-height: 220px;
  }

  .video-title-under h4 {
    font-size: 14px;
  }

  .video-title-under h2 {
    font-size: 20px;
    line-height: 1.3;
  }
}

/*** banner photo  start ***/
/* تغليف الصورة بخلفية لدمجها */
.image-wrapper {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #f5f7fa, #e6ecf3); /* خلفية فاتحة */
  padding: 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* صورة مندمجة مع الخلفية */
.floating-image {
  max-width: 100%;
  opacity: 0.9; /* شفافية خفيفة للاندماج */
  mix-blend-mode: multiply; /* الدمج مع الخلفية */
  animation: floatUpDown 6s ease-in-out infinite;
}

/* حركة الصعود والنزول */
@keyframes floatUpDown {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}



/*** banner photo end ***/
/*** Contact Start ***/
.contact .contact-map {
    position: relative;
    overflow: hidden;
    padding: 20px;
    z-index: 1;
}

.contact .contact-map::before {
    content: "";
    width: 70%;
    height: 70%;
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--bs-primary);
    z-index: -1;
}

.contact .contact-map::after {
    content: "";
    width: 70%;
    height: 70%;
    position: absolute;
    top: 0;
    right: 0;
    background: var(--bs-secondary);
    z-index: -1;
}

/*** Contact End ***/

/*** Footer Start ***/
.footer {
    background: linear-gradient(rgba(0, 18, 72, 0.9), rgba(0, 18, 72, 1)), url(../img/footer-img.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    letter-spacing: 1px;
    color: var(--bs-secondary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary) !important;
}

/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
}

/*** copyright end ***/
