/* Pages guides / sports / à propos — cohérence avec le site principal */
:root {
  --night: #180e06;
  --rock: #3d1e0a;
  --earth: #7a3820;
  --primary: #a85424;
  --sun: #e8a040;
  --snow: #fdf6ee;
  --text: #3a1808;
  --muted: #5c3014;
  --border: #e8d8c0;
  --water: #3a6a80;
  --water-deep: #2a4a60;
  --footer-link: #e8c8a8;
  --footer-muted: #ddb898;
  --focus-ring: #1a5a8a;
  --font: "DM Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--snow);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

nav.content-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 60px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo span {
  font-weight: 300;
  color: var(--primary);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--primary);
}

/* ─── Mobile nav drawer (guides, sports, à propos) ───────────────────── */
.nav-drawer-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  margin: 0 -8px 0 auto;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: var(--text);
}

.nav-drawer-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-drawer-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor;
}

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(24, 14, 6, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
}

body.nav-drawer-active {
  overflow: hidden;
}

@media (min-width: 769px) {
  .has-nav-drawer .nav-drawer-toggle,
  .has-nav-drawer .nav-drawer-backdrop {
    display: none !important;
  }

  .has-nav-drawer .nav-menu-wrap {
    margin-left: auto;
  }

  .has-nav-drawer .nav-menu-wrap .nav-links {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  /*
   * backdrop-filter sur <nav> crée un bloc d’ancrage : les descendants position:fixed
   * se placent par rapport à la barre (~60px), pas au viewport → menu invisible.
   */
  nav.content-nav.has-nav-drawer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(253, 246, 238, 0.98);
  }

  .has-nav-drawer .nav-drawer-toggle {
    display: inline-flex;
    position: relative;
    z-index: 202;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    margin: 0 0 0 auto;
    border: 1.5px solid var(--border);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 1px 2px rgba(24, 14, 6, 0.06);
  }

  .has-nav-drawer .nav-drawer-bars {
    width: 22px;
    height: 2.5px;
    background: var(--text);
    box-shadow: 0 8px 0 var(--text), 0 -8px 0 var(--text);
  }

  .has-nav-drawer .nav-inner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .has-nav-drawer .nav-drawer-backdrop:not([hidden]) {
    display: block;
  }

  .has-nav-drawer .nav-menu-wrap {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    background: var(--snow);
    box-shadow: -8px 0 32px rgba(24, 14, 6, 0.12);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .has-nav-drawer .nav-drawer-backdrop {
    z-index: 200;
  }

  .has-nav-drawer.nav-drawer-open .nav-menu-wrap {
    transform: translateX(0);
  }

  .has-nav-drawer .nav-menu-wrap .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 72px 24px 24px;
    max-width: none;
  }

  .has-nav-drawer .nav-menu-wrap .nav-links a {
    font-size: 16px;
  }
}

.sortie-meta {
  font-size: 14px;
  color: var(--muted);
  margin: -0.35rem 0 0.75rem;
}

main.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

.doc-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 0.5px solid var(--border);
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--water);
  margin-bottom: 10px;
}

h1.doc-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--night);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 720px;
}

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--night);
  margin: 2rem 0 0.75rem;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--primary);
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--earth);
  margin: 1.5rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.75;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.article-body li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.65;
}

.article-body li::marker {
  color: var(--primary);
}

.article-body a {
  color: var(--primary);
}

.article-body a:hover {
  text-decoration: underline;
}

.callout {
  background: #faf3e8;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--muted);
}

.callout strong {
  color: var(--earth);
}

.cta-box {
  margin-top: 40px;
  padding: 24px;
  background: linear-gradient(135deg, #faf3e8 0%, #fff 100%);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.cta-box p {
  margin-bottom: 12px;
  font-size: 15px;
}

.cta-box a.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  font-size: 15px;
}

.cta-box a.btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

/* Titres de section sur la page hub /guides/ */
.hub-section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--water);
  margin: 36px 0 12px;
  line-height: 1.35;
  border: none;
  padding: 0;
}

main.page > h2.hub-section-title {
  color: var(--water);
}

.hub-section-title:first-of-type {
  margin-top: 8px;
}

.hub-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.hub-grid.tight-top {
  margin-top: 0;
}

@media (min-width: 600px) {
  .hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hub-card {
  display: block;
  padding: 20px 22px;
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hub-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(168, 84, 36, 0.12);
}

.hub-card h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--night);
  border: none;
  padding: 0;
}

.hub-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

footer.content-footer {
  background: var(--rock);
  padding: 32px 24px;
  text-align: center;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #f0dcc0;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.footer-logo span {
  font-weight: 300;
  color: var(--sun);
}

.content-footer p {
  font-size: 13px;
  color: var(--footer-muted);
}

.content-footer a {
  color: var(--footer-link);
  text-decoration: none;
}

.content-footer a:hover {
  text-decoration: underline;
}

.content-footer .footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
