/* =========================================
   Le Coin Perdu — Design System
   Éco-Ferme El Haouaria, Cap Bon
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* === Protection anti-téléchargement des médias (best-effort) ===
   Empêche l'enregistrement d'images/vidéos via glisser-déposer, menu
   clic-droit ou appui long mobile. Complété par le blocage JS du menu
   contextuel (voir app.js) et l'attribut controlsList="nodownload" sur
   les vidéos avec contrôles visibles. Ce n'est pas une protection
   absolue (capture d'écran toujours possible) mais dissuade l'usage
   courant du navigateur. */
img, video {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* === CSS Variables === */
:root {
  /* Colors */
  --green-dark: #1B4332;
  --green-main: #2D6A4F;
  --green-mid: #40916C;
  --green-light: #74C69D;
  --green-pale: #D8F3DC;
  --gold: #D4A853;
  --gold-light: #F0D080;
  --brown-dark: #5C3D2E;
  --brown-mid: #8B6347;
  --brown-light: #C4A882;
  --cream: #F5F0E8;
  --cream-dark: #EDE7DA;
  --white: #FAFAF7;
  --text-dark: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-light: #7A7A7A;
  --border: rgba(45, 106, 79, 0.15);
  --shadow: rgba(27, 67, 50, 0.12);
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.25s ease;
  --transition-slow: all 0.4s ease;
  
  /* Z-index layers */
  --z-base: 1;
  --z-nav: 100;
  --z-modal: 200;
  --z-toast: 300;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* === Typography === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--green-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: 1.1rem; }

.text-gold { color: var(--gold); }
.text-green { color: var(--green-main); }
.text-light { color: var(--text-light); }

/* === Layout === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Nav desktop masquée par défaut (mobile-first) — affichée uniquement ≥768px */
.desktop-nav { display: none; }

@media (min-width: 768px) {
  .container { padding: 0 var(--space-xl); }
}

/* === App Shell === */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === Top Header === */
.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.btn-cart {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 1.2rem;
  transition: var(--transition);
}

.btn-cart:hover { background: var(--green-light); }

.btn-install {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #E53935;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-install.visible {
  display: flex;
  animation: installBtnGlow 1.6s ease-in-out infinite, installBtnBlink 2.4s ease-in-out infinite;
}

.btn-install:hover { background: #C62828; }

@keyframes installBtnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.55); }
  50%      { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
}

@keyframes installBtnBlink {
  0%, 100%, 40% { opacity: 1; }
  20% { opacity: 0.55; }
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-badge.visible { display: flex; }

/* === Bottom Navigation === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px var(--shadow);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-items {
  display: flex;
  justify-content: space-around;
  padding: 0.4rem 0;
  max-width: 600px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  min-width: 50px;
  color: var(--text-light);
}

.nav-item.active {
  color: var(--green-main);
}

.nav-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.nav-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-item.active .nav-label { color: var(--green-main); }

/* === Main Content === */
.main-content {
  flex: 1;
  padding-bottom: 80px; /* Space for bottom nav */
}

/* === Sections / Pages === */
.page-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page-section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-main);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--green-main);
  border: 2px solid var(--green-main);
}

.btn-secondary:hover {
  background: var(--green-pale);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.35);
}

.btn-gold:hover {
  background: #C49A43;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(27, 67, 50, 0.18);
  transform: translateY(-3px);
}

/* === Hero Section === */
.hero {
  background: linear-gradient(145deg, var(--green-dark) 0%, var(--green-main) 50%, var(--green-mid) 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  color: var(--white);
  min-height: 65vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(212, 168, 83, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(116, 198, 157, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.5) 30px,
    rgba(255,255,255,0.5) 31px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(212, 168, 83, 0.2);
  border: 1px solid rgba(212, 168, 83, 0.4);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-slogan {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: var(--space-lg);
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* === Stats Row === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
}

.stat-item {
  background: var(--white);
  padding: var(--space-lg);
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.stat-unit {
  font-size: 1rem;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat-item { padding: var(--space-md) var(--space-xs); }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.65rem; }
}

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.divider-gold {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
  margin: var(--space-sm) auto;
  width: 80px;
}

.divider-gold::before,
.divider-gold::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
}

.divider-gold .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* === Product Cards === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(27, 67, 50, 0.2);
  transform: translateY(-4px);
}

.product-img {
  height: 160px;
  background: linear-gradient(135deg, var(--green-pale), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.badge-available {
  background: var(--green-pale);
  color: var(--green-dark);
}

.badge-unavailable {
  background: #FEEAEA;
  color: #C0392B;
}

.badge-featured {
  background: var(--gold);
  color: var(--white);
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
}

.product-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
}

.product-season {
  font-size: 0.7rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-main);
}

.price-unit {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 400;
}

.btn-add-cart {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--green-main);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-add-cart:hover { background: var(--green-dark); transform: scale(1.1); }
.btn-add-cart:disabled { background: #ccc; cursor: not-allowed; }

/* === Filter Bar === */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-sm) 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: var(--space-lg);
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  transition: var(--transition);
  white-space: nowrap;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--green-main);
  color: var(--white);
  border-color: var(--green-main);
}

/* === News Cards === */
.news-grid {
  display: grid;
  gap: var(--space-lg);
}

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

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
  display: flex;
  gap: var(--space-md);
  align-items: stretch;
  padding: var(--space-md);
}

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

.news-emoji {
  font-size: 2.5rem;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-pale);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.news-content { flex: 1; }

.news-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: 4px;
}

.news-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.news-date {
  font-size: 0.7rem;
  color: var(--text-light);
}

.news-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.news-excerpt {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Review Cards === */
.reviews-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 3px solid var(--gold);
}

.review-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
}

.review-text {
  font-style: italic;
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dark);
}

.reviewer-location {
  font-size: 0.75rem;
  color: var(--text-light);
}

.review-product {
  font-size: 0.7rem;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* === Calendar === */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .calendar-grid { grid-template-columns: repeat(2, 1fr); }
}

.month-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 2px 8px var(--shadow);
}

.month-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.month-season {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.season-printemps { color: #27AE60; }
.season-été { color: #E67E22; }
.season-automne { color: #D35400; }
.season-hiver { color: #2980B9; }

.month-activities li {
  font-size: 0.75rem;
  color: var(--text-mid);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.month-activities li::before {
  content: '▸';
  color: var(--green-mid);
  font-size: 0.65rem;
}

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

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

.gallery-item {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--green-pale), var(--cream));
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.gallery-item:hover { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 67, 50, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
  text-align: center;
  padding: var(--space-sm);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* === Cart / Shop === */
.cart-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--text-light);
}

.cart-empty .empty-icon { font-size: 4rem; margin-bottom: var(--space-md); }

.cart-items { display: flex; flex-direction: column; gap: var(--space-md); }

.cart-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px var(--shadow);
}

.cart-item-emoji { font-size: 2rem; min-width: 48px; text-align: center; }

.cart-item-info { flex: 1; min-width: 120px; }
.cart-item-name { font-weight: 700; color: var(--green-dark); font-size: 0.9rem; overflow-wrap: break-word; }
.cart-item-price { font-size: 0.85rem; color: var(--text-light); }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.qty-btn:hover { background: var(--green-light); }
.qty-num { font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-total { font-weight: 700; color: var(--green-main); min-width: 70px; text-align: right; }

/* Mobile : le nom + qty + total ne tiennent plus sur une seule ligne → on passe les contrôles à la ligne suivante */
@media (max-width: 600px) {
  .cart-item-controls {
    flex: 1 1 100%;
    justify-content: space-between;
    padding-left: calc(48px + var(--space-md));
  }
}

.cart-total-bar {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
}

.cart-total-label { font-size: 0.85rem; opacity: 0.8; }
.cart-total-amount { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.cart-grand-total-bar { background: var(--brown-dark); margin-top: var(--space-md); }

/* === Engagements === */
.engagements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

.engagement-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
}

.engagement-card:hover {
  box-shadow: 0 6px 25px var(--shadow);
  transform: translateY(-3px);
}

.engagement-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.engagement-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: var(--space-sm);
}

.engagement-text {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* === Contact === */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 2px 16px var(--shadow);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-main);
  background: var(--white);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.form-group { margin-bottom: var(--space-md); }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: var(--space-xs);
}

/* === Map === */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.map-placeholder {
  text-align: center;
  color: var(--green-main);
}

.map-placeholder .map-emoji { font-size: 3rem; margin-bottom: var(--space-sm); }
.map-placeholder p { font-size: 0.85rem; color: var(--text-light); }

/* === Loyalty Program === */
.loyalty-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.loyalty-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.loyalty-points {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-light);
}

.loyalty-label { font-size: 0.8rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.1em; }

.progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-md) 0;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* === Toast Notifications === */
.toast-container {
  position: fixed;
  top: 80px;
  right: var(--space-md);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  background: var(--green-dark);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 300px;
}

.toast.gold { background: var(--gold); }
.toast.error { background: #C0392B; }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(120%); }
}

/* === Install Banner === */
.install-banner {
  position: fixed;
  bottom: 80px;
  left: var(--space-md);
  right: var(--space-md);
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 -2px 30px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: var(--z-modal);
  animation: slideUp 0.4s ease;
  display: none;
}

.install-banner.show {
  display: flex;
  animation: slideUp 0.4s ease, installBannerBlink 2s ease-in-out infinite 0.4s;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes installBannerBlink {
  0%, 100% { background: var(--green-dark); box-shadow: 0 -2px 30px rgba(0,0,0,0.2); }
  50%      { background: #E53935; box-shadow: 0 -2px 30px rgba(229,57,53,0.5); }
}

.install-icon { font-size: 2rem; flex-shrink: 0; }
.install-text { flex: 1; }
.install-text strong { display: block; font-size: 0.9rem; }
.install-text small { font-size: 0.75rem; opacity: 0.8; }
.install-close { padding: 4px 8px; font-size: 1.2rem; opacity: 0.7; }

/* === iOS Install Tooltip === */
.ios-install-tooltip {
  display: none;
  position: fixed;
  bottom: calc(76px + var(--space-md));
  left: var(--space-md);
  right: var(--space-md);
  max-width: 380px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 10px 32px rgba(0,0,0,0.28);
  z-index: 1001;
  animation: iosTooltipIn 0.25s ease;
}

.ios-install-tooltip.show { display: block; }

.ios-install-tooltip strong {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 1rem;
}

.ios-install-tooltip ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  color: var(--text);
}

.ios-install-tooltip li { margin-bottom: 6px; }
.ios-share-icon { display: inline-block; }

.ios-tooltip-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.1rem;
  opacity: 0.6;
  cursor: pointer;
}

@keyframes iosTooltipIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1024px) {
  /* Desktop : système d'installation entièrement désactivé */
  .btn-install, .install-banner, .ios-install-tooltip { display: none !important; }
}

/* === Section Padding === */
.section-pad {
  padding: var(--space-xl) var(--space-md);
}

@media (min-width: 768px) {
  .section-pad { padding: var(--space-2xl) var(--space-xl); }
}

/* === Timeline === */
.timeline {
  position: relative;
  padding: var(--space-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-main), var(--gold));
}

.timeline-item {
  display: flex;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  position: relative;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-main);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 1rem;
  z-index: 1;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.timeline-content h4 { color: var(--green-dark); margin-bottom: 4px; }
.timeline-content p { font-size: 0.85rem; color: var(--text-light); }

/* === Rating Stars === */
.rating-display {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.rating-score {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.rating-stars-big {
  color: var(--gold);
  font-size: 1.5rem;
}

.rating-count { font-size: 0.85rem; color: var(--text-light); }

/* === Admin badge === */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* === Back to top === */
/* === FABs mobiles (Réserver + Panier) — mobile uniquement <768px === */
.fab-stack {
  display: none;
}

@media (max-width: 767px) {
  .fab-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 12px);
    left: 16px;
    z-index: calc(var(--z-nav) + 1);
  }

  .fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    position: relative;
    transition: transform 0.18s, box-shadow 0.18s;
  }

  .fab:active { transform: scale(0.93); box-shadow: 0 2px 8px rgba(0,0,0,0.18); }

  .fab-booking {
    background: var(--gold);
    color: var(--white);
  }

  .fab-cart {
    background: var(--green-main);
    color: var(--white);
  }

  .fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #E74C3C;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid white;
  }

  .fab-badge.visible {
    display: flex;
  }
}

/* === Bottom-sheet Plus === */
.more-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: calc(var(--z-nav) + 5);
}

.more-sheet-overlay.open { display: block; }

.more-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 0.75rem 1.5rem calc(80px + env(safe-area-inset-bottom, 0px)) 1.5rem;
  z-index: calc(var(--z-nav) + 6);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.14);
}

.more-sheet.open { transform: translateY(0); }

.more-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}

.more-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.more-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0.9rem 0.5rem;
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-body);
  transition: background 0.15s;
}

.more-sheet-item:active { background: var(--cream-dark); }
.more-sheet-item > span:first-child { font-size: 1.5rem; }

/* === Bulle alerte 🔔 === */
#alert-fab {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 16px);
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 2);
  box-shadow: 0 4px 16px rgba(200, 146, 58, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: alert-pulse 2.4s ease-in-out infinite;
  position: fixed;
}

@keyframes alert-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(200,146,58,0.5); }
  50%       { box-shadow: 0 4px 28px rgba(200,146,58,0.85); transform: scale(1.06); }
}

#alert-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #E74C3C;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
}

/* Popup alertes */
#alert-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: calc(var(--z-modal) - 1);
}

#alert-popup-overlay.open { display: block; }

#alert-popup {
  display: none;
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 76px);
  right: 16px;
  width: min(360px, calc(100vw - 32px));
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  z-index: var(--z-modal);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  animation: popup-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#alert-popup.open { display: block; }

@keyframes popup-in {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

#alert-popup-close {
  position: absolute;
  top: 12px; right: 14px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
}

#alert-popup-icon { font-size: 2rem; margin-bottom: 0.5rem; }
#alert-popup-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.4rem; padding-right: 2rem; }
#alert-popup-body  { font-size: 0.85rem; color: var(--text-mid); line-height: 1.55; min-height: 1.5rem; }

#alert-popup-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

#alert-popup-counter { color: var(--text-light); font-weight: 700; }

#alert-nav-prev, #alert-nav-next {
  background: var(--cream);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  transition: background 0.15s;
}

#alert-nav-prev:hover, #alert-nav-next:hover { background: var(--cream-dark); }
#alert-nav-prev:disabled, #alert-nav-next:disabled { opacity: 0.35; cursor: default; }

.back-top {
  width: 44px;
  height: 44px;
  background: var(--green-main);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 90px;
  right: var(--space-md);
  box-shadow: 0 4px 15px rgba(45,106,79,0.4);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 90;
}

.back-top.visible { opacity: 1; pointer-events: auto; }

/* === Utility === */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.gap-sm { gap: var(--space-sm); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Scrollbar custom */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 3px; }

/* === Offline page styles === */
.offline-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  background: var(--cream);
}

/* =========================================
   Expériences & Réservations — Extensions
   ========================================= */

/* Highlighted nav items */
.nav-item.nav-item-highlight .nav-icon {
  position: relative;
}

.nav-item.nav-item-highlight {
  color: var(--green-main);
}

.nav-item.nav-item-highlight .nav-label {
  color: var(--green-main);
  font-weight: 700;
}

.nav-item.nav-item-highlight.active .nav-icon::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  border: 1.5px solid var(--white);
}

/* Sub-tab scrollable bar */
.exp-subtab-bar {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--green-dark);
  padding: 0.6rem 1rem;
  gap: 0.4rem;
  position: sticky;
  top: 57px;
  z-index: 50;
}

.exp-subtab-bar::-webkit-scrollbar { display: none; }

.exp-subtab-btn {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
}

.exp-subtab-btn.active {
  background: var(--gold);
  color: white;
}

/* Booking steps */
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.4);
  background: transparent;
  transition: all 0.3s;
}

.step-dot.done {
  background: rgba(212,168,83,0.3);
  border-color: var(--gold);
  color: white;
}

.step-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

/* Event card hover */
.event-card {
  transition: box-shadow 0.2s, transform 0.2s;
}

.event-card:hover {
  box-shadow: 0 8px 30px rgba(27, 67, 50, 0.2) !important;
  transform: translateY(-2px);
}

/* Programme timeline */
.programme-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.programme-step:hover {
  background: var(--green-pale);
  border-radius: var(--radius-md);
  padding-left: var(--space-sm);
}

/* Formula cards */
.formula-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.formula-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(27, 67, 50, 0.2) !important;
}

/* =========================================
   DESKTOP NAVIGATION — Horizontal top bar
   (replaces bottom-nav on screens >= 768px)
   ========================================= */

/* ── NOUVELLE PALETTE CHAUDE ── */
:root {
  /* Overrides plus chaleureux */
  --cream:        #FBF6EE;
  --cream-dark:   #F3EAD8;
  --green-pale:   #E8F4EE;
  --shadow:       rgba(92, 61, 46, 0.10);
  --border:       rgba(92, 61, 46, 0.12);
}

/* ── DESKTOP TOPNAV ── */
@media (min-width: 768px) {

  /* Hide mobile bottom nav */
  .bottom-nav { display: none; }

  /* Header becomes taller with built-in full nav */
  .app-header {
    background: linear-gradient(90deg, #1B4332 0%, #2D6A4F 60%, #40916C 100%);
    border-bottom: 2px solid rgba(212,168,83,0.3);
    box-shadow: 0 3px 24px rgba(27,67,50,0.25);
  }

  .header-inner {
    padding: 0 var(--space-xl);
    height: 62px;
    gap: var(--space-xl);
  }

  /* Logo stays white on dark background */
  .logo-name { color: #fff; font-size: 1.15rem; }
  .logo-sub  { color: rgba(212,168,83,0.9); }

  /* Desktop nav links */
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
  }

  .desktop-nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.18s;
    border: none;
    background: none;
    font-family: var(--font-body);
    white-space: nowrap;
  }

  .desktop-nav-item:hover {
    background: rgba(255,255,255,0.12);
    color: white;
  }

  .desktop-nav-item.active {
    background: rgba(255,255,255,0.18);
    color: white;
    font-weight: 700;
  }

  /* Highlighted items (Expériences & Réservations) */
  .desktop-nav-item.highlight {
    color: var(--gold-light);
  }

  .desktop-nav-item.highlight.active,
  .desktop-nav-item.highlight:hover {
    background: rgba(212,168,83,0.25);
    color: var(--gold-light);
  }

  /* Active underline indicator */
  .desktop-nav-item.active::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
  }
  .desktop-nav-item { position: relative; }

  /* "More" dropdown for extra tabs */
  .nav-more-wrap { position: relative; }

  .nav-more-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem; font-weight: 600;
    color: rgba(255,255,255,0.8);
    cursor: pointer; transition: all 0.18s;
    border: none; background: none;
    font-family: var(--font-body);
  }
  .nav-more-btn:hover { background: rgba(255,255,255,0.12); color: white; }

  .nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(27,67,50,0.2);
    padding: 0.5rem;
    min-width: 200px;
    display: none;
    z-index: 200;
    border: 1px solid var(--border);
    animation: fadeIn 0.15s ease;
  }

  .nav-more-wrap:hover .nav-dropdown,
  .nav-more-wrap:focus-within .nav-dropdown { display: block; }

  .nav-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-mid);
    cursor: pointer;
    transition: background 0.15s;
    border: none; background: none;
    font-family: var(--font-body);
    width: 100%; text-align: left;
  }
  .nav-dropdown-item:hover { background: var(--green-pale); color: var(--green-dark); }

  /* Admin access: triple-click on logo (no visible button) */

  /* Cart button on desktop */
  .btn-cart {
    background: rgba(255,255,255,0.12);
    color: white;
    border-radius: 8px;
  }
  .btn-cart:hover { background: rgba(255,255,255,0.22); }

  /* Main content no bottom pad needed */
  .main-content { padding-bottom: 0; }

  /* Hero adjustments */
  .hero { min-height: 70vh; }
}

/* ── WARM COLOR OVERRIDES (all screens) ── */

/* Hero warmer gradient */
.hero {
  background: linear-gradient(145deg, #1B4332 0%, #2D6A4F 45%, #5C3D2E 100%);
}

/* Buttons warmer */
.btn-primary { background: #2D6A4F; }
.btn-primary:hover { background: #1B4332; }
.btn-gold { background: #C8923A; }
.btn-gold:hover { background: #B07A28; }

/* Section headers - warmer gold */
.section-label { color: #C8923A; }
.divider-gold::before,
.divider-gold::after { background: #C8923A; }
.divider-gold .dot { background: #C8923A; }

/* Cards warmer shadow */
.card:hover,
.product-card:hover {
  box-shadow: 0 8px 30px rgba(92, 61, 46, 0.18);
}

/* Stats row warmer */
.stat-number { color: #1B4332; }
.stat-unit { color: #C8923A; }

/* Product price warmer */
.product-price { color: #1B4332; }

/* News category warmer */
.news-cat { color: #C8923A; }

/* Review border warmer */
.review-card { border-left-color: #C8923A; }
.review-stars { color: #C8923A; }

/* Timeline dot */
.timeline-dot { background: #2D6A4F; }
.timeline-year { color: #C8923A; }

/* Loyalty card */
.loyalty-points { color: #FFD580; }

/* Filter active */
.filter-pill.active,
.filter-pill:hover {
  background: #2D6A4F;
}

/* ============================================================
   Lightbox partagé — galerie (onglet Plus + onglet La Ferme)
   ============================================================ */

#shared-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
}

#shared-lightbox.slb-open {
  display: flex;
}

.slb-media-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
}

#slb-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

#slb-caption {
  color: rgba(255, 255, 255, 0.85);
  margin: 0.75rem 0 0.2rem;
  font-size: 0.95rem;
  text-align: center;
  max-width: 80vw;
}

#slb-counter {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  margin: 0;
  text-align: center;
}

/* Boutons communs */
.slb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slb-btn:hover { background: rgba(255, 255, 255, 0.22); }

/* Fermer */
.slb-close {
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.3rem;
}

/* Précédent / Suivant */
.slb-prev, .slb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
}
.slb-prev { left: 0.8rem; }
.slb-next { right: 0.8rem; }

@media (max-width: 480px) {
  .slb-prev { left: 0.3rem; }
  .slb-next { right: 0.3rem; }
}
