/* ################### */
/* Global */
/* ################### */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  list-style: none;
  outline: none;
  border:none;
  scroll-behavior: smooth;
}

:root {
  --accent:  #0c8929;
  --accent2: #892d0c;
  --bg: #fff;
--text: #333;
}

body {
  background: var(--bg);
  color: var(--text);
}

section {
  padding: 50px 10%;
}

img {
  width: 100%;
}

.btn {
  display: inline-block;
  margin: 1rem 0;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
transition: background .2s ease-in-out;
border-radius: 7px;
}
.btn:hover {
 background: var(--accent2);
}

.section-heading {
  padding-bottom: 3rem;
}

.section-heading h2 {
  text-transform: capitalize;
  position: relative;
  font-size: clamp(25px, 4vw, 40px);
}
.section-heading h2:before {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  content: "";
  background-color: var(--accent);
}

.section-heading  span {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 3em;
  padding-left: 0.25em;
  color: rgba(0, 0, 0, 0.4);
  padding-bottom: 10px;
}

/* ################### */
/* Header */
/* ################### */

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 100px;
  background: var(--bg);
}

header.active {
  box-shadow: 0 5px 5px 0 rgba(0,0,0,.2)
}

.logo {
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}

.logo span {
  color: var(--accent)
}

.navigation {
  position: relative;
  display: flex;
}

.navigation a {
  color: var(--text);
  padding: 10px 15px;
  font-weight: 500;
}
.navigation a:hover, .navigation a.active {
color: var(--accent);
}

#burger-menu {
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  display: none;
}

#burger-menu:hover  {
  color: var(--accent2)
}

/* ################### */
/* Home*/
/* ################### */

.home {
width: 100%;
min-height: 100vh;
background: no-repeat center / cover url('./images/background.jpg');
background-attachment: fixed;
display: flex;
align-items: center;
}

.home-content h1 {
  font-size: clamp(30px, 5vw, 60px);
  color: #fff;
}
.home-content h1 span{
  color: #fff;
}
.home-content p {
 margin: 1rem 0;
 font-size: 0.97rem;
 color: #fff;
}

/* ################### */
/* Boutiques */
/* ################### */


.shop-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.box {
  background: #fff;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  position: relative;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}

.box:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
}

.box-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.box:hover .box-img img {
  transform: scale(1.08);
}

.box-content {
  padding: 1rem 1rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.box-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.stars {
  color: #f59e0b;
  font-size: 0.8rem;
}

.box > p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.4rem 1rem 1rem;
  margin-top: auto;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.box > p span {
  font-size: 0.82rem;
  font-weight: 400;
  color: #aaa;
  text-decoration: line-through;
  margin: 0;
}

.box p span::after {
  display: none;
}

.solde {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #ef4444;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.bx-cart-alt {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: var(--bg);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  box-shadow: 0 4px 14px rgba(12,137,41,.35);
}

.bx-cart-alt:hover {
  background: var(--accent2);
  transform: scale(1.12);
}

/* ################### */
/* News */
/* ################### */

.news-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.news-container .box p {
  padding-left: 1rem;
}

.news-container .box {
  border-radius: 16px;
}


/* ################### */
/* about */
/* ################### */

.about-container {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1rem;;
}

.about-img img {
  width: 80%;
  border-radius: 7px;
  object-fit: contain;
  object-position: center;
}

.about-content span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}
.about-content h2 {
  font-size: 1rem;
  margin: 1rem 0;
}
.about-content p {
  margin: 1rem 0;
}

/* ################### */
/* Brands*/
/* ################### */

.brands-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.brands-container img {
  width: 160px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  filter: grayscale(1) opacity(.65);
  cursor: pointer;
  transition: filter .3s ease, transform .3s ease, box-shadow .3s ease;
}

.brands-container img:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* ################### */
/* newsletter */
/* ################### */

.newsletter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: no-repeat top / cover url(./images/bg.jpg);
  background-attachment: fixed;
}

.newsletter h2 {
  font-size: clamp(20px, 2vw, 30px);
  color: var(--bg)
}


.news-box {
  display: flex;
  align-items: center;
  margin-top: 2rem;

}

.news-box input {
  width: 260px;
  height: 44px;
  padding: 10px;
}

.news-box  .btn {
  border-radius: 0;
}

/* ################### */
/* footer*/
/* ################### */

footer {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, auto));
  gap: 2rem;
  margin-top: 2rem;
  background: var(--light-red);
  padding: 1rem 5rem;
}

.footer-box {
  display: flex;
  flex-direction: column;
}


.footer-box h6 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-box a {
  color: var(--accent)
}
.footer-box a:hover {
  color: var(--accent2)
}

.copy {
  text-align: center;
  font-size: 13px;
  padding: 0.5rem 0;
}


.footer-social {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  }
  
  .footer-social .bx {
    padding: 10px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s ease-in-out;
  }
  
  .footer-social .bx:hover {
    background: var(--accent2);
  }

/* ################### */
/* Breakpoints*/
/* ################### */

@media screen and ( max-width: 998px){

  header {
    padding: 2rem 1rem;
  }
  .section {
    padding: 50px 4%;
  }
  #burger-menu {
    display: block;
  }

  .navigation {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: -100%;
    width: 280px;
    min-height: 100vh;
    box-shadow: -2px  5px 5px rgba(0,0,0,.2);
    transition: right .2s ease-in-out;
    background: var(--bg);
  }

  .navigation a {
    display: block;
  }

  .navigation a:hover, .navigation a.active {
    background: var(--accent);
    color: var(--bg);
  }

  .navigation.active {
    right: 0;
  }
}

@media screen and ( max-width: 881px){
.shop-container , .news-container {
  grid-template-columns: repeat(auto-fit, minmax(218px, auto));
}
.about-container {
  grid-template-columns: 1fr;
  text-align: center;
}
.about-img {
  order: 2;
  padding-top: 2rem;
}

footer {
  padding: 2rem 1rem;
}
}

@media screen and ( max-width: 481px){

  .shop-container , .news-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  }

  .box, .box-img {
    height: 300px;
  }
  .news-box input {
    width: 180px;
  }
}