/*-- KINAGI · PAGE MANIFESTE -----------------------------------------------
  Cette feuille complète style.css. La palette et les tailles H1–H6 restent
  communes au site ; ne les redéfinir ici que pour une exception nécessaire.
----------------------------------------------------------------------------*/
/*-- 01 · COULEURS LOCALES DE LA PAGE ---------------------------------------*/
:root {
  --manifesto-background: var(--color-paper);
  --manifesto-text: var(--color-muted);
  --manifesto-heading: var(--color-ink);
  --manifesto-accent: var(--color-accent);
  --manifesto-line: var(--color-line);
}

/*-- 02 · EN-TÊTE VISUEL ----------------------------------------------------*/
.manifesto-page { background-color: var(--manifesto-background); }
.manifesto-hero {
  position: relative;
  display: grid;
  min-height: min(620px, 76vw);
  padding-block: clamp(4rem, 8vw, 7rem);
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.manifesto-hero-copy { position: relative; z-index: 1; max-width: 650px; margin: auto 0; }
.manifesto-hero h1 {
  max-width: 680px;
  color: var(--manifesto-heading);
}
.manifesto-deck { margin-top: 1.5rem; color: var(--color-ink); font-size: var(--text-lg); line-height: 1.55; }
.manifesto-hero-copy > p:not(.eyebrow):not(.manifesto-deck) { max-width: 570px; margin-top: 1rem; color: var(--manifesto-text); }
.manifesto-hero .button { margin-top: 1.8rem; }
.manifesto-hero-image {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1;
  justify-self: end;
  /* Silhouette de galet souple, dans la même famille que les images de l'accueil. */
  border-radius: 48% 52% 43% 57% / 38% 45% 55% 62%;
}
.manifesto-hero-image img { object-position: center; }
.manifesto-hero-line {
  position: absolute;
  top: 6%;
  right: 5%;
  width: 54%;
  height: 88%;
  border: 1px solid var(--manifesto-line);
  border-radius: 49% 45% 50% 40%;
  transform: rotate(-12deg);
  pointer-events: none;
}
/* Petit repère terracotta : prolonge le trait décoratif des autres sections. */
.manifesto-hero-line::after {
  position: absolute;
  right: 12%;
  bottom: 8%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--manifesto-accent);
  content: '';
}

/*-- 03 · SOMMAIRE ET TEXTE -------------------------------------------------*/
.manifesto-reading {
  display: grid;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(5rem, 9vw, 8rem);
  grid-template-columns: minmax(175px, 220px) minmax(0, 760px);
  justify-content: space-between;
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6.5rem);
  border-top: 1px solid var(--manifesto-line);
}
/* Le sommaire reste visible sous l'en-tête fixe pendant la lecture. */
.manifesto-toc { position: sticky; top: calc(var(--header-height) + 1.5rem); padding: 1rem 0; }
.manifesto-toc .eyebrow { margin-bottom: 1rem; }
.manifesto-toc nav { display: grid; gap: .6rem; }
.manifesto-toc a { color: var(--manifesto-text); font-size: var(--font-size-small); line-height: 1.4; transition: color .2s ease; }
.manifesto-toc a:hover, .manifesto-toc a:focus-visible { color: var(--manifesto-accent); }
.manifesto-article { min-width: 0; }
.manifesto-section { padding-bottom: clamp(3.5rem, 7vw, 6rem); margin-bottom: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--manifesto-line); scroll-margin-top: 2rem; }
/* La section de clôture porte une classe explicite ; son espacement ne dépend
   pas du type ni de l'ordre des éléments HTML qui la suivent. */
.manifesto-ending { margin-bottom: 0; }
.manifesto-section > .eyebrow { margin-bottom: .9rem; }
.manifesto-section > h2 { margin-bottom: 1.6rem; color: var(--manifesto-heading); }
.manifesto-section > h3,
.manifesto-final-words h3 { margin: 2.4rem 0 1rem; color: var(--manifesto-heading); }
.manifesto-section > p:not(.eyebrow), .manifesto-final-words > p { max-width: 70ch; margin: 0 0 1.1rem; color: var(--manifesto-text); line-height: 1.78; }
.manifesto-section em { color: var(--manifesto-heading); }
.manifesto-quote { margin: 2rem 0; padding: 1.4rem 1.8rem; border-left: 2px solid var(--manifesto-accent); }
.manifesto-quote p { color: var(--manifesto-heading); font-family: var(--font-heading); font-size: var(--font-size-quote); line-height: 1.13; }
.manifesto-quote p + p { margin-top: .5rem; }
.manifesto-sources { padding-top: .3rem; font-size: var(--font-size-small); }
.manifesto-sources a { color: var(--manifesto-accent); text-decoration: underline; text-underline-offset: .18em; }
.manifesto-sources a:hover { color: var(--color-accent-dark); }
.manifesto-final-words { margin-top: 3rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--color-paper-deep); border-radius: 1.25rem; }
.manifesto-final-words h3 { margin-top: 0; }
.manifesto-final-words .manifesto-try { margin-top: 1.6rem; color: var(--manifesto-accent); font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.2rem); }
.manifesto-back-link { display: inline-flex; margin-top: 2.5rem; }

/*-- 04 · ADAPTATION TABLETTE ET MOBILE ------------------------------------*/
@media (max-width: 900px) {
  .manifesto-hero { min-height: 0; grid-template-columns: 1fr .88fr; gap: 2rem; }
  .manifesto-hero-image { width: min(100%, 460px); }
  .manifesto-reading { grid-template-columns: minmax(155px, 190px) minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 700px) {
  .manifesto-hero { padding-block: 3.5rem 3rem; grid-template-columns: 1fr; gap: 2rem; }
  .manifesto-hero-copy { order: 1; }
  .manifesto-hero-image { order: 2; width: min(89%, 430px); justify-self: center; }
  .manifesto-hero-line { top: auto; right: 1%; bottom: 1rem; width: 76%; height: 47%; }
  .manifesto-reading { padding-top: 2rem; grid-template-columns: 1fr; gap: 1.8rem; }
  .manifesto-toc { position: static; padding: 1rem 1.2rem; border: 1px solid var(--manifesto-line); border-radius: 1.2rem; background: rgb(255 255 255 / 30%); }
  .manifesto-toc nav { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .manifesto-toc a { padding-block: .2rem; }
  .manifesto-section { padding-bottom: 3rem; margin-bottom: 3rem; }
  .manifesto-final-words { margin-top: 2rem; }
}
@media (max-width: 420px) {
  .manifesto-toc nav { grid-template-columns: 1fr; }
  .manifesto-hero-image { width: 94%; }
}
