/*
Theme Name: Terres de Brouelle
Theme URI: https://lesterresdebrouelle.fr
Author: Terres de Brouelle
Description: Thème sur-mesure éco-conçu pour Terres de Brouelle — élevage artisanal de vers de farine.
Version: 1.0.0
Text Domain: terres-de-brouelle
License: GNU General Public License v2 or later
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #FFFEFF;
  --bg-alt: #f7faf7;
  --bg-card: #fff;
  --border: #e8f0e8;
  --text: #3a5a3a;
  --text-light: #5a8a5a;
  --green: #75B276;
  --green-dark: #4a8a4a;
  --green-light: #AED3AF;
  --accent: #E18B22;
  --terracotta: #C67E50;
  --red: #DE0F3F;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 50px;
  --shadow: 0 12px 30px rgba(117,178,118,.1);
  --shadow-lg: 0 20px 60px rgba(117,178,118,.2);
  --transition: all .3s ease;
  --max-width: 1100px;
  --font-body: 'Tilt Neon', sans-serif;
  --font-display: 'Tilt Warp', sans-serif;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #1a1f1a;
  --bg-alt: #222822;
  --bg-card: #2a302a;
  --border: #3a4a3a;
  --text: #d4e8d4;
  --text-light: #9aba9a;
  --green: #8dc88d;
  --green-dark: #6aaa6a;
  --accent: #E8A040;
}

/* Font scaling */
[data-font="normal"] { font-size: 100%; }
[data-font="large"] { font-size: 115%; }
[data-font="xlarge"] { font-size: 130%; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-dark); }

/* ===== FOCUS VISIBLE ===== */
*:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--green); color: var(--white);
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; z-index: 200;
  font-family: var(--font-body);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 20px; max-width: var(--max-width); margin: 0 auto; }
.section-alt { background: var(--bg-alt); }
.section-green { background: var(--green); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green); line-height: 1.2; }
h1 { font-size: 2.8rem; letter-spacing: -1px; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.25rem; }
.sub-label {
  color: var(--text-light); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.fade-up { animation: fadeUp 0.6s ease-out both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; }
.d3 { animation-delay: .3s; } .d4 { animation-delay: .4s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); border: none;
  cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--green); color: var(--white);
  padding: 14px 32px; border-radius: var(--radius-full); font-size: 0.95rem;
}
.btn-primary:hover {
  background: var(--green-dark); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(117,178,118,.3);
}
.btn-outline {
  background: transparent; color: var(--green);
  border: 2px solid var(--green-light) !important;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 0.875rem;
}
.btn-outline:hover { background: var(--green-light); color: var(--white); }
.btn-sm { padding: 10px 22px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,254,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
[data-theme="dark"] .site-header { background: rgba(26,31,26,.95); }

.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; height: 68px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.site-logo img,
.site-logo .custom-logo-link img,
.custom-logo-link img { height: 40px; width: auto; max-width: 200px; }
.site-logo .custom-logo-link { display: flex; align-items: center; }
.site-logo span {
  font-family: var(--font-display);
  font-size: 1.25rem; color: var(--green);
}

/* ===== NAV ===== */
.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a, .main-nav button.nav-link {
  color: var(--green); font-size: 0.875rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: var(--transition); cursor: pointer;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font-body);
}
.main-nav a:hover, .main-nav a.active,
.main-nav button.nav-link:hover, .main-nav button.nav-link.active {
  border-bottom-color: var(--green); color: var(--green-dark);
}

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: -10px;
  padding-top: 8px; flex-direction: column; z-index: 60;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: flex; }
.nav-dropdown-inner {
  background: var(--bg-card); border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 8px 0; min-width: 160px;
}
.nav-dropdown a {
  display: block; padding: 10px 18px;
  font-size: 0.8rem; color: var(--text-light);
}
.nav-dropdown a:hover { background: var(--bg-alt); color: var(--green); }

/* Header buttons */
.header-buttons { display: flex; align-items: center; gap: 12px; }
.header-btn {
  background: none; border: none; cursor: pointer;
  padding: 6px; display: flex; align-items: center;
}
.header-btn svg { stroke: var(--green); }

/* Hamburger */
.hamburger { display: none; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 100;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
}
.mobile-nav a { font-size: 1.25rem; color: var(--green); }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; cursor: pointer;
}
.mobile-nav-sub {
  display: flex; gap: 10px;
}
.mobile-nav-sub a {
  font-size: 0.8rem; color: var(--text-light);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 14px;
}

/* ===== A11Y PANEL ===== */
.a11y-panel {
  position: absolute; top: 68px; right: 20px;
  width: 320px; max-width: calc(100vw - 40px);
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  z-index: 70; padding: 24px;
}
.a11y-panel h3 { font-size: 1.1rem; margin-bottom: 20px; }
.a11y-group { margin-bottom: 20px; }
.a11y-group-label { font-size: 0.8rem; color: var(--text-light); font-weight: 600; margin-bottom: 8px; }
.a11y-sizes { display: flex; gap: 8px; }
.a11y-size-btn {
  flex: 1; padding: 10px 0; border-radius: var(--radius-sm);
  cursor: pointer; text-align: center; transition: var(--transition);
  border: 2px solid var(--border); background: transparent;
  color: var(--text-light); font-family: var(--font-display);
}
.a11y-size-btn.active { border-color: var(--green); background: var(--bg-alt); color: var(--green); }
.a11y-toggle {
  display: flex; justify-content: space-between; align-items: center;
}
.toggle-switch {
  width: 48px; height: 26px; border-radius: 13px;
  border: none; cursor: pointer; position: relative;
  transition: var(--transition); background: var(--border);
}
.toggle-switch.active { background: var(--green); }
.toggle-switch::after {
  content: ''; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); position: absolute; top: 3px; left: 3px;
  transition: left .3s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch.active::after { left: 25px; }
.a11y-cb-options { display: flex; flex-direction: column; gap: 6px; }
.a11y-cb-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  cursor: pointer; border: 2px solid var(--border);
  background: transparent; text-align: left;
  font-family: var(--font-body); font-size: 0.8rem;
  color: var(--text); transition: var(--transition);
}
.a11y-cb-btn.active { border-color: var(--green); background: var(--bg-alt); }
.a11y-cb-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.a11y-lang-options { display: flex; gap: 8px; }
.a11y-lang-btn {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.8rem; font-family: var(--font-body);
  border: 2px solid var(--border); background: transparent;
  color: var(--text-light); transition: var(--transition);
}
.a11y-lang-btn.active { border-color: var(--green); background: var(--bg-alt); color: var(--green); }

/* ===== SEARCH ===== */
.search-bar { max-width: var(--max-width); margin: 0 auto; padding: 0 0 16px; }
.search-input-wrap { flex: 1; position: relative; }
.search-input-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.search-input {
  width: 100%; padding: 12px 16px 12px 42px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  font-size: 0.875rem; font-family: var(--font-body);
  color: var(--text); outline: none;
  background: var(--bg-alt); transition: border .3s;
}
.search-input:focus { border-color: var(--green); background: var(--bg-card); box-shadow: 0 0 0 3px rgba(117,178,118,.25); }
.search-results {
  margin-top: 12px; background: var(--bg-card);
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  max-height: 350px; overflow-y: auto;
}
.search-results-section { padding: 12px 16px; }
.search-results-label {
  font-size: 0.7rem; color: var(--text-light); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
}
.search-result-item:hover { background: var(--bg-alt); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow); border-color: var(--green-light);
}
.card-body { padding: 18px 16px; }

/* ===== PRODUCT CARD ===== */
.product-card { position: relative; cursor: pointer; }
.product-card .tag {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: var(--white);
  font-size: 0.7rem; padding: 4px 10px;
  border-radius: 20px; font-weight: 600; z-index: 2;
}
.product-card .tag-live {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: var(--white);
  font-size: 0.65rem; padding: 3px 8px;
  border-radius: 20px; font-weight: 600; z-index: 2;
}
.product-card img { width: 100%; height: 180px; object-fit: cover; }
.product-card h3 { font-size: 0.95rem; color: var(--green-dark); margin-bottom: 4px; }
.product-card .price {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--green);
}
.product-card .variants-info { font-size: 0.7rem; color: var(--terracotta); margin-bottom: 8px; }
.product-card .price-from { font-size: 0.7rem; color: var(--text-light); display: block; }
.product-add {
  background: var(--green); color: var(--white);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; border: none; cursor: pointer;
  transition: var(--transition);
}
.product-add:hover { background: var(--green-dark); }

/* ===== VALUE CARD ===== */
.value-card { padding: 28px 24px; }
.value-card .icon { font-size: 2rem; margin-bottom: 14px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: 0.875rem; line-height: 1.6; color: var(--text-light); }

/* ===== ARTICLE CARD ===== */
.article-card { cursor: pointer; }
.article-card img { width: 100%; height: 160px; object-fit: cover; }
.article-card .cat {
  font-size: 0.7rem; color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
}
.article-card h3 { font-size: 1rem; color: var(--green-dark); margin: 8px 0; line-height: 1.3; }
.article-card .meta { font-size: 0.75rem; color: var(--text-light); }

/* Featured article */
.article-featured { display: flex; flex-wrap: wrap; }
.article-featured img { flex: 1 1 350px; min-height: 250px; object-fit: cover; }
.article-featured .card-body { flex: 1 1 350px; padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; }
.article-featured h2 { font-size: 1.5rem; margin-bottom: 12px; line-height: 1.3; }

/* ===== HERO ===== */
.hero { background: linear-gradient(175deg, var(--bg-alt) 0%, var(--bg) 60%); padding: 0 20px; }
.hero-inner { display: flex; align-items: center; gap: 60px; padding: 60px 20px; max-width: var(--max-width); margin: 0 auto; }
.hero-content { flex: 1; }
.hero-tag {
  display: inline-block; background: var(--green);
  color: var(--white); font-size: 0.75rem; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.05rem; line-height: 1.7; color: var(--text-light); margin-bottom: 32px; max-width: 480px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat-num { font-family: var(--font-display); font-size: 1.35rem; color: var(--green); }
.hero-stat-label { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.hero-image {
  width: 320px; height: 320px; border-radius: 32px;
  object-fit: cover; box-shadow: var(--shadow-lg);
}

/* ===== BANDEAU ===== */
.bandeau { background: var(--green); padding: 14px 20px; text-align: center; }
.bandeau p { color: var(--white); font-size: 0.875rem; font-weight: 500; }

/* ===== GRIDS ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }

/* ===== PAGE HEADER ===== */
.page-header { background: linear-gradient(175deg, var(--bg-alt), var(--bg)); padding: 50px 20px 30px; }
.page-header-inner { max-width: var(--max-width); margin: 0 auto; }
.page-header h1 { margin-bottom: 12px; }
.page-header p { font-size: 1rem; color: var(--text-light); max-width: 550px; }
.page-header.center { text-align: center; }
.page-header.center p { margin: 0 auto; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: flex; gap: 50px; align-items: flex-start; }
.product-gallery { flex: 1 1 400px; min-width: 0; }
.product-gallery-main img { width: 100%; border-radius: var(--radius); margin-bottom: 16px; }
.product-gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.product-gallery-thumbs img { border-radius: var(--radius-sm); cursor: pointer; height: 100px; object-fit: cover; width: 100%; }
.product-info { flex: 1 1 400px; min-width: 0; }
.product-info h1 { font-size: 2rem; margin-bottom: 8px; }
.product-variants { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.variant-btn {
  padding: 10px 18px; border-radius: 12px; font-size: 0.8rem;
  cursor: pointer; font-family: var(--font-body); transition: var(--transition);
  border: 2px solid var(--border); background: transparent; color: var(--text-light);
}
.variant-btn.active { border-color: var(--green); background: var(--bg-alt); color: var(--green); }
.product-price { font-family: var(--font-display); font-size: 2.25rem; color: var(--green); margin-bottom: 24px; }
.quantity-selector {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
}
.quantity-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: var(--radius-full); overflow: hidden;
}
.quantity-btn {
  width: 40px; height: 40px; border: none;
  background: var(--bg-alt); cursor: pointer;
  font-size: 1.1rem; color: var(--green);
}
.quantity-val { width: 40px; text-align: center; font-size: 0.95rem; font-weight: 600; }
.product-section { padding: 24px 0; border-top: 1px solid var(--border); }
.product-section h3 { font-size: 1.1rem; margin-bottom: 12px; }
.product-section p { font-size: 0.875rem; line-height: 1.8; color: var(--text-light); }
.live-warning {
  margin-top: 12px; padding: 12px 16px;
  background: #FFF5EB; border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  display: flex; gap: 10px; align-items: flex-start;
}
.live-warning p { font-size: 0.8rem; color: var(--terracotta); line-height: 1.5; }

/* ===== BACK LINK ===== */
.back-link {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 0.875rem;
  margin-bottom: 30px; display: flex; align-items: center;
  gap: 6px; font-family: var(--font-body);
  text-decoration: none;
}
.back-link:hover { color: var(--green); }

/* ===== FILTERS ===== */
.filters { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 20px; border-radius: var(--radius-full);
  border: 2px solid var(--border); background: var(--bg-card);
  color: var(--green); font-size: 0.8rem; cursor: pointer;
  font-family: var(--font-body); transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { border-color: var(--green); background: var(--green); color: var(--white); }

/* ===== SHIPPING INFO ===== */
.shipping-info {
  margin-top: 40px; padding: 20px 24px;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.shipping-info .icon { font-size: 1.75rem; }
.shipping-info h4 { font-family: var(--font-display); font-size: 1rem; color: var(--green); margin-bottom: 4px; }
.shipping-info p { font-size: 0.8rem; color: var(--text-light); }
.shipping-warning { font-size: 0.75rem; color: var(--terracotta); margin-top: 6px; }

/* ===== ELEVAGE ===== */
.elevage-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.elevage-intro img { border-radius: var(--radius); width: 100%; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.process-step .num { font-family: var(--font-display); font-size: 2.5rem; color: var(--green-light); margin-bottom: 12px; }
.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 0.8rem; line-height: 1.6; color: var(--text-light); }
.cta-banner { text-align: center; padding: 50px 20px; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; font-size: 1.75rem; }
.cta-banner p { color: rgba(255,255,255,.8); font-size: 0.95rem; margin-bottom: 28px; }
.cta-banner .btn { background: var(--white); color: var(--green); }

/* ===== ARTICLE SINGLE ===== */
.article-single { max-width: 780px; }
.article-single .meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-light); margin-top: 6px; }
.article-single h1 { font-size: 2.25rem; margin: 16px 0 24px; }
.article-single .featured-image { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.article-content { font-size: 1rem; line-height: 1.9; color: var(--text-light); }
.article-content p { margin-bottom: 20px; }
.article-content blockquote {
  background: var(--bg-alt); border-left: 4px solid var(--green);
  padding: 20px 24px; border-radius: 0 12px 12px 0;
  margin: 28px 0; font-style: italic; color: var(--green);
}
.related-articles { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-articles h3 { font-size: 1.25rem; margin-bottom: 20px; }
.related-item {
  display: flex; gap: 16px; padding: 16px; align-items: center;
}
.related-item img { width: 100px; min-width: 100px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.related-item h4 { font-size: 0.875rem; color: var(--green-dark); margin-bottom: 4px; line-height: 1.3; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label {
  font-size: 0.8rem; color: var(--green); font-weight: 600;
  margin-bottom: 6px; display: block;
}
.form-group label .required { color: var(--red); }
.field {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  border: 1.5px solid var(--border); font-family: var(--font-body);
  font-size: 0.875rem; color: var(--text); outline: none;
  background: var(--bg-alt); transition: border .3s; resize: vertical;
}
.field:focus { border-color: var(--green); background: var(--bg-card); box-shadow: 0 0 0 3px rgba(117,178,118,.25); }
.form-note { font-size: 0.75rem; color: var(--text-light); }
.contact-info-card {
  padding: 20px 22px; display: flex; gap: 16px; align-items: center;
}
.contact-info-card .icon { font-size: 1.75rem; }
.contact-info-card .label { font-size: 0.75rem; color: var(--text-light); font-weight: 600; margin-bottom: 2px; }
.contact-info-card .value { font-size: 0.95rem; color: var(--green-dark); }
.social-box { margin-top: 28px; padding: 24px; background: var(--bg-alt); border-radius: var(--radius); }
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-link {
  font-size: 0.8rem; color: var(--green);
  background: var(--bg-card); padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
}
.social-link:hover { border-color: var(--green); }

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 780px; }
.legal-content h3 { font-size: 1.25rem; margin-top: 28px; margin-bottom: 12px; }
.legal-content p { font-size: 0.95rem; line-height: 1.9; color: var(--text-light); margin-bottom: 8px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 0 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding: 50px 0 30px;
  max-width: var(--max-width); margin: 0 auto;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 30px; width: auto; }
.footer-logo span { font-family: var(--font-display); font-size: 1.1rem; color: var(--green); }
.footer-desc { font-size: 0.875rem; line-height: 1.7; color: var(--text-light); max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  font-size: 0.75rem; color: var(--text-light);
  background: var(--bg-card); padding: 6px 14px;
  border-radius: 20px; border: 1px solid var(--border);
}
.footer-social a:hover { color: var(--green); border-color: var(--green); }
.footer-col h4 { font-family: var(--font-display); font-size: 0.95rem; color: var(--green); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto;
  padding: 16px 0; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-light); }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: 100px 20px; }
.page-404 h1 { font-size: 6rem; margin-bottom: 16px; }
.page-404 p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .section { padding: 50px 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero-inner { flex-direction: column; text-align: center; }
  .hero-visual { order: -1; }
  .hero-image { width: 240px; height: 240px; }
  .hero p { max-width: 100%; }
  .hero-stats { justify-content: center; }

  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .product-detail { flex-direction: column; }
  .elevage-intro { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-desc { max-width: 100%; }
  .footer-social { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .article-featured { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-image { width: 200px; height: 200px; }
}
/* ===== TARTEAUCITRON FIX ===== */
#tarteaucitronRoot * { box-sizing: border-box; }
#tarteaucitronRoot #tarteaucitronAlertBig {
  max-height: 90vh !important;
  overflow-y: auto !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
}
#tarteaucitronRoot #tarteaucitron {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  z-index: 99999 !important;
}
#tarteaucitronRoot #tarteaucitron #tarteaucitronServices {
  max-height: 60vh !important;
  overflow-y: auto !important;
}
/* ===== WOOCOMMERCE CUSTOM STYLE ===== */
.woocommerce-page .section { padding-top: 30px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; }
.woocommerce ul.products li.product { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-light); }
.woocommerce ul.products li.product a img { width: 100%; height: 200px; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-display); font-size: 0.95rem; color: var(--green-dark); padding: 12px 16px 4px; }
.woocommerce ul.products li.product .price { font-family: var(--font-display); font-size: 1.1rem; color: var(--green); padding: 0 16px 12px; }
.woocommerce ul.products li.product .button { background: var(--green); color: #fff; border: none; border-radius: var(--radius-full); padding: 10px 20px; font-family: var(--font-display); font-size: 0.8rem; margin: 0 16px 16px; cursor: pointer; transition: var(--transition); display: inline-block; text-decoration: none; }
.woocommerce ul.products li.product .button:hover { background: var(--green-dark); }
.woocommerce .onsale { background: var(--accent); color: #fff; border-radius: 20px; padding: 4px 10px; font-size: 0.7rem; }
.woocommerce div.product { display: flex; gap: 50px; flex-wrap: wrap; }
.woocommerce div.product div.images { flex: 1 1 400px; min-width: 0; }
.woocommerce div.product div.images img { border-radius: var(--radius); }
.woocommerce div.product div.summary { flex: 1 1 400px; min-width: 0; }
.woocommerce div.product .product_title { font-family: var(--font-display); font-size: 2rem; color: var(--green); margin-bottom: 8px; }
.woocommerce div.product .price { font-family: var(--font-display); font-size: 2rem; color: var(--green); margin-bottom: 24px; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; }
.woocommerce .quantity .qty { width: 60px; padding: 10px; border: 1.5px solid var(--border); border-radius: 10px; text-align: center; font-size: 1rem; }
.woocommerce .single_add_to_cart_button { background: var(--green) !important; color: #fff !important; border: none !important; border-radius: var(--radius-full) !important; padding: 14px 32px !important; font-family: var(--font-display) !important; font-size: 0.95rem !important; cursor: pointer; transition: var(--transition); }
.woocommerce .single_add_to_cart_button:hover { background: var(--green-dark) !important; transform: translateY(-2px); }
.woocommerce table.variations select { padding: 10px; border: 1.5px solid var(--border); border-radius: 10px; font-family: var(--font-body); }
.woocommerce table.variations label { font-weight: 600; color: var(--text-light); }
.woocommerce-cart table.cart { width: 100%; border-collapse: collapse; }
.woocommerce-cart table.cart td, .woocommerce-cart table.cart th { padding: 12px; border-bottom: 1px solid var(--border); }
.woocommerce-cart .cart_totals { background: var(--bg-alt); padding: 24px; border-radius: var(--radius); }
.woocommerce-checkout .form-row label { font-size: 0.85rem; color: var(--green); font-weight: 600; }
.woocommerce-checkout .form-row input, .woocommerce-checkout .form-row select, .woocommerce-checkout .form-row textarea { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 10px; font-family: var(--font-body); font-size: 0.875rem; }
.woocommerce #place_order { background: var(--green); color: #fff; border: none; border-radius: var(--radius-full); padding: 16px 40px; font-family: var(--font-display); font-size: 1rem; cursor: pointer; width: 100%; }
.woocommerce #place_order:hover { background: var(--green-dark); }
.woocommerce-message, .woocommerce-info { background: var(--bg-alt); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); margin-bottom: 20px; }
.woocommerce-error { background: #FFF5EB; border-left: 4px solid var(--red); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 20px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { color: var(--text-light); font-size: 0.85rem; }
@media (max-width: 768px) {
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .woocommerce div.product { flex-direction: column; }
}
@media (max-width: 480px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
}