/* ademas71.org : information sur le dépistage des cancers en Saône-et-Loire.
   Parti pris : sauge très pâle, vert bocage, miel en accent unique, encre.
   Titres en Fraunces (souple), texte en Atkinson Hyperlegible Next (conçue pour les lecteurs malvoyants).
   Polices servies depuis le site, sans appel à un tiers. Aucune image ni aucun script dans le thème. */

/* Polices */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-next-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-next-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-600-latin.woff2") format("woff2");
}

/* Réglages */
:root {
  --fond: #f2f7f3;
  --blanc: #ffffff;
  --encre: #1a2a22;
  --encre-douce: #45574d;
  --vert: #1f5a43;
  --vert-fonce: #163f30;
  --miel: #f0b429;
  --miel-pale: #fcefc9;
  --sauge: #dcebe1;
  --trait: #c5d8cb;
  --texte: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --rayon: 10px;
  --gouttiere: 16px;
}
@media (min-width: 600px) { :root { --gouttiere: 24px; } }
@media (min-width: 992px) { :root { --gouttiere: 32px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto }
img[src=""], img:not([src]) { display: none; }
video, iframe, svg { max-width: 100%; }
a { color: var(--vert); }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--titre);
  font-weight: 600;
  font-synthesis: style;
  line-height: 1.15;
  color: var(--vert-fonce);
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }

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

.evitement {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 50;
  padding: 12px 18px;
  background: var(--miel);
  color: var(--encre);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
}
.evitement:focus { top: 0; }

/* Surtitre : petite capitale précédée d'un trait miel */
.surtitre {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--vert);
}
.surtitre::before {
  content: "";
  flex: none;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--miel);
}

/* Titre de section : pastille miel puis titre */
.titre-section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
}
.titre-section::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--miel);
}

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.bouton--plein { background: var(--miel); color: var(--encre); }
.bouton--plein:hover { background: #e3a417; }
.bouton--trait { border: 2px solid var(--vert); color: var(--vert); }
.bouton--trait:hover { background: var(--vert); color: var(--blanc); }

/* Marque en texte : pastille miel cochée et nom du site */
.sigle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--vert-fonce);
  text-decoration: none;
}
.sigle__pastille {
  --p: 38px;
  position: relative;
  flex: none;
  width: var(--p);
  height: var(--p);
  border-radius: 50%;
  background: var(--miel);
}
.sigle__pastille::after {
  content: "";
  position: absolute;
  left: calc(var(--p) * .36);
  top: calc(var(--p) * .2);
  width: calc(var(--p) * .27);
  height: calc(var(--p) * .48);
  border-right: calc(var(--p) * .09) solid var(--vert-fonce);
  border-bottom: calc(var(--p) * .09) solid var(--vert-fonce);
  transform: rotate(45deg);
}
.sigle__nom {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
}
@media (min-width: 600px) {
  .sigle__pastille { --p: 44px; }
  .sigle__nom { font-size: 1.15rem; max-width: 21em; }
}

/* En-tête : bandeau vert foncé du logo (le logo du site a un texte blanc), bandeau vert du menu */
.ent { position: relative; }
.ent__haut { background: var(--vert-fonce); border-bottom: 1px solid var(--vert); }
.ent__ligne {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding-block: 12px;
}
.ent__marque { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.ent__logo { display: inline-flex; }
.ent__logo:has(img[src=""]) { display: none; }
.ent__logo-img { display: block; height: 72px; width: auto; max-width: 240px; object-fit: contain; }
.ent__marque:has(.ent__logo-img:not([src=""])) .sigle { display: none; }
.ent__sigle-nom { min-width: 0; }
.ent__devise { display: none; }

.ent__bascule {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.ent__bouton {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--vert);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--vert);
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.ent__burger,
.ent__burger::before,
.ent__burger::after {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.ent__burger { position: relative; }
.ent__burger::before,
.ent__burger::after { content: ""; position: absolute; left: 0; }
.ent__burger::before { top: -7px; }
.ent__burger::after { top: 7px; }
.ent:has(.ent__bascule:checked) .ent__bouton { background: var(--vert); color: var(--blanc); }
.ent:has(.ent__bascule:checked) .ent__burger { background: transparent; }
.ent:has(.ent__bascule:checked) .ent__burger::before { top: 0; transform: rotate(45deg); }
.ent:has(.ent__bascule:checked) .ent__burger::after { top: 0; transform: rotate(-45deg); }
.ent:has(.ent__bascule:focus-visible) .ent__bouton { outline: 3px solid var(--vert); outline-offset: 3px; }

.ent__nav { display: none; background: var(--vert); }
.ent__bascule:checked ~ .ent__nav { display: block; }
.ent__liste { list-style: none; margin: 0; padding: 6px 0 14px; }
.ent__liste ul { list-style: none; margin: 0; padding: 0 0 0 18px; }
.ent__lien {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  color: var(--blanc);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.ent__lien:hover {
  text-decoration: underline;
  text-decoration-color: var(--miel);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.ent__lien--actuel,
.ent__item--actuel > .ent__lien { box-shadow: inset 4px 0 0 var(--miel); padding-left: 16px; }
.ent__nav :focus-visible { outline-color: var(--miel); outline-offset: -3px; }
.ent__nav:not(:has(a)) { display: none !important; }
.ent:not(:has(.ent__nav a)) .ent__bouton { display: none; }

@media (min-width: 600px) {
  .ent__ligne { min-height: 92px; padding-block: 16px; }
}
@media (min-width: 992px) {
  .ent__bouton,
  .ent__bascule { display: none; }
  .ent__devise {
    display: block;
    flex: 0 1 auto;
    max-width: 22em;
    margin: 0 0 0 auto;
    padding-left: 18px;
    border-left: 4px solid var(--miel);
    color: #e9f1ec;
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.4;
  }
  .ent__devise:empty,
  body:has(.ouverture) .ent__devise { display: none; }
  .ent__nav { display: block; }
  .ent__liste {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .ent__liste ul { display: none; }
  .ent__lien {
    min-height: 56px;
    padding: 0 16px;
    border-bottom: 0;
    font-size: 1.0625rem;
    white-space: nowrap;
  }
  .ent__lien--actuel,
  .ent__item--actuel > .ent__lien { box-shadow: inset 0 -4px 0 var(--miel); padding-left: 16px; }
}

/* Fil d'Ariane (module ou écrit à la main) */
.ariane { margin: 0 0 18px; font-size: 1rem; line-height: 1.4; color: var(--encre-douce); }
.ariane ol,
.ariane ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ariane li { min-width: 0; }
.ariane li:last-child {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ariane a { color: var(--vert); text-decoration: underline; text-underline-offset: 3px; }
.ariane a:hover { text-decoration-color: var(--miel); text-decoration-thickness: 3px; }

/* Texte courant des articles et des pages */
.prose { font-size: 1.125rem; line-height: 1.7; }
@media (min-width: 600px) { .prose { font-size: 1.1875rem; } }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose table,
.prose figure,
.prose pre { margin: 0 0 1.15em; }
.prose p:empty { display: none; }
.prose h1,
.prose h2 {
  margin: 2em 0 .6em;
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2rem);
  scroll-margin-top: 24px;
}
.prose h1::before,
.prose h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 5px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: var(--miel);
}
.prose h3 {
  margin: 1.6em 0 .5em;
  font-family: var(--texte);
  font-weight: 700;
  font-size: 1.25em;
  line-height: 1.3;
  color: var(--encre);
  scroll-margin-top: 24px;
}
.prose h4 {
  margin: 1.4em 0 .4em;
  font-family: var(--texte);
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.35;
  color: var(--encre);
}
.prose a {
  color: var(--vert);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
.prose a:hover { text-decoration-color: var(--miel); text-decoration-thickness: .2em; }
.prose strong, .prose b { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--vert); font-weight: 700; }
.prose blockquote {
  margin-inline: 0;
  padding: 18px 22px;
  background: var(--miel-pale);
  border-left: 6px solid var(--miel);
  border-radius: 0 var(--rayon) var(--rayon) 0;
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose img { display: block; margin: 1.4em 0; border-radius: var(--rayon); }
.prose figure { margin-inline: 0; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: 8px; font-size: .9em; color: var(--encre-douce); }
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  font-size: .95em;
  line-height: 1.5;
}
.prose th,
.prose td {
  min-width: 9em;
  padding: 10px 14px;
  border: 1px solid var(--trait);
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--sauge); color: var(--vert-fonce); font-weight: 700; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 16px; background: var(--fond); border-radius: var(--rayon); }
.prose hr { width: 64px; height: 5px; margin: 2.4em 0; border: 0; border-radius: 3px; background: var(--miel); }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--rayon); }

/* Carte d'article (boucles) : toute la carte est cliquable par le lien du titre */
.carte { position: relative; display: grid; gap: 14px; align-content: start; }
.carte__visuel { align-self: start; overflow: hidden; border-radius: var(--rayon); background: var(--sauge); }
.carte__visuel:empty { display: none; }
.carte__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carte__corps { min-width: 0; }
.carte__rubrique {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--miel-pale);
  color: var(--vert);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}
.carte__rubrique:empty { display: none; }
.carte__rubrique:hover { text-decoration: underline; }
.carte__titre { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.2; }
.carte__lien { color: var(--vert-fonce); text-decoration: none; }
.carte__lien::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.carte:hover .carte__lien {
  text-decoration: underline;
  text-decoration-color: var(--miel);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.carte__extrait { margin: 0 0 10px; font-size: 1.0625rem; line-height: 1.55; }
.carte__meta { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--encre-douce); }

/* Fil (accueil, articles liés, page d'auteur) : une à la une, trois cartes, puis des lignes compactes */
.fil { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.fil > .carte:first-child {
  padding: 16px;
  border-radius: 16px;
  background: var(--blanc);
}
.fil > .carte:first-child .carte__titre { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.12; }
.fil > .carte:nth-child(n+2) {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--trait);
}
.fil > .carte:nth-child(n+2) .carte__img { aspect-ratio: 1; }
.fil > .carte:nth-child(n+2) .carte__extrait { display: none; }
.fil > .carte:nth-child(n+2) .carte__titre { font-size: 1.15rem; }
.fil > .carte:has(.carte__visuel:empty) { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 600px) {
  .fil { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 22px; }
  .fil > .carte:first-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 28px;
    align-items: center;
    padding: 24px;
  }
  .fil > .carte:nth-child(n+2) { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (min-width: 992px) {
  .fil { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px; }
  .fil > .carte:first-child { gap: 40px; }
  .fil > .carte:nth-child(-n+4):not(:first-child) {
    grid-column: span 2;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
    border-top: 0;
  }
  .fil > .carte:nth-child(-n+4):not(:first-child) .carte__img { aspect-ratio: 3 / 2; }
  .fil > .carte:nth-child(-n+4):not(:first-child) .carte__extrait { display: block; }
  .fil > .carte:nth-child(-n+4):not(:first-child) .carte__titre { font-size: 1.35rem; }
  .fil > .carte:nth-child(n+5) { grid-column: span 3; }
}

/* Registre (page de rubrique) : une à la une, puis des lignes avec image, sur deux colonnes en grand écran */
.registre { display: grid; grid-template-columns: minmax(0, 1fr); }
.registre > .carte {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--trait);
}
.registre > .carte .carte__img { aspect-ratio: 1; }
.registre > .carte .carte__extrait { display: none; }
.registre > .carte .carte__titre { font-size: 1.2rem; }
.registre > .carte:first-child {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 12px;
  padding: 16px;
  border-top: 0;
  border-radius: 16px;
  background: var(--blanc);
}
.registre > .carte:first-child .carte__img { aspect-ratio: 3 / 2; }
.registre > .carte:first-child .carte__extrait { display: block; }
.registre > .carte:first-child .carte__titre { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.12; }
.registre > .carte:has(.carte__visuel:empty) { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 600px) {
  .registre > .carte { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .registre > .carte .carte__img { aspect-ratio: 4 / 3; }
  .registre > .carte .carte__extrait {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .registre > .carte:first-child {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 28px;
    align-items: center;
    padding: 24px;
  }
  .registre > .carte:first-child .carte__extrait { display: block; overflow: visible; }
}
@media (min-width: 992px) {
  .registre { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .registre > .carte:first-child { grid-column: 1 / -1; gap: 40px; }
  .registre > .carte { grid-template-columns: 38% minmax(0, 1fr); }
}

/* Accueil : ouverture */
.ouverture { padding-block: 36px 48px; }
.ouverture__grille { display: grid; gap: 36px; align-items: center; }
.ouverture__titre {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.012em;
}
.ouverture__titre::first-letter { text-transform: uppercase; }
.ouverture__devise {
  max-width: 34em;
  margin: 0 0 28px;
  padding-left: 18px;
  border-left: 4px solid var(--miel);
  color: var(--encre-douce);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  font-style: italic;
  line-height: 1.45;
}
.ouverture__devise:empty { display: none; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.ouverture__visuel {
  --p: 84px;
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
}
.ouverture__visuel:empty { display: none; }
.ouverture__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px;
}
.ouverture__visuel::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 22px;
  width: var(--p);
  height: var(--p);
  border-radius: 50%;
  background: var(--miel);
  box-shadow: 0 0 0 8px var(--fond);
}
.ouverture__visuel::after {
  content: "";
  position: absolute;
  left: calc(-10px + var(--p) * .36);
  bottom: calc(22px + var(--p) * .32);
  width: calc(var(--p) * .27);
  height: calc(var(--p) * .48);
  border-right: calc(var(--p) * .09) solid var(--vert-fonce);
  border-bottom: calc(var(--p) * .09) solid var(--vert-fonce);
  transform: rotate(45deg);
}
@media (max-width: 599px) {
  .ouverture__visuel { --p: 64px; }
  .ouverture__actions .bouton { width: 100%; }
}
@media (min-width: 992px) {
  .ouverture { padding-block: 64px 80px; }
  .ouverture__grille { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; }
  .ouverture__img { aspect-ratio: 4 / 5; border-radius: 50% 50% 18px 18px / 32% 32% 18px 18px; }
  .ouverture__visuel::before { left: -36px; }
  .ouverture__visuel::after { left: calc(-36px + var(--p) * .36); }
}

/* Accueil : texte de présentation */
.comprendre { padding-block: 56px; background: var(--blanc); border-block: 1px solid var(--trait); }
.comprendre:has(.comprendre__texte:empty) { display: none; }
.comprendre__grille { display: grid; gap: 20px; }
.comprendre__titre {
  margin: 0;
  font-family: var(--titre);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  line-height: 1.15;
  color: var(--vert-fonce);
}
@media (min-width: 992px) {
  .comprendre { padding-block: 80px; }
  .comprendre__grille { grid-template-columns: 17rem minmax(0, 44rem); gap: 64px; justify-content: center; }
  .comprendre__repere { position: sticky; top: 24px; align-self: start; }
}

/* Accueil : derniers articles */
.derniers { padding-block: 56px 72px; }
.derniers--profil { padding-top: 48px; }

/* Page de rubrique */
.rub-tete { padding-block: 24px 40px; background: var(--miel-pale); border-bottom: 4px solid var(--vert); }
.rub-tete__titre { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); line-height: 1.05; letter-spacing: -.012em; }
.rub-tete__chapo { max-width: 46rem; margin-top: 18px; }
.rub-tete__chapo:empty { display: none; }
.rub-corps { padding-block: 36px 72px; }
@media (min-width: 992px) {
  .rub-tete { padding-block: 32px 56px; }
  .rub-corps { padding-top: 48px; }
}

.pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 48px; }
.pages:not(:has(a, span)) { display: none; }
.pages a,
.pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--trait);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--vert);
  font-weight: 700;
  text-decoration: none;
}
.pages a:hover { border-color: var(--vert); }
.pages .pages__lien--actuel { background: var(--vert); border-color: var(--vert); color: var(--blanc); }

/* Article */
.article { padding-bottom: 64px; background: var(--blanc); }
.article__tete { padding-top: 24px; }
.article__grille { display: grid; max-width: 65rem; margin-inline: auto; }
.article__marge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 16px; }
.pastille-rubrique {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--miel-pale);
  color: var(--vert);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.pastille-rubrique:empty { display: none; }
.pastille-rubrique:hover { text-decoration: underline; }
.article__duree { margin: 0; font-size: 1rem; color: var(--encre-douce); }
.article__titre { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1.1; letter-spacing: -.01em; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 18px 0 0;
  font-size: 1.0625rem;
  color: var(--encre-douce);
}
.article__nom { font-weight: 700; color: var(--encre); }
.article__auteur:has(.article__nom:empty) { display: none; }
.article__date::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--miel);
  vertical-align: middle;
}
.article__meta:has(.article__nom:empty) .article__date::before { display: none; }

.article__figure { max-width: 65rem; margin: 28px auto 36px; }
.article__figure:empty { display: none; }
.article__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }

.lecture { max-width: 44rem; margin-inline: auto; }

.sommaire {
  margin: 0 0 36px;
  padding: 20px 22px;
  border: 1px solid var(--trait);
  border-radius: 14px;
  background: var(--fond);
}
.sommaire:not(:has(a)) { display: none; }
.sommaire__titre {
  margin: 0 0 10px;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--vert-fonce);
}
.sommaire ul,
.sommaire ol { margin: 0; padding: 0; list-style: none; }
.sommaire li { margin: 0; }
.sommaire li li { padding-left: 16px; }
.sommaire a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 3px solid var(--trait);
  color: var(--vert);
  font-size: 1.0625rem;
  line-height: 1.35;
  text-decoration: none;
}
.sommaire a:hover { border-left-color: var(--miel); text-decoration: underline; }
.sommaire__titre { display: block; }
.sommaire__bascule { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

/* Article : le fil s'arrête à la rubrique, le titre est juste en dessous (Yann, 04/11/2026). */
.article__ariane li[aria-current="page"],
.article__ariane li:has(+ li[aria-current="page"]) { display: 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) {
  .sommaire { position: sticky; top: 8px; z-index: 40; margin: 0 0 28px; padding: 0; background: var(--blanc); box-shadow: 0 2px 10px rgba(22, 63, 48, .12); }
  .sommaire__titre { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 0; padding: 10px 18px; font-size: 1.125rem; cursor: pointer; }
  .sommaire__titre::after { content: "\25BE"; font-size: 1.1rem; }
  .sommaire__liste { display: none; max-height: 60vh; overflow-y: auto; padding: 0 18px 14px; }
  .sommaire__bascule:checked ~ .sommaire__liste { display: block; }
  .sommaire__bascule:checked ~ .sommaire__titre::after { transform: rotate(180deg); }
  .sommaire__bascule:focus-visible ~ .sommaire__titre { outline: 3px solid var(--vert); outline-offset: 2px; }
  .prose :is(h2, h3) { scroll-margin-top: 76px; }
}

@media (min-width: 992px) {
  .article__img { aspect-ratio: 2 / 1; }
}
@media (min-width: 1100px) {
  .article__tete { padding-top: 32px; }
  .article__grille { grid-template-columns: 17rem minmax(0, 44rem); column-gap: 4rem; }
  .article__ariane { grid-column: 1 / -1; }
  .article__marge { flex-direction: column; align-items: flex-start; gap: 12px; margin: 12px 0 0; }
  .lecture {
    display: grid;
    grid-template-columns: 17rem minmax(0, 44rem);
    column-gap: 4rem;
    align-items: start;
    max-width: 65rem;
  }
  .lecture:not(:has(.sommaire a)) { grid-template-columns: minmax(0, 44rem); justify-content: end; }
  .sommaire {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
}

.avertissement {
  margin: 44px 0 0;
  padding: 18px 22px;
  border-left: 6px solid var(--vert);
  border-radius: 0 14px 14px 0;
  background: var(--sauge);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.avertissement p { margin: 0; }

.auteur {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border-radius: 16px;
  background: var(--miel-pale);
}
.auteur:has(.auteur__nom:empty) { display: none; }
.auteur__photo {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--miel);
  box-shadow: 0 0 0 4px var(--blanc);
}
.auteur__photo:empty { display: none; }
.auteur__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.auteur__label {
  margin: 0 0 2px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--vert);
}
.auteur__nom { margin: 0 0 8px; font-family: var(--titre); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--vert-fonce); }
.auteur__bio { font-size: 1.0625rem; line-height: 1.6; }
.auteur__bio > :last-child { margin-bottom: 0; }
@media (min-width: 480px) {
  .auteur { grid-template-columns: 88px minmax(0, 1fr); gap: 22px; align-items: start; }
  .auteur:has(.auteur__photo:empty) { grid-template-columns: minmax(0, 1fr); }
}

.historique { margin-top: 28px; font-size: 1rem; line-height: 1.5; color: var(--encre-douce); }
.historique__titre { margin: 0 0 6px; font-weight: 700; color: var(--encre); }
.historique ul { margin: 0; padding: 0; list-style: none; }
.historique li { padding: 3px 0; }

/* Articles liés */
.voisins { padding-block: 56px 72px; }
.voisins:not(:has(.carte)) { display: none; }
.voisins__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.voisins__tete .titre-section { margin: 0; }
.voisins__tout { color: var(--vert); font-weight: 700; text-underline-offset: 4px; }

/* Page fixe */
.feuille { padding-block: 28px 72px; }
.feuille__page {
  max-width: 48rem;
  margin-inline: auto;
  padding: 24px 20px 40px;
  border-radius: 16px;
  background: var(--blanc);
}
.feuille__titre { margin-bottom: 24px; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1.1; }
.feuille__figure { margin: 0 0 28px; }
.feuille__figure:empty { display: none; }
.feuille__img { display: block; width: 100%; border-radius: 12px; }
@media (min-width: 600px) {
  .feuille__page { padding: 40px 56px 56px; }
}

/* Page d'auteur */
.profil { padding-block: 24px 48px; background: var(--blanc); border-bottom: 1px solid var(--trait); }
.profil__grille { display: grid; gap: 28px; max-width: 60rem; }
.profil__photo {
  width: 140px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--sauge);
  box-shadow: 0 0 0 6px var(--blanc), 0 0 0 9px var(--miel);
}
.profil__photo:empty { display: none; }
.profil__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profil__nom { margin-bottom: 16px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.08; }
@media (min-width: 720px) {
  .profil__grille { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; align-items: start; }
  .profil__grille:has(.profil__photo:empty) { grid-template-columns: minmax(0, 1fr); }
  .profil__photo { width: 180px; }
}

/* Pied de page */
.pied { background: var(--vert-fonce); color: #e9f1ec; }
.pied__grille { display: grid; gap: 32px; padding-block: 48px 36px; }
.pied__logo { display: inline-block; margin-bottom: 16px; }
.pied__logo:has(img[src=""]) { display: none; }
.pied__logo-img { display: block; height: 96px; width: auto; max-width: 220px; object-fit: contain; }
.pied__marque:has(.pied__logo-img:not([src=""])) .sigle { display: none; }
.sigle--pied { margin: 0 0 14px; color: var(--blanc); }
.sigle--pied .sigle__nom { max-width: 21em; }
.pied__devise { max-width: 30em; margin: 0; color: #cfe0d6; font-style: italic; }
.pied__devise:empty { display: none; }
.pied__nav:not(:has(a)) { display: none; }
.pied__liste { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pied__liste ul { margin: 0; padding: 0 0 0 16px; list-style: none; }
.pied__lien {
  display: inline-block;
  padding: 8px 0;
  color: var(--blanc);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(240, 180, 41, .6);
  text-underline-offset: 5px;
}
.pied__lien:hover { text-decoration-color: var(--miel); text-decoration-thickness: 3px; }
.pied__bas { border-top: 1px solid rgba(255, 255, 255, .16); }
.pied__ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 22px;
  font-size: 1rem;
}
.pied__droits { margin: 0; color: #cfe0d6; }
.pied__legal { color: var(--blanc); font-weight: 700; text-underline-offset: 4px; }
.pied__legal:hover { text-decoration-color: var(--miel); text-decoration-thickness: 3px; }
.pied :focus-visible { outline-color: var(--miel); }
@media (min-width: 768px) {
  .pied__grille { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; padding-block: 56px 44px; }
}

/* Impression : un mode d'emploi se garde souvent sur papier */
@media print {
  body { background: #fff; color: #000; }
  .evitement, .ent__nav, .ent__bouton, .ent__devise, .sommaire, .voisins, .pied__nav,
  .ouverture__actions, .derniers { display: none !important; }
  .article, .comprendre, .feuille__page, .profil { background: #fff; }
  .pied, .pied * { background: #fff !important; color: #000 !important; }
  .prose a { color: #000; }
}
