@charset "UTF-8";

:root {
  --tpg-encre: #1C2B3B;
  --tpg-encre-douce: #4A5868;
  --tpg-brume: #F2F5F8;
  --tpg-brume-2: #E6EBF1;
  --tpg-filet: #CBD4DE;
  --tpg-blanc: #FFFFFF;
  --tpg-jaune: #FFCD00;
  --tpg-rouge: #C8102E;
  --tpg-gris: #ECEDEF;
  --tpg-clair: #E8EDF2;
  --tpg-titre: "Overpass", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --tpg-texte: "PT Serif", Georgia, "Times New Roman", serif;
  --tpg-largeur: 1200px;
  --tpg-colonne: 760px;
  --tpg-gouttiere: 20px;
  --tpg-balise: linear-gradient(var(--tpg-jaune) 0 50%, var(--tpg-rouge) 50% 100%);
}

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

*, *::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(--tpg-blanc);
  color: var(--tpg-encre);
  font-family: var(--tpg-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

:where(.tpg) img { max-width: 100%; height: auto; }

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

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

a { color: var(--tpg-encre); }

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

::selection {
  background: var(--tpg-jaune);
  color: var(--tpg-encre);
}

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

.tpg-main {
  display: block;
  padding-bottom: 72px;
}

.tpg-evitement {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--tpg-jaune);
  color: var(--tpg-encre);
  font: 800 1rem/1.2 var(--tpg-titre);
  text-decoration: none;
}

.tpg-evitement:focus { top: 12px; }

.tpg-section-titre {
  display: inline-block;
  margin-bottom: 24px;
  padding: 7px 12px 4px;
  background: var(--tpg-jaune);
  color: var(--tpg-encre);
  font-size: 1.25rem;
  line-height: 1.25;
  border-radius: 3px;
}

@media (min-width: 720px) {
  .tpg-section-titre {
    margin-bottom: 28px;
    padding-inline: 14px;
    font-size: 1.5rem;
  }
}

.tpg-bouton {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px 10px;
  border-radius: 4px;
  background: var(--tpg-encre);
  color: var(--tpg-blanc);
  font: 800 1rem/1.1 var(--tpg-titre);
  text-decoration: none;
}

.tpg-bouton::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.tpg-bouton:hover,
.tpg-bouton:focus-visible {
  background: var(--tpg-jaune);
  color: var(--tpg-encre);
}

.tpg-entete {
  position: relative;
  background: var(--tpg-blanc);
}

.tpg-entete__case {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.tpg-entete__barre {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--tpg-largeur);
  margin-inline: auto;
  padding: 10px var(--tpg-gouttiere);
}

.tpg-entete__logo {
  flex: none;
  display: block;
  line-height: 0;
  border-radius: 4px;
}

.tpg-entete__logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: none;
}

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

.tpg-entete__nom {
  font: 800 1rem/1.2 var(--tpg-titre);
  color: var(--tpg-encre);
  text-wrap: balance;
}

.tpg-entete__devise { display: none; }

.tpg-entete__bouton {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid var(--tpg-encre);
  border-radius: 4px;
  background: var(--tpg-blanc);
  color: var(--tpg-encre);
  font: 800 1rem/1 var(--tpg-titre);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tpg-entete__traits,
.tpg-entete__traits::before,
.tpg-entete__traits::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.tpg-entete__traits { position: relative; }

.tpg-entete__traits::before,
.tpg-entete__traits::after {
  content: "";
  position: absolute;
  left: 0;
}

.tpg-entete__traits::before { top: -6px; }
.tpg-entete__traits::after { top: 6px; }

.tpg-entete__bouton-texte { padding-top: 2px; }

.tpg-entete__case:checked ~ .tpg-entete__barre .tpg-entete__bouton { background: var(--tpg-jaune); }
.tpg-entete__case:checked ~ .tpg-entete__barre .tpg-entete__traits { background: transparent; }
.tpg-entete__case:checked ~ .tpg-entete__barre .tpg-entete__traits::before { top: 0; transform: rotate(45deg); }
.tpg-entete__case:checked ~ .tpg-entete__barre .tpg-entete__traits::after { top: 0; transform: rotate(-45deg); }

.tpg-entete__case:focus-visible ~ .tpg-entete__barre .tpg-entete__bouton {
  outline: 3px solid var(--tpg-encre);
  outline-offset: 2px;
}

.tpg-nav {
  display: none;
  background: var(--tpg-encre);
  border-bottom: 4px solid var(--tpg-jaune);
}

.tpg-entete__case:checked ~ .tpg-nav { display: block; }

.tpg-nav__liste {
  max-width: var(--tpg-largeur);
  margin: 0 auto;
  padding: 4px 0 8px;
  list-style: none;
}

.tpg-nav__item + .tpg-nav__item { border-top: 1px solid rgba(255, 255, 255, 0.16); }

.tpg-nav__lien {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px var(--tpg-gouttiere) 10px;
  font: 600 1.0625rem/1.25 var(--tpg-titre);
  color: var(--tpg-blanc);
  text-decoration: none;
}

.tpg-nav__lien:hover { color: var(--tpg-jaune); }

.tpg-nav__item--ici > .tpg-nav__lien {
  background: var(--tpg-jaune);
  color: var(--tpg-encre);
}

.tpg-nav a:focus-visible {
  outline-color: var(--tpg-jaune);
  outline-offset: -3px;
}

.tpg-nav ul ul {
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}

.tpg-nav ul ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px var(--tpg-gouttiere) 8px calc(var(--tpg-gouttiere) + 20px);
  font: 600 1rem/1.3 var(--tpg-titre);
  color: var(--tpg-clair);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .tpg-entete__barre {
    gap: 20px;
    padding-block: 14px;
  }
  .tpg-entete__logo-img { height: 60px; }
  .tpg-entete__nom { font-size: 1.375rem; }
  .tpg-entete__devise {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font: 600 0.9375rem/1.35 var(--tpg-titre);
    color: var(--tpg-encre-douce);
  }
  .tpg-entete__devise::before {
    content: "";
    flex: none;
    width: 22px;
    height: 10px;
    background: var(--tpg-balise);
  }
  .tpg:has(.tpg-depart) .tpg-entete__devise { display: none; }
  .tpg-entete__case,
  .tpg-entete__bouton { display: none; }
  .tpg-nav { display: block; }
  .tpg-nav__liste {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 var(--tpg-gouttiere);
  }
  .tpg-nav__item { position: relative; }
  .tpg-nav__item + .tpg-nav__item { border-top: 0; }
  .tpg-nav__lien {
    min-height: 48px;
    padding: 13px 12px 10px;
    font-size: 0.9375rem;
    white-space: nowrap;
  }
  .tpg-nav__lien:hover {
    color: var(--tpg-blanc);
    box-shadow: inset 0 -4px 0 var(--tpg-jaune);
  }
  .tpg-nav__item--ici > .tpg-nav__lien,
  .tpg-nav__item--ici > .tpg-nav__lien:hover {
    background: var(--tpg-jaune);
    color: var(--tpg-encre);
    box-shadow: none;
  }
  .tpg-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    display: none;
    min-width: 240px;
    padding: 6px 0;
    background: var(--tpg-blanc);
    border: 1px solid var(--tpg-filet);
    box-shadow: 0 10px 24px rgba(28, 43, 59, 0.16);
  }
  .tpg-nav__item:hover > ul,
  .tpg-nav__item:focus-within > ul { display: block; }
  .tpg-nav ul ul a,
  .tpg-nav ul ul a:hover {
    min-height: 0;
    padding: 10px 16px;
    font-size: 0.9375rem;
    white-space: normal;
    color: var(--tpg-encre);
    box-shadow: none;
  }
  .tpg-nav ul ul a:hover { background: var(--tpg-brume); }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .tpg-nav__lien {
    padding-inline: 8px;
    font-size: 0.875rem;
  }
}

.tpg-ariane {
  margin-bottom: 16px;
  font: 600 0.875rem/1.4 var(--tpg-titre);
  color: var(--tpg-encre-douce);
}

.tpg-ariane ol,
.tpg-ariane ul {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  max-width: 100%;
  margin: 0;
  padding: 6px 12px 4px;
  list-style: none;
  background: var(--tpg-blanc);
  border: 1px solid var(--tpg-filet);
  border-radius: 4px;
}

.tpg-ariane li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tpg-ariane li[aria-hidden="true"] {
  font-weight: 800;
  color: var(--tpg-rouge);
}

.tpg-ariane a {
  color: var(--tpg-encre);
  text-decoration: underline;
  text-decoration-color: var(--tpg-filet);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.tpg-ariane a:hover { text-decoration-color: var(--tpg-rouge); }

.tpg-ariane [aria-current="page"] { color: var(--tpg-encre-douce); }

.tpg-ariane--article li[aria-current="page"],
.tpg-ariane--article li:has(+ li[aria-current="page"]) { display: none; }

.tpg-depart { padding-bottom: 8px; }

.tpg-depart__cadre {
  max-width: var(--tpg-largeur);
  margin-inline: auto;
}

.tpg-depart__visuel { line-height: 0; }

.tpg-depart__visuel:not(:has(img)) { display: none; }

.tpg-depart__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tpg-depart__cartouche {
  position: relative;
  padding: 24px var(--tpg-gouttiere) 28px;
  background: var(--tpg-blanc);
}

.tpg-depart__cartouche::before {
  content: "";
  display: block;
  width: 56px;
  height: 14px;
  margin-bottom: 16px;
  background: var(--tpg-balise);
}

.tpg-depart__titre {
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.tpg-depart__devise {
  margin-top: 16px;
  max-width: 34em;
  font: 600 1.125rem/1.45 var(--tpg-titre);
  color: var(--tpg-encre-douce);
}

@media (min-width: 720px) {
  .tpg-depart__cadre { padding: 24px var(--tpg-gouttiere) 0; }
  .tpg-depart__img {
    aspect-ratio: 16 / 7;
    border-radius: 6px;
  }
  .tpg-depart__visuel:has(img) + .tpg-depart__cartouche {
    max-width: 720px;
    margin: -112px 0 0 32px;
    padding: 28px 36px 32px;
    border-radius: 6px;
    box-shadow: 0 1px 0 var(--tpg-filet), 0 18px 40px rgba(28, 43, 59, 0.16);
  }
}

.tpg-prose--accueil {
  max-width: var(--tpg-colonne);
  margin: 40px auto 0;
}

.tpg-recents {
  margin-top: 64px;
  padding-block: 48px 56px;
  background: var(--tpg-brume);
}

.tpg-carrefour { padding-top: 56px; }

.tpg-poteau {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpg-poteau__lien {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 48px 10px 20px;
  background: var(--tpg-encre);
  color: var(--tpg-blanc);
  font: 800 1.0625rem/1.3 var(--tpg-titre);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
}

.tpg-poteau__lien::before {
  content: "";
  flex: none;
  width: 20px;
  height: 10px;
  margin-top: -2px;
  background: var(--tpg-balise);
}

.tpg-poteau__lien:hover,
.tpg-poteau__lien:focus-visible {
  background: var(--tpg-jaune);
  color: var(--tpg-encre);
  outline: none;
}

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

.tpg-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 32px;
  align-items: start;
}

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

@media (min-width: 1024px) {
  .tpg-grille {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
  }
}

.tpg-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tpg-carte__visuel {
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  background-color: var(--tpg-brume-2);
  line-height: 0;
}

.tpg-carte__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tpg-carte:hover .tpg-carte__img { transform: scale(1.03); }

.tpg-carte__visuel:not(:has(img)) {
  background-image: url("/img/123randonnee-fr-logo.webp");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 40% auto;
}

.tpg-carte__visuel:not(:has(img))::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  background-color: var(--tpg-gris);
  background-image: url("/img/123randonnee-fr-logo.webp");
  background-repeat: no-repeat;
  background-position: -200% 50%;
  background-size: 80% auto;
  filter: grayscale(1) contrast(0.6) brightness(1.15);
}

.tpg-carte__visuel:not(:has(img))::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  width: 28px;
  height: 12px;
  background: var(--tpg-balise);
}

.tpg-carte__corps {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tpg-carte__rubrique {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 8px 2px;
  border-radius: 2px;
  background: var(--tpg-jaune);
  color: var(--tpg-encre);
  font: 800 0.875rem/1.3 var(--tpg-titre);
}

.tpg-carte__rubrique:empty { display: none; }

.tpg-carte__titre {
  font-size: 1.25rem;
  line-height: 1.25;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

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

.tpg-carte__lien::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.tpg-carte:hover .tpg-carte__lien {
  text-decoration: underline;
  text-decoration-color: var(--tpg-rouge);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.tpg-carte__lien:focus-visible { outline: none; }

.tpg-carte:focus-within {
  outline: 3px solid var(--tpg-encre);
  outline-offset: 6px;
}

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

.tpg-carte__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 12px;
  font: 600 0.875rem/1.4 var(--tpg-titre);
  color: var(--tpg-encre-douce);
}

.tpg-carte__duree {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tpg-carte__duree::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--tpg-rouge);
}

.tpg-grille--rubrique .tpg-carte__rubrique,
.tpg-grille--voisins .tpg-carte__rubrique { display: none; }

.tpg-rubrique {
  padding-block: 24px 40px;
  background-color: var(--tpg-brume);
  background-image:
    linear-gradient(rgba(28, 43, 59, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 43, 59, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--tpg-filet);
}

.tpg-rubrique__titre {
  max-width: 22em;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.tpg-rubrique__titre::after {
  content: "";
  display: block;
  width: 64px;
  height: 14px;
  margin-top: 16px;
  background: var(--tpg-balise);
}

.tpg-rubrique__intro {
  margin-top: 24px;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.tpg-rubrique__intro:empty { display: none; }

.tpg-rubrique__intro p { margin: 0 0 0.85em; }

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

.tpg-rubrique__intro a {
  color: var(--tpg-encre);
  text-decoration-color: var(--tpg-rouge);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

@media (min-width: 992px) {
  .tpg-rubrique { padding-block: 32px 48px; }
  .tpg-rubrique__intro {
    margin-top: 28px;
    column-count: 2;
    column-gap: 56px;
    orphans: 3;
    widows: 3;
  }
}

.tpg-liste { padding-top: 48px; }

.tpg-article { padding-top: 20px; }

.tpg-article__grille {
  max-width: var(--tpg-colonne);
  margin-inline: auto;
}

.tpg-article__titre {
  font-size: clamp(1.875rem, 1.35rem + 2.2vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.tpg-article__infos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
  margin-top: 16px;
  padding-block: 10px 8px;
  border-top: 1px solid var(--tpg-filet);
  border-bottom: 1px solid var(--tpg-filet);
  font: 600 0.9375rem/1.4 var(--tpg-titre);
  color: var(--tpg-encre-douce);
}

.tpg-article__infos > * + *::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 8px;
  margin: 0 12px 2px;
  vertical-align: middle;
  background: var(--tpg-balise);
}

.tpg-article__auteur {
  font-weight: 800;
  color: var(--tpg-encre);
}

@media (max-width: 719px) {
  .tpg-article__auteur { flex: 0 0 100%; }
  .tpg-article__infos > .tpg-article__date::before { display: none; }
}

.tpg-sommaire {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 16px;
  background: var(--tpg-blanc);
  box-shadow: calc(-1 * var(--tpg-gouttiere)) 0 0 var(--tpg-blanc), var(--tpg-gouttiere) 0 0 var(--tpg-blanc);
}

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

.tpg-sommaire__case {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.tpg-sommaire__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 16px 6px;
  border-radius: 4px;
  background: var(--tpg-encre);
  color: var(--tpg-blanc);
  font: 800 1rem/1.2 var(--tpg-titre);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tpg-sommaire__libelle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tpg-sommaire__libelle::before {
  content: "";
  flex: none;
  width: 20px;
  height: 10px;
  margin-top: -2px;
  background: var(--tpg-balise);
}

.tpg-sommaire__fleche {
  display: block;
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.tpg-sommaire__case:checked ~ .tpg-sommaire__barre .tpg-sommaire__fleche { transform: translateY(2px) rotate(225deg); }

.tpg-sommaire__case:focus-visible ~ .tpg-sommaire__barre {
  outline: 3px solid var(--tpg-jaune);
  outline-offset: 2px;
}

.tpg-sommaire__liste {
  display: none;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px 16px 12px;
  background: var(--tpg-blanc);
  border: 1px solid var(--tpg-filet);
  border-top: 0;
}

.tpg-sommaire__case:checked ~ .tpg-sommaire__liste { display: block; }

.tpg-sommaire__liste ul,
.tpg-sommaire__liste ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tpg-etape;
}

.tpg-sommaire__liste li { counter-increment: tpg-etape; }

.tpg-sommaire__liste li + li { border-top: 1px solid var(--tpg-brume-2); }

.tpg-sommaire__liste a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 8px 0 6px;
  font: 600 0.9375rem/1.35 var(--tpg-titre);
  color: var(--tpg-encre);
  text-decoration: none;
}

.tpg-sommaire__liste li:not(li li) > a::before {
  content: counter(tpg-etape);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding-top: 2px;
  border-radius: 2px;
  background: var(--tpg-jaune);
  color: var(--tpg-encre);
  font: 800 0.8125rem/1 var(--tpg-titre);
}

.tpg-sommaire__liste a:hover {
  text-decoration: underline;
  text-decoration-color: var(--tpg-rouge);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.tpg-sommaire__liste li li a {
  grid-template-columns: minmax(0, 1fr);
  padding: 4px 0 4px 40px;
  font-size: 0.875rem;
  color: var(--tpg-encre-douce);
}

.tpg-sommaire__liste li li { border-top: 0; }

@media (max-width: 1099px) {
  .tpg-sommaire__liste li li { display: none; }
}

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

.tpg-article__visuel:not(:has(img)) { display: none; }

.tpg-article__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.tpg-article__texte {
  min-width: 0;
  margin-top: 24px;
}

@media (min-width: 1100px) {
  .tpg-article { padding-top: 28px; }
  .tpg-article__grille {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, var(--tpg-colonne)) 300px;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "tete som"
      "visuel som"
      "texte som";
    justify-content: space-between;
    column-gap: 48px;
  }
  .tpg-article__tete { grid-area: tete; }
  .tpg-article__visuel {
    grid-area: visuel;
    margin-top: 24px;
  }
  .tpg-article__texte {
    grid-area: texte;
    margin-top: 40px;
  }
  .tpg-sommaire {
    grid-area: som;
    align-self: start;
    top: 24px;
    margin-top: 8px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 4px;
    background: var(--tpg-brume);
    box-shadow: none;
  }
  .tpg-sommaire__barre {
    min-height: 0;
    padding: 0 0 12px;
    border-radius: 0;
    border-bottom: 2px solid var(--tpg-encre);
    background: transparent;
    color: var(--tpg-encre);
    font-size: 1.0625rem;
    cursor: default;
  }
  .tpg-sommaire__fleche { display: none; }
  .tpg-sommaire__liste,
  .tpg-sommaire__case:checked ~ .tpg-sommaire__liste {
    display: block;
    max-height: none;
    overflow: visible;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
  }
  .tpg-sommaire__liste li + li { border-top-color: var(--tpg-filet); }
}

.tpg-prose {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.tpg-prose > :first-child { margin-top: 0; }

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

.tpg-prose p { margin: 0 0 0.9em; }

.tpg-prose ul,
.tpg-prose ol,
.tpg-prose dl,
.tpg-prose table,
.tpg-prose figure,
.tpg-prose blockquote,
.tpg-prose pre { margin: 0 0 1.1em; }

.tpg-prose h2 {
  margin: 1.8em 0 0.7em;
  font-size: 1.5rem;
  line-height: 1.2;
  text-wrap: balance;
  scroll-margin-top: 72px;
}

.tpg-prose h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 10px;
  margin-top: 10px;
  background: var(--tpg-balise);
}

.tpg-prose h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.1875rem;
  line-height: 1.3;
  scroll-margin-top: 72px;
}

.tpg-prose h4 {
  margin: 1.4em 0 0.5em;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.tpg-prose a {
  color: var(--tpg-encre);
  text-decoration: underline;
  text-decoration-color: var(--tpg-rouge);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.tpg-prose a:hover {
  background: var(--tpg-jaune);
  text-decoration-color: var(--tpg-encre);
}

.tpg-prose strong,
.tpg-prose b { font-weight: 700; }

.tpg-prose img {
  display: block;
  margin: 1.5em auto;
  border-radius: 4px;
}

.tpg-prose p > img { margin-block: 0.3em; }

.tpg-prose figure img { margin: 0 auto; }

.tpg-prose figcaption {
  margin-top: 8px;
  font: 600 0.875rem/1.45 var(--tpg-titre);
  color: var(--tpg-encre-douce);
}

.tpg-prose ul {
  padding-left: 1.5em;
  list-style: none;
}

.tpg-prose ul > li { position: relative; }

.tpg-prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.62em;
  width: 0.5em;
  height: 0.5em;
  background: var(--tpg-jaune);
  box-shadow: 0 0 0 1.5px var(--tpg-encre);
}

.tpg-prose ul ul > li::before { background: var(--tpg-blanc); }

.tpg-prose ol { padding-left: 1.6em; }

.tpg-prose ol > li::marker {
  font-family: var(--tpg-titre);
  font-weight: 800;
  color: var(--tpg-rouge);
}

.tpg-prose li + li { margin-top: 0.4em; }

.tpg-prose li > ul,
.tpg-prose li > ol { margin: 0.4em 0 0; }

.tpg-prose blockquote {
  margin-inline: 0;
  padding: 16px 20px;
  border-top: 4px solid var(--tpg-jaune);
  border-radius: 0 0 4px 4px;
  background: var(--tpg-brume);
  font-style: italic;
  font-size: 1.0625em;
  line-height: 1.6;
}

.tpg-prose blockquote > :last-child { margin-bottom: 0; }

.tpg-prose hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--tpg-filet);
}

.tpg-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.tpg-prose th,
.tpg-prose td {
  min-width: 8rem;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tpg-filet);
  text-align: left;
  vertical-align: top;
}

.tpg-prose th {
  background: var(--tpg-brume-2);
  border-bottom: 2px solid var(--tpg-encre);
  font-family: var(--tpg-titre);
  font-weight: 800;
}

.tpg-prose tbody tr:nth-child(even) td { background: var(--tpg-brume); }

.tpg-prose pre {
  overflow-x: auto;
  padding: 12px 16px;
  background: var(--tpg-brume);
  white-space: pre-wrap;
}

.tpg-prose iframe,
.tpg-prose video { max-width: 100%; }

.tpg-prose--article > p:first-child {
  margin-bottom: 1.1em;
  font-family: var(--tpg-titre);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--tpg-encre);
}

@media (min-width: 720px) {
  .tpg-prose { font-size: 1.125rem; }
  .tpg-prose h2 { font-size: 1.625rem; }
  .tpg-prose h3 { font-size: 1.25rem; }
  .tpg-prose--article > p:first-child { font-size: 1.3125rem; }
}

@media (max-width: 1099px) {
  .tpg-prose--article :is(h2, h3) { scroll-margin-top: 72px; }
}

.tpg-auteur {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 48px;
  padding: 20px;
  border-radius: 6px;
  background: var(--tpg-brume);
}

.tpg-auteur__photo {
  flex: none;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--tpg-jaune);
}

.tpg-auteur__photo:not(:has(img)) { display: none; }

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

.tpg-auteur__texte { min-width: 0; }

.tpg-auteur__libelle {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 0.875rem/1.3 var(--tpg-titre);
  color: var(--tpg-encre-douce);
}

.tpg-auteur__libelle::before {
  content: "";
  flex: none;
  width: 20px;
  height: 10px;
  background: var(--tpg-balise);
}

.tpg-auteur__nom {
  margin-top: 4px;
  font: 800 1.375rem/1.2 var(--tpg-titre);
  color: var(--tpg-encre);
}

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

.tpg-auteur__bio > * { display: none; }

.tpg-auteur__bio > p:first-of-type {
  display: block;
  margin: 0;
}

@media (min-width: 720px) {
  .tpg-auteur {
    gap: 24px;
    padding: 24px 28px;
  }
  .tpg-auteur__photo {
    width: 104px;
    height: 104px;
  }
}

.tpg-voisins {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--tpg-filet);
}

.tpg-voisins:not(:has(a)) { display: none; }

.tpg-fixe { padding-top: 24px; }

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

.tpg-fixe__titre {
  margin-bottom: 28px;
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.tpg-fixe__titre::after {
  content: "";
  display: block;
  width: 56px;
  height: 12px;
  margin-top: 14px;
  background: var(--tpg-balise);
}

.tpg-prose--page img { margin: 1em 0; }

.tpg-prose--profil img {
  width: 100%;
  margin: 0 0 1.2em;
  border-radius: 6px;
}

.tpg-prose--profil figure img { margin: 0; }

@media (min-width: 720px) {
  .tpg-prose--profil > img,
  .tpg-prose--profil > p > img,
  .tpg-prose--profil > figure {
    float: right;
    width: 280px;
    max-width: 45%;
    margin: 0.3em 0 1em 28px;
  }
  .tpg-prose--profil > figure img {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

.tpg-ecrire {
  clear: both;
  margin-top: 48px;
  padding: 24px 20px;
  border-radius: 6px;
  background: var(--tpg-brume);
}

.tpg-ecrire__titre {
  font-size: 1.5rem;
  line-height: 1.2;
}

.tpg-ecrire__titre::after {
  content: "";
  display: block;
  width: 44px;
  height: 10px;
  margin-top: 10px;
  background: var(--tpg-balise);
}

.tpg-ecrire__invite {
  margin: 14px 0 20px;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.tpg-ecrire form {
  display: grid;
  gap: 16px;
}

.tpg-ecrire label {
  display: block;
  margin-bottom: 6px;
  font: 800 0.9375rem/1.3 var(--tpg-titre);
  color: var(--tpg-encre);
}

.tpg-ecrire input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.tpg-ecrire textarea,
.tpg-ecrire__champ {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid var(--tpg-encre-douce);
  border-radius: 4px;
  background: var(--tpg-blanc);
  font: 400 1.0625rem/1.4 var(--tpg-texte);
  color: var(--tpg-encre);
}

.tpg-ecrire textarea {
  min-height: 180px;
  resize: vertical;
}

.tpg-ecrire input:focus,
.tpg-ecrire textarea:focus {
  border-color: var(--tpg-encre);
  outline: 3px solid var(--tpg-jaune);
  outline-offset: 0;
}

.tpg-ecrire input[type="checkbox"] { accent-color: var(--tpg-encre); }

.tpg-ecrire button,
.tpg-ecrire [type="submit"] {
  justify-self: start;
  width: auto;
  min-height: 48px;
  padding: 12px 28px 10px;
  border: 2px solid var(--tpg-encre);
  border-radius: 4px;
  background: var(--tpg-encre);
  color: var(--tpg-blanc);
  font: 800 1rem/1.1 var(--tpg-titre);
  cursor: pointer;
}

.tpg-ecrire button:hover,
.tpg-ecrire [type="submit"]:hover {
  background: var(--tpg-jaune);
  color: var(--tpg-encre);
}

@media (min-width: 720px) {
  .tpg-ecrire { padding: 32px 36px; }
}

.tpg-portrait__entete {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.tpg-portrait__photo {
  flex: none;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 0 4px var(--tpg-jaune);
}

.tpg-portrait__photo:not(:has(img)) { display: none; }

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

.tpg-portrait__titre {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.tpg-portrait__suite { margin-top: 32px; }

@media (min-width: 720px) {
  .tpg-portrait__photo {
    width: 140px;
    height: 140px;
  }
}

.tpg-pied {
  background-color: var(--tpg-encre);
  background-image: repeating-radial-gradient(circle at 92% 0%, transparent 0 26px, rgba(255, 255, 255, 0.05) 26px 27px);
  color: var(--tpg-blanc);
  border-top: 6px solid var(--tpg-jaune);
}

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

.tpg-pied__logo {
  display: inline-block;
  padding: 12px;
  border-radius: 6px;
  background: var(--tpg-blanc);
  line-height: 0;
}

.tpg-pied__logo-img {
  display: block;
  height: 72px;
  width: auto;
  max-width: none;
}

.tpg-pied__devise {
  max-width: 26em;
  margin-top: 16px;
  font: 600 1rem/1.45 var(--tpg-titre);
  color: var(--tpg-clair);
}

.tpg-pied__titre {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font: 800 1.0625rem/1.3 var(--tpg-titre);
  color: var(--tpg-blanc);
}

.tpg-pied__titre::before {
  content: "";
  flex: none;
  width: 24px;
  height: 12px;
  background: var(--tpg-balise);
}

.tpg-pied__liste {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpg-pied__item { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

.tpg-pied__lien {
  display: block;
  padding: 11px 0 9px;
  font: 600 1rem/1.35 var(--tpg-titre);
  color: var(--tpg-blanc);
  text-decoration: none;
}

.tpg-pied__lien:hover {
  color: var(--tpg-jaune);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tpg-pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-block: 0 28px;
  font: 600 0.9375rem/1.4 var(--tpg-titre);
  color: var(--tpg-clair);
}

.tpg-pied__bas::before {
  content: "";
  flex: 0 0 100%;
  height: 1px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.2);
}

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

.tpg-pied__legal:hover { color: var(--tpg-jaune); }

.tpg-pied a:focus-visible { outline-color: var(--tpg-jaune); }

@media (min-width: 720px) {
  .tpg-pied__grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
    padding-block: 56px 40px;
  }
  .tpg-pied__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }
}
