/* ---- Fond global ---- */
body {
    background-color: #f5f0e6; /* parchemin doux */
    margin: 0;
    padding: 0;
    font-family: 'Cormorant Garamond', serif; /* texte principal lisible */
}

/* ---- Header / Bandeau ---- */
header {
    background-color: #e6d8b0; /* bandeau parchemin clair */
    color: #3a2a1b;
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-family: 'Cinzel Decorative', serif; /* titre magique */
    font-size: 2.5rem;
}

header nav {
    margin-top: 0.5rem;
}

header nav a {
    color: #3a2a1b;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
}

header nav a:hover {
    text-decoration: underline;
}

/* ---- Panier ---- */
#panier {
    margin-top: 1rem;
    font-size: 0.9rem;
}

#panier button {
    margin-left: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: #d4af37;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#panier button:hover {
    background: #b68b2e;
}

/* ---- Main ---- */
main {
    padding: 2rem;
}

/* ---- Grille pour les catégories ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* ---- Cartes catégories ---- */
.category-card {
  background: #fff8f0;
  border: 2px solid #d4af37;
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.category-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
}

.category-card h2 {
  font-family: 'Cinzel Decorative', serif;
  color: #3a2a1b;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-family: 'Cormorant Garamond', serif;
  color: #5c3a21;
  font-size: 0.9rem;
}

/* ---- Boutons ---- */
.category-card .btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #d4af37;
  color: #3a2a1b;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
}

.category-card .btn:hover {
  background: #b68b2e;
}

/* ========================= */
/* 🎨 STYLES POUR LES PAGES PRODUITS */
/* ========================= */
.product-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.product-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.product-container img {
  max-width: 400px;
  width: 100%;
  border: 3px solid gold;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.product-info {
  max-width: 500px;
}

.product-info h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.magical-phrase {
  font-style: italic;
  color: goldenrod;
  margin-bottom: 1rem;
}

.description {
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #5c3a21;
  margin-bottom: 1rem;
}

.add-to-cart {
  background-color: #5c3a21;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.add-to-cart:hover {
  background-color: #7b5230;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: #5c3a21;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---- Sections alternées texte + image ---- */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.flex-row.reverse {
  flex-direction: row-reverse;
}

.flex-row .texte {
  flex: 1 1 300px;
}

.flex-row .image {
  flex: 1 1 300px;
}

.flex-row img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ---- Produits phares en grille ---- */
.produits-container.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.produit {
  background: #fff8f0;
  border: 2px solid #d4af37;
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.produit:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.produit img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.produit h3 {
  font-family: 'Cinzel Decorative', serif;
  color: #3a2a1b;
  margin-bottom: 0.5rem;
}

.produit p {
  font-family: 'Cormorant Garamond', serif;
  color: #5c3a21;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.produit .btn {
  background: #d4af37;
  color: #3a2a1b;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  display: inline-block;
}

.produit .btn:hover {
  background: #b68b2e;
}

/* ---- Avis clients carrousel simple ---- */
.avis-container {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0;
}

.avis-item {
  flex: 0 0 300px;
  background-color: #fff8f0;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.avis-item p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #5c3a21;
  margin-bottom: 0.5rem;
}

.avis-item span {
  font-weight: bold;
  color: #3a2a1b;
}

/* Scrollbar styling */
.avis-container::-webkit-scrollbar {
  height: 8px;
}

.avis-container::-webkit-scrollbar-thumb {
  background-color: #d4af37;
  border-radius: 4px;
}

.avis-container::-webkit-scrollbar-track {
  background: #f5f0e6;
}

/* ---- Réseaux sociaux ---- */
.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 1rem;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* ---- Responsive ---- */
@media(max-width: 768px){
  .flex-row {
    flex-direction: column !important;
  }

  .produits-container.grid-3 {
    grid-template-columns: 1fr;
  }

  .avis-item {
    flex: 0 0 80%;
  }
}

/* === Section Réseaux sociaux stylisée === */
.reseaux {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f7f3; /* fond doux pour la section */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 40px auto;
}

.reseaux h2 {
  font-family: 'Cursive', sans-serif;
  font-size: 28px;
  color: #5C3A21; /* brun magique */
  margin-bottom: 10px;
}

.reseaux p {
  font-size: 16px;
  color: #333;
  margin-bottom: 25px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-icon {
  font-size: 28px;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Fond couleur selon réseau */
.social-icon.youtube { background-color: #FF0000; }
.social-icon.instagram { 
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-icon.facebook { background-color: #1877F2; }

/* Hover effet magique */
.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
