/* ============================================================
   BTS LEARNING — PUBLIC THEME
   Palette  : Indigo #4338ca + Sky #0ea5e9
   Font     : Inter var (local)
   Inspired : offresAlternance KEYCE visual identity
============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --bl-primary:        #4338ca;
  --bl-primary-dark:   #3730a3;
  --bl-primary-light:  #e0e7ff;
  --bl-accent:         #0ea5e9;
  --bl-accent-dark:    #0284c7;
  --bl-secondary:      #1e1b4b;
  --bl-dark:           #0f0e2e;
  --bl-gray:           #6b7280;
  --bl-light:          #f8faff;
  --bl-white:          #ffffff;

  --bl-gradient:       linear-gradient(135deg, #4338ca 0%, #0ea5e9 100%);
  --bl-gradient-dark:  linear-gradient(135deg, #1e1b4b 0%, #2d2a72 100%);
  --bl-gradient-rev:   linear-gradient(135deg, #0ea5e9 0%, #4338ca 100%);

  --bl-shadow-sm:      0 2px 8px rgba(67, 56, 202, 0.08);
  --bl-shadow:         0 8px 24px rgba(67, 56, 202, 0.12);
  --bl-shadow-lg:      0 20px 60px rgba(67, 56, 202, 0.18);

  --bl-radius:         14px;
  --bl-radius-lg:      24px;
}

/* --- Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
  background: var(--bl-white);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* --- Navbar ----------------------------------------------- */
.bl-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}

.bl-navbar.scrolled {
  background: rgba(15, 14, 46, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.7rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.bl-navbar .navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.bl-navbar .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.9rem !important;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.bl-navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.btn-nav-login {
  background: var(--bl-gradient) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.45rem 1.25rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.4);
  transition: opacity 0.2s, transform 0.2s !important;
}

.btn-nav-login:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff !important;
}

.btn-nav-register {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50px !important;
  padding: 0.45rem 1.25rem !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  transition: background 0.2s, border-color 0.2s !important;
}

.btn-nav-register:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
}

.btn-nav-dashboard {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 50px !important;
  padding: 0.45rem 1.25rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: background 0.2s !important;
}

.btn-nav-dashboard:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

/* --- Hero -------------------------------------------------- */
.bl-hero {
  min-height: 100vh;
  background: var(--bl-gradient-dark);
  position: relative;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
  overflow: hidden;
}

.bl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 72% 45%, rgba(14, 165, 233, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 15% 80%, rgba(67, 56, 202, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

/* Badge hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 50px;
  padding: 0.38rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.bl-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--bl-gradient-rev);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Boutons hero */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bl-gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 28px rgba(67, 56, 202, 0.45);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(67, 56, 202, 0.55);
  color: #fff;
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

/* Stats hero */
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--bl-gradient-rev);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* Floating cards */
.hero-cards {
  position: relative;
  height: 430px;
}

.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--bl-radius);
  padding: 1.1rem 1.3rem;
  color: #fff;
  width: 228px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-card:nth-child(1) { top: 0;    right: 16px;  animation: float1 6s ease-in-out infinite; }
.hero-card:nth-child(2) { top: 145px; right: 148px; animation: float2 7.5s ease-in-out infinite; }
.hero-card:nth-child(3) { top: 288px; right: 8px;   animation: float3 5.5s ease-in-out infinite; }

.hc-type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bl-accent);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hc-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.hc-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.hc-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin-top: 0.6rem;
  overflow: hidden;
}

.hc-progress-fill {
  height: 100%;
  background: var(--bl-gradient);
  border-radius: 2px;
}

.hc-score {
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--bl-gradient-rev);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.hc-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 0.3rem;
  margin-top: 0.4rem;
}

/* --- Section communes -------------------------------------- */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bl-primary);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--bl-secondary);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--bl-gray);
  line-height: 1.75;
  max-width: 540px;
}

/* --- Stats bar -------------------------------------------- */
.bl-stats {
  padding: 3.5rem 0;
  background: var(--bl-light);
  border-top: 1px solid rgba(67, 56, 202, 0.06);
  border-bottom: 1px solid rgba(67, 56, 202, 0.06);
}

.stat-block {
  text-align: center;
  padding: 1rem;
}

.stat-block .stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--bl-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-block .stat-desc {
  font-size: 0.875rem;
  color: var(--bl-gray);
  font-weight: 500;
  margin-top: 0.4rem;
}

/* --- Features --------------------------------------------- */
.bl-features {
  padding: 5.5rem 0;
  background: var(--bl-white);
}

.feature-card {
  background: var(--bl-white);
  border: 1px solid rgba(67, 56, 202, 0.1);
  border-radius: var(--bl-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bl-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--bl-shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--bl-primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--bl-primary);
  margin-bottom: 1.25rem;
}

.feature-card h5 {
  font-size: 1.025rem;
  font-weight: 700;
  color: var(--bl-secondary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--bl-gray);
  line-height: 1.65;
  margin: 0;
}

/* --- How it works ----------------------------------------- */
.bl-how {
  padding: 5.5rem 0;
  background: var(--bl-light);
}

.steps-row { position: relative; }

.steps-row::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 48px);
  right: calc(16.66% + 48px);
  height: 2px;
  background: var(--bl-gradient);
  opacity: 0.18;
}

.step-card { text-align: center; padding: 2rem 1.5rem; }

.step-number {
  width: 64px;
  height: 64px;
  background: var(--bl-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(67, 56, 202, 0.35);
  position: relative;
  z-index: 1;
}

.step-card h5 {
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--bl-secondary);
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--bl-gray);
  line-height: 1.65;
  margin: 0;
}

/* --- BTS disponibles -------------------------------------- */
.bl-bts {
  padding: 5.5rem 0;
  background: var(--bl-white);
}

.bts-card {
  border: 1px solid rgba(67, 56, 202, 0.1);
  border-radius: var(--bl-radius-lg);
  padding: 2rem;
  height: 100%;
  text-decoration: none;
  display: block;
  background: var(--bl-white);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bts-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bl-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.bts-card:hover { transform: translateY(-6px); box-shadow: var(--bl-shadow-lg); }
.bts-card:hover::after { transform: scaleX(1); }

.bts-icon {
  width: 54px;
  height: 54px;
  background: var(--bl-gradient);
  border-radius: var(--bl-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.bts-acronym {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bl-primary);
  margin-bottom: 0.4rem;
}

.bts-card h5 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--bl-secondary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.bts-card p {
  font-size: 0.875rem;
  color: var(--bl-gray);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.bts-arrow {
  color: var(--bl-primary);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

.bts-card:hover .bts-arrow { gap: 0.65rem; }

/* --- Témoignages ------------------------------------------ */
.bl-testimonials {
  padding: 5.5rem 0;
  background: var(--bl-light);
}

.testimonials-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.testimonials-wrapper::-webkit-scrollbar { display: none; }
.testimonials-wrapper.dragging { cursor: grabbing; }

.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - 1rem);
  background: var(--bl-white);
  border-radius: var(--bl-radius-lg);
  padding: 2rem;
  box-shadow: var(--bl-shadow-sm);
}

.tc-quote {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--bl-primary-light);
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
}

.tc-text {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tc-avatar {
  width: 42px;
  height: 42px;
  background: var(--bl-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  flex-shrink: 0;
}

.tc-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bl-secondary);
}

.tc-role {
  font-size: 0.78rem;
  color: var(--bl-gray);
}

/* Dots carousel */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(67, 56, 202, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
}

.carousel-dot.active {
  background: var(--bl-gradient);
  width: 24px;
  border-radius: 4px;
}

/* --- CTA -------------------------------------------------- */
.bl-cta {
  padding: 6rem 0;
  background: var(--bl-gradient-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.bl-cta::before {
  content: '';
  position: absolute;
  top: -40%; left: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.bl-cta::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.bl-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.bl-cta p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.cta-buttons { position: relative; z-index: 1; }

/* --- Footer ----------------------------------------------- */
.bl-footer {
  background: var(--bl-dark);
  padding: 4rem 0 2rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 230px;
  line-height: 1.65;
  margin-top: 0.75rem;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.28rem 0;
  transition: color 0.2s;
}

.footer-link:hover { color: #fff; }

.footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 2rem 0 1.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Scroll reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- @keyframes ------------------------------------------- */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(-5px); }
  50%       { transform: translateY(9px); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(4px); }
  50%       { transform: translateY(-11px); }
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 991px) {
  .bl-hero { padding: 7rem 0 4rem; }
  .hero-cards { display: none; }
  .hero-stats { gap: 1.5rem; }
  .steps-row::before { display: none; }
  .testimonial-card { flex: 0 0 calc(50% - 0.75rem); }
}

@media (max-width: 575px) {
  .hero-stats { gap: 1rem; }
  .hero-stat-number { font-size: 1.4rem; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; justify-content: center; }
  .testimonial-card { flex: 0 0 100%; }
}
