/* Décollement de rétine.com : feuille de style unique, sans dépendance externe. */

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

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.cadre {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Liens : bleu foncé souligné (contraste 10:1 sur blanc) */
a { color: #0b3d91; text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 0.15em; }
:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

/* Lien d'évitement */
.evitement {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  z-index: 10;
}
.evitement:focus { top: 1rem; }

/* En-tête */
.entete { border-bottom: 1px solid #000; }
.entete .cadre {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.nom-site { margin: 0; font-weight: 700; font-size: 1.25rem; }
.nom-site a { color: #000; text-decoration: none; }
.nom-site a:hover { text-decoration: underline; }
.entete nav a { font-weight: 600; }

main { padding-top: 1.5rem; padding-bottom: 3rem; }

h1, h2, h3 { line-height: 1.25; margin: 2rem 0 1rem; -webkit-hyphens: auto; hyphens: auto; }
h1 { font-size: 2rem; margin-top: 0.5rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p, ul, ol, figure, blockquote { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.5rem; }

img { max-width: 100%; height: auto; display: block; }
figure { margin: 1.5rem 0; }
figcaption { margin-top: 0.5rem; font-size: 1rem; color: #333; }

.meta { color: #333; font-size: 1rem; margin-bottom: 1.5rem; }
.termes { border-top: 1px solid #000; margin-top: 2.5rem; padding-top: 1rem; font-size: 1rem; }
.termes p { margin-bottom: 0.4rem; }

/* Accueil */
.accueil-titre { text-align: center; font-size: 2.25rem; margin-top: 1rem; }
.accueil-sous-titre { text-align: center; font-size: 1.2rem; }
.bouton-zone { text-align: center; margin: 1.5rem 0 2rem; }
.bouton {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0b3d91;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.25rem;
}
.bouton:hover { background: #000; color: #fff; text-decoration: underline; }
.accroche { font-size: 1.25rem; font-weight: 700; line-height: 1.45; }

/* Listes d'articles */
.liste { list-style: none; padding: 0; margin: 0; }
.liste > li { border-bottom: 1px solid #000; padding: 1rem 0; }
.liste > li:first-child { border-top: 1px solid #000; }
.liste h2, .liste h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.liste .meta { margin: 0 0 0.5rem; }
.liste .extrait { margin: 0; }

/* Articles voisins */
.voisins { margin-top: 2rem; font-size: 1rem; }
.voisins ul { list-style: none; padding: 0; }
.voisins li { margin-bottom: 0.75rem; }

/* Pied de page */
.pied { border-top: 1px solid #000; font-size: 1rem; }
.pied .cadre { padding-top: 1.5rem; padding-bottom: 2rem; }
.pied ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

@media (max-width: 30rem) {
  h1 { font-size: 1.6rem; }
  .accueil-titre { font-size: 1.9rem; }
}

@media print {
  .evitement, .entete nav, .voisins, .pied nav { display: none; }
  a { color: #000; }
}
