@import url("./components/general.css");
@import url("./components/header.css");
@import url("./components/contact.css");
@import url("./components/menu.css");

.card {
  padding: 0 20px;
}

.container1 {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.bloc-1,
.bloc-2 {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  animation-name: pp;
  animation-duration: 2.22s;
}

@keyframes pp {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0%);
  }
}

.bloc-1>div,
.bloc-2>div {
  margin-right: 0;
  margin-bottom: 20px;
}

.bloc-1 img,
.bloc-2 img {
  width: 100%;
  height: auto;
}

.bloc-1 h2,
.bloc-2 h2 {
  margin-bottom: 10px;
  text-align: center;
}

.bloc-1 p,
.bloc-2 p {
  font-size: 16px;
  margin-bottom: 10px;
}

.bloc-2 .button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.bloc-2 button {
  padding: 17px 33px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background-color: white;
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12px;
  transition: all 0.5s ease;
  margin: auto;
}

.bloc-2 button:hover {
  letter-spacing: 2px;
  background-color: rgb(112, 37, 210);
  box-shadow: rgb(145, 27, 255) 0px 7px 29px 0px;
  color: white;
}

.bloc-2 button:active {
  letter-spacing: 2px;
  background-color: rgb(116, 10, 255);
  box-shadow: rgb(95, 8, 255) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
  color: white;
}

@media (min-width: 768px) {
  .container1 {
    padding: 3rem 4rem;
  }

  .bloc-1,
  .bloc-2 {
    flex-direction: row;
  }

  .bloc-1>div,
  .bloc-2>div {
    margin-right: 20px;
    margin-bottom: 0;
  }

  .bloc-1 img,
  .bloc-2 img {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .container1 {
    padding: 3rem 8rem;
  }

  .bloc-1 img,
  .bloc-2 img {
    width: 555px;
  }
}

.text-box {
  width: 90%;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.text-box h2 {
  font-size: 2.8rem;
}

.text-box p {
  margin: 10px 0 40px;
  font-size: 14px;
  color: #fff;
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  padding: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.hero-btn:hover {
  border: 1px solid #f44336;
  background: #f44336;
  transition: 1s;
}

article h2 {
  font-size: 2rem;
  text-align: center;
}

.parties {
  display: flex;
  flex-direction: column;
  margin-top: 100px;
}

.parties h3 {
  color: rgb(0, 0, 0);
  font-size: 1.7em;
  margin-left: 15px;
  margin-bottom: 50px;
  align-items: center;
  display: flex;
  justify-content: center;
}

.part {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 5px;
}

.part img {
  border-radius: 10px;
  width: 90%;
}

@media (min-width: 768px) {
  .parties {
    flex-direction: row;
  }

  .part {
    flex: 1;
  }

  .parties h3 {
    font-size: 2em;
  }

  article h2 {
    font-size: 2.5rem;
  }

}

.scroll-bg {
  margin-top: 150px;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-bg h2 {
  color: rgb(0, 0, 0);
  font-size: 2em;
  margin-left: 30px;
  margin-bottom: 50px;
}

.scroll-div {
  padding: 10px;
  margin: 20px;
  width: 96%;
  height: 500px;
  overflow: hidden;
  overflow-y: scroll;
}

.scroll-object {
  color: white;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
  font-size: 1.5em;
}

.articles {
  margin-top: 30px;
  color: #000000;
}

.articles .article {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.articles .article .left img {
  height: 300px;
  width: 500px;
}

.articles .article .right {
  margin-left: 40px;
  max-width: 50%;
}

.articles .article .right p.date {
  color: #7f7e7e;
}

.articles .article .right p.description {
  color: #2d2d2d;
  font-size: 1em;
}

.auteur {
  font-size: 0.7em;
}

.right h3 {
  font-size: 1.2em;
}


.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: black;
}

@media screen and (min-width: 350px) and (max-width: 767px) {

  .container2 {
    flex-direction: column;
  }

  .cont-1 {
    flex-direction: column;
  }

  .droit,
  .gauche {
    width: 100%;
  }

  .parties h1 {
    width: 100%;
    font-size: 2.5em;
  }

  .scroll-bg h2 {
    font-size: 2.4em;
    width: 90%;
  }

  .scroll-div {
    padding: 0;
    margin: 15px;
  }

  .articles .article .right {
    max-width: 100%;
    margin-left: 0;
  }
}

@media screen and (min-width: 480px) {
  .text-box h2 {
    font-size: 3.5rem;
  }
}