/*
Theme Name: Histoire de Bambou — Blog
Theme URI: https://histoiredebambou.com/blog/
Author: Malorie Farre
Author URI: https://histoiredebambou.com
Description: Thème du blog Histoire de Bambou, aligné à la lettre sur le design du site statique (vert bambou #43C2A6, forêt profond, polices Fraunces + Inter). Header et footer identiques, 5 catégories et auto-catégorisation des articles.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: histoiredebambou
*/

/* ============================ Tokens ============================ */
:root {
  --white: #ffffff;
  --cream: #f7faf9;
  --mint-50: #f3fbf8;
  --mint-100: #eaf7f3;
  --mint-200: #d6efe7;
  --bambou: #43c2a6;
  --bambou-600: #2fa98e;
  --bambou-700: #1f8d75;
  --forest: #143a33;
  --forest-800: #0f2e29;
  --forest-900: #0a211d;
  --ink: #1a2b27;
  --muted: #5c6b66;
  --line: #e2ece8;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-hero: clamp(2.4rem, 1.6rem + 3.4vw, 3.8rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.6vw, 2.3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 58, 51, 0.06), 0 1px 3px rgba(20, 58, 51, 0.05);
  --shadow-md: 0 14px 34px -16px rgba(20, 58, 51, 0.22);
  --shadow-lg: 0 28px 64px -24px rgba(20, 58, 51, 0.3);
  --shadow-bambou: 0 18px 38px -14px rgba(67, 194, 166, 0.5);

  --section-y: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1.5rem, 0.9rem + 2.5vw, 2.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s;
  --t-med: 0.4s;
  --header-h: 76px;
}

/* ============================ Reset ============================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--bambou-700);
  text-decoration: none;
}
a:hover {
  color: var(--bambou-600);
}
button {
  font: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--bambou);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--bambou);
  color: var(--forest-900);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--forest);
  letter-spacing: -0.01em;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}

/* =========================== Layout ============================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: var(--container-narrow);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--mint {
  background: var(--mint-100);
}
.section--cream {
  background: var(--cream);
}
.section--tight {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bambou-700);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: var(--bambou);
  -webkit-mask: url(assets/img/plume.png) center / contain no-repeat;
  mask: url(assets/img/plume.png) center / contain no-repeat;
}
.section-head--center .eyebrow {
  justify-content: center;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
}

/* =========================== Buttons =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 1rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
  cursor: pointer;
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
}
.btn--primary {
  background: var(--bambou);
  color: var(--forest-900);
  box-shadow: var(--shadow-bambou);
}
.btn--primary:hover {
  background: var(--bambou-600);
  color: var(--forest-900);
  transform: translateY(-2px);
}
.btn--outline {
  border-color: var(--bambou);
  color: var(--bambou-700);
  background: transparent;
}
.btn--outline:hover {
  background: var(--bambou);
  color: var(--forest-900);
  transform: translateY(-2px);
}
.btn--ghost {
  color: var(--forest);
  background: var(--white);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--bambou);
  color: var(--bambou-700);
  transform: translateY(-2px);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: var(--bambou-700);
  transition: gap var(--t-fast) var(--ease);
}
.link-arrow:hover {
  gap: 0.7em;
}
.link-arrow .arrow {
  transition: transform var(--t-fast) var(--ease);
}
.link-arrow:hover .arrow {
  transform: translateX(3px);
}

/* ======================== Header (identique) =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -16px rgba(20, 58, 51, 0.3);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.brand img {
  height: 46px;
  width: auto;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.brand-text em {
  font-style: normal;
  color: var(--bambou-700);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li {
  position: relative;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.main-nav a:hover,
.main-nav .current a {
  color: var(--bambou-700);
  background: var(--mint-100);
}
.main-nav .has-children > a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--t-fast) var(--ease);
}
.submenu {
  display: block; /* annule le display:flex hérité de .main-nav ul (items empilés verticalement) */
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
    visibility var(--t-fast);
}
.submenu li {
  display: block;
  width: 100%;
}
.main-nav .has-children:hover .submenu,
.main-nav .has-children:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.header-cta {
  padding: 0.7rem 1.25rem;
  font-size: 0.92rem;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  border: 1px solid var(--line);
  background: var(--white);
}
.burger span {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background var(--t-fast);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease);
}
.burger span::before {
  top: -7px;
}
.burger span::after {
  top: 7px;
}
body.menu-open .burger span {
  background: transparent;
}
body.menu-open .burger span::before {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .burger span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile — overlay plein écran, fond forêt 70% (identique au statique) */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(20, 58, 51, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t-med) var(--ease),
    transform var(--t-med) var(--ease), visibility var(--t-med);
}
body.menu-open .mobile-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-panel > ul {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: auto 0;
}
.mobile-panel > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: color var(--t-fast) var(--ease);
}
.mobile-panel > ul > li > a:hover {
  color: var(--mint-200);
  background: none;
}
.mobile-panel .submenu {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  background: none;
  box-shadow: none;
  border: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  padding: 0.4rem 0 0.9rem;
}
.mobile-panel .submenu a {
  padding: 0.5rem 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease);
}
.mobile-panel .submenu a:hover {
  color: #fff;
  background: none;
}
.mobile-cta {
  margin-top: 1.75rem;
  width: 100%;
}

@media (max-width: 1040px) {
  .main-nav,
  .header-cta {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
}

/* ======================= Blog : listing ======================= */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: radial-gradient(110% 90% at 90% -20%, var(--mint-100) 0%, transparent 55%),
    var(--white);
  text-align: center;
}
.blog-hero h1 {
  font-size: var(--fs-hero);
}
.blog-hero .lead {
  max-width: 620px;
  margin: 1rem auto 0;
}

.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2rem;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  transition: all var(--t-fast) var(--ease);
}
.cat-chip:hover,
.cat-chip.is-active {
  background: var(--bambou);
  border-color: var(--bambou);
  color: var(--forest-900);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 0.8rem + 1.5vw, 2rem);
}
@media (max-width: 920px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
  height: 100%;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mint-200);
}
.post-card__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mint-100), var(--mint-200));
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-med) var(--ease);
}
.post-card:hover .post-card__thumb img {
  transform: scale(1.05);
}
.post-card__thumb--empty {
  display: grid;
  place-items: center;
  color: var(--bambou-700);
}
.post-card__thumb--empty .plume {
  width: 48px;
  height: 48px;
  background-color: var(--bambou);
  opacity: 0.4;
  -webkit-mask: url(assets/img/plume.png) center / contain no-repeat;
  mask: url(assets/img/plume.png) center / contain no-repeat;
}
.post-card__body {
  padding: 1.3rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}
.post-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bambou-700);
}
.post-card__body h2,
.post-card__body h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0;
}
.post-card__body h2 a,
.post-card__body h3 a {
  color: var(--forest);
}
.post-card__body h2 a:hover,
.post-card__body h3 a:hover {
  color: var(--bambou-700);
}
.post-excerpt {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}
.post-card__footer {
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.post-date {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ========================= Pagination ========================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--forest);
  font-weight: 600;
  transition: all var(--t-fast) var(--ease);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--bambou);
  border-color: var(--bambou);
  color: var(--forest-900);
}

/* ====================== Single : article ====================== */
.entry-header {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: radial-gradient(110% 90% at 90% -20%, var(--mint-100) 0%, transparent 55%),
    var(--white);
}
.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  align-items: center;
}
.breadcrumb a:hover {
  color: var(--bambou-700);
}
.breadcrumb .sep {
  color: var(--bambou);
}
.entry-header h1 {
  font-size: var(--fs-hero);
  max-width: 18ch;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.2rem;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.entry-meta .post-cat {
  font-size: 0.78rem;
}
.entry-thumb {
  max-width: var(--container);
  margin: clamp(1.5rem, 1rem + 2vw, 2.5rem) auto 0;
  padding-inline: var(--gutter);
}
.entry-thumb img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.entry-content {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.entry-content > * + * {
  margin-top: 1.3rem;
}
.entry-content h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin-top: 2.6rem;
}
.entry-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
}
.entry-content p {
  margin: 1.1rem 0 0;
}
.entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.entry-content ul {
  list-style: none;
  padding-left: 0;
}
.entry-content ul li {
  position: relative;
  padding-left: 1.5rem;
}
.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bambou);
}
.entry-content img {
  border-radius: var(--radius);
  height: auto;
}
.entry-content blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.6rem;
  border-left: 4px solid var(--bambou);
  background: var(--mint-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--forest);
}
.entry-content figure {
  margin: 1.8rem 0;
}
.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}
.entry-content pre {
  background: var(--forest-900);
  color: #d7efe8;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.92rem;
}
.entry-content code {
  background: var(--mint-100);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}
.entry-content pre code {
  background: none;
  padding: 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  text-align: left;
}
.entry-content th {
  background: var(--mint-100);
  color: var(--forest);
  font-weight: 600;
}

.entry-tags {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.entry-tags a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--mint-100);
  color: var(--bambou-700);
  font-size: 0.82rem;
  font-weight: 600;
}

.author-box {
  margin-top: 3rem;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  background: var(--mint-50);
  border: 1px solid var(--mint-200);
  border-radius: var(--radius-lg);
}
.author-box img {
  width: 92px;
  height: 112px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
.author-box h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}
.author-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ====================== Articles liés ========================= */
.related h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* ========================= CTA band =========================== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-800) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
}
.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 1rem auto 0;
}
.cta-band .btn {
  margin-top: 2rem;
}
.cta-band .plume-deco {
  position: absolute;
  width: 200px;
  height: 200px;
  top: -40px;
  right: -20px;
  transform: rotate(25deg);
  background-color: rgba(67, 194, 166, 0.14);
  -webkit-mask: url(assets/img/plume.png) center / contain no-repeat;
  mask: url(assets/img/plume.png) center / contain no-repeat;
  pointer-events: none;
}

/* =========================== 404 ============================== */
.error-404 {
  text-align: center;
  padding-block: clamp(4rem, 3rem + 5vw, 8rem);
}
.error-404 .big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  color: var(--bambou);
  line-height: 1;
}

/* ======================= Search form ========================= */
.search-form {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
}
.search-form input[type="search"] {
  flex: 1;
  font: inherit;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--bambou);
  box-shadow: 0 0 0 4px rgba(67, 194, 166, 0.15);
}

/* ======================== Footer (identique) ================== */
.site-footer {
  position: relative;
  background: var(--forest-900);
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(3rem, 2.5rem + 3vw, 5rem);
  overflow: hidden;
}
.footer-leaf {
  position: absolute;
  background-color: rgba(67, 194, 166, 0.08);
  -webkit-mask: url(assets/img/plume.png) center / contain no-repeat;
  mask: url(assets/img/plume.png) center / contain no-repeat;
  pointer-events: none;
}
.footer-leaf-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  right: -40px;
  transform: rotate(20deg);
}
.footer-leaf-2 {
  width: 200px;
  height: 200px;
  bottom: 40px;
  left: -50px;
  transform: rotate(-30deg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  position: relative;
  z-index: 1;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.footer-brand img {
  height: 46px;
  width: auto;
}
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 38ch;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.92rem;
}
.footer-social:hover {
  color: var(--bambou);
}
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bambou);
  margin-bottom: 1.1rem;
  display: inline-block;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-list a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}
.footer-list a:hover {
  color: var(--white);
  padding-left: 4px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}
.footer-contact-item a:hover {
  color: var(--white);
}
.footer-bottom {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-top: 1px solid var(--line-dark);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.footer-copy {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-legal a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-legal a:hover {
  color: var(--bambou);
}
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ======================= Animations =========================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===================== Accessibilité / WP ===================== */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--forest);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus {
  top: 1rem;
  color: var(--white);
}
.aligncenter {
  margin-inline: auto;
  display: block;
}
.alignleft {
  float: left;
  margin: 0.4rem 1.5rem 1rem 0;
}
.alignright {
  float: right;
  margin: 0.4rem 0 1rem 1.5rem;
}
.wp-caption {
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
