body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  padding-top: 90px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}

section {
  position: relative;
}

.container {
  position: relative;
  z-index: 2;
}

/* Navbar */
.navbar {
  background: var(--nav);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.navbar-brand img {
  transition: transform .2s ease;
}

.navbar-brand:hover img {
  transform: scale(1.03);
}

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  position: relative;
  transition: color .2s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: var(--border-strong);
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2) !important;
}

[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}

/* Hero */
.hero,
.hero-minecraft {
  position: relative;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero {
  min-height: 90vh;
  padding: 140px 20px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 58, 138, 0.56)),
    url('/assets/img/data-center-775ta0o0wf4nbyq3.jpg') center/cover no-repeat;
}

.hero-minecraft {
  min-height: 80vh;
  padding: 130px 20px;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.64), rgba(34, 197, 94, 0.32)),
    url('/assets/img/minecraft01.jpg') center/cover no-repeat;
}

.hero::before,
.hero-minecraft::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 35%),
    radial-gradient(circle at bottom right, rgba(6,182,212,0.14), transparent 28%);
  pointer-events: none;
}

.hero .container,
.hero-minecraft .container {
  position: relative;
  z-index: 2;
}

.hero h1,
.hero-minecraft h1 {
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 12ch;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead,
.hero-minecraft p.lead {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
}

.hero .badge,
.hero-minecraft .badge {
  box-shadow: var(--shadow-md);
}

/* Typographie générale */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Titres blancs uniquement pour le contenu principal du hero */
.hero > .container > .row > .col-lg-7 h1,
.hero > .container > .row > .col-lg-7 h2,
.hero > .container > .row > .col-lg-7 h3,
.hero > .container > .row > .col-lg-7 h4,
.hero > .container > .row > .col-lg-7 h5,
.hero > .container > .row > .col-lg-7 h6,
.hero-minecraft > .container > .row > .col-lg-7 h1,
.hero-minecraft > .container > .row > .col-lg-7 h2,
.hero-minecraft > .container > .row > .col-lg-7 h3,
.hero-minecraft > .container > .row > .col-lg-7 h4,
.hero-minecraft > .container > .row > .col-lg-7 h5,
.hero-minecraft > .container > .row > .col-lg-7 h6 {
  color: #fff;
}

p {
  margin-bottom: 1rem;
}

.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.section-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn,
.hero-minecraft .btn {
  min-width: 190px;
}

.card .btn + .btn {
  margin-left: .5rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  body {
    padding-top: 82px;
  }

  .hero,
  .hero-minecraft {
    text-align: center;
    min-height: auto;
  }

  .hero h1,
  .hero-minecraft h1 {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .hero,
  .hero-minecraft {
    padding: 100px 15px;
    background-position: center center;
  }

  .hero h1,
  .hero-minecraft h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero p.lead,
  .hero-minecraft p.lead {
    font-size: 1rem;
  }

  .hero .btn,
  .hero-minecraft .btn {
    width: 100%;
    min-width: unset;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  .hero .d-flex.gap-3,
  .hero-minecraft .d-flex.gap-3 {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero,
  .hero-minecraft {
    padding: 85px 10px;
  }

  .hero h1,
  .hero-minecraft h1 {
    font-size: 1.65rem;
  }

  .hero p.lead,
  .hero-minecraft p.lead {
    font-size: 0.95rem;
  }

  .py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}