/* Reset + fondations typographiques, Parc Arbre Aventure */

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  min-height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1400px 480px at 8% 8%, oklch(87% 0.11 132 / 0.5), transparent 58%),
    radial-gradient(1000px 420px at 100% 18%, oklch(86% 0.08 205 / 0.42), transparent 62%),
    repeating-linear-gradient(112deg, oklch(76% 0.09 124 / 0.08) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, oklch(98% 0.026 112) 0, var(--color-bg) 24rem),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Filet de sécurité : un élément qui déborde légèrement ne doit jamais
     faire apparaître une scrollbar horizontale sur toute la page. */
  overflow-x: hidden;
}

img,
picture,
video {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-leaf);
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-headline); }
h3 { font-size: var(--fs-title); }

main {
  flex: 1 0 auto;
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 72vh 0 auto;
  height: 34rem;
  background:
    radial-gradient(640px 220px at 12% 30%, oklch(78% 0.13 130 / 0.22), transparent 72%),
    radial-gradient(820px 240px at 90% 42%, oklch(86% 0.08 205 / 0.28), transparent 70%);
  pointer-events: none;
}

p {
  max-width: 70ch;
  margin: 0 0 var(--space-sm);
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

ul, ol {
  padding-left: 1.25em;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.container {
  position: relative;
  z-index: 40;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-md); }
}

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

.label {
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Variante sans majuscules, pour les libellés contenant des liens/emails
   qui doivent rester lisibles/cliquables tels quels (ex. contacts partenaires). */
.label--normal-case {
  text-transform: none;
  letter-spacing: normal;
}

/* Skip link : accessibilité clavier */
.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space-sm);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 0.6em 1em;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease-out-expo);
}

.skip-link:focus {
  top: var(--space-sm);
}
