/* Styles critiques pour le loading screen - chargés immédiatement dans le head */
.loading-screen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  background-color: #CF4500 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.loading-screen__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-screen__title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  opacity: 0;
}

.loading-screen__word {
  font-family: "Lust Text", Georgia, serif;
  font-size: clamp(5.5rem, 7vw, 10rem);
  font-weight: 300;
  color: #EFDCC2;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(0);
}

.loading-screen__word:first-of-type {
  transform: translateX(90px);
}

.loading-screen__word:last-of-type {
  transform: translateX(-90px);
}

.loading-screen__image-container {
  position: relative;
  width: 1px;
  height: clamp(200px, 25vw, 400px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 1;
  clip-path: inset(0 50% 0 50%);
}

.loading-screen__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: clamp(200px, 25vw, 400px);
  width: auto;
  max-width: clamp(200px, 15vw, 400px);
  object-fit: contain;
  object-position: center;
  opacity: 0;
}

.loading-screen__image:first-of-type {
  opacity: 1;
}

.loading-screen__cta {
  background: transparent;
  border: 1px solid #EFDCC2;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Lust Text", Georgia, serif;
  padding: 0.8rem 5rem;
  width: 20rem;
  height: 5rem;
  margin: 0 auto 1rem auto;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.loading-screen__reveal-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #EFDCC2;
  z-index: 3;
  opacity: 0;
  transform: translateY(-100%);
}
