/*
Theme Name:   Gardenius Holzwerk
Theme URI:    https://gardenius.example.com
Description:  Thème WordPress / WooCommerce complet pour Gardenius Sp. z o.o. inspiré de la charte éditoriale bois de chauffage, pellets, briquettes et poêles (beige chaud, terracotta #c8532a, brun foncé #241e19, typographie serif éditoriale + sans-serif moderne).
Author:       Gardenius Web Studio
Version:      2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain:  gardenius-holzwerk
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --gh-bg: #faf8f5;
  --gh-surface: #ffffff;
  --gh-sand: #efeae2;
  --gh-sand-deep: #e6dfd4;
  --gh-dark: #241e19;
  --gh-dark-soft: #332b24;
  --gh-ink: #1f1a16;
  --gh-muted: #6e645b;
  --gh-accent: #c8532a;
  --gh-accent-hover: #ad431e;
  --gh-border: #e5ded4;
  --gh-radius-sm: 6px;
  --gh-radius-md: 10px;
  --gh-radius-lg: 14px;
  --gh-font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --gh-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gh-container: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--gh-bg);
  color: var(--gh-ink);
  font-family: var(--gh-font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.gh-container {
  max-width: var(--gh-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== TOPBAR & HEADER ==================== */
.gh-header {
  background: var(--gh-surface);
  border-bottom: 1px solid var(--gh-border);
  position: sticky;
  top: 0;
  z-index: 999;
}

.gh-header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.gh-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gh-logo img {
  height: 46px;
  width: auto;
}

/* Barre de recherche centrale style pilule */
.gh-search-form {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.gh-search-input {
  width: 100%;
  height: 42px;
  background: var(--gh-bg);
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  padding: 0 46px 0 18px;
  font-family: var(--gh-font-sans);
  font-size: 0.9rem;
  color: var(--gh-ink);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gh-search-input:focus {
  border-color: var(--gh-accent);
  background: var(--gh-surface);
}

.gh-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gh-dark);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 600;
}

.gh-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gh-ink);
  transition: color 0.15s;
}

.gh-action-link:hover {
  color: var(--gh-accent);
}

.gh-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gh-sand);
  border: 1px solid var(--gh-border);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
}

.gh-cart-badge {
  background: var(--gh-accent);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Barre de navigation secondaire */
.gh-nav-bar {
  border-top: 1px solid var(--gh-border);
  background: var(--gh-surface);
}

.gh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  overflow-x: auto;
}

.gh-nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.gh-nav-list a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gh-ink);
  transition: color 0.15s;
}

.gh-nav-list a:hover {
  color: var(--gh-accent);
}

.gh-nav-meta {
  font-size: 0.8rem;
  color: var(--gh-muted);
  white-space: nowrap;
}

/* ==================== HERO EDITORIAL ASYMETRIQUE ==================== */
.gh-hero-wrap {
  padding: 26px 0 0;
}

.gh-hero-box {
  background: var(--gh-sand);
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 390px;
  border: 1px solid var(--gh-border);
}

.gh-hero-content {
  padding: 46px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gh-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gh-accent);
  margin-bottom: 10px;
}

.gh-hero-title {
  font-family: var(--gh-font-serif);
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--gh-dark);
  margin: 0 0 16px;
}

.gh-hero-desc {
  color: var(--gh-muted);
  font-size: 0.98rem;
  max-width: 460px;
  margin: 0 0 26px;
}

.gh-hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.gh-btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gh-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: var(--gh-radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gh-btn-accent:hover {
  background: var(--gh-accent-hover);
}

.gh-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--gh-dark);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 11px 16px;
  border-radius: var(--gh-radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gh-btn-dark:hover {
  background: var(--gh-accent);
}

.gh-hero-note {
  font-size: 0.8rem;
  color: var(--gh-muted);
}

.gh-hero-media {
  position: relative;
  background: #3b2a1e;
  overflow: hidden;
}

.gh-hero-pattern {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.gh-hero-overlay-caption {
  position: absolute;
  bottom: 22px;
  left: 24px;
  background: rgba(36, 30, 25, 0.82);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--gh-radius-sm);
  font-family: var(--gh-font-serif);
  font-size: 1.05rem;
}

/* Barre de réassurance sous le Hero */
.gh-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--gh-border);
  font-size: 0.82rem;
  color: var(--gh-muted);
  font-weight: 500;
}

.gh-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gh-trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gh-accent);
  flex-shrink: 0;
}

/* ==================== SECTIONS & EN-TÊTES DE SECTION ==================== */
.gh-section {
  padding: 44px 0;
}

.gh-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.gh-section-title {
  font-family: var(--gh-font-serif);
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 700;
  color: var(--gh-dark);
  margin: 0;
  letter-spacing: -0.015em;
}

.gh-section-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gh-ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gh-section-link:hover {
  color: var(--gh-accent);
}

/* ==================== GRILLE 6 CATÉGORIES VISUELLES ==================== */
.gh-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.gh-cat-card {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-md);
  padding: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.gh-cat-card:hover,
.gh-cat-card.is-active {
  transform: translateY(-2px);
  border-color: var(--gh-accent);
}

.gh-cat-thumb {
  background: var(--gh-bg);
  border-radius: var(--gh-radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 10px;
}

.gh-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-cat-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 2px;
}

.gh-cat-sub {
  font-size: 0.77rem;
  color: var(--gh-muted);
}

/* ==================== GRILLE PRODUITS 4 COLONNES ==================== */
.gh-product-grid,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gh-prod-card,
ul.products li.product {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  margin: 0 !important;
  width: auto !important;
}

.gh-prod-card:hover,
ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(36, 30, 25, 0.06);
}

.gh-prod-img-wrap {
  background: var(--gh-bg);
  border-radius: var(--gh-radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 14px;
  position: relative;
}

.gh-prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-prod-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gh-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.gh-prod-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gh-dark);
  margin: 0 0 10px;
  line-height: 1.3;
}

.gh-prod-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gh-dark);
  margin-bottom: 2px;
}

.gh-prod-unit-price {
  font-size: 0.76rem;
  color: var(--gh-muted);
  margin-bottom: 12px;
}

.gh-prod-meta-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 10px 0 0;
  border-top: 1px solid var(--gh-border);
  font-size: 0.8rem;
  color: var(--gh-muted);
}

.gh-prod-meta-list li {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

.gh-prod-meta-list strong {
  color: var(--gh-ink);
  font-weight: 600;
}

.gh-prod-stock {
  font-size: 0.76rem;
  color: #2f6f3e;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== BANNIÈRE SOMBRE LIVRAISON CAMION ==================== */
.gh-dark-banner {
  background: var(--gh-dark);
  color: #fff;
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  margin: 18px 0;
}

.gh-dark-banner-text {
  padding: 46px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gh-dark-banner-text h2 {
  font-family: var(--gh-font-serif);
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  margin: 0 0 14px;
  line-height: 1.18;
}

.gh-dark-banner-text p {
  color: #cfc6bc;
  font-size: 0.94rem;
  margin: 0 0 24px;
  max-width: 430px;
}

.gh-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gh-sand);
  color: var(--gh-dark);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: var(--gh-radius-sm);
  width: fit-content;
}

.gh-dark-banner-visual {
  background: linear-gradient(135deg, #3b2f26 0%, #1d1713 100%);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== BLOCS COMPARATIF & GUIDE ESSENCES ==================== */
.gh-compare-box {
  background: var(--gh-sand);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.gh-compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gh-mini-compare {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-md);
  padding: 14px;
  text-align: center;
}

.gh-guide-box {
  background: var(--gh-sand);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  padding: 38px 44px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
}

.gh-wood-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--gh-sand-deep);
}

.gh-wood-row:last-child {
  border-bottom: none;
}

.gh-wood-row h4 {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 700;
}

.gh-wood-row p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--gh-muted);
}

/* Double bannière promo */
.gh-dual-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gh-promo-tile {
  background: var(--gh-sand);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

.gh-promo-tile-body {
  padding: 24px;
}

.gh-promo-tile-body h3 {
  font-family: var(--gh-font-serif);
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.gh-promo-tile-body p {
  font-size: 0.84rem;
  color: var(--gh-muted);
  margin: 0 0 14px;
}

/* ==================== FAQ ACCORDÉON ==================== */
.gh-faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--gh-border);
}

.gh-faq-item {
  border-bottom: 1px solid var(--gh-border);
  padding: 16px 0;
}

.gh-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: var(--gh-font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--gh-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.gh-faq-a {
  display: none;
  padding-top: 10px;
  font-size: 0.88rem;
  color: var(--gh-muted);
}

.gh-faq-item.is-open .gh-faq-a {
  display: block;
}

/* ==================== FOOTER SOMBRE AVEC MENTIONS LÉGALES GARDENIUS ==================== */
.gh-footer {
  background: var(--gh-dark);
  color: #dfd7ce;
  padding: 56px 0 28px;
  margin-top: 40px;
}

.gh-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gh-dark-soft);
}

.gh-footer-brand-box {
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--gh-radius-sm);
  display: inline-block;
  margin-bottom: 16px;
}

.gh-footer-legal-summary {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #b8aea3;
}

.gh-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.gh-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
}

.gh-footer-links li {
  margin-bottom: 8px;
}

.gh-footer-links a {
  color: #bfb5aa;
  transition: color 0.15s;
}

.gh-footer-links a:hover {
  color: #fff;
}

.gh-footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #968c82;
}

/* Pages légales & contenu WordPress */
.gh-page-wrap {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  padding: 40px 44px;
  margin: 36px 0 56px;
}

.gh-legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

.gh-legal-table th,
.gh-legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gh-border);
}

.gh-legal-table th {
  width: 240px;
  background: var(--gh-bg);
  color: var(--gh-dark);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .gh-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .gh-product-grid, ul.products { grid-template-columns: repeat(2, 1fr); }
  .gh-hero-box, .gh-dark-banner, .gh-compare-box, .gh-guide-box, .gh-faq-grid { grid-template-columns: 1fr; }
  .gh-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gh-header-top { grid-template-columns: 1fr auto; height: auto; padding: 12px 0; }
  .gh-search-form { grid-column: 1 / -1; order: 3; }
  .gh-trust-strip { grid-template-columns: repeat(2, 1fr); }
  .gh-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gh-product-grid, ul.products { grid-template-columns: 1fr; }
  .gh-dual-promo, .gh-promo-tile { grid-template-columns: 1fr; }
  .gh-footer-grid { grid-template-columns: 1fr; }
}
