@import url('global.css');
body {
  background-color:rgba(247, 241, 227,1.0)
}

.container {
  width: 95%;
  margin: 20px auto;
}

.container .content {
  width: 100%;
  border-radius: 8px;
}
.product-page {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: start;
}

.images {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
}

.img1 {
  background-image: url("../img/among1.png");
  width: 100%;
  max-width: 350px;
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 30px;
}

.img2 {
  background-image: url("../img/among2.png");
  width: 100%;
  max-width: 350px;
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 30px;
}

.img3 {
  background-image: url("../img/among3.png");
  width: 100%;
  max-width: 350px;
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 30px;
}

.img4 {
  background-image: url("../img/among4.png");
  width: 100%;
  max-width: 350px;
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 30px;
}

.description {
  width: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", Arial, sans-serif;
}

.description h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2em;
}

.description p {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: justify;
}

.benefice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}

.benef1,
.benef2,
.benef3 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 400px;
  height: 50px;
  gap: 15px;
}

.benef1 .icon1 {
  background: url(../img/etoile.png);
  background-size: cover;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.benef1 p,
.benef2 p,
.benef3 p {
  margin: 0;
  font-size: 1em;
  font-weight: 500;
  text-align: left;
}

.benef2 .icon2 {
  background: url(../img/coeur.png);
  background-size: cover;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.benef3 .icon3 {
  background: url(../img/livraison.png);
  background-size: cover;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

/* Bouton Ajouter au panier avec gradient animé et effet scale */
.btn-panier {
    display: block;
    padding: 18px 30px;
    background: linear-gradient(90deg, #330ce4 50%, #4caf50 50%);
    background-size: 200% 100%;
    background-position: right;
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin: 25px 0;
    transition: background-position 0.5s ease, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(51,12,228,0.12);
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.btn-panier:hover {
    background-position: left;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(76,175,80,0.25);
}

.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 15px;
}


.badge1 {
  background: url(../img/mc.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 60px;
  height: 30px;
  margin: 0 5px;
}

.badge2 {
  background: url(../img/visa.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 60px;
  height: 30px;
  margin: 0 5px;
}

.badge3 {
  background: url(../img/paypal.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 60px;
  height: 30px;
  margin: 0 5px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Grands écrans (1200px et plus) */
@media (min-width: 1200px) {
  .container {
    width: 98%;
    max-width: 1400px;
  }
}

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
  .container {
    width: 90%;
    margin: 15px auto;
  }
  
  .product-page {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .images {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
  }
  
  .img1, .img2, .img3, .img4, .gallery-image {
    width: 250px;
    height: 250px;
    border-radius: 20px;
  }
  
  .description {
    max-width: 100%;
    margin: 20px auto 0;
  }
  
  .description h1 {
    font-size: 1.6em;
  }
  
  .description p {
    font-size: 1em;
  }
  
  .benefice {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
  }
  
  .benef1, .benef2, .benef3 {
    margin: 0;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 300px;
    text-align: left;
    flex-direction: row;
    gap: 12px;
    padding: 15px 10px;
  }
  
  .btn-panier {
    padding: 14px 24px;
    font-size: 1em;
    margin: 15px auto;
    display: block;
    width: fit-content;
  }
  
  .badges {
    margin-top: 15px;
    gap: 10px;
  }
}

/* Mobiles (480px et moins) */
@media (max-width: 480px) {
  .container {
    width: 95%;
    margin: 10px auto;
  }
  
  .images {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }
  
  .img1, .img2, .img3, .img4, .gallery-image {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    margin: 0 auto;
  }
  
  .description {
    margin: 15px auto 0;
    padding: 0 10px;
  }
  
  .description h1 {
    font-size: 1.2em;
    margin-bottom: 15px;
  }
  
  .description p {
    font-size: 0.9em;
    line-height: 1.4;
  }
  
  .benefice {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  
  .benef1, .benef2, .benef3 {
    margin: 0;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 280px;
    text-align: left;
    flex-direction: row;
    gap: 10px;
    padding: 12px 8px;
  }
  
  .benef1 p, .benef2 p, .benef3 p {
    font-size: 0.9em;
    margin: 0;
    text-align: left;
  }
  
  .btn-panier {
    padding: 12px 20px;
    font-size: 0.95em;
    margin: 20px auto;
    width: 80%;
    max-width: 250px;
  }
  
  .badges {
    margin-top: 15px;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .badge1, .badge2, .badge3 {
    width: 50px;
    height: 25px;
  }
}

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
  .container {
    width: 90%;
    margin: 5px auto;
  }
  
  .img1, .img2, .img3, .img4, .gallery-image {
    width: 150px;
    height: 150px;
    border-radius: 12px;
  }
  
  .description {
    padding: 0 5px;
  }
  
  .description h1 {
    font-size: 1.1em;
    margin-bottom: 12px;
  }
  
  .description p {
    font-size: 0.8em;
    line-height: 1.3;
  }
  
  .benefice {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0 10px;
  }
  
  .benef1, .benef2, .benef3 {
    margin: 0;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 250px;
    text-align: left;
    flex-direction: row;
    gap: 8px;
    padding: 10px 5px;
  }
  
  .benef1 .icon1, .benef2 .icon2, .benef3 .icon3 {
    width: 25px;
    height: 25px;
  }
  
  .benef1 p, .benef2 p, .benef3 p {
    font-size: 0.8em;
    margin: 0;
    text-align: left;
  }
  
  .btn-panier {
    padding: 10px 16px;
    font-size: 0.9em;
    width: 90%;
    max-width: 200px;
  }
  
  .badge1, .badge2, .badge3 {
    width: 40px;
    height: 20px;
  }
}
