/* ============================================
   COMPONENTS — Nav, Hero, Sections, Footer
   ============================================ */

/* ========================
   NAVIGATION / MEGA MENU
   ======================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(74,173,228,0.08);
  transition: all var(--duration-base) var(--ease-out);
}

.nav--scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 16px rgba(19,42,66,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  color: var(--color-primary-darker);
  text-decoration: none;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__logo-text span:first-child {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}

.nav__logo-text span:last-child {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.nav__link:hover,
.nav__link--active,
.nav__link.active {
  color: var(--color-primary);
  background: var(--nd-blue-50);
}

.nav__link-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav__item:hover .nav__link-chevron {
  transform: rotate(180deg);
}

/* --- Mega Menu Dropdown --- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 480px;
  background: var(--nd-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--duration-base) var(--ease-out);
}

.nav__item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.mega-menu__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
  text-decoration: none;
  color: var(--color-text);
}

.mega-menu__item:hover {
  background: var(--nd-blue-50);
  color: var(--color-text);
}

.mega-menu__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--nd-blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mega-menu__label {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}

.mega-menu__desc {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

/* --- Nav CTA --- */
.nav__cta {
  margin-left: var(--space-md);
}

/* --- Mobile Toggle --- */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav__toggle--active span:nth-child(1) { transform: rotate(45deg) translate(3px, 5px); }
.nav__toggle--active span:nth-child(2) { opacity: 0; }
.nav__toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(3px, -5px); }

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--nd-blue-950) 0%, var(--nd-blue-800) 50%, var(--nd-blue-700) 100%);
}

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

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19,42,66,0.95) 0%, rgba(27,79,120,0.8) 50%, rgba(43,109,168,0.6) 100%);
}

.hero__shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,173,228,0.15) 0%, transparent 70%);
}

.hero__shape--1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero__shape--2 { width: 400px; height: 400px; bottom: -100px; left: -50px; }

/* --- Page Hero (sous-pages) --- */
.page-hero {
  position: relative;
  height: auto;
  min-height: 280px;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--nd-blue-950) 0%, var(--nd-blue-800) 50%, var(--nd-blue-700) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--nd-blue-300);
  margin-bottom: var(--space-md);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--nd-white);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
}

.page-hero__desc {
  font-size: var(--fs-lg);
  color: var(--nd-slate-300);
  max-width: 560px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* Page content wrapper (sous-pages main) */
.page-content {
  padding: var(--space-3xl) 0;
}

.page-content__inner {
  position: relative;
  z-index: 1;
}

/* ========================
   SECTION ACCES (Nous trouver)
   ======================== */
.section--acces {
  padding: var(--space-3xl) 0;
}

.acces-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-xl);
  align-items: stretch;
  min-height: 420px;
}

@media (max-width: 900px) {
  .acces-grid {
    grid-template-columns: 1fr;
  }
}

.acces-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.acces-info__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-text);
  margin: var(--space-xs) 0 0;
  line-height: var(--lh-tight);
}

.acces-address {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 4px solid var(--color-primary);
}

.acces-address__main {
  margin: 0 0 var(--space-sm);
  line-height: 1.6;
  color: var(--color-text);
}

.acces-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.acces-horaires {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--nd-green-500);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acces-horaires__time {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.acces-horaires__note {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.acces-warning {
  background: #FEF3C7;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  color: #78350F;
  line-height: 1.6;
}

.acces-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: auto;
}

.acces-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  min-height: 380px;
}

@media (max-width: 900px) {
  .acces-map {
    min-height: 280px;
  }
}

/* ========================
   SECTION INSCRIPTION CTA
   ======================== */
.inscription-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 768px) {
  .inscription-cta {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.inscription-cta__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.inscription-cta__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  transition: all 0.2s ease;
  width: fit-content;
}

.inscription-cta__contact-item:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.inscription-cta__trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.inscription-cta__trust-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

.inscription-cta__trust-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.inscription-cta__trust-text strong {
  display: block;
  color: var(--nd-white);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}

.inscription-cta__trust-text span {
  color: var(--nd-slate-400);
  font-size: var(--fs-xs);
}

/* Breadcrumb navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--nd-slate-400);
  margin-bottom: var(--space-lg);
  justify-content: center;
}

.breadcrumb a {
  color: var(--nd-blue-300);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.breadcrumb a:hover { color: var(--nd-white); }

.breadcrumb__sep { opacity: 0.5; }
.hero__shape--3 { width: 200px; height: 200px; top: 40%; left: 60%; background: radial-gradient(circle, rgba(245,213,71,0.1) 0%, transparent 70%); }

/* --- Hero Split Grid --- */
.hero__grid {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding-top: calc(var(--nav-height) + var(--space-lg));
  padding-bottom: var(--space-xl);
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(245,213,71,0.15);
  border: 1px solid rgba(245,213,71,0.3);
  border-radius: var(--radius-full);
  color: var(--nd-gold-300);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--nd-gold-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  color: var(--nd-white);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--nd-gold-300) 0%, var(--nd-gold-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  color: var(--nd-slate-300);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-lg);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--nd-white);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--nd-slate-400);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-top: 4px;
}

/* --- Hero scroll indicator --- */
.hero__scroll {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--nd-slate-400);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  animation: float-scroll 3s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--nd-slate-400), transparent);
}

@keyframes float-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================
   HERO VISUAL — 3D PENCIL
   ======================== */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* Wrapper 2D : gère uniquement la translation screen-space */
.hero__pencil-wrap {
  will-change: transform;
  transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero__pencil-wrap.is-tracking {
  transition: transform 0.03s linear;
}

/* Crayon : gère uniquement la rotation 3D + animation flottante */
.hero__pencil {
  position: relative;
  transform: rotateY(-12deg) rotateX(5deg) rotateZ(-8deg);
  transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
  animation: pencil-float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)) drop-shadow(0 8px 16px rgba(74,173,228,0.25));
  will-change: transform, filter;
  cursor: pointer;
}

/* Pendant le tracking souris — quasi-instantané, le lerp JS assure le lissage */
.hero__pencil.is-tracking {
  animation-play-state: paused;
  transition: transform 0.03s linear, filter 0.08s ease;
}

.hero__pencil-svg {
  width: 140px;
  height: auto;
}

/* Reflet SVG dynamique — contrôlé via JS */
.hero__pencil-highlight {
  transition: transform 0.08s linear;
}

@keyframes pencil-float {
  0%, 100% { transform: rotateY(-12deg) rotateX(5deg) rotateZ(-8deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(3deg) rotateZ(-6deg) translateY(-16px); }
}

/* Nav logo image sizing */
.nav__logo img,
.nav__logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: white;
  padding: 3px;
}

/* Responsive: pencil under text on mobile */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__visual {
    order: -1;
    margin-bottom: var(--space-sm);
  }
  .hero__pencil-svg {
    width: 80px;
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__desc {
    max-width: 100%;
    margin-inline: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__stats {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero__pencil-svg {
    width: 60px;
  }
  .hero__title {
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  }
  .hero__stats {
    gap: var(--space-lg);
    flex-wrap: wrap;
  }
  .hero__stat-number {
    font-size: var(--fs-xl);
  }
  .hero__grid {
    padding-top: calc(var(--nav-height) + var(--space-md));
    padding-bottom: var(--space-md);
    gap: var(--space-md);
  }
}

/* ========================
   PARALLAX IMAGE SECTIONS
   ======================== */
.parallax-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-section__bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.parallax-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(19,42,66,0.6);
  z-index: 1;
}

.parallax-section__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--nd-white);
  padding: var(--space-xl);
}

.parallax-section__content h2 {
  color: var(--nd-white);
  margin-bottom: var(--space-md);
}

/* ========================
   STATS BAR
   ======================== */
.stats-bar {
  background: linear-gradient(135deg, var(--nd-blue-600), var(--nd-blue-800));
  color: var(--nd-white);
  padding: var(--space-3xl) 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stats-bar__item {
  position: relative;
}

.stats-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stats-bar__number {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  background: linear-gradient(135deg, var(--nd-white), var(--nd-gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-bar__label {
  font-size: var(--fs-sm);
  color: var(--nd-blue-200);
  margin-top: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* ========================
   NEWS / ACTUALITES
   ======================== */
.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--nd-white);
  border: 1px solid var(--color-border);
  transition: all var(--duration-base) var(--ease-out);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--nd-blue-200);
}

.news-card__image {
  width: 100%;
  height: 220px;
  min-height: 200px;
  object-fit: cover;
  background: var(--nd-blue-100);
}

.news-card__body {
  padding: var(--space-xl);
}

.news-card__date {
  font-size: var(--fs-xs);
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-sm);
}

.news-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
  line-height: var(--lh-snug);
}

.news-card__excerpt {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

.news-card__link:hover { gap: 10px; }

/* ========================
   GALLERY
   ======================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: var(--space-md);
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  min-height: 180px;
}

.gallery__item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery__item:hover {
  transform: scale(1.02);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19,42,66,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__item-caption {
  color: var(--nd-white);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

/* ========================
   CALENDAR / EVENTS
   ======================== */
.event-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-item {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--nd-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--duration-fast) var(--ease-out);
}

.event-item:hover {
  border-color: var(--nd-blue-200);
  box-shadow: var(--shadow-md);
}

.event-item__date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
}

.event-item__month {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--color-primary);
}

.event-item__day {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-primary-darker);
  line-height: 1;
}

.event-item__divider {
  width: 2px;
  height: 40px;
  background: var(--nd-blue-100);
  border-radius: 1px;
}

.event-item__info { flex: 1; }

.event-item__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-primary-darker);
  margin-bottom: 2px;
}

.event-item__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.event-item__badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  background: var(--nd-blue-50);
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

/* ========================
   LOCATION / WARNING
   ======================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin-bottom: var(--space-xl);
}

.alert--warning {
  background: #FFF7ED;
  border-color: #FB923C;
  color: #9A3412;
}

.alert--info {
  background: var(--nd-blue-50);
  border-color: var(--nd-blue-300);
  color: var(--nd-blue-800);
}

.alert__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.alert__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  margin-bottom: 4px;
}

.alert__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* ========================
   INSCRIPTION FORM
   ======================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-label--required::after {
  content: ' *';
  color: #EF4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  background: var(--nd-white);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74,173,228,0.15);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
}

/* ========================
   FOOTER
   ======================== */
.footer {
  background: var(--nd-blue-950);
  color: var(--nd-slate-300);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--nd-slate-400);
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nd-slate-400);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social-link:hover {
  background: var(--color-primary);
  color: var(--nd-white);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--nd-white);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--nd-slate-400);
  transition: color var(--duration-fast);
  text-decoration: none;
}

.footer__link:hover { color: var(--nd-white); }

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--nd-slate-500);
}

.footer__bottom a { color: var(--nd-slate-400); }
.footer__bottom a:hover { color: var(--nd-white); }

/* ========================
   RESPONSIVE NAV
   ======================== */
@media (max-width: 1024px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    bottom: 0;
    background: var(--nd-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-xl);
    gap: var(--space-sm);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-out);
    overflow-y: auto;
  }

  .nav__menu--open { transform: translateX(0); }

  .mega-menu {
    position: static;
    transform: none;
    min-width: auto;
    box-shadow: none;
    border: 1px solid var(--color-border);
    display: none;
    padding: var(--space-md);
  }

  .nav__item--open .mega-menu { display: block; }

  .mega-menu__grid { grid-template-columns: 1fr; }

  .nav__cta { margin: var(--space-md) 0 0; }

  .hero__stats {
    gap: var(--space-xl);
    flex-wrap: wrap;
  }

  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__item:nth-child(2)::after { display: none; }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery__item:nth-child(1) { grid-column: span 2; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 640px) {
  .hero__content {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
  }

  .hero__stats { flex-direction: column; gap: var(--space-lg); }
  .hero__stats .hero__stat { border-left: 3px solid var(--nd-blue-400); padding-left: var(--space-md); }

  .stats-bar__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .stats-bar__item::after { display: none !important; }

  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item:nth-child(1) { grid-column: span 1; }

  .event-item { flex-wrap: wrap; gap: var(--space-md); }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

/* ========================
   POPUP SYSTÈME
   ======================== */
.nd-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 42, 66, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: var(--space-lg);
}
.nd-popup-overlay--visible { opacity: 1; }

.nd-popup {
  background: var(--nd-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.nd-popup-overlay--visible .nd-popup { transform: translateY(0); }

.nd-popup__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--nd-slate-500);
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.nd-popup__close:hover { background: var(--nd-slate-100); color: var(--nd-blue-950); }

.nd-popup__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--nd-blue-950);
  margin-bottom: var(--space-md);
}
.nd-popup__msg {
  color: var(--nd-slate-600);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}
.nd-popup .btn { width: 100%; justify-content: center; }
