/*
Theme Name: Bois Distribution
Theme URI: https://example.com/
Author: Votre entreprise
Description: Thème pour une entreprise de vente et livraison de bois de chauffage. Style nature et forêt, compatible Elementor, pages Accueil / Nos bois / Livraison / À propos / Devis & contact / FAQ créées automatiquement à l'activation.
Version: 1.5.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bois-foret
*/

/* ---------- Polices (hébergées localement, conforme RGPD) ---------- */
@font-face { font-family: 'Fraunces'; src: url('assets/fonts/fraunces-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('assets/fonts/fraunces-600-italic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Couleurs & variables : modifiez ici pour changer l'ambiance ---------- */
:root {
  --forest: #1f3a2b;       /* vert forêt profond */
  --forest-2: #2c4f3a;
  --moss: #5d7a45;         /* vert mousse */
  --moss-light: #a9bd8b;
  --bark: #6b4a2f;         /* écorce */
  --bark-light: #b08457;
  --ember: #c8672a;        /* braise : boutons d'action */
  --ember-dark: #a8531f;
  --cream: #f6f1e6;        /* fond principal */
  --paper: #fffdf8;
  --sand: #ebe3d1;
  --ink: #1d231e;
  --muted: #5c655c;
  --line: rgba(31, 58, 43, 0.14);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 14px 34px rgba(31, 42, 30, 0.12);
  --wrap: 1200px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--forest); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--paper); padding: 10px 16px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  font-family: var(--font-body); line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-ember { background: var(--ember); color: #fff; box-shadow: 0 8px 20px rgba(200, 103, 42, .28); }
.btn-ember:hover { background: var(--ember-dark); color: #fff; }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--forest-2); color: var(--cream); }
.btn-outline { border-color: currentColor; color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn-light { border-color: rgba(246,241,230,.6); color: var(--cream); background: transparent; }
.btn-light:hover { background: var(--cream); color: var(--forest); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Bandeau du haut ---------- */
.topbar { background: var(--forest); color: var(--moss-light); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: var(--cream); text-decoration: none; font-weight: 600; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 230, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); }
.brand .custom-logo { max-height: 56px; width: auto; }
.brand-mark { width: 50px; height: 50px; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(31, 58, 43, .25)); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .035em; }
.brand-name small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: .68rem; font-weight: 600; color: var(--ember-dark); letter-spacing: .1em; text-transform: uppercase; }
mark.bf-todo { background: #fde7c7; color: #7a3310; padding: 0 4px; border-radius: 4px; }

/* ---------- Avis clients vérifiés ---------- */
.stars-off { color: #d9d2c0; }
.reviews-summary { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.05rem; }
.reviews-summary .stars { margin: 0; }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #e3eed8; color: #2d4a1f; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.verified-badge::before { content: "✓"; }
.reviews-empty { max-width: 760px; margin: 0 auto; text-align: center; }
.reviews-empty svg { color: #d9952b; }
.reviews-empty p { color: var(--muted); }
.reviews-external { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.reviews-external .trustpilot-widget { flex-basis: 100%; }
.reviews-policy { text-align: center; color: var(--muted); font-size: .82rem; margin: 24px auto 0; max-width: 70ch; }

.trustpilot-widget { width: 100%; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--forest); border-color: var(--ember); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 20px; font-size: .92rem; }
.menu-toggle { display: none; background: none; border: 2px solid var(--forest); border-radius: 8px; padding: 8px; color: var(--forest); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- Hero ---------- */
/* Grande photo pleine largeur, voile vert forêt à gauche pour la lisibilité du texte. */
.hero { position: relative; overflow: hidden; background: var(--forest); color: var(--cream); }
.hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 30, 21, .94) 0%, rgba(15, 30, 21, .86) 42%, rgba(15, 30, 21, .4) 66%, rgba(15, 30, 21, .1) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: 1; height: 120px; background: linear-gradient(0deg, rgba(15, 30, 21, .55), transparent); }
.hero .wrap { position: relative; z-index: 2; min-height: 640px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 96px; padding-bottom: 104px; }
.hero-content { max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--moss); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ember); }
.hero .eyebrow { color: #cfdcb5; }
.hero h1 { color: #fffaf0; font-size: clamp(2.5rem, 5.4vw, 4.2rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero h1 em { font-style: italic; color: #f3b98f; }
.hero .lede { font-size: 1.17rem; color: rgba(246, 241, 230, .88); max-width: 48ch; margin-top: 18px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 12px 26px; flex-wrap: wrap; font-size: .93rem; font-weight: 600; color: var(--cream); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; color: #a9c98a; flex-shrink: 0; }
.hero-badge {
  align-self: flex-end; background: rgba(255, 253, 248, .96); color: var(--ink); border-radius: 14px;
  padding: 16px 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); display: flex; align-items: center; gap: 12px; max-width: 280px;
}
.hero-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; background: var(--forest); }
.hero-visual img, .hero-visual svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badge svg { width: 32px; height: 32px; color: var(--moss); flex-shrink: 0; }
.hero-badge strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--ember); line-height: 1; }
.hero-badge span { font-size: .82rem; color: var(--muted); line-height: 1.3; }

/* ---------- Réassurance ---------- */
.trust { background: var(--forest); color: var(--cream); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 34px; padding-bottom: 34px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { width: 34px; height: 34px; color: var(--moss-light); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { font-size: .87rem; color: var(--moss-light); line-height: 1.45; display: block; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--forest); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .eyebrow { justify-content: center; }
.section-head.left .eyebrow { justify-content: flex-start; }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.section-dark .section-head p { color: var(--moss-light); }

/* ---------- Panier (en-tête) ---------- */
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ember); color: #fff; box-shadow: 0 8px 20px rgba(200, 103, 42, .28); transition: background .15s; }
.cart-link:hover { background: var(--ember-dark); color: #fff; }
.cart-link svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--forest); color: var(--cream); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--cream); }

/* ---------- Catégories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; text-decoration: none; color: var(--cream); background: var(--forest); box-shadow: var(--shadow); }
.cat-media { position: absolute; inset: 0; }
.cat-media img, .cat-media svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.cat-card:hover .cat-media img, .cat-card:hover .cat-media svg { transform: scale(1.05); }
.cat-body { position: absolute; inset: auto 0 0 0; padding: 60px 26px 24px; background: linear-gradient(180deg, transparent, rgba(21, 42, 31, .92) 45%); display: grid; gap: 6px; }
.cat-body strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.cat-body span { font-size: .92rem; color: #dfe6d2; }
.cat-body em { font-style: normal; font-weight: 700; font-size: .9rem; color: #f3b98f; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.cat-body em svg { width: 16px; height: 16px; }
.cat-tabs { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 77px; z-index: 40; }
.admin-bar .cat-tabs { top: 109px; }
.cat-tabs .wrap { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; }
.cat-tabs a { flex-shrink: 0; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--forest); padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); }
.cat-tabs a:hover { border-color: var(--forest); }
[id^="cat-"] { scroll-margin-top: 150px; }

/* ---------- Produits ---------- */
/* Flex centré : une dernière ligne incomplète reste centrée (ex. 5 produits = 3 + 2). */
.products-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.products-grid > .product-card { flex: 0 1 calc((100% - 56px) / 3); min-width: 0; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { color: var(--moss); }
.product-card .added_to_cart { display: block; width: 100%; text-align: right; font-size: .85rem; font-weight: 600; color: var(--ember-dark); margin-top: 4px; }
.product-foot { flex-wrap: wrap; }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { aspect-ratio: 4 / 3; background: var(--sand); position: relative; overflow: hidden; }
.product-media img, .product-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-tag { position: absolute; top: 14px; left: 14px; background: var(--ember); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .03em; }
.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.product-body h3 { margin: 0; }
.product-body p { color: var(--muted); font-size: .95rem; margin: 0; flex-grow: 1; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .78rem; font-weight: 600; background: var(--cream); border: 1px solid var(--line); color: var(--forest); padding: 4px 10px; border-radius: 999px; }
.product-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 16px; border-top: 1px dashed var(--line); }
.price { font-family: var(--font-display); font-size: 1.75rem; color: var(--forest); line-height: 1; }
.price small { font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 600; }
.price-from { display: block; font-family: var(--font-body); font-size: .74rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.product-foot .btn { padding: 10px 18px; font-size: .88rem; }
.center-cta { text-align: center; margin-top: 44px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; background: var(--forest-2); border-radius: var(--radius-lg); }
.step-num { font-family: var(--font-display); font-style: italic; font-size: 3rem; color: var(--ember); line-height: 1; display: block; margin-bottom: 12px; }
.step p { color: var(--moss-light); margin: 0; }

/* ---------- Bloc image + texte ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; background: var(--forest); }
.split-media svg, .split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--moss); flex-shrink: 0; margin-top: 3px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--ember); line-height: 1.1; }
.stat span { font-size: .87rem; color: var(--muted); }

/* ---------- Avis ---------- */
.reviews { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.reviews > .review { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.stars { color: #d9952b; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 14px; }
.review blockquote { margin: 0 0 20px; font-size: 1.02rem; flex-grow: 1; }
.review cite { font-style: normal; font-weight: 700; color: var(--forest); font-size: .92rem; }
.review cite span { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; }

/* ---------- Zone de livraison ---------- */
.zone-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.zone-map { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.zone-map svg, .zone-map img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details, .entry-content details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary, .entry-content summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.07rem; color: var(--forest); position: relative; }
.faq-list summary::-webkit-details-marker, .entry-content summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .entry-content summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--ember); transition: transform .2s; }
.faq-list details[open] summary::after, .entry-content details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p, .entry-content details > *:not(summary) { color: var(--muted); padding-bottom: 12px; margin-top: 0; }

/* ---------- Bandeau appel à l'action ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--bark); color: var(--cream); border-radius: var(--radius-lg); padding: 72px 60px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; box-shadow: var(--shadow); }
.cta-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(40, 22, 10, .92) 0%, rgba(40, 22, 10, .75) 50%, rgba(40, 22, 10, .35) 100%); pointer-events: none; }
.cta-band > *:not(.cta-band-bg) { position: relative; z-index: 2; }
.cta-band h2 { color: var(--cream); margin-bottom: 8px; }
.cta-band p { color: #ead9c4; margin: 0; max-width: 52ch; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- En-tête de page intérieure ---------- */
.page-hero { background: var(--forest); color: var(--cream); position: relative; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 30, 21, .9) 0%, rgba(15, 30, 21, .7) 55%, rgba(15, 30, 21, .35) 100%); }
.page-hero .wrap { padding-top: 96px; padding-bottom: 88px; position: relative; z-index: 2; }
.page-hero h1 { color: #fffaf0; margin-bottom: 12px; }
.page-hero p { color: rgba(246, 241, 230, .85); font-size: 1.12rem; max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: var(--moss-light); }
.breadcrumb { font-size: .85rem; color: #cfdcb5; margin-bottom: 18px; }
.breadcrumb a { color: var(--cream); text-decoration: none; }

/* ---------- Contenu éditeur (Gutenberg / Elementor) ---------- */
.entry-content { max-width: 800px; margin: 0 auto; }
.entry-content.wide { max-width: none; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { border-left: 4px solid var(--ember); margin: 1.6em 0; padding: 4px 0 4px 22px; font-family: var(--font-display); font-size: 1.25rem; color: var(--forest); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content .wp-block-button__link { background: var(--ember); border-radius: 999px; padding: 14px 26px; font-weight: 600; }
.alignwide { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; max-width: none; }
.page-body { padding: 72px 0 96px; }
/* Pages construites avec Elementor : pas de marges imposées */
.elementor-page .page-body { padding: 0; }
.elementor-page .page-body > .wrap { max-width: none; padding: 0; }

/* ---------- Tableau des tarifs ---------- */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: .97rem; }
.price-table th { background: var(--forest); color: var(--cream); text-align: left; padding: 16px 20px; font-weight: 600; }
.price-table td { padding: 16px 20px; border-top: 1px solid var(--line); }
.price-table tr:nth-child(even) td { background: var(--cream); }
.table-scroll { overflow-x: auto; }

/* ---------- Cartes infos ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; }
.info-card svg { width: 38px; height: 38px; color: var(--moss); margin-bottom: 14px; }
.info-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.info-card .big { font-family: var(--font-display); font-size: 1.9rem; color: var(--ember); display: block; margin: 6px 0; }

/* ---------- Guide des longueurs ---------- */
.lengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.length-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.length-card .log { height: 58px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.length-card .log svg { height: 100%; width: auto; }
.length-card strong { font-family: var(--font-display); font-size: 2rem; color: var(--forest); display: block; }
.length-card p { color: var(--muted); font-size: .94rem; margin: 6px 0 0; }

/* ---------- Formulaire de devis ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--forest); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--cream);
  font: inherit; font-size: .97rem; color: var(--ink); transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--moss); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.estimate { margin-top: 22px; padding: 18px 20px; background: var(--cream); border-radius: var(--radius); border: 1px dashed var(--bark-light); display: none; justify-content: space-between; align-items: center; gap: 12px; }
.estimate.show { display: flex; }
.estimate strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--ember); }
.estimate span { font-size: .85rem; color: var(--muted); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600; }
.notice-ok { background: #e3eed8; color: #2d4a1f; border: 1px solid #b9d3a0; }
.notice-err { background: #f8e3d8; color: #7a3310; border: 1px solid #ebbd9f; }
.contact-side { display: grid; gap: 20px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line svg { width: 24px; height: 24px; color: var(--ember); flex-shrink: 0; margin-top: 3px; }
.contact-line strong { display: block; color: var(--forest); }
.contact-line a { text-decoration: none; }
.contact-line span, .contact-line a { color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: #152a1f; color: var(--moss-light); margin-top: 0; }
.footer-top { position: relative; }
.footer-trees { display: block; width: 100%; height: 70px; color: #152a1f; background: var(--cream); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer li { font-size: .93rem; }
.site-footer a { color: var(--moss-light); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--cream); }
.site-footer .brand { color: var(--cream); margin-bottom: 14px; }
.site-footer p { font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(169, 189, 139, .2); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom ul { display: flex; gap: 20px; }

/* ---------- Bouton appel flottant (mobile) ---------- */
.float-call { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--ember); color: #fff; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.float-call svg { width: 26px; height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav ul { gap: 20px; }
  .header-cta .btn-outline { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header-cta .btn { display: none; }
  .hero .wrap, .split, .zone-card, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { min-height: 0; flex-direction: column; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
  .hero::before { background: linear-gradient(180deg, rgba(15, 30, 21, .82), rgba(15, 30, 21, .7)); }
  .hero-badge { align-self: flex-start; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .steps, .cards-3, .lengths { grid-template-columns: 1fr 1fr; }
  .reviews > .review { flex-basis: calc((100% - 24px) / 2); }
  .products-grid > .product-card { flex-basis: calc((100% - 28px) / 2); }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { aspect-ratio: 16 / 8; }
  .cat-tabs { top: 70px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .cta-band { padding: 40px 32px; }
  .float-call { display: flex; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .products-grid > .product-card { flex-basis: 100%; }
  .cat-card { aspect-ratio: 4 / 3; }
  .reviews > .review { flex-basis: 100%; }
  .trust .wrap, .steps, .cards-3, .cards-2, .lengths, .footer-grid, .form-grid, .stats { grid-template-columns: 1fr; }
  .form-card, .zone-card { padding: 26px 20px; }
  .brand-name { font-size: 1.15rem; }
  .brand-name small { display: none; }
  .topbar .wrap { justify-content: center; }
  .admin-bar .site-header { top: 0; }
}

/* ---------- Grille d'avis de l'accueil : 5 par ligne, dernière ligne centrée (8 avis = 5 + 3) ---------- */
.reviews.reviews-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.reviews.reviews-grid > .review { flex: 0 1 calc((100% - 80px) / 5); min-width: 0; margin: 0; padding: 22px 20px; }
.reviews-grid .review-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.reviews-grid .review-top .stars { margin: 0; font-size: .95rem; }
.reviews-grid .verified-badge { margin-left: 0; }
.reviews-grid .review-title { display: block; font-family: var(--font-display); font-weight: 600; color: var(--forest); font-size: 1rem; line-height: 1.3; margin-bottom: 6px; }
.reviews-grid blockquote { font-size: .9rem; line-height: 1.55; margin-bottom: 16px; }
.reviews-grid cite { font-size: .86rem; }
.reviews-grid cite span { font-size: .78rem; }
@media (max-width: 1100px) { .reviews.reviews-grid > .review { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 900px) { .reviews.reviews-grid > .review { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .reviews.reviews-grid > .review { flex-basis: 100%; } }
.reviews-demo-banner { background: #fde7c7; color: #7a3310; border: 2px dashed var(--ember); border-radius: var(--radius); padding: 12px 18px; font-size: .88rem; font-weight: 600; text-align: center; margin: 0 auto 32px; max-width: 900px; }
.reviews-demo-label { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: var(--sand); color: var(--bark); font-size: .85rem; font-weight: 600; }
.verified-badge.is-demo { background: var(--sand); color: var(--bark); }
.verified-badge.is-demo::before { content: none; }
.footer-legal-ids { font-size: .82rem; opacity: .85; line-height: 1.7; }
