/*
Theme Name: Plus Belle L'Haÿ
Theme URI: https://example.com/plus-belle-lhay
Author: Association Plus Belle L'Haÿ
Author URI: https://example.com
Description: Thème WordPress natif pour l'association politique locale Plus Belle L'Haÿ (L'Haÿ-les-Roses). Porté à l'identique depuis la maquette HTML/CSS/JS statique du site : même palette, même typographie, mêmes animations et le même hero immersif à parallaxe multi-couches. Aucun plugin requis.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plus-belle-lhay
Tags: custom-menu, custom-logo, featured-images, translation-ready, threaded-comments, one-column

Ce thème est distribué dans l'espoir qu'il sera utile, mais SANS AUCUNE
GARANTIE ; sans même la garantie implicite de QUALITÉ MARCHANDE ou
d'ADÉQUATION À UN USAGE PARTICULIER. Voir la licence GNU GPL v2 pour plus
de détails.
*/

/* ==========================================================================
   Plus Belle L'Haÿ — feuille de style principale
   Association politique locale — L'Haÿ-les-Roses

   Sommaire
   1. Design tokens (couleurs, typographie, espacements)
   2. Reset & base
   3. Typographie
   4. Mise en page (container, grilles, sections)
   5. Accessibilité (skip-link, focus, réduction des animations)
   6. En-tête & navigation
   7. Boutons
   8. Média de substitution (placeholders)
   9. Hero / bandeau immersif
   10. Cartes (actualités, équipe, actions, réseaux sociaux)
   11. Étiquettes / badges
   12. Formulaires
   13. Pied de page
   14. Article
   15. Animations & révélation au scroll
   16. Media queries / responsive
   17. Ajouts spécifiques au thème WordPress (photos réelles, liens de filtre)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Couleurs — palette "roseraie" : encre chaude, rose profond, vert botanique */
  --color-ink: #211c1a;
  --color-ink-soft: #4a423d;
  --color-paper: #faf6f0;
  --color-paper-alt: #f2ebe1;
  --color-surface: #ffffff;
  --color-rose-900: #5c1f36;
  --color-rose-700: #8c2c4c;
  --color-rose-600: #a3355a;
  --color-rose-400: #c76c8a;
  --color-rose-100: #f5dfe6;
  --color-green-800: #2f3f30;
  --color-green-600: #3f5741;
  --color-gold-500: #b6903f;
  --color-line: rgba(33, 28, 26, 0.12);
  --color-line-strong: rgba(33, 28, 26, 0.2);

  --color-bg: var(--color-paper);
  --color-text: var(--color-ink);
  --color-text-muted: var(--color-ink-soft);
  --color-accent: var(--color-rose-700);
  --color-accent-strong: var(--color-rose-900);

  /* Typographie — polices système, optimisées pour chaque plateforme */
  --font-display: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
  --fs-3xl: clamp(2.5rem, 1.8rem + 3vw, 4rem);

  /* Espacements */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  --container-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(33, 20, 24, 0.06), 0 1px 1px rgba(33, 20, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(33, 20, 24, 0.08), 0 2px 8px rgba(33, 20, 24, 0.05);
  --shadow-lg: 0 24px 60px rgba(33, 20, 24, 0.14), 0 6px 18px rgba(33, 20, 24, 0.08);

  /* Courbes d'accélération — cf. skill "animate" : ease natif trop faible */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --header-height: 76px;

  /* Motif discret (rose stylisée) utilisé sur les visuels de substitution */
  --motif-roses: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.4' opacity='0.8'%3E%3Ccircle cx='40' cy='40' r='16'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3Cpath d='M40 56 C40 90 20 96 12 118' /%3E%3Ccircle cx='170' cy='120' r='20'/%3E%3Ccircle cx='170' cy='120' r='9'/%3E%3Cpath d='M170 140 C170 175 190 182 198 205'/%3E%3Ccircle cx='95' cy='185' r='13'/%3E%3Ccircle cx='95' cy='185' r='5.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

/* ---------- 3. Typographie ---------- */
h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-xl);
}

h4 {
  font-size: var(--fs-md);
}

p {
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
}

.lede {
  font-size: var(--fs-md);
  max-width: 60ch;
}

.text-center {
  text-align: center;
}

/* ---------- 4. Mise en page ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

section {
  padding-block: var(--space-2xl);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.section-head--split {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
}

.surface-alt {
  background: var(--color-paper-alt);
}

.surface-ink {
  background: var(--color-green-800);
  color: #f2ece2;
}

.surface-ink h2,
.surface-ink h3,
.surface-ink p {
  color: inherit;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. Accessibilité ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: var(--space-sm);
  z-index: 1000;
  background: var(--color-ink);
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: top 160ms var(--ease-out);
}

.skip-link:focus {
  top: var(--space-sm);
}

:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--fs-xs);
  color: inherit;
  opacity: 0.75;
  background: none;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: opacity 160ms ease, transform 120ms var(--ease-out);
}

.motion-toggle:hover {
  opacity: 1;
}

.motion-toggle:active {
  transform: scale(0.97);
}

.motion-toggle[aria-pressed="true"] {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

/* Réduction manuelle (bouton) ET système (prefers-reduced-motion) */
html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

html[data-reduce-motion="true"] .hero-media__image,
html[data-reduce-motion="true"] .hero-layer,
html[data-reduce-motion="true"] .reveal {
  transform: none !important;
}

html[data-reduce-motion="true"] .hero-particles {
  display: none;
}

/* ---------- 6. En-tête & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  /* Le flou est posé sur ::before (et non ici) : un filtre/backdrop-filter
     sur cet élément créerait un containing block pour ses descendants en
     position fixed, ce qui casserait le panneau de navigation mobile. */
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 246, 240, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.brand__mark img,
.brand__mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__list a {
  position: relative;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding-block: var(--space-2xs);
  transition: color 160ms ease;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  transition: right 200ms var(--ease-out);
}

.nav__list a:hover {
  color: var(--color-ink);
}

@media (hover: hover) and (pointer: fine) {
  .nav__list a:hover::after {
    right: 0;
  }
}

.nav__list a[aria-current="page"],
.nav__list li.current-menu-item > a,
.nav__list li.current_page_item > a {
  color: var(--color-ink);
  font-weight: 700;
}

.nav__list a[aria-current="page"]::after,
.nav__list li.current-menu-item > a::after,
.nav__list li.current_page_item > a::after {
  right: 0;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line-strong);
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-ink);
  border-radius: var(--radius-pill);
  transition: transform 220ms var(--ease-in-out), opacity 160ms ease, top 220ms var(--ease-in-out);
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}

.nav-toggle__bars span:nth-child(2) {
  top: 5px;
}

.nav-toggle__bars span:nth-child(3) {
  top: 10px;
}

.site-header[data-nav-open="true"] .nav-toggle__bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.site-header[data-nav-open="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header[data-nav-open="true"] .nav-toggle__bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* ---------- 7. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--color-accent-strong);
    box-shadow: var(--shadow-md);
  }
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-line-strong);
  color: var(--color-ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover {
    border-color: var(--color-ink);
    background: rgba(33, 28, 26, 0.04);
  }
}

.btn--on-dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .btn--on-dark:hover {
    background: rgba(255, 255, 255, 0.22);
  }
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: var(--fs-xs);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn[disabled]:active,
.btn--disabled:active {
  transform: none;
}

/* Triptyque d'actions (accueil) */
.action-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
  }
}

.action-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-rose-100);
  color: var(--color-accent);
}

.action-card__icon svg {
  width: 22px;
  height: 22px;
}

.action-card h3 {
  font-size: var(--fs-lg);
}

.action-card p {
  font-size: var(--fs-sm);
}

.action-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-accent);
}

.action-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .action-card:hover .action-card__link svg {
    transform: translateX(3px);
  }
}

/* ---------- 8. Média de substitution ---------- */
.placeholder-media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(135deg, var(--color-rose-700), var(--color-green-800));
  color: #fff;
  isolation: isolate;
}

.placeholder-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--motif-roses);
  background-size: 220px;
  opacity: 0.16;
  mix-blend-mode: overlay;
}

.placeholder-media__tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(20, 14, 14, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  z-index: 1;
}

.placeholder-media__tag svg {
  width: 14px;
  height: 14px;
}

.placeholder-media__caption {
  position: relative;
  z-index: 1;
  padding: var(--space-sm);
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.placeholder-media--square {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.placeholder-media--wide {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.placeholder-media--portrait {
  aspect-ratio: 3 / 4;
  min-height: 0;
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: -25% 0 -25% 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media__image {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.hero-media__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 14, 0.15) 0%, rgba(20, 12, 14, 0.35) 55%, rgba(20, 12, 14, 0.82) 100%);
}

.hero .container {
  position: relative;
  padding-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero .eyebrow {
  color: #fce4ea;
  text-shadow: 0 1px 12px rgba(20, 8, 12, 0.5);
}

.hero .eyebrow::before {
  background: #fce4ea;
  box-shadow: 0 1px 6px rgba(20, 8, 12, 0.4);
}

.hero h1 {
  color: #fff;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(20, 8, 12, 0.35);
}

.hero__lede {
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  font-size: var(--fs-md);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.scroll-cue {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue__line {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  display: block;
  width: 100%;
  height: 40%;
  background: #fff;
  animation: scrollcue 2.2s var(--ease-in-out) infinite;
}

@keyframes scrollcue {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue__line::after {
    animation: none;
  }
}

/* Hero immersif multi-couches (accueil uniquement) — profondeur créée par
   plusieurs plans à vitesses de parallaxe différentes, sans photo réelle. */
.hero-media--layered {
  background: var(--color-green-800);
}

.hero-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-layer--sky {
  background:
    radial-gradient(140% 100% at 14% 6%, rgba(255, 214, 224, 0.32), transparent 55%),
    radial-gradient(90% 70% at 88% 12%, rgba(182, 144, 63, 0.16), transparent 60%),
    linear-gradient(165deg, var(--color-rose-900) 0%, var(--color-rose-700) 45%, var(--color-green-800) 100%);
}

.hero-layer--sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--motif-roses);
  background-size: 280px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.hero-layer--band {
  inset: auto;
  left: -6%;
  right: -6%;
  background-image: var(--motif-roses);
  background-repeat: repeat-x;
  background-position: bottom;
}

.hero-layer--band-far {
  bottom: 4%;
  height: 30%;
  background-size: 100px;
  opacity: 0.14;
}

.hero-layer--band-mid {
  bottom: -6%;
  height: 42%;
  background-size: 160px;
  opacity: 0.24;
}

.hero-layer--foreground {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  filter: blur(0.5px);
  opacity: 0.92;
}

.hero-foliage {
  width: clamp(140px, 20vw, 300px);
  height: auto;
  color: rgba(15, 10, 10, 0.6);
  flex-shrink: 0;
}

.hero-foliage--left {
  margin-left: -4%;
}

.hero-foliage--right {
  margin-right: -4%;
  transform: scaleX(-1);
}

.hero-layer--vignette {
  background:
    linear-gradient(180deg, rgba(20, 12, 14, 0.1) 0%, rgba(20, 12, 14, 0.24) 45%, rgba(20, 12, 14, 0.88) 100%),
    radial-gradient(120% 60% at 50% 105%, rgba(0, 0, 0, 0.42), transparent 60%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  bottom: -20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(245, 223, 230, 0.1));
  opacity: 0;
  animation: hero-petal-float 12s ease-in-out infinite;
}

.hero-particle:nth-child(1) { left: 8%;  animation-duration: 13s; animation-delay: 0s; }
.hero-particle:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1.5s; }
.hero-particle:nth-child(3) { left: 34%; animation-duration: 14s; animation-delay: 3s; }
.hero-particle:nth-child(4) { left: 48%; animation-duration: 11s; animation-delay: 0.8s; }
.hero-particle:nth-child(5) { left: 62%; animation-duration: 15s; animation-delay: 4.5s; }
.hero-particle:nth-child(6) { left: 74%; animation-duration: 12s; animation-delay: 2.2s; }
.hero-particle:nth-child(7) { left: 86%; animation-duration: 13.5s; animation-delay: 5.5s; }
.hero-particle:nth-child(8) { left: 94%; animation-duration: 10.5s; animation-delay: 3.8s; }

@keyframes hero-petal-float {
  0% { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
  12% { opacity: 0.6; }
  55% { transform: translateY(-58vh) translateX(22px) scale(1); opacity: 0.35; }
  92% { opacity: 0; }
  100% { transform: translateY(-72vh) translateX(-12px) scale(0.9); opacity: 0; }
}

/* Reste dans le flux normal (au-dessus du titre) à toutes les tailles
   d'écran : garantit qu'il ne peut jamais chevaucher un titre qui prend
   plusieurs lignes, quelle que soit la hauteur du bloc de texte. */
.hero-badge {
  z-index: 2;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  background: rgba(20, 14, 14, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Entrée en scène du texte du hero (une seule fois, au chargement) */
.hero-enter > * {
  opacity: 0;
  animation: hero-enter-up 760ms var(--ease-out) both;
}

.hero-enter > *:nth-child(1) { animation-delay: 120ms; }
.hero-enter > *:nth-child(2) { animation-delay: 260ms; }
.hero-enter > *:nth-child(3) { animation-delay: 400ms; }
.hero-enter > *:nth-child(4) { animation-delay: 540ms; }

@keyframes hero-enter-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .hero-layer--foreground {
    opacity: 0.6;
  }

  .hero-foliage {
    width: clamp(110px, 34vw, 180px);
  }

  .hero-particle:nth-child(n + 6) {
    display: none;
  }
}

/* Bandeau immersif secondaire (autres pages) */
.page-intro {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.page-intro .container {
  position: relative;
  padding-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.page-intro h1 {
  color: #fff;
  max-width: 22ch;
}

.page-intro .lede {
  color: rgba(255, 255, 255, 0.88);
}

.page-intro .eyebrow {
  color: #f2d7de;
}

.page-intro .eyebrow::before {
  background: #f2d7de;
}

/* ---------- 10. Cartes ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}

.card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  flex: 1;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.card h3 {
  font-size: var(--fs-md);
  color: var(--color-ink);
}

.card p {
  font-size: var(--fs-sm);
}

.card--news {
  grid-column: span 1;
}

.card--news.card--feature {
  grid-column: span 2;
}

.card--news.card--feature .placeholder-media,
.card--news.card--feature .media-photo {
  min-height: 320px;
}

/* Carte réseaux sociaux */
.social-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .social-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}

.social-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.social-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-rose-700), var(--color-green-800));
}

.social-card__name {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-ink);
}

.social-card__handle {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.social-card__platform {
  margin-left: auto;
  width: 26px;
  height: 26px;
  color: var(--color-accent);
}

.social-card__media {
  border-radius: var(--radius-md);
}

.social-card__caption {
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.social-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-sm);
}

.social-card__link {
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

/* Carte équipe */
.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.team-card__name {
  font-size: var(--fs-md);
  font-family: var(--font-display);
}

.team-card__role {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.team-card__bio {
  font-size: var(--fs-sm);
}

/* Carte action */
.value-card,
.step-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.value-card__index,
.step-card__index {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-accent);
}

/* Rangée éditoriale alternée (page Nos actions) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: var(--space-2xl);
}

.feature-row--reverse .feature-row__media {
  order: 2;
}

.feature-row--reverse .feature-row__body {
  order: 1;
}

/* ---------- 11. Étiquettes / badges ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--color-rose-100);
  color: var(--color-rose-900);
}

.tag--on-dark {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.tag--cours {
  background: rgba(182, 144, 63, 0.16);
  color: var(--color-gold-500);
}

.tag--realise {
  background: rgba(63, 87, 65, 0.14);
  color: var(--color-green-600);
}

.tag--avenir {
  background: rgba(33, 28, 26, 0.08);
  color: var(--color-ink-soft);
}

.badge-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-rose-100);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

/* Filtres de catégories (Actualités) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-bottom: var(--space-xl);
}

.filter-bar button,
.filter-bar a {
  background: var(--color-surface);
  border: 1.5px solid var(--color-line-strong);
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}

.filter-bar button:active,
.filter-bar a:active {
  transform: scale(0.97);
}

.filter-bar button[aria-pressed="true"],
.filter-bar a[aria-current="page"],
.filter-bar a.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ---------- 12. Formulaires ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label,
.fieldset legend {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-ink);
}

.field .hint {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font: inherit;
  font-size: var(--fs-sm);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-line-strong);
  background: var(--color-surface);
  color: var(--color-ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-rose-100);
}

.fieldset {
  border: 1.5px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.fieldset legend {
  padding-inline: 0.4rem;
}

.checkbox-grid,
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.check-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--color-accent);
}

.form-note {
  display: flex;
  gap: var(--space-2xs);
  align-items: flex-start;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  background: var(--color-paper-alt);
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
}

.form-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.form-feedback {
  display: none;
  align-items: flex-start;
  gap: var(--space-xs);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-rose-100);
  color: var(--color-rose-900);
  font-size: var(--fs-sm);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.form-feedback svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-feedback[data-visible="true"] {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Navigation d'ancrage (page Participer) */
.jump-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: var(--space-2xs);
  flex-wrap: wrap;
  padding: var(--space-sm);
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.jump-nav a {
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: background-color 160ms ease, color 160ms ease;
}

.jump-nav a:hover {
  color: var(--color-ink);
  background: var(--color-paper-alt);
}

/* Parcours "Participer" */
.path-section {
  scroll-margin-top: calc(var(--header-height) + 60px);
}

.path-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.path-head__index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-rose-100);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
}

/* Paliers de don (page Soutenir) */
.donation-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.donation-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-lg) var(--space-sm);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1.5px solid var(--color-line);
  text-align: center;
}

.donation-tier__amount {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--color-ink);
}

.donation-tier__label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.info-banner {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  background: var(--color-rose-100);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: var(--color-rose-900);
}

.info-banner svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-line-strong);
  background: var(--color-surface);
}

.doc-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-rose-100);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-card__icon svg {
  width: 22px;
  height: 22px;
}

.doc-card__meta {
  flex: 1;
}

.doc-card__meta strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-ink);
}

.doc-card__meta span {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* ---------- 13. Pied de page ---------- */
.site-footer {
  background: var(--color-green-800);
  color: rgba(242, 236, 226, 0.92);
  padding-block: var(--space-xl) var(--space-md);
}

.site-footer a {
  color: inherit;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(242, 236, 226, 0.16);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  text-decoration: none;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.footer-brand__mark {
  width: 26px;
  height: 26px;
  color: var(--color-rose-400);
}

.footer-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  text-decoration: none;
  font-size: var(--fs-sm);
  opacity: 0.85;
  transition: opacity 140ms ease;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  font-size: var(--fs-xs);
  opacity: 0.75;
}

/* ---------- 14. Article ---------- */
.article-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.article-hero .container {
  position: relative;
  padding-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 860px;
}

.article-hero h1 {
  color: #fff;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
}

.article-body {
  max-width: 720px;
  margin-inline: auto;
  padding-block: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.article-body p {
  font-size: var(--fs-md);
  color: var(--color-text);
  line-height: 1.75;
}

.article-body h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-sm);
}

.article-body blockquote {
  margin: var(--space-sm) 0;
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-ink);
  background: var(--color-paper-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-body img {
  border-radius: var(--radius-md);
}

.article-figure {
  margin: var(--space-sm) 0;
}

.article-figure figcaption {
  margin-top: var(--space-2xs);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.article-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-md);
}

.related-articles {
  border-top: 1px solid var(--color-line);
}

/* ---------- 15. Révélation au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > * {
  animation: reveal-stagger-item 560ms var(--ease-out) both;
}

.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: 300ms; }

@keyframes reveal-stagger-item {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-stagger.is-visible > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-paper);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-lg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
    overflow-y: auto;
  }

  .site-header[data-nav-open="true"] .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list a {
    padding-block: var(--space-sm);
    font-size: var(--fs-md);
    border-bottom: 1px solid var(--color-line);
  }

  .nav__list a::after {
    display: none;
  }

  .nav__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .action-trio,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .donation-tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .jump-nav {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .grid--2 {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row--reverse .feature-row__media,
  .feature-row--reverse .feature-row__body {
    order: initial;
  }

  .card--news.card--feature {
    grid-column: span 1;
  }

  .form-row,
  .checkbox-grid,
  .radio-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: span 2;
  }

  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 560px) {
  section {
    padding-block: var(--space-xl);
  }

  .hero {
    min-height: 100vh;
  }

  .hero h1 {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col:last-child {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   17. Ajouts spécifiques au thème WordPress
   Le design ci-dessus est porté à l'identique depuis la maquette statique.
   Les règles suivantes ajoutent uniquement la prise en charge des vraies
   images (photo mise en avant / Customizer) en complément des espaces
   réservés, sans modifier une seule règle existante.
   ========================================================================== */

/* Emplacement média avec une vraie image (photo mise en avant, logo de
   remplacement, hero personnalisé) — mêmes proportions que les espaces
   réservés .placeholder-media--*, pour un rendu strictement identique
   une fois les photos ajoutées. */
.media-photo {
  position: relative;
  overflow: hidden;
  background: var(--color-paper-alt);
}

.media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-wide {
  aspect-ratio: 16 / 10;
}

.aspect-portrait {
  aspect-ratio: 3 / 4;
}

/* Couche photo réelle du hero de l'accueil (remplace la couche "ciel"
   illustrée lorsqu'une image est choisie dans Personnaliser → Accueil). */
.hero-photo-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-photo-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 14, 0.15) 0%, rgba(20, 12, 14, 0.35) 55%, rgba(20, 12, 14, 0.82) 100%);
}

/* Logo personnalisé (Personnaliser → Identité du site) affiché à la même
   échelle discrète que le monogramme SVG par défaut. */
.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo-link img {
  max-height: 34px;
  width: auto;
}

/* WordPress ajoute des classes d'alignement natives au contenu édité dans
   l'éditeur de blocs : on les fait cohabiter proprement avec la mise en
   page en conteneur du thème. */
.article-body .alignwide {
  margin-inline: calc(50% - 50vw + var(--space-md));
  max-width: none;
}

.article-body .alignfull {
  margin-inline: calc(50% - 50vw);
  max-width: none;
}

.article-body .wp-caption,
.article-body figure.wp-block-image {
  margin: var(--space-sm) 0;
}

.article-body .wp-caption-text,
.article-body figcaption {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2xs);
}

/* Pagination native (archives Actualités) */
.pbl-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  justify-content: center;
  margin-top: var(--space-xl);
}

.pbl-pagination a,
.pbl-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-line-strong);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text-muted);
}

.pbl-pagination a:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.pbl-pagination .current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Commentaires natifs (désactivés par défaut sur les pages du thème, mais
   stylés au cas où ils seraient activés sur les articles). */
.comments-area {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-md);
  border-top: 1px solid var(--color-line);
}

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-line-strong);
}
