:root {
  --bleu: #0f4c81;
  --bleu-fonce: #082f54;
  --bleu-clair: #eaf5ff;
  --jaune: #ffd166;
  --orange: #f77f00;
  --blanc: #ffffff;
  --texte: #1f2a37;
  --muted: #64748b;
  --ombre: 0 18px 45px rgba(8, 47, 84, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--texte);
  background: #f7fbff;
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  color: var(--blanc);
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.35), transparent 32%),
    linear-gradient(135deg, rgba(8, 47, 84, 0.95), rgba(15, 76, 129, 0.94)),
    url("../images/hero.jpg") center/cover;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 200px 0 64px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -120px -10%;
  height: 220px;
  background: #f7fbff;
  transform: rotate(-3deg);
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 22px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.logo img {
  width: min(220px, 48vw);
  height: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 2rem;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-weight: 700;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  max-width: 860px;
  margin-bottom: 24px;
}

.hero-text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 680px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--jaune);
  color: var(--bleu-fonce);
  box-shadow: 0 12px 30px rgba(255, 209, 102, 0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.14);
  color: var(--blanc);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
}

.countdown-card {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--ombre);
}

.countdown-card h2 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.9);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.time-box {
  background: rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
}

.time-box strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
  color: var(--jaune);
}

.time-box span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.78);
}

section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.section-kicker {
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--bleu-fonce);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.intro-card,
.info-card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--ombre);
}

.intro-card h3,
.info-card h3 {
  font-size: 1.45rem;
  color: var(--bleu-fonce);
  margin-bottom: 12px;
}

.highlight {
  background: linear-gradient(135deg, var(--jaune), #ffe8a3);
  color: var(--bleu-fonce);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--ombre);
}

.highlight strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.signup-section {
  padding: 36px 0 0;
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.signup-card {
  background: var(--blanc);
  border-radius: 28px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--ombre);
  border: 1px solid #dbeafe;
}

.signup-card h2 {
  color: var(--bleu-fonce);
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 6px;
}

.signup-card p {
  color: var(--muted);
}

.signup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signup-actions .btn-secondary {
  color: var(--bleu-fonce);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.activity-card {
  background: var(--blanc);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(8, 47, 84, 0.1);
  border: 1px solid #e2e8f0;
}

.activity-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--bleu-clair);
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.activity-card h3 {
  color: var(--bleu-fonce);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.activity-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.gallery {
  background: var(--bleu-clair);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  cursor: pointer;
  background: #dbeafe;
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 26px rgba(8, 47, 84, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.map {
  min-height: 420px;
  border: 0;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  background: #e2e8f0;
}

.footer {
  background: var(--bleu-fonce);
  color: rgba(255,255,255,0.82);
  padding: 38px 0;
  text-align: center;
}

.footer strong {
  color: var(--blanc);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.86);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  background: var(--blanc);
  color: #111827;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero-content,
  .intro-grid,
  .location-grid,
  .signup-card {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .hero-actions{
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .logo{
      margin: 0 auto;
  }

  .signup-actions {
    width: 100%;
  }

  .signup-actions .btn {
    flex: 1 1 220px;
  }

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

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

  .nav {
    display: none;
  }
}

@media (max-width: 580px) {
  .hero {
    min-height: auto;
    padding: 226px 0 72px;
  }

  .hero-content {
    padding-top: 86px;
  }

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

  section {
    padding: 68px 0;
  }

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

  .intro-card,
  .info-card,
  .highlight,
  .countdown-card,
  .signup-card {
    padding: 22px;
  }
}
