@font-face {
  font-family: Barlow Condensed;
  src: url(assets/barlow-condensed-700.woff2) format("woff2");
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: Barlow Condensed;
  src: url(assets/barlow-condensed-800.woff2) format("woff2");
  font-display: swap;
  font-weight: 800;
}
@font-face {
  font-family: DM Sans;
  src: url(assets/dm-sans-400-700.woff2) format("woff2");
  font-display: swap;
  font-weight: 400 700;
}
@font-face {
  font-family: Lobster;
  src: url(assets/lobster-400.woff2) format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #faf8ef;
  --white: #fffdf7;
  --green: #203d28;
  --dark: #183222;
  --lime: #dce895;
  --yellow: #fad25e;
  --sage: #e9edda;
  --ink: #192c21;
  --muted: #526254;
  --line: #d8ddcc;
  --body: "DM Sans", system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --script: "Lobster", Georgia, cursive;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, select, input { font: inherit; }
button { cursor: pointer; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #935009; outline-offset: 4px; }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }
.skip {
  position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .85rem 1rem; color: var(--ink);
  background: var(--yellow); transform: translateY(-180%);
}
.skip:focus { transform: translateY(0); }
.wrap { width: min(100% - 4.5rem, 83rem); margin-inline: auto; }
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 3.25rem; height: 3.25rem; object-fit: contain; }
.brand strong { display: block; font: 700 1.65rem/.95 var(--display); }
.brand small { display: block; font-size: .875rem; color: var(--muted); margin-top: .3rem; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.5rem); font-weight: 700; font-size: .95rem; }
.nav a:not(.button) { text-decoration: none; }
.nav a:not(.button):hover { text-decoration: underline; text-underline-offset: .3em; }
.button {
  display: inline-flex; justify-content: center; align-items: center; text-align: center; gap: .5rem;
  min-height: 2.9rem; padding: .6rem 1.12rem; border-radius: .4rem; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; line-height: 1.25;
}
.button.green { background: var(--green); color: var(--white); }
.button.green:hover { background: var(--dark); }
.button.yellow { background: var(--yellow); color: var(--ink); }
.button.yellow:hover { background: #ffe492; }
.button.ghost { background: transparent; border-color: #879581; }
.button.ghost:hover { background: var(--sage); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.kicker {
  margin: 0 0 .8rem; font-weight: 700; font-size: .875rem; line-height: 1.3;
  letter-spacing: .11em; text-transform: uppercase;
}
.hero { background: var(--green); color: var(--white); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr);
  max-width: 108rem; margin-inline: auto;
}
.hero-copy {
  padding: clamp(2.5rem, 5.6vw, 5.75rem) clamp(2rem, 3.5vw, 3.5rem) clamp(2.7rem, 5.6vw, 5.75rem)
    max(2.25rem, calc((100vw - 83rem) / 2), calc((100% - 55rem) / 2));
  align-self: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.button.hero-secondary { color: var(--white); border-color: #b8c8ab; }
.button.hero-secondary:hover { background: #395741; }
.hero .kicker { color: var(--lime); }
.hero h1 {
  font: 800 clamp(4.2rem, 7.45vw, 7.4rem)/.84 var(--display);
  letter-spacing: -.022em; margin: 0; text-transform: uppercase;
}
.hero h1 em {
  display: block; margin-top: .22em; font: 400 .57em/1.03 var(--script);
  color: var(--yellow); text-transform: none; letter-spacing: -.025em;
}
.hero-copy > p:not(.kicker) { max-width: 26rem; font-size: clamp(1rem, 1.35vw, 1.2rem); margin: 1.6rem 0 1.75rem; }
.hero-photo, .feature-photo, .event-photo { position: relative; overflow: hidden; margin: 0; }
.hero-photo img, .feature-photo img, .event-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel { position: relative; min-height: 100%; background: #4b6040; overflow: hidden; }
.carousel-photos, .carousel-photos .hero-photo { position: absolute; inset: 0; }
.hero-photo img { position: absolute; inset: 0; object-position: 57% center; }
.hero-photo-header-historique img { object-position: center 25%; }
.hero-photo-marathon-du-valais img { object-position: center 72%; }
.photo-caption {
  position: absolute; left: .85rem; bottom: .8rem; margin: 0; padding: .21rem .52rem;
  background: #17291fe8; color: #fffdf7; font-size: .8rem; border-radius: .22rem;
}
.hero-photo .photo-caption {
  bottom: 3.95rem; max-width: calc(100% - 1.7rem);
  font-size: .84rem; background: #17291fef;
}
.hero-photo .photo-caption span { display: block; color: #e0ebd7; font-size: .76rem; }
.carousel-controls {
  position: absolute; bottom: .8rem; left: .85rem;
  display: flex; align-items: center; gap: .12rem; max-width: calc(100% - 1.7rem);
  padding: .16rem .3rem; background: #17291f; color: var(--white); border-radius: .36rem;
}
.carousel-controls button {
  border: 0; color: inherit; background: transparent; min-height: 2.2rem;
  font-size: .875rem; font-weight: 700; padding: .25rem .46rem; border-radius: .2rem;
}
.carousel-controls button:hover { background: #3c5940; }
.carousel-controls [data-carousel-toggle] { color: var(--lime); margin-right: .2rem; }
.carousel-dots { display: flex; align-items: center; }
.carousel-controls .carousel-dot { min-width: 1.55rem; padding: 0; }
.carousel-dot::after {
  content: ""; display: inline-block; width: .58rem; height: .58rem;
  border: 1px solid var(--lime); border-radius: 50%;
}
.carousel-dot[aria-pressed="true"]::after { background: var(--yellow); border-color: var(--yellow); }
.season { background: var(--lime); }
.season-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; padding-block: .8rem; }
.season strong { text-transform: uppercase; font-weight: 700; font-size: .875rem; letter-spacing: .08em; }
.season p { margin: 0; }
.season strong + p { padding-left: 1rem; border-left: 1px solid #8f9d5e; }
main { scroll-margin-top: 1rem; }
.agenda { padding-block: clamp(2.75rem, 5vw, 5rem) clamp(3.3rem, 6vw, 5.5rem); scroll-margin-top: 1rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .9rem 1.2rem; }
.section-heading .button { flex-shrink: 0; }
.section-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
h2 { font: 800 clamp(2.5rem, 5.35vw, 5rem)/.93 var(--display); letter-spacing: -.02em; margin: 0; }
.filters { margin: 1.6rem 0 1.1rem; display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: end; }
.filter { display: grid; gap: .28rem; font-size: .875rem; font-weight: 700; }
.filter select, .filter input {
  background-color: var(--white); color: var(--ink); border: 1px solid #98a28e;
  border-radius: .4rem; min-height: 2.8rem; min-width: 9.7rem; padding: .45rem .7rem; font-weight: 500;
}
.filter select {
  appearance: none; padding-right: 2.1rem;
  background-image: linear-gradient(45deg, transparent 48%, var(--green) 50%),
    linear-gradient(135deg, var(--green) 50%, transparent 52%);
  background-position: calc(100% - 1rem) 51%, calc(100% - .7rem) 51%;
  background-size: .3rem .3rem; background-repeat: no-repeat;
}
.filter.search { width: min(19rem, 100%); }
.filters .reset { min-height: 2.8rem; background: transparent; text-decoration: underline; text-underline-offset: .18em; }
.results { margin: 0 0 1.25rem; color: var(--muted); font-size: .875rem; font-weight: 700; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.event-card {
  background: var(--white); border: 1px solid var(--line); border-radius: .65rem;
  overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.event-card:focus-within { outline: 3px solid #935009; outline-offset: 3px; }
.event-card:hover { border-color: #94a583; box-shadow: 0 5px 18px #223b1f18; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-link:focus-visible { outline: none; }
.card-media { position: relative; aspect-ratio: 1.93; overflow: hidden; background: var(--sage); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.date-stamp {
  position: absolute; top: .72rem; left: .72rem; background: var(--white); border-radius: .28rem;
  padding: .24rem .52rem; font-weight: 700; font-size: .875rem;
}
.card-text { padding: .94rem 1.03rem 1.12rem; flex: 1; display: flex; flex-direction: column; }
.card-place { color: var(--muted); font-size: .875rem; margin: 0 0 .35rem; }
.card-text h3 { font: 700 clamp(1.65rem, 2.6vw, 2.15rem)/.97 var(--display); margin: 0 0 .48rem; }
.card-text p:not(.card-place) { margin: 0 0 .75rem; }
.card-action { margin-top: auto; color: #375337; font-weight: 700; font-size: .875rem; }
.card-link:hover .card-action { text-decoration: underline; text-underline-offset: .2em; }
.no-results { background: var(--sage); border-radius: .5rem; padding: 1.2rem; }
.spirit { background: var(--sage); padding-block: clamp(2.9rem, 5vw, 4.5rem); }
.spirit-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.spirit-inner p:not(.kicker) { max-width: 36rem; margin-bottom: 0; }
.feature-photo { aspect-ratio: 1.62; border-radius: .65rem; background: #604324; }
.map-section { background: var(--sage); padding-block: clamp(2.8rem, 5vw, 4rem); }
.map-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .44fr);
  gap: 1rem; margin-top: 1.3rem; align-items: stretch;
}
.map-canvas {
  min-height: 29rem; background: #dce9e8; border: 1px solid #aab8a4; border-radius: .65rem;
  touch-action: pan-y; isolation: isolate;
}
.map-canvas .map-label {
  white-space: nowrap; font: 700 .84rem var(--body); color: #4c624d; pointer-events: none;
}
.map-city { pointer-events: none; }
.map-city-dot {
  position: absolute; left: -2px; top: -2px; width: 4px; height: 4px;
  border-radius: 50%; background: #4b6055;
}
.map-city-name {
  position: absolute; white-space: nowrap; padding-inline: 2px; color: #34493f;
  text-shadow: 0 0 3px var(--white), 0 0 3px var(--white);
  font: 700 .8rem/1.2 var(--body);
}
.map-point {
  border: 2px solid var(--white); border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 1px var(--green);
}
.map-point:hover, .map-point-active { background: var(--yellow); box-shadow: 0 0 0 2px var(--green); }
.map-panel {
  min-width: 0; background: var(--white); border: 1px solid var(--line);
  padding: 1rem 1.18rem; border-radius: .65rem;
}
.map-panel select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.map-panel h3 { font: 700 clamp(1.7rem, 3vw, 2.35rem)/1 var(--display); margin: 1.18rem 0 .55rem; }
.map-panel p { margin: .5rem 0; }
.map-panel .button { margin-top: .65rem; }
.map-help, .map-note { color: var(--muted); }
.map-panel .map-help { margin-top: 1rem; }
.map-note { margin: .8rem 0 0; font-size: .875rem; }
.map-date { font-weight: 700; }
.flyer-section { padding-block: clamp(2.8rem, 5vw, 4.3rem); border-bottom: 1px solid var(--line); }
.flyer-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, .6fr);
  align-items: center; gap: clamp(1.2rem, 4vw, 4rem);
}
.flyer-layout p { max-width: 31rem; margin: 1rem 0 1.3rem; }
.flyer-cover { margin: 0; width: min(100%, 14rem); justify-self: center; }
.flyer-cover img { border: 1px solid var(--line); border-radius: .35rem; box-shadow: 0 6px 16px #223b1f20; }
.flyer-cover figcaption { color: var(--muted); margin-top: .5rem; font-size: .875rem; text-align: center; }
.partners { padding-block: 2.3rem; }
.partners-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.partner {
  display: grid; grid-template-columns: 4.1rem 1fr; gap: .95rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: .55rem; padding: 1rem;
}
.partner img { max-height: 3.7rem; object-fit: contain; }
.partner h3 { font: 700 1.7rem/1 var(--display); margin: 0; }
.partner p { margin: .35rem 0 .12rem; }
.partner a { font-weight: 700; text-underline-offset: .17em; }
.contact-section { padding-block: clamp(2.8rem, 5vw, 4.2rem); border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: clamp(1.2rem, 5vw, 4.5rem); }
.contact-intro p { max-width: 34rem; }
.contact-advice { color: var(--muted); }
.contact-form {
  background: var(--white); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.6rem);
  border-radius: .65rem;
}
.contact-mode {
  margin: 0 0 1.15rem; padding: .55rem .75rem; border-radius: .25rem; background: var(--sage);
  font-size: .875rem; color: var(--ink);
}
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.contact-fields label { font-weight: 700; font-size: .93rem; min-width: 0; }
.contact-fields :is(input:not([type="checkbox"]), select, textarea) {
  display: block; width: 100%; color: var(--ink); background: var(--white); border: 1px solid #98a28e;
  border-radius: .35rem; min-height: 2.7rem; margin-top: .23rem; padding: .45rem .65rem; font-weight: 500;
}
.contact-fields textarea { resize: vertical; }
.contact-fields .full { grid-column: 1 / -1; }
.contact-fields .contact-consent { display: flex; align-items: start; gap: .55rem; font-weight: 500; }
.contact-consent input { flex: none; margin: .22rem 0 0; width: 1.1rem; height: 1.1rem; accent-color: var(--green); }
.required { color: #8c4017; }
.optional { color: var(--muted); font-weight: 500; font-size: .84rem; }
.contact-form .button { margin-top: 1rem; }
.contact-result { color: var(--dark); font-weight: 700; margin-bottom: 0; }
.footer { background: var(--dark); color: var(--white); padding-block: 1.6rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1.5rem; }
.footer p { margin: 0; }
.footer .brand strong { font-size: 1.5rem; }
.footer .brand small { color: #dce9cf; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: #e4ecd8; font-size: .875rem; }
.footer-links a { text-underline-offset: .2em; }
.footer .web-credit { flex-basis: 100%; border-top: 1px solid #526654; padding-top: .75rem; color: #e4ecd8; font-size: .875rem; }
.event-main { padding-block: 1.6rem 4rem; }
.breadcrumb { margin-bottom: 1rem; color: var(--muted); font-size: .875rem; font-weight: 700; }
.breadcrumb a { text-underline-offset: .2em; }
.event-hero { background: var(--green); color: var(--white); border-radius: .7rem; display: grid; grid-template-columns: 1fr 1.08fr; overflow: hidden; }
.event-hero-copy { align-self: center; padding: clamp(1.6rem, 4.2vw, 4.1rem); }
.event-hero .kicker { color: var(--lime); }
.event-hero h1 { font: 800 clamp(2.8rem, 5.15vw, 5.6rem)/.92 var(--display); margin: 0; letter-spacing: -.018em; }
.event-hero-copy > p:not(.kicker) { margin: 1rem 0 0; font-size: 1.12rem; }
.event-hero .event-place { color: #edf3dd; }
.event-photo { min-height: 25rem; background: #586b4b; }
.event-photo img { position: absolute; inset: 0; }
.event-content { margin-top: 2.15rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .46fr); align-items: start; gap: clamp(1.5rem, 5vw, 5.2rem); }
.event-text { max-width: 45rem; }
.event-text h2, .event-related h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: .55rem; }
.event-text h2:not(:first-child) { margin-top: 1.8rem; }
.event-text p { margin: 0 0 .9rem; }
.formats { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; margin: .85rem 0 0; }
.formats li { background: var(--sage); border-radius: 2rem; padding: .28rem .63rem; font-size: .875rem; font-weight: 700; }
.practical { background: var(--white); border: 1px solid var(--line); border-radius: .65rem; padding: 1.15rem 1.25rem; }
.practical h2 { font-size: 2rem; }
.practical dl { margin: .8rem 0 1.15rem; }
.practical dt { color: var(--muted); font-size: .875rem; }
.practical dd { margin: 0 0 .7rem; font-weight: 700; }
.practical .button { width: 100%; margin-bottom: .55rem; }
.practical .button:last-child { margin-bottom: 0; }
.event-note { border-left: .24rem solid #a4b66c; background: var(--sage); border-radius: .2rem; padding: .7rem .9rem; }
.event-related { border-top: 1px solid var(--line); margin-top: 2.65rem; padding-top: 1.4rem; }
.event-related .event-grid { margin-top: 1rem; }
@media (min-width: 95rem) { .hero-copy { padding-left: 5.5rem; } }
@media (max-width: 65rem) {
  .wrap { width: min(100% - 3rem, 83rem); }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .hero-copy { padding-left: 1.5rem; }
}
@media (max-width: 52rem) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(3.6rem, 8vw, 5rem); }
  .event-content { grid-template-columns: 1fr; }
  .practical { width: min(100%, 31rem); }
  .event-photo { min-height: 18rem; }
  .map-layout { grid-template-columns: 1fr; }
  .map-canvas { min-height: 25rem; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2rem); }
  .topbar-inner { min-height: 4.3rem; flex-wrap: wrap; padding-block: .55rem .62rem; gap: .55rem 1rem; }
  .brand img { width: 2.65rem; height: 2.65rem; }
  .brand strong { font-size: 1.5rem; }
  .nav { gap: .4rem 1rem; }
  .nav .button { min-height: 2.55rem; padding: .4rem .63rem; }
  .nav .spirit-link { display: none; }
  .hero-inner, .spirit-inner, .event-hero, .partners-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.1rem 1rem 2rem; }
  .hero-copy > p:not(.kicker) { margin: 1.15rem 0 1.2rem; }
  .hero-carousel { min-height: 0; aspect-ratio: 1.35; }
  .hero h1 { font-size: clamp(3.45rem, 12.1vw, 5rem); }
  .season strong + p { padding-left: 0; border-left: 0; }
  .filters { gap: .6rem; }
  .filter:not(.search) { flex: 1; min-width: 0; }
  .filter select { min-width: 0; width: 100%; }
  .filter.search { width: 100%; }
  .event-grid { gap: .85rem; }
  .event-photo { min-height: 0; aspect-ratio: 1.55; }
  .map-canvas { min-height: 23rem; }
  .flyer-layout { grid-template-columns: 1fr; }
  .flyer-cover { justify-self: start; }
}
@media (max-width: 29rem) {
  .event-grid { grid-template-columns: minmax(0, 1fr); }
  .card-text h3 { font-size: 1.85rem; }
  .topbar-inner { column-gap: .55rem; }
  .topbar .brand { gap: .43rem; }
  .topbar .brand small { font-size: .77rem; }
  .nav { gap: .45rem .72rem; }
  .nav .map-link, .nav .contact-link { font-size: .9rem; }
  .nav .button { font-size: .875rem; }
  .contact-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
