@charset "UTF-8";
/* AGHL, revue de médecine de proximité.
   Typographies : Newsreader (titres et lecture, 400 et 600), Libre Franklin (interface, 500 et 700).
   Palette : papier #F6F5F1, encre #1C2321, pétrole #1E4E54, garance #A6293A.
   Grille : téléphone d'abord, puis 720, 992 et 1100 px. */

:root {
  --papier: #F6F5F1;
  --blanc: #FFFFFF;
  --encre: #1C2321;
  --encre-douce: #4A524F;
  --filet: #CDD0C8;
  --petrole: #1E4E54;
  --garance: #A6293A;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --largeur: 1200px;
  --gouttiere: 16px;
  --texte: 700px;
  --marge: 240px;
  --ecart-marge: 64px;
}

@media (min-width: 720px) {
  :root { --gouttiere: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--encre);
}

p, figure, blockquote, ul, ol, dl { margin: 0; }

a { color: var(--petrole); }

:focus-visible {
  outline: 2px solid var(--garance);
  outline-offset: 2px;
}

::selection {
  background: var(--garance);
  color: var(--blanc);
}

.cadre {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: absolute;
  left: 8px;
  top: -120px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--encre);
  color: var(--blanc);
  font: 700 0.875rem/1.2 var(--sans);
  text-decoration: none;
}

.evitement:focus { top: 8px; }

/* Surtitre : capitales espacées en garance, précédées d'un trait. */
.surtitre {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 0.75rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--garance);
}

.surtitre::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: currentColor;
}

/* Titre de section : étiquette en capitales sur un filet épais. */
.filet-titre {
  padding-top: 10px;
  border-top: 4px solid var(--encre);
  font: 700 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre);
}

.lien-suite,
.une__saut {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  font: 700 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petrole);
  text-decoration: none;
}

.lien-suite::after,
.une__saut::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.une__saut::after { transform: translateY(-2px) rotate(135deg); }

.lien-suite:hover,
.une__saut:hover { color: var(--garance); }

.lien-suite { margin-top: 24px; }

/* ---------- Tétière (en-tête) ---------- */
.tetiere {
  position: relative;
  background: var(--papier);
  border-top: 4px solid var(--garance);
  border-bottom: 4px double var(--encre);
}

.tetiere__bascule {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.tetiere__haut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
}

.tetiere__logo {
  flex: none;
  display: block;
  line-height: 0;
}

.tetiere__logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: none;
}

.tetiere__logo:has(img[src=""]) { display: none; }

.tetiere__titre {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid var(--filet);
}

.tetiere__logo:has(img[src=""]) + .tetiere__titre {
  padding-left: 0;
  border-left: 0;
}

.tetiere__nom {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.15;
  color: var(--encre);
}

.tetiere__devise { display: none; }

.tetiere__bouton {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--encre);
  color: var(--encre);
  cursor: pointer;
}

.tetiere__barres,
.tetiere__barres::before,
.tetiere__barres::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.tetiere__barres { position: relative; }

.tetiere__barres::before,
.tetiere__barres::after {
  content: "";
  position: absolute;
  left: 0;
}

.tetiere__barres::before { top: -6px; }
.tetiere__barres::after { top: 6px; }

.tetiere__bascule:checked ~ .cadre .tetiere__barres { background: transparent; }
.tetiere__bascule:checked ~ .cadre .tetiere__barres::before { top: 0; transform: rotate(45deg); }
.tetiere__bascule:checked ~ .cadre .tetiere__barres::after { top: 0; transform: rotate(-45deg); }

.tetiere__bascule:focus-visible ~ .cadre .tetiere__bouton {
  outline: 2px solid var(--garance);
  outline-offset: 2px;
}

.tetiere__nav {
  display: none;
  border-top: 1px solid var(--encre);
}

.tetiere__bascule:checked ~ .tetiere__nav { display: block; }

.rubriquage {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 4px 0 10px;
  list-style: none;
}

.rubriquage__item + .rubriquage__item { border-top: 1px solid var(--filet); }

.rubriquage__lien {
  display: block;
  padding: 14px 0;
  font: 700 0.875rem/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre);
  text-decoration: none;
}

.rubriquage__lien:hover,
.est-actif > .rubriquage__lien { color: var(--garance); }

@media (min-width: 720px) {
  .tetiere__haut { gap: 18px; padding-block: 18px; }
  .tetiere__logo-img { height: 56px; }
  .tetiere__titre { padding-left: 18px; }
  .tetiere__nom { font-size: 1.5rem; }
  .tetiere__devise {
    display: block;
    margin-top: 2px;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--encre-douce);
  }
  /* Sur l'accueil, la devise est déjà sous le grand titre. */
  .revue:has(.une) .tetiere__devise { display: none; }
}

@media (min-width: 992px) {
  .tetiere { border-bottom: 1px solid var(--encre); }
  .tetiere__bascule,
  .tetiere__bouton { display: none; }
  .tetiere__logo-img { height: 64px; }
  .tetiere__nom { font-size: 1.875rem; }
  .tetiere__nav {
    display: block;
    border-top: 4px double var(--encre);
  }
  .rubriquage {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0;
  }
  .rubriquage__item + .rubriquage__item { border-top: 0; }
  .rubriquage__lien {
    padding: 13px 18px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .rubriquage__item:first-child .rubriquage__lien { padding-left: 0; }
  .est-actif > .rubriquage__lien { box-shadow: inset 0 -3px 0 var(--garance); }
}

/* ---------- Fil d'Ariane ---------- */
.ariane {
  margin-bottom: 18px;
  font: 500 0.8125rem/1.4 var(--sans);
  color: var(--encre-douce);
}

.ariane ol,
.ariane ul {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ariane li { min-width: 0; }

.ariane li[aria-hidden="true"] { color: var(--garance); }

.ariane a {
  color: var(--petrole);
  text-decoration: none;
}

.ariane a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ariane [aria-current="page"] {
  flex: 1 1 10rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--encre-douce);
}

/* ---------- Carte d'article (post-loop) : base commune ---------- */
.notice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.notice__visuel {
  display: block;
  line-height: 0;
}

.notice__visuel:empty { display: none; }

.notice__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.notice__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-bottom: 6px;
  font: 500 0.8125rem/1.35 var(--sans);
  color: var(--encre-douce);
}

.notice__rubrique {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--garance);
}

.notice__rubrique:empty { display: none; }

.notice__titre {
  font-size: 1.25rem;
  line-height: 1.25;
  text-wrap: pretty;
}

.notice__lien {
  color: var(--encre);
  text-decoration: none;
}

/* Toute la carte est cliquable, sans lien imbriqué. */
.notice__lien::after {
  content: "";
  position: absolute;
  inset: 0;
}

.notice:hover .notice__lien {
  color: var(--garance);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.notice__lien:focus-visible { outline: none; }

.notice:focus-within {
  outline: 2px solid var(--garance);
  outline-offset: 4px;
}

.notice__extrait {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--encre-douce);
}

.notice__duree {
  margin-top: 10px;
  font: 500 0.8125rem/1.3 var(--sans);
  color: var(--encre-douce);
}

/* ---------- Accueil : la une ---------- */
.une {
  padding-block: 24px 32px;
  border-bottom: 1px solid var(--encre);
}

.une__grille {
  display: grid;
  gap: 24px;
}

.une__titre {
  margin-top: 14px;
  font-size: clamp(2.125rem, 1.4rem + 2.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.une__devise {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--garance);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.4;
  color: var(--encre-douce);
}

.une__saut { margin-top: 22px; }

.une__visuel { line-height: 0; }

.une__visuel:empty { display: none; }

.une__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.accueil { padding-block: 32px 8px; }

.accueil__edito { min-width: 0; }

.accueil__fil { margin-top: 48px; }

/* Colonne des derniers articles : un article de tête, puis des brèves serrées. */
.fil .notice {
  padding-block: 16px;
  border-bottom: 1px solid var(--filet);
}

.fil .notice__titre {
  font-size: 1.125rem;
  line-height: 1.28;
}

.fil .notice__visuel,
.fil .notice__extrait,
.fil .notice__duree { display: none; }

.fil .notice:first-child { padding-top: 14px; }

.fil .notice:first-child .notice__visuel {
  display: block;
  margin-bottom: 12px;
}

.fil .notice:first-child .notice__visuel:empty { display: none; }

.fil .notice:first-child .notice__titre {
  font-size: 1.5rem;
  line-height: 1.18;
}

.fil .notice:first-child .notice__extrait,
.fil .notice:first-child .notice__duree { display: block; }

.fil .notice:first-child .notice__extrait { display: -webkit-box; }

@media (min-width: 992px) {
  .une { padding-block: 40px 48px; }
  .une__grille {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: end;
  }
  .une__grille:has(.une__visuel:empty) { grid-template-columns: minmax(0, 1fr); }
  .une__grille:has(.une__visuel:empty) .une__texte { max-width: 56rem; }
  .une__img { aspect-ratio: 3 / 2; }
  .une__saut { display: none; }

  .accueil {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: 56px;
    align-items: start;
    padding-block: 48px 16px;
  }
  .accueil__edito { max-width: var(--texte); }
  .accueil__fil {
    margin-top: 0;
    padding-left: 28px;
    border-left: 1px solid var(--encre);
  }
}

/* ---------- Corps de texte (articles, éditorial, pages) ---------- */
.corps {
  counter-reset: section;
  font-size: 1.125rem;
  line-height: 1.65;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.corps p,
.corps ul,
.corps ol,
.corps dl,
.corps table,
.corps figure,
.corps blockquote { margin: 0 0 1.15em; }

.corps > :last-child { margin-bottom: 0; }

.corps h2 {
  clear: both;
  margin: 2em 0 0.75em;
  padding-top: 14px;
  border-top: 1px solid var(--encre);
  font-size: 1.5rem;
  line-height: 1.2;
  text-wrap: balance;
  hyphens: manual;
  scroll-margin-top: 24px;
}

.corps > h2:first-child { margin-top: 0; }

/* Intertitres numérotés comme le sommaire. */
.corps > h2 { counter-increment: section; }

.corps > h2::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font: 700 0.8125rem/1 var(--sans);
  letter-spacing: 0.12em;
  color: var(--garance);
}

.corps h3 {
  clear: both;
  margin: 1.6em 0 0.6em;
  font: 700 1.0625rem/1.35 var(--sans);
  color: var(--petrole);
  hyphens: manual;
  scroll-margin-top: 24px;
}

.corps h4 {
  margin: 1.4em 0 0.5em;
  font: 700 1rem/1.35 var(--sans);
  color: var(--encre);
}

.corps a {
  color: var(--petrole);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.corps a:hover { color: var(--garance); }

.corps strong,
.corps b { font-weight: 600; }

.corps img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em 0;
}

.corps figure img { margin: 0; }

.corps figcaption {
  margin-top: 8px;
  font: 500 0.8125rem/1.4 var(--sans);
  color: var(--encre-douce);
}

.corps ul {
  padding-left: 1.3em;
  list-style: none;
}

.corps ul > li { position: relative; }

.corps ul > li::before {
  content: "";
  position: absolute;
  left: -1.05em;
  top: 0.62em;
  width: 0.4em;
  height: 0.4em;
  background: var(--garance);
}

.corps ul ul > li::before {
  background: transparent;
  border: 1px solid var(--garance);
}

.corps ol { padding-left: 1.6em; }

.corps ol > li::marker {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--garance);
}

.corps li + li { margin-top: 0.45em; }

.corps li > ul,
.corps li > ol,
.corps li > table { margin: 0.5em 0 0; }

.corps blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--garance);
  font-style: italic;
  font-size: 1.1875em;
  line-height: 1.45;
}

.corps blockquote p:last-child { margin-bottom: 0; }

.corps hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--filet);
}

/* Tableau : il défile dans son cadre, la page ne s'élargit jamais. */
.corps table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  font: 500 0.9375rem/1.45 var(--sans);
  hyphens: manual;
}

.corps th,
.corps td {
  min-width: 8.5rem;
  padding: 10px 14px 10px 0;
  border: 0;
  border-bottom: 1px solid var(--filet);
  text-align: left;
  vertical-align: top;
}

.corps th {
  font-weight: 700;
  border-bottom: 2px solid var(--encre);
}

.corps dt { font: 700 1rem/1.4 var(--sans); }
.corps dd { margin: 0 0 0.8em; }

/* Lettrine en tête d'article et d'éditorial. */
.corps--article > p:first-of-type::first-letter,
.corps--edito > p:first-of-type::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.3em;
  line-height: 0.82;
  color: var(--garance);
}

/* Pages fixes (mentions légales, présentation) : ni lettrine ni numéros. */
.corps--page > h2::before { content: none; }

@media (min-width: 720px) {
  .corps {
    font-size: 1.1875rem;
    hyphens: manual;
    -webkit-hyphens: manual;
  }
  .corps h2 { font-size: 1.75rem; }
  .corps h3 { font-size: 1.125rem; }
}

/* ---------- Page de rubrique ---------- */
.rubrique-tete { padding-block: 16px 32px; }

.rubrique-tete__grille {
  display: grid;
  gap: 18px;
}

.rubrique-tete__titre {
  margin-top: 10px;
  font-weight: 400;
  font-size: clamp(2.75rem, 1.5rem + 4.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.rubrique-tete__intro {
  max-width: 36em;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--encre-douce);
}

.rubrique-tete__intro:empty { display: none; }

.rubrique-tete__intro p + p { margin-top: 0.8em; }

.rubrique-tete__intro a { color: var(--petrole); }

.rubrique-corps { padding-bottom: 16px; }

/* Liste éditoriale : entrées sur filets fins, deux colonnes dès 720 px. */
.liste {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 48px;
}

.liste .notice {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "corps visuel";
  padding-block: 20px 24px;
  border-bottom: 1px solid var(--filet);
}

.liste .notice__corps { grid-area: corps; }

.liste .notice__visuel {
  grid-area: visuel;
  width: 96px;
  margin-left: 16px;
}

.liste .notice__visuel:empty { display: none; }

.liste .notice__img { aspect-ratio: 1 / 1; }

.liste .notice__rubrique { display: none; }

/* Article de tête de la rubrique. */
.liste--une .notice:first-child {
  padding-block: 22px 32px;
  border-bottom: 1px solid var(--encre);
}

.liste--une .notice:first-child .notice__titre {
  max-width: 22em;
  font-size: clamp(1.625rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.12;
  text-wrap: balance;
}

.liste--une .notice:first-child .notice__extrait {
  max-width: 40em;
  font-size: 1.125rem;
  -webkit-line-clamp: 4;
}

@media (min-width: 720px) {
  .liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .liste .notice__visuel {
    width: 132px;
    margin-left: 20px;
  }
  .liste .notice__img { aspect-ratio: 4 / 3; }
  .liste--une .notice:first-child { grid-column: 1 / -1; }
  .liste--une .notice:first-child:has(.notice__visuel:not(:empty)) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 40px;
  }
  .liste--une .notice:first-child .notice__visuel {
    width: auto;
    margin-left: 0;
  }
  .liste--une .notice:first-child .notice__img { aspect-ratio: 3 / 2; }
}

@media (min-width: 992px) {
  .rubrique-tete { padding-block: 20px 40px; }
  .rubrique-tete__grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
  }
  /* Sans texte d'introduction, le titre prend toute la largeur. */
  .rubrique-tete__grille:has(.rubrique-tete__intro:empty) { grid-template-columns: minmax(0, 1fr); }
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  font: 700 0.875rem/1 var(--sans);
}

.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--filet);
  color: var(--encre);
  text-decoration: none;
}

a.pagination__num:hover {
  border-color: var(--encre);
  color: var(--garance);
}

.pagination__num.est-courant {
  border-color: var(--encre);
  background: var(--encre);
  color: var(--papier);
}

.pagination__fleche {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Page d'article ---------- */
.article__tete { padding-block: 16px 8px; }

.article__grille,
.article__corps-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--texte);
  margin-inline: auto;
}

.article__grille > .ariane { grid-column: 1 / -1; }

.badge {
  display: inline-block;
  padding: 6px 8px 5px;
  background: var(--garance);
  color: var(--blanc);
  font: 700 0.75rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.badge:empty { display: none; }

.badge:hover { background: var(--encre); }

.article__titre {
  margin-top: 14px;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.article__chapo {
  margin-top: 16px;
  font-size: 1.3125rem;
  line-height: 1.45;
  color: var(--encre-douce);
}

.article__chapo:empty { display: none; }

.article__chapo p + p { margin-top: 0.6em; }

.article__signature {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 22px;
  padding-block: 12px;
  border-top: 1px solid var(--encre);
  border-bottom: 1px solid var(--filet);
  font: 500 0.875rem/1.4 var(--sans);
  color: var(--encre-douce);
}

.signature__ligne + .signature__ligne::before {
  content: "·";
  margin: 0 10px;
  color: var(--garance);
}

.signature__nom {
  font-weight: 700;
  color: var(--encre);
}

.article__visuel {
  margin-top: 24px;
  line-height: 0;
}

.article__visuel:empty { display: none; }

.article__img {
  display: block;
  width: 100%;
  height: auto;
}

.article__corps-grille {
  gap: 28px;
  padding-top: 28px;
}

.article__texte { min-width: 0; }

/* Sommaire numéroté : statique sur téléphone, dans la marge sur grand écran. */
.sommaire {
  padding-top: 12px;
  border-top: 4px solid var(--encre);
  border-bottom: 1px solid var(--filet);
  padding-bottom: 8px;
}

.sommaire:not(:has(li)) { display: none; }

.sommaire__titre {
  margin-bottom: 4px;
  font: 700 0.75rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre);
}

.sommaire ul,
.sommaire ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sommaire > ul,
.sommaire > ol,
.sommaire nav > ul,
.sommaire nav > ol { counter-reset: sommaire; }

.sommaire > ul > li,
.sommaire > ol > li,
.sommaire nav > ul > li,
.sommaire nav > ol > li { counter-increment: sommaire; }

.sommaire nav > ul > li + li,
.sommaire nav > ol > li + li,
.sommaire > ul > li + li,
.sommaire > ol > li + li { border-top: 1px solid var(--filet); }

.sommaire a {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr);
  padding: 8px 0;
  font: 500 0.875rem/1.35 var(--sans);
  color: var(--encre);
  text-decoration: none;
}

.sommaire > ul > li > a::before,
.sommaire > ol > li > a::before,
.sommaire nav > ul > li > a::before,
.sommaire nav > ol > li > a::before {
  content: counter(sommaire, decimal-leading-zero);
  font-weight: 700;
  color: var(--garance);
}

.sommaire a:hover { color: var(--garance); }

.sommaire li li a {
  grid-template-columns: minmax(0, 1fr);
  padding: 3px 0 3px 2.2em;
  font-size: 0.8125rem;
  color: var(--encre-douce);
}

.sommaire li ul,
.sommaire li ol { padding-bottom: 6px; }

/* Sur téléphone et tablette, seuls les intertitres principaux. */
@media (max-width: 1099px) {
  .sommaire li ul,
  .sommaire li ol { display: none; }
}

/* Historique des mises à jour */
.historique {
  margin-top: 40px;
  padding-top: 12px;
  border-top: 1px solid var(--encre);
  font: 500 0.8125rem/1.5 var(--sans);
  color: var(--encre-douce);
}

.historique__titre {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre);
}

.historique ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.historique li + li { margin-top: 4px; }

.historique .revision-note { color: var(--encre); }

/* Encadré de signature */
.signataire {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  background: var(--blanc);
  border-top: 4px solid var(--petrole);
}

.signataire__photo {
  flex: none;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
}

.signataire__photo:empty { display: none; }

.signataire__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signataire__texte { min-width: 0; }

.signataire__label {
  font: 700 0.75rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petrole);
}

.signataire__nom {
  margin-top: 4px;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
}

.signataire__bio {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--encre-douce);
}

.signataire__bio:empty { display: none; }

.signataire__bio p + p { margin-top: 0.6em; }

/* Articles liés */
.voisins { margin-top: 56px; }

.voisins__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 40px;
}

.voisins .notice {
  padding-block: 18px 24px;
  border-bottom: 1px solid var(--filet);
}

.voisins .notice__visuel { margin-bottom: 12px; }

.voisins .notice__visuel:empty { display: none; }

.voisins .notice__rubrique { display: none; }

@media (min-width: 720px) {
  .voisins__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .voisins__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Grille à marge : signature et sommaire à gauche, colonne de lecture à droite. */
@media (min-width: 1100px) {
  .article__tete { padding-block: 20px 8px; }
  .article__grille,
  .article__corps-grille {
    max-width: none;
    margin-inline: 0;
    grid-template-columns: var(--marge) minmax(0, var(--texte));
    column-gap: var(--ecart-marge);
  }
  .article__grille > .ariane { grid-row: 1; }
  .article__titraille {
    grid-column: 2;
    grid-row: 2;
  }
  .article__signature {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding-block: 0;
    border-top: 4px solid var(--encre);
    border-bottom: 0;
  }
  .signature__ligne {
    padding-block: 9px;
    border-bottom: 1px solid var(--filet);
  }
  .signature__ligne + .signature__ligne::before { content: none; }
  .signature__label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--encre-douce);
  }
  .article__visuel {
    grid-column: 2;
    grid-row: 3;
  }
  .article__corps-grille { padding-top: 36px; }
  .sommaire {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
  .article__texte {
    grid-column: 2;
    grid-row: 1;
  }
}

/* ---------- Pages fixes et page de la rédaction ---------- */
.fixe__tete { padding-block: 16px 24px; }

.fixe__colonne {
  max-width: var(--texte);
  margin-inline: auto;
}

.fixe__titre {
  margin-top: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--encre);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.profil__entete {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.profil__photo {
  flex: none;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 50%;
}

.profil__photo:empty { display: none; }

.profil__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profil__identite {
  flex: 1 1 auto;
  min-width: 0;
}

.profil__site {
  margin-top: 10px;
  font-style: italic;
  color: var(--encre-douce);
}

.profil .fixe__titre { padding-bottom: 0; border-bottom: 0; }

.profil__entete { padding-bottom: 18px; border-bottom: 1px solid var(--encre); }

.profil__publications { margin-top: 56px; }

@media (min-width: 720px) {
  .profil__photo { width: 120px; height: 120px; }
}

/* ---------- Colophon (pied de page) ---------- */
.colophon {
  margin-top: 64px;
  background: var(--petrole);
  color: var(--blanc);
  border-top: 4px solid var(--garance);
}

.colophon__grille {
  display: grid;
  gap: 32px;
  padding-block: 40px 32px;
}

.colophon__logo {
  display: inline-block;
  line-height: 0;
}

/* Version blanche du logo, lisible sur le fond pétrole. */
.colophon__logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: none;
  filter: brightness(0) invert(1);
}

.colophon__logo:has(img[src=""]) { display: none; }

.colophon__nom {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
}

.colophon__devise {
  margin-top: 6px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
}

.colophon__titre {
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font: 700 0.75rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.colophon__liste {
  margin: 0;
  padding: 0;
  list-style: none;
}

.colophon__lien {
  display: inline-block;
  padding: 8px 0;
  font: 500 0.9375rem/1.3 var(--sans);
  color: var(--blanc);
  text-decoration: none;
}

.colophon__lien:hover { text-decoration: underline; text-underline-offset: 3px; }

.colophon__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-block: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font: 500 0.875rem/1.4 var(--sans);
  color: rgba(255, 255, 255, 0.82);
}

.colophon__legal {
  color: var(--blanc);
  text-underline-offset: 3px;
}

.colophon a:focus-visible { outline-color: var(--blanc); }

/* Article : le fil s'arrête à la rubrique, le titre est juste en dessous (Yann, 04/11/2026). */
.article__tete .ariane li[aria-current="page"],
.article__tete .ariane li:has(+ li[aria-current="page"]) { display: none; }

.sommaire__titre { display: block; }
.sommaire__bascule { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

/* Téléphone et tablette : sommaire en tête d'article, barre repliée fixée en haut de l'écran, dépliée au toucher (Yann, 04/11/2026). */
@media (max-width: 1099px) {
  .article__corps-grille { display: block; }
  .sommaire { position: sticky; top: 0; z-index: 40; margin-bottom: 24px; padding: 0; background: var(--papier, #f6f5f1); }
  .sommaire__titre { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; padding: 8px 0; cursor: pointer; }
  .sommaire__titre::after { content: "\25BE"; font-size: 1rem; }
  .sommaire__liste { display: none; max-height: 60vh; overflow-y: auto; padding-bottom: 10px; }
  .sommaire__bascule:checked ~ .sommaire__liste { display: block; }
  .sommaire__bascule:checked ~ .sommaire__titre::after { transform: rotate(180deg); }
  .sommaire__bascule:focus-visible ~ .sommaire__titre { outline: 2px solid var(--encre); outline-offset: 2px; }
  .corps--article :is(h2, h3) { scroll-margin-top: 64px; }
}

@media (min-width: 720px) {
  .colophon__grille {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px;
    padding-block: 56px 40px;
  }
  .colophon__logo-img { height: 60px; }
}
