/* ================= GLOBAL ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

main { flex-grow: 1; }


/* ================= HERO ================= */
.hero_section {

  height: 850px;
  background-image: url("/images/accrobranche_img/_EBP6535.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero_overlay {
  display :flex ; 
  flex-direction :column ; 
  align-items : center ;
 margin-top:12% ;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 50px;
  width: 70%;
  text-align: center;
  color: white;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero_text h1 {
  font-size: 3.5rem;
  margin-bottom: 25px;
}

.hero_text p {
  font-size: 1.2rem;
  line-height: 1.7;
}



/* ================= BENEFITS ================= */
.benefits_section {
  padding: 80px 10%;
  text-align: center;
   background-image: url("/images/planche-de-bois.jpg");
  background-size: cover;
  background-position: center;
}

.benefits_section h2 {
  font-size: 2.8rem;
  margin-bottom: 100px;
 
}

.benefits_grid {
  display: grid;
  gap: 60px;
  grid-template-columns: repeat(3, 1fr);
}

.benefit_card {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.25);
  color: #333;
  box-shadow: 8px 8px 15px rgba(0,0,0,0.2);
  transition: transform .3s ease;
  font-size :x-large ;
}

.benefit_card:hover {
  transform: scale(1.05);
}

.benefit_card img {
 width: 95%;         /* s'adapte à la largeur du card */
  height: auto;        /* conserve le ratio original */
  border-radius: 10px;
  object-fit: cover; 
}

.benefit_card h3 {
  font-size: 1.5rem;
   margin-top :7% ;
}

.benefit_card p{
     
    margin-top :3% ;

}




/* ================= SECURITY ================= */
.security_section {
  background-image: url("/images/planche-de-bois.jpg");
  background-blend-mode: multiply;
  background-color: rgb(231,82,22);
  background-size: cover;
  padding: 90px 10%;
  text-align: center;
}


.security_grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.sec_card {
  width: 300px;
  padding: 40px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}

.sec_card img {
  width: 60px;
  margin-bottom: 15px;
}

/* ================= CTA ================= */
.cta_section {
  padding: 100px 10%;
  text-align: center;
  background: 
    linear-gradient(
      rgba(0, 128, 0, 0.35),   /* vert transparent */
      rgba(0, 128, 0, 0.35)
    ),
    url('/images/accrobranche_img/IMG_8476.jpeg'); /* ton image */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color:#fff ;
}

.cta_box {
  display :flex ; 
  flex-direction :column ;
  align-items : center ;
   background: rgba(234, 192, 43, 0.15); 
  backdrop-filter: blur(10px);           
  -webkit-backdrop-filter: blur(10px);   
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
  padding: 50px;
  width: 70%;
  margin: auto;
  border-radius: 12px;
  box-shadow: 8px 8px 15px rgba(0,0,0,0.2);
}

.cta_box h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.sortie_scolaire_section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  background-image: url("/images/planche-de-bois.jpg");
  background-blend-mode: multiply;
  background-color: rgb(139, 46, 9);
  background-size: cover;
  text-align: center;
  font-size:x-large ;
}

.sortie_scolaire_section .text {
  margin-bottom: 50px;
  padding: 40px;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border-radius: 12px;
}

.sortie_details {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  width: 100%;
  background-color: rgba(234, 142, 43, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 50px;
  width: 70%;
  margin: auto;
  box-shadow: 8px 8px 15px rgba(0,0,0,0.2);
}

.sortie_block {
  color:#fff ;
  background-color: white;
  padding: 15px;
  border-radius: 12px;
  flex: 1;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  line-height:170%;
  background-color: rgba(234, 142, 43, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 50px;
  width: 70%;
  margin: auto;
  box-shadow: 8px 8px 15px rgba(0,0,0,0.2);
}

.sortie_block h3 {
  color: rgb(235, 120, 75);
  margin-bottom: 15px;
}

.sortie_block ul {
  list-style: none;
  padding: 0;
}


/* Button style */
.sortie_scolaire_section button {
  margin-top: 40px;
  width: 250px;
  padding: 15px 20px;
  font-size: 18px;
  background-color: rgb(231,82,22);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.sortie_scolaire_section button:hover {
  background-color: black;
  transform: scale(1.05);
}

/* ================= RESPONSIVE ================= */

/* ================= RESPONSIVE ================= */

/* TABLETTE */
@media (max-width: 1024px) {

  /* HERO */
  .hero_section { height: 700px; }
  .hero_text h1 { font-size: 2.8rem; }

  /* BENEFITS */
  .benefits_grid { grid-template-columns: repeat(2, 1fr); }

  /* FORMULES / SORTIE SCOLAIRE */
  .formules_container { 
    flex-direction: column; 
    align-items: center; 
  }
  .formule_box { width: 80%; }

  .sortie_details {
    flex-direction: column;
    gap: 30px;
    width: 90%;
  }

  .overlay-content { margin: 0 10%; }

  /* SECURITY */
  .security_grid {
    flex-direction: column;
    align-items: center;
  }

  /* CTA */
  .cta_box { width: 90%; }
}

/* MOBILE */
@media (max-width: 768px) {

  .hero_overlay{

    margin-top:47%;
  }

  /* HERO */
  .hero_section { height: 550px; }
  .hero_overlay { 
    width: 90%; 
    padding: 30px; 
  }

  /* HERO TEXT */
  .hero_text h1 { font-size: 2rem; }
  .hero_text p { font-size: 1rem; }

  /* BENEFITS */
  .benefits_grid { 
    grid-template-columns: 1fr; 
    gap: 40px; 
    margin-bottom: 50px; 
  }

  /* SECURITY */
  .security_section { padding: 70px 5%; }

  /* CTA */
  .cta_box { width: 95%; padding: 30px; }

  /* SORTIE SCOLAIRE */
  .sortie_scolaire_section .text { 
    padding: 40px; 
    font-size: medium; 
  }
  .sortie_block { padding: 20px; width: 100%; }
  .sortie_scolaire_section button { width: 90%; }
}
