/* Turf.ovh : feuille de style unique. Polices auto-hébergées, aucun appel externe.
   Bricolage Grotesque pour les titres, Atkinson Hyperlegible Next pour le texte
   (des chiffres impossibles à confondre), Big Shoulders Display pour les étiquettes
   façon tableau d'affichage d'hippodrome. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/atkinson-hyperlegible-next.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/atkinson-hyperlegible-next-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/fonts/big-shoulders-display.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f5ee;
  --paper-2: #f1ece0;
  --card: #fffdf8;
  --ink: #1c2420;
  --ink-soft: #4a554f;
  --muted: #6b746e;
  --line: #e2dccd;
  --turf: #1e5b3f;
  --turf-dark: #123a29;
  --turf-light: #e3efe7;
  --silk: #c8462a;
  --gold: #b88a1b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 58, 41, 0.06), 0 8px 24px rgba(18, 58, 41, 0.06);
  --serif: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --sans: 'Atkinson Hyperlegible Next', Verdana, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --board: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--turf);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--silk);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.12;
  color: var(--turf-dark);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0.2em 0 0.35em;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  margin: 1.8em 0 0.6em;
}

h3 {
  font-size: 1.25rem;
  margin: 1.5em 0 0.4em;
}

h4 {
  font-size: 1.05rem;
  margin: 1.3em 0 0.3em;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--turf-dark);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 238, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--turf-dark);
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.brand-name span {
  color: var(--silk);
}

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
  flex: 1;
}

.main-nav a {
  font-family: var(--serif);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  background: var(--turf-light);
  color: var(--turf-dark);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.search-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--turf-dark);
}

.search-link svg {
  width: 22px;
  height: 22px;
}

.search-link:hover {
  background: var(--turf-light);
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--turf-dark);
  border-radius: 2px;
}

.menu summary:hover {
  background: var(--turf-light);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 48px;
  width: min(320px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.menu-title {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-panel a {
  display: block;
  padding: 7px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.menu-panel li:last-child a {
  border-bottom: 0;
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
}

/* Fil d'Ariane */

.breadcrumb {
  width: min(1180px, 100% - 32px);
  margin: 18px auto 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 4px;
  color: var(--line);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--turf);
  text-decoration: underline;
}

/* Article */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  margin-top: 12px;
}

.article-main {
  min-width: 0;
  max-width: 760px;
}

.article-side {
  padding-top: 120px;
}

.article-side .side-box {
  position: sticky;
  top: 90px;
}

.article-side .side-box + .side-box {
  position: static;
  margin-top: 20px;
}

@media (max-width: 1020px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .article-side {
    padding-top: 0;
  }
  .article-side .side-box {
    position: static;
  }
}

.kicker {
  font-family: var(--board);
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--silk);
  margin: 0;
  line-height: 1.2;
}

.kicker a {
  color: inherit;
  text-decoration: none;
}

.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.55;
}

.meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 22px;
}

.hero-figure {
  margin: 0 0 26px;
}

.hero-figure img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  background: var(--paper-2);
}

figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 0 0 24px;
}

.toc summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--turf-dark);
}

.toc ol {
  margin: 10px 0 4px;
  padding-left: 22px;
}

.toc li {
  margin: 4px 0;
}

.toc a {
  text-decoration: none;
  color: var(--ink-soft);
}

.toc a:hover {
  color: var(--turf);
  text-decoration: underline;
}

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

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li::marker {
  color: var(--turf);
}

.prose strong {
  color: var(--turf-dark);
}

.prose a.term {
  text-decoration-style: dotted;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2em 0 1.5em;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--turf-dark);
  color: #f3ead2;
  font-family: var(--board);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  font-variant-numeric: tabular-nums;
}

tr:last-child td {
  border-bottom: 0;
}

.callout {
  border-radius: var(--radius);
  padding: 16px 20px 6px;
  margin: 1.6em 0;
  background: var(--turf-light);
  border: 1px solid #cfe2d6;
}

.callout-title {
  font-family: var(--board);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--turf);
  margin: 0 0 6px !important;
}

.callout-attention {
  background: #fbeee9;
  border-color: #f0d3c8;
}

.callout-attention .callout-title {
  color: var(--silk);
}

.callout-exemple,
.callout-chiffres {
  background: #fbf5e4;
  border-color: #eedfb5;
}

.callout-exemple .callout-title,
.callout-chiffres .callout-title {
  color: var(--gold);
}

.inline-figure {
  margin: 1.6em 0;
}

.inline-figure img {
  border-radius: 12px;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 36px;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 10px;
}

.prev-next a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  text-decoration: none;
  color: var(--turf-dark);
  font-weight: 600;
  line-height: 1.35;
}

.prev-next a span {
  display: block;
  font-family: var(--board);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.prev-next .next {
  text-align: right;
}

.prev-next a:hover {
  border-color: var(--turf);
}

.side-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.93rem;
}

.side-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--turf-dark);
  margin: 0 0 8px;
}

.side-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.side-box li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.35;
}

.side-box li a {
  text-decoration: none;
  color: var(--ink);
}

.side-box li a:hover {
  color: var(--turf);
}

.side-help {
  background: var(--turf-dark);
  color: #e7efe9;
  border-color: var(--turf-dark);
}

.side-help .side-title {
  color: #fff;
}

.side-help a {
  color: #f3d58b;
}

.more {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 4px;
}

/* Cartes */

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-img img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  background: var(--paper-2);
}

.card-body {
  padding: 16px 18px 18px;
}

.card h3 {
  font-size: 1.12rem;
  margin: 4px 0 6px;
}

.card h3 a {
  text-decoration: none;
  color: var(--turf-dark);
}

.card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.card .kicker {
  font-size: 0.9rem;
}

.related {
  margin: 30px 0 10px;
}

.related h2 {
  margin-top: 0.5em;
}

/* Rubriques */

.hub-head {
  display: grid;
  gap: 32px;
  align-items: center;
  margin: 10px 0 30px;
}

.hub-head.has-img {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hub-figure {
  margin: 0;
}

.hub-figure img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hub-head.has-img {
    grid-template-columns: minmax(0, 1fr);
  }
  .hub-figure {
    order: -1;
  }
}

.hub-intro {
  color: var(--ink-soft);
}

.az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 26px;
  position: sticky;
  top: 64px;
  background: var(--paper);
  padding: 10px 0;
  z-index: 5;
}

.az-nav a {
  font-family: var(--board);
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  color: var(--turf-dark);
}

.az-nav a:hover {
  background: var(--turf);
  color: #fff;
}

.az-group h2 {
  margin: 1em 0 0.4em;
  font-family: var(--board);
  font-size: 2.6rem;
  color: var(--silk);
  scroll-margin-top: 130px;
}

.az-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
}

.az-list > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.az-list dt a {
  font-weight: 700;
  text-decoration: none;
  color: var(--turf-dark);
}

.az-list dd {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .az-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.link-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.link-list li a {
  font-weight: 700;
  text-decoration: none;
  color: var(--turf-dark);
}

.link-list li a:hover {
  color: var(--silk);
}

.link-list li span {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .link-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hub-group h2 {
  scroll-margin-top: 90px;
}

/* Accueil */

.home-hero {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
  padding: 36px 0 44px;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.home-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.lead-block p {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.home-hero-figure {
  margin: 0;
}

.home-hero-figure img {
  border-radius: 18px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(18, 58, 41, 0.18);
}

@media (max-width: 900px) {
  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .home-hero-figure {
    order: -1;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  font-family: var(--serif);
  display: inline-block;
  background: var(--turf);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid var(--turf);
}

.btn:hover {
  background: var(--turf-dark);
  border-color: var(--turf-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--turf);
}

.btn-ghost:hover {
  background: var(--turf-light);
  color: var(--turf-dark);
}

.home-block {
  margin: 48px 0;
}

.home-block > h2 {
  margin-top: 0;
}

.section-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .section-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 150px;
  background: var(--turf-dark);
  text-decoration: none;
  color: #fff;
}

.section-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.section-tile:hover img {
  opacity: 0.55;
  transform: scale(1.03);
}

.section-tile-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(10, 30, 20, 0.85), rgba(10, 30, 20, 0));
  display: flex;
  flex-direction: column;
}

.section-tile-text strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.2;
}

.section-tile-text span {
  font-size: 0.8rem;
  opacity: 0.85;
}

.section-tile:hover {
  color: #fff;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.home-split .link-list {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 900px) {
  .home-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--turf-dark);
}

.chips a:hover {
  border-color: var(--turf);
}

.muted {
  color: var(--muted);
}

.responsible-block {
  background: var(--turf-dark);
  color: #e7efe9;
  border-radius: 18px;
  padding: 28px 32px;
}

.responsible-block h2 {
  color: #fff;
}

.responsible-block a {
  color: #f3d58b;
}

/* Outils */

.tool-wrap {
  margin: 0 0 28px;
}

.tool {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

@media (max-width: 600px) {
  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tool label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.tool input,
.tool select,
.search-form input {
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #cfc7b4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.tool input:focus,
.tool select:focus,
.search-form input:focus {
  outline: 2px solid var(--turf);
  outline-offset: 1px;
}

.tool input:disabled,
.tool select:disabled {
  opacity: 0.45;
}

.tool-result {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--turf-light);
}

.tool-result p {
  margin: 0 0 6px;
}

.tool-result .big {
  font-family: var(--board);
  letter-spacing: 0.01em;
  font-size: 1.7rem !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--turf-dark);
}

.tool-result .summary {
  font-weight: 700;
  color: var(--turf-dark);
}

.musique-list {
  margin: 8px 0 0;
  padding-left: 1.4em;
}

.musique-list .year {
  list-style: none;
  margin-left: -1.4em;
  font-weight: 700;
  color: var(--silk);
}

/* Recherche, plan du site, 404 */

.search-form {
  margin: 10px 0 24px;
}

.search-results {
  grid-template-columns: minmax(0, 1fr);
}

.search-results .kicker {
  font-size: 0.68rem;
  margin: 2px 0;
}

.sitemap-cols {
  columns: 3 280px;
  column-gap: 40px;
}

.sitemap-cols section {
  break-inside: avoid-column;
  margin-bottom: 26px;
}

.sitemap-cols h2 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.sitemap-cols ul {
  padding-left: 1.1em;
  margin: 0;
  font-size: 0.92rem;
}

.notfound {
  padding: 40px 0 20px;
}

/* Pied de page */

.site-footer {
  margin-top: 70px;
  background: var(--turf-dark);
  color: #cfdcd3;
  padding: 44px 0 30px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 40px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

.brand-footer {
  color: #fff;
}

.brand-footer .brand-name span {
  color: #f3a68f;
}

.footer-title {
  color: #fff;
  font-family: var(--board);
  font-size: 1rem !important;
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
}

.footer-grid > div:last-child .footer-links {
  columns: 1;
}

.footer-links li {
  margin: 0 0 6px;
}

.site-footer a {
  color: #e9f1ec;
  text-decoration: none;
}

.site-footer a:hover {
  color: #f3d58b;
  text-decoration: underline;
}

.responsible {
  margin: 30px 0 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #e7efe9;
}

.responsible strong {
  display: inline-block;
  background: var(--silk);
  color: #fff;
  border-radius: 6px;
  padding: 0 6px;
  margin-right: 6px;
}

.copyright {
  font-size: 0.82rem;
  opacity: 0.75;
  margin: 10px 0 0;
}

@media (max-width: 600px) {
  body {
    font-size: 16.5px;
  }
  .prev-next {
    grid-template-columns: minmax(0, 1fr);
  }
  .prev-next .next {
    text-align: left;
  }
  .responsible-block {
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card,
  .section-tile img {
    transition: none;
  }
}

/* Listes numérotées façon tapis de selle : chaque numéro a sa couleur,
   comme les dossards des chevaux au départ. */

.prose ol,
.toc ol {
  list-style: none;
  counter-reset: dossard;
  padding-left: 0;
}

.prose ol > li,
.toc ol > li {
  counter-increment: dossard;
  position: relative;
  padding-left: 2.6em;
  min-height: 1.9em;
}

.prose ol > li::before,
.toc ol > li::before {
  content: counter(dossard);
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.75em;
  height: 1.55em;
  display: grid;
  place-items: center;
  font-family: var(--board);
  font-weight: 900;
  font-size: 1.02em;
  line-height: 1;
  border-radius: 4px;
  background: #c8352a;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.prose ol > li:nth-child(10n + 2)::before,
.toc ol > li:nth-child(10n + 2)::before {
  background: #fff;
  color: #1c2420;
  border: 1px solid #cfc7b4;
}

.prose ol > li:nth-child(10n + 3)::before,
.toc ol > li:nth-child(10n + 3)::before {
  background: #1f4fa3;
}

.prose ol > li:nth-child(10n + 4)::before,
.toc ol > li:nth-child(10n + 4)::before {
  background: #f2c230;
  color: #1c2420;
}

.prose ol > li:nth-child(10n + 5)::before,
.toc ol > li:nth-child(10n + 5)::before {
  background: #1e7a46;
}

.prose ol > li:nth-child(10n + 6)::before,
.toc ol > li:nth-child(10n + 6)::before {
  background: #1c1c1c;
  color: #f2c230;
}

.prose ol > li:nth-child(10n + 7)::before,
.toc ol > li:nth-child(10n + 7)::before {
  background: #e7792b;
}

.prose ol > li:nth-child(10n + 8)::before,
.toc ol > li:nth-child(10n + 8)::before {
  background: #e98bb4;
  color: #1c2420;
}

.prose ol > li:nth-child(10n + 9)::before,
.toc ol > li:nth-child(10n + 9)::before {
  background: #2ab3b1;
  color: #1c2420;
}

.prose ol > li:nth-child(10n)::before,
.toc ol > li:nth-child(10n)::before {
  background: #6b3fa0;
}

.prose ol > li::marker,
.toc ol > li::marker {
  content: none;
}

.toc ol > li {
  padding-left: 2.4em;
  margin: 6px 0;
}

.toc ol > li::before {
  font-size: 0.9em;
}

/* Les titres de section gagnent un petit trait façon poteau d'arrivée */
.prose h2 {
  position: relative;
  padding-top: 14px;
}

.prose h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 5px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--silk) 0 9px, #fff 9px 18px);
  box-shadow: 0 0 0 1px rgba(200, 70, 42, 0.25);
}
