:root {
  --primary-navy: #2c3e50;
  --primary-yellow: #f4d03f;
  --bs-primary: #2c3e50;
  --bs-warning: #f4d03f;
  --primary-orange: #f5853d;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--primary-navy);
}
.navbar-custom {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
  border: none !important;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-item {
    margin: 5px 0;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 15px !important;
    border-radius: 5px;
  }
  
  .navbar-nav .nav-link:hover {
    background: rgba(244, 208, 63, 0.1);
  }
  
  .navbar-brand img {
    width: 200px !important;
    height: auto;
  }
}
.navbar-nav .nav-link {
  color: var(--primary-navy) !important;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: var(--primary-yellow) !important;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-yellow);
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after {
  width: 100%;
}
.hero-section {
  background: linear-gradient(
    135deg,
    rgba(244, 208, 63, 0.08) 0%,
    rgba(255, 248, 220, 0.15) 50%,
    rgba(244, 208, 63, 0.05) 100%
  );
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(244, 208, 63, 0.08) 0%,
    transparent 70%
  );
  animation: float 25s ease-in-out infinite;
}
.hero-section::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
      circle,
      rgba(244, 208, 63, 0.1) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(44, 62, 80, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(244, 208, 63, 0.05) 0%,
      transparent 50%
    );
  animation: float 30s ease-in-out infinite reverse;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 155px;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #34495e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
  margin-bottom: 2rem;
}
.hero-content h1 .textPush {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #34495e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(
    --primary-orange
  ) !important; /* Ensure orange text */
  background-clip: text;
  color: transparent; /* Make the background transparent */
  padding: 0 5px; /* Add padding for better appearance */
  border-radius: 3px; /* Optional: Add rounded corners */
}
.hero-content .lead {
  font-size: 1.4rem;
  font-weight: 500;
  color: #5a6c7d;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.credential-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}
.credential-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-navy),
    var(--primary-yellow)
  );
}
.credential-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}
.credential-card .card-body {
  padding: 1.2rem 1rem;
}
.credential-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #34495e 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-right: 0.8rem;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.2);
  position: relative;
  overflow: hidden;
}
.credential-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}
.credential-card:hover .credential-icon::before {
  left: 100%;
}
.credential-card .fw-bold {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.1rem;
}
.credential-card .text-muted {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6c757d;
}

.btn-custom-primary.btn-lg {
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #34495e 100%);
  border: none;
  color: white;
  box-shadow: 0 15px 35px rgba(44, 62, 80, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.5px;
}
.btn-custom-primary.btn-lg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(244, 208, 63, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}
.btn-custom-primary.btn-lg:hover::before {
  left: 100%;
}
.btn-custom-primary.btn-lg:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 25px 50px rgba(44, 62, 80, 0.3);
  background: linear-gradient(135deg, #1a252f 0%, var(--primary-navy) 100%);
}
.btn-custom-yellow.btn-lg {
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary-yellow) 0%, #f1c40f 100%);
  border: none;
  color: var(--primary-navy);
  box-shadow: 0 15px 35px rgba(244, 208, 63, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.5px;
}
.btn-custom-yellow.btn-lg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(44, 62, 80, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}
.btn-custom-yellow.btn-lg:hover::before {
  left: 100%;
}
.btn-custom-yellow.btn-lg:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 25px 50px rgba(244, 208, 63, 0.3);
  background: linear-gradient(135deg, #f39c12 0%, var(--primary-yellow) 100%);
  color: var(--primary-navy);
}
.btn-custom-primary {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #34495e 100%);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-custom-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 62, 80, 0.2);
  background: linear-gradient(135deg, #1a252f 0%, var(--primary-navy) 100%);
  color: white;
}
.btn-custom-yellow {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, #f1c40f 100%);
  border: none;
  color: var(--primary-navy);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-custom-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 208, 63, 0.2);
  background: linear-gradient(135deg, #f39c12 0%, var(--primary-yellow) 100%);
  color: var(--primary-navy);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-20px) rotate(120deg) scale(1.1);
  }
  66% {
    transform: translateY(-10px) rotate(240deg) scale(0.9);
  }
}
.credential-card:nth-child(1) {
  animation: floatCard1 6s ease-in-out infinite;
}
.credential-card:nth-child(2) {
  animation: floatCard2 7s ease-in-out infinite;
}
.credential-card:nth-child(3) {
  animation: floatCard3 8s ease-in-out infinite;
}
@keyframes floatCard1 {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes floatCard2 {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatCard3 {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.section-title {
  color: var(--primary-navy);
  position: relative;
  margin-bottom: 3rem;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-yellow);
  border-radius: 2px;
}
.bg-navy .section-title {
  color: white;
}
.bg-navy .section-title::after {
  background: var(--primary-yellow);
}
.bg-navy {
  background: var(--primary-navy) !important;
  color: white;
}
.bg-light-yellow {
  background: rgba(244, 208, 63, 0.1);
}
.cards-section {
  background: var(--primary-navy);
  padding: 80px 0 100px;
  position: relative;
}
.cards-section::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(135deg, transparent 0%, var(--primary-navy) 100%);
  transform: skewY(-1deg);
}
.result-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  transition: all 0.3s ease;
}
.result-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}
.result-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-yellow);
}
.expertise-card {
  border-left: 4px solid var(--primary-navy);
  transition: all 0.3s ease;
}
.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.footer-custom {
  background: var(--primary-navy);
  color: white;
}
.footer-custom h5 {
  color: var(--primary-yellow);
}
.footer-custom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-custom a:hover {
  color: var(--primary-yellow);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-yellow);
  color: var(--primary-navy);
  transform: translateY(-5px);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.pt-200 {
  padding-top: 200px !important;
}

.question-option {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.question-option:hover {
    border-color: var(--primary-navy);
    background-color: rgba(44, 62, 80, 0.05);
    color:black;
    transform: translateY(-2px);
}

.question-option.selected {
    border-color: var(--primary-navy);
    background-color: var(--primary-navy);
    color: white;
}

.progress-bar {
    transition: width 0.5s ease;
}

.modal-content {
    border-radius: 20px;
    overflow: hidden;
}

.form-control:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 150px;
    padding-bottom: 30px;
  }
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  .hero-content .lead {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
  }
  .credential-card .card-body {
    padding: 1rem 0.8rem;
  }
  .credential-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-right: 0.6rem;
  }
  .btn-custom-primary.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 300px;
  }
  .navbar-brand img {
    width: 200px !important;
  }
  .pt-200 {
    padding-top: 150px !important;
  }
  
  /* Désactiver les effets problématiques sur mobile */
  .cards-section::before {
    transform: none !important;
    display: none;
  }
  
  .result-card {
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.15) !important;
  }
  
  .result-card:hover {
    transform: none !important;
  }
  
}

/* Corrections supplémentaires pour très petits écrans */
@media (max-width: 576px) {
  .cards-section::before {
    display: none !important;
  }
  
  .result-card {
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.2) !important;
  }
  
  .result-card:hover {
    transform: none !important;
  }
  
  /* Forcer l'affichage immédiat sans animations */
  .cards-section * {
    animation: none !important;
    transition: none !important;
  }
}
