:root {
  --primary-yellow: #e9a319;
  --primary-dark: #333333;
  --primary-light: #f8f8f8;
  --accent-color: #2c7bbf;
  --text-dark: #333333;
  --text-light: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --font-primary: 'Montserrat', sans-serif;
  --primary-color: #007bff;
  --primary-color-light: #66b2ff;
  --primary-color-dark: #0056b3;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Static background for hero and method sections */
.static-bg-section {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.5); /* Adds a subtle white overlay */
}

.static-bg-section::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/image1.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.07; /* Reduced opacity for less distraction */
  z-index: -1;
  filter: blur(0.5px); /* Slight blur for softer look */
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background-color: var(--primary-light);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-yellow);
}

/* Header Styles */
header {
  background-color: var(--primary-yellow);
  color: var(--text-dark);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 98;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.header-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid white;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.header-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.header-content {
  flex-grow: 1;
  padding: 0 2rem;
  text-align: center;
}

.header-content h1 {
  font-size: 2.2rem;
  margin: 0;
  font-weight: 700;
  color: var(--text-dark);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

@media only screen and (max-width: 768px) {
  header {
    padding: 1.25rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-image {
    width: 65px;
    height: 65px;
    margin: 0 1rem;
  }

  .header-content {
    padding: 0.5rem 0;
  }

  .header-content h1 {
    font-size: 1.6rem;
  }
}

/* New Navigation Styles */
.main-nav {
  background-color: var(--primary-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: all 0.3s ease;
}

.main-nav.nav-scrolled {
  padding: 0;
  background-color: rgba(51, 51, 51, 0.95);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  transition: all 0.3s ease;
}

.nav-logo {
  display: none; /* Changed from flex to none to hide the logo */
  align-items: center;
  z-index: 1002;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.nav-scrolled .nav-logo-img {
  height: 45px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.8rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.1rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  letter-spacing: 0.2px;
  position: relative;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-yellow);
}

.nav-link.active {
  color: var(--text-light);
  font-weight: 600;
  background-color: rgba(
    233,
    163,
    25,
    0.2
  ); /* Semi-transparent gold background */
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5); /* Text shadow for better visibility */
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-yellow);
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
  opacity: 0;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 40%;
  opacity: 1;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-icon {
  font-size: 0.7em;
  margin-left: 5px;
  transition: transform 0.3s ease;
  font-style: normal;
  display: inline-block;
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  background-color: white;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
  padding: 0.5rem 0;
  list-style: none;
  overflow: hidden;
  border-top: 2px solid var(--primary-yellow);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.85rem 1.5rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  position: relative;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: var(--primary-yellow);
  padding-left: 1.8rem;
}

.dropdown-menu li a:before {
  content: '•';
  position: absolute;
  left: 1.2rem;
  opacity: 0;
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover:before {
  opacity: 1;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Navigation styles for active links */
nav a.active {
  background-color: rgba(233, 163, 25, 0.2);
  color: var(--text-light);
  border-bottom: 2px solid var(--primary-yellow);
}

/* Hide dropdown icons and extra elements near Accueil */
.nav-item:first-child .dropdown-icon,
.nav-item:first-child::after,
.nav-item:first-child::before {
  display: none !important;
}

/* Override any JavaScript-added dropdown indicators */
.nav-item:first-child .nav-link::after {
  display: none !important;
}

/* Hide any dynamically added dropdown elements */
.nav-item:first-child.dropdown * {
  display: inline-block !important;
}

/* Explicitly prevent dropdown styling for the Accueil link */
.no-dropdown::after,
.no-dropdown::before,
.no-dropdown .dropdown-icon {
  display: none !important;
  content: none !important;
}

/* Ensure the Accueil link has no dropdown-specific spacing or styling */
.nav-item.no-dropdown {
  margin-right: 0;
}

/* Main Content Styles */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.card {
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  background-color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Welcome Section */
.welcome-card {
  border: none;
  padding: 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 650px; /* Increased height from 500px to 650px */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  z-index: 2;
  background: #ffffff; /* Added solid white background to block any transparency */
}

.image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/image2.jpg'); /* Changed back to image2.jpg as requested */
  background-size: cover;
  background-position: center;
  z-index: 1;
  background-color: #333333; /* Added background color to ensure no transparency */
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    /* Removed transparency at the top */ rgba(0, 0, 0, 0.7) 85%
      /* Added darker gradient only at the bottom */
  );
  z-index: 2;
}

.welcome-card h2,
.welcome-card p {
  position: relative;
  z-index: 3;
  color: var(--text-light);
  text-align: left;
  padding: 0 2rem;
  max-width: 80%;
}

.welcome-card h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.welcome-card p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2.5rem 3rem;
  background: rgba(0, 0, 0, 0.75); /* Made background less transparent */
  width: 100%;
  border-top: 3px solid var(--primary-yellow);
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Hero Section Styles */
.hero-tagline {
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
  max-width: 700px;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Programs Section */
.program-intro {
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.program-intro h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.program-intro h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-yellow);
  border-radius: 2px;
}

.program-description {
  margin-bottom: 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.program-item {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  transform: translateY(0);
  position: relative;
}

.program-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.program-image-container {
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  height: 220px;
}

.program-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Focus more on faces in the image */
  transition: transform 0.5s ease;
}

.program-item:hover .program-image {
  transform: scale(1.08);
}

.program-item h3 {
  font-size: 1.3rem;
  margin: 1rem 0;
  padding: 0 1rem;
  color: var(--text-dark);
}

.program-item p {
  padding: 0 1rem 1.5rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-yellow);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-yellow);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--text-light);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Features Section */
.features-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(25% - 1rem);
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-yellow);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(233, 163, 25, 0.15);
}

.feature-item:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-yellow), #f4c668);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0.5rem;
}

.feature-item h3 {
  color: var(--black);
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
  font-weight: 600;
}

.feature-item p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Footer Styles */
footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 3rem 0 0;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem 2rem;
}

.footer-section {
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-yellow);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-icon {
  margin-right: 1rem;
  font-size: 1.2rem;
  color: var(--primary-yellow);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-yellow);
}

.quick-links {
  list-style: none;
  padding: 0;
}

.quick-links li {
  margin-bottom: 0.5rem;
}

.quick-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 0.3rem 0;
}

.quick-links a:hover {
  color: var(--primary-yellow);
  transform: translateX(5px);
}

.schedule-item {
  margin-bottom: 1rem;
}

.day {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.time-slots {
  display: flex;
  flex-direction: column;
}

.time-slot {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.label {
  color: #aaa;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-light);
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  background-color: var(--primary-yellow);
  transform: translateY(-3px);
  color: var(--primary-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.newsletter {
  margin-top: 1.5rem;
}

.newsletter-form {
  display: flex;
  margin-top: 0.5rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.5rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  outline: none;
}

.newsletter-form button {
  padding: 0.5rem 1rem;
  background-color: var(--primary-yellow);
  color: var(--text-dark);
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: #d69216;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary-yellow);
}

/* Signature Styles */
.footer-signature {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.signature-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.signature-link:hover {
  color: var(--primary-yellow);
  transform: translateY(-2px);
}

.designer-name {
  font-weight: 600;
  color: #fff;
}

.signature-icon {
  font-size: 1.2rem;
  color: #25d366; /* WhatsApp green */
  margin-left: 0.25rem;
}

/* Responsive styles for the signature */
@media (max-width: 768px) {
  .footer-signature {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .signature-link {
    font-size: 0.8rem;
  }

  .signature-icon {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .footer-signature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
