/* ==========================================================================
   LES GLOB'TROTTEUZ - DESIGN SYSTEM & STYLESHEET
   Aesthetic: Warm Organic Honey & Modern Artisan Elegance
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,500;0,600;0,700;1,400&family=Oswald:wght@400;500;600;700&family=Caveat:wght@500;600;700&family=Patrick+Hand&display=swap');

:root {
  /* Typographie pilotee par le design actif */
  --font-body: 'Outfit', 'Inter', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --display-transform: none;
  --display-spacing: normal;
  --img-filter: none;
  /* Color Palette */
  --honey-primary: #e5a93b;
  --honey-hover: #d29424;
  --honey-light: #fef8ec;
  --honey-glow: rgba(229, 169, 59, 0.25);
  
  --amber-dark: #8c4e03;
  --amber-accent: #b86b14;
  --amber-soft: #fbf3e6;

  --bg-cream: #fffdf9;
  --bg-card: #ffffff;
  --bg-subtle: #f9f6f0;

  --text-dark: #1e1b18;
  --text-muted: #665f57;
  --text-light: #8c8378;

  --sage-green: #4a6b53;
  --sage-light: #eef3ef;

  --border-light: #f0e9dd;
  --border-medium: #e2d7c5;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 27, 24, 0.04);
  --shadow-md: 0 6px 20px rgba(30, 27, 24, 0.08);
  --shadow-lg: 0 12px 36px rgba(140, 78, 3, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(30, 27, 24, 0.12);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-cream: #141210;
  --bg-card: #1e1b18;
  --bg-subtle: #27231f;

  --text-dark: #f7f3ed;
  --text-muted: #c2b9ad;
  --text-light: #948a7d;

  --border-light: #2d2823;
  --border-medium: #3d3730;

  --amber-soft: #2d2013;
  --honey-light: #261e12;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-display);
  text-transform: var(--display-transform);
  letter-spacing: var(--display-spacing);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Notification Bar */
.top-bar {
  background: linear-gradient(90deg, #8c4e03, #b86b14);
  color: #ffffff;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem 1rem;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.top-bar a {
  text-decoration: underline;
  color: #fff8e8;
  font-weight: 600;
}

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

[data-theme="dark"] .navbar {
  background-color: rgba(20, 18, 16, 0.92);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--honey-primary), var(--amber-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--amber-dark);
}

[data-theme="dark"] .brand-title {
  color: var(--honey-primary);
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  font-weight: 400;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--amber-dark);
}

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: var(--honey-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--honey-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-cart {
  position: relative;
  background: linear-gradient(135deg, var(--honey-primary), var(--honey-hover));
  color: #1e1b18;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.btn-cart:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cart-badge {
  background-color: var(--amber-dark);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--amber-soft);
  color: var(--amber-dark);
}

/* Bouton menu burger : masque sur ordinateur, affiche sous 768px */
.btn-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-dark);
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-burger:hover {
  background-color: var(--amber-soft);
  color: var(--amber-dark);
}

/* Vignette de remplacement quand une image ne se charge pas */
.img-fallback {
  background: linear-gradient(135deg, var(--honey-light), var(--amber-soft));
  color: transparent;
  min-height: 120px;
}

/* Hero Section */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(229, 169, 59, 0.12) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--amber-soft);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--amber-dark);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .hero-tag {
  color: var(--honey-primary);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero-title span {
  color: var(--amber-accent);
  position: relative;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-dark), #693901);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--amber-accent), var(--amber-dark));
}

.btn-secondary {
  background-color: var(--bg-card);
  border: 2px solid var(--border-medium);
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--amber-dark);
  color: var(--amber-dark);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
}

.hero-image-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: var(--transition-normal);
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-badge-icon {
  font-size: 2rem;
}

.hero-badge-title {
  font-weight: 700;
  color: var(--amber-dark);
}

.hero-badge-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Section Common */
.section {
  padding: 5rem 0;
}

.section-bg {
  background-color: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  color: var(--amber-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Section Story / Notre Histoire */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.story-content h3 {
  font-size: 1.8rem;
  color: var(--amber-dark);
  margin-bottom: 1rem;
}

[data-theme="dark"] .story-content h3 {
  color: var(--honey-primary);
}

.story-content p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-medium);
}

.stat-item h4 {
  font-size: 2.2rem;
  color: var(--amber-accent);
  line-height: 1;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0 0;
}

/* Products Section */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  background-color: var(--amber-dark);
  color: #ffffff;
  border-color: var(--amber-dark);
  box-shadow: var(--shadow-sm);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.product-img-wrapper {
  height: 220px;
  position: relative;
  background-color: var(--amber-soft);
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.06);
}

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--amber-dark);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.8rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.size-selector {
  display: flex;
  gap: 0.5rem;
}

.size-btn {
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-medium);
  background-color: var(--bg-card);
  color: var(--text-muted);
}

.size-btn.active {
  background-color: var(--honey-primary);
  color: #1e1b18;
  border-color: var(--honey-primary);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber-dark);
}

[data-theme="dark"] .product-price {
  color: var(--honey-primary);
}

.btn-add-cart {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--honey-primary), var(--amber-accent));
  color: #1e1b18;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, var(--amber-accent), var(--amber-dark));
  color: #ffffff;
}

/* Locations / Où nous trouver */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.location-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.location-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  color: var(--amber-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
}

.location-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.location-item-icon {
  color: var(--honey-primary);
  font-size: 1.2rem;
  margin-top: 2px;
}

.location-item-details strong {
  display: block;
  color: var(--text-dark);
  font-size: 1rem;
}

.location-item-details span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,27,24,0.8), transparent);
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #ffffff;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 15, 12, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.modal-backdrop.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--amber-dark);
}

.modal-close {
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--bg-subtle);
  color: var(--text-dark);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.cart-item-title {
  font-weight: 600;
  color: var(--text-dark);
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-qty {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--honey-primary);
  box-shadow: 0 0 0 3px var(--honey-glow);
}

.order-summary-box {
  background-color: var(--amber-soft);
  border: 1px dashed var(--amber-accent);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
}

.order-summary-box h4 {
  color: var(--amber-dark);
  margin-bottom: 0.5rem;
}

.order-summary-box pre {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: var(--text-dark);
}





/* Footer */
.footer {
  background-color: #141210;
  color: #e2d7c5;
  padding: 4rem 0 2rem;
  border-top: 1px solid #2d2823;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  color: var(--honey-primary);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #a39889;
  max-width: 380px;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #27231f;
  color: var(--honey-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--honey-primary);
  color: #141210;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #a39889;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--honey-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #27231f;
  color: #70675c;
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .story-grid, .locations-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Le header ne doit plus imposer une hauteur fixe : le nom de l'exploitation
     passe sur deux lignes sur petit ecran et debordait par-dessus la barre
     annonce et le hero. */
  .nav-container {
    height: auto;
    min-height: 64px;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    gap: 0.5rem;
  }
  .brand-logo {
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
  }
  /* Sans min-width:0, un enfant de flex refuse de retrecir et le texte passait
     sous le bouton Panier au lieu d'etre tronque proprement. */
  .brand-logo > div {
    min-width: 0;
    overflow: hidden;
  }
  .brand-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    flex-shrink: 0;
  }
  .brand-title {
    display: block;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-sub {
    font-size: 0.65rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-actions {
    gap: 0.4rem;
    flex-shrink: 0;
  }
  /* Panier en version compacte (pictogramme + compteur) pour laisser au nom
     de l'exploitation la place de s'afficher en entier. */
  .btn-cart {
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
    gap: 0.4rem;
  }
  .cart-label {
    display: none;
  }
  /* Facebook est deja accessible depuis la barre annonce et le pied de page :
     on libere la largeur pour le nom de l'exploitation. */
  .nav-actions .btn-icon {
    display: none;
  }

  /* Menu burger : les liens de navigation etaient simplement masques, les
     sections devenaient inatteignables au telephone. */
  .btn-burger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem 1.5rem 0.75rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li + li {
    border-top: 1px solid var(--border-light);
  }
  .nav-link {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
  }
  .nav-link::after {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .story-stats {
    grid-template-columns: 1fr;
  }

  /* Sous 368px de large, une colonne de 320px depassait et les cartes etaient
     rognees a droite par le overflow-x:hidden du body. */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  }
}


@media (max-width: 768px) {
}

/* Logo officiel de l'exploitation */
.brand-logo-img {
  height: 46px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
@media (max-width: 768px) {
  .brand-logo-img { height: 38px; }
}

/* ==========================================================================
   DESIGN 3 : CAMPAGNE  — ruralite, papier kraft, vert prairie & terre cuite
   ========================================================================== */
[data-design="campagne"] {
  --font-body: 'Outfit', sans-serif;
  --font-display: 'Lora', Georgia, serif;

  --honey-primary: #7c9a68;
  --honey-hover: #638053;
  --honey-light: #eef2e7;
  --honey-glow: rgba(124, 154, 104, 0.28);
  --amber-dark: #3f5c41;
  --amber-accent: #b5623c;
  --amber-soft: #efe7d5;

  --bg-cream: #f7f1e3;
  --bg-card: #fffdf7;
  --bg-subtle: #efe7d5;

  --text-dark: #33291e;
  --text-muted: #6b5b47;
  --text-light: #8f8067;

  --border-light: #e4d9c2;
  --border-medium: #cdbb9b;

  --shadow-sm: 0 2px 8px rgba(63, 92, 65, 0.06);
  --shadow-md: 0 8px 24px rgba(63, 92, 65, 0.12);
  --shadow-lg: 0 16px 44px rgba(63, 92, 65, 0.18);

  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
}

/* Fond papier : fines rayures irregulieres facon kraft */
[data-design="campagne"] body {
  background-color: var(--bg-cream);
  background-image:
    repeating-linear-gradient(112deg, rgba(140, 120, 90, 0.045) 0 2px, transparent 2px 7px),
    radial-gradient(circle at 15% 8%, rgba(124, 154, 104, 0.12), transparent 45%);
}
[data-design="campagne"] .top-bar { background: linear-gradient(90deg, #3f5c41, #7c9a68); }
[data-design="campagne"] .top-bar a { color: #f2f7ed; }
[data-design="campagne"] .navbar { background-color: rgba(247, 241, 227, 0.93); }
[data-design="campagne"] .hero {
  background: radial-gradient(circle at 78% 22%, rgba(124, 154, 104, 0.2) 0%, transparent 60%);
}
[data-design="campagne"] .hero-title span { color: var(--amber-accent); font-style: italic; }
[data-design="campagne"] .btn-cart { background: linear-gradient(135deg, #7c9a68, #638053); color: #ffffff; }
[data-design="campagne"] .cart-badge { background: #b5623c; }
/* Le caddie en noir : bien plus lisible que le blanc sur le vert. */
[data-design="campagne"] .icone-panier { color: #1c2416; }
[data-design="campagne"] .btn-primary { background: linear-gradient(135deg, #3f5c41, #2f462f); }
[data-design="campagne"] .btn-primary:hover { background: linear-gradient(135deg, #b5623c, #8f4a2c); }
[data-design="campagne"] .btn-add-cart {
  background: linear-gradient(135deg, #7c9a68, #638053);
  color: #ffffff;
}
[data-design="campagne"] .btn-add-cart:hover { background: linear-gradient(135deg, #b5623c, #8f4a2c); color: #ffffff; }
[data-design="campagne"] .size-btn.active { background: #7c9a68; color: #ffffff; border-color: #638053; }
[data-design="campagne"] .product-card { border: 1px solid var(--border-medium); }
[data-design="campagne"] .product-tag { background: rgba(255, 253, 247, 0.94); color: #3f5c41; }
[data-design="campagne"] .location-item-icon { color: #b5623c; }
[data-design="campagne"] .stat-item h4 { color: #b5623c; }
[data-design="campagne"] .footer { background: #33291e; color: #e4d9c2; border-top: 4px solid #7c9a68; }
[data-design="campagne"] .footer-brand h3 { color: #a8c294; }
[data-design="campagne"] .social-btn { background: #46392b; color: #a8c294; }
[data-design="campagne"] .social-btn:hover { background: #a8c294; color: #33291e; }
[data-design="campagne"] .footer-links a:hover { color: #a8c294; }


/* Mentions reglementaires : visibles uniquement sur le design Etiquettes */
.product-mentions { display: none; }

/* Filtre d'image pilote par le design actif */
.product-img-wrapper img,
.hero-image-card img,
.story-grid img { filter: var(--img-filter); }

/* Miel en rupture de stock */
.product-card.is-unavailable .product-img-wrapper img { opacity: 0.4; }
.product-tag-stock {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #8a8a8a;
  color: #ffffff;
}
.btn-add-cart:disabled {
  background: var(--bg-subtle);
  color: var(--text-light);
  cursor: not-allowed;
  border: 1px solid var(--border-medium);
}
.btn-add-cart:disabled:hover { background: var(--bg-subtle); color: var(--text-light); }

/* ==========================================================================
   EDITEUR DE PRODUIT (espace Inès & Yann)
   ========================================================================== */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

.image-preview {
  display: none;
  margin-top: 0.6rem;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
}
.image-preview.visible { display: block; }

.color-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.form-color {
  width: 52px;
  height: 42px;
  padding: 2px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background-color: var(--bg-cream);
  cursor: pointer;
}
.color-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0;
  font-size: 0.92rem;
  color: var(--text-dark);
  cursor: pointer;
}
.checkbox-field input {
  width: 19px;
  height: 19px;
  accent-color: var(--honey-primary);
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-light);
}
.form-actions .btn-primary { flex: 1; justify-content: center; }

/* Liste d'administration */
.admin-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem;
  border-bottom: 1px solid var(--border-light);
}
.admin-row-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.admin-row-info { flex: 1; min-width: 0; }
.admin-row-info strong { display: block; }
.admin-row-meta { font-size: 0.78rem; color: var(--text-muted); }
.admin-row-swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.3rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.admin-badge-off {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #b23c3c;
}

/* Pastille de couleur sur les autres designs : discrete, en bas de carte */
.product-color-strip {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 0.9rem;
  background: var(--label-color, var(--honey-primary));
}

/* Bouton crayon affiche sur les cartes en mode administration */
.btn-edit-product {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.btn-edit-product:hover { transform: scale(1.12); }

.svg-filters { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Selecteur de photo dans l'editeur */
.upload-zone {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.form-file {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.btn-choisir-photo {
  cursor: pointer;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  margin: 0;
}
.form-file:focus-visible + .btn-choisir-photo {
  outline: 2px solid var(--honey-primary);
  outline-offset: 2px;
}
.upload-etat {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 140px;
}

/* Etat d'envoi de la commande */
.envoi-etat {
  display: none;
  margin-top: 1.2rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}
.envoi-etat.en-cours,
.envoi-etat.succes,
.envoi-etat.repli { display: block; }
.envoi-etat.en-cours { background: var(--bg-subtle); color: var(--text-muted); }
.envoi-etat.succes   { background: #e7f3e4; color: #2f5c2a; border: 1px solid #b7d9ae; }
.envoi-etat.repli    { background: #fdf3e0; color: #8a5a12; border: 1px solid #e8cf9c; }

/* Mention d'origine : obligatoire sur le miel, visible sur tous les designs */
.product-origine {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

/* Points de retrait : bouton d'edition sur la carte, et liste admin */
.location-item { position: relative; }
.btn-edit-point {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.btn-edit-point:hover { transform: scale(1.12); }
.admin-row-pin { font-size: 1.3rem; width: 32px; text-align: center; flex-shrink: 0; }
.champ-aide {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Espace editeur : onglets, une liste par onglet */
.admin-intro {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}
.admin-tabs {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1.4rem;
  border-bottom: 2px solid var(--border-light);
  /* Une seule ligne : sur un ecran etroit les onglets defilent
     horizontalement plutot que de se replier sur deux rangees. */
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  padding: 0.6rem 0.7rem;
  font-size: 0.88rem;
  white-space: nowrap;
  flex: none;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: var(--transition-fast);
}
.admin-tab:hover { background-color: var(--bg-subtle); color: var(--text-dark); }
.admin-tab.active {
  color: var(--amber-dark);
  border-bottom-color: var(--amber-dark);
}
.admin-tab:focus-visible { outline: 2px solid var(--honey-primary); outline-offset: 2px; }
.admin-aide {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.admin-ajout { margin-top: 1.2rem; }

/* ==========================================================================
   PAGES LEGALES (mentions, CGV, confidentialite)
   ========================================================================== */
.legal-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
}
.legal-marque {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--amber-dark);
}
.legal-marque img { height: 42px; width: auto; }
.legal-retour { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.legal-retour:hover { color: var(--amber-dark); }

.page-legale {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.legal-surtitre {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber-accent);
  margin: 0 0 0.6rem;
}
.page-legale h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.12;
  margin: 0 0 0.6rem;
  color: var(--text-dark);
}
.legal-date { color: var(--text-light); font-size: 0.9rem; margin: 0 0 2rem; }
.page-legale h2 {
  font-size: 1.4rem;
  margin: 2.4rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-light);
  color: var(--amber-dark);
}
.page-legale h3 {
  font-size: 1.08rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 1.6rem 0 0.4rem;
  color: var(--text-dark);
}
.page-legale p,
.page-legale li { color: var(--text-muted); max-width: 68ch; }
.page-legale p { margin: 0 0 1rem; }
.page-legale ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.page-legale li { margin-bottom: 0.4rem; }
.page-legale a { color: var(--amber-dark); text-decoration: underline; }

.legal-fiche {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 1.2rem 1.4rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
}
.legal-fiche dt { font-weight: 700; color: var(--text-dark); font-size: 0.92rem; }
.legal-fiche dd { margin: 0; color: var(--text-muted); }

.legal-encadre {
  padding: 1rem 1.2rem;
  background-color: var(--amber-soft);
  border-left: 4px solid var(--amber-accent);
  border-radius: var(--radius-sm);
}

.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: 0.93rem; }
.legal-table th,
.legal-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.legal-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); }
.legal-table td { color: var(--text-muted); }

.legal-pied {
  border-top: 1px solid var(--border-light);
  padding: 1.8rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}
.legal-pied nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.legal-pied nav a { color: var(--text-muted); font-weight: 600; }
.legal-pied nav a:hover { color: var(--amber-dark); }

/* Mention RGPD sous le bon de commande */
.mention-rgpd {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-light);
}
.mention-rgpd a { color: var(--amber-dark); text-decoration: underline; }

/* Onglet Photos du site */
.admin-sous-titre {
  margin: 2rem 0 0.4rem;
  color: var(--amber-dark);
  font-size: 1.05rem;
}
.etiquette-fichier {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.etiquette-fichier input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.galerie-vide {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
}
.gallery-item { position: relative; }

/* L'espace editeur presente des listes : on lui laisse un peu plus de large */
#admin-modal .modal-container { max-width: 720px; }

/* Icone du panier : elle suit la couleur du bouton par defaut, et chaque
   design peut la forcer (voir campagne, ou le caddie est noir). */
.icone-panier { flex: none; display: block; }

/* Acces a l'espace editeur : un lien discret parmi ceux du pied de page. */
.lien-editeur {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}
.lien-editeur:hover { color: var(--honey-primary); }
.lien-editeur:focus-visible { outline: 2px solid var(--honey-primary); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   MOT DE PASSE DE L'ESPACE ÉDITEUR
   -------------------------------------------------------------------------- */
.modal-etroit { max-width: 440px; }

.mdp-erreur {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fbe9e7;
  color: #8c2f1e;
  border: 1px solid #f0c4bc;
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-securite {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border, #e2d9c6);
  text-align: center;
}

/* --------------------------------------------------------------------------
   CALENDRIER DE RETRAIT
   -------------------------------------------------------------------------- */
.calendrier {
  border: 1px solid var(--border, #e2d9c6);
  border-radius: 12px;
  padding: 14px;
  background: var(--card-bg, #fffdf7);
}

.cal-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-mois {
  font-size: 1.02rem;
  text-transform: capitalize;
  color: var(--amber-dark, #8a5a1e);
}

.cal-nav {
  border: 1px solid var(--border, #e2d9c6);
  background: transparent;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}
.cal-nav:hover:not(:disabled) { background: var(--amber-light, #f6e7c8); }
.cal-nav:disabled { opacity: .3; cursor: default; }

.cal-semaine,
.cal-grille {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-semaine {
  margin-bottom: 4px;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  color: #8c7f68;
}

.cal-jour {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  background: #e8f2e2;
  color: #2f4a30;
  cursor: pointer;
}
.cal-jour:hover:not(.indisponible) { background: #cfe5c4; }

.cal-jour.indisponible {
  background: transparent;
  color: #c3b9a6;
  cursor: default;
}

.cal-jour.choisi {
  background: var(--green-dark, #3f5c41);
  color: #fff;
  font-weight: 700;
}

.cal-vide { aspect-ratio: 1; }

.cal-choix {
  margin: 12px 0 0;
  font-size: .9rem;
  color: #6b5b47;
  text-align: center;
}

.jours-choix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.jours-choix label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .94rem;
  cursor: pointer;
}
