/* =============================================================================
   Les Animaux du Futur — feuille de style du mode blog (DA octobre 2026)
   Couleurs : Sapin, Potiron, Soleil, Pistache, Brume, Lichen.
   Polices auto-hébergées : Bricolage Grotesque (titres), Figtree (texte).
   ============================================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff") format("woff");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff") format("woff");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-italic.woff") format("woff");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --sapin: #133A2F;
  --sapin-2: #1D4A3D;
  --sapin-3: #0B241D;
  --potiron: #FF7A3D;
  --potiron-clair: #FFE7D9;
  --soleil: #FFD34E;
  --soleil-clair: #FFF4CC;
  --pistache: #CFE8B4;
  --brume: #F2F6EE;
  --lichen: #4A5F57;
  --trait: #DCE5D6;
  --trait-2: #C9D6C2;
  --blanc: #FFFFFF;
  --texte-sur-sapin: #D5E3DC;

  --font-titre: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-texte: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 14px;
  --r-m: 22px;
  --r-l: 28px;
  --r-xl: 36px;
  --pill: 999px;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 24px);
  --section: clamp(56px, 8vw, 96px);
}

/* ── 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; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body.ladf {
  margin: 0;
  background: var(--blanc);
  color: var(--sapin);
  font-family: var(--font-texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ladf img { max-width: 100%; height: auto; display: block; }
.ladf a { color: var(--sapin); }
.ladf a:hover { color: var(--sapin-3); }
.ladf h1, .ladf h2, .ladf h3, .ladf h4 {
  font-family: var(--font-titre);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.ladf p { margin: 0; }
.ladf :focus-visible { outline: 3px solid var(--potiron); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 1000; width: auto; height: auto; clip: auto;
  background: var(--soleil); color: var(--sapin); padding: 12px 18px; border-radius: var(--pill); font-weight: 800;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 880px; }
.container--mid { max-width: 1120px; }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--brume { background: var(--brume); }
.section--soleil { background: var(--soleil); }
.section--sapin { background: var(--sapin); color: var(--blanc); }
.section--sapin a { color: var(--soleil); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-title { font-size: clamp(30px, 4vw, 44px); }
.section-link { font-weight: 800; text-decoration: none; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--lichen); }
.muted { color: var(--lichen); }
.mark { background: var(--soleil); padding: 0 0.18em; border-radius: 0.2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ── Boutons, pastilles ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--pill); border: 0;
  font-family: var(--font-texte); font-weight: 800; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.ladf .btn--primary { background: var(--potiron); color: var(--sapin); }
.ladf .btn--primary:hover { background: #FF8A55; color: var(--sapin); }
.ladf .btn--dark { background: var(--sapin); color: var(--blanc); }
.ladf .btn--dark:hover { background: var(--sapin-2); color: var(--blanc); }
.ladf .btn--ghost { background: transparent; color: var(--sapin); box-shadow: inset 0 0 0 2px var(--sapin); }
.ladf .btn--ghost-light { background: transparent; color: var(--blanc); box-shadow: inset 0 0 0 2px var(--blanc); }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: progress; transform: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: var(--pill); padding: 5px 12px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; line-height: 1.3;
}
.ladf a.pill:hover { filter: brightness(0.96); }
.pill--pistache { background: var(--pistache); color: var(--sapin); }
.pill--soleil { background: var(--soleil); color: var(--sapin); }
.pill--brume { background: var(--brume); color: var(--sapin); }
.pill--potiron { background: var(--potiron); color: var(--sapin); }
.pill--peche { background: var(--potiron-clair); color: var(--sapin); }
.pill--creme { background: var(--soleil-clair); color: var(--sapin); }
.pill--sapin, .ladf a.pill--sapin { background: var(--sapin); color: var(--blanc); }
.pill--blanc { background: var(--blanc); color: var(--sapin); }

/* fonds de couleur des rubriques */
.bg-soleil { background: var(--soleil); color: var(--sapin); }
.bg-pistache { background: var(--pistache); color: var(--sapin); }
.bg-peche { background: var(--potiron-clair); color: var(--sapin); }
.bg-brume { background: var(--brume); color: var(--sapin); }
.bg-creme { background: var(--soleil-clair); color: var(--sapin); }
.bg-sapin { background: var(--sapin); color: var(--blanc); }
.bg-potiron { background: var(--potiron); color: var(--sapin); }

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo__text { font-family: var(--font-titre); font-weight: 800; font-size: 20px; line-height: 0.92; letter-spacing: -0.03em; }

/* ── En-tête ──────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--trait); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: var(--pill);
  font-weight: 700; font-size: 16px; text-decoration: none; color: var(--sapin); cursor: pointer; list-style: none;
}
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav a:hover, .main-nav summary:hover { background: var(--brume); }
.main-nav .is-current > a, .main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--potiron); border-radius: 0; }
.nav-more { position: relative; }
.nav-more__panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--blanc);
  border: 1px solid var(--trait); border-radius: var(--r-m); padding: 8px; box-shadow: 0 24px 48px -24px rgba(19,58,47,.35);
}
.nav-more__panel ul { flex-direction: column; align-items: stretch; gap: 0; }
.nav-more__panel a { display: flex; border-radius: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--trait); background: var(--blanc);
  display: inline-flex; align-items: center; justify-content: center; color: var(--sapin); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--brume); }
.icon-btn svg { width: 20px; height: 20px; }
.header-cta { display: none; }
.header-search { border-top: 1px solid var(--trait); background: var(--brume); }
.header-search[hidden] { display: none; }
.header-search .container { padding-top: 16px; padding-bottom: 16px; }

.mobile-nav { border-top: 1px solid var(--trait); background: var(--blanc); max-height: calc(100vh - 72px); overflow-y: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px 0 24px; display: grid; gap: 2px; }
.mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; font-weight: 800; font-size: 18px; text-decoration: none; }
.mobile-nav a .mascot { width: 40px; height: 40px; }

@media (min-width: 1100px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ── Formulaires ──────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 700; }
.input, .ladf input[type="email"], .ladf input[type="text"], .ladf input[type="search"], .ladf textarea, .ladf select {
  width: 100%; min-height: 52px; border: 1px solid var(--trait-2); border-radius: var(--pill); background: var(--blanc);
  padding: 14px 20px; font: inherit; font-size: 16px; color: var(--sapin);
}
.ladf textarea { border-radius: var(--r-m); min-height: 160px; resize: vertical; }
.ladf input::placeholder, .ladf textarea::placeholder { color: #7A8C84; }
.ladf input:focus, .ladf textarea:focus, .ladf select:focus { outline: 3px solid var(--potiron); outline-offset: 1px; border-color: transparent; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form > .input-wrap { flex: 1 1 240px; min-width: 0; }
.inline-form .btn { flex: 0 0 auto; }
.form-note { font-size: 13px; color: var(--lichen); line-height: 1.5; }
.form-note a { color: inherit; }
.on-dark .form-note, .on-dark .form-note a { color: var(--texte-sur-sapin); }
.on-dark .input, .on-dark input[type="email"] { border-color: transparent; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-message { font-weight: 700; font-size: 15px; border-radius: var(--r-s); padding: 12px 16px; }
.form-message[hidden] { display: none; }
.form-message.is-success { background: var(--pistache); color: var(--sapin); }
.form-message.is-error { background: var(--potiron-clair); color: #8A2E0B; }
.choice-pills { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choice-pills legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.choice-pill { position: relative; }
.choice-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-pill span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--pill);
  border: 2px solid currentColor; font-weight: 800; opacity: .75;
}
.choice-pill input:checked + span { background: var(--soleil); color: var(--sapin); border-color: var(--soleil); opacity: 1; }
.choice-pill input:focus-visible + span { outline: 3px solid var(--potiron); outline-offset: 2px; }

.search-form { display: flex; gap: 10px; }
.search-form .input-wrap { flex: 1; }

/* ── Mascottes ────────────────────────────────────────────────────────────── */
.mascot { display: block; width: 120px; height: 120px; flex: none; }
.mascot svg { width: 100%; height: 100%; display: block; }

/* ── Hero accueil ─────────────────────────────────────────────────────────── */
.hero { background: var(--brume); overflow: hidden; }
.section--sapin, .section--soleil, .archive-hero { overflow: hidden; }
.hero__inner { display: grid; gap: 40px; align-items: center; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero__title { font-size: clamp(42px, 6.4vw, 78px); line-height: 0.97; letter-spacing: -0.04em; }
.hero__lead { margin-top: 20px; max-width: 560px; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__photo { width: 100%; max-width: 500px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 240px 240px 36px 36px; }
.hero__band { position: relative; width: 100%; max-width: 500px; aspect-ratio: 4 / 5; border-radius: 240px 240px 36px 36px; background: var(--soleil); display: grid; grid-template-columns: repeat(2, 1fr); place-items: center; padding: 64px 28px 36px; gap: 8px; }
.hero__band .mascot { width: 100%; height: auto; aspect-ratio: 1; max-width: 170px; }
.hero__sticker { position: absolute; left: 0; bottom: 36px; background: var(--potiron); border-radius: var(--r-m); padding: 14px 18px; transform: rotate(-4deg); max-width: 220px; box-shadow: 0 16px 32px -16px rgba(19,58,47,.45); }
.hero__sticker strong { display: block; font-family: var(--font-titre); font-size: 20px; line-height: 1.1; }
.hero__sticker span { font-size: 14px; line-height: 1.4; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
@media (max-width: 959px) {
  .hero__band { aspect-ratio: auto; max-width: none; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-l); padding: 18px 12px; }
  .hero__sticker { position: static; transform: rotate(-2deg); margin-top: -18px; max-width: none; align-self: flex-start; }
  .hero__visual { flex-direction: column; align-items: stretch; }
}

.lead-card { margin-top: 28px; background: var(--blanc); border-radius: var(--r-l); padding: 22px; max-width: 580px; box-shadow: 0 1px 0 var(--trait), 0 24px 48px -32px rgba(19,58,47,.35); display: grid; gap: 14px; }
.lead-card__head { display: flex; align-items: center; gap: 16px; }
.lead-card__title { font-weight: 800; font-size: 18px; line-height: 1.3; }
.lead-card__text { font-size: 15px; color: var(--lichen); line-height: 1.45; }

.mini-cover { width: 64px; height: 88px; flex: none; border-radius: 8px; background: var(--sapin); padding: 7px; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-4deg); box-shadow: 0 10px 18px -10px rgba(19,58,47,.6); }
.mini-cover b { font-family: var(--font-titre); font-weight: 800; font-size: 9.5px; line-height: .95; color: var(--blanc); }
.mini-cover b em { font-style: normal; color: var(--soleil); }
.mini-cover i { display: block; height: 14px; border-radius: 0 0 14px 14px; background: var(--pistache); }

/* ── Tuiles rubriques ─────────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.cat-tile {
  position: relative; overflow: hidden; border-radius: var(--r-l); padding: 20px; min-height: 168px;
  display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: transform .2s ease;
}
.ladf a.cat-tile { color: var(--sapin); }
.ladf a.cat-tile.bg-sapin { color: var(--blanc); }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile__name { position: relative; z-index: 1; font-family: var(--font-titre); font-weight: 800; font-size: clamp(21px, 2.4vw, 28px); line-height: 1; }
.cat-tile__count { position: relative; z-index: 1; font-size: 14px; font-weight: 700; }
.cat-tile .mascot { position: absolute; right: -14px; bottom: -18px; width: clamp(96px, 11vw, 136px); height: clamp(96px, 11vw, 136px); transform: rotate(-8deg); transition: transform .25s ease; }
.cat-tile:hover .mascot { transform: rotate(-2deg) scale(1.06); }

/* ── Cartes articles ──────────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); border: 1px solid var(--trait); background: var(--blanc); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: 0 24px 48px -32px rgba(19,58,47,.45); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .mascot { position: relative; z-index: 1; width: 46%; height: auto; aspect-ratio: 1; max-width: 150px; transform: rotate(-6deg); transition: transform .25s ease; }
.card:hover .card__media .mascot { transform: rotate(0deg) scale(1.05); }
.card__media::before { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); width: 62%; aspect-ratio: 1; }
.card__media.v1::before { left: -12%; top: -30%; } .card__media.v1 .mascot { transform: rotate(8deg) translateX(18%); }
.card__media.v2::before { right: -14%; bottom: -40%; } .card__media.v2 .mascot { transform: rotate(-10deg) translateX(-16%); }
.card__media.v3::before { left: 30%; top: 12%; width: 40%; } .card__media.v3 .mascot { transform: rotate(4deg) translateY(8%); }
.card__media.v0::before { right: 8%; top: -20%; width: 36%; background: rgba(255,255,255,.35); }
.card__media.has-photo::before { display: none; }
.card--feature .card__media .mascot { max-width: 260px; width: 34%; }
.bg-sapin.card__media::before { background: rgba(255,255,255,.08); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--lichen); }
.card__title { font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card__meta .pill { position: relative; z-index: 1; }
.card__excerpt { font-size: 15px; line-height: 1.55; color: var(--lichen); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--feature { border: 0; background: var(--sapin); color: var(--blanc); }
.card--feature .card__media { aspect-ratio: 16 / 9; }
.card--feature .card__title { font-size: clamp(26px, 3vw, 36px); }
.card--feature .card__title a, .card--feature .card__title a:hover { color: var(--blanc); }
.card--feature .card__excerpt { color: var(--texte-sur-sapin); -webkit-line-clamp: 4; font-size: 17px; }
.card--feature .card__meta { color: var(--texte-sur-sapin); }
.feature-row { display: grid; gap: 24px; }
@media (min-width: 1000px) { .feature-row { grid-template-columns: 1.6fr 1fr; } .feature-row__side { display: grid; gap: 24px; } }
.card--compact .card__media { aspect-ratio: 16 / 8; }
.card--compact .card__title { font-size: 20px; }

/* ── Bloc guide ───────────────────────────────────────────────────────────── */
.guide-block { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .guide-block { grid-template-columns: 0.8fr 1.2fr; } }
.guide-stack { position: relative; width: 300px; height: 380px; margin: 0 auto; }
.guide-page { position: absolute; width: 230px; height: 326px; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; box-shadow: 0 24px 40px -20px rgba(19,58,47,.5); }
.guide-page--back { left: 64px; top: 6px; background: var(--blanc); transform: rotate(6deg); gap: 10px; }
.guide-page--back small { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--potiron); }
.guide-page--back b { font-family: var(--font-titre); font-size: 19px; line-height: 1; }
.guide-page--back i { display: block; height: 10px; border-radius: 4px; background: var(--brume); }
.guide-page--back i.tall { height: 64px; border-radius: 10px; background: var(--potiron-clair); }
.guide-page--front { left: 0; top: 42px; background: var(--sapin); color: var(--blanc); transform: rotate(-5deg); justify-content: space-between; }
.guide-page--front b { font-family: var(--font-titre); font-size: 32px; line-height: .92; letter-spacing: -.04em; }
.guide-page--front b em { font-style: normal; color: var(--soleil); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 24px; }
@media (min-width: 640px) { .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.check-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--sapin) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD34E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* ── Club ─────────────────────────────────────────────────────────────────── */
.club { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .club { grid-template-columns: 0.8fr 1.2fr; } }
.club__badge { width: min(86%, 380px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: var(--potiron); transform: rotate(-6deg); display: grid; place-items: center; position: relative; }
.club__badge .mascots { display: flex; align-items: flex-end; justify-content: center; }
.club__badge .mascot { width: 33%; height: auto; aspect-ratio: 1; margin: 0 -4%; }
.club__badge b { position: absolute; bottom: 18%; left: 0; right: 0; text-align: center; font-family: var(--font-titre); font-size: clamp(24px, 3vw, 32px); color: var(--sapin); line-height: 1; }

/* ── Bande newsletter ─────────────────────────────────────────────────────── */
.newsletter-band { display: grid; gap: 24px; align-items: center; }
@media (min-width: 960px) { .newsletter-band { grid-template-columns: 1fr 1fr; } }

/* ── Pied de page ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--sapin-3); color: var(--texte-sur-sapin); padding: 56px 0 32px; font-size: 15px; }
.site-footer a { color: var(--texte-sur-sapin); text-decoration: none; }
.site-footer a:hover { color: var(--blanc); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 { font-family: var(--font-texte); font-size: 15px; font-weight: 800; letter-spacing: 0; color: var(--blanc); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand .logo { color: var(--blanc); }
.footer-brand p { margin-top: 14px; max-width: 320px; line-height: 1.6; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.footer-mascots { display: flex; gap: 0; margin-top: 20px; }
.footer-mascots .mascot { width: 44px; height: 44px; margin-right: -6px; }

/* ── Fil d'Ariane ─────────────────────────────────────────────────────────── */
.breadcrumbs { font-size: 14px; color: var(--lichen); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: var(--lichen); }

/* ── Page article ─────────────────────────────────────────────────────────── */
.article-head { padding-top: clamp(28px, 5vw, 48px); padding-bottom: 28px; display: grid; gap: 18px; }
.article-head h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.035em; }
.article-head .chapo { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--lichen); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 15px; color: var(--lichen); }
.article-meta .author { display: inline-flex; align-items: center; gap: 10px; color: var(--sapin); font-weight: 700; }
.article-meta .author .mascot { width: 40px; height: 40px; border-radius: 50%; background: var(--soleil); padding: 2px; }
.article-cover { border-radius: var(--r-xl); overflow: hidden; }
.article-cover { position: relative; }
.photo-credit { position: absolute; right: 14px; bottom: 12px; background: rgba(19,58,47,.72); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: var(--pill); }
.ladf .photo-credit a { color: #fff; }
.article-cover img { width: 100%; height: clamp(240px, 38vw, 520px); object-fit: cover; }
.article-banner { border-radius: var(--r-xl); min-height: clamp(150px, 18vw, 220px); display: flex; align-items: center; justify-content: space-between; padding: clamp(22px, 4vw, 40px); position: relative; overflow: hidden; gap: 24px; }
.article-banner::before { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.35); }
.article-banner__text { position: relative; z-index: 1; max-width: 560px; display: grid; gap: 8px; }
.article-banner__text b { font-family: var(--font-titre); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.05; }
.article-banner__text span { font-size: 16px; line-height: 1.5; }
.article-banner .mascot { position: relative; z-index: 1; width: clamp(110px, 15vw, 190px); height: auto; aspect-ratio: 1; transform: rotate(-6deg); margin: -10px 0 -30px; }
@media (max-width: 600px) { .article-banner__text span { display: none; } }
.article-layout { display: grid; gap: 48px; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 88px); }
@media (min-width: 1040px) { .article-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; } .article-aside { position: sticky; top: 96px; align-self: start; } }
.article-aside { display: grid; gap: 20px; }
@media (max-width: 1039px) { .article-aside .aside-newsletter { display: none; } .toc summary { font-family: var(--font-titre); font-size: 18px; font-weight: 800; } }
.toc summary { cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: " +"; color: var(--potiron); }
.toc details[open] summary::after { content: " −"; }
@media (min-width: 1040px) { .toc summary { pointer-events: none; } .toc summary::after { content: ""; } }
.toc { border-radius: var(--r-m); background: var(--brume); padding: 22px; font-size: 15px; }
.toc summary { display: block; font-family: var(--font-titre); font-size: 18px; font-weight: 800; }
.toc ol { margin-top: 10px !important; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.toc a { text-decoration: none; color: var(--lichen); line-height: 1.35; display: block; }
.toc a:hover, .toc a.is-active { color: var(--sapin); font-weight: 800; }
@media (max-width: 1039px) { .toc details summary { cursor: pointer; } .toc ol { max-height: none; } }
.aside-newsletter { border-radius: var(--r-m); background: var(--sapin); color: var(--blanc); padding: 22px; display: grid; gap: 12px; }
.aside-newsletter strong { font-family: var(--font-titre); font-size: 20px; line-height: 1.1; }
.aside-newsletter p { font-size: 14px; color: var(--texte-sur-sapin); }
.aside-newsletter .input { border-radius: var(--r-s); }
.aside-newsletter .btn { min-height: 48px; padding: 12px 20px; font-size: 15px; }

/* contenu rédactionnel */
.prose { font-size: 19px; line-height: 1.75; max-width: 760px; }
.ladf .prose > * + * { margin-top: 1.1em; }
.ladf .prose > h2 { margin-top: 2em; }
.ladf .prose > h3 { margin-top: 1.6em; }
.ladf .prose > h4 { margin-top: 1.4em; }
.ladf .prose > h2 + *, .ladf .prose > h3 + *, .ladf .prose > h4 + * { margin-top: .6em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; margin-top: 2em; scroll-margin-top: 100px; }
.prose h3 { font-size: clamp(21px, 2.2vw, 25px); line-height: 1.2; margin-top: 1.6em; scroll-margin-top: 100px; }
.prose h4 { font-size: 20px; margin-top: 1.4em; }
.prose a { color: var(--sapin); text-decoration-color: var(--potiron); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--soleil-clair); }
.prose strong { font-weight: 800; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--potiron); }
.prose ol li::marker { color: var(--potiron); font-weight: 800; }
.prose blockquote { margin-left: 0; margin-right: 0; border-radius: var(--r-m); background: var(--brume); padding: 20px 24px; font-size: 18px; }
.prose hr { border: 0; border-top: 1px solid var(--trait); margin: 2em 0; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.5; border: 1px solid var(--trait); border-radius: var(--r-s); }
.prose th { background: var(--sapin); color: var(--blanc); text-align: left; font-weight: 800; padding: 10px 14px; }
.prose td { padding: 10px 14px; border-top: 1px solid var(--trait); vertical-align: top; min-width: 120px; }
.prose tr:nth-child(even) td { background: var(--brume); }
.prose iframe, .prose .wp-embedded-content { max-width: 100%; border: 0; }
.prose .embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--sapin); }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose .embed--social { aspect-ratio: auto; background: none; overflow: visible; }
.prose .embed--social iframe { position: static; }
.prose > :first-child { margin-top: 0; }

.essentiel { border-radius: var(--r-m); background: var(--soleil); padding: 22px 26px; font-size: 17px; line-height: 1.6; }
.essentiel strong:first-child { display: block; font-family: var(--font-titre); font-size: 20px; margin-bottom: 6px; }

.inline-lead { margin: 2.2em 0; border-radius: var(--r-l); border: 2px solid var(--sapin); padding: 24px; display: grid; gap: 16px; }
.inline-lead__head { display: flex; gap: 18px; align-items: center; }
.inline-lead__head strong { font-family: var(--font-titre); font-size: 22px; line-height: 1.15; display: block; }
.inline-lead__head span { font-size: 15px; color: var(--lichen); line-height: 1.5; }

.author-box { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--trait); display: flex; gap: 18px; align-items: flex-start; font-size: 16px; line-height: 1.6; max-width: 760px; }
.author-box .mascot { width: 64px; height: 64px; border-radius: 50%; background: var(--soleil); padding: 3px; }
.author-box strong { font-size: 18px; display: block; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.article-tags a { border: 1px solid var(--trait-2); border-radius: var(--pill); padding: 6px 12px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--lichen); }
.article-tags a:hover { border-color: var(--sapin); color: var(--sapin); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; font-weight: 700; font-size: 15px; }
.share a { width: 44px; height: 44px; border-radius: 50%; background: var(--brume); display: inline-flex; align-items: center; justify-content: center; }
.share a:hover { background: var(--pistache); }
.share svg { width: 18px; height: 18px; }

.sticky-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.sticky-band strong { font-family: var(--font-titre); font-size: clamp(24px, 3vw, 32px); line-height: 1.1; max-width: 640px; display: block; margin-top: 10px; }

/* ── En-têtes d'archives ──────────────────────────────────────────────────── */
.archive-hero { position: relative; overflow: hidden; }
.archive-hero__inner { display: grid; gap: 24px; align-items: center; padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(32px, 6vw, 64px); }
@media (min-width: 860px) { .archive-hero__inner { grid-template-columns: 1fr auto; } }
.archive-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; }
.archive-hero p { margin-top: 14px; max-width: 640px; font-size: 18px; line-height: 1.6; }
.archive-hero .mascot { width: clamp(140px, 18vw, 220px); height: auto; aspect-ratio: 1; transform: rotate(-6deg); }
.archive-count { display: inline-block; margin-top: 18px; font-weight: 800; font-size: 15px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 48px; height: 48px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--trait-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; color: var(--sapin); }
.pagination .page-numbers.current { background: var(--sapin); border-color: var(--sapin); color: var(--blanc); }
.pagination a.page-numbers:hover { background: var(--brume); }
.pagination .dots { border: 0; }

/* ── Pages simples, 404, merci ────────────────────────────────────────────── */
.page-head { padding-top: clamp(36px, 6vw, 64px); padding-bottom: 24px; }
.page-head h1 { font-size: clamp(38px, 5.5vw, 64px); letter-spacing: -0.04em; }
.page-head p { margin-top: 14px; }
.center-hero { text-align: center; display: grid; justify-items: center; gap: 18px; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.center-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; max-width: 820px; }
.center-hero .mascot { width: clamp(150px, 20vw, 220px); height: auto; aspect-ratio: 1; }
.center-hero p { max-width: 620px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; } }
.stack { display: grid; gap: 16px; }
.empty-state { text-align: center; padding: 48px 0; display: grid; justify-items: center; gap: 14px; }
.empty-state .mascot { width: 140px; height: 140px; }

/* ── Utilitaires ──────────────────────────────────────────────────────────── */
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.text-center { text-align: center; }
.on-dark { color: var(--blanc); }
.on-dark .muted, .on-dark .lead { color: var(--texte-sur-sapin); }
