/* ===========================
   FONTS
=========================== */
@font-face {
  font-family: "MarcellusSC";
  src: url('font/MarcellusSC-Regular.ttf');
  font-display: swap;
}

@font-face {
  font-family: "CormorantGaramond";
  src: url('font/CormorantGaramond-Medium.ttf');
  font-display: swap;
}

@font-face {
  font-family: "CormorantGaramondBold";
  src: url('font/CormorantGaramond-Bold.ttf');
  font-display: swap;
}

/* ===========================
   GLOBAL STYLES
=========================== */
body {
  background: black;
  margin: auto;
  padding: auto;
  text-align: center;
  background-repeat: repeat;
  background-size: cover;
  width: 100%;
  font-family: "CormorantGaramond", serif;
  color: #65FF00;
  font-size: 1em;
  line-height: 1.5;
}

.video {
  border-radius: 20px;
  max-width: 40%;
}

/* ===========================
   POPUP PROMO
=========================== */
.popup-offer {
  display: none;
  position: relative;
  width: 100%;
  background: linear-gradient(90deg, #110502 0%, #1a0a0f 100%);
  border-bottom: 2px solid #FF7F50;
  color: #65FF00;
  font-family: "MarcellusSC", serif;
  text-align: center;
  padding: 0.4rem 0.8rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  font-size: 0.9em;
}

.popup-offer .popup-text {
  font-size: 1.1em;
  margin-right: 1rem;
}

.popup-offer .cta-button.small {
  font-size: 0.8em;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  background-image: linear-gradient(62deg, #32CD32 0%, #00FF00 100%);
  color: black;
  text-decoration: none;
}

#close-popup {
  cursor: pointer;
  color: #FF7F50;
  margin-left: 1rem;
}

/* ===========================
   COOKIE BOX
=========================== */
.cookie-box {
  margin-left: auto;
  margin-right: auto;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, #110502 0%, #1a0a0f 100%);
  transition: all 0.75s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 1;
  visibility: visible;
  border-top: 2px solid #FF7F50;
  font-size: 0.9em;
  font-family: "MarcellusSC", serif;
}

.cookie-box--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cookie-button {
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  margin-left: 0.5rem;
  color: black;
  font-size: 0.9em;
  letter-spacing: 1px;
  background-image: linear-gradient(62deg, #32CD32 0%, #00FF00 100%);
  border-radius: 5px;
}

/* ===========================
   TITRES ET TEXTES
=========================== */
h1, h2, h3, h4, strong {
  font-family: "MarcellusSC", serif;
  color: gold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  margin: 15px auto 5px;
  font-size: 1.7em;
}

h2 {
  font-size: 1.3em;
  margin: 0.5em auto;
}

h3, h4 {
  font-size: 1.1em;
}

strong {
  color: #FF7F50;
}

p {
  font-family: "CormorantGaramond", serif;
  font-size: 1.4em;
  color: #65FF00;
  text-align: center;
  line-height: 1.5;
}

p a {
  font-family: "CormorantGaramondBold", serif;
  color: #FF7F50;
  text-decoration: none;
  font-size: 1.3em;
  padding: 0.2rem;
}

p a:hover {
  color: black;
  background-color: #1df1ad;
  border-radius: 6px;
}

/* ===========================
   PRODUITS & PRIX
=========================== */
.product-card h3 {
  font-family: "MarcellusSC", serif;
  color: gold;
  margin: 0.4rem 0;
}

.product-card_price {
  font-family: "CormorantGaramondBold", serif;
  font-size: 2.2em;
  color: #FF944D;
  margin-bottom: 0.6rem;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 128, 0, 0.5);
}

.featured-product .product-name {
  font-family: "MarcellusSC", serif;
  color: gold;
  font-size: 1em;
  margin: 0.4rem 0;
}

.featured-product .product-price {
  font-family: "CormorantGaramondBold", serif;
  color: #FF944D;
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 8px rgba(255, 128, 0, 0.5);
}

/* ===========================
   CTA BUTTON
=========================== */
.cta-button {
  display: inline-block;
  margin: 1rem 0;
  padding: 0.6rem 1.2rem;
  background-image: linear-gradient(62deg, #32CD32 0%, #00FF00 100%);
  color: black;
  font-family: "MarcellusSC", serif;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  color: #fff;
  background-image: linear-gradient(62deg, #FF7F50 0%, #FF4500 100%);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ===========================
   DÉCORATIONS RÉCENTES
=========================== */
.latest-products {
  margin: 2em auto;
  padding: 1em;
  text-align: center;
  color: #65FF00;
}

.latest-products h2 {
  color: gold;
  font-family: "MarcellusSC", serif;
  margin-bottom: 1em;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.product-card {
  flex: 0 1 calc(25% - 20px);
  max-width: 250px;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  object-fit: contain;
  background-color: #110502;
}

/* ===========================
   PRODUIT VEDETTE
=========================== */
.featured-products-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.featured-product {
  width: 320px;
}

.featured-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.featured-product img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  object-fit: contain;
  background-color: #110502;
}

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials {
  margin: 2em 0;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.testimonial-card {
  background-color: #1a0a0f;
  border-radius: 12px;
  padding: 1rem;
  max-width: 280px;
  text-align: center;
  color: #65FF00;
  font-family: "CormorantGaramond", serif;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.testimonial-name {
  font-family: "MarcellusSC", serif;
  font-weight: bold;
  color: gold;
  margin-bottom: 0.3em;
}

.testimonial-rating {
  color: #FF7F50;
  margin-bottom: 0.5em;
}

.testimonial-comment {
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

.testimonial-date {
  font-size: 0.9em;
  color: #AAAAAA;
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 960px) {
  h1 { font-size: 1.4em; }
  h2 { font-size: 1.1em; }
  h3, h4 { font-size: 0.8em; }
  p { font-size: 1.1em; }
  .product-card_price,
  .featured-product .product-price { font-size: 1.8em; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.2em; }
  h2 { font-size: 0.9em; }
  p { font-size: 1em; }
  .product-card_price,
  .featured-product .product-price { font-size: 1.4em; }
  .featured-product{
    width: 175px;
  }

  .popup-offer {
    width: 100vw;  /* Prendre 100% de la largeur de la fenêtre */
    font-size: 0.8em;
  }

  .product-grid {
    justify-content: center;
    gap: 15px; /* espace entre les produits */
  }

  .product-card {
    flex: 0 1 calc(50% - 15px); /* 2 produits par ligne */
    max-width: none; /* permet de respecter la largeur du flex */
    margin-bottom: 15px;
  }

  .cookie-box {
    font-size: 0.8em; /* Réduire la taille de la police de la barre de cookies */
  }

  .imgnew{
  width: 145px;
  height: 145px;
  
}

  /* Testimonials 2 per row */
 .testimonial-grid {
    display: flex;
    flex-direction: column; /* 1 avis par ligne */
    gap: 10px;
    align-items: center;
  }

  .testimonial-card {
    width: 100%; /* prend toute la largeur disponible */
    max-width: 95%;
    margin-bottom: 10px;
  }

  /* Masquer tous les avis après le 2ème */
  .testimonial-card:nth-child(n+3) {
    display: none;
  }
}
