/* base.css - Styles généraux pour JEXCELLENCE */

:root {
  /* Couleurs principales - palette blanche, or foncé et bleu foncé */
  --primary-color: #050170; /* Bleu foncé */
  --secondary-color: #DDAB59; /* Or clair (nouveau) */ #BF6D35
  --accent-color: #DDAB59; /* Accent or clair (nouveau) */
  --light-color: #FFFFFF; /* Blanc */
  --warm-color: #DDAB59; /* Or foncé pour les surlignages (nouveau) */

  /* Couleurs sémantiques */
  --text-primary: #050170;
  --text-secondary: #DDAB59;
  --background-color: #FFFFFF;
  --hover-color: #DDAB59;

  /* Transitions */
  --transition-speed: 0.3s;

  /* Navbar height */
  --navbar-height: 80px;
}

/* Scroll offset for fixed navbar */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: 'Poppins', 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  background-color: var(--background-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  padding-top: var(--navbar-height);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.2rem;
  font-weight: 300;
}



a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Styles de navigation */
.navbar {
  padding: 0.3rem 0;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, #010024  0%, #03014d 100%); /* Horizontal gradient from blue to dark blue */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1050; /* High value to stay on top */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 60px;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--light-color); /* White text */
  font-weight: 800;
  font-size: 1.2rem;
  padding: 0.5rem 0.8rem;
  transition: all var(--transition-speed) ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--secondary-color); /* Gold on hover */
}

.navbar-light .navbar-nav .active > .nav-link {
  color: var(--secondary-color); /* Gold for active link */
}

.navbar-toggler {
  border-color: var(--secondary-color); /* Golden border */
  background-color: transparent;
  padding: 0.5rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(221, 171, 89, 0.25); /* Golden glow */
  border-color: var(--secondary-color);
}

.navbar-toggler:hover {
  border-color: var(--secondary-color);
  background-color: rgba(221, 171, 89, 0.1); /* Slight golden tint on hover */
}

.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='%23DDAB59' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .dropdown-menu {
  background-color: var(--primary-color);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.navbar .dropdown-item {
  color: var(--light-color);
}

.navbar .dropdown-item:hover {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

.navbar .btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--light-color);
}

/* Boutons */
.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--light-color); /* White text on gold button */
}

.text-black {
  color: black !important;
}

.btn-primary:hover {
  background-color: var(--secondary-color); /* Keep gold on hover */
  border-color: var(--secondary-color);
  color: var(--light-color); /* Keep white text on hover */
}

.btn-outline-primary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

/* Sections */
section {
  padding: 2rem 0;
}

.section-title {
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 3px;
  width: 60px;
  background-color: var(--warm-color);
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 100%;
  background-color: var(--light-color);
  color: var(--primary-color);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}


/* Testimonials */
.testimonial {
  padding: 2rem;
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
}

.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.testimonial-position {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Contact form */
.contact-form {
  background-color: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
  height: 50px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0.375rem 1rem;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(74, 90, 225, 0.25);
}

textarea.form-control {
  height: auto;
  min-height: 150px;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  list-style: none;
  padding-left: 0;
  display: flex;
  margin-top: 1.5rem;
}

.social-links li {
  margin-right: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Micro-animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Chatbot */
.chatbot-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #010024;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.chatbot-bubble i {
  font-size: 28px; /* Ensures icon fits well inside bubble */
}

.nav-link {
    color: #e3e3e3 !important;

}
.chatbot-bubble:hover {
  transform: scale(1.2);
}

.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 320px;
  max-width: 95vw;
  background: #fff;
  color: #0a1a4f;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(10,26,79,0.18);
  z-index: 10000;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-header {
  background: #DDAB59;
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.chatbot-body {
  padding: 16px;
  background: #fff;
  color: #0a1a4f;
  min-height: 120px;
  font-size: 1rem;
}

.chatbot-btn {
  background: #fff;
  color: #0a1a4f;
  border: 1px solid #0a1a4f;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.chatbot-btn:hover, .chatbot_primary {
  background: #0a1a4f;
  color: #fff;
}

.chatbot-actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}

@media (max-width: 600px) {
  .chatbot-window {
    right: 8px;
    width: 98vw;
    bottom: 80px;
  }
  .chatbot-bubble {
    right: 8px;
    bottom: 8px;
  }
}

/* Make result cards show a help cursor to indicate a tooltip is available */
.result-card {
  cursor: help;
}

/* Modern fa-list-style for programme features */
.fa-list-style {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.fa-list-style > div {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--primary-color);
  background: none;
  border: none;
  padding: 0.2rem 0;
}
.fa-list-style i {
  color: var(--secondary-color);
  font-size: 1.2em;
  margin-right: 0.7em;
  min-width: 1.3em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.programme-icon i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(255,201,14,0.08);
}

.programme-button {
  display: inline-block;
  margin-top: 1.1rem;
  background: var(--secondary-color);
  color: var(--light-color) !important;
  font-weight: 600;
  border-radius: 2em;
  padding: 0.7em 2em;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(5,1,112,0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.programme-button i {
  margin-right: 0.6em;
  font-size: 1.1em;
}
.programme-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color) !important;
  box-shadow: 0 4px 16px rgba(5,1,112,0.13);
}

.programme-cta {
  font-weight: 500;
  color: var(--primary-color);
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  font-size: 1.08rem;
}
.programme-cta i {
  color: var(--secondary-color);
  margin-right: 0.6em;
  font-size: 1.1em;
}

.programmes-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto 3rem auto;
  padding: 0 1.2rem;
}

.programme-card {
  background: var(--light-color);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(5,1,112,0.07);
  padding: 2.5rem 2rem 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.programme-card:hover {
  box-shadow: 0 16px 48px rgba(5,1,112,0.13);
  transform: translateY(-6px) scale(1.01);
}

.programme-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  text-align: center;
}

.programme-subtitle {
  font-size: 1.15rem;
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 1.1rem;
  text-align: center;
}

@media (max-width: 600px) {
  .programmes-container {
    padding: 0 0.2rem;
  }
  .programme-card {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .programme-title {
    font-size: 1.3rem;
  }


}

/* Responsive */
@media (max-width: 992px) {
  :root {
    --navbar-height: 70px;
  }

  body {
    padding-top: var(--navbar-height);
  }

  .navbar-collapse {
    background: linear-gradient(180deg, #010024 0%, #03014d  100%);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }
}



@media (max-width: 768px) {
  :root {
    --navbar-height: 65px;
  }

  body {
    padding-top: var(--navbar-height);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 2rem 0;
  }

  .contact-form {
    padding: 1rem;
  }


}

@media (max-width: 600px) {
    :root {
      --navbar-height: 60px;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0.5rem 0;
        z-index: 1050;
        opacity: 1 !important;
        pointer-events: auto;
    }

    .navbar > .container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-brand img {
        height: 40px;
        max-width: 120px;
    }

    body {
        padding-top: var(--navbar-height);
    }
}

/* Animations spécifiques */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Accessibilité */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000FF;
    --text-primary: #000000;
    --background-color: #FFFFFF;
  }

  .card {
    box-shadow: 0 0 0 2px #000;
  }
}

/* Carousel indicators */
.carousel-indicators-custom {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  z-index: 2;
  position: relative;
}

.carousel-indicators-custom button {
  width: 14px;
  height: 14px;
  margin: 0 8px;
  border: none;
  border-radius: 50%;
  background-color: var(--warm-color); /* Golden yellow for inactive */
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 0 2px rgba(5,1,112,0.08);
}

.carousel-indicators-custom button.active,
.carousel-indicators-custom .active {
  background-color: var(--primary-color); /* Dark blue for active */
  box-shadow: 0 0 0 3px var(--warm-color);
}

.carousel-indicators-custom button:focus {
  outline: 2px solid var(--primary-color);
}

.carousel-indicators-custom button:hover {
  background-color: #FFD84A;
}
