/*
Theme Name: Horlogerie Ancienne
Theme URI: https://horlogerie-ancienne.fr/
Author: L'Horloger de la Croix-Rousse
Description: Thème sur mesure, léger et optimisé SEO / Google Discover, pour horlogerie-ancienne.fr.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: horlogerie
*/

/* Mise en page : en-tête fin collant, colonne de lecture de ~68 caractères, menu de rubrique à droite sur grand écran.
   Couleurs : encre et papier, accent « acier revenu » (le bleu des aiguilles anciennes), laiton en touche discrète. */

@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --ink: #15181c;
  --ink-2: #3a4148;
  --muted: #646d76;
  --line: #e2e5e9;
  --paper: #ffffff;
  --wash: #f3f5f7;
  --steel: #23466f;
  --steel-dark: #183252;
  --steel-soft: #e7edf5;
  --brass: #9c7a45;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);

  --wrap: 1200px;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: var(--step-0); line-height: 1.7; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--steel-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; color: var(--ink); }
address { font-style: normal; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; font-family: var(--sans); }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); margin: 0 0 .5rem; }

/* ---------- Boutons ---------- */
.button, .wp-block-button__link, a.button { display: inline-flex; align-items: center; gap: .5em; font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1.2; padding: .8em 1.3em; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.button:hover, a.button:hover { background: var(--steel); border-color: var(--steel); color: #fff; }
.button--ghost, a.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover, a.button--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.button--light, a.button--light { background: #fff; color: var(--ink); border-color: #fff; }
.button--light:hover, a.button--light:hover { background: var(--steel-soft); color: var(--ink); border-color: var(--steel-soft); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; color: var(--ink); flex: 0 0 auto; }
.brand:hover { color: var(--steel); }
.brand__logo { display: block; width: 190px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); font-family: var(--sans); }
.nav__list { display: flex; gap: clamp(14px, 1.8vw, 24px); list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__list a:hover, .nav__list a[aria-current="page"], .nav__list .current-menu-item > a { border-bottom-color: var(--steel); color: var(--ink); }
.nav__cta { font-size: .9rem; font-weight: 700; text-decoration: none; color: #fff; background: var(--ink); padding: .6em 1.1em; border-radius: var(--radius); }
.nav__cta:hover { background: var(--steel); color: #fff; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0; font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) and (min-width: 841px) { .brand__logo { width: 150px; } .nav__list a, .nav__cta { font-size: .88rem; } }
@media (max-width: 840px) {
  /* Le flou d'arrière-plan ferait de l'en-tête le repère du menu fixe, qui serait alors écrasé à sa hauteur */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .brand__logo { width: 160px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: fixed; inset: var(--header-h) 0 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 16px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); overflow-y: auto; }
  .nav-open .nav { display: flex; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; font-size: 1.15rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 20px; text-align: center; padding: 14px; font-size: 1rem; }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--sans); font-size: var(--step--1); color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 .55em; color: var(--line); color: #b9c0c7; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--steel); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* ---------- Page de contenu ---------- */
.entry { padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 80px); }
.entry__header { margin-bottom: clamp(20px, 3vw, 32px); }
.entry__title { font-size: var(--step-4); margin: 0; max-width: 22ch; letter-spacing: -.01em; }
.entry--term .entry__title { max-width: none; }
.byline { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); margin: 1rem 0 0; }
.byline span { color: var(--ink-2); font-weight: 600; }
.hero-media { margin: 0 auto clamp(24px, 4vw, 44px); }
.hero-media img, .hero-media video { width: 100%; border-radius: var(--radius); background: var(--wash); }
.hero-media img { aspect-ratio: 21 / 9; max-height: 460px; object-fit: cover; }
@media (max-width: 600px) { .hero-media img { aspect-ratio: 3 / 2; } }
.hero-media--video { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding-inline: var(--gutter); }
.hero-media--video video { aspect-ratio: 16 / 9; background: #000; }

.entry__layout { display: grid; gap: clamp(32px, 5vw, 64px); }
.entry__layout--aside { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .entry__layout--aside { grid-template-columns: minmax(0, var(--measure)) minmax(240px, 300px); justify-content: space-between; }
  .entry__aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.entry__content { min-width: 0; }

/* ---------- Typographie du contenu ---------- */
.prose { max-width: var(--measure); }
.entry__layout:not(.entry__layout--aside) .prose { margin-inline: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-block: 0; }
.prose > p + p { margin-top: .9em; }
.prose h2 { font-size: var(--step-3); margin-top: 2em; margin-bottom: .2em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.7em; margin-bottom: .1em; }
.prose h4 { font-size: var(--step-1); margin-top: 1.5em; margin-bottom: 0; font-family: var(--sans); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--brass); }
.prose strong { font-weight: 650; }
.prose blockquote { margin-inline: 0; padding-left: 1.2em; border-left: 3px solid var(--brass); color: var(--ink-2); font-style: italic; }
.prose img { border-radius: 4px; }
.prose img.align-center, .prose .align-center { margin-inline: auto; }
.prose .text-align-center { text-align: center; }
.prose .text-align-right { text-align: right; }
.prose img.align-left, .prose figure.align-left { float: left; max-width: 45%; margin: .3em 1.5em 1em 0; }
.prose img.align-right, .prose figure.align-right { float: right; max-width: 45%; margin: .3em 0 1em 1.5em; }
.prose h2, .prose h3, .prose h4 { clear: both; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); margin-top: .5em; text-align: center; }
.prose video { width: 100%; border-radius: var(--radius); background: #000; margin-inline: auto; }
.prose iframe { width: 100%; max-width: 100%; border: 0; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) {
  .prose img.align-left, .prose img.align-right, .prose figure.align-left, .prose figure.align-right { float: none; max-width: 100%; margin: 1em auto; }
}

/* Galeries héritées de l'ancien site (lignes d'images) */
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; align-items: start; margin-block: 1.4em; }
.prose .gallery > * { margin: 0 !important; }
.prose .gallery img { width: 100%; height: auto; float: none !important; max-width: 100% !important; margin: 0 !important; }
.prose .gallery .gallery { display: contents; }
.prose .gallery p { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); }
a.ha-zoom { display: block; cursor: zoom-in; }

/* ---------- Menu de rubrique ---------- */
.section-nav { font-family: var(--sans); font-size: .93rem; border-left: 1px solid var(--line); padding-left: 20px; }
.section-nav__title { font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.section-nav ul { list-style: none; margin: 0; padding: 0; }
.section-nav ul ul { padding-left: 14px; margin: 4px 0 8px; border-left: 1px solid var(--line); }
.section-nav li { margin: 0; }
.section-nav a, .section-nav span { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.section-nav span { color: var(--muted); font-weight: 600; margin-top: 6px; }
.section-nav a:hover { color: var(--steel); }
.section-nav a[aria-current="page"] { color: var(--steel); font-weight: 700; }
@media (max-width: 1023px) { .section-nav { border-left: 0; padding: 20px; background: var(--wash); border-radius: var(--radius); } }

.aside-card { background: var(--wash); border-radius: var(--radius); padding: 22px; font-family: var(--sans); font-size: .95rem; line-height: 1.55; }
.aside-card__title { font-weight: 700; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.aside-card p { margin: 0 0 1rem; }

/* ---------- Documents techniques ---------- */
.files { margin-top: 2.5em; padding: 22px 24px; background: var(--steel-soft); border-radius: var(--radius); font-family: var(--sans); }
.files__title { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 .6rem !important; }
.files ul { list-style: none; padding: 0; margin: 0; }
.files li + li { margin-top: .4em; }
.files__ext { font-size: .75rem; font-weight: 700; color: var(--steel); border: 1px solid currentColor; border-radius: 3px; padding: 0 .35em; margin-left: .3em; }

/* ---------- Cartes ---------- */
.ha-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-block: 2rem; max-width: none; }
.prose .ha-cards { max-width: calc(var(--wrap)); }
.ha-card { display: flex; flex-direction: column; gap: 6px; padding: 0 0 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.ha-card:hover { border-bottom-color: var(--steel); color: var(--ink); }
.ha-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 10px; background: var(--wash); }
.ha-card__title { font-family: var(--serif); font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.ha-card:hover .ha-card__title { color: var(--steel); }
.ha-card__text { font-family: var(--sans); font-size: .93rem; color: var(--muted); line-height: 1.5; }
.entry--hub .prose { max-width: none; }
.entry--hub .prose > p { max-width: var(--measure); font-size: var(--step-1); color: var(--ink-2); }
.children { margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); }
.children h2 { font-size: var(--step-2); margin: 0; }

/* ---------- Lexique ---------- */
.ha-az ul { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 6px; }
.ha-az a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); font-weight: 700; text-decoration: none; color: var(--ink); }
.ha-az a:hover { border-color: var(--steel); color: var(--steel); }
.ha-lexique { columns: 3 220px; column-gap: 40px; }
.ha-lexique__group { break-inside: avoid; margin-bottom: 1.6rem; }
.ha-lexique__group h2 { font-size: var(--step-2) !important; margin: 0 0 .4rem !important; color: var(--brass); }
.ha-lexique__group ul { list-style: none; padding: 0 !important; margin: 0; }
.ha-lexique__group li { margin: 0 !important; }
.ha-lexique__group a { display: block; padding: 3px 0; text-decoration: none; color: var(--ink-2); }
.ha-lexique__group a:hover { color: var(--steel); text-decoration: underline; }
.entry--term .entry__content > .prose, .entry--term .prose { font-size: var(--step-1); }
.term-figure { float: right; width: min(260px, 45%); margin: .3em 0 1em 1.5em !important; }
.term-figure img { width: 100%; border-radius: var(--radius); }
@media (max-width: 600px) { .term-figure { float: none; width: 100%; margin: 0 0 1em !important; } }
.pager { clear: both; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 3rem !important; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: .95rem; }
.pager a { text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a span { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pager__next { text-align: right; }
.pager__index { font-size: .85rem; color: var(--steel) !important; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr 1fr; } .pager__index { grid-column: 1 / -1; grid-row: 2; text-align: center; } }

/* ---------- Frise chronologique ---------- */
.ha-timeline-nav ul { list-style: none; padding: 0 !important; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 8px; }
.ha-timeline-nav li { margin: 0 !important; }
.ha-timeline-nav a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--sans); font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.ha-timeline-nav a:hover { border-color: var(--steel); color: var(--steel); }
.ha-timeline__period { margin-top: 2.5rem; }
.ha-timeline__period > h2 { font-size: var(--step-3); margin: 0 0 1rem !important; }
.ha-timeline__period ol { list-style: none; padding: 0 !important; margin: 0; border-left: 2px solid var(--line); }
.ha-timeline__date { position: relative; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 20px; padding: 14px 0 14px 24px; margin: 0 !important; }
.ha-timeline__date::before { content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--steel); }
.ha-timeline__date:target { background: var(--steel-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.ha-timeline__year { font-family: var(--sans); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--steel); padding-top: 3px; }
.ha-timeline__body h3 { font-size: var(--step-1); margin: 0 0 .3em !important; }
.ha-timeline__body p { margin: .3em 0 0; }
.ha-timeline__units { font-family: var(--sans); font-size: .88rem; color: var(--muted); }
@media (max-width: 600px) { .ha-timeline__date { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Bibliographie ---------- */
.ha-books { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.ha-book { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; margin: 0 !important; padding-bottom: 20px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.ha-book:target { background: var(--steel-soft); outline: 8px solid var(--steel-soft); }
.ha-book__cover { width: 96px; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(21, 24, 28, .18); }
.ha-book h3 { font-size: var(--step-1) !important; margin: 0 !important; }
.ha-book__author { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin-top: .3em !important; }

/* ---------- Contact ---------- */
.ha-contact { list-style: none; padding: 0 !important; }

/* ---------- Recherche / 404 ---------- */
.search-form { display: flex; gap: 8px; max-width: 560px; margin-top: 1.5rem; }
.search-form input { flex: 1; min-width: 0; font: 1rem var(--sans); padding: .75em 1em; border: 1px solid #c9cfd6; border-radius: var(--radius); background: #fff; color: var(--ink); }
.results { list-style: none; padding: 0; max-width: var(--measure); }
.results__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.results__item a { font-size: var(--step-1); font-weight: 600; text-decoration: none; }
.results__item p { margin: .3em 0 0; color: var(--muted); font-size: .98rem; }

/* ---------- Accueil ---------- */
.home-hero { padding-block: clamp(32px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.home-hero__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 1024px) { .home-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.home-hero__title { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; max-width: 14ch; }
.home-hero__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; margin: 1.2rem 0 0; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.home-hero__media { margin: 0; }
.home-hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

.section-title { font-size: var(--step-3); margin: 0 0 1rem; }
.home-group { padding-block: clamp(40px, 7vw, 88px); }
.home-group__content { max-width: none; }
.home-group__content > p { max-width: var(--measure); color: var(--ink-2); }
.home-group .ha-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .home-group .ha-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-group .ha-cards { grid-template-columns: 1fr; } }

.home-facts { background: var(--wash); padding-block: clamp(32px, 5vw, 56px); }
.home-facts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 900px) { .home-facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.home-facts__grid div { display: grid; gap: 4px; border-left: 2px solid var(--brass); padding-left: 16px; }
.home-facts strong { font-family: var(--serif); font-size: var(--step-3); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.home-facts span { font-family: var(--sans); font-size: .93rem; color: var(--muted); line-height: 1.4; }

.home-pedia { padding-block: clamp(40px, 7vw, 88px); }
.home-pedia__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .home-pedia__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.home-pedia__grid p { max-width: 52ch; color: var(--ink-2); }
.home-pedia__label { font-family: var(--sans); font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.home-pedia__terms ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-pedia__terms a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--sans); font-size: .93rem; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.home-pedia__terms a:hover { border-color: var(--steel); color: var(--steel); }

.home-contact { background: var(--ink); color: #fff; padding-block: clamp(40px, 6vw, 72px); }
.home-contact h2 { color: #fff; font-size: var(--step-3); margin: 0; }
.home-contact p { color: #c9ced4; max-width: 56ch; }
.home-contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 1.5rem; }
.home-contact__phone { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; }
.home-contact__phone:hover { color: var(--steel-soft); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--wash); border-top: 1px solid var(--line); font-family: var(--sans); font-size: .93rem; color: var(--ink-2); padding-top: clamp(40px, 6vw, 64px); }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__logo { width: 150px; height: auto; color: var(--ink); display: block; margin-bottom: 14px; }
.site-footer__title { font-family: var(--sans); font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .45em; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--steel); text-decoration: underline; }
.site-footer p { margin: 0; line-height: 1.6; }
.site-footer__note { margin-top: .6em !important; color: var(--muted); }
.site-footer__bottom { margin-top: 40px; padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ---------- Visionneuse d'image ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(10, 12, 14, .88); }
.lightbox__img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 4px; }
.lightbox__close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .entry__aside, .lightbox { display: none !important; } }
.prose .gallery > p:empty, .prose .gallery > br { display: none; }

/* ---------- Formulaire de contact (Contact Form 7) ---------- */
.wpcf7 { margin-top: 1.5rem; padding: clamp(20px, 3vw, 32px); background: var(--wash); border-radius: var(--radius); font-family: var(--sans); font-size: 1rem; }
.wpcf7 form > p { margin: 0 0 1.1rem; }
.wpcf7 label { display: block; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: .4rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { width: 100%; font: 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid #c9cfd6; border-radius: var(--radius); padding: .75em .9em; }
.wpcf7 textarea { min-height: 9em; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--steel); outline-offset: 1px; border-color: var(--steel); }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: .6em; align-items: flex-start; font-weight: 400; }
.wpcf7 .wpcf7-acceptance input { margin-top: .3em; width: 1.1em; height: 1.1em; accent-color: var(--steel); }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-submit { font: 600 1rem var(--sans); padding: .85em 1.5em; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff; cursor: pointer; }
.wpcf7 .wpcf7-submit:hover { background: var(--steel); border-color: var(--steel); }
.wpcf7 .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7 .wpcf7-not-valid-tip { font-size: .85rem; color: #a3261b; margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .8em 1em; border-radius: var(--radius); font-size: .95rem; }

/* Barre d'administration WordPress (administrateurs connectés) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Actualités : article ---------- */
.news { padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 80px); }
.news__header { max-width: calc(860px + 2 * var(--gutter)); }
.news__cat { display: inline-block; text-decoration: none; margin-bottom: .6rem; }
.news__cat:hover { color: var(--steel); }
.news__title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); line-height: 1.12; letter-spacing: -.015em; margin: 0; }
.news__standfirst { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); margin: 1rem 0 0; max-width: 62ch; }
.news-byline { display: flex; align-items: center; gap: 12px; margin-top: 1.5rem; font-family: var(--sans); }
.news-byline__avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.news-byline p { margin: 0; line-height: 1.4; }
.news-byline__author { font-weight: 700; font-size: .95rem; }
.news-byline__author a { color: var(--ink); text-decoration: none; }
.news-byline__author a:hover { color: var(--steel); text-decoration: underline; }
.news-byline__meta { font-size: var(--step--1); color: var(--muted); }
.news__media { margin: clamp(24px, 4vw, 40px) auto; }
.news__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--wash); }
.news__media figcaption { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); margin-top: .5rem; }
.news__body { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.news__content { font-size: 1.125rem; }
.news__content > p:first-child::first-letter { font-size: 3.4em; float: left; line-height: .9; padding: .06em .08em 0 0; font-weight: 600; color: var(--steel); }

/* Box auteur */
.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 3rem; padding: 24px; background: var(--wash); border-radius: var(--radius); font-family: var(--sans); }
.author-box__avatar { width: 80px; height: 80px; border-radius: 50%; flex: none; }
.author-box p { margin: 0; }
.author-box__label { font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.author-box__name { font-family: var(--serif); font-size: var(--step-1); font-weight: 600; margin-top: .1rem !important; }
.author-box__name a { color: var(--ink); text-decoration: none; }
.author-box__name a:hover { color: var(--steel); }
.author-box__bio { margin-top: .4rem !important; color: var(--ink-2); line-height: 1.55; font-size: .95rem; }
@media (max-width: 480px) { .author-box { flex-direction: column; } }

/* ---------- Actualités : listes ---------- */
.news-list { padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 80px); }
.news-list__header { margin-bottom: 2rem; }
.news-list__intro { color: var(--ink-2); font-size: var(--step-1); max-width: 60ch; margin-top: .8rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.news-card { display: flex; flex-direction: column; gap: 8px; }
.news-card__link { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.news-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--wash); }
.news-card__cat { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brass); margin-top: 6px; }
.news-card__title { font-family: var(--serif); font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.news-card__link:hover .news-card__title { color: var(--steel); }
.news-card__meta { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); margin: 0; }
.related { margin-top: clamp(48px, 7vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-size: var(--step-2); margin: 0 0 1.4rem; }
.author-head { display: flex; gap: 24px; align-items: center; }
.author-head__avatar { width: 112px; height: 112px; border-radius: 50%; flex: none; }
.author-head__bio { color: var(--ink-2); font-size: var(--step-1); max-width: 60ch; margin: .6rem 0 0; }
@media (max-width: 560px) { .author-head { flex-direction: column; align-items: flex-start; } }
.pagination .nav-links { display: flex; gap: 8px; margin-top: 2.5rem; font-family: var(--sans); }
.pagination .page-numbers { padding: .5em .9em; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Corps de l'article aligné sur l'en-tête ; texte limité à la longueur de ligne de lecture */
.news__body { max-width: calc(860px + 2 * var(--gutter)); }
.news__content { max-width: var(--measure); }
