/* Pages éditoriales : manifeste, mode d'emploi, légal, erreur. */

/* ─── Manifeste ────────────────────────────────────────────────────────── */
.manifesto-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(2rem, 1.5rem + 3vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.manifesto-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: calc(var(--grain-opacity) * 1.4);
  pointer-events: none;
}
.manifesto-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-5);
}
.manifesto-hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 6.2vw, 6.2rem);
  line-height: 1.02;
  max-width: 16ch;
}
/* « dans les charts » en lettres creuses : la place est vide là-haut */
.manifesto-hero h1 .hollow {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}
@media (forced-colors: active) {
  .manifesto-hero h1 .hollow {
    color: CanvasText;
    -webkit-text-stroke: 0;
  }
}
.manifesto-hero h1 em {
  font-style: normal;
  color: var(--accent-strong);
}
.manifesto-hero .lead {
  max-width: 40rem;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
}

.principles {
  counter-reset: principle;
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
}
@media (min-width: 760px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.principle {
  counter-increment: principle;
  position: relative;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.4rem 1.3rem 1.3rem 4.4rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.principle::before {
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-strong);
}
.principle h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1.05;
}
.principle p {
  color: var(--text-muted);
}
.principle--loud {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.principle--loud p {
  color: var(--on-accent);
}
.principle--loud::before {
  -webkit-text-stroke: 1.5px var(--on-accent);
}

.quote-band {
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
}
.quote-band blockquote {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 1rem + 2.2vw, 2.6rem);
  line-height: 1;
  max-width: 24ch;
}
.quote-band blockquote em {
  font-style: normal;
  color: var(--accent-text);
}

/* ─── Mode d'emploi ────────────────────────────────────────────────────── */
/* Les deux portes : « Je cherche un groupe » / « Mon groupe recrute » (ancres). */
.how-doors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--s-5);
}
.how-doors a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 2.5px solid var(--text);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}
.how-doors a:hover {
  background: var(--surface-2);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.how-side {
  font-size: var(--fs-xl);
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.how-steps {
  display: grid;
  gap: 1rem;
  counter-reset: how;
  list-style: none;
  padding: 0;
}
.how-step {
  counter-increment: how;
  display: grid;
  gap: 0.6rem 1.25rem;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
@media (min-width: 760px) {
  .how-step {
    grid-template-columns: 5rem minmax(0, 1fr);
    padding: 1.6rem;
  }
}
.how-step::before {
  content: counter(how, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--accent-strong);
}
.how-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.3rem;
  line-height: 1.05;
}
.how-step p,
.how-step li {
  color: var(--text-muted);
}
.how-step ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
}
.how-step li::marker {
  color: var(--accent-text);
}

/* ─── Légal ────────────────────────────────────────────────────────────── */
.legal-layout {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 1000px) {
  .legal-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: start;
  }
}
.toc {
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.toc p {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.toc ol {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}
.toc a {
  color: var(--text);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}
@media (max-width: 999px) {
  .toc {
    position: static;
  }
}
.tldr {
  display: grid;
  gap: 0.6rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--vu) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--vu) 40%, var(--line));
}
.tldr ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.tldr li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.3rem;
}

/* Mentions légales et contact : pages courtes, sans sommaire. */
.legal-page {
  max-width: 46rem;
}
.legal-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.4rem 1.2rem;
  margin: 0;
}
.legal-facts dt {
  font-weight: 700;
  color: var(--text-muted);
}
.legal-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.legal-todo {
  font-style: italic;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.contact-mail {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact-mail h2 {
  margin: 0;
}

/* ─── Erreur ───────────────────────────────────────────────────────────── */
.error-page {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem);
  text-align: center;
}
.error-page__code {
  display: flex;
  align-items: center;
  gap: 0.05em;
  font-family: var(--font-display);
  font-size: clamp(6rem, 3rem + 16vw, 13rem);
  line-height: 0.8;
  color: var(--text);
  letter-spacing: -0.04em;
}
.error-page__code > span:first-child {
  color: var(--accent-strong);
}
.error-page__jack {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
}
.error-page__jack svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.error-page__ring {
  fill: var(--surface-2);
  stroke: var(--text);
  stroke-width: 10;
}
.error-page__hole {
  fill: #050404;
  stroke: var(--vu);
  stroke-width: 5;
}
.error-page__cable {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 6 0;
}
@media (prefers-reduced-motion: no-preference) {
  .error-page__jack svg {
    animation: wobble 2.4s ease-in-out infinite;
    transform-origin: 50% 50%;
  }
}
@keyframes wobble {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(5deg);
  }
}
.error-page__wave {
  width: min(100%, 30rem);
  height: 2.5rem;
  fill: none;
  stroke: var(--vu);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.85;
}
@media (prefers-reduced-motion: no-preference) {
  .error-page__wave path {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: feedback 2.8s ease-in-out infinite;
  }
}
@keyframes feedback {
  60%,
  100% {
    stroke-dashoffset: 0;
  }
}
.error-page__copy {
  max-width: 36rem;
  display: grid;
  justify-items: center;
}
.error-page__copy h1 {
  font-size: var(--fs-2xl);
}
.error-page .btn-row {
  justify-content: center;
}
