/* ------------------ Reset & Base ------------------ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", Arial, sans-serif;
  overflow-x: hidden; /* Empêche le scroll horizontal global */
}

/* ------------------ Top Bar Fixe ------------------ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-height);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  z-index: 1000;
  background: transparent;
}

.top-left .title {
  color: white;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.top-left .subtitles {
  color: white;
  font-weight: 400;
  font-size: 16px;
}

.menu {
  display: flex;
  gap: 12px;
  align-items: center;
}

.menu a {
  padding: 6px 16px;
  border: 2px solid white;
  border-radius: 12px;
  background: white;
  color: black;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.menu a:hover,
.menu a:focus {
  background-color: black;
  color: white;
  border: 2px solid black;
}

/* ------------------ Burger Menu ------------------ */
.burger {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}
.burger div {
  height: 3.5px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.active div:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}
.burger.active div:nth-child(2) {
  opacity: 0;
}
.burger.active div:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

.menu-mobile {
  display: none;
  position: fixed;
  top: calc(var(--topbar-height) + 8px);
  right: 20px;
  background: transparent;
  padding: 10px 20px;
  flex-direction: column;
  gap: 12px;
  z-index: 1050;
}
.menu-mobile a {
  padding: 8px 20px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.menu-mobile a:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: #3f00ff;
}

/* ------------------ Section Scroll ------------------ */
#horizontal-scroll {
  display: flex;
  overflow-x: hidden; /* désactive le scroll horizontal par défaut */
}

.box {
	 position: absolute;
	 width: 20vw;
	 height: 20vw;
	 transform: translate(-50%, -50%);
	 pointer-events: none;
}
 .box:nth-child(1) {
	 z-index: -1;
}
 .box:nth-child(2) {
	 z-index: -2;
}
 .box:nth-child(3) {
	 z-index: -3;
}
 .box:nth-child(4) {
	 z-index: -4;
}
 .box:nth-child(5) {
	 z-index: -5;
}
 .box img {
	 position: absolute;
	 top: 0;
	 left: 0;
	 width: 60%;
	 height: 80%;
	 object-fit: cover;
   border-radius: 16px;
}
 


#horizontal-scroll .content {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  color: white;
  background-color: #87ab5c;
  text-shadow: rgb(80, 106, 81) 1px 0 10px;
  margin: 0;
  padding: 0 20px; /* léger padding horizontal pour contenu */
  box-sizing: border-box;
}

/* ------------------ Sections internes ------------------ */
.pres {
  max-width: 100vw;
}

.service {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0 10px;
}

.service .bloc {
  max-width: 90vw;
  box-sizing: border-box;
  margin: 0;
  padding: 10px;
  /*text-align: center;  Centrer le contenu textuel */
}

.vertical-line {
  border-left: 2px solid white;
  height: 380px;
  width: 2px;
}

h1 {
  font-size: 48px;
  margin-bottom: 30px;
}

p {
  font-size: 25px;
  line-height: 1.6;
  margin: 0 auto;
}

.citation {
  font-family: 'Playfair Display', serif;
}

/* ------------------ Responsive Desktop / Petits écrans ------------------ */
@media (max-width: 1024px) {
  .top-bar {
    padding: 14px 30px;
    height: var(--topbar-height);
  }

  h1 {
    font-size: 36px;
  }

  .service {
    flex-wrap: wrap;
    gap: 40px;
  }

  .service .bloc {
    max-width: 250px;
  }

  .vertical-line {
    display: none; /* on cache les lignes pour éviter le fouillis */
  }

  .pres {
    padding: 0 40px;
  }

  .box{
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden; /* évite scroll horizontal */
  }

  .menu {
    display: none;
  }

  .burger {
    display: flex;
  }

  .top-bar {
    padding: 12px 20px;
  }

  h1 {
    font-size: 28px;
  }

  p {
    font-size: 16px;
  }

  .service {
    flex-direction: column;
    align-items: center;
    gap: 16px !important;  /* réduit l’espace vertical */
    max-width: 100vw;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .service .bloc {
    max-width: 90vw;
    padding: 10px 5px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
  }

  .vertical-line {
    display: none;
  }

  .pres {
    padding: 80px 20px;
  }

  /* Passage en pile verticale */
  #horizontal-scroll {
    display: block;
    overflow-x: hidden;
  }

  #horizontal-scroll .content {
    width: 100vw;
    height: auto;
    box-sizing: border-box;
  }
  .box{
    display: none;

}
}
