/* HERO SLIDER */


/* Slide */
.hero-slide {
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 45, 0.65); /* navy overlay */
}

/* Content above overlay */
.hero-slide .container {
  position: relative;
  z-index: 2;
}

/* Fade-up animation */
.hero-content {
  animation: fadeUp 3s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel smooth fade */
.carousel-fade .carousel-item {
  transition: opacity 1s ease-in-out;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.8;
  z-index: 3;
}

.scroll-cue i {
  display: block;
  font-size: 1.3rem;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {

  .hero-slide {
    min-height: 85vh;
    text-align: center;
  }

  .hero-slide h1 {
    font-size: 2rem;
  }

  .hero-slide p {
    font-size: 1rem;
  }

  .hero-slide .btn {
    width: 100%;
  }

  .scroll-cue {
    font-size: 0.75rem;
  }
}


#servicesCarousel {
  position: relative;
}

#servicesCarousel .carousel-control-prev,
#servicesCarousel .carousel-control-next {
  width: 48px;
}

#servicesCarousel .carousel-control-prev-icon,
#servicesCarousel .carousel-control-next-icon {
  filter: invert(1);
}
/* SERVICE IMAGE CONTAINER */
.service-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; /* ✅ LOCKS HEIGHT */
  overflow: hidden;
  background-color: #e9ecef;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ CROPS PROPERLY */
  object-position: center;
  transition: transform 0.6s ease;
}
@media (max-width: 576px) {
  .service-image {
    aspect-ratio: 4 / 3;
  }
}

.service-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden; /* 🔥 CRITICAL */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-image {
  position: relative;
  width: 100%;
  height: 200px; /* 👈 DEFINE HEIGHT (adjust if needed) */
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 KEY */
  display: block;    /* 🔥 removes inline gaps */
  margin: 0;
  padding: 0;
}

/* WHY US SECTION */
.why-us-section {
  position: relative;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.feature-list i {
  color: #0d6efd;
  font-size: 1.1rem;
  margin-top: 2px;
}

/* Image block */
.why-us-image-wrapper {
  position: relative;
  display: inline-block;
}

.experience-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #0d6efd;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.experience-badge span {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge small {
  font-size: 0.75rem;
  opacity: 0.9;
}

:root {
    --brand-blue: #0047AB;   /* Primary Blue */
    --brand-yellow: #FFD700; /* Primary Yellow */
    --brand-white: #ffffff;
    --text-dark: #333333;
}

.quote-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.quote-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: var(--brand-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Left side Gradient */
.quote-info {
    flex: 1;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #002e6e 100%);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--brand-yellow);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.benefits-list li {
    margin-bottom: 15px;
    font-weight: 500;
}

/* Right side Form */
.quote-form-container {
    flex: 1.2;
    padding: 50px;
}

.quote-form h3 {
    margin-bottom: 25px;
    color: var(--brand-blue);
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group-row {
    display: flex;
    gap: 20px;
}

.form-group-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 5px rgba(0, 71, 171, 0.2);
}

/* Button with Yellow Brand Color */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--brand-yellow);
    border: none;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.submit-btn:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .quote-container {
        flex-direction: column;
    }
    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
    .quote-info {
        padding: 30px;
    }
}


/* Animation and Brand Hover Effects */
.stat-card {
  transition: all 0.3s ease-in-out;
  border-color: rgba(0, 71, 171, 0.1) !important; /* Soft Blue Border */
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: #FFD700 !important; /* Yellow Border on Hover */
  box-shadow: 0 1rem 3rem rgba(0, 71, 171, 0.175) !important; /* Deep Blue Shadow */
}

.stat-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #f8faff;
  color: #0047AB;
  transition: 0.3s;
}

.stat-card:hover .stat-icon-wrapper {
  background-color: #0047AB;
  color: #ffffff;
}

/* CTA Section Base */
.cta-section {
  background: linear-gradient(135deg, #0047AB 0%, #002e6e 100%);
  border-top: 4px solid #FFD700; /* Yellow accent line at top */
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Background Pattern (Subtle dots or waves) */
.cta-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}

/* Custom Yellow Button with Glow */
.btn-yellow-glow {
  background-color: #FFD700;
  color: #002e6e;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-yellow-glow:hover {
  background-color: #ffffff;
  color: #0047AB;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6) !important;
}

.btn-yellow-glow i {
  transition: transform 0.3s ease;
}

.btn-yellow-glow:hover i {
  transform: translateX(5px);
}

/* For the Z-index management */
.z-1 { z-index: 1; }



:root {
  --brand-blue: #0047AB;
  --brand-yellow: #FFD700;
}

.footer-section {
  /* Gradient: Starts White to blend with previous section, ends in a very light brand blue */
  background: linear-gradient(to bottom, #ffffff 0%, #f0f5ff 100%);
  border-top: 1px solid #e0e0e0;
}

.brand-blue-text {
  color: var(--brand-blue);
}

.brand-yellow-text {
  /* Slightly darker yellow for better contrast on white */
  color: #d4b400; 
}

.letter-spacing {
  letter-spacing: 1.5px;
}

.border-light-dark {
  border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Link Hover Animations */
.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  transition: all 0.3s ease;
  display: inline-block;
  border-bottom: 2px solid transparent;
}

.footer-links a:hover {
  color: var(--brand-blue) !important;
  border-bottom: 2px solid var(--brand-yellow);
  padding-left: 5px;
}

/* Social Icon Styling - Blue Theme */
.social-icon {
  width: 38px;
  height: 38px;
  background: #ffffff;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px; /* Square with rounded corners for a modern look */
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 71, 171, 0.15);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
  background: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 71, 171, 0.2);
}





/* Mega Menu Styling */
.mega-menu {
    left: 0 !important;
    right: 0 !important;
    padding: 20px 0;
    margin-top: 0;
    /* On évite le scroll interne, tout doit être visible */
    overflow: hidden; 
}

/* On personnalise les titres de colonnes */
.dropdown-header {
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding-left: 0;
    color: #0047AB !important;
}

/* Effet sur les liens pour éviter que tout se ressemble */
.mega-menu .dropdown-item {
    font-size: 0.92rem;
    padding: 8px 10px;
    color: #555;
    border-radius: 5px;
    white-space: normal;
    transition: all 0.2s ease; /* Déplacé ici pour une transition fluide à l'aller ET au retour */
    
    /* Force le texte en minuscules */
    text-transform: lowercase; 
}

/* Cible la première lettre de chaque lien pour la mettre en majuscule */
.mega-menu .dropdown-item::first-letter {
    text-transform: uppercase;
}

.mega-menu .dropdown-item:hover {
    background-color: #f0f5ff;
    color: #0047AB !important;
    transform: translateX(5px);
}

/* Sur mobile, on repasse en menu classique scrollable */
@media (max-width: 991px) {
    .mega-menu {
        position: static !important;
        width: 100% !important;
        max-height: 400px;
        overflow-y: auto;
    }
}


.logo-slider {
    overflow: hidden;
    padding: 30px 0;
    background: white;
    position: relative;
    display: flex;
}

/* Le conteneur qui défile */
.logo-track {
    display: flex;
    width: calc(250px *  10 * 2 ); /* Calcul dynamique de la largeur */
    animation: scroll 40s linear infinite;
}

.logo-slide {
    width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.logo-slide img {
    max-height: 60px;
    max-width: 100%;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

/* On remet la couleur quand on survole le slider */
.logo-slider:hover .logo-track {
    animation-play-state: paused; /* Le défilement s'arrête au survol */
}

.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* L'animation magique */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Optionnel : dégradé sur les bords pour un effet de fondu */
.logo-slider::before, .logo-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
}
.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, white 0%, rgba(255,255,255,0) 100%);
}
.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, white 0%, rgba(255,255,255,0) 100%);
}



/* Alignement strict des lignes */
.formation-item {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    min-height: 65px; /* Aligne la hauteur pour les titres sur 1 ou 2 lignes */
}

.icon-box {
    width: 40px; /* Largeur fixe cruciale pour l'alignement du texte */
    height: 40px;
    background: #e7f0ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formation-item:hover {
    background-color: #fff;
    border-color: #0047AB;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Onglets Supérieurs */
.nav-pills .nav-link.active {
    background-color: #0047AB !important;
    color: white !important;
}

/* Scrollbar discrète */
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-thumb { background: #0047AB; border-radius: 10px; }

/* Responsive tweaks */
@media (max-width: 768px) {
    .nav-pills .nav-link { padding: 12px !important; }
    .formation-item { padding: 10px !important; }
}