/* ################### */
/* 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: #E27406;
  --accent2: #891E0C;
  --bg: #FED287;
--text: #333;
--light: #fff;
}

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

section {
  padding: 50px 10%;
}

img {
  width: 100%;
}

.btn {
  border-radius: 7px;
  padding: 10px 16px;
  background: var(--accent2);
  color: var(--light);
  transition: background .2s ease-in-out;
}

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

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}


.section-heading h2 {
  font-size: clamp(25px, 4vw, 40px);
  text-transform: uppercase;
  position: relative;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 5px;
}
.section-heading h2:before {
  content: "";
  width: 40px;
  height: 5px;
  display: block;
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--accent2);
}
.section-heading h2:after {
  content: "";
  width: 280px;;
  height: 1px;
  display: block;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--accent2);
}
/* ################### */
/* Header*/
/* ################### */

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10%;
  transition: 0.2s ease-in-out;
}

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

header  .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 700;
}

header  .logo img {
  width: 50px;
  margin-right: 1rem;
}

header .navigation {
  display: flex;
}

header .navigation a {
  color: var(--accent2);
  font-size: 1rem;
  padding: 10px 20px;
  font-weight: 600;
  background: transparent;
  border-radius: 7px;
  transition: background .2s ease-in-out, color .2s ease-in-out;
}

header .navigation a:hover , .navigation a.active {
 color:  var(--light);
 background: var(--accent2);
}

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

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


/* ################### */
/*  home */
/* ################### */

.home {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: no-repeat left/ cover url('./images/home-bg.jpg');
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0% 100%);
}

.home::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
}

.home-content {
  position: relative;
  color: var(--light);
  z-index: 100;
}

.home-content span {
  color: var(--bg);
  font-size: 1.2rem;
}

.home-content h1 {
  font-size: clamp(30px, 5vw, 65px);
  margin: 1rem 0;
}

.home-content p {
  margin-bottom: 2rem;
}

/* ################### */
/* À propos */
/* ################### */

.about {
  display: flex;
  align-items: center;
  flex-direction: column;
}


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

.about-box {
  background: var(--light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.about-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.box-img {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

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

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

.box-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}

.about-box:hover .box-overlay {
  opacity: 1;
}

.box-overlay-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  color: var(--accent2);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.box-overlay-btn:hover {
  background: var(--light);
  transform: scale(1.06);
}

.box-overlay-btn i {
  font-size: 1.1rem;
}

.box-info {
  padding: 0.9rem 1rem 1.1rem;
  text-align: center;
  border-top: 3px solid var(--accent2);
}

.box-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.box-info h4 {
  color: var(--accent2);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ################### */
/* Produits*/
/* ################### */
.products {
  background: var(--text);
  padding: 10rem 4%;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0% 100%);
}

.products .section-heading h2 {
  color: var(--light)
}

.products .section-heading h2::before, .products .section-heading h2::after {
  background-color: var(--bg);
}


.products-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, auto));
  gap: 1rem;
}

.product-box {
  background: var(--light);
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.product-box-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.product-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent2);
  color: var(--light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-badge.nouveau {
  background: #2e7d32;
}

.product-badge.best {
  background: #e65100;
}

.product-info {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.product-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent2);
  white-space: nowrap;
}

.product-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent2);
  color: var(--light);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}

.product-btn:hover {
  background: var(--accent);
  transform: scale(1.04);
}

.product-btn i {
  font-size: 1rem;
}

/* ################### */
/* Avis*/
/* ################### */

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px, auto));
  gap: 1rem;
}

.review-box {
  background: var(--light);
  border-bottom: 3px solid var(--accent2);
  text-align: center;
  box-shadow: 0 5px 5px rgba(0,0,0,.2);
  padding: 3rem 1rem;
  cursor: pointer
}

.review-box:hover {
  background: #e2e2e2;
}

.review-box .stars {
  font-size: .8rem;
  color: orange;
}


.review-box img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.review-box  h3 {
  font-size: 1.2rem;
  margin: 1rem 0;
}

.review-box p {
  font-size: 13px;
}

/* ################### */
/* Contact*/
/* ################### */

.contact {
  background: var(--text);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0% 100%);
  padding: 8rem 10%;
}

.contact .section-heading h2 {
  color: var(--light);
}

.contact .section-heading h2::before,
.contact .section-heading h2::after {
  background-color: var(--bg);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-infos {
  flex: 1 1 20rem;
}

.contact-form {
  flex: 1 1 20rem;
  display: flex;
  justify-content: center;
}

.contact-infos h3 {
  font-size: clamp(18px, 3vw, 30px);
  color: var(--bg);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-infos > p {
  color: #bbb;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.adress {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  gap: 0.8rem;
}

.adress i {
  display: flex;
  align-items: center;
  column-gap: .7rem;
  font-size: 1.3rem;
  color: var(--bg);
  font-weight: 700;
}

.adress span {
  font-size: 0.95rem;
  font-weight: 400;
  color: #ccc;
}

.social {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  margin-top: 1.5rem;
}

.social a i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--light);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  background: var(--accent2);
  transition: background .2s ease-in-out, transform .2s ease-in-out;
}

.social a i:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.contact-form form {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
}

.contact-form form label {
  width: 100%;
  color: #ccc;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.contact-form form input,
.contact-form form textarea {
  width: 100%;
  padding: 14px 17px;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  font-size: 0.9rem;
}

.contact-form form textarea {
  resize: none;
}

.contact-form form input[type="submit"] {
  cursor: pointer;
  background: var(--accent2);
  color: var(--light);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background .2s ease-in-out;
}

.contact-form form input[type="submit"]:hover {
  background: var(--accent);
}

.contact-form form input::placeholder,
.contact-form form textarea::placeholder {
  color: #999;
}

/* ##################### */
/*  Footer */
/* ##################### */

.footer {
  background: #1a1a1a;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 3.5rem 10%;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  flex: 1 1 22rem;
}

.footer-brand .logo {
  color: var(--bg);
  font-size: 1.1rem;
  display: inline-flex;
}

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

.footer-brand p {
  color: #888;
  font-size: 0.88rem;
  margin-top: 1rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-links {
  flex: 1 1 10rem;
}

.footer-social {
  flex: 1 1 12rem;
}

.footer-links h4,
.footer-social h4 {
  color: var(--light);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links ul li a {
  color: #888;
  font-size: 0.9rem;
  transition: color .2s ease-in-out, padding-left .2s ease-in-out;
}

.footer-links ul li a:hover {
  color: var(--bg);
  padding-left: 6px;
}

.footer-contact-email {
  color: #888;
  font-size: 0.88rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-email i {
  color: var(--bg);
  font-size: 1rem;
}

.copy {
  padding: 1.2rem 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #666;
  background: #111;
}



/* ################### */
/* breakpoints*/
/* ################### */

@media screen and (max-width: 991px){
  header {
    padding: 18px 4%;
  }
  section {
    padding: 50px 4%;
  }
  .contact {
    padding: 7rem 4%;
  }
  .footer-container {
    padding: 2.5rem 4%;
  }
  .copy {
    padding: 1.2rem 4%;
  }
}

@media screen and (max-width: 900px){
  .about-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 500px){
  .about-container {
    grid-template-columns: 1fr;
  }
}

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

  header {
    padding: 11px 4%;
  }

  #burger-menu {
    display: block;
  }

  .navigation {
    padding: 1rem;
    position: absolute;
    top: -700px;
   left: 0;
    background: var(--bg);
    flex-direction: column;
    width: 100%;
    transition: top .2s ease-in-out;
  }

  .navigation.active {
    top: 100%;
  }

  .navigation a {
    display: block;
    margin: 1rem 0;
  }

  .home-content {
    text-align: center;
  }
}