:root {
  color-scheme: light;
  --fond: #F8FAFB;
  --surface: #FFFFFF;
  --texte: #0F172A;
  --doux: #475569;
  --principal: #0B4F6C;
  --principal-texte: #FFFFFF;
  --accent: #8A4B08;
  --bord: #DCE3EA;
  --lien-visite: #0B4F6C;
  --espace: 1rem;
  --bloc: 1.8rem;
  --section: 3rem;
  --interligne: 1.7;
  --rayon: 10px;
  --mesure: 66ch;
  --largeur: min(100% - 2 * var(--bloc), 76rem);
  --police-titre: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --police-texte: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--police-texte); font-size: 1.0625rem; line-height: var(--interligne);
  font-synthesis-weight: none; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--police-titre); line-height: 1.2; margin: 0 0 var(--espace); text-wrap: balance; }
h1 { font-size: calc(1.6rem * 1.333); letter-spacing: -0.01em; }
h2 { font-size: calc(1.15rem * 1.333); margin-top: var(--section); }
h3 { font-size: calc(1rem * 1.333); margin-top: var(--bloc); }
p, ul, ol, dl, figure { margin: 0 0 var(--bloc); }
a { color: var(--principal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:visited { color: var(--lien-visite); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.enveloppe { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--bloc); }
/* Le texte courant garde une longueur de ligne lisible ; les blocs larges (image de bandeau,
   grilles de cartes, tableaux, encadrés) occupent toute la page. */
p, ul, ol, dl, h1, h2, h3, blockquote { max-width: var(--mesure); }
.grille, figure, table, .carte, .encadre, .bandeau-image, .bandeau .enveloppe > * { max-width: none; }
.entete-site { background: var(--surface); border-bottom: 3px solid var(--accent); }
.entete-site .enveloppe { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; align-items: baseline; justify-content: space-between; padding-top: var(--espace); padding-bottom: var(--espace); }
.marque { font-family: var(--police-titre); font-size: 1.25rem; font-weight: 700; color: var(--principal); text-decoration: none; letter-spacing: -0.015em; }
.marque::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.5em; border-radius: 50%; background: var(--accent); vertical-align: 0.05em; }
nav.principal ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
nav.principal a { color: var(--principal); text-decoration: none; opacity: 0.85; }
nav.principal a:hover { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
nav.principal a[aria-current="page"] { opacity: 1; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pied-site nav ul { display: flex; flex-wrap: wrap; gap: var(--espace); margin: 0 0 0.5rem; padding: 0; list-style: none; }
.pied-site nav a { color: var(--doux); text-decoration: none; }
.pied-site nav a[aria-current="page"] { color: var(--principal); font-weight: 600; }
main { display: block; padding: var(--section) 0; }
.lien-evitement { position: absolute; left: -9999px; }
.lien-evitement:focus { position: static; display: inline-block; background: var(--principal); color: var(--principal-texte); padding: 0.5rem 0.75rem; }
.bandeau { background: var(--principal); color: var(--principal-texte); }
.bandeau .enveloppe { padding-top: calc(var(--bloc) * 1.1); padding-bottom: calc(var(--bloc) * 1.1); }
/* Titre de tête : sobre et net — interligne serré, approche légèrement resserrée,
   retour à la ligne équilibré. Aucun ornement. */
.bandeau h1, article header h1 { line-height: 1.15; letter-spacing: -0.012em; font-weight: 700; margin-bottom: 0.8rem; hyphens: none; overflow-wrap: break-word; text-wrap: balance; }
.bandeau p { line-height: 1.55; max-width: 44ch; opacity: 0.94; }
.bandeau-image { display: block; margin: var(--bloc) 0 0; background: var(--principal); }
.bandeau-image img { display: block; width: 100%; height: auto; border-radius: var(--rayon); }
.bandeau h1, .bandeau a { color: var(--principal-texte); }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: var(--bloc); margin: 0 0 var(--bloc); }
.grille { display: grid; gap: var(--bloc); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; list-style: none; margin: 0 0 var(--bloc); }
.grille li { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: var(--espace); }
.encadre { border-left: 4px solid var(--accent); background: var(--surface); padding: var(--bloc); margin: 0 0 var(--bloc); border-radius: 0 var(--rayon) var(--rayon) 0; }
.encadre h2 { margin-top: 0; }
.meta { color: var(--doux); font-size: 0.9375rem; }
.pied-site { border-top: 1px solid var(--bord); background: var(--surface); margin-top: var(--section); padding: var(--bloc) 0; color: var(--doux); font-size: 0.9375rem; }
.pied-site a { color: var(--doux); }
table { border-collapse: collapse; width: 100%; margin: 0 0 var(--bloc); }
th, td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--bord); }
th { font-family: var(--police-titre); }
img { max-width: 100%; height: auto; }
figure { margin-left: 0; margin-right: 0; }
figcaption { color: var(--doux); font-size: 0.9375rem; }
input, textarea, select, button { font: inherit; }
@media (max-width: 44rem) {
  :root { --espace: 0.85rem; --bloc: 1.25rem; --section: 2rem; --largeur: 100%; }
  body { font-size: 1rem; }
  main { padding: 1.5rem 0; }
  /* L'image d'ouverture vient se coller sous le filet de l'en-tête : plus de bande
     blanche entre les deux (le retrait du haut de main est compensé pile). */
  .bandeau-image { margin-top: calc(-1 * 1.5rem); }
  h1 { font-size: calc(1.42rem * 1.333); }
  h2 { font-size: calc(1.05rem * 1.333); }
  h3 { font-size: calc(0.95rem * 1.333); }
  p { text-wrap: pretty; }
  /* sur un téléphone, l'image de tête et les illustrations occupent toute la largeur */
  .bandeau-image, figure.illustration { margin-left: calc(-1 * var(--bloc)); margin-right: calc(-1 * var(--bloc)); }
  .bandeau-image img, figure.illustration img { border-radius: 0; }
  .bandeau .enveloppe > *:last-child, .encadre > *:last-child, .grille li > *:last-child,
  main section > *:last-child, .bandeau-image + .bandeau p { margin-bottom: 0; }
  .grille { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
  .pied-site nav ul { gap: 0.4rem 1rem; }
  .entete-site .enveloppe { gap: 0.15rem 1rem; }
  nav.principal ul { gap: 0.2rem 0.9rem; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .entete-site nav, .lien-evitement { display: none; } body { background: #fff; } }
