/*
Theme Name: Entrenous
Theme URI: https://entrenous-consult.ch
Author: Ecriture-ai.ch
Author URI: https://ecriture-ai.ch
Description: Custom block theme for the Entre-Nous-Consultation accompagnement practice. Warm pastel palette, hand-bound wood-grain textures, Fraunces serif + Inter sans.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.0
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: entrenous
Tags: full-site-editing, block-patterns, block-styles, wide-blocks
*/

/* Self-hosted Fraunces + Inter (RGPD/nLPD-clean — no third-party CDN, no IP
   transfer to Google). Variable fonts; latin + latin-ext subsets only — French
   site doesn't need Cyrillic/Greek/Vietnamese. ~352 KB total. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-roman-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-roman-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   DESIGN TOKENS — mirror of colors_and_type.css :root.
   ============================================================ */
/* PALETTE PARITY NOTE
   These :root tokens mirror the palette declared in theme.json. Both lists
   exist because:
   1. theme.json drives the WP block editor + emits --wp--preset--color--*
      CSS vars on the front end.
   2. style.css uses the simpler --paper / --ink / etc. names for legacy
      rules that pre-date theme.json or where shorter names aid readability.
   3. The section gradient washes (above) reference WP's preset vars
      directly, so style variations swap them automatically.
   If a palette value changes, update BOTH theme.json AND this :root block.
   The build does not yet have a code-generation step to keep them in sync. */
:root {
  --paper:        #F6EFE2;
  --paper-deep:   #EFE3CB;
  --oat:          #E6D6B8;
  --ochre:        #C8902C;
  --ochre-deep:   #A06F1C;
  --amber-deep:   #6E4A12;
  --terracotta:   #C26A4A;
  --terracotta-soft: #E0A88E;
  --sage:         #8A9A6B;
  --sage-soft:    #C2CCAE;
  --olive-deep:   #5E6A47;
  --plum:         #6B4A5C;
  --plum-soft:    #B89AA6;
  --ink:          #3A2E22;
  --ink-soft:     #5C4A38;
  --ink-mute:     #8A7560;
  --wash-warm-1:  #F2E3C9;
  --wash-warm-2:  #ECCFA8;
  --wash-clay:    #E8B89C;

  /* Borders + dividers — mirror colors_and_type.css. Were referenced in
     many rules below (post-card, pullquote hairlines, kbd, code, tables,
     details, article-foot, footnotes) without being declared, so those
     borders fell back to currentcolor (dark ink) instead of soft hairlines. */
  --border:        rgba(58, 46, 34, 0.12);
  --border-strong: rgba(58, 46, 34, 0.22);
  --divider:       rgba(110, 74, 18, 0.18);

  --serif-display: 'Fraunces','Iowan Old Style',Palatino,Georgia,serif;
  --sans-body: 'Inter','Söhne',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --ease-soft: cubic-bezier(0.32,0.72,0.32,1);

  /* Nav height — single source of truth for sticky offset + scroll-padding.
     Updated by the nav-compact keyframe at scroll. Mobile override below. */
  --nav-height: 96px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
/* scroll-padding-top tied to --nav-height so anchor jumps clear the sticky
   nav regardless of mobile wrap or compacted state. */
html { background: var(--paper); scroll-padding-top: var(--nav-height); scroll-behavior: smooth; }
body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--wash-warm-2); color: var(--ink); }

/* ============================================================
   FOCUS — keyboard navigation indicator. Brand ochre, generous offset,
   2px solid ring. :focus-visible so mouse users don't see it.
   ============================================================ */
:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Buttons + CTA pills get a softer offset to match their pill shape. */
.wp-block-button__link:focus-visible,
.nav-top .cta:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 4px;
  border-radius: 999px;
}
/* Skip-link target (added below + via wp_body_open in functions.php). */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 500;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============================================================
   GLOBAL WOOD OVERLAY — 3 stacked layers below content.
   Layer A: body::before — soft hand-drawn wash (z=-3)
   Layer B: body::after  — procedural seamless tile (z=-2)
   Layer C: .wood-motif  — prominent hand-drawn motif (z=-1)
   ============================================================ */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before {
  /* WebP rasterization of the original 3.5MB SVG — visually indistinguishable
     as a faded fixed background overlay, ~15x smaller on the wire. */
  background-image: url('assets/wood-grain.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.40;
  z-index: -3;
  filter: saturate(0.3) brightness(1.05);
}
body::after {
  background-image: url('assets/wood-grain-procedural.svg');
  background-repeat: repeat;
  background-size: 800px 800px;
  opacity: 0.50;
  mix-blend-mode: multiply;
  z-index: -2;
  filter: saturate(0.3) brightness(0.95) contrast(0.85);
}
.wood-motif {
  position: fixed; inset: 0; pointer-events: none;
  /* WebP rasterization with alpha — original SVG was 3.3MB after SVGO. */
  background-image: url('assets/wood-grain-user-tile-trans.webp');
  background-repeat: repeat;
  background-position: center center;
  background-size: 1536px 857px;
  opacity: 0.30;
  mix-blend-mode: soft-light;
  z-index: -1;
  filter: saturate(0.4) brightness(1.0);
}

/* ============================================================
   LAYOUT — container, sections, seam-blur
   WP's default block-gap inserts a margin between each top-level
   pattern in .wp-site-blocks; that margin opens a gap where the
   wood-grain shows at full strength. Force sections to stack flush.
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wp-site-blocks { --wp--style--block-gap: 0; }
.wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
/* overflow: clip + overflow-clip-margin is preferred but unsupported on
   Safari < 16. Fall back to overflow: hidden so older browsers still clip
   the wood-grain at section boundaries (they lose the 80px breathing room
   but don't bleed across sections). */
.section { position: relative; overflow: hidden; overflow: clip; overflow-clip-margin: 80px; margin: 0; }
.section > * { position: relative; z-index: 1; }
/* WP's is-layout-flow injects margin-block-start on non-first children of any
   wp-block-group. Inside our grid containers (hero-inner / topics-grid /
   approach-inner / practical-row), that margin shifts grid items within
   their own cell, so the first item stays put while siblings drift down.
   Zero it out for every grid-container child. */
.hero-inner > *,
.topics-grid > *,
.approach-inner > *,
.practical-row > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Section background tints — derived from the palette via color-mix() so the
   gradients re-color automatically when a style variation overrides the
   `--wp--preset--color--*-bg` tokens. Single source of truth = theme.json. */
:root {
  --wash-hero:      color-mix(in srgb, var(--wp--preset--color--hero-bg)     78%, transparent);
  --wash-quote:     color-mix(in srgb, var(--wp--preset--color--quote-bg)    78%, transparent);
  --wash-topics:    color-mix(in srgb, var(--wp--preset--color--topics-bg)   78%, transparent);
  --wash-approach:  color-mix(in srgb, var(--wp--preset--color--approach-bg) 78%, transparent);
  --wash-practical: color-mix(in srgb, var(--wp--preset--color--practical-bg)78%, transparent);
  --wash-cta:       color-mix(in srgb, var(--wp--preset--color--cta-bg)      78%, transparent);
  --wash-cta-mid:   color-mix(in srgb, #B2946C 92%, transparent);
  --wash-cta-deep:  #704E30;
  --wash-cta-bottom:#4A3422;
}
.section--hero {
  padding: 90px 32px 110px;
  background: linear-gradient(to bottom,
    var(--wash-hero) 0,
    var(--wash-hero) calc(100% - 220px),
    var(--wash-quote) 100%);
}
.section--quote {
  padding: 70px 32px;
  background: linear-gradient(to bottom,
    var(--wash-quote) 0,
    var(--wash-quote) calc(100% - 220px),
    var(--wash-topics) 100%);
}
.section--topics {
  padding: 90px 32px;
  background: linear-gradient(to bottom,
    var(--wash-topics) 0,
    var(--wash-topics) calc(100% - 220px),
    var(--wash-approach) 100%);
}
.section--approach {
  padding: 90px 32px;
  background: linear-gradient(to bottom,
    var(--wash-approach) 0,
    var(--wash-approach) calc(100% - 220px),
    var(--wash-practical) 100%);
}
.section--practical {
  padding: 90px 32px;
  background: linear-gradient(to bottom,
    var(--wash-practical) 0,
    var(--wash-practical) calc(100% - 220px),
    var(--wash-cta) 100%);
}
.section--cta {
  padding: 120px 32px;
  text-align: center;
  background: linear-gradient(to bottom,
    var(--wash-cta) 0,
    var(--wash-cta) 48%,
    var(--wash-cta-mid) 68%,
    var(--wash-cta-deep) 86%,
    var(--wash-cta-bottom) 100%);
}
/* Constrain every section's direct content to 1200px and center it. */
.section > .wp-block-group,
.section > .wp-block-heading,
.section > .wp-block-paragraph,
.section > .wp-block-image,
.section > .wp-block-buttons,
.section > h1, .section > h2, .section > h3, .section > p,
.section > figure {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Section-to-section transitions are handled by the rgba gradient on each
   .section--* class fading into the next section's color over the last 220px.
   No additional seam-blur layer needed; the wood-grain contrast made the
   blurred strip too visible. .section--has-seam className kept on patterns
   for future tweaks but currently styled to no-op. */

/* ============================================================
   TYPOGRAPHY — Fraunces (display) / Inter (body)
   ============================================================ */
h1, h2, h3, .display {
  font-family: var(--serif-display);
  color: var(--ink); font-weight: 400;
  text-wrap: pretty; letter-spacing: -0.012em;
  margin: 0;
}
h1, .h1 { font-size: clamp(40px,6.4vw,74px); line-height: 0.92; font-variation-settings: "opsz" 96, "SOFT" 50; }
h2, .h2 { font-size: clamp(32px,4.4vw,48px); line-height: 1.05; font-variation-settings: "opsz" 60, "SOFT" 50; }
h3, .h3 { font-size: clamp(20px,2.4vw,24px); line-height: 1.3; font-weight: 500; }
em { color: var(--ochre-deep); font-style: italic; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ochre-deep); font-weight: 500; margin: 0 0 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); display: inline-block; }

/* Rainbow gradient text for the LGBTIQ* asterisk — single unified detail. */
.ast {
  background: linear-gradient(90deg,#C26A4A,#D89B3A 35%,#8A9A6B 70%,#6B4A5C);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 600;
}

/* GLOBAL LIFT — soft warm text shadow on type so it floats above the wood. */
.section h1, .section h2, .section .quote-q {
  text-shadow: 0 1px 0 rgba(255,247,232,0.55),
               0 2px 6px rgba(58,46,34,0.18),
               0 8px 20px rgba(58,46,34,0.10);
}
.section p, .section .eyebrow {
  text-shadow: 0 1px 1px rgba(255,247,232,0.4),
               0 1px 3px rgba(58,46,34,0.10);
}

/* ============================================================
   NAV (sticky top)
   WP wraps the header/footer parts in <header class="wp-block-template-part">.
   That wrapper becomes the sticky containing block, pinning nav-top inside
   a 96px-tall box — nav can't travel. display:contents makes the wrapper
   layout-transparent so .nav-top sticks relative to .wp-site-blocks.
   ============================================================ */
.wp-block-template-part { display: contents; }
.nav-top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,239,226,1.0);
  padding: 22px 0;
  border-bottom: 1px solid rgba(110,74,18,0.08);
}
/* When the WP admin bar is showing (logged-in users only), it occupies the
   top 32px (46px on small screens). Offset the sticky nav so the brand
   isn't clipped underneath. Public site visitors don't have this offset. */
.admin-bar .nav-top { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .nav-top { top: 46px; }
}
.nav-top__inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
/* Brand lockup — asterisk centered vertically with the wordmark stack,
   and the wordmark itself baseline-aligned with the nav links to its right. */
.nav-top .brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; border: 0; color: inherit;
}
/* Asterisk sized to match the wordmark stack height so its top/bottom
   sit between "Entre-Nous" top and "CONSULT" bottom (no taller, no shorter). */
.nav-top .brand img { height: 56px; width: 56px; flex: none; object-fit: contain; margin: -10px 0; }
.nav-top .brand .stack { display: flex; flex-direction: column; gap: 0; line-height: 1; align-items: center; }
.nav-top .brand .word { font-family: var(--serif-display); font-style: italic; font-size: 30px; color: var(--ink); line-height: 1; letter-spacing: -0.01em; margin: 0; }
.nav-top .brand .sub { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--amber-deep); line-height: 1; margin-top: 3px; }
.nav-top .nav-links { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.nav-top .nav-links a { color: var(--ink); font-size: 14.5px; border: 0; text-decoration: none; letter-spacing: 0.01em; }
.nav-top .nav-links a:hover { color: var(--ochre-deep); }
.nav-top .cta {
  background: var(--ochre); color: var(--paper);
  padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 0; text-decoration: none;
  box-shadow: 0 8px 20px -6px rgba(58,46,34,0.30), 0 2px 6px -2px rgba(58,46,34,0.18);
  transition: background 200ms var(--ease-soft);
}
.nav-top .cta:hover { background: var(--ochre-deep); color: var(--paper); }

/* ============================================================
   HERO
   ============================================================ */
.section--hero .hero-inner {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
.section--hero .hero-text h1 { font-size: clamp(40px,6.4vw,74px); line-height: 0.92; }
.section--hero .hero-text .lede { margin-top: 24px; font-size: 19px; line-height: 1.65; color: var(--ink-soft); max-width: 54ch; text-wrap: pretty; margin-bottom: 0; }
.section--hero .hero-ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.section--hero .hero-ctas .wp-block-button__link {
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  border: 0;
  transition: background 200ms var(--ease-soft);
}
.section--hero .hero-ctas .is-style-primary .wp-block-button__link {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 8px 20px -6px rgba(58,46,34,0.30), 0 2px 6px -2px rgba(58,46,34,0.18);
}
.section--hero .hero-ctas .is-style-primary .wp-block-button__link:hover { background: var(--ink-soft); color: var(--paper); }
.section--hero .hero-ctas .is-style-secondary .wp-block-button__link {
  background: transparent; color: var(--amber-deep);
  border: 1px solid var(--ochre);
  box-shadow: 0 4px 14px -6px rgba(58,46,34,0.20);
}
.section--hero .hero-ctas .is-style-secondary .wp-block-button__link:hover { background: rgba(200,144,44,0.1); color: var(--amber-deep); }
.section--hero .hero-art { display: flex; justify-content: center; align-items: center; margin: 0; }
.section--hero .hero-art img,
.section--hero .hero-art img.disc-big {
  width: 380px; height: auto; max-width: 100%; display: block;
  filter: drop-shadow(0 8px 18px rgba(58,46,34,0.22)) drop-shadow(0 24px 50px rgba(58,46,34,0.14));
}

/* ============================================================
   QUOTE STRIP
   ============================================================ */
.quote-q {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(24px,3vw,34px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  text-wrap: pretty;
}
.quote-q::before, .quote-q::after {
  content: ""; display: block; width: 80px; height: 1px;
  background: rgba(110,74,18,0.3); margin: 0 auto;
}
.quote-q::before { margin-bottom: 40px; }
.quote-q::after { margin-top: 40px; }
.quote-q em { color: var(--ochre-deep); }

/* ============================================================
   TOPICS GRID
   ============================================================ */
.topics-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 40px; }
.topics-head h2 { max-width: 18ch; }
.topics-head p { font-size: 16px; color: var(--ink-soft); max-width: 42ch; margin: 0; line-height: 1.65; }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: stretch;
}
.topic-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 30px 30px 28px;
  border: 1px solid rgba(110,74,18,0.08);
  transition: transform 280ms var(--ease-soft), box-shadow 280ms var(--ease-soft);
  position: relative; overflow: hidden;
  box-shadow: 0 18px 36px -22px rgba(58,46,34,0.30), 0 4px 10px -4px rgba(58,46,34,0.12);
  /* All 4 cards share a min-height baseline so the 2×2 grid reads as a
     neat matrix even when content lengths differ. Flex column + auto margin
     on the trailing link keeps "En savoir plus" pinned to the card's foot. */
  display: flex; flex-direction: column;
  min-height: 280px;
}
/* (Previously pushed the trailing "En savoir plus" link to the foot of each
   card via margin-top: auto. Those links were removed in topics-grid.php
   because they had no destinations; cards now size to content within the
   shared min-height baseline.) */
.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 50px -22px rgba(58,46,34,0.40), 0 8px 18px -6px rgba(58,46,34,0.18);
}
.topic-card.is-feature {
  background: linear-gradient(165deg,#F2E3C9 0%,#ECCFA8 60%,#E0A88E 100%);
  border-color: transparent;
}
/* wp:image renders <figure class="star-mini"><img></figure> — size both layers */
.topic-card .star-mini { width: 24px; height: 24px; margin: 0 0 14px; }
.topic-card .star-mini img { width: 24px; height: 24px; display: block; }
.topic-card.is-feature .star-mini { width: 28px; height: 28px; }
.topic-card.is-feature .star-mini img { width: 28px; height: 28px; }
.topic-card h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 8px;
}
.topic-card p {
  font-size: 15px; color: var(--ink-soft);
  line-height: 1.6; margin: 0 0 14px;
}
.topic-card .more {
  font-size: 13.5px; color: var(--olive-deep);
  text-decoration: none; border: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; letter-spacing: 0.02em;
}
.topic-card .more:hover { color: var(--ochre-deep); }

/* ============================================================
   APPROACH
   ============================================================ */
.approach-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
/* Rendered by wp:image as <figure class="wp-block-image approach-photo"><img>.
   Figure holds the radius + shadow + aspect-ratio; the inner img covers. */
.approach-photo {
  margin: 0;
  width: 100%; aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 60px -20px rgba(58,46,34,0.45), 0 8px 20px -8px rgba(58,46,34,0.25);
}
.approach-photo picture { display: block; width: 100%; height: 100%; }
.approach-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; border-radius: 14px;
}
.approach-text .label {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ochre-deep); margin-bottom: 14px;
}
.approach-text h2 { margin-bottom: 18px; }
.approach-text h2 .she { color: var(--ink-mute); font-style: italic; font-weight: 400; }
.approach-text p { font-size: 16px; line-height: 1.75; color: var(--ink); margin: 0 0 16px; }
/* approach-creds is now a wp:list (ul) so Clementina can add/edit/reorder
   credentials in the Site Editor without raw-HTML access. */
.approach-creds {
  list-style: none;
  margin: 24px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.approach-creds li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 14px; color: var(--ink-soft);
  margin: 0;
}
.approach-creds li::before {
  content: ""; flex: 0 0 6px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--ochre); margin-top: 8px;
}
.approach-creds li::marker { content: none; }

/* ============================================================
   PRACTICAL
   ============================================================ */
.practical-head { text-align: center; margin-bottom: 48px; }
.practical-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.practical-info {
  padding: 24px 4px;
  border-top: 1px solid rgba(110,74,18,0.18);
}
.practical-info h4 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ochre-deep); margin: 0 0 10px; font-weight: 500;
  font-family: var(--sans-body);
}
.practical-info p {
  font-family: var(--serif-display);
  font-size: 22px; line-height: 1.3;
  color: var(--ink); margin: 0; font-weight: 400;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { text-align: center; }
.cta-band .cta-asterisk {
  width: 90px; height: 90px; margin: 0 auto 20px;
}
.cta-band .cta-asterisk img {
  width: 90px; height: 90px; display: block; margin: 0 auto;
  filter: drop-shadow(0 3px 6px rgba(58,46,34,0.18)) drop-shadow(0 8px 18px rgba(58,46,34,0.12));
}
/* Override WP's generic image max-width inside CTA */
.cta-band .wp-block-image img { width: 90px; height: 90px; }
/* WP centers <figure> content via text-align — already centered via section--cta */
.cta-band h2 {
  font-size: clamp(40px,5vw,64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.cta-band p { font-size: 18px; color: var(--ink-soft); margin: 0 auto 32px; max-width: 54ch; }
.cta-band .wp-block-button__link {
  background: var(--ink); color: var(--paper);
  padding: 16px 32px; border-radius: 999px;
  font-size: 16px; border: 0;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px -6px rgba(58,46,34,0.30), 0 2px 6px -2px rgba(58,46,34,0.18);
  transition: background 200ms var(--ease-soft);
}
.cta-band .wp-block-button__link:hover { background: var(--ink-soft); color: var(--paper); }

/* ============================================================
   FOOTER — now built from native blocks in parts/footer.html so
   Clementina can edit phone, email, links, and any text in the
   Site Editor without touching code. CSS targets both the modern
   BEM class names AND the inner wp-block-* classes WP emits.
   ============================================================ */
.site-footer {
  padding: 60px 0 40px;
  background: #4A3422; color: #E6D6B8;
  position: relative; z-index: 1;
}
.site-footer__inner { padding: 0 32px; max-width: 1200px; margin: 0 auto; }
.site-footer__row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px; align-items: start;
}
.site-footer h4, .site-footer .wp-block-heading {
  font-family: var(--serif-display); font-style: italic; font-weight: 400;
  font-size: 18px; color: var(--paper); margin: 0 0 12px;
}
.site-footer ul,
.site-footer .wp-block-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.site-footer a, .site-footer li {
  color: #E6D6B8; font-size: 14px; text-decoration: none; border: 0; opacity: 0.85;
}
.site-footer a:hover { opacity: 1; color: #EAB85E; }

/* Brand block (left column) — uses wp:site-logo + wp:site-title + wp:site-tagline.
   Title-to-tagline gap is half the logo-to-title gap (tighter lockup, like the
   reference image). */
.site-footer .footer-brand {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0;  /* per-element margins drive spacing — matches stacked-dark logo lockup */
}
.site-footer .footer-brand img,
.site-footer .footer-brand .wp-block-site-logo img,
.site-footer .footer-brand-logo img {
  width: 56px; height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}
.site-footer .footer-brand .word,
.site-footer .footer-brand .wp-block-site-title {
  font-family: var(--serif-display); font-style: italic;
  font-size: 30px; color: var(--paper);
  line-height: 1; letter-spacing: -0.01em;
  margin: 0;
}
.site-footer .footer-brand .sub,
.site-footer .footer-brand .wp-block-site-tagline {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #EAB85E; line-height: 1; margin: 0;
  /* Small breathing room under the wordmark (matches nav/horizontal lockups). */
  margin-top: 3px;
}

/* Other footer columns. */
.site-footer .footer-col { display: flex; flex-direction: column; gap: 6px; }

/* Copy row. */
.site-footer__copy {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(230,214,184,0.18);
  font-size: 12px; color: #B89A6A; letter-spacing: 0.04em;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.site-footer__copy .copy-left,
.site-footer__copy .copy-right {
  color: #B89A6A; margin: 0;
}

/* ============================================================
   RESPONSIVE — collapse multi-column grids on narrow screens
   ============================================================ */
@media (max-width: 900px) {
  /* Tablet: nav still fits one row but with tighter spacing. */
  :root { --nav-height: 96px; }
  .nav-top__inner { flex-wrap: wrap; gap: 14px; padding: 0 20px; }
  .nav-top .nav-links { gap: 18px; font-size: 13.5px; flex-wrap: wrap; }
  /* WCAG 2.5.5 — 44×44 tap targets via vertical padding on nav links. */
  .nav-top .nav-links a { padding: 12px 4px; display: inline-block; }
  .container { padding: 0 20px; }
  .section--hero { padding: 60px 0 80px; }
  .section--hero .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
  .section--hero .hero-art img { width: 240px; }
  .topics-head { flex-direction: column; align-items: flex-start; }
  .topics-grid { grid-template-columns: 1fr; }
  .approach-inner { grid-template-columns: 1fr; gap: 40px; }
  .practical-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .site-footer__row { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .site-footer .footer-brand { align-items: center; }
  .site-footer ul, .site-footer .wp-block-list { align-items: center; }
  .site-footer__copy { flex-direction: column; gap: 8px; text-align: center; }
  .site-footer .copy { flex-direction: column; gap: 8px; text-align: center; }
}
/* Phone — hide the 3 anchor labels (Accompagnements / Approche / Pratique)
   that crowd the sticky bar. Keep only Nouvelles + Contact + CTA so the nav
   fits one row at 360px. The anchors are still reachable by scrolling.   */
@media (max-width: 720px) {
  :root { --nav-height: 78px; }
  .nav-top { padding: 12px 0; }
  .nav-top__inner { gap: 10px; padding: 0 16px; flex-wrap: nowrap; align-items: center; }
  /* Asterisk matched proportionally to the smaller mobile wordmark stack */
  .nav-top .brand img { height: 42px; width: 42px; margin: -8px 0; }
  .nav-top .brand .word { font-size: 22px; }
  .nav-top .brand .sub { font-size: 7px; letter-spacing: 0.22em; }
  .nav-top .nav-links { gap: 12px; }
  /* Hide the first three (anchor) links; keep Nouvelles (4th) and Contact (5th). */
  .nav-top .nav-links li:nth-child(-n+3) { display: none; }
  .nav-top .nav-links a { font-size: 13px; padding: 10px 6px; }
  .nav-top .cta { padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 560px) {
  /* Slightly smaller body text on phones reduces horizontal pressure. */
  body { font-size: 16px; }
  .practical-row { grid-template-columns: 1fr; }
  .section--hero .hero-text h1 { font-size: 44px; line-height: 1; }
  .nav-top .brand .stack { display: none; } /* very narrow: just the asterisk + nav + CTA */
}

/* ============================================================
   NEWS — blog archive (home.html) + single article (single.html)
   Single translucid cream section that holds the whole content area,
   matching the hero's rgba(0.78) overlay over the wood grain.
   ============================================================ */
.section--news {
  padding: 110px 32px 120px;
  background: rgba(242,227,201,0.85);  /* hero cream, slightly more opaque */
}
.section--news .news-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section--news .news-head .eyebrow { margin: 0 auto 18px; }
.section--news .news-head h1 {
  font-size: clamp(40px,5.4vw,64px);
  line-height: 1.02;
  margin: 0 0 18px;
}
.section--news .news-lede {
  font-size: 18px; line-height: 1.65;
  color: var(--ink-soft); max-width: 56ch;
  margin: 0 auto;
}

/* Posts list — single column, generous spacing. */
.section--news .posts-list { max-width: 780px; margin: 0 auto; }
.section--news .wp-block-post-template {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 56px;
}
.post-card {
  position: relative;
  padding: 0 0 56px;
  border-bottom: 1px solid var(--divider);
}
/* The Query Loop wraps each .post-card in a <li>, so .post-card itself is
   never the last child of a list-item parent — :last-child here would match
   nothing useful. Target the final list item's card instead. */
.wp-block-post-template > li:last-child .post-card { border-bottom: 0; padding-bottom: 0; }
.post-card .post-meta,
.post-card .wp-block-post-date,
.post-card .wp-block-post-date time {
  font-family: var(--sans-body);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin: 0 0 14px;
  display: block;
}
.post-card .post-title,
.post-card .wp-block-post-title {
  font-family: var(--serif-display);
  font-size: clamp(28px,3.4vw,40px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 18px;
  font-weight: 400;
}
.post-card .post-title a,
.post-card .wp-block-post-title a {
  color: var(--ink);
  text-decoration: none;
  border: 0;
  transition: color 220ms var(--ease-soft);
}
.post-card .post-title a:hover,
.post-card .wp-block-post-title a:hover { color: var(--ochre-deep); }
.post-card .post-excerpt,
.post-card .wp-block-post-excerpt {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.post-card .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--olive-deep);
  font-size: 14px;
  text-decoration: none;
  border: 0;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.post-card .wp-block-post-excerpt__more-link:hover { color: var(--ochre-deep); }

.news-pagination { margin-top: 64px; gap: 18px; }
.news-pagination a,
.news-pagination .page-numbers {
  color: var(--ink-soft);
  text-decoration: none;
  border: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.news-pagination .current { color: var(--ochre-deep); font-weight: 600; }
.news-empty { text-align: center; color: var(--ink-mute); font-style: italic; }

/* ============================================================
   PROSE — shared layout + typography for single posts (.section--article)
   and pages (.section--page). One ruleset, two contexts.
   ============================================================ */
.section--article .article-inner,
.section--page .page-inner {
  max-width: 780px;
  margin: 0 auto;
}
.section--article .article-head,
.section--page .page-head {
  text-align: center;
  margin-bottom: 56px;
}
.section--article .article-head .post-meta,
.section--article .article-head .wp-block-post-date,
.section--article .article-head .wp-block-post-date time {
  font-family: var(--sans-body);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin: 0 0 16px;
  display: block;
}
.section--article .article-title,
.section--article h1.wp-block-post-title,
.section--page .page-title,
.section--page h1.wp-block-post-title {
  font-family: var(--serif-display);
  font-size: clamp(36px,5vw,60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.section--article .article-content,
.section--page .page-content {
  font-family: var(--sans-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.section--article .article-content > *,
.section--page .page-content > * { margin-block: 0 1.4em; }
.section--article .article-content h2,
.section--page .page-content h2 {
  font-family: var(--serif-display);
  font-size: clamp(26px,3vw,34px);
  line-height: 1.15;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--ink);
}
.section--article .article-content h3,
.section--page .page-content h3 {
  font-family: var(--serif-display);
  font-size: 22px;
  line-height: 1.3;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}
.section--article .article-content blockquote,
.section--page .page-content blockquote {
  border-left: 2px solid var(--ochre);
  padding: 4px 0 4px 24px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 1.6em 0;
}
.section--article .article-content a,
.section--page .page-content a {
  color: var(--olive-deep);
  border-bottom: 1px solid currentColor;
}
.section--article .article-content a:hover,
.section--page .page-content a:hover { color: var(--ochre-deep); }
.section--article .article-content ul, .section--article .article-content ol,
.section--page .page-content ul,       .section--page .page-content ol { padding-left: 1.4em; }
.section--article .article-content li + li,
.section--page .page-content li + li { margin-top: 0.4em; }

/* Article-only: foot back-link (pages don't need this). */
.section--article .article-foot {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--divider);
  text-align: center;
}
.section--article .article-foot a.more,
.section--article .article-foot a {
  color: var(--olive-deep);
  text-decoration: none;
  border: 0;
  font-size: 14.5px;
  letter-spacing: 0.02em;
}
.section--article .article-foot a:hover { color: var(--ochre-deep); }

/* ============================================================
   RICH CONTENT — shared block + inline styling for everything
   Clementina can insert inside an article or page: code, pullquotes,
   poetry, details/summary, tables, separators, images, mark, kbd,
   inline code, footnotes, etc. Targets both .article-content
   (single posts) and .page-content (pages).
   ============================================================ */
/* Inline highlight — soft warm wash, not bright yellow */
.article-content mark,
.page-content mark {
  background: rgba(200,144,44,0.18);
  color: var(--ink);
  padding: 0 0.18em;
  border-radius: 2px;
}
/* Inline code */
.article-content code:not([class^="language-"]),
.page-content code:not([class^="language-"]) {
  background: rgba(110,74,18,0.08);
  color: var(--amber-deep);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.92em;
}
/* Keyboard input */
.article-content kbd,
.page-content kbd {
  display: inline-block;
  padding: 0.1em 0.5em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 0.85em;
  line-height: 1;
}
/* Strikethrough — soften default red */
.article-content s, .article-content del,
.page-content s,  .page-content del { color: var(--ink-mute); }
.article-content sub, .article-content sup,
.page-content sub,  .page-content sup { font-size: 0.75em; }
/* Underline (<u>) — offset for elegance */
.article-content u, .page-content u {
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
/* Abbreviations */
.article-content abbr[title], .page-content abbr[title] {
  text-decoration: underline dotted var(--ochre); cursor: help;
}
/* Small text */
.article-content small, .page-content small {
  font-size: 0.85em; color: var(--ink-soft);
}

/* ----- Block-level rich content ----- */
.article-content .wp-block-code,
.article-content pre,
.page-content .wp-block-code,
.page-content pre {
  background: rgba(110,74,18,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 1.6em 0;
}
.article-content .wp-block-preformatted,
.page-content .wp-block-preformatted {
  background: rgba(110,74,18,0.06);
  border-left: 2px solid var(--ochre);
  padding: 16px 22px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 14.5px;
  white-space: pre-wrap;
  margin: 1.6em 0;
}

/* Pullquote — large centered statement */
.article-content .wp-block-pullquote,
.page-content .wp-block-pullquote {
  border: 0;
  padding: 48px 0;
  margin: 2em 0;
  text-align: center;
}
.article-content .wp-block-pullquote p,
.page-content .wp-block-pullquote p {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(24px,3vw,32px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 auto;
  max-width: 24ch;
}
.article-content .wp-block-pullquote cite,
.page-content .wp-block-pullquote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}
.article-content .wp-block-pullquote::before,
.article-content .wp-block-pullquote::after,
.page-content .wp-block-pullquote::before,
.page-content .wp-block-pullquote::after {
  content: ""; display: block; width: 60px; height: 1px;
  background: var(--divider); margin: 0 auto;
}
.article-content .wp-block-pullquote::before,
.page-content .wp-block-pullquote::before { margin-bottom: 28px; }
.article-content .wp-block-pullquote::after,
.page-content .wp-block-pullquote::after { margin-top: 28px; }

/* Poetry / verse block — preserves whitespace, italic Fraunces */
.article-content .wp-block-verse,
.page-content .wp-block-verse {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--ink);
  background: transparent;
  padding: 1.4em 0 1.4em 24px;
  border-left: 2px solid var(--ochre);
  margin: 1.6em 0;
}

/* Details/summary — quiet disclosure */
.article-content .wp-block-details,
.page-content .wp-block-details {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 14px 0;
  margin: 1.6em 0;
}
.article-content .wp-block-details summary,
.page-content .wp-block-details summary {
  cursor: pointer;
  font-family: var(--serif-display);
  font-size: 19px;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-left: 22px;
  font-weight: 500;
}
.article-content .wp-block-details summary::-webkit-details-marker,
.page-content .wp-block-details summary::-webkit-details-marker { display: none; }
.article-content .wp-block-details summary::before,
.page-content .wp-block-details summary::before {
  content: "›"; position: absolute; left: 4px; top: 0;
  color: var(--ochre); transition: transform 220ms var(--ease-soft);
}
.article-content .wp-block-details[open] summary::before,
.page-content .wp-block-details[open] summary::before {
  transform: rotate(90deg);
}
.article-content .wp-block-details > *:not(summary),
.page-content .wp-block-details > *:not(summary) { margin-top: 0.8em; }

/* Tables */
.article-content .wp-block-table,
.page-content .wp-block-table { margin: 1.6em 0; }
.article-content .wp-block-table table,
.page-content .wp-block-table table {
  border-collapse: collapse; width: 100%;
  font-size: 15.5px;
}
.article-content .wp-block-table th,
.article-content .wp-block-table td,
.page-content .wp-block-table th,
.page-content .wp-block-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.article-content .wp-block-table th,
.page-content .wp-block-table th {
  font-family: var(--sans-body);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  font-weight: 500;
}
.article-content .wp-block-table tbody tr:nth-child(even),
.page-content .wp-block-table tbody tr:nth-child(even) {
  background: rgba(110,74,18,0.04);
}

/* Separator — hairline with ochre dot center */
.article-content .wp-block-separator,
.page-content .wp-block-separator {
  border: 0; height: auto;
  text-align: center; margin: 3em 0;
  background: transparent;
  position: relative;
}
.article-content .wp-block-separator::before,
.page-content .wp-block-separator::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ochre);
  vertical-align: middle;
}
.article-content .wp-block-separator.has-alpha-channel-opacity::before,
.page-content .wp-block-separator.has-alpha-channel-opacity::before { background: var(--ochre); }
/* Wide variant — hairline with dot */
.article-content .wp-block-separator.is-style-wide,
.page-content .wp-block-separator.is-style-wide { border-top: 1px solid var(--divider); }

/* Images — soft shadow + radius */
.article-content .wp-block-image,
.page-content .wp-block-image { margin: 1.6em 0; }
.article-content .wp-block-image img,
.page-content .wp-block-image img {
  border-radius: 10px;
  box-shadow: 0 16px 36px -16px rgba(58,46,34,0.32), 0 4px 10px -4px rgba(58,46,34,0.12);
  display: block;
  max-width: 100%;
  height: auto;
}
.article-content .wp-block-image figcaption,
.page-content .wp-block-image figcaption {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* Gallery — clean grid */
.article-content .wp-block-gallery,
.page-content .wp-block-gallery { margin: 1.6em 0; }

/* Cover block */
.article-content .wp-block-cover,
.page-content .wp-block-cover {
  border-radius: 12px;
  overflow: hidden;
  margin: 1.6em 0;
}

/* Footnotes — small superscript that links to the footnote list */
.article-content .wp-block-footnotes,
.page-content .wp-block-footnotes {
  margin-top: 3em;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 14px;
  color: var(--ink-soft);
  list-style: decimal;
  padding-left: 1.4em;
}
.article-content a.fn,
.article-content sup a,
.page-content a.fn,
.page-content sup a {
  color: var(--ochre-deep);
  border-bottom: 0;
  font-weight: 500;
}

/* Lists (ul/ol) inside content */
.article-content ul,
.article-content ol,
.page-content ul,
.page-content ol { padding-left: 1.4em; margin: 1em 0; }
.article-content ul li::marker,
.page-content ul li::marker { color: var(--ochre); }
.article-content ol li::marker,
.page-content ol li::marker { color: var(--ochre-deep); font-weight: 500; }

/* "Highlight" formatting — WP saves it as an inline mark or a span */
.article-content .has-inline-color,
.page-content .has-inline-color {
  background: rgba(200,144,44,0.20);
  padding: 0 0.18em;
  border-radius: 2px;
}

/* 404 — centered, simple. Reuses page styling with extra padding. */
.section--404 { padding: 140px 32px 160px; }
.section--404 .not-found {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.section--404 .not-found .eyebrow { margin: 0 auto 22px; }
.section--404 .not-found h1 { margin-bottom: 20px; }
.section--404 .not-found p {
  font-size: 18px; line-height: 1.65;
  color: var(--ink-soft); margin: 0 auto 32px;
}
.section--404 .not-found-ctas { gap: 14px; flex-wrap: wrap; }
.section--404 .not-found-ctas .is-style-primary .wp-block-button__link {
  background: var(--ink); color: var(--paper);
  padding: 14px 26px; border-radius: 999px; border: 0;
  font-size: 15.5px; letter-spacing: 0.01em;
}
.section--404 .not-found-ctas .is-style-secondary .wp-block-button__link {
  background: transparent; color: var(--amber-deep);
  border: 1px solid var(--ochre);
  padding: 14px 26px; border-radius: 999px;
  font-size: 15.5px; letter-spacing: 0.01em;
}

/* Archive page — title sits where the "Nouvelles" h1 is in home.html. */
.news-archive-title {
  font-family: var(--serif-display);
  font-size: clamp(40px,5.4vw,64px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 18px;
}

/* ============================================================
   ANIMATIONS — universal smooth reveals.

   Two complementary systems run side by side:

   1. .reveal / .is-revealed (JS-driven, IntersectionObserver)
      Works in every browser since 2018. assets/js/animations.js adds
      .is-revealed when the element scrolls into view. Single source of
      truth for cross-browser fade-up. Per-element stagger via inline
      --reveal-delay variable.

   2. animation-timeline: view() / scroll() (CSS-only)
      Modern enhancement — when supported (Chrome 115+), takes over for
      a smoother frame-by-frame interpolation. Otherwise the JS path
      handles everything cleanly.

   Both honour prefers-reduced-motion. .no-animations class on <html>
   (set by the JS when reduced-motion is detected) disables everything.
   ============================================================ */

/* JS-driven reveal — universal baseline. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
/* If JS doesn't load (very rare) make sure content stays visible. */
.no-js .reveal, html.no-animations .reveal {
  opacity: 1; transform: none; transition: none;
}

/* Initial-load hero fade-in. Hero is above the fold so we don't gate it
   on scroll — it animates on page load instead. */
.section--hero .hero-text > *,
.section--hero .hero-art {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.section--hero .hero-text .eyebrow  { animation-delay: 100ms; }
.section--hero .hero-text h1        { animation-delay: 200ms; }
.section--hero .hero-text .lede     { animation-delay: 380ms; }
.section--hero .hero-text .wp-block-buttons { animation-delay: 520ms; }
.section--hero .hero-art            { animation-delay: 280ms; transform: translateY(0) scale(0.96); animation-name: hero-mark-in; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-mark-in {
  from { opacity: 0; transform: scale(0.94) rotate(-3deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
html.no-animations .section--hero .hero-text > *,
html.no-animations .section--hero .hero-art {
  opacity: 1; transform: none; animation: none;
}

/* Above-the-fold page-load fade-ins for non-landing templates.
   These animate on arrival (like the hero on the front page) instead of
   waiting for scroll, since the content IS the first thing the visitor sees. */
.section--news .news-head > *,
.section--article .article-head > *,
.section--article .article-content,
.section--page .page-head > *,
.section--page .page-content,
.section--404 .not-found > * {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--enter-delay, 120ms);
}
.section--news .news-head .eyebrow              { --enter-delay: 80ms; }
.section--news .news-head h1                    { --enter-delay: 180ms; }
.section--news .news-head .news-lede            { --enter-delay: 320ms; }
.section--article .article-head .post-meta,
.section--article .article-head .wp-block-post-date { --enter-delay: 80ms; }
.section--article .article-head .article-title,
.section--article .article-head .wp-block-post-title { --enter-delay: 180ms; }
.section--article .article-content              { --enter-delay: 380ms; }
.section--page .page-head h1,
.section--page .page-head .wp-block-post-title  { --enter-delay: 120ms; }
.section--page .page-content                    { --enter-delay: 280ms; }
.section--404 .not-found .eyebrow               { --enter-delay: 80ms; }
.section--404 .not-found h1                     { --enter-delay: 180ms; }
.section--404 .not-found p                      { --enter-delay: 320ms; }
.section--404 .not-found .wp-block-buttons      { --enter-delay: 460ms; }

html.no-animations .section--news .news-head > *,
html.no-animations .section--article .article-head > *,
html.no-animations .section--article .article-content,
html.no-animations .section--page .page-head > *,
html.no-animations .section--page .page-content,
html.no-animations .section--404 .not-found > * {
  opacity: 1; transform: none; animation: none;
}

/* Smooth polish — hover/link transitions across the site. */
.topic-card { transition: transform 380ms cubic-bezier(0.2,0.7,0.2,1), box-shadow 380ms cubic-bezier(0.2,0.7,0.2,1); }
.topic-card:hover { transform: translateY(-4px); }

.wp-block-button__link,
.nav-top .cta { transition: background-color 250ms ease, color 250ms ease, transform 250ms ease, box-shadow 250ms ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.nav-top .cta:hover { transform: translateY(-1px); }

.nav-top .nav-links a {
  position: relative;
  transition: color 220ms ease;
}
.nav-top .nav-links a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 280ms cubic-bezier(0.2,0.7,0.2,1);
}
.nav-top .nav-links a:hover::after { transform: scaleX(1); }

.post-card { transition: transform 320ms cubic-bezier(0.2,0.7,0.2,1); }
.post-card:hover { transform: translateX(4px); }
.post-card .post-title a { transition: color 220ms ease; }

/* Nav scroll-compaction — driven by JS class `.is-scrolled`. */
.nav-top {
  transition: padding 350ms cubic-bezier(0.2,0.7,0.2,1),
              background-color 350ms ease,
              box-shadow 350ms ease,
              backdrop-filter 350ms ease;
}
.nav-top.is-scrolled {
  padding: 14px 0;
  background: rgba(246,239,226,0.94);
  box-shadow: 0 6px 24px -8px rgba(58,46,34,0.18), 0 1px 0 rgba(110,74,18,0.06);
}
@media (hover: hover) and (pointer: fine) {
  .nav-top.is-scrolled {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* (CSS scroll-driven animations removed — the JS .reveal system above is
   the single source of truth, runs cross-browser, and avoids the keyframe
   vs. transition conflicts that arose when both ran on the same elements.) */

/* ============================================================
   BLOG MINIMAL
   ============================================================ */
/* WP applies its body classes to <body>, not above it — `body.blog` for the
   posts page, `body.archive` for term archives, `body.single` for single
   posts. The old `.is-blog` selector was a fiction and never matched. */
body.blog::before, body.archive::before, body.single::before { opacity: 0.20; }
body.blog::after,  body.archive::after,  body.single::after  { opacity: 0.25; }
