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 {
    padding: 72px 0;
  }

  .section {
    padding: 48px 0;
  }

  .hero .lead {
    font-size: 1rem;
    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 {
    width: 64%;
    bottom: -8px;
  }

  .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;
  }

  .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);
}

.gallery-page-hero {
  padding-top: 96px;
  padding-bottom: 56px;
}

.gallery-page-hero .lead {
  max-width: 680px;
}

.gallery-grid > div {
  display: flex;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.5rem;
  background: rgba(11, 15, 25, .42);
  opacity: 0;
  transition: opacity .25s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus-visible .gallery-item__overlay {
  opacity: 1;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, .88);
  backdrop-filter: blur(8px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__content {
  position: relative;
  max-width: min(1100px, 95vw);
  max-height: 90vh;
}

.gallery-lightbox__content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
}

.gallery-lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 25, 38, .95);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  background: var(--brand);
  transform: scale(1.06);
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.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;
  pointer-events: none;
}

.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: auto;
  cursor: grab;
}

.ba__handle:active {
  cursor: grabbing;
}

.ba__range {
  position: absolute;
  inset: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
  pointer-events: 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);
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  footer {
    padding-bottom: 0;
  }
}

/* ====== MOBILE DOCK BAR ====== */
.dock-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 400px;
  background: rgba(18, 25, 38, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  gap: 4px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  width: 44px;
}

.dock-item i {
  font-size: 20px;
  margin-bottom: 2px;
  transition: transform 0.3s ease;
}

.dock-item:hover,
.dock-item.active {
  color: #fff;
}

.dock-item.active i {
  color: var(--brand-2);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--brand-2);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--brand-2);
}

.dock-item.dock-cta {
  color: #fff;
}

.dock-item.dock-cta i {
  color: var(--brand);
  font-size: 22px;
  background: linear-gradient(135deg, rgba(30,144,255,0.2), rgba(30,144,255,0));
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(30,144,255,0.3);
  box-shadow: 0 4px 12px rgba(30,144,255,0.2);
}

.dock-item.dock-cta.active::after {
  content: none; 
}
