.bg-delivery {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Le background est sur ::before, pas sur le body */
.bg-delivery::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background: url("../images/bg-delivery.png") center / cover no-repeat;
  transform: scale(1);
  will-change: transform;
  animation: bgZoom 12s ease-in-out infinite alternate;
}

/* Optionnel: voile pour lisibilité (très pro) */
.bg-delivery::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .15);
  /* ajuste 0.10 → 0.30 */
}

@keyframes bgZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

.card {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 8px 22px rgba(1, 105, 164, 0.18);
}

.soft-text {
  color: #6c757d;
}

.price {
  letter-spacing: .2px;
}

.brand-footer {
  opacity: .9;
}

.card-brand {
  border-top: 4px solid #0d6efd;
}

/* Autocomplete dropdown */
.suggestions {
  z-index: 1050;
  max-height: 260px;
  overflow: auto;
}

.suggestions .list-group-item {
  cursor: pointer;
}

.suggestions .active {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

mark {
  padding: 0;
  background: rgba(13, 110, 253, .15);
  color: inherit;
  border-radius: 4px;
}

/* Splash screen */
.splash {
  position: fixed;
  inset: 0;
  background: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity .35s ease, visibility .35s ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-card {
  width: min(420px, 92vw);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  padding: 26px;
  text-align: center;
  color: #fff;
}

.splash-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 10px;
  animation: pop .6s ease both;
}

@keyframes pop {
  from {
    transform: scale(.9);
    opacity: .0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.splash-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.splash-sub {
  color: rgba(255, 255, 255, .75);
  font-size: 0.95rem;
}

/* progress bar */
.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  overflow: hidden;
  margin-top: 16px;
}

.progress-bar {
  width: 35%;
  background: #22c55e;
  /* vert pro */
  animation: loading 1.1s ease-in-out infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-90%);
    width: 35%;
  }

  50% {
    transform: translateX(30%);
    width: 55%;
  }

  100% {
    transform: translateX(140%);
    width: 35%;
  }
}

/* Page fade-in after splash */
.app-wrap {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}

.app-wrap.ready {
  opacity: 1;
  transform: translateY(0);
}

.footer-shadow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 6px 16px rgba(1, 105, 164, 0.25);
  backdrop-filter: blur(4px);
}