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

:root {
  /* Fonts */
  --title-font: Archivo Narrow, sans-serif;
  --base-font: Roboto, sans-serif;
}

body {
  font-family: var(--base-font);
  background-color: #b2b2a8;
}

html {
  scroll-behavior: smooth;
}

main {
  width: 98%;
  height: 98%;
  margin: 1vw;
  margin-bottom: -6rem;
  padding: 2vw;
  background-color: #dfd7c9;
  border-radius: 3.2rem;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.main-2 {
  padding: 3vw;
  display: flex;
  flex-direction: column;
}

.block-title {
  display: flex;
  align-items: center;
}

.title {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}

.title img {
  height: 6vw;
  filter: grayscale();
}

.block-title {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #3f3b37;
}

.main-title {
  width: 100%;
  margin-left: 1vw;
  font-family: var(--base-font);
  font-weight: 400;
  font-size: clamp(50px, 8vw, 140px);
  color: #3f3b37;
}

.main-title span {
  font-style: italic;
}

@media screen and (max-width: 750px) {
  .main-title {
    text-align: center;
    font-size: 80px;
  }

  .title img {
    display: none;
  }
}

.card-btn {
  width: 70vw;
  display: flex;
  margin: 4vw auto;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media screen and (max-width: 572px) {
  .card-btn {
    justify-content: center;
  }
  .block-title-card {
    text-align: center;
  }
}

#btn-burger {
  width: 200px;
  height: 70px;
  display: flex;
  text-align: center;
  justify-content: center;
  padding: 10px;
  background: #fcff77;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

#btn-burger::before {
  content: "";
  position: absolute;
  top: 7em;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #dfd7c9;
  border: 1px solid #b2b2a8;
  transition: all 0.6s;
  z-index: -1;
}

#btn-burger:hover::before {
  top: 0;
}

#menu {
  padding: 10px;
  font-size: 40px;
  color: #3f3b37;
}

#btn-burger span {
  padding: 10px;
  font-size: 1.5em;
}

#btn-burger a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #3f3b37;
}

.btn-suivant {
  width: 200px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: 0.4s;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn-suivant::before {
  content: "";
  position: absolute;
  top: 7em;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fcff77;
  transition: all 0.6s;
  z-index: -1;
}

.btn-suivant:hover::before {
  top: 0;
}

.btn-suivant a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #3f3b37;
}

#arrow {
  color: #3f3b37;
  font-size: 1.5em;
  padding: 10px;
}

.btn-suivant span {
  padding: 10px;
  font-size: 1.5em;
}

/* Modal */

.modal-container {
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  transition: visibility 0.4s;
  z-index: 2;
}

.modal-container.active {
  visibility: visible;
}

.overlay {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  margin-bottom: -6rem;
  background-color: #3f3b3777;
  border-radius: 3.2rem;
  transition: opacity 0.4s 0.2s ease-out;
}

.modal-container.active .overlay {
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

.modal {
  opacity: 0;
  width: 20%;
  max-width: 500px;
  min-width: 150px;
  padding: 30px;
  background: #3f3b37;
  position: absolute;
  top: 45%;
  left: 55%;
  transition: opacity 0.4s ease-out;
}

.modal-container.active .modal {
  opacity: 1;
  transition: opacity 0.4s 0.2s ease-out;
}

.close-modal {
  padding: 9px 12px;
  border: none;
  font-size: 18px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  background: #fdff77d2;
  color: #3f3b37;
}

.modal a {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  padding-top: 15px;
  padding-left: 15px;
  text-decoration: none;
  font-size: clamp(17px, 2vw, 40px);
  font-weight: 200;
  color: #ffffff;
  cursor: pointer;
}

.modal a:hover {
  text-decoration: underline;
  color: #fdff77d2;
}

/* Modal FIN */

.block-cards {
  margin-top: 7em;
  width: 80vw;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.block-title-card {
  width: 100%;
  margin-bottom: 3vw;
  z-index: 1;
}

.block-title-card p {
  font-family: var(--title-font);
  font-size: clamp(30px, 4vw, 100px);
  /* font-weight: 500; */
  color: #3f3b37;
}

.block-title-card p span {
  font-style: italic;
}
article {
  margin-bottom: 3vw;
}
.img-zoom-0 {
  display: flex;
  flex-direction: column;
  width: 20vw;
  height: 18vw;
  /* min-height: 130px; */
  background-image: url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease-in-out;
}

.img-zoom-0:hover {
  transform: scale(1.1);
}
.img-zoom-6 {
  display: flex;
  width: 80vw;
  height: 18vw;
  min-height: 130px;
  background-image: url("https://images.unsplash.com/photo-1485182708500-e8f1f318ba72?q=80&w=2110&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease-in-out;
}

.img-zoom-6:hover {
  transform: scale(1.1);
}
.img-zoom-1 {
  display: flex;
  width: 80vw;
  height: 18vw;
  min-height: 130px;
  background-image: url("https://images.unsplash.com/photo-1476950648868-16c7dca9499c?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease-in-out;
}

.img-zoom-1:hover {
  transform: scale(1.1);
}

.img-zoom-2 {
  display: flex;
  width: 80vw;
  height: 18vw;
  min-height: 130px;
  background-image: url("https://images.unsplash.com/photo-1511018055524-56183e65e850?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease-in-out;
}

.img-zoom-2:hover {
  transform: scale(1.1);
}
.img-zoom-3 {
  display: flex;
  width: 80vw;
  height: 18vw;
  min-height: 130px;
  background-image: url("https://plus.unsplash.com/premium_photo-1664790560123-c5f839457591?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease-in-out;
}

.img-zoom-3:hover {
  transform: scale(1.1);
}
.img-zoom-4 {
  display: flex;
  width: 80vw;
  height: 18vw;
  min-height: 130px;
  background-image: url("https://images.unsplash.com/photo-1597760665504-82545eb8d32b?q=80&w=1887&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease-in-out;
}

.img-zoom-4:hover {
  transform: scale(1.1);
}
.img-zoom-5 {
  display: flex;
  width: 80vw;
  height: 18vw;
  min-height: 130px;
  background-image: url("https://images.unsplash.com/photo-1560427183-4efd29c38997?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease-in-out;
}

.img-zoom-5:hover {
  transform: scale(1.1);
}
.text-content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.726);
  height: 100%;
  width: 45%;
  padding: clamp(5px, 1vw, 15px);
  text-align: center;
  overflow: hidden;
}

@media screen and (max-width: 950px) {
  .text-content {
    width: 55%;
  }
}
@media screen and (max-width: 800px) {
  .text-content {
    width: 65%;
  }
}
@media screen and (max-width: 500px) {
  .text-content {
    width: 100%;
  }
}

.text-content h4 {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 45px);
  padding: clamp(5px, 1vw, 15px);
  color: #3f3b37;
}

article:hover h4 {
  text-decoration: underline;
}

.text-content a {
  font-family: var(--title-font);
  font-weight: 500;
  display: flex;
  font-size: clamp(12px, 2vw, 25px);
  text-decoration: none;
  color: #3f3b37;
  margin: 5px 0;
  padding: clamp(5px, 1vw, 15px);
  background-color: #fdff77cb;
  cursor: pointer;
}
