/* polices du site, servies localement */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 100%; font-display: swap; src: url(assets/fonts/archivo-latin-ext-400-900.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 100%; font-display: swap; src: url(assets/fonts/archivo-latin-400-900.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --boo-bg: #EDE4CF;
  --boo-surface: #F8F2E2;
  --boo-text: #1F2116;
  --boo-muted: #444630;
  --boo-accent: #006862;
  --boo-accent2: #5E6130;
  --boo-ink: #1F2116;
  --boo-sand-dark: #DCD0B0;
  --boo-shadow: 6px 6px 0 var(--boo-ink);
  --boo-shadow-sm: 4px 4px 0 var(--boo-ink);
  --boo-font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--boo-bg);
  color: var(--boo-text);
  font-family: var(--boo-font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--boo-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

a:hover {
  background: var(--boo-accent);
  color: var(--boo-surface);
  text-decoration-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--boo-accent);
  outline-offset: 3px;
  background: var(--boo-surface);
  color: var(--boo-text);
}

/* En-tête */

.boo-header {
  background: var(--boo-surface);
  border-bottom: 4px solid var(--boo-ink);
}

.boo-header-in {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.boo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--boo-text);
  text-decoration: none;
}

.boo-brand svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.boo-brand:hover {
  background: var(--boo-ink);
  color: var(--boo-surface);
}

.boo-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.boo-nav a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 2px solid var(--boo-ink);
  background: var(--boo-bg);
  color: var(--boo-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boo-nav a:hover {
  background: var(--boo-accent);
  color: var(--boo-surface);
}

/* Structure */

.boo-main {
  max-width: 88rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Premier écran */

.boo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.boo-hero-text h1 {
  margin: 0 0 1rem;
  font-weight: 900;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.boo-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  max-width: 44rem;
}

.boo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 0;
}

.boo-stat {
  background: var(--boo-surface);
  border: 3px solid var(--boo-ink);
  box-shadow: var(--boo-shadow-sm);
  padding: 0.75rem 0.9rem;
}

.boo-stat dt {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--boo-muted);
  order: 2;
}

.boo-stat dd {
  margin: 0 0 0.2rem;
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--boo-accent);
}

.boo-stat {
  display: flex;
  flex-direction: column;
}

.boo-stat p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  order: 3;
}

.boo-hero-photo {
  margin: 0;
  border: 4px solid var(--boo-ink);
  box-shadow: 10px 10px 0 var(--boo-accent2);
  background: var(--boo-surface);
}

.boo-hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: 80vh;
  object-fit: cover;
  object-position: center;
}

.boo-hero-photo figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border-top: 3px solid var(--boo-ink);
  color: var(--boo-muted);
}

/* Mise en page fiche */

.boo-layout {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.boo-rail {
  position: sticky;
  top: 1rem;
  background: var(--boo-surface);
  border: 3px solid var(--boo-ink);
  box-shadow: var(--boo-shadow-sm);
  padding: 0.9rem 0.9rem 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.boo-rail-title {
  margin: 0 0 0.6rem;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.2;
}

.boo-rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.boo-rail li + li {
  border-top: 1px solid var(--boo-sand-dark);
}

.boo-rail a {
  display: block;
  padding: 0.35rem 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--boo-text);
  text-decoration: none;
  border-left: 4px solid transparent;
}

.boo-rail a:hover,
.boo-rail a:focus-visible {
  border-left-color: var(--boo-accent);
  background: var(--boo-accent);
  color: var(--boo-surface);
}

.boo-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Sections */

.boo-sec {
  background: var(--boo-surface);
  border: 3px solid var(--boo-ink);
  box-shadow: var(--boo-shadow);
  padding: 1.4rem 1.5rem 1.5rem;
  scroll-margin-top: 1rem;
}

.boo-sec h2 {
  margin: 0 0 0.8rem;
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

.boo-sec h3 {
  margin: 1.2rem 0 0.4rem;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
}

.boo-sec p {
  margin: 0 0 0.9rem;
  max-width: 62rem;
}

.boo-sec p:last-child {
  margin-bottom: 0;
}

.boo-fig {
  font-weight: 800;
  color: var(--boo-accent);
}

.boo-list {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
  max-width: 62rem;
}

.boo-list li {
  margin-bottom: 0.45rem;
}

.boo-list li::marker {
  color: var(--boo-accent2);
  font-weight: 800;
}

/* Encadré de repères */

.boo-spec {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0;
  border: 2px solid var(--boo-ink);
  background: var(--boo-bg);
  box-shadow: var(--boo-shadow-sm);
}

.boo-spec div {
  padding: 0.6rem 0.8rem;
  border-left: 2px solid var(--boo-ink);
}

.boo-spec div:first-child {
  border-left: 0;
}

.boo-spec dt {
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--boo-muted);
}

.boo-spec dd {
  margin: 0.15rem 0 0;
  font-weight: 800;
  line-height: 1.3;
}

/* Tableau */

.boo-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--boo-ink);
  box-shadow: var(--boo-shadow-sm);
  background: var(--boo-bg);
  margin: 0.5rem 0 0.25rem;
}

.boo-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.boo-table caption {
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-weight: 800;
  background: var(--boo-surface);
  border-bottom: 2px solid var(--boo-ink);
}

.boo-table th,
.boo-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--boo-accent2);
}

.boo-table thead th {
  background: var(--boo-ink);
  color: var(--boo-surface);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.boo-table tbody th {
  font-weight: 800;
  white-space: nowrap;
}

.boo-table tbody tr:last-child th,
.boo-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Questions-réponses */

.boo-qa {
  background: var(--boo-surface);
  border: 3px solid var(--boo-ink);
  box-shadow: var(--boo-shadow);
  padding: 1.4rem 1.5rem 1.5rem;
  scroll-margin-top: 1rem;
}

.boo-qa h2 {
  margin: 0 0 1rem;
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.boo-qa-item {
  border-top: 3px solid var(--boo-ink);
  padding: 0.9rem 0 0.2rem;
  margin-top: 0.9rem;
}

.boo-qa-item:first-of-type {
  margin-top: 0;
}

.boo-qa-q {
  margin: 0 0 0.4rem;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.3;
}

.boo-qa-a {
  margin: 0 0 0.8rem;
  max-width: 62rem;
}

/* Page secondaire / mentions */

.boo-plain {
  max-width: 48rem;
  background: var(--boo-surface);
  border: 3px solid var(--boo-ink);
  box-shadow: var(--boo-shadow);
  padding: 1.5rem;
}

.boo-plain h1 {
  margin: 0 0 1rem;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
}

/* Pied de page */

.boo-footer {
  background: var(--boo-ink);
  color: var(--boo-bg);
  border-top: 4px solid var(--boo-accent2);
}

.boo-footer-in {
  max-width: 88rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem 2rem;
  font-size: 0.92rem;
}

.boo-footer p {
  margin: 0;
}

.boo-footer-name {
  font-weight: 900;
  font-size: 1.15rem;
}

.boo-footer a {
  color: var(--boo-bg);
}

.boo-footer a:hover {
  background: var(--boo-bg);
  color: var(--boo-ink);
}

.boo-footer a:focus-visible {
  outline-color: var(--boo-bg);
  background: var(--boo-ink);
  color: var(--boo-bg);
}

/* Adaptation */

@media (max-width: 62rem) {
  .boo-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .boo-hero-photo {
    max-width: 30rem;
    box-shadow: 8px 8px 0 var(--boo-accent2);
  }

  .boo-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .boo-rail {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0.7rem;
  }

  .boo-rail ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .boo-rail li + li {
    border-top: 0;
  }

  .boo-rail a {
    white-space: nowrap;
    border: 2px solid var(--boo-ink);
    border-left-width: 2px;
    background: var(--boo-bg);
  }
}

@media (max-width: 40rem) {
  .boo-main {
    padding: 1rem 0.9rem 2.5rem;
  }

  .boo-sec,
  .boo-qa,
  .boo-plain {
    padding: 1.1rem 1rem 1.2rem;
    box-shadow: 4px 4px 0 var(--boo-ink);
  }

  .boo-spec div {
    border-left: 0;
    border-top: 2px solid var(--boo-ink);
  }

  .boo-spec div:first-child {
    border-top: 0;
  }

  .boo-header-in {
    padding: 0.6rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
