/**
 * OLIVE FALLBACK/MAINTENANCE PAGE - GLASSMORPHIC DESIGN
 * Expert glassomorphism with Chillax font and black/grey palette
 */

/* ========================================
   FONT CHILLAX
   ======================================== */
@font-face {
  font-family: 'Chillax';
  src: url('./fonts/Chillax-Extralight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Chillax';
  src: url('./fonts/Chillax-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Chillax';
  src: url('./fonts/Chillax-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  /* Glassmorphic layers */
  --glass-l1: rgba(0, 0, 0, 0.25);
  --glass-l2: rgba(0, 0, 0, 0.2);
  --glass-l3: rgba(0, 0, 0, 0.15);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);

  /* Text colors */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);

  /* Blur levels */
  --blur-subtle: 8px;
  --blur-medium: 12px;
  --blur-strong: 15px;

  /* Transitions */
  --transition-fast: cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
  --transition-slow: cubic-bezier(0.4, 0, 0.2, 1) 0.35s;

  /* Status colors */
  --status-orange: #f59e0b;
  --status-orange-glow: rgba(245, 158, 11, 0.3);
}

/* ========================================
   GLOBAL RESET
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Chillax', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  background: #0a0a0a;
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ========================================
   CANVAS BACKGROUND
   ======================================== */
#planeCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 1.0;
}

/* ========================================
   LAYOUT
   ======================================== */
.fallback-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* ========================================
   GLASS CARD
   ======================================== */
.fallback-glass-card {
  background: var(--glass-l1);
  backdrop-filter: blur(var(--blur-strong));
  -webkit-backdrop-filter: blur(var(--blur-strong));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  max-width: 800px;
  width: 100%;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both, subtleFloat 4s ease-in-out 3s infinite;
  position: relative;
  overflow: hidden;
}

.fallback-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent);
}

.fallback-glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 100%);
  animation: glassShimmer 8s ease-in-out 4s infinite;
  pointer-events: none;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(40px)) {
  .fallback-glass-card {
    background: rgba(0, 0, 0, 0.85);
  }
}

/* ========================================
   LOGO
   ======================================== */
.fallback-logo-container {
  margin: 0 auto 1rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  opacity: 0;
  animation: logoFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
  text-align: center;
  transition: transform var(--transition-smooth);
}

.fallback-logo-container:hover {
  transform: scale(1.02);
}

.fallback-logo-container svg {
  width: min(60vw, 500px);
  height: min(45vw, 375px);
  display: block;
  margin: 0 auto;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.fallback-glass-card h1 {
  font-family: 'Chillax', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.fallback-message {
  font-family: 'Chillax', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.fallback-contact-section h3 {
  font-family: 'Chillax', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* ========================================
   STATUS INDICATOR
   ======================================== */
.fallback-status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--glass-l3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--status-orange);
  box-shadow: 0 0 12px var(--status-orange-glow);
  animation: pulse 2s ease-in-out infinite;
}

.fallback-status-indicator span {
  font-family: 'Chillax', sans-serif;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.fallback-contact-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.fallback-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.fallback-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--glass-l3);
  backdrop-filter: blur(var(--blur-subtle));
  -webkit-backdrop-filter: blur(var(--blur-subtle));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Chillax', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.fallback-contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent);
  transition: left var(--transition-slow);
}

.fallback-contact-link:hover {
  background: var(--glass-l2);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fallback-contact-link:hover::before {
  left: 100%;
}

.fallback-contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* ========================================
   FOOTER
   ======================================== */
.fallback-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--text-tertiary);
  font-family: 'Chillax', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  background: var(--glass-l3);
  backdrop-filter: blur(var(--blur-subtle));
  -webkit-backdrop-filter: blur(var(--blur-subtle));
  border-top: 1px solid var(--glass-border);
  letter-spacing: 0.01em;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  50% {
    opacity: 0.7;
    transform: translateY(15px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) rotate(-2deg);
  }
  30% {
    opacity: 0.3;
    transform: scale(0.95) rotate(-1deg);
  }
  60% {
    opacity: 0.7;
    transform: scale(1.02) rotate(0.5deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 12px var(--status-orange-glow);
  }
  25% {
    opacity: 0.8;
    transform: scale(1.05);
    box-shadow: 0 0 16px var(--status-orange-glow);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
    box-shadow: 0 0 20px var(--status-orange-glow);
  }
  75% {
    opacity: 0.8;
    transform: scale(1.1);
    box-shadow: 0 0 18px var(--status-orange-glow);
  }
}

@keyframes glassShimmer {
  0% {
    opacity: 0;
    transform: translateX(-100%) skewX(-15deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(100%) skewX(-15deg);
  }
}

@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  .fallback-container {
    padding: 1.5rem;
  }

  .fallback-glass-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .fallback-glass-card h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .fallback-message {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .fallback-logo-container {
    margin-bottom: 1.5rem;
  }

  .fallback-contact-links {
    flex-direction: column;
  }

  .fallback-contact-link {
    width: 100%;
    justify-content: center;
  }

  .fallback-footer {
    padding: 1rem 1.5rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .fallback-glass-card {
    padding: 1.5rem 1rem;
  }

  .fallback-glass-card h1 {
    font-size: 1.25rem;
  }

  .fallback-message {
    font-size: 0.9375rem;
  }

  .fallback-logo-container {
    /* Logo garde sa taille sur mobile */
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  #planeCanvas {
    display: none;
  }

  .fallback-glass-card {
    background: white;
    color: black;
    border: 1px solid #ccc;
  }
}
