/* Fonts Lato locaux - Réutilisation des fonts existantes */
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

/* Variables couleurs existantes */
:root {
  --primary-navy: #2C4766;
  --dark-slate: #242F3C;
  --light-blue: #8FA3BB;
  --light-ice-blue: #DFEAF4;
  --white: #FFFFFF;
  --black: #000000;
  --maritime-blue: #1B3B5C;
  --ocean-foam: #B8D4E3;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark-slate);
  overflow-x: hidden;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--light-ice-blue) 0%, var(--white) 50%, var(--ocean-foam) 100%);
}

/* Container principal */
.coming-soon-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px;
}

/* Motif d'arrière-plan animé */
.background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 60px,
    rgba(44, 71, 102, 0.02) 60px,
    rgba(44, 71, 102, 0.02) 120px
  );
  animation: pattern-move 25s linear infinite;
  pointer-events: none;
  z-index: -2;
}

@keyframes pattern-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(120px, 120px); }
}

/* Formes flottantes d'arrière-plan */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-navy), var(--light-blue));
  opacity: 0.1;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 70%;
  right: 15%;
  animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 25%;
  animation: float 10s ease-in-out infinite;
  animation-delay: -3s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 20%;
  animation: float 15s ease-in-out infinite reverse;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(-40px) rotate(10deg); }
  75% { transform: translateY(-20px) rotate(5deg); }
}

/* Wrapper de contenu */
.content-wrapper {
  text-align: center;
  max-width: 600px;
  width: 100%;
  z-index: 10;
}

/* Logo avec animation */
.logo-container {
  margin-bottom: 60px;
}

.main-logo {
  height: 120px;
  max-width: 100%;
  filter: drop-shadow(0 10px 20px rgba(44, 71, 102, 0.1));
  transition: transform 0.5s ease;
  animation: logo-bounce 2s ease-in-out infinite;
}

.main-logo:hover {
  transform: scale(1.05);
}

@keyframes logo-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}


/* Description principale */
.main-description {
  font-size: 1.4rem;
  color: var(--dark-slate);
  margin-bottom: 80px;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}


/* SVG décoratif */
.decorative-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  width: 600px;
  height: 600px;
  opacity: 0.3;
}

.rotating-svg {
  width: 100%;
  height: 100%;
  animation: slow-rotate 30s linear infinite;
}

@keyframes slow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* Indicateur de statut amélioré */
.status-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--light-blue);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(143, 163, 187, 0.4);
}

.pulse {
  width: 100%;
  height: 100%;
  background: var(--primary-navy);
  border-radius: 50%;
  animation: pulse-animation 2s ease-in-out infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Barre de chargement améliorée */
.loading-container {
  width: 100%;
  max-width: 700px;
  margin-top: 40px;
}

.loading-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 45px;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(44, 71, 102, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.loading-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 80px rgba(44, 71, 102, 0.25);
}

.loading-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.loading-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
}

.percentage-display {
  font-size: 2rem;
  font-weight: 900;
  color: var(--light-blue);
  text-shadow: 0 2px 10px rgba(143, 163, 187, 0.3);
}

.loading-bar-enhanced {
  width: 100%;
  height: 12px;
  background: rgba(44, 71, 102, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(44, 71, 102, 0.1);
}

.loading-progress-enhanced {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-navy), var(--light-blue), var(--maritime-blue));
  background-size: 200% 100%;
  border-radius: 6px;
  position: relative;
  animation: loading-animation-enhanced 4s ease-in-out infinite, loading-gradient 2s linear infinite;
  box-shadow: 0 0 10px rgba(44, 71, 102, 0.3);
}

.loading-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading-shine 2s ease-in-out infinite;
}

@keyframes loading-animation-enhanced {
  0% { width: 15%; }
  25% { width: 45%; }
  50% { width: 75%; }
  75% { width: 90%; }
  100% { width: 95%; }
}

@keyframes loading-gradient {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

@keyframes loading-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.loading-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.step {
  text-align: center;
  padding: 15px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.step.completed {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border-color: rgba(76, 175, 80, 0.2);
}

.step.active {
  background: rgba(44, 71, 102, 0.1);
  color: var(--primary-navy);
  border-color: var(--light-blue);
  animation: step-pulse 2s ease-in-out infinite;
}

.step:not(.completed):not(.active) {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.4);
}

@keyframes step-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(44, 71, 102, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(44, 71, 102, 0); }
}

.loading-text {
  text-align: center;
  color: var(--dark-slate);
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0.8;
}

.dynamic-text {
  animation: text-fade 2s ease-in-out infinite;
}

@keyframes text-fade {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Animations d'entrée */
.fade-in {
  opacity: 0;
  animation: fade-in-animation 1s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-in-up-animation 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }
.delay-5 { animation-delay: 1.5s; }
.delay-6 { animation-delay: 1.8s; }
.delay-7 { animation-delay: 2.1s; }

@keyframes fade-in-animation {
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up-animation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .main-logo {
    height: 90px;
  }
  
  .main-title {
    font-size: 2.5rem;
  }
  
  .main-description {
    font-size: 1.1rem;
  }
  
  .features-preview {
    gap: 20px;
  }
  
  .feature-item {
    min-width: 160px;
    padding: 20px 15px;
  }
  
  .decorative-svg {
    width: 400px;
    height: 400px;
  }
  
  .progress-section {
    padding: 30px 25px;
    margin-bottom: 60px;
  }
  
  .progress-title {
    font-size: 1.8rem;
  }
  
  .progress-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .loading-container {
    max-width: 500px;
  }
  
  .loading-wrapper {
    padding: 30px 25px;
  }
  
  .loading-title {
    font-size: 1.3rem;
  }
  
  .percentage-display {
    font-size: 1.6rem;
  }
  
  .loading-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .step {
    font-size: 0.8rem;
    padding: 12px 8px;
  }
  
  .shape {
    display: none;
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    padding: 0 10px;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .main-description {
    font-size: 1rem;
  }
  
  .features-preview {
    flex-direction: column;
    align-items: center;
  }
  
  .decorative-svg {
    width: 300px;
    height: 300px;
  }
  
  .progress-section {
    padding: 25px 20px;
  }
  
  .progress-title {
    font-size: 1.5rem;
  }
  
  .progress-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .loading-wrapper {
    padding: 25px 20px;
  }
  
  .loading-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .loading-title {
    font-size: 1.2rem;
  }
  
  .percentage-display {
    font-size: 1.8rem;
  }
  
  .loading-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
