@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;400");

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

html {
  scroll-behavior: smooth;
}

/* ================= VARIABLE ================ */
:root {
  --primary-color: #f59b24;
  --primary-color-alt: rgb(198, 152, 110);
  --second-color: #363634;
  --second-color-alt: #494943;
  --third-color: hsl(220, 36%, 28%);
  --white-color: #fbfbfb;
  --white-color-alt: hsl(12, 14%, 93%);
  --dark-color: hsl(300, 100%, 0%);
  --gris: #808080;
}

/* ================= BASE ==================== */
li {
  list-style: none;
}

.toTop {
  position: fixed;
  top: calc(100vh - 180px);
  right: 2rem;
  z-index: 999;
}

.toTop a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-color);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin: 5px 0;
  text-transform: uppercase;
}

.toTop a svg:not(:host).svg-inline--fa,
svg:not(:root).svg-inline--fa {
  overflow: visible;
  box-sizing: content-box;
}

.toTop a .svg-inline--fa {
  display: var(--fa-display, inline-block);
  height: 1em;
  overflow: visible;
  vertical-align: -.125em;
}




a {
  text-decoration: none;
  text-transform: uppercase;
}

img {
  width: 100%;
  height: auto;
}

h2,
h1, .h3{
  font-family: houschka-rounded;
  font-weight: 900;
}

p{
  font-size: 1rem;
  line-height: 28px;
  letter-spacing: 1px;
}

.h3{
font-size: 1.5rem;
letter-spacing: 2px;
margin-top:40px;
text-transform: uppercase;


}


h2 {
  font-size: 2.5rem;
  line-height: 32px;
  letter-spacing: 1px;
}


.bx {
  font-size: 2.5rem;
}

.container {
  padding: 0 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* -- BODY -- */
body {
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  background-color: var(--white-color);
}

/* ================= HEADER ================ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white-color);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 9999;
  gap: 20px;
}

.company-logo {
  background-image: url("/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 80px;
  width: 210px;
}

.nav-items {
  display: flex;
}

.nav-item {
  margin: 0 2rem;
}

.nav-link {
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
  color: var(--dark-color);
  font-family: houschka-rounded;
  font-weight: 800;
  z-index: 3;
  top: 0px;
}

.nav-link::before {
  content: "";
  background: linear-gradient(var(--primary-color), var(--primary-color-alt));
  width: 100%;
  height: 0.05rem;
  position: absolute;
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 150ms;
}

.nav-link:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}



/* ================= MAIN ================ */

/* -------- HOME SECTION -------------- */
.section-1 {
  background-color: var(--dark-color);
  margin-bottom: 20px;
  background-image: url('./banner.webp');
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

}

.section-1 .banner {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;

}

.home-img {
  padding: 2rem 0;
  height: 40vh;
  object-fit: cover;

}


.slogan .company-slogan {
  line-height: 3rem;
  font-size: 3.0rem;
  color: #fff;
}

/* -------- block-txtimg SECTION ------------- */

.block-txtimg-desc-1>.block-txtimg-title,
.block-txtimg-desc-1>.block-txtimg-hook {
  text-align: start;
}

.block-txtimg-desc-2>.block-txtimg-title,
.block-txtimg-desc-2>.block-txtimg-hook {
  text-align: end;
}


.block-txtimg img {
  width: 100%;
  height: auto;
  padding: 1rem 0;
  /* Réduction du padding */
}


.block-txtimg-1 img {
  padding: 3rem 0;
}

.block-txtimg-description {
  padding: 1rem 1rem;
  text-align: center;
  /* Centrage du texte */
}

.block-txtimg-desc-2 {
  margin-bottom: 20px;
}

.block-txtimg-description .block-txtimg-title {
  color: var(--second-color);
  font-size: 1.8rem;
  padding: 1.5rem 0 0.5rem 0;
}

.block-txtimg-description .block-txtimg-hook {
  color: var(--second-color-alt);
  font-size: 1rem;
}

.block-txtimg-description .cart-btn {
  color: var(--second-color-alt);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin: 2rem 0 1rem 0;
  width: 10rem;
  height: 3rem;
  background-image: linear-gradient(to top,
      var(--primary-color-alt),
      var(--primary-color));
}

.block-txtimg-description .cart-btn:hover {
  background-image: linear-gradient(to bottom,
      var(--primary-color-alt),
      var(--primary-color));
}

/* -------- PRODUCT SECTION ----------- */
.section-gallerie {
  background-image: url(./texture.png);
  background-size: cover;
  background-repeat: no-repeat;
  padding: 80px 0px;
}

.section-gallerie .gallerie {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-direction: column;

}

.gallerie-img {

  width: 100%;
  height: 100%;
}

.product {
  background-color: var(--white-color-alt);
  position: relative;

}
/*
.product::before {
  display: none;
}


.product_add_cart:hover {
  color: var(--white-color);
  box-shadow: 0 1rem 0 -0.5rem var(--primary-color),
    0 2rem 0 -1rem var(--primary-color-alt);
}
/*


/* ========= SUBSCRIBE SECTION ========== */
.section-5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}



.btn {
  padding: 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
  width: 100%;
  border: none;
  background-color: var(--primary-color);
  color: var(--white-color);
  transition: background-color 300ms;
  border-radius: 4px;
  padding: 10px 15px;
  text-transform: uppercase;
  transition: all ease-in-out 0.3s;
}

.btn:hover {
  background-color: var(--second-color);
}



/* =============== FOOTER =============== */
footer {
  margin: 40px 0;
}

footer .footer{
  display: block;
}

.footer {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.mentions,
.mojo {
  color: var(--gris);
  text-transform: uppercase;
  font-size: 12px;
}

/* =============== MEDIA QUERIES ======= */

@media screen and (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }



  /* ================= HEADER ================ */
  header {
    padding: 0.5rem 1rem;
  }

  .nav-items {
    display: flex;
    flex-direction: column;
    color: var(--primary-color);
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .menu-toggle {
    display: block;
    z-index: 5;
  }

  .bx-menu {
    display: block !important;
  }

  .show-bx {
    display: block !important;
  }

  .hide-bx {
    display: none !important;
  }
}

@media (min-width: 769px) {
  header {
    padding: 0.2rem 5rem;
  }

  .section-1 .banner {
    flex-direction: row;
  }



  /* ================= MAIN ================ */

  /* -------- HOME SECTION -------------- */
  .section-1 {
    justify-content: center;
    padding: 2rem 5rem 2rem 5rem;
  }

  .slogan .company-slogan {
    max-width: 40rem;
    font-size: 4.0rem;
    line-height: 60px;
    text-align: start;
  }

  /* -------- block-txtimg SECTION ------------- */


  .block-txtimg {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    display: flex;
    gap: 80px;

  }


  .block-txtimg img {

    padding: 2rem 0;
    height: 40vh;
    object-fit: cover;
  }



  .block-txtimg-description .block-txtimg-title {
    font-size: 1.9rem;
    padding: 1.5rem 0 0.5rem 0;
    line-height: 30px;
  }



  .block-txtimg-description {
    padding: 2rem 1rem;
  }

  .block-txtimg-desc-2 {
    margin-bottom: 0px;
  }

  .block-txtimg-description .block-txtimg-title {
    padding: 0.5rem 0 1rem 0;
  }

  .block-txtimg-description .cart-btn {
    margin: 2rem 0 0.5rem 0;
  }

  /* -------- PRODUCT SECTION ----------- */
  .section-gallerie .gallerie {
    flex-direction: row;
  }

  .product {
    width: 30vw;
  }
/*
  .product::before {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 300ms;
    content: "";
    background-image: linear-gradient(to top,
        transparent,
        var(--primary-color));
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
  }

  .product:hover::before {
    transform: scaleY(1);
    transform-origin: top;
    transition: transform 300ms;
  }

  .product_add_cart {
    transform: scaleY(0);
    transform-origin: bottom;
  }

  .product:hover .product_add_cart {
    transform: translate(-50%, -50%) scaleY(1);
    transform-origin: top;
  }
*/
  /* -------- SPONSOR SECTION ----------- */
  .section-4 {
    margin: 5rem 0;
  }

  /* ========= SUBSCRIBE SECTION ========== */


  .section-5 .subscribe-container {
    display: flex;
    align-items: center;
  }

  input[type="text"] {
    padding: 0 1rem;
    width: 15rem;
  }

  input[type="submit"] {
    width: 10rem;
  }

  /* =============== FOOTER =============== */
  .top-footer {
    flex-direction: row;
    justify-content: space-around;
    padding-bottom: 8rem;
    padding-top: 2rem;
  }

  .footer{
    text-align: center;
  }

  .footer-title {
    font-size: 1rem;
    padding: 1rem 0;
  }

  .footer-items h3 {
    font-size: 0.9rem;
  }

  .end-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--third-color);
  }

  .copyright {
    color: hsla(0, 0%, 98%, 0.747);
    padding: 1rem 0;
    font-size: 0.8rem;
  }

  .copyright b {
    font-size: 0.7rem;
  }

  .designer {
    color: hsla(0, 0%, 98%, 0.322);
    font-size: 0.8rem;
  }
}