:root { 
  --bg: #0f172a0a;
  --bg-soft: #f3f4f6;
  --surface: #ffffff;
  --accent: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-dark: #1e40af;
  --text-main: #0b1220;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #e5edff 0, #f9fafb 40%, #f9fafb 100%);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ───────── Header (video hero container) ───────── */
header {
  position: relative;
  top: 0;
  z-index: 20;
  color: white;
  overflow: hidden;
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.header-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.02);
}

.topbar {
  width: 100%;
  margin: 0;
  padding: 18px 40px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: 0.18s ease;
  opacity: 0.9;
}

nav a:hover {
  border-color: rgba(191, 219, 254, 0.6);
  background: rgba(15, 23, 42, 0.3);
  opacity: 1;
}

.cta-pill {
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.33);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-pill span {
  font-size: 15px;
}

/* ───────── Main wrapper (content AFTER hero) ───────── */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 16px 80px;
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 70px auto 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 24px 26px;
  background: rgba(47, 48, 52, 0.55);
  backdrop-filter: blur(1px);
  border-radius: 34px;

  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.65);
}

.hero-actions {
  margin: 18px 0 10px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: "Playfair Display", "Times New Roman", serif;
}

.hero-left h1 {
  font-size: clamp(28px, 3.1vw, 34px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f9fafb;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #e5e7eb;
  margin-bottom: 12px;
  font-family: "Playfair Display", "Times New Roman", serif;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(219, 234, 254, 0.15);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #bfdbfe;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
}

.hero-slogan-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.28);
}

.hero-description {
  font-size: 14px;
  color: #e5e7eb;
  max-width: 720px;
  margin: 0 auto 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  justify-content: center;
}

.hero-tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.9);
  font-size: 11px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
}

.hero-right {
  position: relative;
  padding-left: 10px;
}

.hero-card {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 18px 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.7);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-chip {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bfdbfe;
  background: rgba(30, 64, 175, 0.2);
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(59, 130, 246, 0.45);
  align-self: flex-start;
}

.hero-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 2px;
}

.hero-mission-vision {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}

.pill-block {
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.pill-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e5e7eb;
}

.pill-text {
  margin-top: 4px;
  font-size: 13px;
  color: #f9fafb;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: #e5e7eb;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  min-width: 90px;
}

.hero-stat-number {
  font-weight: 700;
  font-size: 13px;
  color: #bfdbfe;
}

.hero-stat-label {
  font-size: 11px;
  color: #e5e7eb;
}


.section-title {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  margin-bottom: 6px;
}

.card h4 {
  font-size: 15px;
  color: #111827;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: #4b5563;
}

.slogan {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #111827, #1f2937);
  color: #e5e7eb;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
}

.slogan-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  opacity: 0.7;
}

.slogan-text {
  font-weight: 600;
}

.catalogue-header {
  margin-top: 44px;
  margin-bottom: 18px;
}

.catalogue-tagline {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.catalogue-title-main {
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #0f172a;
}

.themes-grid {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  max-width: 1120px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Theme cards */
.theme-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
}

.theme-banner {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
}

.theme-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme-header {
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 12px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.theme-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.theme-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  margin-bottom: 2px;
}

.theme-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.theme-chevron {
  font-size: 16px;
  color: #9ca3af;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 4px;
}

.theme-card.open .theme-chevron {
  transform: rotate(90deg);
  color: #1d4ed8;
}

.theme-objectif {
  font-size: 13px;
  color: #4b5563;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid rgba(226, 232, 240, 0.9);
  margin-top: 4px;
}

.theme-objectif strong {
  font-weight: 600;
  color: #1f2937;
}

.theme-body {
  border-top: 1px solid #e5e7eb;
  padding: 0 16px 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.25s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
  background: #ffffff;
}

.theme-card.open .theme-body {
  max-height: 999px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 8px;
}

.theme-modules-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  margin-top: 2px;
  margin-bottom: 4px;
}

.theme-modules {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
}

.theme-modules li {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}

.theme-modules li:hover {
  background: #f3f4ff;
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.4);
}

.theme-modules li.selected {
  background: #1d4ed8;
  color: #e5e7eb;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 1px #1d4ed8;
}

.module-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.module-image {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e7eb;
}

.module-title {
  font-size: 13px;
  color: inherit;
  white-space: normal;
}

.theme-modules li.selected .module-title {
  color: #e5e7eb;
}

.module-btn {
  border-radius: 999px;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #1d4ed8;
  color: #f9fafb;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.theme-modules li.selected .module-btn {
  background: #111827;
}

.module-btn span {
  font-size: 14px;
}

/* ───────── Footer ───────── */
footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

footer span strong {
  color: #6b7280;
}

/* ───────── Registration Modal ───────── */
.reg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 40;
}

.reg-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.4);
  border: 1px solid #e5e7eb;
  padding: 18px 18px 16px;
}

.reg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.reg-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.reg-chip {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
}

.reg-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #9ca3af;
}

.reg-subject {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 10px;
}

.reg-subject strong {
  color: #111827;
}

.reg-field-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.reg-label {
  font-size: 12px;
  color: #6b7280;
}

.reg-input,
.reg-textarea {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.reg-input:focus,
.reg-textarea:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 1px #1d4ed8;
}

.reg-textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
}

.reg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}

.reg-submit {
  border-radius: 999px;
  padding: 7px 16px;
  border: none;
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  color: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reg-submit span {
  font-size: 15px;
}

.reg-note {
  font-size: 11px;
  color: #6b7280;
  max-width: 230px;
}

.hidden {
  display: none !important;
}

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px;
    margin: 70px 16px 70px;
  }
  .hero-right {
    padding-left: 0;
  }
  .mission-vision-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    justify-content: flex-start;
  }
  .themes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  main {
    padding-inline: 12px;
  }
  .hero {
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 24px 18px;
  }
  .hero-left h1 {
    font-size: 24px;
  }
  .catalogue-title-main {
    font-size: 16px;
    letter-spacing: 0.16em;
  }
  .reg-modal {
    max-width: 100%;
  }
  .reg-field-group {
    grid-template-columns: minmax(0, 1fr);
  }
}

#themes {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  margin-top: -80px; 
}

#themes::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/MissionBackground3.jpg") center center / cover no-repeat;
  opacity: 0.55;
  filter: blur(1px);
  z-index: -2;
}

#themes::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.brand-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.brand-logo-img {
  height: 75px;
  width: auto;
  display: block;
}


.brand-tagline {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 4px;
  color: #f9fafb;
}

#mission {
  position: relative;
  z-index: 2;
  margin-top: -95px; 
  padding: 60px 0 56px;
  overflow: visible;
  color: #020617;
}

#mission > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

#mission::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: url("assets/MissionBackground3.jpg") center center / cover no-repeat;
  z-index: -2;
}


#mission::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  border-radius: 40px;
}

#mission .section-title {
  color: #020617;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Playfair Display", "Times New Roman", serif;
}

#mission .section-subtitle,
#mission .catalogue-tagline {
  color: rgba(15, 23, 42, 0.78);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 50px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#mission .catalogue-title-main {
  color: #020617;
  font-size: 18px;
  font-weight: 600;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hero-footnote-band {
  padding: 24px 16px 32px;
  text-align: center;
  background: transparent;
}

.hero-footnote {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #505153;
  text-decoration: underline;
  text-underline-offset: 6px;
  margin-top: 20px;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

.hero-footnote {
  opacity: 0;
  transform: translateY(12px);
}

.hero-footnote.is-typing {
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-footnote-band {
  padding: 24px 16px 32px;
  text-align: center;
  background: transparent;
}

.hero-footnote-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.hero-footnote {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #505153;
  text-decoration: underline;
  text-underline-offset: 6px;
  margin-top: 20px;
}

.hero-footnote-animation {
  margin-top: 12px;
}

.hero-footnote-video,
.hero-footnote-img {
  max-width: 360px; 
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}


