@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/spectral-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/spectral-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/spectral-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/spectral-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans Variable'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/public-sans-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'Public Sans Variable'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('/fonts/public-sans-latin-wght-italic.woff2') format('woff2-variations'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  --papier: #f8f4ee;
  --papier-2: #efe7dc;
  --papier-3: #e6dbcc;
  --encre: #1f1416;
  --texte: #3a2d2f;
  --doux: #6e5f60;
  --filet: #e0d4c4;
  --bordeaux: #6d1f2f;
  --bordeaux-clair: #f3e4e4;
  --laiton: #b38a4b;
  --laiton-encre: #7a5a1e;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans Variable', 'Public Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --page: 72rem;
  --colonne: 42rem;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --entete: 4rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete) + 1.5rem);
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

::selection {
  background: color-mix(in srgb, var(--laiton) 30%, transparent);
  color: var(--encre);
}

a {
  color: var(--bordeaux);
  text-decoration-color: color-mix(in srgb, var(--bordeaux) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color 0.15s,
    text-decoration-color 0.15s;
}
a:hover {
  text-decoration-color: var(--bordeaux);
}
:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  color: var(--encre);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}
p,
li {
  text-wrap: pretty;
}

.page {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.repere {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--laiton-encre);
  font-variant-numeric: lining-nums tabular-nums;
}
.repere a {
  color: inherit;
  text-decoration: none;
}
.repere a:hover {
  text-decoration: underline;
}

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--doux);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--filet);
}
.entete .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--entete);
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
}
.marque svg {
  width: 1.4rem;
  height: 1.4rem;
}
.nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.925rem;
}
.nav a {
  color: var(--texte);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--encre);
  border-bottom-color: var(--filet);
}
.nav a[aria-current='page'] {
  color: var(--encre);
  border-bottom-color: var(--laiton);
}

/* ---------- Boutons et liens d'action ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  margin-top: 2.25rem;
}
.bouton {
  display: inline-block;
  background: var(--bordeaux);
  color: #fff;
  font-family: inherit;
  font-weight: 550;
  font-size: 0.975rem;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}
.bouton:hover {
  background: var(--encre);
}
.lien-fleche {
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid var(--laiton);
  padding-bottom: 0.1rem;
  white-space: nowrap;
}
.lien-fleche::after {
  content: '\2009→';
  display: inline-block;
  transition: transform 0.15s;
}
.lien-fleche:hover::after {
  transform: translateX(3px);
}

/* ---------- Accueil ---------- */
.ouverture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 3rem 5rem;
  align-items: end;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--filet);
}
.ouverture h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-top: 1.4rem;
}
.ouverture h1 em {
  color: var(--bordeaux);
}
.ouverture .chapeau {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

.fiche {
  margin: 0;
  display: grid;
  gap: 1.35rem;
}
.fiche div {
  border-left: 2px solid var(--laiton);
  padding-left: 1rem;
}
.fiche dt {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--encre);
  font-variant-numeric: lining-nums;
}
.fiche dd {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--doux);
}

.bloc {
  padding-block: clamp(3.5rem, 8vw, 6rem) 0;
}
.bloc + .appel {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.bloc-tete {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  align-items: baseline;
  margin-bottom: 1.75rem;
}
.bloc-tete h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}

.activites {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--encre);
}
.activites a {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) 2rem;
  gap: 0.25rem 2rem;
  align-items: baseline;
  padding-block: 1.9rem;
  border-bottom: 1px solid var(--filet);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}
.activites a:hover {
  background: linear-gradient(90deg, transparent, var(--papier-2) 30%, var(--papier-2) 70%, transparent);
}
.activites h3 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  transition: color 0.15s;
}
.activites p {
  margin: 0.45rem 0 0;
  max-width: 40rem;
  color: var(--doux);
}
.activites .mots {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--laiton-encre);
}
.activites .fleche {
  justify-self: end;
  color: var(--bordeaux);
  font-size: 1.35rem;
  transition: transform 0.15s;
}
.activites a:hover h3 {
  color: var(--bordeaux);
}
.activites a:hover .fleche {
  transform: translateX(4px);
}

/* ---------- Article à la une ---------- */
.une {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding-block: 2rem 2.25rem;
  border-top: 1px solid var(--encre);
  border-bottom: 1px solid var(--filet);
}
.une h3 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.une h3 a {
  color: var(--encre);
  text-decoration: none;
}
.une h3 a:hover {
  color: var(--bordeaux);
}
.une p {
  margin: 0.9rem 0 0.9rem;
  max-width: 40rem;
  font-size: 1.075rem;
  color: var(--doux);
}

/* ---------- Listes d'articles ---------- */
.articles {
  list-style: none;
  margin: 0;
  padding: 0;
}
.articles li {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--filet);
}
.articles time {
  padding-top: 0.4rem;
}
.articles h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}
.articles h3 a,
.une h3 a {
  color: var(--encre);
  text-decoration: none;
  background-image: linear-gradient(var(--laiton), var(--laiton));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition:
    background-size 0.25s,
    color 0.15s;
}
.articles h3 a:hover,
.une h3 a:hover {
  color: var(--bordeaux);
  background-size: 100% 1px;
}
.articles p {
  margin: 0.4rem 0 0.5rem;
  color: var(--doux);
  font-size: 0.975rem;
  max-width: 44rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta span + span::before {
  content: ' · ';
}

.annee {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0 2rem;
  border-top: 1px solid var(--encre);
}
.annee + .annee {
  margin-top: 3rem;
}
.annee h2 {
  position: sticky;
  top: calc(var(--entete) + 1rem);
  align-self: start;
  padding-top: 1.1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--laiton);
  font-variant-numeric: lining-nums;
}
.annee .articles li {
  grid-template-columns: 7.5rem minmax(0, 1fr);
}
.annee[hidden] {
  display: none;
}

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
}
.filtres button {
  font: inherit;
  font-size: 0.875rem;
  color: var(--texte);
  background: transparent;
  border: 1px solid var(--filet);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.filtres button:hover {
  border-color: var(--doux);
}
.filtres button[aria-pressed='true'] {
  background: var(--encre);
  border-color: var(--encre);
  color: var(--papier);
}
.filtres .nb {
  margin-left: 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  opacity: 0.65;
}

/* ---------- Bandeau de contact ---------- */
.appel {
  background: var(--bordeaux);
  color: #f0dfe1;
}
.appel .page {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.appel h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  max-width: 20ch;
}
.appel p {
  margin: 0.8rem 0 0;
  font-size: 1.1rem;
  max-width: 34rem;
}
.appel .courriel {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  text-decoration-color: var(--laiton);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.appel .courriel:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Pages de lecture ---------- */
.tete-page {
  padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--filet);
}
.tete-page h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-top: 1rem;
}
.tete-page .chapeau {
  max-width: var(--colonne);
  margin: 1.35rem 0 0;
  font-size: 1.175rem;
  color: var(--doux);
}
.tete-page .meta {
  margin-top: 1.5rem;
}

.lecture {
  display: grid;
  grid-template-columns: minmax(0, var(--colonne)) 15rem;
  justify-content: space-between;
  gap: 4rem;
}

.prose {
  padding-block: clamp(2rem, 5vw, 3.25rem) clamp(3rem, 7vw, 5rem);
  font-size: 1.075rem;
}
.prose > * {
  max-width: var(--colonne);
  margin-block: 0 1.2rem;
}
.prose > p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.6em;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  color: var(--bordeaux);
}
.prose h2 {
  font-size: 1.8rem;
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet);
}
.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.prose h3 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}
.prose h4 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 650;
  margin-top: 1.75rem;
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
}
.prose li {
  margin-block: 0.45rem;
}
.prose li::marker {
  color: var(--laiton-encre);
}
.prose strong {
  color: var(--encre);
  font-weight: 650;
}
.prose blockquote {
  margin-inline: 0;
  padding: 0.25rem 0 0.25rem 1.4rem;
  border-left: 2px solid var(--laiton);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--encre);
}
.prose blockquote p {
  margin: 0;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--papier-2);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.prose table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
}
.prose th {
  text-align: left;
  font-weight: 650;
  color: var(--encre);
  border-bottom: 1px solid var(--encre);
}
.prose th,
.prose td {
  padding: 0.65rem 1.1rem 0.65rem 0;
  vertical-align: top;
  min-width: 9rem;
}
.prose td {
  border-bottom: 1px solid var(--filet);
}

/* Sommaire */
.sommaire {
  position: sticky;
  top: calc(var(--entete) + 2rem);
  align-self: start;
  margin-top: clamp(2rem, 5vw, 3.25rem);
  max-height: calc(100vh - var(--entete) - 4rem);
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.4;
}
.sommaire ol {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  border-left: 1px solid var(--filet);
}
.sommaire a {
  display: block;
  padding: 0.4rem 0 0.4rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--doux);
  text-decoration: none;
}
.sommaire a:hover {
  color: var(--encre);
}
.sommaire a.actif {
  color: var(--encre);
  border-left-color: var(--laiton);
}
.sommaire-court {
  display: none;
  margin-top: 1.5rem;
  border-block: 1px solid var(--filet);
  font-size: 0.95rem;
}
.sommaire-court summary {
  cursor: pointer;
  padding-block: 0.8rem;
  font-weight: 550;
  color: var(--encre);
}
.sommaire-court ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}
.sommaire-court li {
  margin-block: 0.35rem;
}

.suite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-block: 2rem 4rem;
  border-top: 1px solid var(--encre);
}
.suite a {
  display: block;
  color: var(--encre);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
}
.suite a:hover {
  color: var(--bordeaux);
}
.suite .repere {
  display: block;
  margin-bottom: 0.5rem;
}
.suite .apres {
  text-align: right;
}

/* ---------- CV ---------- */
.cv > * {
  max-width: 56rem;
}
.cv h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.6rem;
  font-size: 1.35rem;
  padding-left: 13rem;
  position: relative;
}
.cv h3 .quand {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 11rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--laiton-encre);
}
.cv h3 .ou {
  font-family: var(--sans);
  font-size: 0.975rem;
  color: var(--doux);
  flex-basis: 100%;
}
.cv h3 + ul,
.cv h3 + p {
  margin-left: 13rem;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  padding-block: 2.5rem 6rem;
}
.contact .courriel {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.2;
  word-break: break-word;
}
.contact ul {
  margin: 0;
  padding-left: 1.2rem;
}
.contact li {
  margin-block: 0.4rem;
}
.contact li::marker {
  color: var(--laiton-encre);
}

/* ---------- Pied ---------- */
.pied {
  background: var(--encre);
  color: #cdbfc0;
  font-size: 0.925rem;
}
.pied .page {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  padding-block: 3.5rem 2.5rem;
}
.pied .nom {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.pied p {
  margin: 0.5rem 0 0;
  max-width: 22rem;
}
.pied .repere {
  color: var(--laiton);
  margin-bottom: 0.75rem;
}
.pied ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pied li {
  margin-block: 0.3rem;
}
.pied a {
  color: #efe6e6;
  text-decoration: none;
}
.pied a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--laiton);
}
.pied .bas {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid #3d2b2e;
  font-size: 0.8rem;
  color: #a09092;
}

/* ---------- Écrans moyens ---------- */
@media (max-width: 64rem) {
  .lecture {
    grid-template-columns: minmax(0, 1fr);
  }
  .sommaire {
    display: none;
  }
  .sommaire-court {
    display: block;
  }
}

@media (max-width: 52rem) {
  .ouverture {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .fiche {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bloc-tete,
  .une,
  .articles li,
  .annee,
  .annee .articles li {
    grid-template-columns: minmax(0, 1fr);
  }
  .bloc-tete > :first-child:empty {
    display: none;
  }
  .activites a {
    grid-template-columns: minmax(0, 1fr) 1.5rem;
  }
  .activites .num {
    grid-column: 1 / -1;
  }
  .articles time {
    padding-top: 0;
  }
  .annee h2 {
    position: static;
    padding-top: 1rem;
  }
  .contact,
  .pied .page {
    grid-template-columns: minmax(0, 1fr);
  }
  .cv h3 {
    padding-left: 0;
  }
  .cv h3 .quand {
    position: static;
    width: 100%;
    order: -1;
  }
  .cv h3 + ul,
  .cv h3 + p {
    margin-left: 0;
  }
}

/* ---------- Téléphone : le menu défile sur une ligne ---------- */
@media (max-width: 44rem) {
  :root {
    --entete: 6.25rem;
  }
  .entete .page {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: 0;
  }
  .marque {
    padding: 0.85rem var(--gouttiere) 0.2rem;
  }
  .nav {
    gap: 1.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 var(--gouttiere) 0.15rem;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    padding-block: 0.6rem;
  }
  .suite {
    grid-template-columns: 1fr;
  }
  .suite .apres {
    text-align: left;
  }
  .prose > p:first-child::first-letter {
    font-size: 3em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

@media print {
  .entete,
  .pied,
  .actions,
  .appel,
  .sommaire,
  .sommaire-court,
  .suite {
    display: none;
  }
  body {
    background: #fff;
    font-size: 10.5pt;
  }
  .tete-page {
    padding-block: 0 1rem;
  }
  .lecture {
    display: block;
  }
  .prose {
    padding-block: 1rem 0;
    font-size: inherit;
  }
  .prose h2 {
    margin-top: 1.5rem;
    padding-top: 0.75rem;
  }
  .prose h3 {
    margin-top: 1rem;
    break-after: avoid;
  }
  .prose > p:first-child::first-letter {
    float: none;
    font-size: inherit;
    color: inherit;
    padding: 0;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}

/* ---------- Activités en vedette ---------- */
.fiche .fort {
  border-left-color: var(--bordeaux);
}
.fiche .fort dt {
  color: var(--bordeaux);
}
.vedettes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.vedette {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 21rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--papier-2);
  border-top: 3px solid var(--laiton);
  color: var(--texte);
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
}
.vedette:hover {
  background: var(--papier-3);
  transform: translateY(-2px);
}
.vedette .num {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--laiton-encre);
}
.vedette .accroche {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--laiton-encre);
}
.vedette h3 {
  margin-top: 0.35rem;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.vedette .resume {
  margin: 1rem 0 0;
  max-width: 30rem;
}
.vedette .mots {
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--laiton-encre);
}
.vedette .lien-fleche {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.75rem;
  border-bottom: 0;
  color: var(--bordeaux);
}
.vedette .lien-fleche::after {
  content: '\2009→';
}
.vedette-sombre {
  background: var(--bordeaux);
  color: #eedcdf;
}
.vedette-sombre:hover {
  background: #5a1826;
}
.vedette-sombre h3 {
  color: #fff;
}
.vedette-sombre .accroche,
.vedette-sombre .mots,
.vedette-sombre .num {
  color: #e3c48c;
}
.vedette-sombre .lien-fleche {
  color: #fff;
}

/* ---------- Rubriques d'inscription ---------- */
.rubriques {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rubriques li {
  margin: 0;
  padding: 1.25rem 1.25rem 1.4rem;
  background: var(--papier-2);
  border-top: 3px solid var(--bordeaux);
}
.rubriques li::marker {
  content: none;
}
.rubriques .code {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--laiton-encre);
}
.rubriques .intitule {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--encre);
}
.prose > .rubriques {
  max-width: none;
}
.bandeau-date {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--bordeaux);
  background: var(--bordeaux-clair);
  max-width: var(--colonne);
}
.bandeau-date strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--bordeaux);
}

@media (max-width: 52rem) {
  .vedettes,
  .rubriques {
    grid-template-columns: minmax(0, 1fr);
  }
  .vedette {
    min-height: 0;
  }
}

/* =====================================================================
   Finitions : trame de registre, filigranes, frises, révélation
   ===================================================================== */
body {
  overflow-x: clip;
}

/* Trame de registre : lignes fines qui s'effacent vers la gauche */
.ouverture,
.tete-page {
  position: relative;
  isolation: isolate;
}
.ouverture::before,
.tete-page::before {
  content: '';
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in srgb, var(--filet) 70%, transparent) 31px 32px),
    linear-gradient(to right, var(--papier), color-mix(in srgb, var(--papier-2) 60%, var(--papier)));
  mask-image: linear-gradient(to right, transparent 0%, #000 55%);
  pointer-events: none;
}
.tete-riche {
  overflow: hidden;
}
.tete-riche .page {
  position: relative;
}
.filigrane {
  position: absolute;
  right: var(--gouttiere);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(9rem, 22vw, 17rem);
  line-height: 1;
  color: color-mix(in srgb, var(--bordeaux) 9%, transparent);
  font-variant-numeric: lining-nums;
  pointer-events: none;
  user-select: none;
}

/* Barre de progression de lecture */
.progression {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--lu, 0));
  background: var(--laiton);
}

/* Titres de section des pages de lecture : un trait laiton */
.prose h2 {
  position: relative;
}
.prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 3rem;
  height: 2px;
  background: var(--laiton);
}
.prose > h2:first-child::before {
  display: none;
}

/* Exergue */
.prose .exergue {
  margin-block: 2.25rem;
  padding: 1.75rem 0 1.75rem 2rem;
  border-left: 3px solid var(--bordeaux);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--bordeaux);
}

/* Rubriques détaillées */
.rubriques .detail {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--doux);
}
.prose > .rubriques,
.prose > .juridictions,
.prose > .atouts,
.prose > .etapes {
  max-width: none;
}

/* Juridictions */
.juridictions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-block: 1.75rem;
  background: var(--filet);
  border: 1px solid var(--filet);
}
.juridictions > div {
  padding: 1.25rem 1.35rem;
  background: var(--papier);
}
.juridictions .code {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bordeaux);
}
.juridictions p {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Étapes numérotées sur une frise */
.etapes {
  list-style: none;
  counter-reset: etape;
  margin-block: 1.75rem;
  padding: 0;
  position: relative;
}
.etapes::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 1px;
  background: linear-gradient(var(--laiton), var(--filet));
}
.prose .etapes li {
  counter-increment: etape;
  position: relative;
  margin: 0;
  padding: 0 0 1.75rem 3.75rem;
}
.prose .etapes li::marker {
  content: none;
}
.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--papier);
  border: 1px solid var(--laiton);
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--bordeaux);
}
.etapes .titre {
  display: block;
  padding-top: 0.3rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--encre);
}
.etapes p {
  margin: 0.35rem 0 0;
}

/* Atouts */
.atouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-block: 1.75rem;
}
.atouts > div {
  padding-top: 1rem;
  border-top: 1px solid var(--encre);
}
.atouts .chiffre {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--bordeaux);
}
.atouts p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--doux);
}

/* Questions fréquentes */
.faq {
  border-bottom: 1px solid var(--filet);
}
.prose > .faq {
  margin: 0;
}
.prose > h2 + .faq {
  border-top: 1px solid var(--encre);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--encre);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--bordeaux);
  transition: transform 0.2s;
}
.faq[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  margin: 0 0 1.25rem;
}

/* CV : frise verticale le long des postes */
.cv h3::before {
  content: '';
  position: absolute;
  left: 11.65rem;
  top: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--papier);
  border: 2px solid var(--laiton);
}
.cv h3 + ul {
  position: relative;
}
.cv h3 + ul::before {
  content: '';
  position: absolute;
  left: -1.05rem;
  top: -0.8rem;
  bottom: -1rem;
  width: 1px;
  background: var(--filet);
}

/* Pied : symbole en filigrane */
.pied {
  position: relative;
  overflow: hidden;
}
.filigrane-pied {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 20rem;
  opacity: 0.035;
  pointer-events: none;
}
.filigrane-pied svg {
  width: 100%;
  height: auto;
}
.filigrane-pied path {
  fill: #fff;
}
.pied .page {
  position: relative;
}

/* Bandeau de contact : trame de registre claire */
.appel {
  position: relative;
  overflow: hidden;
}
.appel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(255, 255, 255, 0.05) 31px 32px);
  pointer-events: none;
}
.appel .page {
  position: relative;
}

/* Blog : ligne survolée */
.articles li {
  transition: background 0.2s;
}
.articles li:hover {
  background: linear-gradient(90deg, transparent, var(--papier-2) 25%, var(--papier-2) 75%, transparent);
}


@media (max-width: 52rem) {
  .juridictions,
  .atouts {
    grid-template-columns: minmax(0, 1fr);
  }
  .cv h3::before,
  .cv h3 + ul::before {
    display: none;
  }
  .filigrane {
    font-size: 8rem;
    top: auto;
    bottom: -1rem;
    transform: none;
  }
}


@media print {
  .progression,
  .filigrane,
  .filigrane-pied,
  .ouverture::before,
  .tete-page::before,
  .cv h3::before,
  .cv h3 + ul::before {
    display: none;
  }
}

/* =====================================================================
   Page Expertise : deux voies, domaines, formes de l'expertise privée
   ===================================================================== */
.prose > .deux-voies,
.prose > .domaines,
.prose > .formes {
  max-width: none;
}

.deux-voies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.voie {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem 1.6rem 1.4rem;
  background: var(--papier-2);
  border-top: 3px solid var(--laiton);
  color: var(--texte);
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
}
.voie:hover {
  background: var(--papier-3);
  transform: translateY(-2px);
}
.voie .quand {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--laiton-encre);
}
.voie .nom {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--encre);
}
.voie .qui {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bordeaux);
}
.voie .desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--doux);
}
.voie .lien {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 550;
  font-size: 0.925rem;
  color: var(--bordeaux);
}
.voie .lien::after {
  content: '\2009→';
}
.voie-privee {
  background: var(--bordeaux);
  border-top-color: var(--laiton);
  color: #eedcdf;
}
.voie-privee:hover {
  background: #5a1826;
}
.voie-privee .quand {
  color: #e3c48c;
}
.voie-privee .nom {
  color: #fff;
}
.voie-privee .qui {
  color: #f3dfc0;
}
.voie-privee .desc {
  color: #eedcdf;
}
.voie-privee .lien {
  color: #fff;
}

/* Domaines : une carte par rubrique */
.domaines {
  display: grid;
  gap: 1rem;
  margin-block: 1.75rem 0.75rem;
}
.domaine {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.5rem 1.6rem;
  background: var(--papier-2);
  border-left: 3px solid var(--bordeaux);
}
.domaine header {
  align-self: start;
}
.domaine .code {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--laiton-encre);
}
.prose .domaine h3 {
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}
.prose .domaine h3::before {
  display: none;
}
.domaine header p {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--bordeaux);
}
.prose .domaine ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.prose .domaine li {
  margin-block: 0.3rem;
}
.prose .note {
  font-size: 0.875rem;
  color: var(--doux);
}

/* Formes de l'expertise privée */
.formes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-block: 1.75rem 2rem;
  background: var(--filet);
  border: 1px solid var(--filet);
}
.formes > div {
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--papier);
}
.formes .code {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bordeaux);
}
.prose .formes h3 {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  line-height: 1.25;
}
.formes p {
  margin: 0.6rem 0 0;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--texte);
}

@media (max-width: 52rem) {
  .deux-voies,
  .formes,
  .domaine {
    grid-template-columns: minmax(0, 1fr);
  }
}
