/* =========================================================================
   or-et-faire-part.fr — Magazine éditorial sur l'art du faire-part
   Mood board : Manuscrit médiéval moderne
   ========================================================================= */

:root {
  /* Palette */
  --vellum:        #F5EFE0;
  --ink:           #1B1A18;
  --gold-old:      #B89058;
  --cinabre:       #A23E3B;
  --ochre:         #C49658;
  --fog:           #E8E2D2;
  --ivory:         #FAF6E8;

  /* Dérivés opacité */
  --ink-80:        rgba(27, 26, 24, 0.80);
  --ink-65:        rgba(27, 26, 24, 0.65);
  --ink-40:        rgba(27, 26, 24, 0.40);
  --ink-20:        rgba(27, 26, 24, 0.20);
  --ink-10:        rgba(27, 26, 24, 0.10);
  --ink-06:        rgba(27, 26, 24, 0.06);
  --vellum-95:     rgba(245, 239, 224, 0.95);
  --vellum-75:     rgba(245, 239, 224, 0.75);
  --vellum-40:     rgba(245, 239, 224, 0.40);
  --gold-old-30:   rgba(184, 144, 88, 0.30);
  --gold-old-15:   rgba(184, 144, 88, 0.15);
  --cinabre-90:    rgba(162, 62, 59, 0.90);
  --cinabre-30:    rgba(162, 62, 59, 0.30);

  /* Typographies */
  --ff-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-body:    'Crimson Text', Georgia, 'Times New Roman', serif;
  --ff-accent:  'Italianno', 'Brush Script MT', cursive;
  --ff-mono:    ui-monospace, 'SF Mono', Consolas, monospace;

  /* Mesures */
  --measure-article: 680px;
  --measure-wide:    1280px;
  --measure-narrow:  560px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Spacing scale (medieval rhythm) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  /* Borders & radii */
  --br-sm: 2px;
  --br-md: 4px;
  --br-lg: 8px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--vellum);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto; /* impératif : reset Astro auto-injecte width/height */
}

/* Anti-distorsion wrappers — CODEX REGLE 14 */
.img-hero     { aspect-ratio: 16/9; overflow: hidden; }
.img-card     { aspect-ratio: 3/2;  overflow: hidden; }
.img-body     { aspect-ratio: 3/2;  overflow: hidden; }
.img-portrait { aspect-ratio: 1/1;  overflow: hidden; border-radius: 50%; }

.img-hero img, .img-card img, .img-body img, .img-portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

a {
  color: var(--cinabre);
  text-decoration-color: var(--gold-old-30);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover,
a:focus {
  color: var(--gold-old);
  text-decoration-color: var(--gold-old);
}

/* =========================================================================
   Typography
   ========================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 2.5em 0 0.7em;
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-top: 0;
}

h2 {
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.4em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-old) 0%, var(--gold-old-30) 100%);
  transform-origin: left;
  transform: scaleX(0.5);
  transition: transform 0.5s ease;
}

h2.is-visible::after,
.is-visible h2::after {
  transform: scaleX(1);
}

h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  font-style: italic;
  color: var(--gold-old);
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-80);
}

p {
  margin: 0 0 1.25em;
}

.kicker {
  display: inline-block;
  font-family: var(--ff-accent);
  font-size: 1.5rem;
  color: var(--gold-old);
  letter-spacing: 0.02em;
  margin-bottom: 0.4em;
}

.kicker-upper {
  font-family: var(--ff-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-old);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.6em;
}

blockquote {
  margin: 2em 0;
  padding: 1.5em 2em;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-80);
  background: var(--ink-06);
  border-left: 4px solid var(--gold-old);
  position: relative;
}

blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.2em;
  left: 0.4em;
  font-family: var(--ff-display);
  font-size: 4rem;
  color: var(--cinabre-30);
  line-height: 1;
}

/* =========================================================================
   Layout
   ========================================================================= */

.wrapper {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.wrapper-article {
  max-width: var(--measure-article);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section-fog {
  background-color: var(--fog);
}

.section-vellum {
  background-color: var(--vellum);
}

/* Filigrane SVG acanthe en fond */
.section-filigrane {
  position: relative;
  overflow: hidden;
}

.section-filigrane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23B89058' stroke-width='1.2' opacity='0.04'><path d='M100,40 C 70,55 65,85 80,110 C 95,135 80,165 100,170 C 120,165 105,135 120,110 C 135,85 130,55 100,40 Z'/><path d='M100,40 C 130,55 135,85 120,110' /><path d='M85,90 Q 90,95 95,100' /><path d='M115,90 Q 110,95 105,100'/></g></svg>");
  background-size: 220px;
  background-repeat: repeat;
  pointer-events: none;
}

/* =========================================================================
   Header / Navigation
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--vellum-95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--gold-old-30);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  height: 70px;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.brand {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.45em;
}

.brand strong {
  color: var(--cinabre);
  font-weight: 600;
}

.brand-tagline {
  display: none;
  font-family: var(--ff-accent);
  font-size: 1.4rem;
  color: var(--gold-old);
}

@media (min-width: 900px) {
  .brand-tagline {
    display: inline;
  }
}

.primary-nav {
  display: none;
}

@media (min-width: 900px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
  }
}

.primary-nav a,
.dropdown > button {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-80);
  text-decoration: none;
  padding: 0.3em 0.1em;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.primary-nav a:hover,
.primary-nav a:focus,
.dropdown > button:hover {
  color: var(--cinabre);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--vellum);
  border: 1px solid var(--gold-old-30);
  border-top: 2px solid var(--gold-old);
  padding: var(--sp-3);
  display: none;
  flex-direction: column;
  gap: var(--sp-1);
  box-shadow: 0 8px 24px var(--ink-10);
  z-index: 60;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 0.4em 0.7em;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: var(--ink-06);
  color: var(--cinabre);
}

/* Menu hamburger mobile */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--gold-old-30);
  cursor: pointer;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gold-old-30);
  background: var(--vellum);
  padding: var(--sp-6) var(--gutter);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.mobile-nav details summary {
  font-family: var(--ff-display);
  font-size: 1.125rem;
  cursor: pointer;
  padding: var(--sp-2) 0;
  list-style: none;
}

.mobile-nav details summary::-webkit-details-marker { display: none; }

.mobile-nav details[open] summary { color: var(--cinabre); }

.mobile-nav details ul {
  padding-left: var(--sp-6);
  margin-top: var(--sp-2);
  gap: var(--sp-2);
}

.mobile-nav a {
  color: var(--ink-80);
  text-decoration: none;
  font-family: var(--ff-display);
  font-size: 1.0625rem;
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--vellum);
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

.hero-home {
  min-height: 75vh;
}

.hero-article {
  min-height: 45vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg, linear-gradient(135deg, var(--ink) 0%, var(--cinabre) 100%));
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 26, 24, 0.5) 0%, rgba(27, 26, 24, 0.7) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  color: var(--vellum);
  margin-bottom: 0.3em;
}

.hero-tagline {
  font-family: var(--ff-accent);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--gold-old);
  display: block;
  margin-bottom: 0.5em;
}

.hero-summary {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--vellum-95);
  line-height: 1.5;
  margin: 1em auto 0;
  max-width: 600px;
}

/* =========================================================================
   Cards (piliers + articles)
   ========================================================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-8);
}

.card {
  background: var(--vellum);
  border: 1px solid var(--ink-10);
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-old);
  box-shadow: 0 12px 28px var(--ink-10);
}

.card-image {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  width: 100%;
  background: var(--ink-06);
}

.card-body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat {
  font-family: var(--ff-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-old);
  margin-bottom: var(--sp-2);
}

.card-title {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 var(--sp-3);
}

.card:hover .card-title {
  color: var(--cinabre);
}

.card-summary {
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--ink-80);
  margin: 0 0 var(--sp-4);
}

.card-meta {
  margin-top: auto;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-65);
}

/* Numérotation décorative cards piliers */
.card-pillier {
  position: relative;
  overflow: hidden;
}

.card-pillier::before {
  content: attr(data-num);
  position: absolute;
  top: -20px;
  right: -5px;
  font-family: var(--ff-display);
  font-size: 7rem;
  font-weight: 600;
  color: var(--cinabre-30);
  opacity: 0.6;
  pointer-events: none;
  line-height: 1;
}

/* =========================================================================
   Article body
   ========================================================================= */

.article-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: var(--sp-12) var(--gutter);
  align-items: start;
}

@media (min-width: 1080px) {
  .article-wrap:has(.article-toc) {
    grid-template-columns: 220px minmax(0, var(--measure-article)) 1fr;
  }
}

.article-toc {
  display: none;
}

@media (min-width: 1080px) {
  .article-toc {
    display: block;
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    font-family: var(--ff-display);
    border-left: 2px solid var(--gold-old);
    padding-left: var(--sp-4);
  }
}

.article-toc::before {
  content: "✒";
  display: block;
  font-size: 1.4rem;
  color: var(--gold-old);
  margin-bottom: var(--sp-3);
}

.article-toc-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-old);
  margin-bottom: var(--sp-3);
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.article-toc a {
  font-size: 0.875rem;
  color: var(--ink-80);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.article-toc a:hover {
  color: var(--cinabre);
}

.article-body {
  max-width: var(--measure-article);
  margin: 0 auto;
}

.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 8vw, 5rem);
  line-height: 0.95;
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: var(--cinabre);
  text-shadow: 1px 1px 0 var(--gold-old);
  padding: 0.1em 0.18em 0 0;
}

.article-summary {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-80);
  border-top: 1px solid var(--gold-old-30);
  border-bottom: 1px solid var(--gold-old-30);
  padding: var(--sp-6) 0;
  margin: var(--sp-8) auto;
  text-align: center;
  max-width: 620px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-65);
  margin-bottom: var(--sp-4);
}

.article-meta-sep {
  width: 4px;
  height: 4px;
  background: var(--gold-old);
  border-radius: 50%;
}

.article-body img {
  margin: var(--sp-8) auto;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.article-body p:has(> img:only-child) { margin: 0; }

.article-body figure {
  margin: var(--sp-8) 0;
}

.article-body figcaption {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  color: var(--ink-65);
  margin-top: var(--sp-2);
}

/* =========================================================================
   Breadcrumb
   ========================================================================= */

.breadcrumb {
  font-family: var(--ff-display);
  font-size: 0.875rem;
  color: var(--ink-65);
  margin-bottom: var(--sp-6);
}

.breadcrumb a {
  color: var(--ink-65);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--cinabre);
}

.breadcrumb-sep {
  margin: 0 0.5em;
  color: var(--gold-old);
}

/* =========================================================================
   FAQ accordion (cartouches médiévaux)
   ========================================================================= */

.faq {
  max-width: var(--measure-article);
  margin: var(--sp-16) auto;
}

.faq-intro {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.faq-item {
  border: 1px solid var(--gold-old-30);
  border-left: 3px solid var(--gold-old);
  margin-bottom: var(--sp-4);
  background: var(--vellum);
  position: relative;
}

.faq-item::before,
.faq-item::after {
  content: "❦";
  position: absolute;
  font-size: 0.8rem;
  color: var(--gold-old);
  opacity: 0.7;
}

.faq-item::before { top: 6px; left: -8px; background: var(--vellum); padding: 0 2px; }
.faq-item::after { bottom: 6px; right: 6px; }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.faq-question:hover { color: var(--cinabre); }

.faq-question::after {
  content: "+";
  display: inline-block;
  font-size: 1.5rem;
  color: var(--gold-old);
  transition: transform 0.3s;
  font-weight: 300;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 var(--sp-6);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 800px;
  padding-bottom: var(--sp-6);
}

.faq-answer p { margin: 0; }

/* =========================================================================
   Related pages / articles
   ========================================================================= */

.related-section {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: var(--sp-12) var(--gutter);
}

.related-title {
  font-family: var(--ff-display);
  text-align: center;
  margin-bottom: var(--sp-8);
  position: relative;
}

.related-title::before {
  content: "❦";
  display: block;
  color: var(--gold-old);
  font-size: 1.5rem;
  margin-bottom: var(--sp-2);
}

/* =========================================================================
   Filter (catégories blog)
   ========================================================================= */

.cat-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin: var(--sp-8) 0;
  padding: var(--sp-4);
  border-top: 1px solid var(--gold-old-30);
  border-bottom: 1px solid var(--gold-old-30);
}

.cat-filter a {
  font-family: var(--ff-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-65);
  text-decoration: none;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.cat-filter a:hover {
  color: var(--cinabre);
  border-color: var(--gold-old-30);
}

.cat-filter a[aria-current="page"],
.cat-filter a.is-active {
  color: var(--cinabre);
  border-color: var(--cinabre);
  background: var(--cinabre-30);
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--ink);
  color: var(--vellum-75);
  padding: var(--sp-16) var(--gutter) var(--sp-8);
  margin-top: var(--sp-24);
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-old) 50%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-8);
  max-width: var(--measure-wide);
  margin: 0 auto;
}

.footer-col h4 {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-old);
  margin: 0 0 var(--sp-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-col a {
  color: var(--vellum-75);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--gold-old);
}

.footer-brand {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  color: var(--vellum);
  margin-bottom: var(--sp-3);
}

.footer-tagline {
  font-family: var(--ff-accent);
  font-size: 1.4rem;
  color: var(--gold-old);
  margin-bottom: var(--sp-3);
}

.footer-bottom {
  border-top: 1px solid var(--ink-40);
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  text-align: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--vellum-40);
  max-width: var(--measure-wide);
  margin-inline: auto;
}

.footer-heritage {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--vellum-40);
  max-width: 600px;
  margin: var(--sp-4) auto 0;
  text-align: center;
  line-height: 1.5;
}

/* =========================================================================
   Utilities & reveal animation
   ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s, transform 0.7s;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: var(--sp-8); }
.mb-8 { margin-bottom: var(--sp-8); }

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

/* =========================================================================
   Page intro (homepage, catégories)
   ========================================================================= */

.page-intro {
  max-width: 720px;
  margin: var(--sp-12) auto;
  padding-inline: var(--gutter);
  text-align: center;
}

.page-intro .kicker { display: block; margin-bottom: var(--sp-2); }

.page-intro p {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-80);
}

/* =========================================================================
   404
   ========================================================================= */

.error-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-16) var(--gutter);
}

.error-404 h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--cinabre);
}

/* =========================================================================
   Print friendly
   ========================================================================= */

@media print {
  .site-header,
  .site-footer,
  .article-toc,
  .menu-toggle,
  .related-section { display: none !important; }
  body { background: white; color: black; }
}
