/* Rézomes biochar — feuille de style unique */

@font-face { font-family: 'Inter Display'; src: url('/fonts/inter-display-light.woff') format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('/fonts/inter-display-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-semibold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-regular.woff') format('woff'); font-weight: 400; font-display: swap; }

:root {
  --bg: #F2EDE4;
  --tile: #E6DDCF;
  --line: #D9CFBF;
  --ink: #141414;
  --text: #3F3A31;
  --muted: #655C4E;
  --soft: #948A79;
  --dark: #1C1A17;
  --dark-text: #CFC6B6;
  --dark-muted: #ADA594;
  --dark-line: #3A362F;
  --accent: #C2531F;
  --water: #4E7286;
  --radius: 6px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  --display: 'Inter Display', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; letter-spacing: -0.006em; font-feature-settings: 'cv11', 'ss01'; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 7.2vw, 92px); letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-family: var(--sans); font-weight: 500; font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text); max-width: 640px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 14px; }
.section { padding: clamp(80px, 10vw, 140px) 0 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 64px; margin-bottom: 48px; }
.section-head h2 { flex: 1 1 520px; }
.section-head p { flex: 1 1 340px; max-width: 460px; color: var(--text); }
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); transition: background .15s, color .15s; }
.btn:hover { background: #2B2925; color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-light:hover { background: transparent; color: var(--bg); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-in { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; }
.logo-word { font-family: var(--sans); font-weight: 600; font-size: 24px; letter-spacing: -0.045em; }
.logo-sub { font-size: 14px; color: var(--muted); }
.menu { display: none; }
.nav-desk ul { display: flex; align-items: center; gap: 4px 32px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav-desk a, .menu nav a { text-decoration: none; }
.nav-desk a[aria-current], .menu nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.menu-cta .btn { min-height: 44px; padding: 8px 20px; font-size: 15px; }
@media (max-width: 860px) {
  .nav-desk { display: none; }
  .menu { display: block; }
  .menu summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; cursor: pointer; list-style: none; font-size: 15px; }
  .menu summary::-webkit-details-marker { display: none; }
  .burger, .burger::before, .burger::after { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; }
  .burger::before, .burger::after { content: ''; position: absolute; left: 0; }
  .burger::before { top: -6px; } .burger::after { top: 6px; }
  .menu[open] .burger { background: transparent; } .menu[open] .burger::before { top: 0; transform: rotate(45deg); } .menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
  .menu nav { position: absolute; left: 0; right: 0; top: 72px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
  .menu nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; font-size: 19px; list-style: none; margin: 0; padding: 0; }
  .menu nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-cta { margin-top: 20px; } .menu-cta .btn { display: flex; border-bottom: 1px solid var(--ink) !important; }
}

/* Fil d'Ariane */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--soft); }
.crumbs a { color: var(--muted); }

/* Accueil : hero */
.hero { padding-top: clamp(48px, 7vw, 88px); }
.hero-top { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.hero-top h1 { flex: 1 1 620px; }
.hero-side { flex: 1 1 340px; max-width: 440px; display: flex; flex-direction: column; gap: 24px; }
.hero-side p { font-size: 18px; color: var(--text); }
.hero-media { margin-top: 48px; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tile); aspect-ratio: 16 / 8; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption, .photo-cap { position: absolute; left: 16px; bottom: 14px; background: rgba(242, 237, 228, .92); color: var(--ink); font-size: 13px; padding: 5px 12px; border-radius: 999px; }
@media (max-width: 700px) { .hero-media { aspect-ratio: 4 / 5; } }

/* Cartes produit */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { display: block; text-decoration: none; }
.card-media { border-radius: var(--radius); overflow: hidden; background: var(--tile); aspect-ratio: 4 / 5; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.025); }
.card-tag { position: absolute; left: 16px; top: 16px; background: var(--bg); font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.card-body { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; flex-wrap: wrap; }
.card-body h3 { font-size: 26px; letter-spacing: -0.03em; }
.card-body p { color: var(--muted); font-size: 15px; margin-top: 2px; max-width: 34ch; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.price { white-space: nowrap; font-size: 18px; }
.price small { font-size: 13px; color: var(--muted); }

/* Phrase pleine largeur */
.statement { padding: clamp(100px, 12vw, 160px) 0 0; }
.statement p { max-width: 1120px; font-family: var(--display); font-weight: 300; font-size: clamp(30px, 4vw, 50px); line-height: 1.15; letter-spacing: -0.035em; }

/* Gestes de pyrolyse */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.steps .illu { background: var(--tile); border-radius: var(--radius); padding: 32px 24px 24px; }
.steps .illu svg { width: 100%; height: auto; display: block; }
.steps h3 { margin: 20px 0 6px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Bloc deux colonnes média + texte */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; background: var(--tile); aspect-ratio: 1 / 1; position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { margin-bottom: 24px; }
.split-text p + p { margin-top: 16px; }
.split-text p { color: var(--text); font-size: 18px; }

/* Grille de détails photo */
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.detail .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tile); }
.detail .ph img { width: 100%; height: 100%; object-fit: cover; }
.detail h3 { margin: 18px 0 4px; font-size: 19px; }
.detail p { color: var(--muted); font-size: 15px; }
.dark .detail p { color: var(--dark-muted); }

/* Section sombre */
.dark { background: var(--dark); color: var(--bg); margin-top: clamp(80px, 10vw, 140px); padding: clamp(80px, 10vw, 120px) 0; }
.dark + .section, .dark + .dark { padding-top: clamp(80px, 10vw, 140px); }
.dark a { color: var(--bg); }
.dark .section-head p, .dark .lead { color: var(--dark-text); }

/* Tableau comparatif */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.compare thead td, .compare thead th { vertical-align: bottom; padding: 0 10px 24px 0; text-align: left; font-weight: 400; }
.compare .head-ph { background: var(--tile); border-radius: var(--radius); height: 200px; overflow: hidden; }
.compare .head-ph img { width: 100%; height: 100%; object-fit: cover; }
.compare .head-name { display: block; margin-top: 16px; font-weight: 500; font-size: 24px; letter-spacing: -0.025em; }
.compare .head-price { display: block; color: var(--muted); font-size: 15px; }
.compare tbody th, .compare tbody td { padding: 15px 20px; text-align: left; vertical-align: top; }
.compare tbody th { font-weight: 500; }
.compare tbody tr:nth-child(odd) > * { background: var(--tile); }
.compare tbody tr > :first-child { border-radius: 4px 0 0 4px; }
.compare tbody tr > :last-child { border-radius: 0 4px 4px 0; }
.compare.cols-3 thead th { width: 25%; }

/* Journal : cartes */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.post-card { text-decoration: none; display: block; }
.post-card .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tile); }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .ph img { transform: scale(1.025); }
.post-card .meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.post-card h3 { margin-top: 4px; font-size: 21px; }
.post-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.faq > h2 { flex: 1 1 300px; }
.faq-list { flex: 999 1 620px; min-width: 0; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; overflow: hidden; padding: 22px 0; font-size: 19px; cursor: pointer; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { flex: 1; min-width: 0; }
.faq summary::after { flex: none; content: '+'; font-weight: 300; font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--text); max-width: 700px; }
.faq details > div p + p { margin-top: 12px; }

/* Bloc devis */
.cta-block { background: var(--tile); border-radius: var(--radius); padding: clamp(32px, 6vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.cta-block h2 { max-width: 720px; }
.cta-block p { margin-top: 16px; color: var(--text); max-width: 560px; }

/* Pages produit */
.product-hero { padding-top: 32px; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: 28px; align-items: start; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tile); aspect-ratio: 4 / 5; }
.gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 900px) { .product-info { position: static; } }
.product-info h1 { font-size: clamp(44px, 5vw, 68px); }
.product-info .lead { font-size: 19px; }
.product-price { font-size: 26px; letter-spacing: -0.02em; }
.product-price small { display: block; font-size: 14px; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.specs { margin: 0; border-top: 1px solid var(--ink); }
.specs div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; font-weight: 500; }
.note { font-size: 14px; color: var(--muted); }

/* Contenu éditorial (guides, journal) */
.article-head { padding-top: 40px; }
.article-head h1 { margin-top: 40px; max-width: 1080px; font-size: clamp(40px, 6vw, 84px); line-height: 1; }
.article-head .lead { margin-top: 32px; max-width: 760px; }
.article-meta { margin-top: 24px; font-size: 14px; color: var(--muted); }
.article-cover { margin-top: 48px; border-radius: var(--radius); overflow: hidden; background: var(--tile); aspect-ratio: 16 / 7; position: relative; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .article-cover { aspect-ratio: 4 / 3; } }
.article-layout { display: flex; flex-wrap: wrap; gap: 48px 96px; padding-top: 80px; }
.toc { flex: 1 1 260px; min-width: 0; }
.toc-in { position: sticky; top: 100px; }
.toc p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); font-size: 16px; line-height: 1.4; counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 13px 0; text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { flex: 999 1 640px; min-width: 0; max-width: 760px; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; margin-top: 88px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 40px; font-size: 22px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 32px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); font-size: 20px; color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.md-fig, .prose figure { margin: 36px 0 0; }
.md-fig img { border-radius: var(--radius); width: 100%; }
.md-fig figcaption, .prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.prose .box { background: var(--tile); border-radius: var(--radius); padding: 28px 32px; }
.prose .box-dark { background: var(--dark); color: var(--bg); border-radius: var(--radius); padding: 28px 32px; }
.prose .box-dark li { color: var(--dark-text); }
.prose .box > :first-child, .prose .box-dark > :first-child { margin-top: 0; }
.prose .box h3 { margin: 0 0 12px; font-size: 20px; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { padding: 14px 18px; text-align: left; vertical-align: top; }
.prose thead th { font-weight: 500; font-size: 15px; padding-top: 0; }
.prose tbody tr:nth-child(odd) > * { background: var(--tile); }
.prose tbody tr > :first-child { border-radius: 4px 0 0 4px; font-weight: 500; }
.prose tbody tr > :last-child { border-radius: 0 4px 4px 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.check { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.check li { display: flex; gap: 12px; margin: 0 !important; }
.check svg { flex: none; margin-top: 4px; }
.flow { background: var(--tile); border-radius: var(--radius); padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.flow .chip { background: var(--bg); border-radius: 4px; padding: 12px 18px; font-weight: 500; text-align: center; }
.flow .chip-gas { background: transparent; border: 1.5px dashed var(--accent); }
.flow .via { font-size: 15px; color: var(--text); line-height: 1.3; text-align: center; }
.tempbar { margin-top: 36px; }
.tempbar .bar { display: flex; gap: 4px; height: 28px; }
.tempbar .bar span { border-radius: 4px; }
.tempbar .scale { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 8px; }
.tech-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 24px; }
.tech-cards .illu { background: var(--tile); border-radius: var(--radius); padding: 24px; }
.tech-cards .illu svg { width: 100%; height: auto; display: block; }
.tech-cards h3 { margin-top: 18px; font-size: 21px; }
.tech-cards .sub { color: var(--muted); font-size: 15px; margin-top: 0 !important; }
.tech-cards p { font-size: 16px; color: var(--text); margin-top: 8px; }
.related { margin-top: 88px; }
.related ul { list-style: none; padding: 0 !important; border-top: 1px solid var(--ink); }
.related li { border-bottom: 1px solid var(--line); margin: 0 !important; }
.related a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; min-height: 44px; }
.related a:hover { text-decoration: underline; }
.product-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.product-links a { background: var(--tile); border-radius: var(--radius); padding: 24px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.product-links .n { font-weight: 500; font-size: 22px; letter-spacing: -0.025em; }
.product-links .d { color: var(--muted); font-size: 15px; }
.product-links .go { margin-top: 16px; font-size: 15px; }
.product-links a:hover .n { text-decoration: underline; }
.placeholder { background: #F5E3C8; padding: 0 4px; border-radius: 3px; }

/* Formulaire */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid #C9BEAB; border-radius: 4px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; color: var(--muted); grid-column: 1 / -1; }

/* Pied de page */
.site-footer { margin-top: clamp(100px, 12vw, 160px); border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 300px; }
.footer-brand .addr { color: var(--text); }
.site-footer h2 { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-footer ul a { text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
