/* ===== LOADER STYLES ===== */
:root {
  --brand-red: #721C24;
  --brand-orange: #D97453;
  --brand-cream: #FAF6F0;
  --brand-dark: #2C2523;
}

body {
  margin: 0;
  background-color: var(--brand-cream);
}

#root {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

body.app-loaded #root {
  opacity: 1;
}

#loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--brand-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.app-loaded #loader-overlay {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  visibility: hidden;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 28rem;
  width: 100%;
  padding: 0 1.5rem;
}

/* Logo float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.logo-box {
  animation: float 6s ease-in-out infinite;
  width: 100%;
  margin: 2rem 0;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Titre en haut */
.loader-title {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
  opacity: 1;
}

.loader-title h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: var(--brand-dark);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

/* Description en bas */
.loader-description {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  opacity: 1;
}

.loader-description p {
  color: #78716c;
  font-weight: 300;
  font-style: italic;
  font-size: 0.875rem;
  margin: 0;
}

.logo-wrapper {
  position: relative;
  width: auto;
  height: auto;
  overflow: visible;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper img {
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 400px;
  display: block;
}

.logo-video {
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 400px;
}

/* Interactive zone */
.loader-zone {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 120px;
}

.fade-transition {
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.status-text {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 10px;
  text-align: center;
  letter-spacing: 0.2em;
  color: #78716c;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.progress-track {
  width: 12rem;
  height: 2px;
  background-color: #e7e5e4;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--brand-red);
  transition: width 0.3s ease-out;
}

.percentage {
  margin-top: 0.5rem;
  font-size: 10px;
  color: #a8a29e;
  font-family: ui-monospace, SFMono-Regular, 'Courier Prime', Menlo, Monaco, Consolas, monospace;
}

/* Final text reveal */
.text-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.text-reveal.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.text-reveal h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: var(--brand-dark);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  font-weight: 400;
}

.text-reveal p {
  color: #78716c;
  font-weight: 300;
  font-style: italic;
  font-size: 0.875rem;
  margin: 0;
}

.text-reveal .divider {
  width: 3rem;
  height: 1px;
  background-color: #d6d3d1;
  margin-top: 1rem;
}

/* Bottom indicator */
.loader-footer {
  position: fixed;
  bottom: 1rem;
  color: #a8a29e;
  font-size: 10px;
  font-family: system-ui, -apple-system, sans-serif;
  font-style: italic;
  letter-spacing: 0.05em;
}
