/* ============================================================
   La Course des Champions — Complete Design System
   coursedeschampions.com
   ============================================================ */

/* ------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   ------------------------------------------------------------ */
:root {
  --orange:             #F05A28;
  --orange-hover:       #d44e1f;
  --orange-light:       #FF7A45;
  --gold:               #FFB300;
  --dark:               #111111;
  --dark2:              #0d0d0d;
  --text:               #1a1a1a;
  --muted:              #777777;
  --gray-bg:            #f5f5f5;
  --white:              #ffffff;
  --border:             #eeeeee;
  --light-text:         #aaaaaa;   /* nav small text, lang toggle */
  --footer-text:        #555555;   /* footer column links + brand desc */
  --footer-border:      #1e1e1e;   /* footer grid border */
  --footer-bottom-text: #444444;   /* footer copyright */
  --card-bg:            #fafafa;   /* ecard background */
}

/* ------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  font-family: inherit;
}

/* ------------------------------------------------------------
   Utility Classes
   ------------------------------------------------------------ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.text-center {
  text-align: center;
}

/* Visually hidden — accessible screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Typography Helpers
   ------------------------------------------------------------ */
h1, h2, h3 {
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
}

/* ------------------------------------------------------------
   Navigation (.nav)
   ------------------------------------------------------------ */
.nav {
  position: sticky; /* also serves as containing block (position: relative) for the mobile dropdown */
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 72px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

/* Brand / logo area */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.nav-title small {
  display: block;
  font-size: 11px;
  color: var(--light-text);
  font-weight: 400;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--orange);
}

/* Nav right: lang toggle + CTA */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  font-size: 12px;
  font-weight: 600;
  color: var(--light-text);
  cursor: pointer;
  user-select: none;
}

.lang-toggle .active {
  color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--orange-hover);
}

/* Mobile hamburger toggle button */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--dark);
  font-size: 22px;
  line-height: 1;
}

/* Mobile nav open state */
.nav-mobile-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ------------------------------------------------------------
   Hero (.hero)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 88vh;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #0f0600 0%, #2a1000 20%, #6b2a00 45%, #c45500 70%, #E8602A 90%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 55%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 72px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
  display: block;
  flex-shrink: 0;
}

.hero-h1 {
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-size: 90px;
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-h1 em {
  color: var(--orange-light);
  font-style: normal;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-main {
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-main:hover {
  background: var(--orange-hover);
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.btn-ghost:hover {
  color: var(--white);
}

/* Focus visibility for keyboard navigation */
.nav-cta:focus-visible,
.btn-main:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.ecard-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}

.nl-btn:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: -2px;
}

.hero-logo-aside {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(255, 107, 0, 0.4));
}

/* ------------------------------------------------------------
   Stats Strip (.strip)
   ------------------------------------------------------------ */
.strip {
  background: var(--orange);
  display: flex;
  justify-content: center;
  border-bottom: 3px solid var(--orange-hover);
}

.strip-item {
  padding: 18px 56px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.strip-item:last-child {
  border-right: none;
}

.strip-num {
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-size: 32px;
  color: var(--white);
  line-height: 1;
}

.strip-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* ------------------------------------------------------------
   Section Base
   ------------------------------------------------------------ */
.section {
  padding: 80px 60px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.h2-big {
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-size: 52px;
  color: var(--dark);
  line-height: 1.0;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 44px;
}

/* ------------------------------------------------------------
   Event Cards (.section-course, .cards-row, .ecard)
   ------------------------------------------------------------ */
.section-course {
  background: var(--white); /* padding inherited from .section */
}

.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ecard {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.ecard-img {
  height: 200px;
  background: linear-gradient(135deg, #1a0800 0%, #c45500 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

.ecard-body {
  padding: 22px 24px;
}

.ecard-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.ecard-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.ecard-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.ecard-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.15s ease;
}

.ecard-link:hover {
  color: var(--orange-hover);
}

/* ------------------------------------------------------------
   Mission Section (.section-mission)
   ------------------------------------------------------------ */
/* Standalone section — do NOT combine with .section class */
.section-mission {
  background: var(--dark);
  padding: 88px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.section-mission .eyebrow {
  color: var(--gold);
}

.section-mission .h2-big {
  color: var(--white);
  font-size: 48px;
}

.mission-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feat-dot {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(240, 90, 40, 0.15);
  border: 1px solid rgba(240, 90, 40, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feat h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.feat p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.mission-img-wrap {
  position: relative;
}

.mission-img {
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #2a1000, #c45500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-logo-center {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.mission-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--orange);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(240, 90, 40, 0.4);
}

.mission-badge strong {
  display: block;
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-size: 28px;
  line-height: 1;
}

.mission-badge span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* ------------------------------------------------------------
   Newsletter (.section-nl)
   ------------------------------------------------------------ */
.section-nl {
  background: var(--gray-bg);
  padding: 72px 60px;
  text-align: center;
}

.section-nl .h2-big {
  font-size: 44px;
}

.section-nl .section-desc {
  margin: 8px auto 28px;
}

.nl-form {
  display: inline-flex;
  max-width: 440px;
  width: 100%;
}

.nl-input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.nl-input:focus {
  outline: none;
  border-color: var(--orange);
}

.nl-btn {
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 14px 22px;
  border: none;
  border-radius: 0 6px 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.nl-btn:hover {
  background: var(--orange-hover);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
  background: var(--dark2);
  padding: 56px 60px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--footer-border);
  margin-bottom: 28px;
}

.footer-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.7;
  max-width: 200px;
}

.footer-col h5 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--footer-text);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--footer-bottom-text);
}

.footer-lang a {
  font-size: 12px;
  color: var(--orange);
  text-decoration: none;
}

.footer-lang span {
  color: var(--footer-bottom-text);
  margin: 0 5px;
}

/* ------------------------------------------------------------
   Responsive — Tablet & Mobile (max-width: 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {

  /* Nav */
  .nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
  }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    padding: 0 24px 48px;
    gap: 24px;
  }

  .hero-h1 {
    font-size: 56px;
  }

  .hero-logo-aside {
    width: 80px;
    height: 80px;
  }

  /* Strip */
  .strip {
    flex-wrap: wrap;
  }

  .strip-item {
    padding: 14px 28px;
  }

  /* Section base */
  .section {
    padding: 48px 24px;
  }

  .h2-big {
    font-size: 40px;
  }

  /* Event cards */
  .section-course {
    padding: 48px 24px;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }

  /* Mission */
  .section-mission {
    grid-template-columns: 1fr;
    padding: 64px 24px;
    gap: 48px;
  }

  .mission-img-wrap {
    margin-top: 0;
  }

  /* Newsletter */
  .section-nl {
    padding: 56px 24px;
  }

  .nl-form {
    flex-direction: column;
  }

  .nl-input {
    border-right: 1.5px solid var(--border);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
  }

  .nl-btn {
    border-radius: 0 0 6px 6px;
  }

  /* Footer */
  footer {
    padding: 40px 24px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ------------------------------------------------------------
   Small mobile (max-width: 480px)
   ------------------------------------------------------------ */
@media (max-width: 480px) {

  .hero-h1 {
    font-size: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    background: var(--dark);
    padding: 72px 60px 60px;
    text-align: center;
}
.page-hero .h2-big {
    color: var(--white);
    font-size: 56px;
    margin-bottom: 12px;
}
.page-hero .section-desc {
    color: rgba(255, 255, 255, 0.65);
    margin: 0 auto;
    max-width: 560px;
}
@media (max-width: 768px) {
    .page-hero { padding: 48px 24px 40px; }
    .page-hero .h2-big { font-size: 40px; }
}

/* ===== PARTNER CARDS ===== */
.partner-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
}
.partner-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: var(--orange);
}
.partner-card img {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
}
.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.partner-placeholder {
    background: var(--gray-bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

/* ===== INFO CARD (coming-soon pages) ===== */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 48px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.info-card .info-date {
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: 52px;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 12px;
}
.info-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== VOLUNTEER POINTS ===== */
.volunteer-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
}
.vol-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.vol-point-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(240, 90, 40, 0.10);
    border: 1px solid rgba(240, 90, 40, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.vol-point h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.vol-point p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* ===== CTA BLOCK ===== */
.cta-block {
    background: var(--gray-bg);
    padding: 56px 60px;
    text-align: center;
}
.cta-block .h2-big {
    font-size: 44px;
    margin-bottom: 12px;
}
.cta-block .section-desc {
    margin: 0 auto 28px;
}
.btn-cta {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.btn-cta:hover {
    background: var(--orange-hover);
}
@media (max-width: 768px) {
    .cta-block { padding: 40px 24px; }
    .info-card { padding: 32px 24px; }
}

/* ===== CONTACT FORM ===== */
.contact-wrap {
    max-width: 680px;
    margin: 0 auto;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group label span { color: var(--orange); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e53e3e;
}
.field-error { font-size: 12px; color: #e53e3e; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
    background: #f0fff4;
    border: 1px solid #68d391;
    border-radius: 8px;
    padding: 16px 20px;
    color: #276749;
    font-size: 14px;
    margin-bottom: 16px;
}
.form-error-banner {
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 8px;
    padding: 16px 20px;
    color: #c53030;
    font-size: 14px;
    margin-bottom: 16px;
}
/* Honeypot — hide from real users */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
    tabindex: -1;
}
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}
