html, body {
  height: 100%;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
}
body {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  
  color: #222;
  overflow-x: visible;
}
.main-content, .text-center.d-flex {
  flex: 1 0 auto;
}
.logo img {
  height: 40px;
}
.btn-gradient {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 2px 12px rgba(38,99,235,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-gradient:hover, .btn-gradient:focus {
  background: linear-gradient(90deg, #1e40af 0%, #38bdf8 100%);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(38,99,235,0.13);
}
.footer-modern {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
}
.text-gradient {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.intro-illu {
  max-width: 320px;
}
.illu-bg {
  background: linear-gradient(120deg, #e0e7ff 60%, #f0f9ff 100%);
  min-height: 120px;
  min-width: 100%;
  box-shadow: 0 2px 16px rgba(38,99,235,0.07);
}
/* Progress bar moderne */
.progress {
  background: #e0e7ef;
  border-radius: 8px;
  box-shadow: 0 2px 8px #2563eb11;
  overflow: hidden;
}
.progress-bar.bg-gradient {
  background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.5s;
  position: relative;
  overflow: hidden;
}
.progress-bar.bg-gradient::after {
  content: '';
  position: absolute;
  left: -40%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0.15) 100%);
  animation: shine 1.2s linear;
  pointer-events: none;
}
@keyframes shine {
  0% { left: -40%; }
  100% { left: 100%; }
}
#progress-label {
  font-weight: 500;
  color: #2563eb;
  letter-spacing: 1px;
}
.form-step { display: none; }
.form-step.active { display: block; }
/* Responsive */
@media (max-width: 700px) {
  .main-content { padding-top: 1.5rem !important; }
  .intro-section { padding-top: 1.5rem; }
  .progress-container, .intro-illu { max-width: 98vw; }
  .illu-bg { min-height: 80px; }
  .w-label {
    min-width: 0;
    width: 100%;
    display: block;
  }
}
.w-label {
  min-width: 170px;
  display: inline-block;
}
.shine-animate::after {
  animation: shine 1.2s linear;
}
.card {
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(42,122,228,0.10);
  border: none;
  transition: transform 0.18s, box-shadow 0.18s;
  padding-bottom: 0.5rem;
}
.card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 32px rgba(42,122,228,0.18);
}
.card-title {
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card .card-icon {
  font-size: 1.3rem;
  color: #2563eb;
  margin-right: 0.5rem;
}
.card-body {
  padding: 2rem 1.5rem 1.2rem 1.5rem;
}
@media (max-width: 700px) {
  .card-body {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
}
#telephone.form-control {
  min-width: 0;
  width: 100% !important;
  height: 40px; /* même hauteur que les autres champs Bootstrap */
  box-sizing: border-box;
}
.iti {
  width: 100%;
}

/* Navbar fixes for dropdown visibility */
.navbar.fixed-top {
  overflow: visible !important;
}

.navbar .container {
  overflow: visible !important;
}

.navbar-collapse {
  overflow: visible !important;
}

.dropdown-menu {
  top: 100% !important;
  z-index: 1070 !important;
  overflow: visible !important;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-nav .dropdown:hover .dropdown-menu,
.navbar-nav .dropdown-toggle:focus ~ .dropdown-menu,
.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.custom-pret-card {
  border-radius: 1.2rem;
  background: linear-gradient(120deg, #f8fafc 60%, #e0e7ff 100%);
}

@media (max-width: 700px) {
  .hero-card-container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.carousel-caption {
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  text-align: center;
}
.partner-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}
.partner-carousel .owl-nav button {
    position: absolute;
    background: var(--primary-color, #2563eb) !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    font-size: 20px !important;
    pointer-events: all;
    border: none;
}
.partner-carousel .owl-nav button.owl-prev {
    left: -20px;
}
.partner-carousel .owl-nav button.owl-next {
    right: -20px;
}

.partner-carousel {
  padding-bottom: 30px;
}
.partner-carousel .owl-stage-outer {
  overflow: hidden !important;
}
.partner-carousel .owl-stage {
  display: flex;
}
.partner-carousel .owl-item {
  display: block !important;
  height: auto !important;
  min-width: 0 !important;
  width: auto !important;
  justify-content: unset !important;
  align-items: unset !important;
}
.partner-carousel .card {
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-carousel .card img {
  max-height: 80px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* How it works section */
.steps-row {
  position: relative;
}

@media (min-width: 768px) {
  .steps-row::before {
    content: '';
    position: absolute;
    top: 40px; /* Center of the 80px icon */
    left: 15%;
    right: 15%;
    height: 2px;
    background-image: linear-gradient(to right, #ced4da 33%, rgba(255,255,255,0) 0%);
    background-position: bottom;
    background-size: 15px 2px;
    background-repeat: repeat-x;
    z-index: 0;
  }
}

#how-it-works .card {
  z-index: 1;
  position: relative;
  border: 2px dotted #ced4da;
  box-shadow: none;
  background-color: #fff; /* Ensures line doesn't show through */
  border-radius: 8px; /* Makes it a sharp rectangle */
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, border-style 0.2s;
}

#how-it-works .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(42,122,228,0.18) !important;
  border-color: #2563eb;
  border-style: solid;
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.step-icon i {
  color: #fff;
  font-size: 2.5rem;
}

/* CTA Button Style */
.btn-cta {
  display: block;
  width: 100%;
  max-width: 600px;
  
  margin: 0 auto;
  padding: 0.8rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3) !important;
}

@media (max-width: 700px) {
  .partner-carousel .card {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
  }
  .partner-carousel .card img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    padding: 10px; /* optionnel, pour éviter que le logo touche les bords */
    margin: 0 auto;
    display: block;
  }
}

/* Correction overflow carrousel partenaires */
.partner-carousel,
.partner-carousel .owl-stage-outer,
.partner-carousel .owl-stage,
.partner-carousel .owl-item,
.partner-carousel .card {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 700px) {
  .partner-carousel .card,
  .partner-carousel .owl-item {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.carousel {
  overflow: visible !important;
  position: relative;
}
.carousel-control-prev, .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: #2563eb;
  border-radius: 50%;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.carousel-control-prev {
  left: 16px;
}
.carousel-control-next {
  right: 16px;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
  background-size: 60% 60%;
  filter: invert(1);
}
.carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.carousel-indicators [data-bs-target] {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #2563eb;
  opacity: 0.4;
  border: none;
  transition: opacity 0.3s, background 0.3s;
}
.carousel-indicators .active {
  opacity: 1;
  background-color: #2563eb;
  box-shadow: 0 0 0 2px #fff, 0 0 6px #2563eb55;
}

.carousel-inner .carousel-item img {
  border-bottom-left-radius: 1.2rem;
  border-bottom-right-radius: 1.2rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  overflow: hidden;
}

/* Card vert dégradé BNP Paribas */
.bnp-card-vert {
  background: linear-gradient(120deg, #004d3b 0%, #00b388 100%);
  color: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1.2rem 1rem;
}
.bnp-card-vert .fa-solid {
  color: #fff;
  font-size: 2rem;
  margin-right: 0.7rem;
}
.bnp-card-vert .bnp-card-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}
.bnp-card-vert .bnp-card-desc {
  color: #e6fff4;
  font-size: 0.98rem;
}
.text-bnp-white {
  color: #fff !important;
}
/* Frise horizontale responsive */
.timeline-horizontal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.timeline-step {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(0, 153, 90, 0.08);
  min-width: 180px;
  max-width: 220px;
  flex: 1 0 180px;
  text-align: center;
  padding: 1.2rem 1rem;
  position: relative;
}

.timeline-step .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00995a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.7rem auto;
  box-shadow: 0 0 0 4px #e6f7f0;
}

.timeline-step .year {
  font-weight: bold;
  color: #00995a;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.timeline-step .title {
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.timeline-step .badge {
  display: inline-block;
  font-size: 0.92rem;
  border-radius: 0.7rem;
  padding: 0.3rem 1.1rem;
  margin-top: 0.2rem;
  background: #e6f7f0;
  color: #00995a;
}

@media (max-width: 600px) {
  .timeline-horizontal {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    overflow-x: visible;
    padding-bottom: 0.5rem;
  }

  .timeline-step {
    min-width: unset !important;
    max-width: unset !important;
    width: 100%;
    padding: 0.8rem 0.5rem;
    font-size: 0.92rem;
  }

  .timeline-step .icon {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .timeline-step .year {
    font-size: 0.92rem;
  }

  .timeline-step .title {
    font-size: 0.89rem;
  }

  .timeline-step .badge {
    font-size: 0.7rem;
    padding: 0.13rem 0.5rem;
  }
}

/* Styles pour la section Personnel */
.personal-service {
  padding: 3rem 0;
}

.personal-service-card {
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.personal-service-image {
  height: 100%;
  min-height: 280px;
  max-height: 100%;
  display: flex;
  align-items: stretch;
}

.personal-service-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 0 1.2rem 1.2rem 0;
}

.experience-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  background: rgba(0, 153, 90, 0.9);
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .personal-service-card {
    flex-direction: column;
  }

  .personal-service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
  }

  .personal-service-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media (max-width: 991px) {
  .personal-service-image {
    min-height: 180px;
  }

  .personal-service-image img {
    border-radius: 0 0 1.2rem 1.2rem;
  }
}

/* Centrage, police réduite et border-radius réduit pour les cards équipe */
.card.text-center {
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem !important;
  font-size: 0.88rem;
  min-height: 170px;
}

.card.text-center h5 {
  font-size: 0.92rem !important;
}

.card.text-center p {
  font-size: 0.85rem !important;
}

.card.text-center img {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .card.text-center {
    font-size: 0.82rem;
    min-height: 150px;
  }

  .card.text-center h5 {
    font-size: 0.85rem !important;
  }

  .card.text-center p {
    font-size: 0.78rem !important;
  }
}

body,
html {
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  width: 100vw;
  overflow-x: auto;
}