:root {
  --bg-deep: #0a0d14;
  --indigo: #6366f1;
  --purple: #a855f7;
  --cyan: #22d3ee;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.mss-landing-page {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-deep);
  color: #f8fafc;
  overflow-x: hidden;
  overflow-y: auto;
}

html.has-modal-open body.mss-landing-page {
  overflow: hidden;
}

body.mss-landing-page .mss-landing-main {
  display: block;
}

/* Header fixe + z-index haut : le hero scroll magnétique ne doit pas bloquer le menu */
body.mss-landing-page .mss-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: rgba(2, 6, 23, 0.95);
}

body.mss-landing-page .mss-landing-main {
  padding-top: 4.5rem;
}

body.mss-landing-page .mss-header .alignwide {
  width: 100%;
}

body.mss-landing-page .mss-header .nav-actions {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}



/* ── Stars ── */
.stars-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  animation: twinkle var(--duration, 3s) infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

/* ── Glass ── */
.glass-panel {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Buttons ── */
.btn-cosmic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 1.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-cosmic:hover {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 1.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(129, 140, 248, 0.35);
}

/* ── Header ── */
.site-header {
  --header-bg-opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, calc(0.6 * var(--header-bg-opacity)));
  backdrop-filter: blur(calc(12px * var(--header-bg-opacity)));
  -webkit-backdrop-filter: blur(calc(12px * var(--header-bg-opacity)));
  border-bottom: 1px solid rgba(255, 255, 255, calc(0.1 * var(--header-bg-opacity)));
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.site-header-inner {
  width: 100%;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.brand span {
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  display: flex;
  padding: 0.2rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-switch button {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.65rem;
  border-radius: 0.55rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang-switch button.is-active {
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(2rem, 6vh, 4rem);
  padding-bottom: 0;
  text-align: center;
}

.hero-intro {
  max-width: 42rem;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-brand-name {
  white-space: nowrap;
}

.tagline {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #c7d2fe;
  font-weight: 600;
  line-height: 1.45;
}

/* Vidéo hero centrée, largeur fixe comme dans la page actuelle */
.hero-video-wrap {
  position: relative;
  width: min(40rem, 90vw);
  margin: 0 auto;
  overflow: visible;
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  vertical-align: top;
  transform: translateZ(0);
  backface-visibility: hidden;
  border-radius: 0.75rem;
}

/* ── Section élèves ── */
.section-students {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem 4rem;
}

.students-card {
  width: min(36rem, 90vw);
  border-radius: 1.5rem;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 2.5rem;
  text-align: center;
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.section-text {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: left;
}

.section-text strong {
  color: #f8fafc;
}

.contact-help a {
  color: #818cf8;
  font-weight: 600;
  text-decoration: none;
}

.contact-help a:hover {
  color: #c7d2fe;
}

.cta-center {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

/* ── Section pourquoi ── */
.section-why {
  display: flex;
  justify-content: center;
  padding: 8rem 1.5rem 8rem;
}

.section-why-inner {
  width: min(36rem, 90vw);
}

.why-title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.why-list li::before {
  content: '✨';
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ── Section tuteurs ── */
.section-tutors {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem 5rem;
}

.tutors-card {
  width: min(36rem, 90vw);
  border-radius: 1.5rem;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
}

.section-sub-strong {
  color: #94a3b8;
}

.tutor-perks {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tutor-perks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: #e2e8f0;
}

.tutor-perks li::before {
  content: '✓';
  color: var(--indigo);
  font-weight: 800;
  flex-shrink: 0;
}

.btn-tutor {
  font-size: 0.65rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 3rem 1.5rem 2.5rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
  }
  .footer-links {
    align-self: flex-end;
  }
}

.footer-brand .brand {
  margin-bottom: 0.5rem;
}

.footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #475569;
  max-width: 20rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  text-align: right;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #818cf8;
}

/* ── Burger ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #e2e8f0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem) 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 13, 20, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-lang {
  margin-bottom: 0.25rem;
  align-self: flex-start;
}

.mobile-nav-link {
  text-align: center;
}

@media (max-width: 640px) {
  .nav-actions { display: none; }
  .burger { display: flex; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.25);
  border-radius: 10px;
}
