@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

:root {
    --brand: #014484;
    --dark: #092032;
    --body: #516171;
    --border: rgba(0,0,0,0.08);
    --shadow: 0px 6px 30px rgba(0, 0, 0, 0.08);
    
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--body);
    line-height: 1.7;
}
/* Empêche le débordement horizontal */
html, body {
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6,
.display-1,.display-2,.display-3,.display-4 {
    font-weight: 700;
    color: var(--dark);
}

.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



a {
    color: var(--dark);
    transition: all 0.4s ease;
    font-weight: 500;
}

a:hover {
    color: var(--brand);
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.text-brand {
    color: var(--brand) !important;
}


  /* ===== Main Navigation ===== */
  .navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.4s ease;
    padding: 15px 0;
  }
  
  .navbar.scrolled {
    background-color: white !important;
    box-shadow: var(--shadow);
    padding: 10px 0;
  }
  
  .navbar-brand img {
    transition: all 0.3s ease;
  }
  
  .navbar.scrolled .navbar-brand img {
    height: 50px; /* Réduire légèrement le logo après scroll */
  }
  
  .navbar .navbar-nav .nav-link {
    color: white;
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
  }
  
  .navbar.scrolled .navbar-nav .nav-link {
    color: var(--dark);
  }
  
  .navbar .navbar-nav .nav-link:hover,
  .navbar .navbar-nav .nav-link.active {
    color: var(--brand);
    transform: translateY(-1px);
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: calc(100% - 2rem);
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
  }
  .nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

  .navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
  }
  
  /* Bouton Rendez-vous */
  .btn-brand {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 25px;
    border-radius: 4px;
    transition: all 0.3s ease;
  }
  
  .navbar.scrolled .btn-brand {
    background-color: var(--brand);
    border-color: var(--brand);
    color: white;
  }
  
  .btn-brand:hover {
    background-color: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
    color: #fff;
  }
  
  /* ===== Hero Slider ===== */
  .hero-slider {
    position: relative;
  }
  
  .slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Compenser la navbar fixe */
  }
  
  .slide1 {
    background: linear-gradient(rgba(1, 69, 132, 0.3), rgba(1, 69, 132, 0.3)), url(../img/IMG_9575.jpg);
    background-size: cover;
    background-position: center;
  }
  
  .slide2 {
    background: linear-gradient(rgba(1, 69, 132, 0.3), rgba(1, 69, 132, 0.3)), url(../img/IMG_9576.jpg);
    background-size: cover;
    background-position: center;
  }
  
  .hero-content {
    max-width: 600px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  .slogan-lg {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 30px;
    opacity: 0.9;
  }
  
  /* Navigation du slider */
  .hero-slider .owl-prev,
  .hero-slider .owl-next {
    background-color: rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 100px;
    position: absolute;
    top: 50%;
    font-weight: 600;
    font-size: 20px;
    transition: all 0.4s ease;
    margin-top: -30px;
    border: none;
    cursor: pointer;
  }
  
  .hero-slider .owl-prev {
    left: 30px;
  }
  
  .hero-slider .owl-next {
    right: 30px;
  }
  
  .hero-slider .owl-prev:hover,
  .hero-slider .owl-next:hover {
    background-color: var(--brand);
  }
  
  .owl-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .owl-dot span {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    display: block;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .owl-dot.active span {
    background-color: white;
    width: 30px;
    border-radius: 10px;
  }
  /* ===== Styles du Toggle Navbar (Mobile) ===== */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    background: transparent;
    outline: none !important;
    box-shadow: none !important;
  }
  
  .navbar-toggler span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
  }
  
  .navbar.scrolled .navbar-toggler span {
    background-color: var(--dark);
  }
  
  .navbar-toggler span:nth-child(1) {
    top: 8px;
  }
  
  .navbar-toggler span:nth-child(2) {
    top: 18px;
  }
  
  .navbar-toggler span:nth-child(3) {
    top: 28px;
  }
  
  /* État ouvert du menu */
  .navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
  }
  
  .navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  
  .navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
  }
  
  /* Menu déroulant mobile */
  @media (max-width: 992px) {
    .navbar-collapse {
      background-color: white;
      padding: 20px;
      margin-top: 15px;
      border-radius: 5px;
      box-shadow: var(--shadow);
    }
    
    .navbar-nav {
      padding-top: 10px;
    }
    
    .nav-item {
      margin-bottom: 5px;
    }
    
    .nav-link {
      padding: 10px 15px !important;
    }
    
    .dropdown-menu {
      border: none !important;
      box-shadow: none !important;
      padding-left: 20px;
    }
    
    .btn-brand {
      margin-top: 10px;
      display: inline-block;
      background-color: var(--brand) !important;
      color: white !important;
    }
  }
  
  /* Animation du menu */
  .navbar-collapse.collapsing {
    transition: all 0.3s ease;
    height: 0;
    overflow: hidden;
  }
  
  .navbar-collapse.show {
    transition: all 0.3s ease;
  }
  /* ===== Media Queries ===== */
  @media (max-width: 992px) {
    .navbar {
      background-color: white !important;
    }
    
    .navbar .navbar-nav .nav-link {
      color: var(--dark);
      padding: 10px 0;
    }
    
    .hero-content h1 {
      font-size: 2.5rem;
    }
    
    .slide {
      min-height: 80vh;
      text-align: center;
    }
    
    .hero-slider .owl-prev,
    .hero-slider .owl-next {
      width: 50px;
      height: 50px;
      font-size: 16px;
    }
  }
  
  @media (max-width: 768px) {
    .hero-content h1 {
      font-size: 2rem;
    }
    
    .slogan-lg {
      font-size: 1rem;
    }
    
    .btn-brand {
      padding: 8px 20px;
    }
  }

  #milestone {
    background: linear-gradient(#004bad5e, #004bad46), url(../img/back4-min.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#milestone h1,
#milestone p {
    color: #fff;
}


#portfolio {
  margin-bottom: 0 !important;
  padding-bottom: 40px; /* vous pouvez ajuster selon besoin */
}
#portfolio .container {
  margin-bottom: 0;
  padding-bottom: 40px;
}
.project img {
  width: 100%;
  height: 300px; /* ou 300px selon ton design */
  object-fit: cover;
  object-position: center;
  display: block;
}

.project {
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.project h6 {
    font-weight: 400;
}

.project h6::before {
    content: "";
    height: 2px;
    width: 30px;
    display: inline-block;
    background: var(--brand);
    vertical-align: middle;
    margin-right: 10px;
}


.project .overlay {
    width: 100%;
    height: 220px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(255, 76, 41, 0) 0%, var(--dark) 100%);
}

.project .content {
    position: absolute;
    left: 10%;
    bottom: 10%
}

.project h2,
.project h6 {
    color: #fff;
}


#reviews {

    background: linear-gradient(-90deg, #004bad2a, #004bad38), url(../img/bg_banner1-min.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.review {
    text-align: center;
    z-index: 2;
    position: relative;
    margin: 15px;
    max-width: 768px;
    margin: auto;
}

.review .bxs-quote-alt-left {
    font-size: 120px;
    position: absolute;
    opacity: 0.1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.review img {
    width: 100px !important;
    height: 100px;
    border-radius: 100px;
    margin: auto;
}

.review h5 {
    margin-top: 16px;
    margin-bottom: 4px;
    color: #fff;
}

.review h3 {
    margin-top: 26px;
    margin-bottom: 26px;
    font-size: 22px;
    color: #fff;
    font-weight: 400;
    line-height: 1.7;
}

.review small {
    color: var(--brand);
}

.review .stars {
    color: #f5d41a;
}

.blog-post {
    position: relative;
    background-color: #fff;
    box-shadow: var(--shadow);
}

.blog-post .content {
    padding: 32px;
}

.blog-post a {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--brand);
    padding: 2px 12px;
    border-radius: 100px;
    text-decoration: none;
    color: #fff;
}

.blog-post h5 {
    margin-top: 12px;
    margin-bottom: 12px;
}

.blog-post small {
    text-transform: uppercase;
    color: var(--brand);
    text-decoration: underline;
}
.newsletter-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.newsletter-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.newsletter-text {
  flex: 1;
  min-width: 300px;
}

.newsletter-image {
  flex: 1;
  min-width: 300px;
}

.newsletter-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.newsletter-form {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  padding: 12px;
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.newsletter-form button {
  padding: 12px 20px;
  background-color: #004aad;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.newsletter-form button:hover {
  background-color: #516171;
}

.sr-only {
  position: absolute;
  left: -9999px;
}



.loader {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #014484;
    z-index: 99999;
    position: fixed;
    left: 0;
    right: 0;
}


input.form-control {
    border-color: transparent;
    height: 44px;
}

.form-control {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.04);;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--brand);
}