/* style.css - Style moderne et aéré */

/* Sélecteur de langue */
.language-selector {
  margin-left: 20px;
}

.language-selector .dropdown-toggle {
  background-color: transparent;
  border: none;
  color: #343a40;
  padding: 0.5rem 1rem;
}

.language-selector .dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.language-selector .dropdown-item {
  padding: 0.5rem 1.5rem;
}

.language-selector .dropdown-item:hover {
  background-color: #f8f9fa;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  color: #343a40;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Couleurs principales */
:root {
  --couleur-primaire: #664de5;
  --couleur-secondaire: #5ce1e6;
  --couleur-tertiaire: #f8f9fa;
  --couleur-texte-fonce: #212529;
  --couleur-texte-clair: #6c757d;
  --couleur-blanc: #ffffff;
  --couleur-footer-bg: #343a40;
}

/* Navbar */
.navbar {
  background-color: var(--couleur-blanc);
  padding: 1.2rem 1.5rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--couleur-primaire);
}

/* .navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(52, 58, 64, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
} */

.navbar-nav .nav-item {
  margin-left: 1rem;
}

.navbar-nav .nav-link {
  font-size: 1.1rem;
  padding: 0.6rem 1rem;
  color: var(--couleur-texte-fonce);
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--couleur-primaire);
  border-bottom-color: var(--couleur-primaire);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--couleur-primaire) 0%, var(--couleur-secondaire) 100%);
  color: var(--couleur-blanc);
  padding: 150px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><polygon fill="%23f8f9fa" points="0,0 1000,0 1000,100"/></svg>');
  background-repeat: repeat-x;
  background-position: bottom;
  transform: translateY(60%);
  opacity: 0.15;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--couleur-blanc);
  text-shadow: 0 0.15rem 0.3rem rgba(0, 0, 0, 0.15);
}

.hero p {
  font-size: 1.3rem;
  max-width: 850px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero .hero-image {
  border-radius: 0.7rem;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Image responsive */
  height: auto;
  display: block; /* Pour supprimer l'espace blanc sous l'image */
  margin: 0 auto; /* Centrer l'image horizontalement */
}

/* Sections Standard */
section {
  padding: 100px 0;
}

section h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--couleur-texte-fonce);
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  padding-bottom: 1.2rem;
}

section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--couleur-secondaire);
  border-radius: 5px;
}

section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--couleur-primaire);
}

section p {
  font-size: 1.15rem;
  color: var(--couleur-texte-clair);
  line-height: 1.9;
}

section .img-fluid.rounded {
  border-radius: 0.6rem;
  box-shadow: 0 0.3rem 0.7rem rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  transition: transform 0.3s ease-in-out;
}

section .img-fluid.rounded:hover {
  transform: scale(1.03);
}

/* Section Avantages */
.bg-light {
  background-color: var(--couleur-tertiaire) !important; /* Utilisation de la variable */
}

/* Section Compétences */
.competence-item {
  margin-bottom: 3rem;
}

.competence-icon {
  color: var(--couleur-secondaire);
  margin-bottom: 1.5rem;
  display: block; /* Pour centrer */
}

.competence-item h3 {
  color: var(--couleur-texte-fonce);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.competence-item p {
  color: var(--couleur-texte-clair);
}

/* Section Contact */
.bg-primary {
  background: linear-gradient(135deg, var(--couleur-secondaire) 0%, var(--couleur-primaire) 100%);
  text-align: center;
  padding: 120px 0;
}

/* Simplification du sélecteur pour les titres dans .bg-primary */
.bg-primary h2 {
  color: var(--couleur-blanc) !important;
  text-shadow: 0 0.15rem 0.3rem rgba(0, 0, 0, 0.15);
}

/* Simplification du sélecteur pour les paragraphes dans .bg-primary */
.bg-primary p {
    color: var(--couleur-blanc) !important; /* Assurer que le texte est blanc */
    opacity: 0.9; /* Légère transparence pour le texte */
}


.bg-primary .btn-light {
  background-color: var(--couleur-blanc);
  color: var(--couleur-primaire);
  font-weight: 600;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 0.4rem;
  box-shadow: 0 0.3rem 0.7rem rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  font-size: 1.1rem;
}

.bg-primary .btn-light:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.25);
}

/* Footer */
.footer {
  background-color: var(--couleur-footer-bg);
  color: #ced4da;
  padding: 30px 0;
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  margin-bottom: 0;
  opacity: 0.8;
}

/* Responsivité */
@media (max-width: 992px) {
  .hero {
      padding: 120px 0;
  }
  .hero h1 {
      font-size: 3.8rem;
  }
  section {
      padding: 80px 0;
  }
  section h2 {
      font-size: 2.6rem;
      margin-bottom: 40px;
  }
  #missions .col-md-6 { /* Assurer que l'image passe en dessous sur tablette */
      margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
      padding: 100px 0;
  }
  .hero h1 {
      font-size: 2.8rem;
      margin-bottom: 1.2rem;
  }
  .hero p {
      font-size: 1.2rem;
  }
  section {
      padding: 60px 0;
  }
  section h2 {
      font-size: 2.2rem;
      margin-bottom: 30px;
  }
  .navbar-nav .nav-item {
      margin-left: 0;
      text-align: center;
  }
  .navbar-nav .nav-link {
      padding: 0.5rem 1rem;
  }
  .competence-item {
      text-align: center;
  }
  #avantages .col-md-4 { /* Espacement entre les avantages sur mobile */
      margin-bottom: 2rem;
  }
}
@media (max-width: 576px) {
  .hero h1 {
      font-size: 2.4rem;
  }
  .hero p {
      font-size: 1.1rem;
  }
  section h2 {
      font-size: 2rem;
      margin-bottom: 20px;
  }
  .navbar-nav .nav-item {
      margin-left: 0;
      margin-bottom: 0.5rem;
  }
}
@media (max-width: 400px) {
  .hero h1 {
      font-size: 2.2rem;
  }
  .hero p {
      font-size: 1rem;
  }
  section h2 {
      font-size: 1.8rem;
      margin-bottom: 15px;
  }
}
