html {
  scroll-behavior: smooth;
}

:root {
  --bg: #0b0f19;
  --ink: #e5e7eb;
  --muted: #94a3b8;
  --brand: #1e90ff;
  --brand-2: #38bdf8;
}

.hero {
  padding: 112px 0;
}

.section {
  padding: 84px 0;
}

body {
  position: relative;
  z-index: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background:
    radial-gradient(1100px 520px at 70% -10%, rgba(56,189,248,.18), transparent),
    radial-gradient(900px 480px at -10% 40%, rgba(30,144,255,.25), transparent),
    var(--bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(50px);
  opacity: .5;
}

body::before {
  width: 520px;
  height: 520px;
  left: -140px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(30,144,255,.55), rgba(30,144,255,0));
}

body::after {
  width: 640px;
  height: 640px;
  right: -220px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 70%, rgba(56,189,248,.5), rgba(56,189,248,0));
}


/* ====== RESPONSIVE DESIGN ====== */

/* Mobile (≤ 576px) */
@media (max-width: 576px) {
  body {
    background-attachment: scroll;
  }
  
  body::before,
  body::after {
    filter: blur(80px);
    opacity: .80;
  }
  
  body::before {
    width: 320px;
    height: 320px;
    left: -180px;
    bottom: -180px;
  }
  
  body::after {
    width: 380px;
    height: 380px;
    right: -200px;
    top: -200px;
  }

  /* Hero adjustments on mobile */
  .hero {
    padding: 72px 0; /* reduce vertical space on small screens */
  }

  /* Réduire le texte du paragraphe hero sur mobile */
  .hero .lead {
    font-size: 1rem; /* Bootstrap .lead = 1.25rem par défaut */
    line-height: 1.6;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }

  .display-hero {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  }

  /* Underline shimmer narrower so it matches shorter headings on mobile */
  .underline-shimmer {
    width: 64%;
    bottom: -8px;
  }

  /* Small info row (icons under buttons) - allow wrap and slightly smaller text */
  .hero .small {
    font-size: .9rem;
    gap: .75rem !important;
  }
}

/* Tablettes (577px - 991px) */
@media (min-width: 577px) and (max-width: 991px) {
  body::before,
  body::after {
    filter: blur(44px);
    opacity: .45;
  }
  
  body::before {
    width: 420px;
    height: 420px;
    left: -160px;
    bottom: -160px;
  }
  
  body::after {
    width: 520px;
    height: 520px;
    right: -220px;
    top: -220px;
  }

  .hero {
    padding: 96px 0; /* slightly tighter than desktop */
  }

  .hero .lead {
    max-width: 80%;
    margin-inline: auto;
  }

  .underline-shimmer {
    width: 68%;
  }
}

#bg-stars {
  inset: 0;
  z-index: 0;
}

header, nav, main, .section, footer {
  z-index: 1;
}

.navbar {
  background: rgba(11,15,25,.65);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.navbar .nav-link {
  color: var(--ink);
}

.navbar .nav-link:hover {
  color: var(--brand-2);
}

.navbar-brand {
  letter-spacing: .3px;
}

.navbar-brand .accent {
  color: var(--brand-2);
}

.display-hero {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.underline-shimmer {
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.8), transparent);
  animation: shine 2.5s ease-in-out infinite;
  opacity: .85;
  border-radius: 999px;
  height: 2px;
  width: 72%;
  bottom: -10px;
}

@keyframes shine {
  0% { 
    background-position: -200% 0; 
  }
  100% { 
    background-position: 200% 0; 
  }
}

.kicker {
  border: 1px solid rgba(255,255,255,.1);
  color: var(--brand-2);
  letter-spacing: .12em;
}

.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: #1476d6;
  --bs-btn-color: #fff;
}

.rotate-90 {
  transform: rotate(90deg);
}

.btn-ghost {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255,255,255,.16);
  --bs-btn-hover-bg: rgba(255,255,255,.06);
  --bs-btn-hover-border-color: rgba(255,255,255,.3);
}

.btn-mag {
  isolation: isolate;
}

.btn-mag span {
  z-index: 2;
}

.btn-mag::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0%;
  background: linear-gradient(180deg, rgba(56,189,248,.0), rgba(56,189,248,.25));
  transition: height .25s ease;
  z-index: 1;
}

.btn-mag:hover::after {
  height: 100%;
}

.cardx {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transition: .2s ease;
}

.cardx:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 70px rgba(0,0,0,.5);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30,144,255,.25), rgba(56,189,248,.15));
  color: var(--brand-2);
}

.headline {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.lead {
  color: var(--muted);
}

.text-brand {
  color: var(--brand-2) !important;
}

.badge-soft {
  background: rgba(56,189,248,.12);
  color: var(--brand-2);
  border: 1px solid rgba(56,189,248,.25);
}

.step .num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.ba {
  background: #111;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  aspect-ratio: 4/3;
  min-height: 220px;
  touch-action: pan-y;
}

.ba img {
  object-fit: cover;
}

.ba__after,
.ba__before {
  inset: 0;
}

.ba__after {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: var(--pos, 50%);
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.25));
  pointer-events: none;
}

.ba__handle {
  position: absolute;
  left: var(--pos, 50%);
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(30,144,255,.95), rgba(56,189,248,.7));
  box-shadow: 0 6px 16px rgba(0,0,0,.45);
  color: #fff;
  font-size: 18px;
  pointer-events: none;
}

.ba__range {
  position: absolute;
  inset: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
}

.ba__range::-moz-range-thumb {
  width: 0;
  height: 0;
  border: 0;
}

.ba__label {
  position: absolute;
  bottom: 10px;
  padding: .25rem .5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .85rem;
  background: rgba(255,0,0,.85);
  color: #fff;
}

.ba__label--before {
  left: 10px;
}

.ba__label--after {
  right: 10px;
  background: rgba(0,140,0,.9);
}

footer {
  border-top: 1px solid rgba(255,255,255,.08);
}