/* =========================================================================
   FC St-Aubin/Vallon — Design system (Studio Riviera)
   Palette réelle du club : vert émeraude + vert clair + noir + gazon
   ========================================================================= */
:root {
  --green: #12a150;
  --green-600: #0f8f47;
  --green-700: #0b7238;
  --green-bright: #22c55e;
  --green-light: #9bd3a0;
  --green-mist: #e8f4ec;
  --ink: #14181a;
  --black: #201d1e;
  --paper: #ffffff;
  --paper-2: #f5f8f5;
  --line: #e4ebe5;
  --muted: #5d6b62;
  --night: #0a1610;      /* fond sombre vert-noir */
  --night-2: #0e1f15;
  --night-line: rgba(255, 255, 255, 0.1);

  --maxw: 1200px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px -22px rgba(12, 40, 22, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(12, 40, 22, 0.28);

  --font-display: "Anton", "Archivo", system-ui, sans-serif;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overscroll-behavior-y: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* jamais hidden avec Lenis */
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---- Typo ---------------------------------------------------------------- */
h1, h2, h3 { line-height: 1.02; letter-spacing: -0.01em; font-weight: 800; }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 0.92;
}
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--green-light); }
.eyebrow.on-dark::before { background: var(--green-bright); }

/* ---- Layout -------------------------------------------------------------- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--dark { background: var(--night); color: #eaf3ec; }
.section--dark .muted { color: #9fb4a6; }
.section--mist { background: var(--paper-2); }
.center { text-align: center; }
.muted { color: var(--muted); }
.team-coach { margin-top: .9rem; padding-top: .85rem; border-top: 1px solid rgba(255,255,255,0.14); font-size: .78rem; line-height: 1.55; font-weight: 600; color: #9fb4a6; }
.team-coach b { color: #fff; font-weight: 700; }
.group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.group-list span { display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.group-list span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-light); flex: none; }
.group-list .is-club { background: var(--green-mist); border-color: var(--green-light); color: var(--green-700); font-weight: 700; }
.group-list .is-club::before { background: var(--green); }

/* ---- Timeline (histoire) ------------------------------------------------- */
.timeline { position: relative; max-width: 780px; margin: 2.6rem auto 0; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--green), var(--green-light)); }
.tl-item { position: relative; padding: 0 0 2rem 2.9rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 2px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--green-light); }
.tl-item .tl-year { font-family: var(--font-display); font-size: 1.5rem; color: var(--green-700); line-height: 1; letter-spacing: .01em; }
.tl-item h3 { font-size: 1.1rem; margin: .35rem 0 .35rem; }
.tl-item p { color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ---- Encadrement / staff ------------------------------------------------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: .8rem; }
.staff-cell { padding: 1.1rem 1.3rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; }
.staff-cell .cat { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); font-weight: 800; }
.staff-cell b { display: block; margin-top: .35rem; font-size: 1.02rem; color: var(--ink); }
.staff-cell span.sub { display: block; margin-top: .15rem; font-size: .84rem; color: var(--muted); }

/* ---- Sponsors : mur de logos --------------------------------------------- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 1rem; margin-top: 2rem; }
.logo-cell { display: flex; align-items: center; justify-content: center; padding: 1.6rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; min-height: 118px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.logo-cell:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(0,0,0,.28); border-color: var(--green-light); }
.logo-cell img { max-width: 100%; max-height: 66px; width: auto; height: auto; object-fit: contain; }
.sponsor-hero-card { display: grid; grid-template-columns: 120px 1fr; gap: 1.6rem; align-items: center; padding: 1.8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.sponsor-hero-card .logo-box { display: flex; align-items: center; justify-content: center; min-height: 96px; }
.sponsor-hero-card .logo-box img { max-width: 100%; max-height: 90px; object-fit: contain; }
.sponsor-hero-card h3 { font-size: 1.25rem; margin: 0 0 .3rem; }
.sponsor-hero-card p { color: var(--muted); font-size: .93rem; line-height: 1.6; }
.sponsor-hero-card .lk { display: inline-block; margin-top: .5rem; font-weight: 700; font-size: .88rem; color: var(--green-700); }
@media (max-width: 560px) { .sponsor-hero-card { grid-template-columns: 1fr; text-align: center; } .sponsor-hero-card .logo-box { min-height: 72px; } }

/* ---- Cotisations (Club des Cents) ---------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; max-width: 760px; margin-inline: auto; }
.price-card { padding: 2rem 1.8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.price-card .cat { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-700); font-weight: 800; }
.price-card .price { font-family: var(--font-display); font-size: 3rem; line-height: 1; margin: .6rem 0 .2rem; color: var(--ink); }
.price-card .price span { font-size: 1.4rem; }
.price-card .per { font-size: .85rem; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.price-card li { position: relative; padding-left: 1.5rem; font-size: .92rem; color: var(--muted); }
.price-card li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.price-card--feat { border-color: var(--green-light); background: var(--green-mist); }

/* ---- Temps forts (highlight) --------------------------------------------- */
.highlight-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; align-items: center; }
.highlight-band .big-num { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8.5rem); line-height: .9; color: var(--green-bright); }
@media (max-width: 820px) { .highlight-band { grid-template-columns: 1fr; gap: 1.4rem; } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.section--dark .lead { color: #b6cabc; }

.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head.center { margin-inline: auto; }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  line-height: 0.94;
  margin: 0.5rem 0 0.8rem;
}
.sec-head .accent { color: var(--green); }
.section--dark .sec-head .accent { color: var(--green-bright); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --bg: var(--green);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid var(--bg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  box-shadow: 0 12px 26px -12px rgba(18, 161, 80, 0.6);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -14px rgba(18, 161, 80, 0.7); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-700); box-shadow: none; }
.btn--light { --bg: #fff; --fg: var(--ink); box-shadow: none; }
.btn--outline-light {
  --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,0.35); box-shadow: none;
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---- Header / Nav -------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header__inner {
  width: min(var(--maxw), 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(12, 40, 22, 0.5);
}
.site-header.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 800; }
.brand img { width: 46px; height: 46px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt b { font-family: var(--font-head); font-size: 1.02rem; letter-spacing: -0.01em; }
.brand__txt span { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.site-header:not(.scrolled) .brand__txt b,
.site-header:not(.scrolled) .nav a { color: #fff; }
.site-header:not(.scrolled) .brand__txt span { color: rgba(255,255,255,0.75); }
.site-header:not(.scrolled).on-light .brand__txt b,
.site-header:not(.scrolled).on-light .nav a { color: var(--ink); }
.site-header:not(.scrolled).on-light .brand__txt span { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green) !important; }
.header-cta { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 8px; z-index: 120;
  }
  .nav-toggle span { width: 26px; height: 2px; background: currentColor; transition: 0.3s; }
  .site-header:not(.scrolled):not(.on-light) .nav-toggle { color: #fff; }
  .mobile-nav {
    position: fixed; inset: 0; z-index: 110;
    background: var(--night);
    color: #fff;
    display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
    padding: 2rem 8vw;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav a {
    font-family: var(--font-display); text-transform: uppercase;
    font-size: clamp(2rem, 9vw, 3rem); padding: 0.3rem 0;
    color: #fff; opacity: 0.9;
  }
  .mobile-nav a[aria-current="page"] { color: var(--green-bright); }
  .mobile-nav .btn { margin-top: 1.4rem; align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}
.mobile-nav { display: none; }
@media (max-width: 940px) { .mobile-nav { display: flex; } }

/* ---- Ballon 3D : calque de fond fixe qui traverse la page (effet Romont) -- */
.ballbg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;               /* derrière le contenu, au-dessus du fond du body */
  pointer-events: none;
  opacity: 0.4;              /* discret : accent de fond, pas objet dominant */
}
#ball3d { display: block; }
body::before {              /* lueur douce derrière le ballon (profondeur du hero) */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(85% 65% at 72% 8%, var(--green-mist), transparent 60%);
}
.hero__fallback { display: grid; place-items: center; }
.hero__fallback img { width: min(46vw, 360px); opacity: 0.45; filter: drop-shadow(0 30px 50px rgba(11,90,52,0.22)); }

/* ---- Hero clair (le ballon voyage derrière) ------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  color: var(--ink);
  background: transparent;
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(var(--maxw), 92vw);
  margin-inline: auto;
  max-width: 780px;
  padding-top: 6rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  line-height: 0.9;
  margin: 1rem 0;
}
.hero h1 .accent { color: var(--green); }
.hero .lead { color: var(--muted); max-width: 54ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  margin-top: 2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero__meta div b { font-family: var(--font-display); font-size: 1.9rem; display: block; color: var(--ink); }
.hero__meta div span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 2;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero__scroll .dot { width: 22px; height: 34px; border: 1.5px solid var(--green-light); border-radius: 12px; position: relative; }
.hero__scroll .dot::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 6px; background: var(--green); border-radius: 2px;
  animation: scrolldot 1.6s var(--ease) infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} }
@media (prefers-reduced-motion: reduce){ .hero__scroll .dot::after{ animation:none } }

@media (max-width: 880px) {
  .hero__inner { padding-top: 7rem; }
  .ballbg { opacity: 0.28; }   /* ballon encore plus discret sur petit écran */
}

/* ---- Match banner -------------------------------------------------------- */
.matchband { background: var(--night-2); color: #eaf3ec; }
.matchband__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem,3vw,3rem); align-items: stretch; padding: clamp(1.6rem,3vw,2.4rem) 0; }
.matchcard { display: grid; gap: 0.7rem; }
.matchcard__tag { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-light); font-weight: 700; }
.matchcard__teams { display: flex; align-items: center; gap: 1rem; }
.matchcard__team { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.matchcard__team img { width: 34px; height: 34px; object-fit: contain; background:#fff; border-radius: 8px; padding: 3px; }
.matchcard__score { font-family: var(--font-display); font-size: 1.8rem; padding: 0 0.4rem; }
.matchcard__meta { font-size: 0.85rem; color: #9fb4a6; }
.matchband__div { width: 1px; background: var(--night-line); }
@media (max-width: 760px){ .matchband__inner{ grid-template-columns: 1fr } .matchband__div{ display:none } .matchcard{ padding: 1rem 0; border-top:1px solid var(--night-line) } .matchcard:first-child{ border:0 } }

/* ---- Stats / counters ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--green); display: block; line-height: 1; }
.section--dark .stat b { color: var(--green-bright); }
.stat span { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 0.4rem; display: block; }
.section--dark .stat span { color: #9fb4a6; }
@media (max-width: 620px){ .stats{ grid-template-columns: repeat(2,1fr); gap:2rem } }

/* ---- Split (image + text) ------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 4rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; background: #c9ddce; }
.split__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.split__media--frame { aspect-ratio: 4/3; }
@media (max-width: 820px){ .split{ grid-template-columns: 1fr } .split--rev .split__media{ order: -1 } }

/* ---- Team cards ---------------------------------------------------------- */
.teams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.team-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.7rem;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden;
  background: linear-gradient(160deg, var(--night-2), #08130c);
  border: 1px solid var(--night-line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  isolation: isolate;
}
.team-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 80% at 80% 0%, rgba(34,197,94,0.35), transparent 60%);
  opacity: 0.9;
}
.team-card::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-bright), var(--green-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.team-card:hover::after { transform: scaleX(1); }
.team-card .cat { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-light); font-weight: 700; }
.team-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; margin: 0.4rem 0 0.5rem; }
.team-card p { color: #b6cabc; font-size: 0.92rem; }
.team-card .num {
  position: absolute; top: 1.1rem; right: 1.3rem;
  font-family: var(--font-display); font-size: 3.2rem; color: rgba(255,255,255,0.08);
  z-index: -1;
}
@media (max-width: 860px){ .teams-grid{ grid-template-columns: repeat(2,1fr) } }
@media (max-width: 540px){ .teams-grid{ grid-template-columns: 1fr } }

/* ---- Standings table ----------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-soft); }
table.standings { width: 100%; border-collapse: collapse; min-width: 520px; }
.standings th, .standings td { padding: 0.85rem 1rem; text-align: center; font-size: 0.92rem; }
.standings th { background: var(--paper-2); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; color: var(--muted); }
.standings td:nth-child(2), .standings th:nth-child(2) { text-align: left; }
.standings tbody tr { border-top: 1px solid var(--line); transition: background 0.2s; }
.standings tbody tr:hover { background: var(--green-mist); }
.standings .pos { font-family: var(--font-display); color: var(--muted); }
.standings tr.is-club { background: var(--green-mist); }
.standings tr.is-club td { font-weight: 700; }
.standings tr.is-club .pos { color: var(--green); }
.standings .club-badge { display: inline-flex; align-items: center; gap: 0.55rem; }
.standings .club-badge img { width: 24px; height: 24px; }
.standings .pts { font-weight: 800; color: var(--green-700); }

/* ---- Sponsors ------------------------------------------------------------ */
.sponsors-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sponsors-track { display: flex; gap: 3.5rem; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.sponsors-track img { height: 46px; width: auto; object-fit: contain; opacity: 0.85; transition: opacity 0.3s, filter 0.3s; filter: grayscale(1); }
.section--dark .sponsors-track img { filter: grayscale(1) brightness(0) invert(1); opacity: 0.7; }
.sponsors-track img:hover { opacity: 1; filter: none; }
.section--dark .sponsors-track img:hover { filter: brightness(0) invert(1); opacity: 1; }
.sponsors-marquee:hover .sponsors-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .sponsors-track{ animation: none; flex-wrap: wrap; justify-content:center } }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative; overflow: clip;
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4.5rem);
  color: #fff;
  background: linear-gradient(150deg, var(--green-700), var(--green) 55%, var(--green-bright));
  box-shadow: var(--shadow);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 120% at 90% 10%, rgba(255,255,255,0.22), transparent 55%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 0.95; }
.cta-band p { max-width: 52ch; color: rgba(255,255,255,0.9); margin: 0.8rem 0 1.6rem; }

/* ---- Feature list -------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform 0.4s var(--ease), border-color 0.3s; }
.section--dark .feature { background: var(--night-2); border-color: var(--night-line); }
.feature:hover { transform: translateY(-4px); border-color: var(--green-light); }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-mist); color: var(--green-700); margin-bottom: 1rem; }
.section--dark .feature .ic { background: rgba(34,197,94,0.14); color: var(--green-bright); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.94rem; }
.section--dark .feature p { color: #9fb4a6; }
@media (max-width: 820px){ .features{ grid-template-columns: 1fr } }

/* ---- Page hero (sub pages) ---------------------------------------------- */
.page-hero {
  position: relative; padding: clamp(8rem, 16vw, 12rem) 0 clamp(3rem, 6vw, 5rem);
  color: #fff; overflow: clip;
  background: linear-gradient(180deg, #071009, #0b2013);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(80% 120% at 85% 0%, rgba(34,197,94,0.25), transparent 55%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 0.92; margin: 0.8rem 0; }
.page-hero h1 .accent { color: var(--green-bright); }
.page-hero .lead { color: #c3d8ca; }
.crumbs { font-size: 0.82rem; color: #8fa896; letter-spacing: 0.04em; }
.crumbs a:hover { color: var(--green-bright); }

/* ---- Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px){ .contact-grid{ grid-template-columns: 1fr } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff; transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(18,161,80,0.12);
}
.info-card { background: var(--night); color: #eaf3ec; border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); }
.info-line { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-top: 1px solid var(--night-line); }
.info-line:first-of-type { border-top: 0; }
.info-line .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: rgba(34,197,94,0.14); color: var(--green-bright); display: grid; place-items: center; }
.info-line .ic svg { width: 20px; height: 20px; }
.info-line b { display: block; }
.info-line span { color: #9fb4a6; font-size: 0.92rem; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: #060d09; color: #c7d6cb; padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand b { font-family: var(--font-head); font-size: 1.1rem; color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a:hover { color: var(--green-bright); }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.84rem; color: #7e9384; }
.footer-bottom a { color: var(--green-light); }
.social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); display: grid; place-items: center; transition: 0.3s; }
.social a:hover { background: var(--green); border-color: var(--green); }
.social svg { width: 20px; height: 20px; }
@media (max-width: 820px){ .footer-grid{ grid-template-columns: 1fr 1fr } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr } }

/* ---- Reveal animations (IntersectionObserver + CSS, fallback = visible) --- */
[data-reveal] { opacity: 1; }
.js [data-reveal]:not([data-reveal-group]) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].in:not([data-reveal-group]) { opacity: 1; transform: none; }
/* Groupes : les enfants apparaissent en cascade */
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal-group].in > * { opacity: 1; transform: none; }
.js [data-reveal-group].in > *:nth-child(1) { transition-delay: 0.04s; }
.js [data-reveal-group].in > *:nth-child(2) { transition-delay: 0.11s; }
.js [data-reveal-group].in > *:nth-child(3) { transition-delay: 0.18s; }
.js [data-reveal-group].in > *:nth-child(4) { transition-delay: 0.25s; }
.js [data-reveal-group].in > *:nth-child(5) { transition-delay: 0.32s; }
.js [data-reveal-group].in > *:nth-child(6) { transition-delay: 0.39s; }
.js [data-reveal-group].in > *:nth-child(7) { transition-delay: 0.46s; }
.js [data-reveal-group].in > *:nth-child(8) { transition-delay: 0.53s; }
@media (prefers-reduced-motion: reduce){
  .js [data-reveal], .js [data-reveal-group] > * { opacity:1 !important; transform:none !important; transition:none !important; }
}

/* credit */
.credit { text-align: center; font-size: 0.8rem; color: #6f8577; }
.credit a { color: var(--green-light); }
