/* ========================= */
/* produit.css - style pour toutes les pages produits */
/* ========================= */

/* Background identique aux autres pages */
body {
  background: linear-gradient(
    135deg,
    var(--pink-light) 0%,
    var(--white) 25%,
    var(--pink-medium) 50%,
    var(--beige) 75%,
    var(--pink-light) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* Container principal */
.container.my-5 {
  margin-top: 5rem !important;
  margin-bottom: 5rem !important;
}

/* Produit section - layout côte à côte sur desktop */
.row.g-4.align-items-center {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
}

/* Image produit - colonne gauche */
.col-md-6 {
  flex: 0 0 48%;
  max-width: 48%;
}

.col-md-6 img {
  border-radius: 20px;
  object-fit: cover;
  width: 100%;
  max-height: 500px;
  box-shadow: 0 8px 20px rgba(251, 111, 146, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.col-md-6 img:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(251, 111, 146, 0.4);
}

/* Titre produit */
h1 {
  font-family: "Lobster Two", cursive;
  font-size: 2.5rem;
  color: var(--pink-accent);
  margin-bottom: 1.5rem;
}

/* Description produit */
.lead {
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  color: #5b3f36;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Prix produit */
.text-pink {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  color: var(--pink-accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}

/* Bouton Ajouter au panier */
.btn-order {
  background: #f5e6d3 !important;
  color: var(--brown) !important;
  border: 2px solid var(--brown) !important;
  padding: 1rem 2.5rem;
  border-radius: 25px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-order:hover {
  background: var(--brown) !important;
  color: var(--white) !important;
  border-color: var(--brown) !important;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  /* Empêcher le scroll horizontal */
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Container responsive */
  .container,
  .container.my-5 {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  /* Empiler image et infos verticalement */
  .row.g-4.align-items-center {
    flex-direction: column;
    gap: 1.5rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Colonnes pleine largeur sur mobile */
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Ajuster image */
  .col-md-6 img {
    max-height: 400px;
  }

  /* Titre plus petit et centré */
  h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  /* Description centrée */
  .lead {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  /* Prix centré */
  .text-pink {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  /* Bouton centré et pleine largeur */
  .btn-order {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: block;
    font-size: 1rem;
    padding: 0.8rem 2rem;
  }

  /* Formulaire centré */
  form.mt-4 {
    text-align: center;
  }
}
