:root{--accent:#1d3557;--avert-cadre:#e0a800;--avert-fond:#fef6e7;--cadre:#a2a9b1;--doux:#54595d;--filet:#c8ccd1;--fond:#ffffff;--gris:#f4f5f7;--lien:#2a59a3;--police-texte:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--police-titre:Charter,"Bitstream Charter","Sitka Text",Cambria,serif;--sur-accent:#ffffff;--surface:#f8f9fa;--teinte:#e6ecf5;--tete:#ffffff;--texte:#202122;}
/* Encyclopédie (t2b112) : chaque article est une entrée au titre souligné d'un filet, flanquée de sa boîte d'informations */

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 1rem;
  line-height: 1.6;
}

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

a {
  color: var(--lien);
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 400;
  line-height: 1.25;
}

p,
ul,
ol,
dl,
dd {
  margin: 0;
}

.invisible,
.evitement:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 20;
  padding: .75rem 1rem;
  background: var(--tete);
  color: var(--lien);
  border: 2px solid var(--accent);
  font-weight: 700;
}

/* Bandeau : la marque et le nom à la façon d'un logo d'encyclopédie, le menu en onglets posés sur le filet bas */

.bandeau {
  background: var(--tete);
  border-bottom: 1px solid var(--cadre);
}

.bandeau-interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  column-gap: 2rem;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  min-height: 2.75rem;
  margin: .75rem 0 .625rem;
  color: var(--texte);
  text-decoration: none;
}

.logo-marque {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
}

.logo-texte {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-nom {
  font-family: var(--police-titre);
  font-size: 1.1875rem;
  font-variant: small-caps;
  letter-spacing: .02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.logo-domaine {
  margin-top: .1rem;
  color: var(--doux);
  font-family: var(--police-titre);
  font-size: .8125rem;
  font-style: italic;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.logo:hover .logo-nom {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

.onglets {
  margin-bottom: -1px;
}

.onglets ul {
  display: flex;
  gap: .25rem;
  padding: 0;
  list-style: none;
}

.onglets a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .25rem 1rem;
  border: 1px solid var(--cadre);
  background: var(--teinte);
  color: var(--lien);
  font-size: .9375rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.onglets a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.onglets a[aria-current="page"] {
  background: var(--fond);
  border-bottom-color: var(--fond);
  color: var(--texte);
}

/* Colonne et titres */

.principal {
  flex: 1 0 auto;
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.titre-page {
  margin-bottom: 1.5rem;
}

.titre-h1 {
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--cadre);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.sous-titre {
  margin-top: .4rem;
  color: var(--doux);
  font-size: .875rem;
}

.vide {
  padding: 1rem 1.25rem;
  background: var(--gris);
  border: 1px solid var(--cadre);
}

/* Entrées de l'accueil */

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

.entree {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "boite" "texte";
  row-gap: .625rem;
  margin: 0 0 2rem;
}

.entree-texte {
  grid-area: texte;
  min-width: 0;
}

.entree-titre {
  border-bottom: 1px solid var(--filet);
  font-size: 1.375rem;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.entree-titre a {
  display: block;
  padding: .5rem 0;
  text-decoration: none;
}

.entree-titre a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.entree-extrait {
  margin-top: .6rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.entree-suite {
  display: none;
  margin-top: .5rem;
  font-size: .9375rem;
  font-style: italic;
}

.entree-suite a::before {
  content: "\2192";
  content: "\2192" / "";
  display: inline-block;
  margin-right: .4em;
  font-style: normal;
}

.une-bandeau {
  grid-area: bandeau;
  padding: .4rem .875rem;
  background: var(--accent);
  color: var(--sur-accent);
  font-family: var(--police-titre);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.entree-une {
  grid-template-areas: "bandeau" "boite" "texte";
  row-gap: 0;
  border: 1px solid var(--cadre);
}

.entree-une-suite {
  border-top: .375rem solid var(--accent);
}

.entree-une .entree-texte {
  padding: .25rem .875rem 1rem;
}

.entree-une .entree-titre {
  font-size: 1.625rem;
}

/* Boîte d'informations */

.boite {
  grid-area: boite;
  min-width: 0;
  font-size: .875rem;
  line-height: 1.45;
}

.boite-image {
  display: block;
  overflow: hidden;
  background: var(--teinte);
}

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

.boite-sans {
  display: flex;
  align-items: center;
  justify-content: center;
}

.boite-lettre {
  color: var(--accent);
  font-family: var(--police-titre);
  font-size: 2.25rem;
  line-height: 1;
}

.boite-ligne dt {
  font-weight: 700;
}

.boite-initiale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--teinte);
  border: 1px solid var(--cadre);
  color: var(--accent);
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1;
}

.boite-rang {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.boite-rang::before {
  content: "#";
  content: "#" / "";
  margin-right: .1em;
  color: var(--doux);
  font-weight: 400;
}

/* Pagination dans un cadre gris : « Page précédente | numéros | Page suivante » */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0 0;
  padding: .375rem;
  background: var(--gris);
  border: 1px solid var(--cadre);
  font-size: .9375rem;
}

.pagination a,
.pagination-pages [aria-current] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 .625rem;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0 .375rem;
  list-style: none;
}

.pagination-pages a {
  text-decoration: none;
}

.pagination-pages a:hover {
  text-decoration: underline;
}

.pagination-pages [aria-current] {
  color: var(--texte);
  font-weight: 700;
}

.pagination > * + * {
  border-left: 1px solid var(--cadre);
}

/* Pied gris clair à filet supérieur, éléments séparés par des barres verticales */

.pied {
  background: var(--gris);
  border-top: 1px solid var(--cadre);
}

.pied-interieur {
  max-width: 74rem;
  margin: 0 auto;
  padding: 1rem;
}

.pied-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 0 -.75rem;
  padding: 0;
  color: var(--doux);
  font-size: .8125rem;
  line-height: 1.4;
  list-style: none;
  clip-path: inset(-.75rem -.75rem -.75rem calc(.75rem - 6px));
}

.pied-ligne li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 .75rem;
}

.pied-ligne li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 1.1em;
  margin-top: -.55em;
  border-left: 1px solid var(--cadre);
}

.pied-nom {
  color: var(--texte);
  font-family: var(--police-titre);
  font-size: .9375rem;
  font-weight: 700;
}

.pied-ligne a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Article : une page d'encyclopédie */

.fiche,
.page-article .retour,
.page-service .titre-page,
.page-service .texte {
  max-width: 52rem;
  margin-right: auto;
  margin-left: auto;
}

.titre-suite {
  color: var(--doux);
  font-size: .6em;
}

.fiche-date {
  margin: .4rem 0 1.25rem;
  color: var(--doux);
  font-size: .875rem;
}

.corps {
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.corps::after {
  content: "";
  display: block;
  clear: both;
}

.corps p {
  margin: 0 0 1em;
}

.corps a {
  overflow-wrap: anywhere;
}

.corps > p:first-of-type,
.corps > p:nth-of-type(2) {
  margin: 0;
  padding: .15rem .875rem;
  background: var(--gris);
  border: 1px solid var(--cadre);
  border-left: 4px solid var(--accent);
  font-size: .875rem;
  line-height: 1.5;
}

.corps > p:first-of-type {
  padding-top: .6rem;
  border-bottom: 0;
}

.corps > p:nth-of-type(2) {
  margin-bottom: 1.5rem;
  padding-bottom: .6rem;
  border-top: 0;
}

.corps > p:nth-of-type(n+3):has(> a:last-child) {
  padding-left: 1.5rem;
  color: var(--doux);
  font-size: .9375rem;
  font-style: italic;
}

.corps > img {
  display: block;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--cadre);
}

.retour {
  margin-top: 2rem;
  font-size: .9375rem;
}

.retour a {
  display: inline-block;
  padding: .625rem 0;
}

.retour a::before {
  content: "\2190";
  content: "\2190" / "";
  display: inline-block;
  margin-right: .45em;
}

/* Pages de service */

.texte h2 {
  margin: 2rem 0 .75rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--filet);
  font-size: 1.5rem;
}

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

.texte p,
.texte ul {
  margin: 0 0 1em;
}

.texte ul {
  padding-left: 1.25rem;
  list-style: square;
}

.texte li::marker {
  color: var(--doux);
}

.page-service.plan_du_site .texte,
.page-service.plan_du_site .titre-page {
  max-width: none;
}

.plan_du_site .texte > ul:first-child {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2rem;
  padding: 0;
  list-style: none;
}

.plan_du_site .texte > ul:not(:first-child) {
  columns: 3 16rem;
  column-gap: 2.5rem;
}

.plan_du_site li {
  break-inside: avoid;
}

.plan_du_site li a,
.plan_du_site li b {
  display: block;
  padding: .625rem 0;
  overflow-wrap: anywhere;
}

.plan_du_site nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  padding: 0;
  list-style: none;
}

.contact .texte > p:first-child {
  margin-bottom: 1.25rem;
  padding: .75rem 1rem;
  background: var(--gris);
  border: 1px solid var(--cadre);
  border-left: 4px solid var(--accent);
}

.contact iframe {
  box-shadow: 0 0 0 1px var(--cadre);
}

/* Page introuvable : un bandeau d'avertissement */

.avertissement {
  max-width: 52rem;
  margin: 1rem auto 0;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--avert-fond);
  border: 1px solid var(--avert-cadre);
  border-left-width: .5rem;
}

.avertissement-titre {
  margin-bottom: .75rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--avert-cadre);
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  overflow-wrap: break-word;
}

.avertissement .retour {
  margin-top: .5rem;
}

/* Téléphone : la boîte devient une bande compacte au-dessus de l'entrée, le menu trois onglets */

@media not all and (min-width: 40rem) {
  .bandeau-interieur {
    display: block;
  }

  .logo {
    display: flex;
  }

  .onglets li {
    flex: 1 1 auto;
  }

  .onglets a {
    padding: .25rem .5rem;
    border-radius: .5rem .5rem 0 0;
  }

  .boite {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    column-gap: .75rem;
    padding: .5rem;
    background: var(--teinte);
    border: 1px solid var(--cadre);
  }

  .boite-titre,
  .boite-ligne-rang dt {
    display: none;
  }

  .boite-image {
    width: 4rem;
    height: 4rem;
    background: var(--fond);
    border: 1px solid var(--cadre);
  }

  .boite-donnees {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .15rem .75rem;
  }

  .boite-ligne {
    display: flex;
    flex-wrap: wrap;
    column-gap: .3rem;
  }

  .boite-ligne-rang {
    margin-left: auto;
  }

  .entree-une .boite {
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--cadre);
  }

  .entree-une a.boite-image {
    grid-column: 1 / -1;
    width: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
  }

  .entree-une .boite-sans {
    margin: .5rem 0 .5rem .5rem;
  }

  .entree-une .boite-donnees {
    padding: .5rem .875rem .5rem 0;
  }

  .entree-une a.boite-image + .boite-donnees {
    grid-column: 1 / -1;
    padding-left: .875rem;
  }

  .pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "prec suiv" "pages pages";
  }

  .pagination-prec {
    grid-area: prec;
    justify-self: start;
  }

  .pagination-suiv {
    grid-area: suiv;
    justify-self: end;
  }

  .pagination .pagination-prec,
  .pagination .pagination-suiv {
    padding: 0 .25rem;
  }

  .pagination-pages {
    grid-area: pages;
    border-top: 1px solid var(--cadre);
  }

  .pagination > * + * {
    border-left: 0;
  }
}

/* Ordinateur et tablette : l'entrée en grille [texte | boîte de 18 rem] */

@media (min-width: 40rem) {
  .logo {
    margin: .875rem 0;
  }

  .logo-marque {
    width: 3.25rem;
    height: 3.25rem;
  }

  .logo-nom {
    font-size: 1.5rem;
    letter-spacing: .05em;
  }

  .logo-domaine {
    font-size: .875rem;
  }

  .onglets a {
    min-height: 2.5rem;
    padding: .3rem 1.125rem;
  }

  .principal {
    padding-top: 1.75rem;
  }

  .titre-page {
    margin-bottom: 2.25rem;
  }

  .entree {
    grid-template-columns: minmax(0, 1fr) 18rem;
    grid-template-areas: "texte boite";
    align-items: start;
    column-gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .entree-titre a {
    padding: 0 0 .2rem;
  }

  .entree-suite {
    display: block;
  }

  .boite {
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--cadre);
  }

  .boite-titre {
    padding: .35rem .5rem;
    background: var(--teinte);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .boite-image {
    margin-top: 3px;
    aspect-ratio: 16 / 9;
  }

  .boite-sans {
    aspect-ratio: 16 / 7;
  }

  .boite-lettre {
    font-size: 4.5rem;
  }

  .boite-donnees {
    margin-top: 3px;
  }

  .boite-ligne {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: center;
    column-gap: .5rem;
    min-height: 2.5rem;
    padding: .3rem .5rem;
    border-top: 1px solid var(--filet);
  }

  .entree-une {
    grid-template-columns: minmax(0, 1fr) 21.25rem;
    grid-template-areas: "bandeau bandeau" "texte boite";
    column-gap: 1.5rem;
    padding-bottom: 1.25rem;
  }

  .entree-une .entree-texte {
    padding: 1rem 0 0 1.25rem;
  }

  .entree-une .boite {
    margin: 1rem 1.25rem 0 0;
  }

  .entree-une .entree-titre {
    font-size: 1.875rem;
  }

  .entree-une .entree-extrait {
    font-size: 1.125rem;
  }

  .entree-une .boite-lettre {
    font-size: 6rem;
  }

  .corps > img {
    float: right;
    clear: right;
    width: 45%;
    margin: .35rem 0 1rem 1.5rem;
  }

  .pied-ligne li,
  .pied-ligne a {
    min-height: 1.75rem;
  }

  .plan_du_site li a,
  .plan_du_site li b {
    padding: .15rem 0;
  }
}

@media (min-width: 64rem) {
  .entree {
    column-gap: 2.5rem;
  }

  .entree-titre {
    font-size: 1.625rem;
  }

  .entree-une {
    grid-template-columns: minmax(0, 1fr) 29.25rem;
    column-gap: 2rem;
  }

  .entree-une .entree-titre {
    font-size: 2.125rem;
  }
}
