/* === Design tokens === */
:root {
  --c-burgundy: #401223;
  --c-burgundy-2: #611510;
  --c-red: #c44e17;
  --c-red-2: #c22a20;
  --c-purple: #35183f;
  --c-purple-2: #601c3c;
  --c-yellow: #fef431;
  --c-blue: #226fdb;
  --c-blue-deep: #0e3a78;
  --c-ink: #1a1a1a;
  --c-ink-soft: #4a4a4a;
  --c-paper: #ffffff;
  --c-cream: #fdf7f2;
  --c-line: rgba(0, 0, 0, 0.08);
  --c-shadow: rgba(20, 12, 28, 0.12);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px var(--c-shadow);
  --shadow: 0 6px 20px var(--c-shadow);
  --shadow-lg: 0 18px 40px rgba(20, 12, 28, 0.18);

  --container: 1200px;
  --header-h: 76px;

  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Verdana", ui-sans-serif, system-ui, sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-red); text-decoration: none; transition: color .18s; }
a:hover { color: var(--c-burgundy); text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* === Header / nav === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-ink); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-family: var(--font-display); font-size: 1rem; color: var(--c-burgundy); }
.brand-tagline { font-size: 0.78rem; color: var(--c-ink-soft); }

.primary-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.primary-nav a {
  color: var(--c-ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a:hover { background: var(--c-cream); color: var(--c-burgundy); text-decoration: none; }
.primary-nav a.cta {
  background: var(--c-burgundy);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
}
.primary-nav a.cta:hover { background: var(--c-red); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; margin-left: auto;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--c-burgundy); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* === Hero === */
.hero {
  position: relative;
  color: #fff;
  padding: 110px 24px 110px;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(560px, 78vh, 760px);
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  display: block;
  background: linear-gradient(135deg, var(--c-burgundy) 0%, var(--c-purple) 45%, var(--c-blue-deep) 100%);
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(64, 18, 35, .92) 0%, rgba(64, 18, 35, .78) 38%, rgba(53, 24, 63, .55) 70%, rgba(53, 24, 63, .35) 100%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45) 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 16px);
  opacity: .5;
  pointer-events: none;
}
.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero-content h1, .hero-content .hero-lead { max-width: 60ch; }

.hero-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 32px;
}
.hero-logo {
  height: 200px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}
@media (max-width: 740px) {
  .hero-logos { gap: 24px; margin-bottom: 22px; }
  .hero-logo { height: 130px; }
}
.eyebrow {
  display: inline-block;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.14);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.2);
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero-lead { max-width: 56ch; font-size: 1.15rem; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn-primary {
  background: var(--c-yellow); color: var(--c-burgundy);
  box-shadow: 0 6px 18px rgba(254, 244, 49, .35);
}
.btn-primary:hover { transform: translateY(-2px); background: #fff8a3; color: var(--c-burgundy); text-decoration: none; }
.btn-ghost {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

.hero-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px; max-width: 760px;
  padding: 18px; border-radius: var(--radius);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-meta > div { display: flex; flex-direction: column; gap: 3px; }
.hero-meta strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-yellow); }
.hero-meta a { color: #fff; }
.hero-meta a:hover { color: var(--c-yellow); }

/* === Sections === */
.section { padding: 88px 0; }
.section-intro { padding: 80px 0 20px; text-align: center; }
.section-lead { max-width: 60ch; color: var(--c-ink-soft); margin-left: auto; margin-right: auto; font-size: 1.08rem; }

.activity { background: var(--c-paper); }
.activity-alt {
  background: var(--c-cream);
  position: relative;
  isolation: isolate;
}
.activity-alt::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(45deg, rgba(64, 18, 35, 0.05) 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.contact {
  position: relative;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(45deg, rgba(64, 18, 35, 0.05) 0 2px, transparent 2px 16px);
  pointer-events: none;
}

.activity-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.activity-grid.reverse .activity-text { order: 2; }
.activity-grid.reverse .activity-media { order: 1; }
.activity-tag {
  display: inline-block;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--c-red); padding: 5px 12px;
  background: rgba(196, 78, 23, .1);
  border-radius: 999px;
  margin-bottom: 14px;
}
.activity-media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Carrousel d'images */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #111;
}
.slideshow .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  opacity: 0;
  transition: opacity .9s ease-in-out;
  z-index: 1;
}
.slideshow .slide.is-active {
  opacity: 1;
  z-index: 2;
}
.slideshow-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.slideshow-dots .dot {
  width: 10px; height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.slideshow-dots .dot.is-active {
  background: var(--c-yellow);
  transform: scale(1.3);
}
.slideshow-dots .dot:hover { background: rgba(255, 255, 255, 0.85); }

/* Placeholder media frames pour photos manquantes */
.media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px;
  color: #fff;
  isolation: isolate;
}
.media-frame::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.15), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
}
.media-frame > * { position: relative; z-index: 1; }
.placeholder-emoji { font-size: clamp(4rem, 12vw, 7rem); filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.placeholder-label {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(0,0,0,.3);
  padding: 6px 16px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.media-buggy    { background: linear-gradient(135deg, #5a3a1f 0%, #3a2110 100%); }
.media-paintball{ background: linear-gradient(135deg, #1f5a35 0%, #2a8054 50%, #c44e17 100%); }
.media-minigolf { background: linear-gradient(135deg, #2a8054 0%, #4ab17e 100%); }
.media-camping  { background: linear-gradient(135deg, #2d4a2a 0%, #6b8e4f 100%); }

.media-kart {
  background: linear-gradient(135deg, var(--c-burgundy) 0%, var(--c-purple) 100%);
  padding: 24px;
}
.media-kart .media-logo {
  width: 70%; max-width: 360px;
  height: auto; aspect-ratio: auto;
  box-shadow: none; border-radius: 0;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.4));
}
.media-kart .media-flag {
  position: absolute; bottom: 12px; right: 12px;
  width: 38%; max-width: 200px;
  height: auto; aspect-ratio: auto;
  box-shadow: none; border-radius: 0;
  z-index: 2;
}
.card-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.activity-alt .info-card { background: #fff; }
.info-card.highlight {
  background: linear-gradient(135deg, var(--c-burgundy), var(--c-purple));
  color: #fff;
  border-color: transparent;
}
.info-card.highlight h3 { color: var(--c-yellow); }
.info-card h3 { margin-bottom: 8px; color: var(--c-burgundy); }
.info-card.highlight h3 { color: var(--c-yellow); }
.info-card ul { margin: 0; padding-left: 18px; }
.info-card li { margin-bottom: 4px; }

/* === Cantine === */
.cantine {
  background: linear-gradient(135deg, var(--c-red) 0%, var(--c-burgundy) 100%);
  color: #fff;
}
.cantine h2 { color: #fff; }
.cantine-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.cantine-art {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--c-yellow);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transform: rotate(-6deg);
  padding: 18px;
}
.cantine-art img { max-width: 100%; max-height: 100%; }

/* === Services === */
.services { background: #fafbff; }
.services h2 { text-align: center; }
.services-grid {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.services-grid li {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  font-weight: 600;
  transition: transform .18s, box-shadow .18s;
}
.services-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.services-grid .ico {
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.services-grid .ico-emoji { font-size: 1.8rem; width: 36px; text-align: center; }

/* === Video === */
.video h2 { text-align: center; }
.video-frame {
  position: relative; padding-top: 56.25%;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  margin-top: 24px;
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* === Contact === */
.contact { background: var(--c-cream); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: stretch;
}
.contact-block {
  background: #fff; border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  font-style: normal;
}
.contact-block strong {
  display: block; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-red);
  margin-bottom: 6px;
}
.map-link { display: inline-block; margin-top: 10px; font-weight: 600; }
.contact-map {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
  background: #eee;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* === Footer === */
.site-footer {
  background: var(--c-burgundy);
  color: #ece6ec;
  padding: 60px 0 0;
}
.site-footer a { color: var(--c-yellow); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}
.footer-logo {
  width: 110px; background: #fff; padding: 10px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.footer-grid strong {
  display: block; color: #fff;
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .85rem; margin-bottom: 10px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 50px;
  padding: 20px 24px;
  text-align: center;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}

/* === Back to top === */
.back-to-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 40;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--c-burgundy); color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  font-size: 1.4rem; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--c-red); transform: translateY(-3px); text-decoration: none; color: #fff; }

/* === Responsive === */
@media (max-width: 960px) {
  .activity-grid { grid-template-columns: 1fr; gap: 30px; }
  .activity-grid.reverse .activity-text { order: 0; }
  .activity-grid.reverse .activity-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 12px 16px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--c-line); }
  .primary-nav a.cta { margin-top: 8px; border-bottom: 0; text-align: center; }
  .header-inner { position: relative; }
  .brand-tagline { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 24px 80px; }
  .card-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cantine-inner { grid-template-columns: 1fr; text-align: center; }
  .cantine-art { margin: 0 auto; width: 140px; height: 140px; font-size: 4.5rem; }
}

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