/*--------- Général ---------*/
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Nunito sans, sans-serif;
  font-size: 1.1rem;
  overflow-x: hidden;
  width: 100%;
  height: 100vh;
}
@media screen and (min-width: 768px) {
  header {
    min-height: auto;
    padding: 10px 0;
  }
  .container {
    margin: 40px;
  }
}

/*--------- Header ---------*/

header {
  width: 100%;
  background: #333;
  border-bottom: 1px dotted #f1f1f1;
  background: linear-gradient(to bottom, #333, #626262);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  color: #fff;
  z-index: 9999;
}
.sitebranding {
  position: absolute;
  left: 5px;
  top: 20px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.link-home {
  cursor: pointer;
  text-decoration: none;
  color: #f1f1f1;
}
.brand {
  position: absolute;
  left: 65px;
  top: 15px;
  padding-left: 10px;
  font-size: 2rem;
}
.logo > img {
  width: 50px;
  height: 50px;
}
.nav-items,
.links-items {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.nav-item,
.link-item {
  font-size: 1.2rem;
  color: #f1f1f1;
  list-style-type: none;
  text-transform: uppercase;
  margin: 5px 15px;
  cursor: pointer;
}
.nav-item::after,
.link-item::after {
  content: "";
  display: block;
  margin: 0 auto;
  width: 0%;
  height: 2px;
  background: #f1f1f1;
  transition: all 0.2s ease-in-out;
}
.nav-item:hover::after,
.link-item:hover::after {
  width: 100%;
}
.nav-items {
  padding-top: 20px;
}
.book {
  width: 190px;
  height: 30px;
  margin-left: 10px;
  margin-right: 20px;
  font-weight: 700;
  letter-spacing: 0.1rem;
  border-radius: 2px;
  background-color: #f1f1f1;
  border: 1px solid #333;
  color: black;
  text-align: center;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.book:hover {
  background-color: rgb(138, 131, 131);
  color: #f1f1f1;
  transition: background 0.3s ease;
}
.fab {
  color: #f1f1f1;
}

/* Icône Hamburger */
.box {
  display: none;
}
.box-hamburger {
  height: 40px;
  width: 44px;
  display: flex;
  margin-right: 30px;
  justify-content: center;
  align-items: center;
  position: relative;
}
.contLigne {
  width: 28px;
  height: 20.5px;
  cursor: pointer;
  position: relative;
}
.lignes {
  width: 100%;
  height: 3px;
  border-radius: 5px;
  background: #f1f1f1;
  position: absolute;
  transition: all 0.5s ease-in-out;
}
.lignes:nth-child(1) {
  top: 1px;
}
.lignes:nth-child(2) {
  top: 9px;
}
.lignes:nth-child(3) {
  top: 17px;
}

@media screen and (max-width: 1024px) {
  body {
    font-size: 1rem;
  }
  .nav-item,
  .link-item {
    font-size: 1rem;
    margin: 4px 10px;
  }
  .nav-items {
    padding-top: 18px;
  }
  .book {
    width: 180px;
    height: 28px;
    margin-left: 10px;
    margin-right: 20px;
    letter-spacing: 0.1rem;
    padding: 4px 7px;
  }
}
@media screen and (max-width: 790px) {
  header {
    height: 70px;
    position: relative;
  }
  .box {
    display: block;
    position: absolute;
    top: 16px;
  }
  .nav-items,
  .links-items {
    display: none;
  }
  .sitebranding {
    left: 20px;
    top: 20px;
    padding: 1px;
  }
  .brand {
    left: 45px;
    top: 5px;
    padding-left: 1px;
    font-size: 1.2rem;
  }
  .logo > img {
    width: 32px;
    height: 32px;
  }
}

/*--------- Content ---------*/
.content {
  margin-top: -10px;
}

/*--------- Slider ---------*/
.slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding-bottom: 50px;
  position: relative;
}
.slides {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: transparent transparent; /* thumb and track color */
  scrollbar-width: 0px;
 
}
.slides::-webkit-scrollbar {
  width: 0;
}

.slides::-webkit-scrollbar-track {
  background: transparent;
}

.slides::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}
.slides {
  -ms-overflow-style: none;
}
.slide {
  flex: 1 0 100%;
  scroll-snap-align: start;
  position: relative;
}
.slide img {
  width: 100%;
}
.slide::before,
.slide::after,
.carousel__prev,
.carousel__next {
  position: absolute;
  top: 50%;
  width: 3.6rem;
  height: 3.6rem;
  transform: translateY(-50%);
  border-radius: 50%;
  font-size: 0;
  outline: 0;
}
.slide::before,
.carousel__prev {
  left: 1rem;
}
.slide::after,
.carousel__next {
  right: 1rem;
}
.slide::before,
.slide::after {
  content: "";
  z-index: 1;
  background-color: rgba(46, 46, 46, 0.5);
  background-size: 1.5rem 1.5rem;
  background-repeat: no-repeat;
  background-position: center center;
  font-size: 2.5rem;
  line-height: 4rem;
  text-align: center;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide::before {
  font-family: "FontAwesome";
  content: "\f104";
  z-index: 2;
  color: #fff;
  font-size: 2rem;
}
.slide::after {
  font-family: "FontAwesome";
  content: "\f105";
  z-index: 2;
  color: #fff;
  font-size: 2rem;
}

@media screen and (max-width: 1024px) {
  .slide::before,
  .slide::after,
  .carousel__prev,
  .carousel__next {
    width: 2.8rem;
    height: 2.8rem;
  }
}
@media screen and (max-width: 768px) {
  .slider {
    padding-bottom: 20px;
  }
  .slide::before,
  .slide::after,
  .carousel__prev,
  .carousel__next {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1.4rem;
  }
}

/*--------- Partie1 ---------*/
.partie1,
.paragraph_content {
  width: 100%;
}
.paragraph_grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}
.paragraph {
  width: 50%;
  font-size: 1.6rem;
}
.paragraph h2 {
  margin-bottom: 10px;
}
.paragraph > p {
  margin-bottom: 5px;
}
.paragraph img {
  width: 100%;
  height: 100%;
  padding: 60px;
}
.buttons {
  margin-top: 50px;
  text-align: center;
}
.btn {
  display: inline;
  width: 160px;
  height: 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 2px;
  background-color: rgb(138, 131, 131);
  border: 1px solid #333;
  color: #f1f1f1;
  text-align: center;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-left: 10px;
}
.btn:hover {
  background-color: #f1f1f1;
  color: black;
  transition: background 0.3s ease;
}

@media screen and (max-width: 1024px) {
  .paragraph {
    font-size: 1.3rem;
  }
  .paragraph img {
    padding: 40px;
  }
  .buttons {
    margin-top: 30px;
  }
  .btn {
    width: 150px;
    height: 30px;
    font-size: 1rem;
    padding: 4px 8px;
    margin-left: 6px;
  }
}
@media screen and (max-width: 768px) {
  .partie1 {
    padding: 0 20px;
  }
  .paragraph_grid {
    flex-direction: column;
  }
  .paragraph {
    width: 100%;
    height: 50%;
    font-size: 1rem;
  }
  .paragraph.para-img {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .paragraph img {
    width: 450px;
    height: 600px;
  }
  .buttons {
    margin-top: 20px;
  }
  .btn {
    width: 120px;
    height: 24px;
    font-size: 0.9rem;
    padding: 2px 8px;
    margin-left: 6px;
  }
}
@media screen and (max-width: 480px) {
  .paragraph {
    font-size: 0.9rem;
  }
  .paragraph img {
    width: 320px;
    height: 430px;
  }
}

/*--------- Partie2 ---------*/
.partie2 {
  padding: 50px 0;
}
.partie2 .img-partie2 {
  width: 100%;
  height: 100%;
  padding: 30px;
}
.author {
  font-size: 1.7rem;
  font-family: "Cedarville Cursive", cursive;
}

@media screen and (max-width: 1024px) {
  .partie2 {
    padding: 30px 0;
  }
  .partie2 .img-partie2 {
    width: 100%;
    height: 100%;
    padding: 20px;
  }
  .author {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 768px) {
  .partie2 {
    padding: 0 20px;
  }
  .paragraph_grid {
    flex-direction: column;
  }
  .paragraph {
    width: 100%;
    height: 50%;
    font-size: 1.2rem;
  }
  .paragraph.para-img {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .author {
    font-size: 1.2rem;
  }
}

/*--------- Partie3 ---------*/
.partie3 {
  margin: 10px;
  padding-bottom: 50px;
}
.paragraph_grid_partie3 {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas: "img1 img2 img3";
  gap: 20px;
  margin: 30px;
}
.img1 {
  grid-area: img1;
}
.img2 {
  grid-area: img2;
}
.img3 {
  grid-area: img3;
}
.partie3 .img-partie3 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media screen and (max-width: 768px) and (min-width: 600px) {
  .partie3 {
    padding-bottom: 10px;
  }
  .flex-paragraph {
    display: flex;
    justify-content: center;
  }
  .paragraph_grid_partie3 {
    display: grid;
    grid-template-rows: 400px 400px;
    grid-template-columns: repeat(2, 280px);
    grid-template-areas:
      "img1 img2"
      "flex-container flex-container";
    gap: 10px;
    margin: 0px;
  }
  .partie3 .img-partie3 {
    width: 280px;
    height: 400px;
  }
  .flex-container {
    width: 580px;
    height: 400px;
    display: flex;
    justify-content: center;
    grid-area: flex-container;
  }
}
@media screen and (max-width: 600px) {
  .partie3 {
    padding-bottom: 0px;
    display: flex;
    justify-content: center;
  }
  .paragraph_content-partie3 {
    width: 88%;
    height: 88%;
  }
  .flex-paragraph {
    display: flex;
    justify-content: center;
  }
  .paragraph_grid_partie3 {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr;
    grid-template-areas:
      "img1"
      "img2"
      "img3";
    gap: 5px;
    margin: 0px;
  }
  .partie3 .img-partie3 {
    width: 100%;
    height: 100%;
  }
}

/*--------- News ---------*/
.news {
  margin: 60px 0;
  padding: 30px;
  border: 1px solid black;
}
.news h2 {
  text-align: center;
  margin-bottom: 15px;
}
.news h3 {
  margin-bottom: 10px;
}
.news h3,
.news h4,
.news p,
.news .btn-actu {
  margin-left: 20px;
}
.btn-actu {
  display: inline;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  background-color: transparent;
  color: black;
  text-align: center;
  padding-top: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn-actu:hover {
  color: rgb(122, 122, 122);
  transition: color 0.3s ease;
}

@media screen and (max-width: 768px) {
  .news {
    margin: 60px;
    padding: 20px;
  }
}
@media screen and (max-width: 600px) {
  .news {
    margin: 40px;
    padding: 10px;
  }
  .news h2 {
    font-size: 1.3rem;
  }
  .news h3 {
    font-size: 1.1rem;
  }
  .news h3,
  .news h4,
  .news p,
  .news .btn-actu {
    margin-left: 0px;
  }
  .btn-actu {
    font-size: 1rem;
    padding-top: 10px;
  }
}

/*--------- Footer ---------*/
footer {
  width: 100%;
  padding: 50px;
  font-size: 0.9rem;
}
.top-footer {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  grid-template-areas: "block1 block2 block3";
}
.block1 {
  grid-area: block1;
}
.block2 {
  grid-area: block2;
}
.block3 {
  grid-area: block3;
}
.btn-contact,
.btn-newsletter {
  display: inline;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: rgb(138, 131, 131);
  border: 1px solid #333;
  color: #f1f1f1;
  text-align: center;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn-contact:hover,
.btn-newsletter:hover {
  background-color: #f1f1f1;
  color: black;
  transition: background 0.3s ease;
}
.links-items-footer {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.links-items-footer .footer {
  padding-top: 10px;
  color: rgb(138, 131, 131);
}
.icon-footer::after {
  content: "";
  display: block;
  margin: 0 auto;
  width: 0%;
  height: 2px;
  background: rgb(138, 131, 131);
  transition: all 0.2s ease-in-out;
}
.icon-footer:hover::after {
  width: 100%;
}
.bottom-footer {
  margin-top: 10px;
  height: 10px;
  display: flex;
}
.block-bottom-footer4 {
  margin-left: auto;
}
.block-bottom-footer1 a,
.block-bottom-footer2 a,
.block-bottom-footer3 a {
  display: inline;
  text-decoration: none;
  color: #333;
}
.block-bottom-footer1::after,
.block-bottom-footer2::after,
.block-bottom-footer3::after {
  content: "";
  display: block;
  margin: 0 auto;
  width: 0%;
  height: 2px;
  background: #333;
  transition: all 0.2s ease-in-out;
}
.block-bottom-footer1:hover::after,
.block-bottom-footer2:hover::after,
.block-bottom-footer3:hover::after {
  width: 100%;
}
@media screen and (max-width: 1024px) {
  footer {
    padding: 40px;
    font-size: 0.85rem;
  }
  .btn-contact,
  .btn-newsletter {
    font-size: 1rem;
    padding: 4px 8px;
  }
  .icon-footer:hover::after {
    width: 100%;
  }
}
@media screen and (max-width: 768px) {
  .bottom-footer {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .block-bottom-footer4 {
    margin-left: 0;
    padding-top: 10px;
  }
}

@media screen and (max-width: 586px) {
  footer {
    padding: 10px;
  }
.top-footer {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 300px 1fr;
    gap: 10px;
    grid-template-areas: ". block1 ."
                         ". block2 ." 
                         ". block3 .";
  }
  .btn-contact,
  .btn-newsletter {
    font-size: .9rem;
    padding: 3px 7px;
  }
.block-top-footer.block2, .block-top-footer.block3 {
  padding-top: 20px;
}
}
