
* {
  margin: 0;
  padding: 0;
  box-sizing : border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #333;
}



.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* NAVBAR */
  .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: relative;
  z-index: 2;
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}



.navbar .logo {
  height: 100px; /* Ajuste la hauteur pour qu'elle corresponde au bouton */
  margin-top: -20px; /* Remonte légèrement le logo */
  display: flex;
  align-items: center;
}


.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  margin-top: 30px;
  margin-right: 8px;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}


.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.cta-btn {
  background-color: #f39c12;
  padding: 0.2rem 0.2rem;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin-top: auto;
}
.cta-btn:hover {
  background-color: #e08e0b;
  color: white;
}
/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.4;
  font-weight: bold;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* LANGUAGE COURSES */
.language-courses {
  padding: 2rem 4.5rem;
  background: #f9f9f9;
  text-align: center;
}

.language-courses h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.course-grid {
  display: grid;
  gap: 1rem; /* réduit l’espace entre les cartes */
  margin-top: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* rétrécit la largeur minimale */
  padding: 0 1rem;
  margin-left: -10px;
  margin-right: 0px;
}

.course-card {
  background: whitesmoke;
  padding: 0.8rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.course-card:hover {
  transform: translateY(-3px);
}

.course-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.course-card h3 {
  font-size: 1rem;
  margin: 1px 0 0px;
}

.course-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Mobile: forcer 2 colonnes */
@media screen and (max-width: 600px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* COMMENT ÇA FONCTIONNE */
.how-it-works-centered {
  padding: 1.8rem 2rem;
}

.hiw-centered-image {
  width: 100%;
  max-width: 400px; /* ✅ Limite la taille sur les grands écrans */
  height: auto;
  display: block;
  margin: 0 auto 30px auto; /* ✅ Centre l'image avec marge en bas */
  border-radius: 12px; /* optionnel pour un effet arrondi */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* optionnel pour esthétique */
}


.hiw-centered-left,
.hiw-centered-right {
  flex: 1 1 300px;
}

.hiw-centered-image {
  width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
}

.hiw-steps {
  list-style: none;
  padding: 0;
}

.hiw-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  background: #f39c12;
  color: white;
  font-weight: bold;
  padding: 0.6rem 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* FOOTER */
.site-footer {
  background-color: #1E2A38;
  color: white;
  padding: 2rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand,
.footer-links,
.footer-contact {
  flex: 1 1 200px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li a {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  text-align: left;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    
    
}

  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .nav-links {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -200px;
    height: 10vh;
    width: 130px;
    background-color:goldenrod;
    padding: 10px 10px;
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    padding: 60px 1px 0px 0px; /* ✅ padding équilibré */
    
  height: auto;
  max-height: 100vh; /* autorise toute la hauteur visible */
  overflow-y: auto;          /* ✅ permet le scroll si besoin */
  border-radius: 20px 20px 20px 20px;

  }

  .nav-links.active {
    right: 0;
    margin-top: 20px;
    padding-right: 15px;
  }

  .nav-links li {
    margin: 4px 0;
  }

  .nav-links a {
    color: white;
    font-size: 10px;
    text-decoration: none;
    padding: 0px 0px;
    display: block;
    width: 100%;
   
  }
  
  .nav-links a.active {
  border-left: 4px solid black;
  background-color: rgba(255, 255, 255, 0.1);
  transition: right 0.4s ease, background-color 0.3s;
  
}

  .nav-links a:hover {
  background-color: white;
  color: goldenrod;
  padding-left: 0px;
  border-radius: 4px;
  display: block;
  transition: all 0.3s ease;
}

  .hero-section {
    padding-top: 4rem;
    padding-bottom: 1rem;
    height: auto;
  }

  .hero-content {
    padding: 70px 10px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hiw-centered-container {
    flex-direction: column;
  }
}
.dropdown {
  position: absolute;
  top: 45px;       /* distance depuis le haut */
  right: 20px;     /* distance depuis la droite */
  z-index: 2000;
  margin-right: 8px;
}


.dropdown-toggle {
  background-color:goldenrod ;
  color: white;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}
.dropdown-toggle:hover {
  background-color: rgb(153, 146, 129);
  color: rgb(15, 13, 13);
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 160px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu a:hover {
  background-color: #f1f1f1;
}
/* HERO SECTION */
.hero-section {
  position: relative;
  background-image: url("Img fond.png");
  background-size: 485px;
  background-position: center;
  background-repeat: no-repeat;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  text-align: center;
  padding:2rem 0rem;
}

/* Pour les grands écrans */
@media (min-width: 4096px) {
  .hero-section {
    height: 100vh; /* réduit la hauteur en mode PC */
    padding: 6rem 2rem;
  }
}

/* Pour les très petits écrans */
@media (max-width: 240px) {
  .hero-section {
    height: auto; /* plein écran sur mobile */
  }
}
.step-icon {
  width: 40px;
  height: 40px;
  background-color: goldenrod;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  margin-right: 15px;
}



#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff; /* ou #f0f0f0 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-image: url("logo.png");
   background-size: 485px;
  background-position: center;
  background-repeat: no-repeat;
  
}

.loader-message h2 {
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  font-size: 1.5rem;
  text-align: center;
}
.loader-message h3 {
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  font-size: 1.5rem;
  text-align: center;
  margin-top: 300px;
}
@media (min-width: 769px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
    background: transparent;
    position: static;
    height: auto;
    padding: 0;
  }
}
