:root {
  --hauteur-menu: 60px;
}
body {
  font-family: "Playfair Display", serif;
  margin: 0;
  width: 100%;
  table-layout: fixed;
  /* overflow-x: hidden; */
}
header {
  background-color: #86adcb;
  padding: 0.55em 1.15em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  top: 0;
  border-radius: 0.5em;
}
#text {
  color: #0e0b1c;
  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 #ffffff, 0 0 30px #ffffff,
    0 0 40px #ea925e;
}
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: #86adcb;
  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: #0e0b1c;
}
.container:hover > :not(:hover) {
  opacity: 0.4;
}
main {
  background-color: #0e0b1c;
  background-attachment: fixed;
  padding: 3.2em 3.2em 0em 3.2em;
  table-layout: fixed;
  margin: 0em 0em 0em 0em;
}
.section1 {
  background-color: #f0e4d3;
  background-image: url("image/clock-2015460.jpg");
  background-size: cover;
  color: white;
  padding: 1em 0em 4em 0em;
  margin: 0;
  filter: brightness(0.5em);
}
img {
  max-width: 45em;
  max-height: 30em;
  padding: 1em;
}
footer {
  background-color: #86adcb;
  border: solid 1px #86adcb;
  color: #faf7f3;
  padding: 5em 0em 4em 0em;
  text-align: center;
}
footer a {
  text-decoration: none;
  color: #faf7f3;
  font-weight: 700;
}
.titre1 {
  color: #faf7f3;
  font-size: 3em;
  margin: 0.8em 1em 1em;
  text-shadow: 0 0 12px #ffffff, 0 0 25px #ea925e, 0 0 30px #313647,
    0 0 40px #313647;
  text-align: center;
}
.titre2 {
  color: #faf7f3;
  font-size: 3em;
  margin: 0em 0em 0.5em 1em;
}
#titre1 {
  color: #86adcb;
  font-size: 3em;
  margin: 0.8em 1em 1em;
}
#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;
}
.section3 {
  display: flex;
  background-color: #b13026;
  color: #ffffff;
  width: 100%;
}
.div {
  display: inline;
  padding: 10px 20px;
  margin: 1em;
  padding-top: 1%;
  border: solid #84181c 1px;
  border-radius: 15px;
}
.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 #86adcb;
  overflow: hidden;
  border-radius: 30px;
  color: white;
  transition: all 0.5s ease-in-out;
  position: relative;
  left: 8em;
}
.button1 {
  height: 4em;
  width: 15em;
  position: relative;
  background-color: transparent;
  backdrop-filter: blur(5px);
  cursor: pointer;
  border: 2px solid #86adcb;
  overflow: hidden;
  border-radius: 30px;
  color: white;
  transition: all 0.5s ease-in-out;
  position: relative;
  left: 75em;
}

.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: #86adcb;
  border-radius: 30px;
  visibility: hidden;
  height: 10px;
  width: 10px;
  z-index: -1;
}

.button:hover {
  box-shadow: 1px 1px 200px #252525;
  border: none;
  background-color: #ffffff;
  color: white;
}

.type1:hover::after {
  visibility: visible;
  transform: scale(100) translateX(2px);
}
a {
  text-decoration: none;
  color: #0e0b1c;
}
.p2 {
    padding: 1em 2em 1em 2em;
    font-size: 1.8em;
    margin: 1.5em;
    background-color: black;
}
.p3 {
  padding: 0 4em 0;
  font-size: 160%;
  margin: 0;
}
@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) {
  .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: 8em;
  }
  .button1 {
    left: 58em;
  }
}
@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;
  }
}
