/* ============================================================
   Vename — Page de maintenance
   Charte : navy #00184c · bleu #004ff7 · orange #ea8e1c
   ============================================================ */

:root {
  --navy: #00184c;
  --navy-deep: #000e2e;
  --blue: #004ff7;
  --orange: #ea8e1c;
  --white: #ffffff;
  --muted: #9fb0d0;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
}

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

html, body { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* ---------- Décor d'arrière-plan ---------- */
.bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float 14s ease-in-out infinite alternate;
}
.glow-blue {
  width: 520px; height: 520px;
  background: var(--blue);
  top: -160px; left: -120px;
}
.glow-orange {
  width: 420px; height: 420px;
  background: var(--orange);
  bottom: -180px; right: -100px;
  opacity: 0.22;
  animation-delay: -7s;
}
@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}

/* ---------- Layout ---------- */
.wrap {
  position: relative;
  width: 100%;
  max-width: 760px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.logo { display: block; height: auto; }

/* ---------- Carte principale ---------- */
.card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(0, 8, 30, 0.45);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(234, 142, 28, 0.14);
  border: 1px solid rgba(234, 142, 28, 0.35);
  color: #f6b25e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 142, 28, 0.55); }
  60%      { box-shadow: 0 0 0 9px rgba(234, 142, 28, 0); }
}

h1 {
  margin-top: 22px;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 16px auto 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.lead strong { color: #d7e2f8; font-weight: 600; }

/* ---------- Compte à rebours ---------- */
.countdown {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 84px;
  padding: 18px 10px 14px;
  background: rgba(0, 79, 247, 0.14);
  border: 1px solid rgba(0, 79, 247, 0.35);
  border-radius: 16px;
}

.cd-num {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.cd-lab {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.cd-sep {
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  margin-top: -18px;
}

.return-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.return-note strong { color: var(--orange); font-weight: 700; }

/* ---------- Divider & infos ---------- */
.divider {
  height: 1px;
  margin: 34px auto 26px;
  max-width: 420px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

.infos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.info {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.info-ic {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--orange);
}
.info-ic svg { width: 20px; height: 20px; }

.info-t { font-size: 12px; color: var(--muted); font-weight: 500; }
.info-l {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}
a.info-l:hover { color: var(--orange); }

/* ---------- Footer ---------- */
.foot { font-size: 13px; color: rgba(159, 176, 208, 0.75); text-align: center; }
.foot a { color: var(--orange); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }

/* ---------- État « de retour » ---------- */
.card.is-back .badge {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.4);
  color: #5fd08a;
}
.card.is-back .badge-dot { background: #16a34a; animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .card { padding: 36px 20px; border-radius: 20px; }
  .cd-cell { min-width: 64px; padding: 14px 6px 11px; }
  .cd-sep { display: none; }
  .countdown { gap: 8px; }
  .infos { gap: 18px; flex-direction: column; align-items: center; }
  .info { width: 100%; max-width: 260px; }
  .logo { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .glow, .badge-dot { animation: none; }
}
