/*
Theme Name: Grenoucerie Maison
Theme URI: https://grenoucerie.com
Author: Grenoucerie
Author URI: https://grenoucerie.com
Description: Thème Grenoucerie 2026 — système «Porcelaine» (fond clair, vert bouteille, bronze). Une seule cabecera, menu mobile, Grenoupedia en biblioteca, página Distributeurs.
Version: 19.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grenoucerie
*/

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  --porcelaine: #F6F5F1;
  --blanc: #FFFFFF;
  --glace: #E4E8E4;
  --nacre: #EBDDD2;
  --vert: #1E3A2C;
  --vert-2: #142A1F;
  --encre: #262B27;
  --encre-2: #4E5650;
  --encre-3: #5F6861;
  --bronze: #7A5C27;
  --line: rgba(30, 58, 44, .14);
  --line-2: rgba(30, 58, 44, .24);
  --on-vert: #F6F5F1;
  --on-vert-2: rgba(246, 245, 241, .78);

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --sec: clamp(64px, 9vw, 120px);
  --head-h: 72px;
  --radius: 4px;
}
@media (max-width: 959px) { :root { --head-h: 60px; } }

/* ============================================================
   2. Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--porcelaine);
  color: var(--encre);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--vert); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.18; }
h4 { font-size: 20px; line-height: 1.25; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--bronze); }
strong { font-weight: 600; }
::selection { background: var(--nacre); color: var(--vert); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--vert); color: var(--on-vert); padding: 10px 14px; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); }
.section + .section { border-top: 1px solid var(--line); }
.bg-glace { background: var(--glace); }
.bg-blanc { background: var(--blanc); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--encre-2); max-width: 58ch; }
.muted { color: var(--encre-2); }
.small { font-size: 14px; }
.data { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); }

.shead { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.shead-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.shead-row .shead { margin-bottom: 0; }

/* ============================================================
   3. Buttons & links
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 15px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--vert); color: var(--on-vert); }
.btn-primary:hover { background: var(--vert-2); }
.btn-outline { border-color: var(--vert); color: var(--vert); background: transparent; }
.btn-outline:hover { background: var(--vert); color: var(--on-vert); }
.btn-light { background: var(--porcelaine); color: var(--vert); }
.btn-light:hover { background: var(--blanc); }
.btn-outline-light { border-color: rgba(246,245,241,.6); color: var(--on-vert); }
.btn-outline-light:hover { background: var(--on-vert); color: var(--vert); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.link { color: var(--bronze); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { color: var(--vert); }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; color: var(--vert); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--vert); }

/* ============================================================
   4. Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--porcelaine);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1; color: var(--vert); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.wordmark em { font-style: italic; color: var(--bronze); }
.nav-main { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-main a { font-size: 15px; font-weight: 500; color: var(--encre); text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav-main a:hover { color: var(--vert); border-color: var(--line-2); }
.nav-main a[aria-current="page"] { color: var(--vert); border-color: var(--vert); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-actions .btn { min-height: 42px; padding: 9px 16px; font-size: 14px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--vert); background: transparent; text-decoration: none; cursor: pointer; }
.icon-btn:hover { border-color: var(--vert); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }
@media (max-width: 959px) {
  .nav-main, .head-actions .btn, .head-actions .wa-head { display: none; }
  .burger { display: inline-grid; }
  .wordmark { font-size: 24px; }
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--vert); position: relative; transition: transform .2s, opacity .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--vert); transition: transform .2s; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile panel */
.mobile-panel {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 99;
  background: var(--porcelaine);
  padding: 28px var(--gut) calc(40px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; display: flex; flex-direction: column; gap: 28px;
}
.admin-bar .mobile-panel { top: calc(var(--head-h) + 46px); }
.mobile-panel[hidden] { display: none; }
.mobile-panel nav { display: grid; }
.mobile-panel nav a { font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--vert); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.mobile-panel nav a span { font-family: var(--mono); font-size: 12px; color: var(--bronze); letter-spacing: .1em; }
.mobile-panel .btn { width: 100%; }
.mobile-panel .contact-lines { display: grid; gap: 6px; font-size: 15px; color: var(--encre-2); }
.mobile-panel .contact-lines a { color: var(--vert); }
body.menu-open { overflow: hidden; }

/* Mobile CTA bar */
.cta-bar { display: none; }
@media (max-width: 959px) {
  .cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    gap: 10px; align-items: center;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--vert); color: var(--on-vert);
    box-shadow: 0 -8px 24px rgba(20, 42, 31, .18);
  }
  .cta-bar .btn { flex: 1; min-height: 46px; }
  .cta-bar .wa { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--porcelaine); color: var(--vert); }
  .cta-bar .wa svg { width: 22px; height: 22px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  body.menu-open .cta-bar { display: none; }
}

/* ============================================================
   5. Home
   ============================================================ */
.hero { padding-block: clamp(32px, 6vw, 88px) clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 24px; }
.hero-text h1 { font-size: clamp(42px, 5.6vw, 76px); }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: #EFE7DF; aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { display: none; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 959px) {
  .hero { padding-top: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { order: -1; margin-inline: calc(var(--gut) * -1); border-radius: 0; aspect-ratio: 4 / 3; }
  .hero-text h1 { font-size: clamp(36px, 10vw, 48px); }
}

.proofs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.proof { padding: 28px 28px 28px 0; display: grid; gap: 8px; align-content: start; }
.proof + .proof { border-left: 1px solid var(--line); padding-left: 28px; }
.proof h3 { font-size: 24px; }
.proof p { color: var(--encre-2); font-size: 16px; margin: 0; }
@media (max-width: 759px) {
  .proofs { grid-template-columns: 1fr; }
  .proof, .proof + .proof { padding: 22px 0; border-left: 0; }
  .proof + .proof { border-top: 1px solid var(--line); }
}

/* Cut cards */
.cuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cut { display: grid; grid-template-rows: auto 1fr; background: var(--blanc); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.cut:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cut-img { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 18px; background: var(--blanc); }
.cut-img img { width: 100%; height: 100%; object-fit: contain; }
.cut-img.cover { padding: 0; }
.cut-img.cover img { object-fit: cover; }
.cut-body { padding: 18px 20px 22px; display: grid; gap: 6px; align-content: start; border-top: 1px solid var(--line); }
.cut-body h3 { font-size: 24px; }
.cut-body p { font-size: 15px; color: var(--encre-2); margin: 0; }
.cut-body .data { margin-top: 6px; }
@media (max-width: 1023px) { .cuts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) {
  .cuts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); padding-bottom: 4px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .cuts::-webkit-scrollbar { display: none; }
  .cut { scroll-snap-align: start; }
}

/* Doors (chef / distributeur) */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door { background: var(--blanc); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: grid; gap: 14px; align-content: start; }
.door.dark { background: var(--vert); border-color: var(--vert); color: var(--on-vert); }
.door.dark h3, .door.dark .eyebrow { color: var(--on-vert); }
.door.dark p { color: var(--on-vert-2); }
.door h3 { font-size: clamp(26px, 2.6vw, 34px); }
.door ul { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 8px; }
.door li { padding-left: 22px; position: relative; font-size: 16px; }
.door li::before { content: "—"; position: absolute; left: 0; color: var(--bronze); }
.door.dark li::before { color: var(--nacre); }
.door .btns { margin-top: 6px; }
@media (max-width: 759px) { .doors { grid-template-columns: 1fr; } }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--blanc); border: 1px solid var(--line); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-text { display: grid; gap: 20px; }
@media (max-width: 859px) { .split { grid-template-columns: 1fr; } }

.statement { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.25; color: var(--vert); max-width: 30ch; margin: 0; }

/* Article cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: grid; grid-template-rows: auto 1fr; gap: 16px; text-decoration: none; color: inherit; }
.card-img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--blanc); border: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { display: grid; gap: 8px; align-content: start; }
.card-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.card h2, .card h3 { font-size: 24px; line-height: 1.15; }
.card:hover h2, .card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card p { font-size: 15.5px; color: var(--encre-2); margin: 0; }
@media (max-width: 959px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .cards { grid-template-columns: 1fr; gap: 32px; } }

/* Newsletter / final CTA bands */
.band { background: var(--vert); color: var(--on-vert); }
.band h2, .band h3, .band .eyebrow { color: var(--on-vert); }
.band h2 em { color: var(--nacre); }
.band p { color: var(--on-vert-2); }
.band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.band-actions { display: grid; gap: 12px; justify-items: start; }
@media (max-width: 859px) { .band-grid { grid-template-columns: 1fr; } }
.lettre { background: var(--nacre); }
.lettre-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 759px) { .lettre-grid { grid-template-columns: 1fr; } }

/* ============================================================
   6. Inner pages
   ============================================================ */
.page-hero { padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 22px; }
.page-hero h1 { max-width: 20ch; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--encre-2); text-decoration: none; }
.crumbs a:hover { color: var(--vert); text-decoration: underline; }

.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line-2); }
.list-item { display: grid; grid-template-columns: 40px 1fr; gap: 8px 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.list-item .n { font-family: var(--mono); font-size: 13px; color: var(--bronze); padding-top: 6px; }
.list-item h3 { font-size: 24px; margin-bottom: 6px; }
.list-item p { margin: 0; color: var(--encre-2); font-size: 16px; }
@media (max-width: 759px) { .list-grid { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--blanc); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--bronze); }
.step h3 { font-size: 24px; }
.step p { margin: 0; color: var(--encre-2); font-size: 16px; }
@media (max-width: 859px) { .steps { grid-template-columns: 1fr; } }

/* Découpes page */
.cut-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 16px); }
.cut-row:nth-child(even) .cut-figure { order: 2; }
.cut-figure { margin: 0; background: var(--blanc); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 24px; }
.cut-figure img { width: 100%; height: 100%; object-fit: contain; }
.cut-figure.cover { padding: 0; overflow: hidden; }
.cut-figure.cover img { object-fit: cover; }
.cut-info { display: grid; gap: 16px; }
.cut-info h2 { font-size: clamp(34px, 4vw, 48px); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3); padding-top: 3px; }
.facts dd { margin: 0; }
.cut-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.cut-nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--vert); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; }
.cut-nav a:hover { border-color: var(--vert); }
@media (max-width: 859px) { .cut-row { grid-template-columns: 1fr; } .cut-row:nth-child(even) .cut-figure { order: 0; } }

/* Contact */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.channel { padding: 26px 24px 26px 0; display: grid; gap: 6px; align-content: start; }
.channel + .channel { border-left: 1px solid var(--line); padding-left: 24px; }
.channel .data { color: var(--bronze); }
.channel a, .channel .val { font-size: 17px; color: var(--vert); font-weight: 500; text-decoration: none; word-break: break-word; }
.channel a:hover { text-decoration: underline; }
.channel small { color: var(--encre-2); font-size: 14px; }
@media (max-width: 959px) { .channels { grid-template-columns: 1fr 1fr; } .channel:nth-child(3) { border-left: 0; padding-left: 0; } .channel:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 559px) { .channels { grid-template-columns: 1fr; } .channel, .channel + .channel { border-left: 0; padding-left: 0; } .channel + .channel { border-top: 1px solid var(--line); } }

.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 959px) { .form-wrap { grid-template-columns: 1fr; } }
.form-card { background: var(--blanc); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; }
.fgroup { display: grid; gap: 8px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 599px) { .frow { grid-template-columns: 1fr; } }
.fgroup label, .fgroup .flabel { font-size: 14px; font-weight: 600; color: var(--vert); }
.fgroup .req { color: var(--bronze); }
.fgroup input, .fgroup select, .fgroup textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--encre);
  background: var(--porcelaine); border: 1px solid var(--line-2); border-radius: 2px; padding: 12px 14px; min-height: 48px;
}
.fgroup textarea { min-height: 140px; resize: vertical; }
.fgroup input:focus, .fgroup select:focus, .fgroup textarea:focus { outline: 2px solid var(--vert); outline-offset: 0; border-color: var(--vert); background: var(--blanc); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14.5px; color: var(--encre); cursor: pointer; background: var(--blanc); }
.chip input:checked + span { background: var(--vert); color: var(--on-vert); border-color: var(--vert); }
.chip input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--encre-2); line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--vert); flex: none; }
.consent a { color: var(--bronze); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-error { display: none; color: #9B2C21; background: #FBEAE7; border-radius: 2px; padding: 10px 12px; font-size: 14px; }
.form-error.show { display: block; }
.form-success { display: none; background: var(--blanc); border: 1px solid var(--vert); border-radius: var(--radius); padding: 36px; }
.form-success.show { display: grid; gap: 12px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); color: var(--vert); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--bronze); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding-top: 12px; color: var(--encre-2); max-width: 70ch; }

/* ============================================================
   7. Grenoupedia
   ============================================================ */
.gp-tools { display: grid; gap: 16px; margin-bottom: 40px; }
.gp-search { position: relative; max-width: 520px; }
.gp-search input { width: 100%; min-height: 50px; padding: 12px 16px 12px 44px; font: 400 16px var(--sans); color: var(--encre); background: var(--blanc); border: 1px solid var(--line-2); border-radius: 2px; }
.gp-search input:focus { outline: 2px solid var(--vert); outline-offset: 0; }
.gp-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--encre-3); }
.gp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-chips button { min-height: 40px; padding: 8px 14px; font: 500 14.5px var(--sans); color: var(--vert); background: var(--blanc); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; }
.gp-chips button[aria-pressed="true"] { background: var(--vert); color: var(--on-vert); border-color: var(--vert); }
.gp-chips button span { font-family: var(--mono); font-size: 11.5px; opacity: .7; margin-left: 4px; }
.gp-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; color: inherit; padding-bottom: clamp(40px, 6vw, 64px); margin-bottom: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.gp-feature .card-img { aspect-ratio: 3 / 2; }
.gp-feature h2 { font-size: clamp(30px, 3.4vw, 44px); }
.gp-feature:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.gp-feature .body { display: grid; gap: 14px; }
@media (max-width: 859px) { .gp-feature { grid-template-columns: 1fr; } }
.gp-empty { display: none; padding: 32px 0; color: var(--encre-2); }
.gp-empty.show { display: block; }
.gp-lettre { grid-column: 1 / -1; background: var(--nacre); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.gp-lettre h3 { font-size: 28px; }

/* Article */
.art-head { padding-block: clamp(40px, 7vw, 88px) 32px; }
.art-head .wrap-narrow { display: grid; gap: 20px; }
.art-head h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.05; }
.art-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--encre-2); }
.art-byline b { color: var(--vert); font-weight: 600; }
.art-hero { margin: 0 auto; max-width: 1080px; padding-inline: var(--gut); }
.art-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--blanc); border: 1px solid var(--line); }
.art-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; max-width: 1080px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gut) clamp(56px, 8vw, 96px); }
.art-layout > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--head-h) + 24px); align-self: start; display: grid; gap: 10px; font-size: 14px; }
.toc .data { color: var(--bronze); }
.toc a { color: var(--encre-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--vert); text-decoration: underline; }
@media (max-width: 959px) { .art-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--blanc); } }

.prose { max-width: 68ch; font-size: 18px; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin-top: 1.8em; scroll-margin-top: calc(var(--head-h) + 20px); }
.prose h3 { font-size: 24px; margin-top: 1.5em; }
.prose h4 { font-size: 20px; margin-top: 1.3em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--vert); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--bronze); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--bronze); font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.45; color: var(--vert); }
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .prose .wp-element-caption { font-size: 14px; color: var(--encre-2); margin-top: 8px; }
.prose em { font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.45; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; min-width: 120px; }
.prose th { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--vert); border-bottom: 1px solid var(--line-2); background: var(--blanc); }
.prose .wp-block-table { overflow-x: auto; margin: 1.6em 0; }
.art-fiche { max-width: 68ch; background: var(--blanc); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 40px; display: grid; gap: 8px; }
.art-cta { max-width: 68ch; margin-top: 48px; background: var(--vert); color: var(--on-vert); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.art-cta h2 { color: var(--on-vert); font-size: 30px; }
.art-cta p { color: var(--on-vert-2); margin: 0; }

/* Legal / generic pages */
.page-content { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.page-content .prose { font-size: 17px; }

/* ============================================================
   8. Footer
   ============================================================ */
.site-footer { background: var(--vert); color: var(--on-vert-2); padding-block: clamp(56px, 8vw, 88px) 32px; font-size: 15px; }
.site-footer a { color: var(--on-vert); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-grid .wordmark { color: var(--on-vert); font-size: 30px; }
.foot-grid .wordmark em { color: var(--nacre); }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--nacre); margin-bottom: 4px; }
.foot-brand p { max-width: 36ch; margin: 14px 0 0; }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(246,245,241,.18); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; }
.foot-bottom nav { display: flex; gap: 6px 16px; flex-wrap: wrap; }
@media (max-width: 959px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 499px) { .foot-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { padding-block: clamp(64px, 12vw, 160px); }
.notfound .wrap { display: grid; gap: 20px; justify-items: start; }

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