html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Spinnaker', sans-serif;
  background-color: #fff;
  color: #000;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden
}



/* Hero Section with Background Image */
.hero {
  position: relative;
  background-image: url('../images/hero.avif');
  background-size: cover;
  object-fit: cover;
  background-position: center;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.header-line {
  height: 3px;
  background-color:#30469c;
  width: 100%;
  margin-top: 0px;
  margin-bottom: 0px;
}

.overlay {
  /* background-color: rgba(0, 0, 0, 0.45); */
  width: 100%;
  height: 100%;
  display: flex;
  margin-left: 20%;
  margin-top: 10%;
  /* align-items: center; */
  /* justify-content: center; */
}

.hero-text {
  color: #fff;
  padding: 0 15px;

}

.hero-text h1 {
  font-size: 30px;
  font-weight: bold;
  margin: 10px 0;
}

.hero-text p {
  font-size: 20px;
  font-weight: normal;
  margin-top: 10px;
}

/* Main Content */
.content {
  padding: 40px 20px;
  font-size: 20px;
}

.content h2,
.content h3 {
  font-size: 30px;
  font-weight: bold;
  color: #122983;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 30px;
  margin-left: 28%;
  margin-right: 28%;
  margin-bottom: 10px;
}

h3 {
  font-size: 30px;
  font-weight: bold;
  color: #122983;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 30px;
  margin-left: 28%;
  margin-right: 28%;
  margin-bottom: 10px;
}


h2 {
  font-size: 30px;
  font-weight: normal;
  color: #000000;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 30px;
  margin-left: 10%;
  margin-right: 10%;
  margin-bottom: 10px;
}


.horizontal-line {
  height: 2.5px;
  align-items: center;
  margin-top: 30px;
  justify-content: center;
  background-color:#273c8e;
  width: 100%;
}

.content p {
  margin-bottom: 40px;
}

.dans {
  font-size: 20px;
  color: 003d4d;
  margin-left: 20%;
  margin-right: 20%;
  margin-top: 50px;
  margin-bottom: 40px;
  font-weight: normal;
}

.btn {
  display: inline-block;
  margin: 20px 0;
  padding: 10px 25px;
  background-color: #122983;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
}

.mission-section .mission-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-buttom: -5px; 
}

.mission-section .mission-image {
  flex: 1;
  text-align: center;
}

.mission-section .mission-image img {
  max-width: 100%;
  display: block; /* ✅ Avoids inline-gap */
  margin: 0; 
  /* height: auto; */
  /* border-radius: 10px; */
}

.mission-section .mission-text {
  flex: 1;
  align-items: center;
}

.mission-button {
  display: inline-block;
  margin: 20px 0;
  padding: 10px 25px;
  margin-left: 38%;
  background-color: #122983;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
}

.approche {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 20px;
}

.approche-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.approche h3 {
  color: #ffffff;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-left: 10%;
  margin-right: 10%;
}

.approche p {
  font-size: 20px;
  text-align: left;
  line-height: 1.6;
  margin-left: 15%;
  margin-right: 10%;
}

.engagement{
  margin-left: 0%;
  margin-right: 0%;

}

.engagement h3 {
  color: #122983;
  font-size: 30px;
  font-weight: bold;
  margin-top: 60px;
  margin-bottom: 60px;
  margin-left:25%;
  margin-right: 25%;
}

/* Mobile View */
@media (max-width: 768px) {
  /* Hero Section */
  .hero {
    height: 45vh;
    background-image: url('../images/imagem.jpg'); /* ✅ New mobile image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .overlay {
    position: absolute;
    inset: 0; /* full coverage */
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-align: center;
  }

  .hero-text {
    width: 80%;
    text-align: center;
    margin: 0;
  }

  .hero-text h1 {
    font-size: 22px;
    line-height: 1.3;
    margin: 0;
    color: white; /* ✅ Ensures visibility */
  }

  /* Section: Une vocation */
  .content {
    padding: 30px 15px;
    text-align: center;
  }

  .content h3 {
    font-size: 20px;
    margin: 20px 0 10px 0;
    text-align: center;
    margin-left: 10%;
    margin-right: 10%;
  }

  .dans {
    font-size: 16px;
    margin: 10px 0 20px 0;
    padding: 0 10px;
    text-align: left;
    margin-left: 10%;
    margin-right: 10%;
  }

  /* Mission Section */
  .mission-section .mission-container {
    flex-direction: column;
    text-align: center;
  }

  .mission-section .mission-image {
    width: 100%;
  }

  .mission-section .mission-image img {
    width: 100%;
    display: block;
    margin: 0;
  }

  .mission-section .mission-text {
    width: 100%;
    text-align: center;
    padding: 20px 10px;
  }

  .mission-section .mission-text h3 {
    font-size: 20px;
    margin: 15px 0 10px 0;
  }

  .mission-section .mission-text h2 {
    font-size: 18px;
    margin-left: 20%;
    margin-right: 20%;
    /* margin: 0 10px 15px 10px; */
  }

  .mission-button {
    display: inline-block;
    margin: 15px auto;
    padding: 10px 20px;
    font-size: 16px;
  }

  .mission-line-m {
    height: 2px;
    width: 40%;
    background-color: #273c8e;
    margin: 10px auto 20px auto;
  }

  /* Approche Section */
  .approche {
    padding: 30px 15px;
    text-align: center;
  }

  .approche h3 {
    font-size: 20px;
    margin: 10px 0;
    line-height: 1.3;
    margin-left: 15%;
    margin-right: 15%;
  }

  .approche p {
    font-size: 16px;
    margin-left: 10%;
    margin-right: 10%;
    text-align: left;
    line-height: 1.5;
  }

  /* Engagement Section */
  .engagement h3 {
    font-size: 20px;
    margin-left: 15%;
    margin-right: 15%;
    text-align: left;
  }

  /* Remove extra margins for full-bleed header lines */
  .header-line {
    margin: 0;
  }
}
