/* Global */
:root {
  --primary-color: #2887ff;
  --primary-color-dark: #2476da;
  --text-dark: #0a0a0a;
  --text-light: #737373;
  --extra-light: #f3f4f6;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
}

html,
body {
  scroll-behavior: smooth;
}



.contact-info a {
  margin-right: 20px;
  display: none;
  color: white;
  text-decoration: none;
}

.social-icons a {
  margin-right: 10px;
  font-size: 18px;
  display: none;
  color: white;
}

.contact-info a:hover {
  text-decoration: underline;
}

.don-button {
  background: #FFD700;
  color: #005bb5;
  padding: 5px 15px;
  display: none;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}





nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 70px;
  background: #ffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 99;
}

nav .navbar {
  height: 100%;
  max-width: 1250px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  /* background: red; */
  padding: 0 50px;
}

.navbar .logo a {
  font-size: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.logo-image {
  max-height: 60px;
  margin-right: 40px;
  border-radius: 20px;
}

nav .navbar .nav-links {
  line-height: 70px;
  height: 100%;
}

nav .navbar .links {
  display: flex;
}

nav .navbar .links li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 0 14px;
}


nav .navbar .links li a {
  height: 100%;
  text-decoration: none;
  white-space: nowrap;
  color: #005bb5;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

nav .navbar .links li a:hover {
  text-decoration:underline 3px #ffc107;
}



.links li:hover .htmlcss-arrow,
.links li:hover .js-arrow {
  transform: rotate(180deg);
}

nav .navbar .links li .arrow {
  /* background: red; */
  height: 100%;
  width: 22px;
  line-height: 70px;
  text-align: center;
  display: inline-block;
  color: #fff;
  transition: all 0.3s ease;
}

nav .navbar .links li .sub-menu {
  position: absolute;
  top: 70px;
  left: 0;
  line-height: 40px;
  background: #3E8DA8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 4px 4px;
  display: none;
  z-index: 2;
}

nav .navbar .links li:hover .htmlCss-sub-menu,
nav .navbar .links li:hover .js-sub-menu {
  display: block;
}

.navbar .links li .sub-menu li {
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .links li .sub-menu a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.navbar .links li .sub-menu .more-arrow {
  line-height: 40px;
}

.navbar .links li .htmlCss-more-sub-menu {
  line-height: 40px;
}

.navbar .links li .sub-menu .more-sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  border-radius: 0 4px 4px 4px;
  z-index: 1;
  display: none;
}

.links li .sub-menu .more:hover .more-sub-menu {
  display: block;
}


.navbar .nav-links .sidebar-logo {
  display: none;
}

.navbar .bx-menu {
  display: none;
}

@media (max-width:920px) {
  nav .navbar {
    max-width: 100%;
    padding: 0 25px;
  }

  nav .navbar .logo a {
    font-size: 27px;
  }

  nav .navbar .links li {
    padding: 0 10px;
    white-space: nowrap;
  }

  nav .navbar .links li a {
    font-size: 15px;
    color: white;
    font-weight: 520;
    text-decoration: none;
  }


  nav .navbar .links li a:hover {
    color: #f0c141;
    font-weight: bold;
  }

  .contact-info a {
    margin-right: 20px;
    color: white;
    display: block;
    text-decoration: none;
  }

  .social-icons a {
    margin-right: 10px;
    font-size: 18px;
    display: block;
    color: white;
  }

  .social-icons i {
    background-color: #f0c141;
    border-radius: 10px;
    padding: 7px;
    color: black;
  }

  .social-icons i:hover {
    background-color: black;
    color: #f0c141;
  }

}

@media (max-width:800px) {

  .navbar .bx-menu {
    display: block;
  }

  .contact-info a {
    margin-right: 20px;
    text-align: center;
    display: block;
    color: white;
    text-decoration: none;
  }

  .social-icons a {
    font-size: 18px;
    display: inline-block;
    margin-left: 50px;
    color: white;
  }

  .social-icons i {
    background-color: #f0c141;
    border-radius: 10px;
    padding: 7px;
    color: black;
  }

  .social-icons i:hover {
    background-color: black;
    color: #f0c141;
  }

  nav .navbar .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    display: block;
    max-width: 275px;
    width: 100%;
    background-color: #2c3e50;
    line-height: 40px;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    z-index: 1000;
  }

  .navbar .nav-links .sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-logo .logo-name {
    font-size: 25px;
    color: #fff;
  }


  .navbar .bx-menu {
    font-size: 25px;
    cursor: pointer;
    color: black;
  }

  .sidebar-logo i {
    color: white;
    font-size: 25px;
    cursor: pointer;
  }

  nav .navbar .links {
    display: block;
    margin-top: 20px;
  }

  nav .navbar .links li .arrow {
    line-height: 40px;
  }

  nav .navbar .links li {
    display: block;
  }

  nav .navbar .links li .sub-menu {
    position: relative;
    top: 0;
    box-shadow: none;
    display: none;
  }

  nav .navbar .links li .sub-menu li {
    border-bottom: none;

  }

  .navbar .links li .sub-menu .more-sub-menu {
    display: none;
    position: relative;
    left: 0;
  }

  .navbar .links li .sub-menu .more-sub-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .links li:hover .htmlcss-arrow,
  .links li:hover .js-arrow {
    transform: rotate(0deg);
  }

  .navbar .links li .sub-menu .more-sub-menu {
    display: none;
  }

  .navbar .links li .sub-menu .more span {
    /* background: red; */
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
  }

  .links li .sub-menu .more:hover .more-sub-menu {
    display: none;
  }

  nav .navbar .links li:hover .htmlCss-sub-menu,
  nav .navbar .links li:hover .js-sub-menu {
    display: none;
  }

  .navbar .nav-links.show1 .links .htmlCss-sub-menu,
  .navbar .nav-links.show3 .links .js-sub-menu,
  .navbar .nav-links.show2 .links .more .more-sub-menu {
    display: block;
  }

  .navbar .nav-links.show1 .links .htmlcss-arrow,
  .navbar .nav-links.show3 .links .js-arrow {
    transform: rotate(180deg);
  }

  .navbar .nav-links.show2 .links .more-arrow {
    transform: rotate(90deg);
  }
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 51, 224, 0.5);
  z-index: 99;
}



/*bann style*/

.bann {
  background: url('photobf/realisations.jpg') no-repeat center center/cover;
  color: white;
  padding: 100px 20px;
  opacity: 0.9;
  padding-top: 140px;
  text-align: center;
}


.bann h1 {
  font-size: 2em;
  margin-bottom: 10px;
  background-color: rgba(37, 37, 37, 0.651);
}

.bann p {
  font-size: 1.2em;
  background-color: rgba(37, 37, 37, 0.651);
}

.navbar ul li a.active {
  text-decoration:underline 3px #ffc107;
}







/* Splash Screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease-out;
}

#splash-screen img {
  width: 150px;
  /* Ajuste la taille du logo si nécessaire */
  animation: fadeIn 1.5s ease-in-out;
}

/* Animation du logo */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Disparition du splash screen */
.hidden {
  opacity: 0;
  pointer-events: none;
}








/* Styles pour la barre de recherche */
.search-bar-container {
    margin: 20px 0;
    text-align: center;
}

#search-input {
    width: 100%;
    max-width: 600px; /* Limite la largeur sur les grands écrans */
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px; /* Bords arrondis */
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Petite ombre discrète */
    transition: border-color 0.3s, box-shadow 0.3s;
}

#search-input:focus {
    outline: none;
    border-color: #007bff; /* Change la couleur de la bordure au focus */
    box-shadow: 0 0 8px rgba(0,123,255,0.2);
}











#nazan-realisations {
    padding: 60px 0;
    background-color: #013cfdc0; /* Fond blanc ou très clair */
}

#nazan-realisations h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

#nazan-realisations .section-subtitle {
    font-size: 1.1em;
    color: white;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.realisations-tabs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Pour les petits écrans */
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.realisation-tab-btn {
    padding: 10px 20px;
    font-size: 0.95em; /* Légèrement plus petit pour accommoder plus d'onglets */
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #d0d9e2;
    background-color: #f8f9fa;
    color: #34495e;
    border-radius: 20px; /* Boutons plus arrondis */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.realisation-tab-btn i {
    color: #f00d3e;
}

.realisation-tab-btn:hover {
    background-color: #e9ecef;
    border-color: #bac8d3;
}

.realisation-tab-btn.active {
    background-color: #000;
    color: #ffffff;
    border-color: #2980b9;
}
.realisation-tab-btn.active i {
    color: #ffffff;
}

.realisations-content-area {
    background-color: #f9f9f9; /* Léger fond pour la zone de contenu */
    padding: 20px;
    border-radius: 8px;
    min-height: 300px; /* Pour éviter les sauts de page pendant le chargement */
    position: relative; /* Pour le positionnement du loader */
}

.loading-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #7f8c8d;
    font-size: 1.2em;
}
/* Optionnel: Spinner CSS (exemple simple) */
.loading-placeholder::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Style pour les cartes de réalisation (une approche) */
.realisation-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #3498db; /* Couleur d'accentuation */
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.realisation-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.realisation-card .mission-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.realisation-card .client-info {
    display: flex;
    align-items: flex-start; /* Changé pour mieux gérer les logos */
    gap: 15px;
    margin-bottom: 15px;
}

.realisation-card .client-logo {
    width: 60px; /* Ajustez selon la taille de vos logos */
    height: 60px;
    object-fit: contain; /* Pour que le logo entier soit visible */
    border-radius: 4px;
    /* background-color: #f0f0f0; /* Fallback si pas de logo ou pour les logos transparents */
    /* border: 1px solid #ddd; /* Optionnel */
    flex-shrink: 0; /* Empêche le logo de rétrécir */
}
.realisation-card .client-logo.placeholder { /* Si pas de logo, on affiche un placeholder */
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 0.8em;
    text-align: center;
    padding: 5px;
}


.realisation-card .client-details {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}
.realisation-card .client-details strong {
    color: #333;
}

.realisation-card .project-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9em;
    color: #777;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
    margin-top: 15px;
}

.realisation-card .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.realisation-card .meta-item i {
    color: #3498db;
}

/* Responsive pour les réalisations */
@media (max-width: 768px) {
    .realisation-tab-btn {
        font-size: 0.9em;
        padding: 8px 15px;
    }
    .realisation-card .mission-title {
        font-size: 1.15em;
    }
    .realisation-card .client-info {
        flex-direction: column; /* Empiler logo et détails sur mobile */
        align-items: flex-start;
    }
    .realisation-card .client-logo {
        margin-bottom: 10px;
    }
    .realisation-card .project-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}












/* Section for the Interactive Background */
.interactive-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  /* Send to background */
  background-size: 400% 400%;
  animation: gradientAnimation 10s ease infinite;
}

/* Floating Items (Icons and Words) */
.background__container {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-item {
  position: absolute;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  opacity: 0.8;
  animation: float 6s linear infinite, drift 12s ease-in-out infinite;
  white-space: nowrap;
}

/* Animate Background Gradient */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Float Effect for Items */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Drift Animation for Horizontal Movement */
@keyframes drift {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(50px);
  }

  100% {
    transform: translateX(0);
  }
}

/* Generate Random Position for Items */
.floating-item:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.floating-item:nth-child(2) {
  top: 20%;
  left: 75%;
  animation-delay: 1s;
}

.floating-item:nth-child(3) {
  top: 50%;
  left: 40%;
  animation-delay: 2s;
}

.floating-item:nth-child(4) {
  top: 30%;
  left: 20%;
  animation-delay: 3s;
}

.floating-item:nth-child(5) {
  top: 70%;
  left: 60%;
  animation-delay: 4s;
}

.floating-item:nth-child(6) {
  top: 80%;
  left: 10%;
  animation-delay: 5s;
}

.floating-item:nth-child(7) {
  top: 60%;
  left: 80%;
  animation-delay: 6s;
}

.floating-item:nth-child(8) {
  top: 15%;
  left: 45%;
  animation-delay: 7s;
}

.floating-item:nth-child(9) {
  top: 5%;
  left: 50%;
  animation-delay: 8s;
}

.floating-item:nth-child(10) {
  top: 90%;
  left: 35%;
  animation-delay: 9s;
}







/* Section Transparence */
.transparency-section {
  text-align: center;
  padding: 40px 20px;
  background: #e2e8f0;
  border-radius: 10px;
}

.download-btn {
  background: #1e40af;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.download-btn:hover {
  background: #1e293b;
}

/* Section Partenaires */
.partners-section {
  text-align: center;
  padding: 40px 20px;
}

.partners-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.partners-grid img {
  width: 120px;
  height: auto;
  border-radius: 8px;
}









/* Section for the Interactive Background */
.interactive-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1; /* Send to background */
  background-size: 400% 400%;
  animation: gradientAnimation 10s ease infinite;
}

/* Floating Items (Icons and Words) */
.background__container {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-item {
  position: absolute;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  opacity: 0.8;
  animation: float 6s linear infinite, drift 12s ease-in-out infinite;
  white-space: nowrap;
}

/* Animate Background Gradient */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Float Effect for Items */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Drift Animation for Horizontal Movement */
@keyframes drift {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(50px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Generate Random Position for Items */
.floating-item:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.floating-item:nth-child(2) {
  top: 20%;
  left: 75%;
  animation-delay: 1s;
}

.floating-item:nth-child(3) {
  top: 50%;
  left: 40%;
  animation-delay: 2s;
}

.floating-item:nth-child(4) {
  top: 30%;
  left: 20%;
  animation-delay: 3s;
}

.floating-item:nth-child(5) {
  top: 70%;
  left: 60%;
  animation-delay: 4s;
}

.floating-item:nth-child(6) {
  top: 80%;
  left: 10%;
  animation-delay: 5s;
}

.floating-item:nth-child(7) {
  top: 60%;
  left: 80%;
  animation-delay: 6s;
}

.floating-item:nth-child(8) {
  top: 15%;
  left: 45%;
  animation-delay: 7s;
}

.floating-item:nth-child(9) {
  top: 5%;
  left: 50%;
  animation-delay: 8s;
}

.floating-item:nth-child(10) {
  top: 90%;
  left: 35%;
  animation-delay: 9s;
}











/* Styles du Footer */
.footer {
  background: #2c3e50;
  padding: 50px 0;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Logo */
.footer-logo {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 14px;
  color: #fff;
}

/* Liens de navigation */
.footer-links,
.footer-social,
.footer-contact {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.footer-links h3,
.footer-social h3,
.footer-contact h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
  position: relative;
}

.footer-links h3::after,
.footer-social h3::after,
.footer-contact h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: #f00d3e;
  margin: 8px auto;
}

/* Liste des liens */
.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin: 8px 0;
}

.footer-links a,
.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #007bff;
}

/* Icônes des réseaux sociaux */
.social-iconss {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-iconss a {
  display: inline-block;
  font-size: 20px;
  color: #007bff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-iconss a:hover {
  color: #f00d3e;
  transform: scale(1.2);
}

.social-iconss i:hover {
  color: #fff;
  background-color: #f00d3e;
  transform: scale(1.1);
}

/* Icônes de contact */
.footer-contact i {
  margin-right: 8px;
  color: #007bff;
}

/* Copyright */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #007bff;
  font-size: 14px;
  color: #fff;
}