@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;900&display=swap');

#ufoab-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity .5s ease, visibility .5s ease;
}

#ufoab-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#ufoab-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(30,122,58,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(200,145,31,.06) 0%, transparent 70%);
  pointer-events: none;
}

#ufoab-loader::after {
  content: 'UFOAB';
  position: absolute;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(30,122,58,.06);
  letter-spacing: .05em;
  pointer-events: none;
  user-select: none;
}

.ufoab-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}

/* ── logo ── */
.ball-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ufoab-ball {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 50%;
  animation: logoPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(30,122,58,.25));
}

/* cercle lumineux tournant autour du logo */
.logo-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #1e7a3a;
  border-right-color: #c8911f;
  animation: ringRotate 1.2s linear infinite;
}

.logo-ring-2 {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 164px; height: 164px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: #c0272d;
  border-left-color: rgba(30,122,58,.3);
  animation: ringRotate 2s linear infinite reverse;
}

/* ── branding ── */
.ufoab-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ufoab-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #1e7a3a;
  animation: fadeInUp .6s .2s ease both;
}

.ufoab-progress-bar {
  width: 160px;
  height: 3px;
  background: #e8f5ec;
  border-radius: 100px;
  overflow: hidden;
}
.ufoab-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1e7a3a, #c8911f, #c0272d);
  border-radius: 100px;
  animation: progressFill 1.8s ease forwards;
}

.ufoab-dots {
  display: flex;
  gap: 8px;
}
.ufoab-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1e7a3a;
  opacity: .25;
  animation: dotBlink 1.2s ease infinite;
}
.ufoab-dots span:nth-child(1) { animation-delay: 0s; }
.ufoab-dots span:nth-child(2) { animation-delay: .2s; }
.ufoab-dots span:nth-child(3) { animation-delay: .4s; }

.ufoab-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  display: flex;
}
.ufoab-stripe span {
  flex: 1;
  animation: stripeGrow 1.8s ease forwards;
  transform-origin: left;
  transform: scaleX(0);
}
.ufoab-stripe span:nth-child(1) { background: #1e7a3a; animation-delay: 0s; }
.ufoab-stripe span:nth-child(2) { background: #c8911f; animation-delay: .15s; }
.ufoab-stripe span:nth-child(3) { background: #c0272d; animation-delay: .3s; }

/* ── keyframes ── */
@keyframes logoPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 8px 24px rgba(30,122,58,.25)); }
  50%       { transform: scale(1.06); filter: drop-shadow(0 12px 32px rgba(30,122,58,.38)); }
}

@keyframes ringRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes dotBlink {
  0%, 100% { opacity: .2; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.3); }
}

@keyframes progressFill {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

@keyframes stripeGrow {
  to { transform: scaleX(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
