*,
::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;
}

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

.title img {
  height: 5em;
  filter: grayscale();
  /* position: fixed; */
}

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

.main-title {
  width: 100%;
  /* margin-left: 6vw; */
  font-family: var(--title-font);
  font-weight: 400;
  font-size: 6em;
  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: 70vw;
  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;
}

.btn-prout {
  display: flex;
  width: 100%;
  margin: 2vw 1vw 2vw 0;
}

.btn-prout a {
  font-size: 1.2em;
  text-align: center;
  text-decoration: none;
  color: #3f3b37;
  padding: 15px;
}

.prout-1 {
  min-width: 350px;
  height: 60px;
  margin-right: 1vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
  border: 1px solid #3f3b37;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

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

.prout-1:hover::before {
  top: 0;
}

.prout-2 {
  height: 60px;
  margin-right: 1vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
  border: 1px solid #3f3b37;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

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

.prout-2:hover::before {
  top: 0;
}

.card {
  margin-bottom: 3vw;
  display: flex;
  width: 70vw;
  height: 25vw;
  background: #ffffff;
  overflow: hidden;
}

.image-zoom {
  width: 100%;
  height: 100%;
  background-image: url("https://images.unsplash.com/photo-1597760665504-82545eb8d32b?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;
  transform: scale(1);
  will-change: transform;
  z-index: 0;
}

@media (max-width: 750px) {
  .block-cards{
    width: auto;
  }
  .block-title-card p{
    text-align: center;
  }
  .btn-prout{
    justify-content:center;
  }
  .card{
    width: auto;
  }
  }
article {
  margin-top: 4vw;
  font-family: var(--title-font);
  font-size: 1.2em;
  line-height: 1.5;
  color: #3f3b37;
}

article h4 {
  font-size: 2em;
  font-weight: 400;
  margin-bottom: 1vw;
}

article span {
  font-size: 1.1em;
  font-weight: 500;
}

article ul {
  margin-top: 1vw;
  list-style-type: circle;
}

article li {
  margin: 5px 0 0 30px;
}

.card-btn-1 {
  /* width: 51%; */
  display: flex;
  justify-content: center;
  margin-top: 7vw;
  margin-bottom: 7vw;
}

.btn-pbf {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid #3f3b37;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.btn-pbf::before {
  content: "";
  position: absolute;
  left: 0;
  width: 130%;
  height: 0%;
  background: #fcff77;
  z-index: -1;
  transition: 0.6s;
}

.btn-pbf:hover::before {
  height: 180%;
}

.btn-pbf:hover {
  border: 1px solid #dfd7c9;
}

.btn-pbf a {
  font-size: 1.2em;

  text-decoration: none;
  color: #3f3b37;
}

.btn-pbf span {
  padding-left: 1vw;
}
