/*
Theme Name: Feu de camp
Theme URI: https://wandervogel.fr
Author: Wandervogel France
Description: Thème « Feu de camp » de Wandervogel France — archive documentaire sur l'histoire des mouvements de jeunesse. Papier crème, encre vert-forêt, or du feu.
Version: 1.4.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: feu-de-camp
*/

/* — polices auto-hébergées (Google Fonts, licence OFL) — */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/cormorant-garamond-400-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: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/cormorant-garamond-400-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: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/cormorant-garamond-400-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: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/cormorant-garamond-400-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: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/lora-400-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: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/lora-400-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: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/lora-400-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: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/lora-400-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: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/lora-600-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: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/lora-600-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; }

/* ==========================================================================
   Wandervogel France — feuille de style du thème « Feu de camp »
   Base pour un thème WordPress. Tout est piloté par les variables ci-dessous.
   ========================================================================== */


:root {
  /* — couleurs — */
  --paper:        #f7f1e3;  /* fond de page, papier crème */
  --paper-alt:    #efe6d2;  /* bandeaux secondaires */
  --mat:          #ece2cb;  /* passe-partout des photographies */
  --ink:          #232a20;  /* encre vert-forêt, texte et bandeaux sombres */
  --ink-soft:     #3d4238;  /* corps de texte long */
  --ink-mute:     #6a6455;  /* métadonnées, légendes */
  --gold:         #b68235;  /* or du feu — filets, soulignements */
  --gold-deep:    #7d5411;  /* or lisible en petit corps (liens, sur-titres) */
  --gold-light:   #e1ad66;  /* or sur fond sombre */
  --green:        #3f5a33;  /* vert de marque (logo, entrée active) */
  --rule:         rgba(35, 42, 32, 0.18);
  --rule-strong:  rgba(35, 42, 32, 0.30);
  --rule-light:   rgba(247, 241, 227, 0.20);

  /* — typographie — */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Lora", Georgia, serif;

  /* — rythme — */
  --s1: 5px;  --s2: 9px;  --s3: 14px;  --s4: 18px;  --s6: 28px;  --s8: 37px;
  --measure: 1280px;   /* largeur de la grille de contenu */
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s2);
  text-wrap: pretty;
}
/* plus le texte est grand, plus il est léger */
h1 { font-size: 62px; font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: 40px; font-weight: 400; line-height: 1.06; }
h3 { font-size: 24px; }

p { margin: 0 0 var(--s3); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
figcaption { font-size: 11px; margin-top: var(--s1); color: var(--ink-mute); line-height: 1.5; }
sup { font-size: 0.7em; }

a { color: var(--gold-deep); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--gold); text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: rgba(182, 130, 53, 0.3); }

/* — utilitaires — */
.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; }
.pad { padding: var(--s8); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.hr { height: 1px; background: var(--rule-strong); border: 0; margin: var(--s6) 0; }
.mute { color: var(--ink-mute); }
.tnum { font-feature-settings: "tnum"; }

.kicker {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-feature-settings: "tnum";
  color: var(--gold-deep);
}
.kicker--mute { color: var(--ink-mute); }

.lede { font-size: 21px; line-height: 1.55; font-style: italic; color: var(--ink-soft); margin: 0; max-width: 46ch; }

/* colonnes justifiées — la signature de la mise en page */
.cols { columns: 2; column-gap: var(--s8); column-rule: 1px solid var(--rule); }
.justif { font-size: 16px; line-height: 1.8; text-align: justify; hyphens: auto; }
.prose { font-size: 17px; line-height: 1.9; text-align: justify; hyphens: auto; }
.prose .dropcap {
  float: left;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 84px;
  line-height: 0.76;
  margin: 8px var(--s3) 0 0;
  color: var(--gold-deep);
}

/* — photographies : montées en planche, passe-partout crème — */
.plate {
  border: 6px solid var(--mat);
  outline: 1px solid var(--rule);
  filter: sepia(0.12) saturate(1.04) contrast(1.02);
  background: var(--mat);
  overflow: hidden;
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate--h400 { height: 400px; }
.plate--h360 { height: 360px; }
.plate--h300 { height: 300px; }
.plate--h170 { height: 170px; }
.plate--h140 { height: 140px; }
.plate--h130 { height: 130px; }

/* — boutons : contour, jamais d'aplat — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; line-height: 1.2;
  padding: var(--s2) 17px;
  border: 1px solid var(--rule-strong); border-radius: 4px;
  background: transparent; color: var(--ink);
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: rgba(35, 42, 32, 0.07); text-decoration: none; }
.btn:active { background: rgba(35, 42, 32, 0.14); }
.btn--gold { color: var(--gold-deep); border-color: var(--gold-deep); }
.btn--gold:hover { background: rgba(182, 130, 53, 0.12); color: var(--gold-deep); }
.btn--light { color: var(--gold-light); border-color: var(--gold-light); }
.btn--light:hover { background: rgba(225, 173, 102, 0.14); color: var(--gold-light); }
.btn--block { width: 100%; margin-top: var(--s2); }

.input {
  font-family: var(--font-body); font-size: 14px;
  padding: var(--s2) var(--s3);
  border: 1px solid var(--rule-strong); border-radius: 4px;
  background: transparent; color: inherit;
}
.input::placeholder { color: var(--ink-mute); }

.tag {
  display: inline-flex; align-items: center;
  font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px; border-radius: 3px;
  border: 1px solid var(--gold-deep); color: var(--gold-deep);
}

/* — bandeaux sombres — */
.band { background: var(--ink); color: var(--paper); }
.band a { color: var(--gold-light); }
.band a:hover { color: #facb8d; }
.band .kicker { color: var(--gold-light); }
.band .soft { color: rgba(247, 241, 227, 0.82); }
.band .input { color: var(--paper); border-color: rgba(247, 241, 227, 0.4); }
.band .input::placeholder { color: rgba(247, 241, 227, 0.55); }

/* — le logo, posé en masque : il prend la couleur qu'on lui donne — */
.mark {
  background-color: var(--green);
  mask-image: url('assets/logo-bird.png');
  -webkit-mask-image: url('assets/logo-bird.png');
  mask-size: contain; -webkit-mask-size: contain;
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
  mask-position: bottom left; -webkit-mask-position: bottom left;
}
.mark--lockup {
  mask-image: url('assets/logo-full.png');
  -webkit-mask-image: url('assets/logo-full.png');
  mask-position: left center; -webkit-mask-position: left center;
}
.mark--gold  { background-color: var(--gold-light); }
.mark--paper { background-color: var(--paper); }

/* ── en-tête ─────────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s6); padding: var(--s3) var(--s8);
}
.langs { display: flex; gap: var(--s4); }
.langs span { opacity: 0.6; }
.langs .is-active { opacity: 1; color: var(--gold-light); }

.masthead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s6); padding: var(--s6) var(--s8) var(--s4);
}
.brand { display: flex; align-items: flex-end; gap: var(--s4); }
.brand .mark { width: 92px; height: 68px; flex: none; }
.brand__name { font-family: var(--font-heading); font-weight: 400; font-size: 48px; line-height: 0.88; letter-spacing: -0.02em; }
.brand__tag { margin-top: var(--s2); }

.nav { display: flex; gap: var(--s8); padding: var(--s3) var(--s8); font-family: var(--font-heading); font-size: 18px; }
.nav a { color: var(--ink); }
.nav .is-active { color: var(--green); border-bottom: 2px solid var(--green); }

.subnav {
  display: flex; gap: var(--s6); flex-wrap: wrap;
  background: var(--paper-alt);
  padding: var(--s2) var(--s8);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.subnav a { color: #4a4436; }
.subnav .sep { color: #a09a89; }

/* ── grilles de page ─────────────────────────────────────────────────────── */
.grid-hero    { display: grid; grid-template-columns: 1fr 420px; gap: var(--s8); }
.grid-article { display: grid; grid-template-columns: 210px 1fr 270px; }
.grid-dossier { display: grid; grid-template-columns: 1fr 420px; gap: var(--s8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); }
.stack { display: flex; flex-direction: column; gap: var(--s6); }
.row   { display: flex; gap: var(--s3); }

.col-left  { padding: var(--s8) var(--s4) var(--s8) var(--s8); border-right: 1px solid var(--rule); }
.col-main  { padding: var(--s8); border-right: 1px solid var(--rule); }
.col-right { padding: var(--s8) var(--s8) var(--s8) var(--s4); display: flex; flex-direction: column; gap: var(--s6); }

/* — chiffres-repères en bandeau — */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--s8); border-bottom: 1px solid var(--rule-strong); }
.figures > div { padding: var(--s6) var(--s4); border-right: 1px solid var(--rule); }
.figures > div:first-child { padding-left: 0; }
.figures > div:last-child { border-right: 0; padding-right: 0; }
.figures b { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 34px; color: var(--gold-deep); font-feature-settings: "tnum"; }
.figures span { font-size: 13px; color: var(--ink-mute); }

/* — listes de titres (sommaires, dossiers, revues) — */
.list a {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s4); align-items: baseline;
  padding: var(--s4) 0; border-top: 1px solid var(--rule); color: var(--ink);
}
.list a:hover { color: var(--gold-deep); text-decoration: none; }
.list a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.list a:last-child { border-bottom: 1px solid var(--rule); }
.list strong { font-family: var(--font-heading); font-weight: 600; font-size: 21px; display: block; line-height: 1.25; }
.list small { font-size: 13px; color: var(--ink-mute); }
.list--tight a { padding: var(--s3) 0; }
.list--tight strong { font-size: 19px; }

.toc { display: flex; flex-direction: column; gap: var(--s3); font-size: 14px; line-height: 1.45; }
.toc a { color: var(--ink-mute); }
.toc .is-here { color: var(--gold-deep); border-left: 2px solid var(--gold); padding-left: var(--s2); margin-left: -16px; }

/* — fiche de repères — */
.facts { font-size: 13px; line-height: 2.1; font-feature-settings: "tnum"; }
.facts div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(35, 42, 32, 0.14); }
.facts div:last-child { border-bottom: 0; }
.facts span { color: var(--ink-mute); }

.side-title {
  padding-bottom: var(--s2); margin-bottom: var(--s3);
  border-bottom: 1px solid var(--rule-strong);
}

blockquote { margin: 0 0 var(--s6); border-left: 2px solid var(--gold); padding-left: var(--s6); }
blockquote p { font-family: var(--font-heading); font-weight: 400; font-size: 31px; line-height: 1.28; letter-spacing: -0.01em; margin: 0; }
blockquote cite { display: block; font-family: var(--font-body); font-style: normal; font-size: 13px; color: var(--ink-mute); margin-top: var(--s3); }

/* — barre de progression de lecture — */
.progress { height: 3px; background: rgba(35, 42, 32, 0.15); }
.progress > div { height: 3px; background: var(--gold); }

/* — pied de page — */
.footer { padding: var(--s8); display: grid; grid-template-columns: 1fr 400px; gap: var(--s8); align-items: center; }
.footer .mark { width: 170px; height: 102px; flex: none; }
.footer__id { display: flex; align-items: center; gap: var(--s6); }

/* ── adaptation aux petits écrans ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-hero, .grid-dossier, .footer { grid-template-columns: 1fr; }
  .grid-article { grid-template-columns: 1fr; }
  .col-left, .col-main { border-right: 0; border-bottom: 1px solid var(--rule); padding: var(--s6); }
  .col-right { padding: var(--s6); }
  .grid-3, .grid-4, .figures { grid-template-columns: 1fr 1fr; }
  .cols { columns: 1; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .brand__name { font-size: 34px; }
}
@media (max-width: 640px) {
  .pad, .topbar, .masthead, .nav, .subnav, .footer { padding-left: var(--s4); padding-right: var(--s4); }
  .grid-3, .grid-4, .figures, .grid-2 { grid-template-columns: 1fr; }
  .masthead, .topbar { flex-direction: column; align-items: flex-start; }
  .nav { flex-wrap: wrap; gap: var(--s4); }
  h1 { font-size: 34px; }
  .lede { font-size: 18px; }
  .prose .dropcap { font-size: 62px; }
}

/* ── impression ───────────────────────────────────────────────────────────── */
@media print {
  .band, .subnav, .btn, .progress { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .col-right, .col-left { display: none; }
  .col-main { border: 0; }
}

/* ==========================================================================
   Ajouts WordPress
   ========================================================================== */

/* contraste AA des métadonnées sur papier */
:root { --ink-mute: #5d5748; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10; width: auto; height: auto; clip: auto; clip-path: none; padding: var(--s2) var(--s3); background: var(--paper); }

/* — en-tête : recherche dépliable, marque en H1 sur l'accueil — */
.brand a { color: inherit; }
.brand a:hover { text-decoration: none; }
.brand h1, .brand .brand__name { margin: 0; }
.mark--link { display: block; }
.search { position: relative; }
.search summary { list-style: none; }
.search summary::-webkit-details-marker { display: none; }
.search[open] .search__form { position: absolute; right: 0; top: calc(100% + var(--s2)); z-index: 5; display: flex; gap: var(--s2); padding: var(--s3); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; min-width: 340px; }
.search-form { display: flex; gap: var(--s2); }
.search-form .input { flex: 1; }
.nav a, .subnav a { white-space: nowrap; }
.nav .current-menu-item, .nav .current-menu-ancestor, .nav .current_page_parent { color: var(--green); border-bottom: 2px solid var(--green); }
.subnav .current-menu-item { color: var(--gold-deep); }
.langs a { color: rgba(247, 241, 227, 0.6); }
.langs .current-menu-item { color: var(--gold-light); }

/* — grilles d'accueil et d'archive — */
.grid-4 > a { display: block; color: var(--paper); padding-right: var(--s4); border-right: 1px solid var(--rule-light); }
.grid-4 > a:last-child { border-right: 0; }
.grid-4 > a:hover { text-decoration: none; }
.grid-4 .card__title { font-family: var(--font-heading); font-size: 26px; line-height: 1.1; color: var(--gold-light); }
.grid-4 .card__text { font-size: 14px; line-height: 1.7; margin-top: var(--s2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); border-bottom: 1px solid var(--rule-strong); padding-bottom: var(--s3); }
.section-head h2 { margin: 0; }
.lead-post { padding: var(--s6) 0; border-bottom: 1px solid var(--rule); }
.lead-post .excerpt { font-size: 17px; line-height: 1.8; color: var(--ink-soft); text-align: justify; margin-bottom: var(--s4); }
.card .excerpt { font-size: 14px; line-height: 1.75; color: var(--ink-soft); margin: 0; }
.card h3 a, .lead-post h2 a, .list a { color: inherit; }
.card .kicker { margin: var(--s3) 0 var(--s2); }
.grid-3 + .grid-3 { padding-top: var(--s6); margin-top: var(--s6); border-top: 1px solid var(--rule); }
.paper-alt { background: var(--paper-alt); border-top: 1px solid var(--rule); }
.source-types a { display: block; }
.plate--empty { display: flex; align-items: center; justify-content: center; color: var(--ink-mute); font-family: var(--font-heading); font-size: 20px; }

/* — article — */
.title-grid { display: grid; grid-template-columns: 1fr 290px; gap: var(--s8); align-items: end; }
.meta-box { font-size: 13px; line-height: 2; color: var(--ink-mute); border-left: 1px solid var(--rule-strong); padding-left: var(--s4); }
.breadcrumb a { color: inherit; }
.breadcrumb .sep { margin: 0 var(--s2); }
.sidenav { display: flex; flex-direction: column; gap: var(--s2); font-size: 13px; line-height: 1.5; }
.sidenav a { color: #4a4436; }
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--font-heading); font-weight: 400; font-size: 84px; line-height: 0.76;
  margin: 8px var(--s3) 0 0; color: var(--gold-deep);
}
.prose h2 { font-size: 32px; margin: var(--s6) 0 var(--s3); text-align: left; }
.prose h3 { margin: var(--s6) 0 var(--s2); text-align: left; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose figure, .prose .wp-block-image, .prose .wp-block-embed, .prose .wp-block-gallery, .prose .pdfemb-viewer, .prose iframe { margin: 0 0 var(--s6); max-width: 100%; }
.prose .wp-block-image img, .prose .wp-block-gallery img, .prose .wp-block-embed iframe {
  border: 6px solid var(--mat); outline: 1px solid var(--rule); background: var(--mat);
}
.prose .wp-block-image img { filter: sepia(0.12) saturate(1.04) contrast(1.02); }
.prose .wp-block-image figcaption, .prose .wp-block-embed figcaption { text-align: left; }
.prose .alignleft { float: left; margin: 0 var(--s6) var(--s3) 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0 0 var(--s3) var(--s6); max-width: 50%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .alignwide, .prose .alignfull { max-width: none; }
.prose .wp-block-quote, .prose blockquote { text-align: left; }
.prose .wp-block-quote p { font-family: var(--font-heading); font-size: 26px; line-height: 1.3; }
.prose .wp-block-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose .wp-block-table td, .prose .wp-block-table th { border: 1px solid var(--rule); padding: var(--s2); }
.prose .wp-block-separator { border: 0; height: 1px; background: var(--rule-strong); margin: var(--s6) 0; }
.wp-block-buttons { column-span: all; margin-top: var(--s6); }
.wp-block-button__link { display: inline-flex; font-family: var(--font-heading); font-weight: 600; font-size: 14px; padding: var(--s2) 17px; border: 1px solid var(--rule-strong); border-radius: 4px; background: transparent; color: var(--ink); }
.wp-block-button__link:hover { background: rgba(35, 42, 32, 0.07); text-decoration: none; }
.wp-block-button.is-style-outline .wp-block-button__link, .wp-block-button__link.btn--gold { color: var(--gold-deep); border-color: var(--gold-deep); }
.prose dfn { font-style: italic; border-bottom: 1px dotted var(--gold); }
.prose a { text-decoration: underline; text-decoration-color: rgba(182, 130, 53, 0.5); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
.signature { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.85; color: var(--ink-mute); }
.signature strong { font-family: var(--font-heading); font-size: 18px; color: var(--ink); font-weight: 600; }
.postnav { display: flex; justify-content: space-between; gap: var(--s6); font-family: var(--font-heading); font-size: 18px; }
.postnav a { color: var(--ink); max-width: 48%; }
.col-right > * { min-width: 0; }
.col-right .widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); font-size: 13px; line-height: 1.6; }
.col-right .contact-note { margin-top: auto; border-top: 1px solid rgba(35,42,32,0.4); padding-top: var(--s4); font-size: 13px; line-height: 1.85; color: var(--ink-soft); }
.toc details summary { cursor: pointer; }

/* — commentaires — */
.comments { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--rule-strong); }
.comments h2 { font-size: 30px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: var(--s6); }
.comment { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.comment-meta { display: flex; align-items: center; gap: var(--s3); font-size: 13px; color: var(--ink-mute); margin-bottom: var(--s2); }
.comment-meta img { border-radius: 50%; }
.comment-meta .fn { font-family: var(--font-heading); font-size: 17px; font-style: normal; color: var(--ink); }
.comment-content { font-size: 15px; line-height: 1.7; }
.comment-content p:last-child { margin: 0; }
.comment-reply-link { font-size: 12px; }
.comment-form { display: grid; gap: var(--s3); max-width: 60ch; }
.comment-form label { display: block; font-size: 13px; color: var(--ink-mute); margin-bottom: var(--s1); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  font-family: var(--font-body); font-size: 14px; padding: var(--s2) var(--s3); width: 100%;
  border: 1px solid var(--rule-strong); border-radius: 4px; background: transparent; color: inherit;
}
.comment-form .form-submit { margin: 0; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--ink-mute); }

/* — archives, pagination — */
.archive-head { padding: var(--s8) var(--s8) var(--s6); border-bottom: 1px solid var(--rule-strong); }
.archive-head h1 { font-size: 52px; margin-bottom: var(--s3); }
.pagination { margin-top: var(--s8); font-family: var(--font-heading); font-size: 17px; }
.pagination .nav-links { display: flex; gap: var(--s3); flex-wrap: wrap; }
.pagination .page-numbers { padding: var(--s1) var(--s2); color: var(--ink); }
.pagination .page-numbers.current { color: var(--gold-deep); border-bottom: 2px solid var(--gold); }
.page-narrow { max-width: 72ch; margin: 0 auto; }
.figures b { font-size: 34px; }
.list--articles a span:first-child { min-width: 0; }

/* — WordPress — */
.wp-caption { max-width: 100%; }
.gallery-caption, .bypostauthor { display: block; }
.sticky { position: static; }
img.emoji { display: inline; }
.alignleft { float: left; margin-right: var(--s4); }
.alignright { float: right; margin-left: var(--s4); }
.aligncenter { display: block; margin: 0 auto; }

@media (max-width: 1100px) {
  .title-grid { grid-template-columns: 1fr; }
  .meta-box { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: var(--s3); }
  .archive-head h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  .grid-4 > a { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule-light); padding-bottom: var(--s4); }
  .grid-4 > a:last-child { border-bottom: 0; }
  .search[open] .search__form { min-width: 0; left: 0; width: 100%; }
  .archive-head { padding: var(--s6) var(--s4); }
  .archive-head h1 { font-size: 32px; }
  .prose > p:first-of-type::first-letter { font-size: 62px; }
  .comment-list .children { margin-left: var(--s3); }
}

/* — sommaire généré — */
.toc-block[hidden] { display: none; }
.toc .toc__sub { padding-left: var(--s3); font-size: 13px; }
.toc a.is-here { color: var(--gold-deep); border-left: 2px solid var(--gold); padding-left: var(--s2); margin-left: -16px; }
.toc .toc__sub.is-here { margin-left: -2px; }
details > summary.kicker { cursor: pointer; list-style: none; }
details > summary.kicker::before { content: '▸ '; }
details[open] > summary.kicker::before { content: '▾ '; }
.comment-author { display: flex; align-items: center; gap: var(--s2); }
.comment-metadata { font-size: 12px; }
.grid-hero h2 { text-wrap: balance; }
@media (max-width: 640px) {
  /* pas de justification sur colonne étroite : trop de rivières */
  .prose, .justif, .lead-post .excerpt { text-align: left; hyphens: manual; }
}

/* — mise en page en boîte : la page « papier » centrée sur un fond légèrement plus sombre — */
html { background: var(--paper-alt); }
.site { max-width: var(--measure); margin: 0 auto; background: var(--paper); box-shadow: 0 0 0 1px var(--rule); }
.grid-hero--solo { grid-template-columns: 1fr; }
.grid-hero--solo .cols { max-width: 100ch; }

/* — menu déroulant sous les entrées qui ont des sous-entrées — */
.nav { position: relative; }
.nav__item { position: relative; }
.nav__item > span { cursor: default; }
.nav__item > a::after, .nav__item > span::after { content: ' ▾'; font-size: 0.7em; color: var(--ink-mute); }
.dropdown {
  position: absolute; left: 0; top: 100%; z-index: 6; min-width: 260px;
  display: none; flex-direction: column; padding: var(--s3) 0;
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; box-shadow: 0 8px 24px rgba(35, 42, 32, 0.12);
}
.dropdown a { padding: var(--s2) var(--s4); font-size: 16px; color: var(--ink); white-space: normal; }
.dropdown a:hover { background: var(--paper-alt); text-decoration: none; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { display: flex; }
@media (hover: none) { .nav__item:hover .dropdown { display: none; } .nav__item:focus-within .dropdown { display: flex; } }

/* — barre de menu collante — */
html { scroll-padding-top: 64px; }
.navbar { position: sticky; top: 0; z-index: 20; background: var(--paper); display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s6); padding: 0 var(--s8); }
.navbar .nav { flex: 1; padding-left: 0; padding-right: 0; }
.navbar__brand { display: none; align-items: center; gap: var(--s2); font-family: var(--font-heading); font-size: 20px; color: var(--ink); white-space: nowrap; }
.navbar__brand:hover { text-decoration: none; color: var(--green); }
.navbar__brand .mark { width: 34px; height: 25px; }
.navbar.is-stuck { border-bottom: 1px solid var(--rule); box-shadow: 0 6px 18px rgba(35, 42, 32, 0.08); }
.navbar.is-stuck .navbar__brand { display: flex; }
.navbar .progress { flex-basis: 100%; margin: 0 calc(-1 * var(--s8)); }
@media (max-width: 640px) {
  .navbar { padding: 0 var(--s4); }
  .navbar .progress { margin: 0 calc(-1 * var(--s4)); }
  .navbar .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: var(--s6); }
  .navbar .nav::-webkit-scrollbar { display: none; }
  .navbar.is-stuck .navbar__brand span:last-child { display: none; }
}
.nav > *, .nav__item > a, .nav__item > span { white-space: nowrap; flex: none; }

/* — filet constant sous le menu ; la barre de lecture ne montre que sa progression — */
.navbar { border-bottom: 1px solid var(--rule); }
.navbar .progress { background: transparent; margin-bottom: -1px; }
.navbar.is-stuck { border-bottom-color: var(--rule); }
.navbar { border-bottom: 0; }
.navbar::after { content: ''; position: absolute; left: var(--s8); right: var(--s8); bottom: 0; height: 1px; background: var(--rule); }
.navbar.is-stuck::after { left: 0; right: 0; }
@media (max-width: 640px) { .navbar::after { left: var(--s4); right: var(--s4); } }
/* le champ de recherche s'ouvre par-dessus la barre de menu collante */
.masthead { position: relative; z-index: 30; }
.search[open] .search__form { z-index: 30; }
