/* ============================================================
   MAINTENANCE PAGE — Cleanix Belgique
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:       #4c9deb;
  --blue-lt:    #67b5f5;
  --purple:     #8a5df5;
  --dark:       #0a0f1e;
  --dark-card:  rgba(10, 18, 38, 0.75);
  --border:     rgba(255, 255, 255, 0.07);
  --text:       rgba(255, 255, 255, 0.88);
  --muted:      rgba(255, 255, 255, 0.38);
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  background: var(--dark);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ── Canvas ──────────────────────────────────────────────── */
#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Background orbs ─────────────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: rgba(76, 157, 235, 0.13);
  top: -120px;
  left: -120px;
  animation: orbDrift 14s ease-in-out infinite;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: rgba(138, 93, 245, 0.1);
  bottom: -100px;
  right: -100px;
  animation: orbDrift 18s ease-in-out infinite reverse;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: rgba(103, 181, 245, 0.08);
  top: 42%;
  left: 42%;
  animation: orbDrift 11s ease-in-out infinite 4s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0,    0)   scale(1);    }
  33%       { transform: translate(40px, -30px) scale(1.06); }
  66%       { transform: translate(-25px, 20px) scale(0.94); }
}

/* ── Wrapper ─────────────────────────────────────────────── */
.wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 40px 20px;
  width: 100%;
  max-width: 570px;
}

/* ── Logo ────────────────────────────────────────────────── */
.logo-wrap {
  animation: fadeDown 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.logo {
  height: 48px;
  filter: drop-shadow(0 0 18px rgba(76, 157, 235, 0.38));
}

/* ── Card ────────────────────────────────────────────────── */
.card {
  position: relative;
  width: 100%;
  background: var(--dark-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 52px 44px;
  text-align: center;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: fadeUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.12s both;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.12s ease;
}

/* Top gradient border line */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(76, 157, 235, 0.6) 30%,
    rgba(138, 93, 245, 0.5) 70%,
    transparent 100%
  );
}

/* Scan line sweep */
.scan-line {
  position: absolute;
  top: 0;
  left: -80%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(76, 157, 235, 0.03) 50%,
    transparent 100%
  );
  animation: scanSweep 5s ease-in-out infinite 2s;
  pointer-events: none;
}

@keyframes scanSweep {
  0%   { left: -80%; }
  100% { left: 160%; }
}

/* ── Icon scene ──────────────────────────────────────────── */
.icon-scene {
  position: relative;
  width: 114px;
  height: 114px;
  margin: 0 auto 34px;
}

/* Outer orbit ring */
.orbit {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px dashed rgba(76, 157, 235, 0.22);
  animation: spinOrbit 10s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue), 0 0 20px rgba(76, 157, 235, 0.4);
}

.d1 { top: -4px;  left: 50%; transform: translateX(-50%); }
.d2 { bottom: -4px; right: 12%; }
.d3 { top: 38%;   left: -5px; }

/* Inner ring */
.orbit-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(138, 93, 245, 0.18);
  animation: spinOrbit 7s linear infinite reverse;
}

/* Icon background glow */
.icon-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(76, 157, 235, 0.18) 0%,
    rgba(76, 157, 235, 0) 70%
  );
  animation: glowPulse 2.8s ease-in-out infinite;
}

.icon-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 46px;
  background: linear-gradient(135deg, var(--blue), var(--blue-lt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(76, 157, 235, 0.45));
  animation: iconBounce 3.5s ease-in-out infinite;
}

/* Sparkles */
.spark {
  position: absolute;
  animation: sparkFloat 3s ease-in-out infinite;
}

.spark i { font-size: 13px; color: var(--blue-lt); }

.s1 { top: -2px;    right: 2px;  animation-delay: 0s; }
.s1 i { font-size: 11px; }
.s2 { bottom: 4px;  left: -6px;  animation-delay: 1.1s; }
.s2 i { font-size: 17px; color: var(--purple); }
.s3 { top: 18%;    left: 2px;   animation-delay: 2.2s; }
.s3 i { font-size: 9px; color: rgba(103, 181, 245, 0.7); }

@keyframes spinOrbit    { to { transform: rotate(360deg); } }
@keyframes glowPulse    {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.12); opacity: 1;   }
}
@keyframes iconBounce   {
  0%, 100% { transform: translate(-50%, -50%) rotate(-5deg); }
  50%       { transform: translate(-50%, -55%) rotate(5deg);  }
}
@keyframes sparkFloat   {
  0%, 100% { transform: translateY(0)   scale(1);   opacity: 0.5; }
  50%       { transform: translateY(-9px) scale(1.35); opacity: 1;   }
}

/* ── Title ───────────────────────────────────────────────── */
.title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.grad-text {
  background: linear-gradient(90deg, var(--blue), var(--blue-lt), var(--purple), var(--blue));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textFlow 4s linear infinite;
}

@keyframes textFlow {
  0%   { background-position: 0% center;   }
  100% { background-position: 300% center; }
}

/* ── Subtitle ────────────────────────────────────────────── */
.sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ── Dots loading ────────────────────────────────────────── */
.dots-anim {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 34px;
}

.dots-anim span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: dotBounce 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(76, 157, 235, 0.5);
}

.dots-anim span:nth-child(2) { animation-delay: 0.2s; background: var(--blue-lt); }
.dots-anim span:nth-child(3) { animation-delay: 0.4s; background: var(--purple);  }

@keyframes dotBounce {
  0%, 100% { transform: scale(1) translateY(0);   opacity: 0.4; }
  50%       { transform: scale(1.6) translateY(-4px); opacity: 1;   }
}

/* ── Progress bar ────────────────────────────────────────── */
.progress-wrap { margin-bottom: 34px; }

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.progress-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  position: relative;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: visible;
}

.progress-fill {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-lt));
  border-radius: 99px;
  transition: width 2.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Glow trail */
.progress-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-lt);
  box-shadow: 0 0 12px 4px rgba(103, 181, 245, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease 0.4s;
}

.progress-fill.active::after { opacity: 1; }

.progress-glow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 0%;
  height: 12px;
  background: linear-gradient(90deg, transparent, rgba(103, 181, 245, 0.5));
  border-radius: 99px;
  filter: blur(5px);
  transition: width 2.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

/* ── Separator ───────────────────────────────────────────── */
.sep {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto 26px;
}

/* ── Contact ─────────────────────────────────────────────── */
.need-help {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.mail-wrap {
  position: relative;
  display: inline-block;
}

.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 99px;
  border: 1px solid rgba(76, 157, 235, 0.28);
  color: var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: rgba(76, 157, 235, 0.06);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  letter-spacing: 0.3px;
  cursor: pointer;
}

.btn-mail:hover {
  background: rgba(76, 157, 235, 0.14);
  border-color: rgba(76, 157, 235, 0.6);
  box-shadow: 0 0 28px rgba(76, 157, 235, 0.22);
  transform: translateY(-3px);
  color: var(--blue-lt);
}

.btn-mail i { font-size: 13px; }

/* ── Mail popup ──────────────────────────────────────────── */
.mail-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 248px;
  background: rgba(8, 14, 30, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(76, 157, 235, 0.22);
  border-radius: 16px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 50;
}

.mail-popup.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Triangle pointant vers le bouton */
.mail-popup::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(8, 14, 30, 0.96);
  border-right: 1px solid rgba(76, 157, 235, 0.22);
  border-bottom: 1px solid rgba(76, 157, 235, 0.22);
}

.mail-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.80);
  font-size: 13px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
}

.mail-option + .mail-option {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mail-option:hover {
  background: rgba(76, 157, 235, 0.12);
  color: var(--blue-lt);
}

.mail-option i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.75;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.18);
  animation: fadeUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.3s both;
}

.footer strong { color: rgba(255, 255, 255, 0.32); }

/* ── Soap bubbles ────────────────────────────────────────── */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 255, 255, 0.12),
    rgba(76, 157, 235, 0.04)
  );
  border: 1px solid rgba(103, 181, 245, 0.18);
  animation: bubbleRise linear forwards;
}

@keyframes bubbleRise {
  0%   { transform: translateY(0)      translateX(0)           scale(1);    opacity: 0;   }
  8%   { opacity: 0.8; }
  85%  { opacity: 0.3; }
  100% { transform: translateY(-110vh) translateX(var(--drift)) scale(0.7);  opacity: 0;   }
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0);     }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 560px) {
  .card        { padding: 36px 24px; border-radius: 20px; }
  .logo        { height: 40px; }
  .title       { font-size: 26px; }
  .icon-scene  { width: 90px; height: 90px; }
  .icon-main   { font-size: 36px; }
}

@media (max-height: 680px) {
  .wrapper    { gap: 14px; padding: 20px; }
  .card       { padding: 28px 36px; }
  .icon-scene { margin-bottom: 18px; }
  .sub        { margin-bottom: 16px; }
  .dots-anim  { margin-bottom: 20px; }
}
