@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ==========================================
   1. RÈGLES GÉNÉRALES, VARIABLES & RESET
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

:root {
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --text-color: #111111;
  --accent-color: #000000;
  --accent-text: #ffffff;
  --border-color: #e0e0e0;
  --gray-light: #f9f9f9;
  --gray-text: #666666;
  --input-bg: #ffffff;
  --success-color: #1b4332;
  --danger-color: #e63946;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.dark-theme,
.dark-theme {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --text-color: #f1f1f1;
  --accent-color: #ffffff;
  --accent-text: #000000;
  --border-color: #333333;
  --gray-light: #2c2c2c;
  --gray-text: #aaaaaa;
  --input-bg: #2a2a2a;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiasing;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   2. MARQUEE BANNER
   ========================================== */
.marquee-banner {
  background-color: #000000;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.marquee-content {
  display: inline-block;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* ==========================================
   3. NAVIGATION / HEADER
   ========================================== */
.header,
.navbar {
  position: sticky;
  top: 0;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  padding: 15px 20px;
}

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

.logo,
.brand-logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  background: transparent; /* Empêche tout fond d'interférer avec un logo PNG transparent */
}

.logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply; /* Optionnel : fusionne les résidus blancs sur fond clair */
}

body.dark-theme .logo-img {
  mix-blend-mode: normal; /* Restaure l'affichage standard en mode sombre */
}

.back-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  width: fit-content;
}

body.dark-theme .back-link {
  background-color: rgba(255, 255, 255, 0.1);
}

.back-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

body.dark-theme .back-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-color);
  position: relative;
}

.theme-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 500;
}

.cart-btn {
  background: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-family);
}

.cart-btn .badge,
#cart-badge {
  background: var(--danger-color);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 4px;
}

/* BOUTON BURGER */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 2px;
}

/* ==========================================
   4. OVERLAY & DRAWERS (MENU & PANIER)
   ========================================== */
.overlay,
.menu-overlay,
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 1000;
}

.overlay.active,
.menu-overlay.active,
.cart-overlay.active {
  opacity: 1;
  visibility: visible;
  display: block;
}

.drawer,
.menu-drawer,
.cart-drawer {
  position: fixed;
  top: 0;
  height: 100%;
  background: var(--card-bg);
  color: var(--text-color);
  z-index: 1200;
  transition: transform 0.3s ease, left 0.3s ease, right 0.3s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Menu Latéral */
#menu-drawer,
.menu-drawer {
  left: 0;
  width: 300px;
  transform: translateX(-100%);
}

#menu-drawer.open,
.menu-drawer.open {
  transform: translateX(0);
}

.drawer-header,
.menu-header,
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.menu-links {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.menu-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Panier Drawer */
.cart-drawer {
  right: 0;
  width: 380px;
  transform: translateX(100%);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-items,
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  margin: 20px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.cart-item-img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
  flex-shrink: 0;
  background-color: var(--gray-light);
  border: 1px solid var(--border-color);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-color);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-family);
}

.delete-btn {
  background: none;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
}

.cart-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.promo-section,
.promo-box {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.promo-section input,
.promo-input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-color);
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-family);
}

.promo-section button,
.promo-btn {
  padding: 8px 14px;
  background: var(--accent-color);
  color: var(--accent-text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-family);
}

.promo-message {
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.promo-message.success { color: var(--success-color); }
.promo-message.error { color: var(--danger-color); }

.total-row,
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* ==========================================
   5. HERO SECTION
   ========================================== */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 400px;
  background: url('images/hero-banner.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
  padding: 2rem 1rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.cta-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: #ffffff;
  color: #000000;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

/* ==========================================
   6. CONTRÔLES, CATALOGUE & GRILLE PRODUITS
   ========================================== */
.main-container,
.catalog-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.controls-section,
.filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.search-bar input,
.sort-bar select,
.sort-dropdown,
.search-bar {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  color: var(--text-color);
  border-radius: 6px;
  font-family: var(--font-family);
}

.search-bar {
  border-radius: 20px;
}

.filter-buttons,
.categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  cursor: pointer;
  border-radius: 20px;
  font-weight: 600;
  font-family: var(--font-family);
  transition: background-color 0.2s, color 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-color);
  color: var(--accent-text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.img-wrapper {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  background-color: var(--gray-light);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  padding: 16px;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================
   7. PAGE PRODUIT DÉTAILLÉE & ACCORDÉONS
   ========================================== */
.product-page-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image-container {
  width: 100%;
  background-color: var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.main-image-container img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.2s ease-out;
  transform-origin: center center;
}

.thumbnails-grid,
.thumbnails-flex {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  background-color: var(--gray-light);
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: var(--text-color);
}

/* VIGNETTES D'IMAGES DE COULEUR (SWATCHES) */
.color-swatches-flex {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid var(--border-color);
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  background-color: var(--gray-light);
}

.color-swatch:hover {
  opacity: 1;
  transform: scale(1.05);
}

.color-swatch.active {
  opacity: 1;
  border-color: var(--text-color);
  box-shadow: 0 0 0 1px var(--text-color);
}

.product-info-panel,
.product-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-info-panel .price {
  font-size: 1.5rem;
  font-weight: 700;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 1rem;
  font-family: var(--font-family);
}

.product-features {
  margin: 15px 0;
  padding-left: 20px;
  color: var(--gray-text);
  font-size: 0.95rem;
}

.product-features li {
  margin-bottom: 6px;
}

.accordion-section {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-color);
  text-align: left;
  font-family: var(--font-family);
}

.accordion-header span,
.accordion-header i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  opacity: 1;
  padding-bottom: 16px;
}

.accordion-content p {
  padding-bottom: 15px;
  margin: 0;
  line-height: 1.5;
  color: var(--gray-text);
}

/* ==========================================
   8. STYLE MODERNE BOUTONS VERT FONCÉ (PANIER & PAIEMENT)
   ========================================== */
.add-cart-large-btn,
.checkout-btn,
.submit-order-btn,
.add-to-cart-btn-green {
  width: 100%;
  padding: 15px 22px;
  background-color: #1b4332 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 6px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
}

body.dark-theme .add-cart-large-btn,
body.dark-theme .checkout-btn,
body.dark-theme .submit-order-btn,
body.dark-theme .add-to-cart-btn-green {
  background-color: #2d6a4f !important;
}

.add-cart-large-btn:hover,
.checkout-btn:hover,
.submit-order-btn:hover,
.add-to-cart-btn-green:hover {
  background-color: #081c15 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

body.dark-theme .add-cart-large-btn:hover,
body.dark-theme .checkout-btn:hover,
body.dark-theme .submit-order-btn:hover,
body.dark-theme .add-to-cart-btn-green:hover {
  background-color: #1b4332 !important;
}

.add-cart-large-btn:active,
.checkout-btn:active,
.submit-order-btn:active,
.add-to-cart-btn-green:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.submit-order-btn.btn-loading,
.submit-order-btn:disabled,
.add-cart-large-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.submit-order-btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes btn-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================
   9. NOTIFICATIONS & MODALES
   ========================================== */
.toast,
.toast-notification {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: var(--accent-text);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: bottom 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show,
.toast-notification.show {
  bottom: 30px;
  opacity: 1;
}

.modal,
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal.active,
.modal-overlay.active {
  display: flex !important;
}

.modal-content {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: inherit;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-bottom: 15px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-color);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-family);
}

.form-group input:focus {
  outline: none;
  border-color: var(--text-color);
}

#paypal-button-container {
  margin-top: 20px;
  min-height: 150px;
}

/* ==========================================
   10. FOOTER
   ========================================== */
.footer,
.site-footer {
  background-color: #0c0c0c;
  color: #ffffff;
  padding: 50px 20px 20px;
  border-top: 1px solid #222222;
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px 20px;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h3 {
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 900;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888888;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-col p {
  font-size: 0.9rem;
  color: #aaaaaa;
  line-height: 1.5;
  margin: 0;
}

.footer-col ul,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a,
.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-links a:hover {
  color: #ffffff;
}

.payment-box {
  margin-top: 15px;
}

.payment-title {
  display: block;
  font-size: 0.75rem;
  color: #777777;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.payment-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-item {
  background: #161616;
  border: 1px solid #2a2a2a;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #dddddd;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #1c1c1c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #666666;
  flex-wrap: wrap;
  gap: 10px;
}

.secure-tag {
  color: #888888;
}

.secure-tag i {
  margin-right: 4px;
}

/* ==========================================
   11. RESPONSIVE MOBILE
   ========================================== */
@media (max-width: 768px) {
  body {
    padding-bottom: 2rem;
  }

  .nav-container,
  .header-container {
    padding: 10px 15px;
  }

  .logo-img {
    height: 45px;
  }

  .nav-controls {
    gap: 8px;
  }

  .back-link {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .cart-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .search-bar {
    display: none;
  }

  .hero-banner {
    min-height: 280px;
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .main-container,
  .catalog-container {
    padding: 0 15px;
  }

  .controls-section,
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-buttons,
  .categories {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .sort-dropdown,
  .sort-bar select {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .img-wrapper {
    height: 220px;
  }

  .product-img {
    object-fit: cover; /* Modifié de contain à cover pour occuper tout l'espace */
    padding: 0;       /* Suppression du padding qui créait des bordures */
  }

  .product-details {
    padding: 10px;
  }

  .product-title {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 0.85rem;
  }

  .product-page-container {
    padding: 15px;
  }

  .main-image-container img {
    height: 380px;
    object-fit: cover; /* Modifié de contain à cover */
    padding: 0;       /* Suppression du padding */
  }

  .thumbnails-grid,
  .thumbnails-flex {
    gap: 8px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover; /* Modifié de contain à cover */
    padding: 0;
  }

  .color-swatch {
    width: 50px;
    height: 50px;
  }

  .cart-drawer {
    width: 100%;
    transform: translateX(100%);
  }

  .modal-content {
    width: 92%;
    padding: 20px 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .form-group input {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .submit-order-btn,
  .checkout-btn,
  .add-cart-large-btn,
  .add-to-cart-btn-green {
    padding: 16px;
    font-size: 0.95rem;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* ==========================================
   12. FIX WIDGET MONDIAL RELAY (DESKTOP & MOBILE)
   ========================================== */
#Zone_Widget,
#Zone_Widget iframe,
.MR-Widget,
.MR_Widget {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#Zone_Widget *,
#Zone_Widget div,
#Zone_Widget td,
#Zone_Widget tr {
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .modal-content,
  #checkout-modal .modal-content {
    width: 96% !important;
    padding: 12px !important;
  }

  #Zone_Widget .MR-Map,
  #Zone_Widget .leaflet-container {
    min-height: 250px !important;
    max-height: 300px !important;
    position: relative !important;
    z-index: 1 !important;
  }

  #Zone_Widget table {
    display: block !important;
    width: 100% !important;
  }
}

/* ==========================================
   13. BANDEAU DE RÉASSURANCE
   ========================================== */
.reassurance-banner,
.reassurance-bar {
  background-color: var(--gray-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 25px;
  margin: 40px 0;
  transition: background-color 0.3s, border-color 0.3s;
}

.reassurance-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  align-items: flex-start;
}

.reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reassurance-item i,
.reassurance-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  min-width: 24px;
  text-align: center;
  margin-top: 2px;
  color: var(--text-color);
}

.reassurance-text h3,
.reassurance-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.reassurance-text p {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .reassurance-banner,
  .reassurance-bar {
    padding: 25px 24px;
    margin: 25px 0;
  }

  .reassurance-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 20px;
    padding-left: 10px;
  }

  .reassurance-item {
    gap: 10px;
  }

  .reassurance-item i,
  .reassurance-icon {
    font-size: 1.2rem;
    min-width: 20px;
  }

  .reassurance-text h3,
  .reassurance-text h4 {
    font-size: 0.8rem;
  }

  .reassurance-text p {
    font-size: 0.75rem;
  }
}

/* ==========================================
   14. EXTENSION : FICHE PRODUIT & LIGHTBOX
   ========================================== */
.zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.zoom-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.08);
}

.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* CLASSES DE STRUCTURATION PRODUIT & CHECKOUT */
.product-detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 10px 0 5px 0;
}

.product-detail-price {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.option-group-margin {
  margin-bottom: 15px;
}

.option-group-large-margin {
  margin-bottom: 20px;
}

.option-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.option-sublabel {
  font-weight: 400;
  opacity: 0.8;
}

.size-select-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-color);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-family);
}

.accordion-subtext {
  margin-top: 8px;
}

.shipping-options-block {
  margin-top: 20px;
  margin-bottom: 15px;
}

.shipping-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.shipping-option-item {
  margin-bottom: 6px;
}

.mr-zone-container {
  margin-top: 15px;
  display: block;
}

.mr-zone-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.mr-widget-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  width: 100%;
}

.mr-selected-box {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: var(--gray-light);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.mr-relay-text {
  margin: 5px 0 0 0;
}

.checkout-summary-box {
  margin-top: 15px;
  padding: 15px;
  background: var(--gray-light);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gray-text);
}

.summary-row-margin {
  margin-bottom: 8px;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 8px 0;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color);
}

.paypal-container-block {
  margin-top: 20px;
}

.payment-box-no-margin {
  margin-top: 0;
}
