/* =====================================================
   VINS POUR TOUS — Club de Dégustation Privé
   Dark Premium Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --bg-deep:        #121212;
  --bg-base:        #1a1a1a;
  --bg-card:        #222222;
  --bg-card-hover:  #2a2a2a;
  --bg-glass:       rgba(34,34,34,0.85);
  --gold:           #c5a059;
  --gold-light:     #d4b47a;
  --gold-dark:      #9e7c3f;
  --gold-glow:      rgba(197,160,89,0.15);
  --text-primary:   #e2ddd2;
  --text-secondary: #a09890;
  --text-muted:     #6b6560;
  --border:         rgba(197,160,89,0.25);
  --border-fine:    rgba(197,160,89,0.25);
  --border-subtle:  rgba(255,255,255,0.06);
  --surface-2:      #2a2a2a;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --shadow-gold:    0 0 40px rgba(197,160,89,0.12);
  --shadow-card:    0 8px 32px rgba(0,0,0,0.4);
  --shadow-deep:    0 20px 60px rgba(0,0,0,0.6);
  --font-serif:     'Playfair Display', Georgia, serif;
  --font-sans:      'Inter', system-ui, sans-serif;
  --transition:     0.25s ease;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--text-secondary); margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

/* ── Gold Accent Line ── */
.gold-line {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: var(--sp-4) 0;
}
.gold-line-center {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--sp-4) auto;
}

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18,18,18,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-fine);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: var(--sp-8);
  flex-wrap: nowrap;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.logo-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.logo-text span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--gold);
  background: var(--gold-glow);
}
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--bg-deep) !important;
  padding: var(--sp-2) var(--sp-5) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--sp-2);
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.pexels.com/photos/30557566/pexels-photo-30557566.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1080&w=1920');
  background-size: cover;
  background-position: center;
  filter: brightness(0.22) saturate(0.8);
  transform: scale(1.05);
  animation: slowZoom 20s ease-in-out infinite alternate;
}
@keyframes slowZoom { from { transform: scale(1.05); } to { transform: scale(1.12); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(18,18,18,0.7) 0%, rgba(18,18,18,0.3) 50%, rgba(197,160,89,0.05) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-24) var(--sp-6);
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--gold-glow);
  border: 1px solid var(--border-fine);
  border-radius: 100px;
  padding: var(--sp-2) var(--sp-5);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-6);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  max-width: 800px;
  margin-bottom: var(--sp-6);
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: var(--sp-10);
  line-height: 1.8;
}
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* ── Hero Stats (in page-hero) ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-top: var(--sp-8);
}
.hero-stat { text-align: left; }
.hero-stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border-fine);
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep);
}
.btn-gold:hover { color: var(--bg-deep); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(197,160,89,0.35); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-fine);
}
.btn-outline:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-glow); }
.btn-sm { padding: var(--sp-2) var(--sp-5); font-size: 0.82rem; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-fine);
  border-bottom: 1px solid var(--border-subtle);
}
.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Sections ── */
.section { padding: var(--sp-20) 0; }
.section-sm { padding: var(--sp-12) 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-6); }
.section-header { margin-bottom: var(--sp-12); }
.section-header.centered { text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-3);
}
.section-header h2 { margin-bottom: var(--sp-4); }
.section-header p { font-size: 1.05rem; max-width: 600px; }
.section-header.centered p { margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { background: var(--bg-card-hover); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.card-body { padding: var(--sp-6); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-tag {
  display: inline-block;
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--border-fine);
  border-radius: 100px;
  padding: 2px var(--sp-3);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}
.card h3 { margin-bottom: var(--sp-2); font-size: 1.1rem; }
.card p { font-size: 0.9rem; margin-bottom: var(--sp-4); }
.card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

/* ── Grid Layouts ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-5); }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-4); }

/* ── Stats Widget ── */
.stats-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
}
.stats-widget-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: var(--sp-6);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.stats-widget-title::before {
  content: '';
  width: 4px; height: 18px;
  background: var(--gold);
  border-radius: 2px;
}
.stat-bar-item { margin-bottom: var(--sp-4); }
.stat-bar-header { display: flex; justify-content: space-between; margin-bottom: var(--sp-2); font-size: 0.85rem; }
.stat-bar-label { color: var(--text-secondary); }
.stat-bar-value { color: var(--gold); font-weight: 600; }
.stat-bar-track { height: 6px; background: var(--border-subtle); border-radius: 3px; overflow: hidden; }
.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 3px;
  transition: width 1s ease;
}

/* ── Stats grid 4 cols ── */
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.stat-card-dark {
  background: var(--bg-deep);
  border: 1px solid var(--border-fine);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  transition: all var(--transition);
}
.stat-card-dark:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.stat-card-icon { font-size: 1.8rem; margin-bottom: var(--sp-3); }
.stat-card-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-1);
}
.stat-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Hero Split ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

/* ── Feature List ── */
.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.feature-list li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.5rem;
  margin-top: 8px;
  flex-shrink: 0;
}

/* ── Search Bar ── */
.search-bar {
  display: flex;
  gap: var(--sp-3);
}
.search-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-5);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.search-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-6);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}
.search-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Filters ── */
.filter-bar { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Alpha Filter ── */
.alpha-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-bottom: 0;
}
.alpha-btn {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  padding: 0 var(--sp-2);
}
.alpha-btn:hover, .alpha-btn.active {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Alpha Section ── */
.alpha-section { margin-bottom: var(--sp-12); }
.alpha-section-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.alpha-letter-badge {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.alpha-divider {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.alpha-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Cépage Grid ── */
.cepage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-3);
}
.cepage-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  transition: all var(--transition);
  text-decoration: none;
}
.cepage-card:hover {
  border-color: var(--border-fine);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.cepage-card-initials {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bg-deep);
  flex-shrink: 0;
  font-family: var(--font-serif);
}
.cepage-initials-rouge { background: #8b2635; color: #fff; }
.cepage-initials-blanc { background: var(--gold); color: var(--bg-deep); }
.cepage-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cepage-card-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cepage-card-type {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.cepage-card-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all var(--transition);
}
.cepage-card:hover .cepage-card-arrow { color: var(--gold); transform: translateX(3px); }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: var(--sp-20);
  color: var(--text-muted);
}
.empty-state h3 { margin-top: var(--sp-4); color: var(--text-secondary); }
.empty-state p { margin-top: var(--sp-3); }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-muted); }

/* ── Alert / Info Box ── */
.info-box {
  background: var(--gold-glow);
  border: 1px solid var(--border-fine);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Table ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--bg-card);
  padding: var(--sp-3) var(--sp-5);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-fine);
}
.data-table td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.data-table tr:hover td { background: var(--bg-card); color: var(--text-primary); }

/* ── Loading ── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-12);
  color: var(--text-muted);
}
.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error State ── */
.error-state {
  background: rgba(180,80,80,0.1);
  border: 1px solid rgba(180,80,80,0.3);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  text-align: center;
  color: #e88888;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-fine); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--gold); }
.faq-q.active { color: var(--gold); }
.faq-q svg { flex-shrink: 0; transition: transform var(--transition); color: var(--text-muted); }
.faq-q.active svg { transform: rotate(180deg); color: var(--gold); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--sp-6);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-a.open {
  max-height: 400px;
  padding: 0 var(--sp-6) var(--sp-5);
}

/* ── Tag Cloud ── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: var(--sp-1) var(--sp-4);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.tag:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

/* ── Pagination ── */
.pagination { display: flex; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-10); }
.page-btn {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}
.page-btn-wide { width: auto; padding: 0 var(--sp-4); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-fine);
  padding: var(--sp-16) 0 var(--sp-8);
  margin-top: var(--sp-20);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: var(--sp-4) 0;
  line-height: 1.8;
}
.footer-warning {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: var(--sp-4);
  opacity: 0.8;
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: var(--sp-2); }
.footer-col ul li a { color: var(--text-muted); font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom-links { display: flex; flex-direction: column; gap: var(--sp-1); }
.legal-links { display: flex; align-items: center; gap: var(--sp-3); margin-top: 2px; }
.legal-links .separator { color: var(--border-subtle); font-size: 0.7rem; }
.legal-links a { font-size: 0.75rem; color: var(--text-muted); transition: color var(--transition); }
.legal-links a:hover { color: var(--gold); }

/* ── Scroll Animations ── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Section Backgrounds ── */
.bg-base { background: var(--bg-base); }
.bg-card { background: var(--bg-card); }
.bg-deep { background: var(--bg-deep); }

/* ── Dividers ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-fine), transparent);
  margin: var(--sp-16) 0;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-fine);
  padding: var(--sp-20) 0 var(--sp-16);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(197,160,89,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── AOC Cards ── */
.aoc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
}
.aoc-grid-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.aoc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  transition: all var(--transition);
  display: block;
  text-decoration: none;
}
.aoc-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-fine);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.aoc-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
  font-family: var(--font-serif);
}
.aoc-card-dept { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.aoc-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px var(--sp-2);
  border-radius: 3px;
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.aoc-badge-aoc { background: rgba(197,160,89,0.12); color: var(--gold); }
.aoc-badge-aop { background: rgba(74,144,217,0.12); color: #7eb8e8; }
.aoc-badge-igp { background: rgba(124,184,124,0.12); color: #7cb87c; }

/* ── Region Section Title ── */
.region-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.region-section-bar {
  width: 3px;
  height: 16px;
  background: var(--gold);
  border-radius: 2px;
  display: inline-block;
}

/* ═══════════════════════════════
   RÉGIONS — Composants dédiés
═══════════════════════════════ */

/* Grid régions */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-6);
}

/* Card région */
.region-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.region-card:hover {
  border-color: var(--border-fine);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.region-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.region-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.region-card:hover .region-card-img { transform: scale(1.05); }
.region-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,18,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--sp-4);
}

/* Wine badge */
.wine-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px var(--sp-3);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wine-badge-rouge { background: rgba(139,38,53,0.8); color: #f4a0a0; border: 1px solid rgba(139,38,53,0.6); }
.wine-badge-blanc { background: rgba(197,160,89,0.8); color: var(--bg-deep); border: 1px solid var(--gold); }
.wine-badge-rose  { background: rgba(200,120,140,0.8); color: #fff; border: 1px solid rgba(200,120,140,0.6); }

.region-stat-badge {
  background: rgba(18,18,18,0.7);
  border: 1px solid var(--border-fine);
  border-radius: 100px;
  padding: 3px var(--sp-3);
  font-size: 0.68rem;
  color: var(--gold);
}

.region-card-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; gap: var(--sp-4); }
.region-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); }
.region-card-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.region-card-subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.region-card-surface { text-align: right; flex-shrink: 0; }
.region-surface-val { display: block; font-size: 0.88rem; font-weight: 600; color: var(--gold); }
.region-surface-lbl { display: block; font-size: 0.68rem; color: var(--text-muted); }
.region-card-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.region-card-tags-row { display: flex; align-items: flex-start; gap: var(--sp-2); flex-wrap: wrap; }
.region-tags-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; flex-shrink: 0; padding-top: 3px; }
.region-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.region-tag {
  font-size: 0.72rem;
  padding: 2px var(--sp-2);
  border-radius: 3px;
  font-weight: 500;
}
.region-tag-grape { background: rgba(197,160,89,0.1); color: var(--gold); border: 1px solid rgba(197,160,89,0.2); }
.region-tag-aoc { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* Stats mini inline */
.region-card-stats {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-deep);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.region-mini-stat { text-align: center; }
.region-mini-stat-val { display: block; font-size: 0.88rem; font-weight: 600; color: var(--gold); }
.region-mini-stat-lbl { display: block; font-size: 0.68rem; color: var(--text-muted); }

.region-card-footer {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.region-aoc-count { font-size: 0.78rem; color: var(--text-muted); }
.region-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.region-card:hover .region-card-cta svg { transform: translateX(4px); }

/* CTA Banner */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.cta-banner h3 { font-size: 1.4rem; margin-bottom: 0; }

/* ═══════════════════════════════
   RÉGION — Template dynamique
═══════════════════════════════ */

.region-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-10);
  align-items: start;
}
.region-main { min-width: 0; }
.region-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: var(--sp-6); }

.region-content-block { margin-bottom: var(--sp-10); }
.region-content-block h2 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}
.region-prose { color: var(--text-secondary); line-height: 1.9; font-size: 0.97rem; }
.region-prose p { margin-bottom: var(--sp-4); }
.region-prose strong { color: var(--text-primary); }

/* Appellations list */
.appellations-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.appellation-item {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  transition: all var(--transition);
}
.appellation-item:hover { border-color: var(--border-fine); background: var(--bg-card); }
.appellation-item-left { display: flex; align-items: flex-start; gap: var(--sp-4); flex: 1; }
.appellation-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  display: block;
  transition: color var(--transition);
}
.appellation-name:hover { color: var(--gold); }
.appellation-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* Cépages compact */
.cepages-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--sp-2);
}
.cepage-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
}
.cepage-chip:hover { border-color: var(--border-fine); background: var(--bg-card); }
.cepage-chip-initials {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cepage-chip-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}
.cepage-chip:hover .cepage-chip-name { color: var(--text-primary); }
.cepage-chip svg { color: var(--text-muted); flex-shrink: 0; transition: all var(--transition); }
.cepage-chip:hover svg { color: var(--gold); transform: translateX(2px); }

/* Terroir Grid */
.terroir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.terroir-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.terroir-icon { font-size: 1.8rem; margin-bottom: var(--sp-3); }
.terroir-card h4 { font-size: 1rem; margin-bottom: var(--sp-3); color: var(--gold); }
.terroir-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.75; margin: 0; }

/* Patrimoine */
.patrimoine-block {
  display: flex;
  gap: var(--sp-5);
  background: linear-gradient(135deg, rgba(197,160,89,0.08), rgba(197,160,89,0.03));
  border: 1px solid var(--border-fine);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.patrimoine-icon { font-size: 2rem; flex-shrink: 0; }
.patrimoine-block h4 { font-size: 1rem; color: var(--gold); margin-bottom: var(--sp-2); }
.patrimoine-block p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

/* Sidebar Cards */
.sidebar-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color var(--transition);
}
.sidebar-card:hover { border-color: var(--border-fine); }
.sidebar-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.sidebar-table { display: flex; flex-direction: column; gap: 0; }
.sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  gap: var(--sp-3);
}
.sidebar-row:last-child { border-bottom: none; }
.sidebar-row span:first-child { color: var(--text-muted); flex-shrink: 0; }
.sidebar-row strong { color: var(--text-primary); font-weight: 500; text-align: right; }

.sidebar-region-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.sidebar-region-link:hover { color: var(--gold); border-color: var(--border-fine); background: var(--bg-card-hover); }
.sidebar-region-link svg { color: var(--text-muted); transition: all var(--transition); }
.sidebar-region-link:hover svg { color: var(--gold); transform: translateX(3px); }

.sidebar-cta {
  background: linear-gradient(135deg, rgba(197,160,89,0.1), rgba(197,160,89,0.05));
  border: 1px solid var(--border-fine);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
}
.sidebar-cta h4 { font-size: 1rem; margin-bottom: var(--sp-2); }
.sidebar-cta p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: var(--sp-5); }

/* ═══════════════════════════════
   CÉPAGES — Template dynamique
═══════════════════════════════ */

/* Hero badge cépage */
.cepage-hero-badge {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg-deep);
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(197,160,89,0.3);
}

/* Arômes cloud */
.aromes-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.arome-tag {
  padding: var(--sp-2) var(--sp-5);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
}
.arome-tag-rouge {
  background: rgba(139,38,53,0.1);
  border: 1px solid rgba(139,38,53,0.3);
  color: #e89090;
}
.arome-tag-rouge:hover { background: rgba(139,38,53,0.2); border-color: rgba(139,38,53,0.5); }
.arome-tag-blanc {
  background: rgba(197,160,89,0.1);
  border: 1px solid rgba(197,160,89,0.3);
  color: var(--gold);
}
.arome-tag-blanc:hover { background: rgba(197,160,89,0.2); }

/* Régions production */
.cepage-regions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
.cepage-regions-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}
.cepage-regions-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.cepage-regions-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.cepage-region-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Vinification block */
.cepage-vinif-block {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--sp-5);
}
.cepage-vinif-icon { font-size: 1.5rem; flex-shrink: 0; }

/* Accords */
.accords-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.accord-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.accord-item:hover { border-color: var(--border-fine); color: var(--text-primary); }

/* Navigation prev/next */
.cepage-nav { display: flex; gap: var(--sp-4); }
.cepage-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
}
.cepage-nav-btn:hover { border-color: var(--border-fine); background: var(--bg-card); }
.cepage-nav-next { justify-content: flex-end; }
.cepage-nav-label { display: block; font-size: 0.72rem; color: var(--text-muted); }
.cepage-nav-name { display: block; font-size: 0.9rem; font-weight: 600; color: var(--gold); margin-top: 2px; }
.cepage-nav-btn svg { color: var(--text-muted); flex-shrink: 0; transition: all var(--transition); }
.cepage-nav-btn:hover svg { color: var(--gold); }
.cepage-nav-prev:hover svg { transform: translateX(-3px); }
.cepage-nav-next:hover svg { transform: translateX(3px); }

/* Cépages similaires sidebar */
.cepage-similar-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.cepage-similar-link:hover { color: var(--gold); border-color: var(--border-fine); background: var(--bg-card-hover); }
.cepage-similar-initials {
  width: 28px; height: 28px;
  background: var(--bg-deep);
  border: 1px solid var(--border-fine);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

/* ═══════════════════════════════
   CARTE LEAFLET — Custom styles
═══════════════════════════════ */

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.map-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
#toggle-geojson.active {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}

/* Override Leaflet pour dark mode */
.leaflet-container {
  background: var(--bg-deep) !important;
  font-family: var(--font-sans) !important;
}
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-fine) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-card) !important;
  color: var(--text-primary) !important;
}
.leaflet-popup-tip { background: var(--bg-card) !important; }
.leaflet-popup-close-button { color: var(--text-muted) !important; }
.leaflet-control-zoom a {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-subtle) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--bg-card-hover) !important;
  color: var(--gold) !important;
}
.leaflet-control-attribution {
  background: rgba(18,18,18,0.75) !important;
  color: var(--text-muted) !important;
  font-size: 0.7rem !important;
}
.leaflet-control-attribution a { color: var(--text-muted) !important; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--bg-card);
  border-top: 2px solid var(--gold);
  border-radius: 0;
  padding: var(--sp-6);
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5), 0 0 30px rgba(197,160,89,0.2);
  display: none;
  animation: slideUp 0.5s ease forwards;
}

@media (min-width: 768px) {
  .cookie-banner {
    max-width: 600px;
    bottom: var(--sp-6);
    left: var(--sp-6);
    right: var(--sp-6);
    width: auto;
    border-radius: var(--radius-lg);
    border-top: 1px solid var(--gold);
  }
}
@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.cookie-banner-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
}
.cookie-banner-text a {
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.cookie-banner-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

/* ═══════════════════════════════
   CARROUSEL / SLIDER
═══════════════════════════════ */

/* ═══════════════════════════════
   VIGNERONS SECTION - PREMIUM DESIGN
═══════════════════════════════ */

.slider-wrapper {
  position: relative;
  margin-bottom: var(--sp-8);
}

.card-slider {
  display: flex;
  gap: var(--sp-6);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0;
}

.card-slider::-webkit-scrollbar {
  display: none;
}
.card-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.vignerons-card {
  flex: 0 0 clamp(260px, 35vw, 380px);
  scroll-snap-align: start;
  position: relative;
}

.vignerons-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-card), rgba(34,34,34,0.7));
  border: 1.5px solid rgba(197,160,89,0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
}

.vignerons-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,160,89,0.5), transparent);
  z-index: 1;
}

.vignerons-card-inner:hover {
  background: linear-gradient(135deg, var(--bg-card-hover), rgba(42,42,42,0.8));
  border-color: rgba(197,160,89,0.7);
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(197,160,89,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.vignerons-card-logo {
  position: absolute;
  top: var(--sp-5);
  left: var(--sp-5);
  z-index: 10;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(197,160,89,0.2), rgba(197,160,89,0.05));
  border: 2px solid rgba(197,160,89,0.5);
  border-radius: var(--radius-md);
  padding: 6px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.vignerons-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
}

.vignerons-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vignerons-card:hover .vignerons-card-image {
  transform: scale(1.08);
}

.vignerons-card-content {
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex: 1;
  position: relative;
  z-index: 2;
}

.vignerons-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.3;
  margin: 0;
  margin-top: var(--sp-3);
}

.vignerons-card-rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.vignerons-card-rating svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.vignerons-card-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
  padding-top: var(--sp-2);
  border-top: 1px solid rgba(197,160,89,0.2);
}

.vignerons-card-address {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}

.vignerons-card-address-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
  font-size: 1.1rem;
}

.vignerons-card-phone {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

.vignerons-card-phone-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.1rem;
}

.vignerons-card-phone a {
  color: var(--gold);
  font-weight: 700;
  transition: all var(--transition);
  text-decoration: none;
}

.vignerons-card-phone a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(212,180,122,0.4);
}

.vignerons-card-bottle {
  align-self: center;
  width: 70px;
  height: 120px;
  margin-top: auto;
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.vignerons-card:hover .vignerons-card-bottle {
  opacity: 1;
  transform: scaleY(1.08) scaleX(1.05);
  filter: drop-shadow(0 8px 16px rgba(197,160,89,0.3));
}

/* Carrousel Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-8);
  gap: var(--sp-6);
}

.slider-buttons {
  display: flex;
  gap: var(--sp-4);
}

.slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  color: var(--gold);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.slider-btn:hover {
  background: var(--bg-card-hover);
  color: var(--gold-light);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(197,160,89,0.2);
}

.slider-btn:active {
  transform: scale(0.95);
}

.slider-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slider-btn:disabled:hover {
  transform: none;
  color: var(--text-muted);
  background: var(--bg-card);
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(197,160,89,0.3);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.slider-dot:hover {
  background: rgba(197,160,89,0.6);
  transform: scale(1.2);
}

.slider-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(197,160,89,0.4);
}

/* ═══════════════════════════════
   WINE COLORS & PREMIUM SECTIONS
═══════════════════════════════ */

/* Wine Color Badges (Rouge/Blanc/Rosé) */
.wine-color-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.wine-color-rouge {
  background: rgba(200, 50, 50, 0.2);
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}

.wine-color-blanc {
  background: rgba(200, 180, 80, 0.2);
  color: #ffd700;
  border: 1px solid #ffd700;
}

.wine-color-rose {
  background: rgba(200, 100, 150, 0.2);
  color: #ff9999;
  border: 1px solid #ff9999;
}

/* Premium Section Container */
.section-premium {
  background: linear-gradient(135deg, var(--bg-card), rgba(34,34,34,0.5));
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 40px;
  margin: 40px 0;
  transition: all var(--transition);
}

.section-premium:hover {
  border-left-color: var(--gold-light);
  background: linear-gradient(135deg, var(--bg-card-hover), rgba(40,40,40,0.6));
}

.section-premium h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.section-premium p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Premium Appellation Header */
.appellation-header {
  background: linear-gradient(135deg, var(--bg-deep) 0%, transparent 100%),
              radial-gradient(circle at top right, rgba(197,160,89,0.1), transparent);
  padding: 60px 20px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--gold);
  position: relative;
}

.appellation-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin: 0 0 15px 0;
}

.appellation-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-deep);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Wine Grid (for Red/White distinction) */
.wine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.wine-section {
  padding: 30px;
  border-left: 4px solid;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
}

.wine-section.rouge {
  border-left-color: #ff6b6b;
}

.wine-section.blanc {
  border-left-color: #ffd700;
}

.wine-section.rose {
  border-left-color: #ff9999;
}

.wine-section h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  margin-top: 0;
}

.wine-section.rouge h3 {
  color: #ff6b6b;
}

.wine-section.blanc h3 {
  color: #ffd700;
}

.wine-section.rose h3 {
  color: #ff9999;
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .region-layout { grid-template-columns: 1fr; }
  .region-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .region-sidebar > * { flex: 1; min-width: 280px; }
  .regions-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .split-section { gap: var(--sp-10); }
}

@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border-fine); padding: var(--sp-4); gap: var(--sp-1); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); }
  .hamburger { display: flex; }
  .hero { min-height: 80vh; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; gap: var(--sp-8); }
  .split-section.reverse { direction: ltr; }
  .split-section[style*="flex-direction:row-reverse"] { flex-direction: column !important; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; gap: var(--sp-3); text-align: center; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: var(--sp-4); }
  .hero-stat-sep { height: 24px; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: var(--sp-8); }
  .terroir-grid { grid-template-columns: 1fr; }
  .cepage-regions-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Vignerons - TABLET GRID (2 colonnes) */
  .card-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5);
    overflow: visible;
    scroll-behavior: auto;
  }
  .vignerons-card {
    flex: unset;
    scroll-snap-align: unset;
  }
  .slider-controls { flex-direction: column; gap: var(--sp-6); display: none; }
  .slider-buttons { width: 100%; justify-content: center; display: none; }
  .slider-dots { width: 100%; justify-content: center; display: none; }

  #map-aoc { height: 360px !important; }
  .cookie-banner { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); padding: var(--sp-5); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
  .stats-grid-4 { grid-template-columns: 1fr 1fr; }
  .cepage-grid { grid-template-columns: 1fr; }
  .regions-grid { grid-template-columns: 1fr; }
  .aoc-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  /* Vignerons - MOBILE GRID (1 colonne) */
  .card-slider {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .vignerons-card-image {
    height: 200px;
  }

  .vignerons-card-content {
    padding: var(--sp-5) var(--sp-5) var(--sp-4);
  }

  .vignerons-card-title {
    font-size: 1.15rem;
  }

  .vignerons-card-logo {
    width: 52px;
    height: 52px;
    top: var(--sp-4);
    left: var(--sp-4);
  }

  .vignerons-card-bottle {
    width: 65px;
    height: 110px;
  }

  /* Cookie Banner - Mobile optimization */
  .cookie-banner {
    padding: var(--sp-5) var(--sp-4);
    bottom: 0;
  }

  .cookie-banner-title {
    font-size: 1rem;
    margin-bottom: var(--sp-2);
  }

  .cookie-banner-text {
    font-size: 0.8rem;
    margin-bottom: var(--sp-4);
  }

  .cookie-banner-actions {
    flex-direction: column;
    gap: var(--sp-2);
  }

  .cookie-banner-actions .btn {
    min-width: unset;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   CÉPAGE PAGES — Enhanced Design System v2
   Nouvelles classes pour cepage.php et cepages.php
═══════════════════════════════════════════════════════════ */

/* ── Reading Progress Bar ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── Hero cépage — Décorations ── */
.cepage-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0;
  animation: glowIn 1.2s ease forwards 0.3s;
}
@keyframes glowIn { to { opacity: 0.18; } }
.cepage-hero-glow-rouge { background: #8b2635; width: 600px; height: 600px; bottom: -30%; right: -5%; }
.cepage-hero-glow-blanc { background: var(--gold); width: 500px; height: 500px; bottom: -20%; right: 0; }

.cepage-monogram {
  position: absolute;
  right: 6%;
  bottom: -0.05em;
  font-family: var(--font-serif);
  font-size: clamp(9rem, 22vw, 20rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  color: var(--text-primary);
  opacity: 0;
  animation: monoIn 1.4s ease forwards 0.2s;
  letter-spacing: -0.04em;
}
@keyframes monoIn { to { opacity: 0.038; } }

/* ── Cépage detail layout ── */
.cepage-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-10);
  align-items: start;
  padding: var(--sp-12) 0 var(--sp-20);
}
.cepage-detail-main { min-width: 0; }

/* ── Section with icon title ── */
.cs {
  margin-bottom: var(--sp-12);
  scroll-margin-top: 90px;
}
.cs-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}
.cs-icon {
  width: 34px; height: 34px;
  background: var(--gold-glow);
  border: 1px solid var(--border-fine);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.cs-head h2 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

/* ── Stat cards (Caractéristiques) ── */
.cepage-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: var(--sp-4);
}
.cepage-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cepage-stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cepage-stat-card:hover { border-color: var(--border-fine); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.cepage-stat-card:hover::after { opacity: 1; }
.csp-icon { font-size: 1.4rem; display: block; margin-bottom: var(--sp-3); }
.csp-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
  line-height: 1.3;
}
.csp-lbl {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Arômes cloud v2 (tailles hiérarchiques) ── */
.aromes-cloud-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.av2 {
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: default;
  letter-spacing: 0.01em;
}
.av2-lg  { padding: 8px 20px;  font-size: 0.9rem; }
.av2-md  { padding: 6px 16px;  font-size: 0.83rem; }
.av2-sm  { padding: 4px 12px;  font-size: 0.75rem; opacity: 0.85; }
.av2-rouge { background: rgba(139,38,53,0.13); border: 1px solid rgba(139,38,53,0.3); color: #f0a0a8; }
.av2-rouge:hover { background: rgba(139,38,53,0.25); border-color: rgba(139,38,53,0.5); transform: scale(1.05); }
.av2-blanc { background: rgba(197,160,89,0.1); border: 1px solid rgba(197,160,89,0.28); color: var(--gold-light); }
.av2-blanc:hover { background: rgba(197,160,89,0.2); border-color: rgba(197,160,89,0.5); transform: scale(1.05); }

/* ── Region chips v2 ── */
.regions-chips-v2 { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.region-chip-v2 {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  text-decoration: none;
}
.region-chip-v2:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }
.rc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rc-dot-rouge { background: #8b2635; box-shadow: 0 0 4px rgba(139,38,53,0.6); }
.rc-dot-blanc { background: var(--gold); box-shadow: 0 0 4px rgba(197,160,89,0.6); }

/* ── International chips ── */
.intl-chips-v2 { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.intl-chip-v2 {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.intl-chip-v2:hover { color: var(--text-secondary); border-color: var(--border-fine); }

/* ── Appellation chips ── */
.app-chips-v2 { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.app-chip-v2 {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}
.app-chip-v2:hover, .app-chip-v2 a:hover { color: var(--gold); }
.app-chip-v2:hover { border-color: var(--gold); background: var(--gold-glow); }
.app-chip-v2 a { color: inherit; text-decoration: none; }

/* ── Vinification prose ── */
.cepage-vinif-v2 {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--sp-6);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.vinif-icon-v2 { font-size: 1.6rem; flex-shrink: 0; line-height: 1.4; }
.vinif-text-v2 { color: var(--text-secondary); line-height: 1.85; font-size: 0.95rem; }

/* ── Accord cards v2 ── */
.accord-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--sp-3);
}
.accord-card-v2 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  transition: all 0.25s ease;
}
.accord-card-v2:hover { border-color: var(--border-fine); background: var(--bg-card-hover); transform: translateY(-2px); }
.accord-emoji-v2 {
  font-size: 1.5rem;
  width: 44px; height: 44px;
  background: var(--gold-glow);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.accord-text-v2 { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.45; }

/* ── Potentiel de garde ── */
.garde-card-v2 {
  background: linear-gradient(135deg, rgba(197,160,89,0.07), rgba(197,160,89,0.02));
  border: 1px solid var(--border-fine);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}
.garde-icon-v2 { font-size: 2.2rem; flex-shrink: 0; }
.garde-text-v2 { color: var(--text-secondary); line-height: 1.85; font-size: 0.95rem; }

/* ── TOC sidebar ── */
.cepage-sidebar-v2 {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.cepage-toc-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.ctoc-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.ctoc-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ctoc-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}
.ctoc-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.ctoc-link.toc-active { color: var(--gold); background: var(--gold-glow); }
.ctoc-link::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.ctoc-link.toc-active::before { opacity: 1; }

/* ── Sidebar card v2 ── */
.scv2 {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: border-color 0.25s ease;
}
.scv2:hover { border-color: var(--border-fine); }
.scv2-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.scv2-dl { display: flex; flex-direction: column; gap: 0; }
.scv2-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.82rem;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.scv2-row:last-child { border-bottom: none; padding-bottom: 0; }
.scv2-key { color: var(--text-muted); flex-shrink: 0; }
.scv2-val { color: var(--text-primary); font-weight: 500; text-align: right; }

/* ── Enhanced Cépage cards v2 (list + similaires) ── */
.cepage-card-v2 {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.cepage-card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.cepage-card-v2.rouge::before {
  background: radial-gradient(ellipse at top right, rgba(139,38,53,0.1), transparent 65%);
}
.cepage-card-v2.blanc::before {
  background: radial-gradient(ellipse at top right, rgba(197,160,89,0.09), transparent 65%);
}
.cepage-card-v2:hover { border-color: var(--border-fine); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.cepage-card-v2:hover::before { opacity: 1; }

.cv2-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.cv2-mono {
  width: 50px; height: 50px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.cepage-card-v2:hover .cv2-mono { transform: scale(1.08); }
.cv2-mono-rouge {
  background: linear-gradient(135deg, #6a1b27, #8b2635);
  color: #f4a0a0;
  box-shadow: 0 4px 14px rgba(139,38,53,0.28);
}
.cv2-mono-blanc {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-deep);
  box-shadow: 0 4px 14px rgba(197,160,89,0.28);
}
.cv2-badge-type {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  flex-shrink: 0;
  margin-top: 2px;
}
.cv2-badge-rouge { background: rgba(139,38,53,0.15); color: #f4a0a0; border: 1px solid rgba(139,38,53,0.3); }
.cv2-badge-blanc { background: rgba(197,160,89,0.1); color: var(--gold); border: 1px solid rgba(197,160,89,0.25); }

.cv2-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
  transition: color 0.25s ease;
}
.cepage-card-v2:hover .cv2-name { color: var(--gold); }
.cv2-famille { font-size: 0.72rem; color: var(--text-muted); }

.cv2-aromes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: var(--sp-3);
  flex: 1;
}
.cv2-arome {
  font-size: 0.66rem;
  padding: 2px 8px;
  border-radius: 100px;
  color: var(--text-muted);
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.cv2-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: var(--sp-4);
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}
.cv2-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.25s ease;
}
.cepage-card-v2:hover .cv2-cta { color: var(--gold); gap: 8px; }

/* ── Cepage grid v2 (utilisé dans similaires + cepages.php) ── */
.cepage-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
}

/* ── Counter animate ── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.count-animated { animation: countUp 0.6s ease forwards; }

/* ── Responsive cepage ── */
@media (max-width: 1024px) {
  .cepage-detail-wrap { grid-template-columns: 1fr; }
  .cepage-sidebar-v2 { position: static; }
  .cepage-toc-v2 { display: none; }
}
@media (max-width: 768px) {
  .cepage-monogram { display: none; }
  .cepage-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .accord-grid-v2 { grid-template-columns: 1fr; }
  .cepage-grid-v2 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
  }
}

/* ── Region block (appellations) — CSS-only fade-in, no JS ── */
.aoc-region-block {
  animation: regionFadeIn 0.5s ease both;
}
@keyframes regionFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════
   APPELLATION CARDS v2  —  /appellations
   ════════════════════════════════════════════════════ */

.aoc-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* Base card */
.aoc-card-v2 {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
              border-color 0.3s ease, background 0.3s ease;
}

/* Top accent line (gold for AOC, green for IGP) */
.aoc-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(212,175,55,0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.aoc-card-v2.is-igp::before {
  background: linear-gradient(90deg, #7cb87c 0%, rgba(124,184,124,0.2) 100%);
}

/* Radial shimmer on hover */
.aoc-card-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(212,175,55,0.07) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.aoc-card-v2.is-igp::after {
  background: radial-gradient(ellipse at 70% 20%, rgba(124,184,124,0.07) 0%, transparent 65%);
}

.aoc-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28), 0 0 0 1px rgba(212,175,55,0.08);
  background: var(--bg-card-hover);
}
.aoc-card-v2:hover::before,
.aoc-card-v2:hover::after { opacity: 1; }

.aoc-card-v2.is-igp:hover {
  border-color: rgba(124,184,124,0.35);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28), 0 0 0 1px rgba(124,184,124,0.08);
}

/* Badges row */
.aoc-card-v2-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.aoc-badge-v2 {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}
.aoc-badge-v2-aoc {
  background: rgba(197,160,89,0.15);
  color: var(--gold);
  border: 1px solid rgba(197,160,89,0.3);
}
.aoc-badge-v2-igp {
  background: rgba(124,184,124,0.12);
  color: #7cb87c;
  border: 1px solid rgba(124,184,124,0.22);
}
.aoc-badge-v2-niveau {
  background: rgba(212,175,55,0.07);
  color: var(--text-muted);
  border: 1px solid rgba(212,175,55,0.15);
  font-size: 0.6rem;
}

/* Appellation name */
.aoc-card-v2-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
  transition: color 0.25s ease;
}
.aoc-card-v2:hover .aoc-card-v2-name { color: var(--gold); }

/* Region line */
.aoc-card-v2-region {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.aoc-card-v2-region strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Couleurs badges */
.aoc-card-v2-couleurs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* Description */
.aoc-card-v2-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

/* Footer CTA */
.aoc-card-v2-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}
.aoc-card-v2-cta {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.25s ease, gap 0.25s ease;
}
.aoc-card-v2-cta svg {
  width: 13px; height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.aoc-card-v2:hover .aoc-card-v2-cta { color: var(--gold); gap: 8px; }
.aoc-card-v2:hover .aoc-card-v2-cta svg { transform: translateX(3px); }

/* Responsive */
@media (max-width: 1100px) {
  .aoc-grid-v2 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
@media (max-width: 768px) {
  .aoc-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .aoc-card-v2 { padding: 14px 12px; }
  .aoc-card-v2-name { font-size: 0.85rem; }
  .aoc-card-v2-desc { display: none; }
  .aoc-card-v2-footer { padding-top: var(--sp-2); }
}

/* =====================================================
   ACTIVITY CAROUSEL — Bannière d'activités & dégustations
   ===================================================== */

.activity-carousel-section {
  background: linear-gradient(135deg, rgba(34,34,34,0.5), rgba(42,42,42,0.5));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 40px 0;
  box-shadow: 0 0 30px rgba(197,160,89,0.08);
}

.activity-carousel-header {
  margin-bottom: 24px;
}

.activity-carousel-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.activity-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.activity-tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  bottom: -1px;
}

.activity-tab-btn:hover {
  color: var(--gold);
}

.activity-tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.activity-carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  /* Scroll natif : swipe gratuit sur mobile */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Masquer la scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 calc(33.333% - 14px);
  min-height: 280px;
  scroll-snap-align: start;
}

.activity-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  overflow: hidden;
}

.activity-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(197,160,89,0.15);
  transform: translateY(-2px);
}

.activity-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.2);
}

.activity-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.activity-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.3;
  color: var(--gold);
  font-weight: 600;
}

.activity-region {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  text-transform: capitalize;
}

.activity-price {
  font-size: 1.1rem;
  color: var(--gold);
  margin: 4px 0 0 0;
  font-weight: 600;
}

.activity-source {
  display: inline-block;
  font-size: 0.7rem;
  background: var(--border);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 3px;
  margin-top: auto;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carousel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

.carousel-prev,
.carousel-next {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(197,160,89,0.2);
}

.carousel-prev:active,
.carousel-next:active {
  transform: scale(0.95);
}

.activity-empty {
  color: var(--text-secondary);
  text-align: center;
  padding: 40px 20px;
  font-style: italic;
}

.activity-fallback {
  text-align: center;
  padding: 20px;
}

.activity-fallback a {
  display: inline-block;
}

.activity-fallback-image {
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.activity-fallback a:hover .activity-fallback-image {
  transform: scale(1.02);
}

/* ── Responsive Carousel ── */
@media (max-width: 1199px) {
  .carousel-item {
    flex: 0 0 calc(50% - 10px);
  }
  .carousel-nav {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .activity-carousel-section {
    padding: 20px 16px;
    margin: 24px 0;
  }

  .activity-carousel-header h3 {
    font-size: 1.4rem;
  }

  .activity-tabs {
    flex-wrap: wrap;
  }

  .activity-tab-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  /* Sur mobile : carte visible à ~85 % de l'écran,
     le débordement montre qu'il y en a d'autres */
  .carousel-item {
    flex: 0 0 85vw;
    min-height: 240px;
  }

  .activity-card {
    flex-direction: row;
    padding: 10px;
  }

  .activity-image {
    width: 100px;
    height: 100px;
    margin: 0 12px 0 0;
    flex-shrink: 0;
  }

  .carousel-nav {
    margin-top: 16px;
  }

  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    flex: 0 0 92vw;
  }
}