/* ============================================================
   King Hosting — Page de fermeture (refinement UI)
   Mise en page éditoriale, sobre et réversible
   ============================================================ */

/* --- Fond uni, sans dégradé agressif --- */
.closure-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #18111b;
  color: #e5e5e5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- En-tête : logo en haut à gauche --- */
.closure-header {
  padding: 2.75rem 2rem 0;
}

.closure-logo {
  height: 1.625rem;
  width: auto;
  opacity: 0.7;
}

/* --- Contenu : alignement éditorial, pas centré type landing --- */
.closure-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 4.5rem 2rem 3rem;
}

.closure-content {
  max-width: 26rem;
  width: 100%;
}

/* --- Hiérarchie typographique --- */
.closure-title {
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: #f5f5f5;
  margin: 0 0 1.25rem;
}

.closure-subtitle {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #8a8a8a;
  line-height: 1.65;
  margin: 0 0 2.75rem;
}

/* Corps de texte : paragraphes séparés, rythme de lecture naturel */
.closure-body {
  margin-bottom: 2.5rem;
}

.closure-body p {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.75;
  color: #b0b0b0;
  margin: 0 0 1.125rem;
}

.closure-body p:last-child {
  margin-bottom: 0;
}

/* Note secondaire : plus petite, plus en retrait */
.closure-note {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #5c5c5c;
  margin: 0;
  max-width: 22rem;
}

/* --- Pied de page : mention + lien mail discret --- */
.closure-footer {
  padding: 0 2rem 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.closure-footer-note {
  font-size: 0.75rem;
  font-weight: 400;
  color: #4a4a4a;
  margin: 0;
  letter-spacing: 0.01em;
}

.closure-mail-link {
  display: inline-block;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 400;
  color: #7a7a7a;
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: color 0.35s ease, border-color 0.35s ease;
}

.closure-mail-link:hover {
  color: #a8a8a8;
  border-bottom-color: rgba(168, 168, 168, 0.35);
}

.closure-mail-link:focus-visible {
  outline: 1px solid #5c5c5c;
  outline-offset: 3px;
}

.closure-copyright {
  font-size: 0.6875rem;
  color: #3a3a3a;
  margin: 0.625rem 0 0;
}

/* --- Animations : fade-in presque imperceptible --- */
@keyframes closure-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.closure-animate {
  opacity: 0;
  animation: closure-fade-in 1s ease forwards;
}

.closure-animate--1 { animation-delay: 0.05s; }
.closure-animate--2 { animation-delay: 0.15s; }
.closure-animate--3 { animation-delay: 0.28s; }
.closure-animate--4 { animation-delay: 0.4s; }
.closure-animate--5 { animation-delay: 0.52s; }
.closure-animate--6 { animation-delay: 0.65s; }

/* Respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
  .closure-animate {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* --- Desktop : plus d'air, contenu légèrement décalé --- */
@media (min-width: 640px) {
  .closure-header {
    padding: 3.5rem 3.5rem 0;
  }

  .closure-main {
    padding: 5.5rem 3.5rem 4rem;
  }

  .closure-content {
    max-width: 28rem;
    padding-left: 0.5rem;
  }

  .closure-footer {
    padding: 0 3.5rem 3.5rem;
    padding-left: 4rem;
  }
}

/* --- Mobile : marges confortables, même logique éditoriale --- */
@media (max-width: 480px) {
  .closure-header {
    padding: 2.25rem 1.5rem 0;
  }

  .closure-main {
    padding: 3.5rem 1.5rem 2.5rem;
  }

  .closure-footer {
    padding: 0 1.5rem 2.25rem;
  }
}
