/* ===================================== */
/* RESET */
/* ===================================== */
html {
  scrollbar-gutter: stable;
}

body.menu-open {
  overflow: hidden;
}




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

body {
  font-family: 'Rubik', sans-serif;
  background: #0b2f4a;
  padding-top: 40px; /* navbar offset */
}



/* ===================================== */
/* HERO SECTION */
/* ===================================== */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


.hero-content {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 30px; /* control distance manually */

  width: fit-content;   /* 🔥 key change */
  margin: 0 auto;       /* center the whole block */

  align-items: center;
    transform: translateY(60px); /* 🔥 move up */
}


.logo {
  width: 300px;
  height: auto;
}

.hero-text {
  text-align: left;
  width: 520px;
  transform: translateY(-20px);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: calc(3 * 1.12em + 12px);
}

.hero-title .line {
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #E8E6E1;

  height: 1.12em;
  white-space: nowrap;
}

#line3 {
  font-weight: 800;
}


/* ===================================== */
/* HERO SUBTITLE */
/* ===================================== */

.hero-subtitle {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(232, 230, 225, 0.85);
  max-width: 420px;
}

/* ===================================== */
/* HERO CTA */
/* ===================================== */

.hero-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 26px;
  background: #E8E6E1;
  color: #0b2f4a;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

/* ===================================== */
/* HERO ENTRANCE STATES */
/* ===================================== */

.hero-subtitle,
.hero-cta {
  opacity: 0;
  transform: translateY(14px);
}

/* when revealed */

.hero-subtitle.show,
.hero-cta.show {
  opacity: 1;
  transform: translateY(0);
}

/* smooth premium easing */

.hero-subtitle {
  transition: all 0.6s cubic-bezier(.22,1,.36,1);
}

.hero-cta {
  transition: all 0.6s cubic-bezier(.22,1,.36,1);
}



/* ===================================== */
/* MENU SYSTEM */
/* ===================================== */

/* WRAPPER */
.menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none; /* disabled when closed */
}

/* OVERLAY (drops from top) */
.menu-overlay {
  display: none;
}


/* PANEL (slides from right) */
.menu-panel {
  position: fixed;
  top: 40px; /* assuming you used the navbar offset */
  right: 0;
  height: calc(100vh - 40px);

  width: 340px;
  background: #08263a;

  display: flex;
  flex-direction: column;

  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);

  border-left: 1px solid rgba(232, 230, 225, 0.08);

  /* ✅ ONLY bottom rounded */
  border-bottom-left-radius: 14px;

  overflow: hidden;
}



/* prevent layout jump when locking scroll */
body.menu-open {
  overflow: hidden;
}



/* INNER CONTENT */
.menu-inner {
  padding: 120px 44px 44px; /* adjust here only */  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* MENU GROUPS */
.menu-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu-divider {
  height: 2px;
  width: 100%;
  margin: 30px 0;
  background-color: rgba(232, 230, 225, 0.4);
  flex-shrink: 0;
}


/* LINKS */
.menu a {
  color: #E8E6E1;
  text-decoration: none;
  font-size: 28px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  line-height: 1.12; /* ← key value */
}


/* emphasized word */

.menu-strong {
  font-weight: 650;
}

/* de-emphasized word */

.menu-light {
  font-weight: 300;
  opacity: 0.9;
}

.menu a:hover {
  opacity: 1;
}

.menu-group a {
  display: block;
  margin-bottom: 10px; /* ← adjust this value */
}

/* ACTIVE STATE */
.menu.active {
  pointer-events: auto;
}

/* PANEL COMES FIRST */
.menu.active .menu-panel {
  transform: translateX(0);

}

/* OVERLAY WAITS */
.menu.active .menu-overlay {
  transform: translateY(0);
  transition-delay: 0.10s;
}


/* ===================================== */
/* MODERN SCROLL REVEAL */
/* ===================================== */

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===================================== */
/* INFO SECTION STYLING */
/* ===================================== */

.info {
  padding: 120px 0px;
    background: #E8E6E1;
  color: #0b2f4a;
}

.info-inner {
  max-width: 900px;
  margin: 0 auto;
}

.info h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.info p {
  font-size: 18px;
  line-height: 1.6;
}

/* ===================================== */
/* PROGRAMME PREVIEW */
/* ===================================== */

.programme-preview {
  padding: 80px 40px;
  background: #0b2f4a;
  color: #E8E6E1;
}

.programme-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.programme-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  margin-bottom: 35px;
  letter-spacing: -0.01em;
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: stretch; /* 🔥 ensures equal height columns */
}


@media (max-width: 900px) {
  .programme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* ===== PARTNERS STRIP ===== */

.credibility {
  padding: 90px 40px 10px;
  background: #0b2f4a;
  color: #E8E6E1;
  text-align: center;
}

.credibility-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 60px;
}


/* title */

.credibility-title {
  font-size: 26px;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* logos row */

.partner-logos img {
  filter: grayscale(100%) brightness(180%);
  opacity: 0.8;
  transition: all 0.25s ease;
}

.partner-logos img:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}


.partner-logos img {
  height: 64px;           /* 🔥 uniform size */
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  margin-bottom: 0px;
}

/* bottom note */

.credibility-note {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===================================== */
/* FINAL CTA */
/* ===================================== */

.final-cta {
  padding:60px 40px;
  background: #8f9fac;
  color: #0b2f4a;
  text-align: center;
}

.final-cta-inner {
  max-width: 900px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: clamp(30px, 3vw, 42px);
  margin-bottom: 40px;
}

.final-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary.big {
  padding: 16px 28px;
  font-size: 16px;
}
/* ===================================== */
/* INSTITUTIONAL NOTE */
/* ===================================== */

.institutional-note {
  padding: 60px 40px;
  background: #0b2f4a;
  color: #E8E6E1;
  text-align: center;
}

.institutional-inner {
  max-width: 900px;
  margin: 0 auto;
}

.institutional-note p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
}

.programme-card {
  padding: 28px 26px;
  border: 3px solid rgba(232, 230, 225, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;

  display: flex;              /* 🔥 key */
  flex-direction: column;     /* 🔥 key */
  height: 100%;               /* 🔥 key */
}

.programme-card h3 {
  font-size: 18px;
  margin-bottom: -20px;
  font-weight: 600;
  line-height: 1.25;          /* 🔥 important */
  min-height: 2.5em;          /* 🔥 alignment magic */
}

.programme-card p {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;          /* 🔥 reduced from 64 */
  flex-wrap: wrap;    /* 🔥 allow clean wrap on small screens */
  margin-top: 0px;
}


.partner-logo {
  position: relative;
  height: 44px;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  transition: transform 0.22s ease; /* smoother lift */
}


.partner-logo img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  object-fit: contain;

  transition:
    opacity 0.32s cubic-bezier(.22,1,.36,1),
    filter 0.32s cubic-bezier(.22,1,.36,1);

  transition-delay: 0.06s; /* 🔥 subtle hover delay */
}


/* ===================================== */
/* PARTNER LOGO COLOR SWAP */
/* ===================================== */

/* mono version (default visible) */

.logo-mono {
  filter: grayscale(100%) brightness(200%);
  opacity: 0.8;
}

/* ===================================== */
/* FIX: Lycée Georges Duby seal */
/* ===================================== */

.partner-logo:nth-child(2) .logo-mono {
  filter: brightness(130%) contrast(95%);
  opacity: 0.85;
}


/* color version hidden initially */

.logo-color {
  position: absolute;
  opacity: 0;
}

/* hover behavior */

.partner-logo:hover .logo-color {
  opacity: 1;
}

.partner-logo:hover .logo-mono {
  opacity: 0;
}

/* ===================================== */
/* PROGRAMME PAGE HERO */
/* ===================================== */

.programme-hero {
  min-height: 40vh;
  padding: 120px 40px 0px; /* 120 instead of 150 */
  background: #0b2f4a;
  color: #E8E6E1;
  display: flex;
  align-items: center;
}

.programme-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center; /* ⭐ KEY */
}


.programme-hero-title {
  font-size: clamp(60px, 15vw, 90px);
  font-weight: 500;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
  line-height: 85px;
}

.programme-hero-subtitle {
  margin-left: auto;
  margin-right: auto;
  font-size:x-large;
}


/* ===================================== */
/* PROGRAMME EXPLAINER */
/* ===================================== */

.programme-explainer {
  padding: 80px 200px 120px;
    background: #0b2f4a;
  color: #E8E6E1;
}

.programme-explainer-inner {
  max-width: 900px;
  margin: 0 auto; /* ⭐ THIS CENTERS IT */
}

.programme-explainer p {
  font-size: 18px;
  line-height: 1.75;  /* 🔥 BREATHING */
  opacity: 0.88;
  margin-bottom: 22px; /* 🔥 paragraph spacing */
}

.programme-explainer p:last-child {
  margin-bottom: 0;
}

/* ===================================== */
/* PROGRAMME INTRO */
/* ===================================== */

.programme-intro {
  padding: 80px 40px 60px;
  background: #E8E6E1;
  color: #0b2f4a;
  text-align: left;
}



/* TITLE */

.programme-intro {
  padding-left: 250px;
}

.programme-heading {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* SUBTITLE */

.programme-subtitle {
  font-size: 22px;
  line-height: 1.6;
  max-width: 820px;
  opacity: 0.9;
}

/* ===================================== */
/* PAGE HERO */
/* ===================================== */

.page-hero {
  padding: 80px 40px 15px;
  background: #E8E6E1;
  color: #0b2f4a;
  line-height: 1.5;
}


.page-hero-inner {
  padding: 20px 20px;
  max-width: 1200px;
}

.page-hero-inner h1 {
  margin-bottom: 20px;
}

.page-title {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 760px;
}

/*4. Team*/

.team-section {
  background: #16324A; /* your dark blue */
  padding: 90px 40px 120px;
}

.team-container {
  max-width: 100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.team-card {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 28px;
  color: #E8E6E1;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.team-card h3 {
  margin-bottom: 6px;
  font-weight: 650;
}

.team-card p {
  opacity: 0.85;
  font-weight: 400;
}

.team-category {
  font-size: 26px;
  font-weight: 700;
  margin: 60px 0 24px;
  color: #E8E6E1;
}

.team-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px; /* 🔥 side breathing */
  padding-bottom: 0px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px; /* 🔥 THIS creates space between cards */
}

.team-photo {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

.menu-active {
  font-weight: 700;
  opacity: 1;
}

/*1.1 Navbar
/* LOGO BETWEEN NAVBAR AND TITLE */

.programme-logo {
  margin-bottom: 30px; /* space above title */
  margin-left: 30px;
}

.programme-logo img {
  height: 150px;       /* 🔥 adjust if needed */
  width: auto;
  display: block;
  opacity: 0.95;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  padding: 20px 40px;

  display: flex;
  align-items: center;          /* ⭐ IMPORTANT */
  justify-content: space-between; /* logo left, burger right */

  background: #0b2f4a;

  z-index: 3000;                /* keep it above everything */
}

.nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  color: #E8E6E1;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  white-space: nowrap;
  text-decoration: none;   /* 🔥 add */
  pointer-events: auto;    /* 🔥 CHANGE THIS */
}


.nav-logo img {
  height: 70px;
  width: auto;
  display: block;
  opacity: 0.95;
}


.hamburger {
  width: 44px;
  height: 44px;              /* big click area */
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;       /* ensures perfect centering */
  gap: 6px;

  position: relative;
  z-index: 3000;
}


.hamburger span {
  display: block;
  height: 4px;
  width: 40px;
  background: #E8E6E1;
  border-radius: 2px;

  pointer-events: none;      /* 🔥 CRITICAL */
}

/*5. Upcoming Lectures*/


/* ===================================== */
/* UPCOMING LECTURES */
/* ===================================== */

.lectures-preview {
  padding: 120px 40px;
  background: #E8E6E1;
  color: #0b2f4a;
}

.lectures-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px; /* subtle breathing */
}



.lectures-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  margin-bottom: 30px;
  letter-spacing: -0.01em;
}
.lectures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.lecture-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 26px;
  border: 1px solid rgba(11, 47, 74, 0.08);
  transition: all 0.25s ease;
}
.lecture-meta {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.lecture-topic {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.lecture-speaker {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 18px;
}
.lecture-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 10px 16px;
  background: #0b2f4a;
  color: #E8E6E1;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;

  display: inline-flex;          /* ⭐ KEY */
  align-items: center;           /* ⭐ vertical center */
  justify-content: center;       /* ⭐ horizontal center */

  transition: all 0.22s ease;
}


.btn-primary:hover {
  background: #123d5f;       /* slightly lighter blue */
  transform: translateY(-1px);
}


.btn-secondary {
  padding: 14px 24px;
  border: 1.5px solid rgba(11, 47, 74, 0.28);
  color: #0b2f4a;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  background: rgba(11, 47, 74, 0.02);

  display: inline-flex;      /* ⭐ add */
  align-items: center;       /* ⭐ add */
  justify-content: center;   /* ⭐ add */

  transition: all 0.22s ease;
}


.btn-secondary:hover {
  background: rgba(11, 47, 74, 0.06);
  border-color: rgba(11, 47, 74, 0.45);
  transform: translateY(-1px);
}

.lecture-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 47, 74, 0.18);
}
@media (max-width: 900px) {
  .lectures-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================== */
/* FEATURED LECTURE */
/* ===================================== */

.featured-lecture {
  padding: 40px 40px;
  background: #0b2f4a;
  color: #E8E6E1;
  text-align: center;
}

/* ===================================== */
/* FEATURED LECTURE BUTTONS */
/* ===================================== */

.btn-featured {
  display: inline-block;

  padding: 16px 28px;
  border-radius: 10px;

  background: #E8E6E1;
  color: #0b2f4a;

  font-size: 16px;
  font-weight: 600;
  text-decoration: none;

  border: 2px solid #E8E6E1;

  transition: all 0.22s ease;
}

/* hover */

.btn-featured:hover {
  background: #ffffff;
  transform: translateY(-2px);
}


.featured-inner {
  max-width: 820px;
  margin: 0 auto;
}

.featured-badge {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 18px;
}

.featured-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.featured-meta {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 50px;
}

.featured-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===================================== */
/* FEATURED LECTURE IMAGE */
/* ===================================== */

.featured-image {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 28px;
  border-radius: 14px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/*6. Library*/
/* ===================================== */
/* ARCHIVE EMPTY STATE */
/* ===================================== */

.archive-empty {
  text-align: center;
  padding: 120px 20px;
  color: #E8E6E1;
  opacity: 0.9;
}

.archive-empty-icon {
  font-size: 48px;
  margin-bottom: 18px;
  opacity: 0.8;
}

.archive-empty h2 {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 600;
}

.archive-empty p {
  font-size: 16px;
  opacity: 0.75;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===================================== */
/* JOIN PAGE */
/* ===================================== */

.join-section {
  background: #E8E6E1;
  padding: 60px 40px 120px;
}

.join-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Google Form wrapper */

.form-embed {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(11, 47, 74, 0.08);
}

/* iframe */

.form-embed iframe {
  width: 100%;
  height: 900px;
  border: 0;
  display: block;
}

/*About*/

.about-section {
  background: #0b2f4a;
  color: #E8E6E1;
  padding: 80px 40px 120px;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
}

.about-inner p {
  font-size: 18px;
  line-height: 1.75;
  opacity: 0.9;
  margin-bottom: 22px;
}

/* ===================================== */
/* HERO SCROLL INDICATOR */
/* ===================================== */

.scroll-indicator {
  position: fixed;          /* ⭐ KEY CHANGE */
  bottom: 28px;             /* distance from bottom of screen */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 50;
}

.scroll-indicator span {
  display: block;
  width: 22px;
  height: 34px;
  border: 2px solid rgba(232, 230, 225, 0.7);
  border-radius: 12px;
  position: relative;
}

/* inner dot */

.scroll-indicator span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  background: rgba(232, 230, 225, 0.9);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollFloat 2.2s ease-in-out infinite;
}

/* animation */

@keyframes scrollFloat {
  0% { transform: translate(-50%, 0); opacity: 0.9; }
  50% { transform: translate(-50%, 8px); opacity: 0.4; }
  100% { transform: translate(-50%, 0); opacity: 0.9; }
}
