/* ===== Variables ===== */
:root {
  --green: #93b17f;          /* logo / accent sage green */
  --green-dark: #6b8f4e;     /* headings */
  --blue: #3d5a80;           /* back-to-top button */
  --bg: #ffffff;
  --bg-alt: #f4f5f6;         /* light gray sections */
  --text: #2b2b2b;
  --muted: #6b7280;
  --border: #e2e6ea;
  --max-width: 1140px;
  --space: 1.5rem;
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space);
}

/* ===== Header / nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.nav__logo img { height: 40px; width: auto; }

.nav__menu {
  display: flex;
  gap: var(--space);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a { color: var(--text); font-weight: 500; }
.nav__menu a:hover { color: var(--green-dark); text-decoration: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  background: none; border: none; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: var(--text); }

/* ===== Hero ===== */
.hero { padding: 4rem 0; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__logo img { max-height: 420px; margin-inline: auto; }

.hero__title {
  font-family: var(--serif);
  color: var(--green-dark);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

.hero__intro p { color: var(--muted); font-size: 1.15rem; max-width: 40ch; }

/* ===== Countdown ===== */
.countdown {
  padding: 3rem 0 4rem;
  text-align: center;
}

.countdown__title {
  font-family: var(--serif);
  color: var(--green-dark);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.countdown__timer {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.flip { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.flip__num {
  min-width: 4.5rem;
  padding: 0.75rem 0.5rem;
  background: #2b2b2b;
  color: #fff;
  border-radius: var(--radius);
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.flip__label { color: var(--muted); font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }

.section__title {
  font-family: var(--serif);
  color: var(--green-dark);
  font-size: 2rem;
  margin-bottom: var(--space);
}
.section__title--center { text-align: center; letter-spacing: 0.05em; }

.section__rule {
  display: block;
  width: 64px; height: 3px;
  background: var(--green-dark);
  margin: 0 auto 1.5rem;
}

.section__lead {
  color: var(--muted);
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

/* ===== Parcours ===== */
.parcours {
  margin: 0;
  text-align: center;
}
.parcours img {
  max-height: 640px;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}

/* ===== Team ===== */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space);
}

.team__member { margin: 0; text-align: center; }

.team__member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.team__member figcaption {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* ===== Sponsoring ===== */
.sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.sponsor {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #cfd6dd;
}

.sponsor__name { color: var(--muted); font-weight: 500; font-size: 1.05rem; }

.sponsor__price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.5rem 0 1rem;
}
.sponsor__cur { font-size: 1.5rem; color: var(--muted); margin-right: 0.25rem; vertical-align: super; }

.sponsor__desc { color: var(--muted); font-size: 0.95rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-alt);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer__contacts {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}
.contact:hover { text-decoration: none; color: var(--text); }

.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  flex-shrink: 0;
}

.footer__copy { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 2rem 0 0; }

/* ===== Back to top ===== */
.to-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 100;
}
.to-top:hover { background: #2f4763; }

/* ===== Mobile ===== */
@media (max-width: 800px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__intro p { margin-inline: auto; }
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav__menu.is-open { max-height: 360px; }
  .nav__menu li { border-top: 1px solid var(--border); }
  .nav__menu a { display: block; padding: 1rem var(--space); }

  .flip__num { min-width: 3.5rem; font-size: 1.8rem; }
}
