* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}


body {
  /* background-color: #fefefe; */
  background-color: #f9f9f9;
  font-family: 'poppins', sans-serif;
  overflow-x: hidden !important;
}

/* ========== Tailles fluides des titres et textes ========== */
h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

h4 {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

p,
a {
  font-size: clamp(12.5px, 1.2vw, 14px);
}
#slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  inset: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
 
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 30, 150, 0.5);
  background-size: cover;
  background-position: center;
  filter: blur(1px) brightness(0.5);
  z-index: 1;
  pointer-events: none;
  -webkit-filter: blur(1px) brightness(0.5);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  padding:20px;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  /*padding: 20px;
  */-webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

.slide-content h1 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

.slide-content h4 {
  color: #ffffff;
  margin-top: 10px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

.nav-buttons {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
}

.nav-buttons button {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;

}

.nav-buttons button.active {
  background-color: rgba(255, 255, 255, 0.8);
}

.fact{
  position: relative;
  padding: 2rem 0px;
  background: url('../img/fac_bg5.jpg') fixed;
  background-repeat:repeat;
  background-size: contain;
}
.fact-wrapper {
  width: 75%;
  margin: 0 auto;
  
}

.fact-col {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}
.fact-col .fact-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.fact-col .fact-item p{
  font-size: 16px;
  font-weight: 500;
   color:#003366;
   text-align: center;
   margin-top: 10px;
}

.fact-wrapper h2 {
  color:#003366;
  text-align: center;
  margin-bottom: 20px;
}


.fact .fact-item .fact-icon {
  align-items: center;
  /* background-image:linear-gradient(#BFC7D5,#324ac3); */
 
  /* background: rgb(83, 147, 238); */
    background: linear-gradient(180deg, rgba(83, 147, 238, 1) 0%, rgb(18, 5, 135) 100%);
   width: 150px;
   height: 150px;
   border-radius: 50%;
   transition: 0.3s;
   display: flex;
   align-items: center;
   justify-content: center;
  
}

.fact .fact-item:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

.fact .fact-item i {
  font-size:50px;
   color:#fff;
}




/* Grid responsives */
@media (min-width: 1600px) {
  .fact-col {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1599px) and (min-width: 1200px) {
  .fact-col {
    grid-template-columns: repeat(4, 1fr);
  }

  #slider {
    height: 100vh;
  }
}

@media (max-width: 1199px) {
  .fact-col {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact-wrapper {
    width: 90%;
  }

  #slider {
    height: 100vh;
  }
}

@media (max-width: 768px) {
  .fact-wrapper {
    width: 90%;
  }

  .fact-col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
    
.fact .fact-item .fact-icon {
  width: 130px;
   height: 130px;
  }
    
.fact .fact-item i {
  font-size:30px;
}
}

@media (max-width: 543px) {
  .fact-wrapper {
    width: 90%;
  }

  .fact-col {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  
.fact .fact-item .fact-icon {
  width: 100px;
   height: 100px;
  }
  
.fact .fact-item i {
  font-size:30px;
}
.fact-col .fact-item p{
  font-size: 14px;
}

}
