/* Splash lancement Photos — même animation que Chat / Agenda / Coffre / Mail. */
.photos-boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  min-height: 100dvh;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% -5%, rgba(167, 139, 250, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(124, 58, 237, 0.2), transparent 55%),
    #1a1025;
  font-family: Poppins, system-ui, sans-serif;
}

.photos-boot__glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(56px);
  pointer-events: none;
  opacity: 0.55;
  animation: photos-boot-glow 7s ease-in-out infinite;
}

.photos-boot__glow--a {
  top: 12%;
  left: 8%;
  width: 10rem;
  height: 10rem;
  background: rgba(167, 139, 250, 0.55);
}

.photos-boot__glow--b {
  right: 4%;
  bottom: 14%;
  width: 13rem;
  height: 13rem;
  background: rgba(124, 58, 237, 0.42);
  animation-delay: -3.2s;
}

.photos-boot__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(237, 233, 254, 0.1) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.photos-boot__stage {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 20rem);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.photos-boot__mark {
  margin-bottom: 1.35rem;
  animation: photos-boot-mark-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.photos-boot__icon-wrap {
  display: grid;
  place-items: center;
}

.photos-boot__logo {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  filter: drop-shadow(0 10px 22px rgba(124, 58, 237, 0.5));
  animation: photos-boot-icon-breathe 2.4s ease-in-out infinite;
}

.photos-boot__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c4b5fd;
  animation: photos-boot-text-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.photos-boot__title {
  margin: 0.15rem 0 0;
  font-size: clamp(2.15rem, 8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #f8fafc;
  animation: photos-boot-text-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.photos-boot__label {
  margin: 1.15rem 0 0;
  min-height: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a78bfa;
  animation: photos-boot-text-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.photos-boot__bar {
  margin-top: 1.35rem;
  width: 9.5rem;
  height: 3px;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(196, 181, 253, 0.22);
  animation: photos-boot-text-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.photos-boot__bar-fill {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(196, 181, 253, 0.35), #c4b5fd, #7c3aed);
  animation: photos-boot-bar 1.65s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
}

.photos-boot--exiting {
  animation: photos-boot-out 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes photos-boot-glow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(14px, -12px) scale(1.08);
  }
}

@keyframes photos-boot-mark-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes photos-boot-icon-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.03);
  }
}

@keyframes photos-boot-text-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes photos-boot-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

@keyframes photos-boot-out {
  to {
    opacity: 0;
    transform: scale(1.03);
    filter: blur(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photos-boot,
  .photos-boot__glow,
  .photos-boot__mark,
  .photos-boot__logo,
  .photos-boot__eyebrow,
  .photos-boot__title,
  .photos-boot__label,
  .photos-boot__bar,
  .photos-boot__bar-fill,
  .photos-boot--exiting {
    animation: none !important;
  }

  .photos-boot--exiting {
    opacity: 0;
  }
}
