/* ===============================
   GOOGLE FONTS
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto+Slab:wght@400;500;700&display=swap');

/* ===============================
   RESET / BASE
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light theme - Doré/Blanc */
  --bg-color: #fefefe;
  --text-color: #2c2c2c;
  --card-bg: #ffffff;
  --border-color: #f0f0f0;
  --shadow: rgba(242, 184, 7, 0.15);
  --shadow-hover: rgba(242, 184, 7, 0.25);
  --primary-color: rgb(184, 148, 31);
  --primary-hover: #d4a006;
  --primary-light: #fdf4d7;
  --secondary-bg: #faf8f3;
  --input-bg: #ffffff;
  --accent-gold: rgb(184, 148, 31);
  --text-muted: #666666;
}

[data-theme="dark"] {
  /* Dark theme - Doré/Noir adouci */
  --bg-color: #1a1a1a;
  --text-color: #d4d4d4;
  --card-bg: #242424;
  --border-color: #3a3a3a;
  --shadow: rgba(200, 150, 50, 0.15);
  --shadow-hover: rgba(200, 150, 50, 0.25);
  --primary-color: rgb(184, 148, 31);
  --primary-hover: #d4a006;
  --primary-light: #2d2520;
  --secondary-bg: #202020;
  --input-bg: #242424;
  --accent-gold: rgb(184, 148, 31);
  --text-muted: #999999;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===============================
   HEADER & NAV
=============================== */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
  color: #ffffff;
  padding: 15px 20px;
  position: relative;
  box-shadow: 0 4px 20px var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

header h1 {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 0;
}

/* Menu burger */
.burger-menu {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: all 0.3s ease;
  z-index: 1002;
}

.burger-menu:hover {
  background-color: rgba(255,255,255,0.1);
}

nav {
  margin-top: 15px;
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #ffffff;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: clamp(0.85rem, 2vw, 1rem);
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

nav ul li a:hover,
nav ul li a.active {
  background-color: rgba(255,255,255,0.2);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* Bouton panier dans la nav */
#cart-btn {
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid #ffffff;
  padding: 8px 15px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 15px;
}

#cart-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: #ffffff;
}

/* Bouton toggle thème */
#theme-toggle {
  background-color: rgba(255,255,255,0.2);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 8px 12px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

#theme-toggle:hover {
  background-color: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
}

/* ===============================
   HERO / BANDEAU
=============================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  background-color: rgba(255,255,255,0.15);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ===============================
   MAIN CONTENT
=============================== */
main {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

main h2 {
  text-align: center;
  font-family: 'Roboto Slab', serif;
  color: var(--primary-color);
  margin: 20px 0 30px 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ===============================
   SECTION PRODUITS
=============================== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 0 10px;
}

.product {
  background-color: var(--card-bg);
  border-radius: 15px;
  /* Allow content to extend so action buttons are not clipped */
  overflow: visible;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  /* Increase min-height to ensure buttons stay visible */
  min-height: 560px;
  height: auto;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px var(--shadow-hover);
  border-color: var(--primary-color);
}

/* Effet de retournement de carte */
.product-inner {
  position: relative;
  width: 100%;
  /* Laisser la hauteur s'adapter au contenu */
  min-height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.product.flipped .product-inner {
  transform: rotateY(180deg);
}

.product-front, .product-back {
  width: 100%;
  /* Utiliser min-height au lieu de height fixe */
  min-height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  /* Permettre le débordement pour éviter de couper les boutons */
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.product-front {
  position: relative;
}

.product-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
  background-color: var(--card-bg);
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.product-back .full-description {
  color: var(--text-color);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1rem;
}

.product-back .back-to-front {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-back .back-to-front:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product img:hover {
  transform: scale(1.05);
}

.product .content {
  padding: 20px 20px 25px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
}

.product .description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 15px;
  min-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  cursor: pointer;
  transition: color 0.3s ease;
  flex-grow: 1;
}

.product .description:hover {
  color: var(--primary-color);
}

.product .description.expandable::after {
  content: " ... (cliquer pour voir plus)";
  color: var(--primary-color);
  font-weight: 600;
}

.product .price {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.product .product-info {
  flex-grow: 1;
}

.product .product-actions {
  margin-top: auto;
  padding-top: 10px;
  flex-shrink: 0;
}

.product .quantity-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.product label {
  font-weight: 500;
  color: var(--text-color);
}

.product input[type="number"] {
  width: 70px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  background-color: var(--input-bg);
  color: var(--text-color);
  transition: border-color 0.3s ease;
}

.product input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(200, 150, 50, 0.2);
}

.product button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  margin-top: 10px;
  flex-shrink: 0;
}

.product button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.product button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.product .sold-out {
  color: #ff6b6b;
  font-weight: bold;
  text-align: center;
  padding: 12px;
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 107, 0.2);
}

[data-theme="dark"] .product .sold-out {
  color: #ff8a80;
  background-color: rgba(255, 138, 128, 0.08);
  border-color: rgba(255, 138, 128, 0.15);
}

.product .reserve-btn {
  width: 100%;
  padding: 12px;
  background-color: #e67e22;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  margin-top: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product .reserve-btn:hover {
  background-color: #d35400;
  transform: translateY(-2px);
}

/* ===============================
   CONTACT BUTTONS FIXES
=============================== */
#contact-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

#contact-buttons a {
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  color: #fff;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

#contact-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#email-contact { 
  background: linear-gradient(135deg, #1e88e5, #1565c0);
}

#whatsapp-contact { 
  background: linear-gradient(135deg, #25D366, #20b358);
}

/* ===============================
   BOUTONS
=============================== */
button, .btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

button:hover, .btn:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px var(--shadow);
}

/* ===============================
   FOOTER
=============================== */
footer {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #ffffff;
  text-align: center;
  padding: 25px 10px;
  margin-top: auto;
  flex-shrink: 0;
}

footer p {
  font-size: 0.9rem;
  margin: 0;
}

/* ===============================
   FORMULAIRES
=============================== */
form {
  max-width: 600px;
  margin: 0 auto 40px auto;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 8px var(--shadow);
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background-color: var(--input-bg);
  color: var(--text-color);
  transition: border-color 0.3s ease;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(200, 150, 50, 0.2);
}

form button {
  display: block;
  width: 100%;
  background-color: var(--primary-color);
  color: #ffffff;
}

form button:hover {
  background-color: var(--primary-hover);
}

/* ===============================
   SECTIONS SPÉCIALES
=============================== */
.verse {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  margin: 20px 0;
  border-radius: 15px;
}

.verse h2 {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 15px;
  font-style: italic;
}

.verse p {
  font-weight: 600;
  font-size: 1.1rem;
}

.about {
  padding: 40px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-family: 'Roboto Slab', serif;
}

.commande-btn-container {
  text-align: center;
  margin: 40px 0;
}

.btn-commande {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-commande:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

/* ===============================
   PANIER - LAYOUT AMÉLIORÉ
=============================== */

/* Page wrapper pour sticky footer */
.cart-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
  flex: 1;
}

.cart-container h2 {
  text-align: center;
  color: var(--primary-color);
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
  margin-bottom: 30px;
}

.cart-items-container {
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background-color: var(--card-bg);
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 6px 20px var(--shadow-hover);
  transform: translateY(-2px);
}

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--primary-color);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 600;
}

.cart-item-info p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  background-color: var(--secondary-bg);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.cart-item-controls button {
  width: 40px;
  height: 40px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-controls button:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

.cart-item-controls button.remove-btn {
  background-color: #e74c3c;
}

.cart-item-controls button.remove-btn:hover {
  background-color: #c0392b;
}

[data-theme="dark"] .cart-item-controls button.remove-btn {
  background-color: #ff6b6b;
}

[data-theme="dark"] .cart-item-controls button.remove-btn:hover {
  background-color: #ff5252;
}

.cart-item-controls .quantity {
  font-weight: 600;
  color: var(--text-color);
  min-width: 40px;
  text-align: center;
  font-size: 1.1rem;
  background-color: var(--card-bg);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.cart-item-controls .quantity-input {
  font-weight: 600;
  color: var(--text-color);
  width: 60px;
  text-align: center;
  font-size: 1.1rem;
  background-color: var(--card-bg);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  font-family: inherit;
}

.cart-item-controls .quantity-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(184, 148, 31, 0.2);
}

.cart-item-controls .quantity-input:hover {
  border-color: var(--primary-color);
}

/* Supprimer les flèches des inputs number sur Chrome/Safari */
.cart-item-controls .quantity-input::-webkit-outer-spin-button,
.cart-item-controls .quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Supprimer les flèches des inputs number sur Firefox */
.cart-item-controls .quantity-input[type=number] {
  -moz-appearance: textfield;
}

/* Styles pour les boutons avec icônes Unicode */
.cart-item-controls .minus-btn {
  background-color: #e67e22;
}

.cart-item-controls .minus-btn:hover {
  background-color: #d35400;
}

.cart-item-controls .plus-btn {
  background-color: #27ae60;
}

.cart-item-controls .plus-btn:hover {
  background-color: #229954;
}

.cart-item-controls .remove-btn {
  background-color: #e74c3c;
  margin-left: 10px;
}

.cart-item-controls .remove-btn:hover {
  background-color: #c0392b;
}

/* Styles spécifiques pour les boutons + et - */
.cart-item-controls .qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  font-weight: bold;
}

.cart-item-controls .qty-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

/* Styles pour les icônes des boutons */
.btn-icon {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1;
  display: inline-block;
  font-family: Arial, sans-serif;
}

.minus-btn .btn-icon {
  font-size: 1.8rem;
  margin-top: -2px;
}

.plus-btn .btn-icon {
  font-size: 1.4rem;
}

.remove-btn .btn-icon {
  font-size: 1.6rem;
}

.cart-item-controls .minus-btn {
  background-color: #e67e22;
}

.cart-item-controls .minus-btn:hover {
  background-color: #d35400;
}

.cart-item-controls .plus-btn {
  background-color: #27ae60;
}

.cart-item-controls .plus-btn:hover {
  background-color: #229954;
}

.cart-item-controls .remove-btn {
  background-color: #e74c3c;
  margin-left: 10px;
}

.cart-item-controls .remove-btn:hover {
  background-color: #c0392b;
}



.cart-total {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 30px 0;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-bg));
  border-radius: 15px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px var(--shadow);
}

.cart-actions {
  text-align: center;
  margin: 30px 0;
}

.cart-actions .btn-commande {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.cart-actions .btn-commande:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.cart-info {
  text-align: center;
  margin-top: 20px;
}

.cart-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===============================
   RETOURS CLIENTS
=============================== */
.feedback-section {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 6px 25px var(--shadow);
  margin-bottom: 50px;
  border: 1px solid var(--border-color);
}

.feedback-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-family: 'Roboto Slab', serif;
}

.feedback-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 5px;
  margin: 10px 0;
}

.rating-input input {
  display: none;
}

.rating-input label {
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0 !important;
}

.rating-input label:hover,
.rating-input input:checked ~ label {
  color: var(--primary-color);
  transform: scale(1.2);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.reviews-display h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-family: 'Roboto Slab', serif;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.review-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  position: relative;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.reviewer-info {
  flex: 1;
}

.reviewer-info h4 {
  color: var(--text-color);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.stars {
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.review-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.delete-review {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff6b6b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  opacity: 0;
}

.review-card:hover .delete-review {
  opacity: 1;
}

.delete-review:hover {
  background-color: #ff5252;
  transform: scale(1.1);
}

.review-text {
  color: var(--text-color);
  line-height: 1.6;
  font-style: italic;
  padding: 15px;
  background-color: var(--secondary-bg);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

.no-reviews {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

.empty-state {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
  max-width: 400px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-color);
  margin-bottom: 10px;
  font-family: 'Roboto Slab', serif;
}

.empty-state p {
  color: var(--text-muted);
}

/* ===============================
   AVIS CLIENTS (PAGE ACCUEIL)
=============================== */
.customer-reviews {
  padding: 60px 20px;
  background-color: var(--secondary-bg);
  margin: 40px 0;
}

.customer-reviews h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 50px;
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.customer-reviews .review-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 6px 20px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.customer-reviews .review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow-hover);
}

.customer-reviews .review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.reviewer-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.customer-reviews .reviewer-info h4 {
  color: var(--text-color);
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.customer-reviews .stars {
  font-size: 1.3rem;
  color: var(--primary-color);
}

.customer-reviews .review-text {
  color: var(--text-color);
  line-height: 1.7;
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.customer-reviews .review-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  font-family: serif;
}

/* ===============================
   RESPONSIVE
=============================== */
@media screen and (max-width: 768px) {
  header {
    padding: 15px 10px;
  }
  
  .header-container {
    position: relative;
    /* Ne pas utiliser flex-direction: column pour garder le burger à droite */
  }
  
  .burger-menu {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1001;
  }
  
  .nav-menu {
    display: none;
    width: 100%;
    margin-top: 15px;
    position: relative;
    z-index: 1000;
  }
  
  .nav-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  nav ul {
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-top: 10px;
  }
  
  nav ul li {
    width: 100%;
  }
  
  nav ul li a {
    display: block;
    text-align: center;
    padding: 12px 15px;
    font-size: 0.9rem;
    width: 100%;
  }
  
  #cart-btn, #theme-toggle {
    width: 100%;
    margin: 5px 0;
    padding: 12px 15px;
  }
  
  .products {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 5px;
  }
  
  .product {
    min-height: 480px; /* Hauteur minimale pour éviter la compression */
  }
  
  main {
    padding: 15px;
  }
  
  #contact-buttons {
    bottom: 15px;
    right: 15px;
  }
  
  #contact-buttons a {
    padding: 10px 15px;
    font-size: 0.8rem;
  }
  
  /* Retours clients responsive */
  .feedback-section {
    padding: 25px 20px;
    margin-bottom: 30px;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .rating-input {
    justify-content: flex-start;
  }
  
  .rating-input label {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .products {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
  
  .product {
    /* Slightly taller on mobile to avoid clipping */
    min-height: 540px; /* Maintenir une hauteur suffisante */
    max-width: 100%;
  }
  
  .product .content {
    padding: 20px;
  }
  
  .product .description {
    min-height: 60px;
    -webkit-line-clamp: 3;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .product h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .product .price {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .product .quantity-section {
    margin-bottom: 12px;
  }
  
  .product input[type="number"] {
    width: 60px;
    padding: 6px;
  }
  
  .product button {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .burger-menu {
    font-size: 1.8rem;
  }
  
  nav ul {
    padding: 15px;
  }
  
  .cart-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px;
  }
  
  .cart-item img {
    width: 80px;
    height: 80px;
  }
  
  .cart-item-controls {
    justify-content: center;
    gap: 12px;
    padding: 12px;
  }
  
  .cart-item-controls button {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .cart-item-controls .quantity {
    min-width: 35px;
    padding: 6px 10px;
    font-size: 1rem;
  }
  
  .cart-item-controls .quantity-input {
    width: 50px;
    padding: 6px 8px;
    font-size: 1rem;
  }
  
  .cart-total {
    font-size: 1.6rem;
    padding: 20px;
  }
  
  .cart-actions .btn-commande {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  #contact-buttons {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    right: auto;
  }
  
  /* Retours clients mobile */
  .feedback-section {
    padding: 20px 15px;
  }
  
  .review-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .reviewer-info {
    text-align: center;
  }
  
  .delete-review {
    position: static;
    opacity: 1;
    margin-top: 10px;
  }
}

/* Règles spécifiques pour très petits écrans */
@media screen and (max-width: 360px) {
  .products {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 5px;
  }
  
  .product {
    min-height: 500px;
  }
  
  .product .content {
    padding: 15px;
  }
  
  .product h3 {
    font-size: 1rem;
  }
  
  .product .price {
    font-size: 1.1rem;
  }
  
  .product .description {
    font-size: 0.85rem;
    min-height: 50px;
    -webkit-line-clamp: 2;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  main h2 {
    font-size: 1.3rem;
  }
}
