/* BTS Prépa Lab — feuille de style principale
   Éditeur : S&A Projects
   Identité visuelle v5 — copie fidèle du modèle de référence (violet/lavande, Montserrat/Raleway) */

:root {
  --violet: #5B3DF5;
  --violet-dark: #3B22C4;
  --violet-light: #8B7CF6;
  --lavender: #EFEBFE;

  --ink: #1B1D22;
  --ink-soft: #5B5E68;
  --bg: #F5F6FA;
  --paper: #FFFFFF;
  --border: #E7E8EE;
  --on-navy: #ECEEF3;
  --on-navy-soft: #A7B0C2;

  --card-radius: 14px;

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-gold {
  background: var(--violet);
  color: #FFFFFF;
}

.btn-gold:hover {
  background: var(--violet-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(91, 61, 245, 0.3);
}

.btn-outline {
  border: 2px solid var(--violet);
  color: var(--violet);
  background: transparent;
  padding: 11px 24px;
}

.btn-outline:hover {
  background: var(--lavender);
  transform: translateY(-2px);
}

/* ---------- Topbar ---------- */

.topbar {
  background: var(--ink);
  color: #cfd0d8;
  font-size: 0.8rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a { color: #cfd0d8; }
.topbar a:hover { color: #FFFFFF; }

.topbar-brand {
  color: #cfd0d8;
  font-weight: 500;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  width: auto;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.brand-logo span {
  display: block;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--violet), var(--violet-dark));
}
.brand-logo span:nth-child(1) { height: 12px; opacity: 1; }
.brand-logo span:nth-child(2) { height: 18px; opacity: 1; }
.brand-logo span:nth-child(3) { height: 26px; opacity: 1; }

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: none;
  transition: color 0.15s ease;
}

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

.site-nav a.nav-active {
  color: var(--violet);
}

.site-nav a.nav-cta {
  background: transparent;
  color: var(--violet);
  border: 2px solid var(--violet);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
}

.site-nav a.nav-cta:hover {
  background: var(--lavender);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

.lang-switch a,
.lang-switch span {
  padding: 4px 6px;
  color: var(--ink-soft);
}

.lang-switch a:hover { color: var(--violet); }

.lang-switch .current {
  color: var(--violet);
}

.lang-divider { color: var(--border); }

/* ---------- Badge / eyebrow ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-dark);
  background: var(--lavender);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  background: var(--bg);
}

.hero .container { position: relative; }

.hero .badge { justify-content: center; margin-bottom: 22px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--ink);
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 .accent {
  display: block;
  color: var(--violet);
  font-weight: 900;
  font-style: normal;
}

.hero p.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 20px auto 32px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 14px;
  margin-bottom: 40px;
}

/* ---------- Stats / facts row ---------- */

.stats-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 56px;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 22px 20px;
  text-align: left;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(20, 20, 40, 0.04);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--lavender);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.3;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

section { padding: 70px 0; position: relative; }

.section-tag {
  color: var(--violet);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 680px;
}

.section-body {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 36px;
}

.section-body p { margin: 0 0 14px; }
.section-body p:last-child { margin-bottom: 0; }

.section-note {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ---------- Alternating background ---------- */

.bg-alt { background: var(--bg); }

/* ---------- Dark section variant (unused on the homepage, kept for future use) ---------- */

.section-dark {
  background: var(--ink);
}

.section-dark .section-title { color: var(--on-navy); }
.section-dark .section-body { color: var(--on-navy-soft); }
.section-dark .section-note { color: var(--on-navy-soft); border-top-color: rgba(236, 238, 243, 0.16); }

/* ---------- Modules preview (course cards) ---------- */

.courses-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.course-card {
  position: relative;
  flex: 0 1 190px;
  max-width: 220px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(20, 20, 40, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(20, 20, 40, 0.08);
}

.course-number {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--violet);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.course-thumb {
  height: 64px;
  background: linear-gradient(135deg, var(--violet-light), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.course-body { padding: 12px; }

.course-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.course-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.course-desc {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0 0 8px;
  line-height: 1.4;
}

.course-card .module-link {
  display: inline-block;
  font-size: 0.78rem;
  padding: 7px 12px;
}

.modules-more {
  margin-top: 40px;
  text-align: center;
}

/* ---------- Method / learning journey ---------- */

.method-phases {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.method-phase-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.method-phase-label .dash {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--phase-color, var(--violet));
  flex-shrink: 0;
}

.method-phase-label .eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.method-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.method-row.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

.method-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent, var(--violet));
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(20, 20, 40, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(20, 20, 40, 0.08);
}

.method-card .eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent, var(--violet));
  margin-bottom: 6px;
}

.method-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

.method-card p {
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- FAQ accordion ---------- */

#faq .container {
  text-align: center;
}

#faq .section-title,
#faq .section-body {
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--violet);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 400;
  margin: 0;
}

/* ---------- CTA (final) ---------- */

.cta {
  background: var(--ink);
  padding: 80px 0;
}

.cta .container { text-align: center; position: relative; }

.cta h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--on-navy);
  max-width: 560px;
  margin: 0 auto 14px;
}

.cta p {
  color: var(--on-navy-soft);
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cta-form input[type="email"] {
  flex: 1 1 250px;
  padding: 14px 20px;
  border: 1px solid rgba(236, 238, 243, 0.25);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.96rem;
  background: rgba(236, 238, 243, 0.08);
  color: var(--on-navy);
}

.cta-form input[type="email"]::placeholder { color: var(--on-navy-soft); }

.cta-form input[type="email"]:focus { outline: none; border-color: var(--violet); }

.cta-form button {
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: var(--violet);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta-form button:hover {
  background: var(--violet-dark);
  transform: translateY(-2px);
}

.cta-note {
  margin-top: 18px;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--on-navy-soft);
}

.cta-note a { color: var(--violet-light); text-decoration: underline; }

/* ---------- Account (signup / login) ---------- */
.auth-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 auto 26px;
  padding: 4px;
  background: rgba(236, 238, 243, 0.08);
  border-radius: 999px;
}

.auth-tab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--on-navy-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-tab.is-active {
  background: var(--violet);
  color: #FFFFFF;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}

.auth-form input {
  padding: 14px 20px;
  border: 1px solid rgba(236, 238, 243, 0.25);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.96rem;
  background: rgba(236, 238, 243, 0.08);
  color: var(--on-navy);
}

.auth-form input::placeholder { color: var(--on-navy-soft); }

.auth-form input:focus { outline: none; border-color: var(--violet); }

.auth-form button {
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: var(--violet);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.auth-form button:hover { background: var(--violet-dark); transform: translateY(-2px); }

.auth-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.cta-note.is-error { color: #FF9B9B; }

.cta-note.is-success { color: #8EE8C3; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 30px 0;
  background: var(--ink);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-text {
  font-size: 0.85rem;
  font-weight: 400;
  color: #cfd0d8;
}

.footer-compliance {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(207, 208, 216, 0.55);
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: #cfd0d8;
  margin-left: 18px;
}

.footer-links a:hover { color: var(--violet-light); }

/* ---------- Legal page ---------- */

.legal-page { padding: 64px 0 100px; }

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--ink);
  margin-bottom: 34px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 34px 0 8px;
}

.legal-page p, .legal-page li {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.98rem;
}

.legal-page a { color: var(--violet); text-decoration: underline; }

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.back-link:hover { color: var(--violet); }

.legal-page .container { color: var(--ink); }

/* ---------- Responsive ---------- */

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 6px 0 16px;
  border-top: 1px solid var(--border);
}

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

.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav a.nav-cta {
  color: var(--violet);
}

@media (max-width: 820px) {
  .site-header .container { grid-template-columns: auto auto auto; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .stats-row { display: grid; grid-template-columns: repeat(2, 1fr); }
  .course-card { flex-basis: calc(50% - 6px); max-width: calc(50% - 6px); }
  .courses-grid { gap: 12px; }
  .method-row { grid-template-columns: 1fr !important; }
  .site-footer .container { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-links a { margin-left: 0; margin-right: 18px; }
}

@media (max-width: 560px) {
  .hero { padding: 56px 0 40px; }
  section { padding: 56px 0; }
}


/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 820px;
  margin-top: 36px;
}
.price-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px 28px;
}
.price-card-highlight {
  border-color: var(--violet);
  box-shadow: 0 10px 28px rgba(91, 61, 245, 0.14);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--violet);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 10px;
}
.price-amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--ink);
}
.price-amount .price-period {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: 6px;
}
.price-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 4px 0 18px;
}
.price-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.price-features li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }
.price-card .btn { width: 100%; text-align: center; }

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

/* ---------- Track tabs (MCO / NDRC) ---------- */
.track-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 28px;
}
.track-tab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.track-tab:hover {
  border-color: var(--violet-light);
}
.track-tab.is-active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
.module-soon {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

