:root {
  --hauteur-menu: 60px;
}
body {
  font-family: "Playfair Display", serif;
  margin: 0;
  width: 100%;
  table-layout: fixed;
  /* overflow-x: hidden; */
}
header {
  background-color: #BBC863;
  padding: 0.55em 1.15em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  top: 0;
  border-radius: 0.5em;
}
#text {
  color: #ffffff;
  display: flex;
  font-size: 2rem;
  float: left;
  justify-content: space-around;
  align-items: center;
  padding: 0 20px;
  margin: 0;
  text-shadow: 0 0 12px #ffffff, 0 0 25px #9BE8D8, 0 0 30px #9BE8D8,
    0 0 40px black;
}
nav {
  width: 100%;
  font-size: 16px;
  position: sticky;
  top: 0;
}
nav > ul {
  display: flex;
  text-align: center;
  height: var(--hauteur-menu);
}

nav ul {
  list-style-type: none;
}

nav > ul > li {
  background-color: #BBC863;
  position: relative;
  height: 100%;
  flex: 1;
}
nav > ul > li > a {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1em;
}
li a {
  text-decoration: none;
  color: #274e13;
}

.container:hover > :not(:hover) {
  opacity: 0.4;
}
main {
  background-color: #658C58;
  background-attachment: fixed;
  padding: 3.2em 3.2em 1em 3.2em;
  table-layout: fixed;
  margin: 0em 0em 10em 0em;
}
.section1 {
  background-color: #658C58;
  background-size: cover;
  color: white;
  padding: 0em 2em 4em 2em;
}
#titre1 {
  color: #BBC863;
  font-size: 3em;
  margin: 0.8em 1em 1em;
  }
img {
  max-width: 45em;
  max-height: 30em;
  padding: 1em;
}
.section2 {
  background-color: white;
  color: white;
  margin: (0, 0);
  padding: 1em 0em 2em 0em;
}
footer {
  background-color: #BBC863;
  border: solid 1px #BBC863;
  color: #274e13;
  padding: 5em 0em 4em 0em;
  text-align: center;
}
footer a {
  text-decoration: none;
  color: 274e13;
  font-weight: 700;
}
#text1 {
  color: #FAF7F3;
  font-size: 3em;
  max-width: 100%;
  word-wrap: break-word;
  padding: 0;
  margin: 0;
}
#text2 {
  font-size: 3em;
  margin: 40px 0 0;
  max-width: 100%;
  word-wrap: break-word;
  padding: 0;
}
#text3 {
  color: #FAF7F3;
  font-size: 1.5em;
  margin: 0;
  max-width: 100%;
  word-wrap: break-word;
  padding: 0;
}
#text4 {
  color: #FAF7F3;
  font-size: 1em;
  margin: 0;
  max-width: 100%;
  word-wrap: break-word;
  padding: 0;
}


.text4 {
  padding: 20px;
  word-wrap: break-word;
  max-width: 100%;
}
.button {
  height: 4em;
  width: 15em;
  position: relative;
  background-color: transparent;
  backdrop-filter: blur(5px);
  cursor: pointer;
  border: 2px solid #BBC863;
  overflow: hidden;
  border-radius: 30px;
  color: #DCC5B2;
  transition: all 0.5s ease-in-out;
  position: relative;
  left: 90em;
}
.button1 {
  height: 4em;
  width: 15em;
  position: relative;
  background-color: transparent;
  backdrop-filter: blur(5px);
  cursor: pointer;
  border: 2px solid #BBC863;
  overflow: hidden;
  border-radius: 30px;
  color: white;
  transition: all 0.5s ease-in-out;
  position: relative;
  left: 5em;
}

.btn-txt {
  z-index: 1;
  font-weight: 800;
  letter-spacing: 4px;
}

.type1::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.5s ease-in-out;
  background-color: #BBC863;
  border-radius: 30px;
  visibility: hidden;
  height: 10px;
  width: 10px;
  z-index: -1;
}

.button:hover {
  border: none;
  background-color: #ffffff;
  color: white;
}

.type1:hover::after {
  visibility: visible;
  transform: scale(100) translateX(2px);
}
a {
  text-decoration: none;
  color: #FAF7F3;
}
.p3 {
    padding: 1em 2em 1em 2em;
    font-size: 1.8em;
    margin: 0em 3em 1em 3em;
    background-color: #FCF5EE;
    color: #274e13;
}




@media (max-width: 768px) {
  #text {
    font-size: 1.5rem;
    padding: 0 10px;
  }
  nav > ul {
    flex-direction: column;
    height: auto;
  }
  nav > ul > li {
    flex: none;
    height: auto;
    text-align: left;
    padding: 10px;
  }

  .droite {
    max-width: 35em;
  }

  .section3 {
    flex-direction: column;
    align-items: center;
  }

  .div {
    padding: 20px;
    margin: 10px;
    width: 90%;
  }

  .button {
    width: 100%;
    font-size: 0.9em;
  }
}
@media (max-width: 1280px) {
  main {
    margin: 0em;
  }
  .droite {
    max-width: 37.6em;
    right: 4em;
    padding: 2em 2em 4em 2em;
  }
  #text1 {
    font-size: 3.4em;
  }
  img {
  max-width: 45em;
  max-height: 30em;
  padding: 1em;
  position: relative;
  top: 4.6em;
}
.button {
  left: 55em;
}
.button1 {
  left: 1em;
}


}
@media (max-width: 480px) {
  #text {
    font-size: 1.2rem;
    padding: 0 5px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  nav {
    font-size: 14px;
  }

  .droite {
    max-width: 35em;
  }

  .section1 {
    padding: 20px;
    background-attachment: scroll; /* éviter les soucis sur mobiles */
  }

  #section2 {
    padding: 2em;
  }

  #text1 {
    font-size: 2.5em;
  }

  #text2 {
    font-size: 1.5em;
  }

  #text3 {
    font-size: 18px;
  }

  .section3 {
    flex-direction: column;
    padding: 20px;
  }

  .div {
    width: 100%;
    padding: 15px;
    margin: 5px;
  }

  .button {
    width: 100%;
    font-size: 0.8em;
    height: 3em;
  }
}
@media (max-width: 480px) {
  #text {
    font-size: 1.2rem;
    padding: 0 5px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  nav {
    font-size: 14px;
  }

  .section1 {
    padding: 20px;
    background-attachment: scroll; /* éviter les soucis de défilement sur mobiles */
  }

  #section2 {
    padding: 2em;
  }

  #text1 {
    font-size: 2.5em;
  }

  #text2 {
    font-size: 1.5em;
  }

  #text3 {
    font-size: 18px;
  }

  .section3 {
    flex-direction: column;
    padding: 20px;
  }

  .div {
    width: 100%;
    padding: 15px;
    margin: 5px;
  }

  .button {
    width: 100%;
    font-size: 0.8em;
    height: 3em;
  }
}
