/* ============================================
   JARAAF ATHLETISME - Main Stylesheet
   Colors inspired by club emblem & uniforms
   ============================================ */

/* ---------- Google Fonts ---------- */
/* Fonts loaded via <link> tags in HTML <head> for non-render-blocking loading */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand colors — Rouge & Vert Jaraaf (doux, fidèles au logo) */
  --green-deep: #143D2E;
  --green-dark: #1A5A44;
  --green-primary: #2D8B6A;
  --green-light: #4A9E80;
  --red-deep: #3D1C1C;
  --red-dark: #5C2222;
  --red-primary: #8B3A3A;
  --red-light: #A65050;
  --gold-accent: #D4A843;
  --black: #0A0A0A;
  --gray-700: #3A3A3A;
  --red-accent: #A65050;

  /* Neutrals — warm light mode */
  --bg: #F7F3ED;
  --bg-alt: #EDE8E0;
  --bg-card: #FFFFFF;
  --border: #DDD5CA;
  --border-light: #E8E2D8;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #787878;
  --text-faint: #A0A0A0;

  /* Dark accents (for hero, nav, footer) */
  --dark-bg: var(--green-deep);
  --dark-text: #F7F3ED;
  --pure-white: #FFFFFF;
  --white: #F7F3ED;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 140px);
  --container-max: 1280px;
  --container-padding: clamp(20px, 5vw, 60px);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--green-primary) var(--bg);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-out);
}

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

ul { list-style: none; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-padding {
  padding: var(--section-padding) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.sr-only:focus-visible {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 0;
  overflow: visible;
  clip: auto;
  z-index: 99999;
  background: var(--green-primary);
  color: var(--pure-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* ---------- Form Select ---------- */
.form-select {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  cursor: pointer;
}

/* ---------- Typography ---------- */
.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before { display: none;
  content: '';
  width: 40px;
  height: 2px;
  background: var(--red-primary);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title--lg {
  font-size: clamp(3rem, 7vw, 6rem);
}

.section-title--md {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-title--sm {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}

.highlight {
  color: var(--red-primary);
}

.highlight-green {
  color: var(--green-light);
}

.highlight-green {
  color: var(--green-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 0;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--green-primary);
  color: var(--pure-white);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn--primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 139, 106, 0.3);
}

.btn--outline {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn--outline:hover {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}

/* Outline variant for dark backgrounds */
.btn--outline-light {
  border: 1.5px solid rgba(247,243,237,0.4);
  color: #F7F3ED;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn--outline-light:hover {
  background: rgba(247,243,237,0.15);
  border-color: rgba(247,243,237,0.6);
  color: #F7F3ED;
}

.btn__arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out);
}

.nav > .container {
  max-width: 1400px;
  padding: 0 clamp(16px, 3vw, 40px);
}

.nav--scrolled {
  background: rgba(247, 243, 237, 0.95);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img,
.nav__logo svg {
  width: 180px;
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-primary);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  white-space: nowrap;
  background: var(--green-primary);
  color: var(--pure-white);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: all 0.3s var(--ease-out);
}

.nav__cta:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--green-deep);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav__toggle--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(20, 61, 46, 0.98);
  backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
}

.nav__mobile--open {
  display: flex;
}

.nav__mobile a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--white);
  transition: color 0.3s var(--ease-out);
}

.nav__mobile a:hover {
  color: var(--gold-accent);
}

/* ---------- Hero V2 — Split Screen ---------- */
.hero-v2 {
  display: grid;
  grid-template-columns: 2fr 3fr;
  height: 100vh;
  padding-top: 64px;
}

.hero-v2__left {
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 4vw, 48px) 48px clamp(24px, 4vw, 60px);
  background: var(--green-deep);
  position: relative;
}

.hero-v2__left::after {
  content: 'JARAAF';
  position: absolute;
  bottom: -20px;
  left: -10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18vw;
  color: rgba(255,255,255,0.03);
  line-height: 0.8;
  pointer-events: none;
  letter-spacing: -0.03em;
}

.hero-v2__content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-light);
  padding: 10px 20px;
  border: 1px solid rgba(45,139,106,0.3);
  background: rgba(45,139,106,0.06);
  margin-bottom: 40px;
  animation: badgePulse 3s ease-in-out infinite;
}

.hero-v2__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-light);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes badgePulse {
  0%, 100% { border-color: rgba(45,139,106,0.3); }
  50% { border-color: rgba(45,139,106,0.6); }
}

.hero-v2__title {
  margin-bottom: 32px;
}

.hero-v2__title-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-v2__title-line--1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: #F7F3ED;
}

.hero-v2__title-line--2 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: rgba(247,243,237,0.4);
  margin: 4px 0;
}

.hero-v2__title-line--3 {
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  color: var(--red-light);
}

/* Rotating words animation */
.hero-rotate {
  display: inline-block;
  height: 1.25em;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-rotate__word {
  display: block;
  height: 1.25em;
  line-height: 1.25em;
  padding-top: 0.1em;
  animation: rotateWords 6s ease-in-out infinite;
}

@keyframes rotateWords {
  0%, 25% { transform: translateY(0); }
  33%, 58% { transform: translateY(-100%); }
  66%, 91% { transform: translateY(-200%); }
  100% { transform: translateY(0); }
}

.hero-v2__motto {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247,243,237,0.5);
  margin-bottom: 28px;
}

.hero-v2__motto-line { display: none;
  width: 40px;
  height: 2px;
  background: var(--green-light);
}

.hero-v2__motto-sep {
  color: var(--green-light);
  font-weight: 300;
}

.hero-v2__desc {
  font-size: 1rem;
  color: rgba(247,243,237,0.65);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-v2__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-v2__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(247,243,237,0.15);
  padding-top: 32px;
}

.hero-v2__stat {
  text-align: center;
  position: relative;
}

.hero-v2__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(247,243,237,0.15);
}

.hero-v2__stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: #F7F3ED;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-v2__stat-label {
  display: block;
  font-size: 0.6rem;
  color: rgba(247,243,237,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Right: Image section */
.hero-v2__right {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-v2__images {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 3fr 2fr;
  gap: 6px;
  height: 100%;
  padding: 6px;
}

.hero-v2__img {
  overflow: hidden;
  position: relative;
}

.hero-v2__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.85) contrast(1.05) sepia(0.08);
  transition: transform 8s ease;
}

.hero-v2__img:hover img {
  transform: scale(1.05);
}

.hero-v2__img--main {
  grid-row: span 2;
}

.hero-v2__img--secondary,
.hero-v2__img--tertiary {
  /* single cell */
}

.hero-v2__green-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green-primary), var(--red-primary));
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--green-primary);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 40px;
  animation: marqueeScroll 25s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pure-white);
}

.marquee__star {
  color: var(--red-light);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Legacy Hero (inner pages can still use) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.85) 80%, var(--black) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.7) 0%, transparent 60%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__subtitle::before {
  content: '';
  width: 50px;
  height: 2px;
  background: var(--red-primary);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
}

.stat-item__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item__label {
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Values Section ---------- */
.values {
  position: relative;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.value-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--red-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.value-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-4px);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.4s var(--ease-out);
}

.value-card:hover .value-card__number {
  color: var(--green-primary);
}

.value-card__wolof {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--green-light);
  margin-bottom: 4px;
}

.value-card__french {
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.value-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- About / Présidente ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-split__image {
  position: relative;
  aspect-ratio: 4/4;
  overflow: hidden;
}

.about-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-split__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--red-primary));
  pointer-events: none;
}

.about-split__quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 32px;
  padding-left: 24px;
  border-left: 3px solid var(--green-primary);
  font-style: italic;
}

.about-split__author {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.about-split__author span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--red-primary);
  margin-top: 2px;
}

/* ---------- Gallery Grid ---------- */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 8px;
  margin-top: 48px;
}

.gallery-preview__item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-preview__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-preview__item:hover img {
  transform: scale(1.05);
}

.gallery-preview__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.gallery-preview__item:hover::after {
  opacity: 1;
}

/* Full gallery page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.gallery-grid__item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.gallery-grid__item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.gallery-grid__item:hover img {
  transform: scale(1.04);
}

.gallery-grid__item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-grid__item:hover .gallery-grid__item__overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox--open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.3s;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background 0.3s;
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.15);
}

.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ---------- Trophies ---------- */
.trophies {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.trophies::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,58,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.trophies__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.trophy-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.4s var(--ease-out);
}

.trophy-card:hover {
  border-color: var(--green-primary);
  background: rgba(45,139,106,0.05);
}

.trophy-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.trophy-card__count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--red-primary);
}

.trophy-card__label {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Events ---------- */
.event-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: all 0.3s var(--ease-out);
  background: var(--bg-alt);
}

.event-card:hover {
  border-color: var(--green-primary);
  background: rgba(45, 139, 106, 0.05);
}

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

.event-card__day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--red-primary);
  line-height: 1;
}

.event-card__month {
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.event-card__info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.event-card__meta {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.event-card__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-card__status {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--green-primary);
  color: var(--green-light);
}

.event-card__status--past {
  border-color: var(--gray-700);
  color: var(--text-faint);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  background: rgba(45, 139, 106, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-light);
  font-size: 1.2rem;
}

.contact-info__text h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-info__text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-info__text a {
  color: var(--red-primary);
}

.contact-info__text a:hover {
  color: var(--green-light);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-deep);
  border-top: none;
  padding: 80px 0 32px;
  color: rgba(247,243,237,0.6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(247,243,237,0.5);
  margin-top: 20px;
  max-width: 300px;
  line-height: 1.7;
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #F7F3ED;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(247,243,237,0.5);
  transition: color 0.3s var(--ease-out);
}

.footer__links a:hover {
  color: var(--gold-accent);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: rgba(247,243,237,0.5);
}

.footer__contact-item svg {
  flex-shrink: 0;
  color: var(--green-light);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247,243,237,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247,243,237,0.5);
  transition: all 0.3s var(--ease-out);
}

.footer__social a:hover {
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  background: rgba(212,168,67,0.1);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(247,243,237,0.1);
  font-size: 0.8rem;
  color: rgba(247,243,237,0.35);
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(45,139,106,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-header__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 15vw, 14rem);
  color: rgba(255,255,255,0.03);
  position: absolute;
  right: var(--container-padding);
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s var(--ease-out);
}

.reveal-left--visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s var(--ease-out);
}

.reveal-right--visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out);
}

.stagger--visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s var(--ease-out);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* Counter animation */
.count-up {
  display: inline-block;
}

/* ---------- Responsive ---------- */

/* Tablette */
@media (max-width: 1024px) {
  .hero-v2 {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-v2__left {
    padding: 100px clamp(20px, 5vw, 40px) 48px;
  }

  .hero-v2__right {
    height: 50vh;
    min-height: 350px;
  }

  .hero-v2__images {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .hero-v2__title-line--1,
  .hero-v2__title-line--2 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
  }

  .hero-v2__title-line--3 {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }

  .hero-v2__stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-split__image {
    aspect-ratio: 16/9;
  }

  .gallery-preview {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-preview__item:first-child {
    grid-column: span 2;
  }

  .trophies__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title--lg {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .section-title--md {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav__links, .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle span {
    background: var(--text-primary);
  }

  .hero-v2 {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-v2__right {
    display: none;
  }

  .hero-v2__left {
    padding: 90px 20px 50px;
    min-height: 85vh;
  }

  .about-split__image {
    display: none;
  }

  .hero-v2__title-line--1,
  .hero-v2__title-line--2 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero-v2__title-line--3 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .hero-v2__motto {
    font-size: 0.6rem;
    gap: 10px;
    letter-spacing: 0.2em;
  }

  .hero-v2__desc {
    font-size: 0.9rem;
  }

  .hero-v2__actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
  }

  .hero-v2__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-v2__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-v2__stat:nth-child(2)::after,
  .hero-v2__stat:nth-child(4)::after {
    display: none;
  }

  .hero-v2__stat-num {
    font-size: 1.4rem;
  }

  /* hero-v2__right is hidden on mobile (display:none above) */

  .section-title--lg {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section-title--md {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .gallery-preview {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
  }

  .gallery-preview__item:first-child {
    grid-column: span 2;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid__item--wide {
    grid-column: span 2;
  }

  .event-card {
    grid-template-columns: 70px 1fr;
    gap: 16px;
    padding: 20px;
  }

  .event-card__status {
    grid-column: span 2;
    justify-self: start;
  }

  .event-card__day {
    font-size: 1.8rem;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  .trophies__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header {
    padding: 120px 0 60px;
  }

  .page-header__number {
    display: none;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 22px;
    height: 22px;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .hero-v2__title-line--1,
  .hero-v2__title-line--2 {
    font-size: 1.6rem;
  }

  .hero-v2__title-line--3 {
    font-size: 1.8rem;
  }

  .hero-v2__stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-grid__item--wide {
    grid-column: span 1;
  }

  .trophies__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .trophy-card {
    padding: 24px 16px;
  }

  .trophy-card__count {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.75rem;
  }

  .section-padding {
    padding: clamp(50px, 8vw, 80px) 0;
  }

  .nav > .container {
    padding: 0 16px;
  }
}
