/*
 * Pages du serveur d'hébergement (domaine sans site, site suspendu, site déplacé, connexion cPanel).
 * Servie depuis /img-sys/kennhosting/ sur le serveur.
 *
 * Structure simple et centrée (vue surtout par les visiteurs des sites de nos clients), dans le langage
 * du site public : cadre en lignes pointillées (GridPattern / BorderedSection), ligne mono en bleu
 * au-dessus du titre, titre gras serré avec une partie en primaire, boutons du design system.
 * Autonome et léger : une police, une illustration WebP, pas de ressource externe.
 */
@font-face {
  font-family: 'Outfit';
  src: url('fonts/outfit-latin-variable.woff2') format('woff2-variations'), url('fonts/outfit-latin-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #64748b;
  --muted-bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --primary: #3b82f6;
  --primary-fg: #ffffff;
  --warning: #d97706;
  --success: #16a34a;
  --radius: 0.5rem;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --fg: #f8fafc;
    --muted: #94a3b8;
    --muted-bg: #1e293b;
    --card: #131c31;
    --border: #1e293b;
    --warning: #f59e0b;
    --success: #22c55e;
  }
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

/* En-tête, comme celui du site public */
.top {
  border-bottom: 1px dashed var(--border);
}

.top-inner {
  display: flex;
  align-items: center;
  height: 4rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.brand b {
  font-weight: 700;
}

/* Cadre pointillé (GridPattern / BorderedSection du site) */
.frame {
  flex: 1;
  display: flex;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  border-inline: 1px dashed var(--border);
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.art {
  display: block;
  width: 100%;
  max-width: 13rem;
  height: auto;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .art {
    max-width: 16rem;
  }
}

/* Ligne mono au-dessus du titre (ex. « VPS CLOUD SUR MESURE » sur le site) */
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow.is-warning {
  color: var(--warning);
}

.eyebrow.is-success {
  color: var(--success);
}

h1 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 span {
  color: var(--primary);
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* Boutons du design system */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  background: color-mix(in oklab, var(--primary) 88%, black);
}

.btn-outline {
  background: var(--card);
  border-color: var(--border);
  color: var(--fg);
}

.btn-outline:hover {
  background: var(--muted-bg);
}

.btn:focus-visible,
.choice:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
    align-self: stretch;
  }

  .btn {
    width: 100%;
  }
}

/* Pied de page */
.bottom {
  border-top: 1px dashed var(--border);
}

.bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.bottom a {
  color: var(--muted);
  text-decoration: none;
}

.bottom a:hover {
  color: var(--fg);
}

@media (max-width: 640px) {
  .bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

/* Connexion cPanel */
.checking {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.checking::before {
  content: '';
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 9999px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.choices {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  margin-top: 2rem;
  text-align: left;
}

@media (min-width: 560px) {
  .choices {
    grid-template-columns: 1fr 1fr;
  }
}

.choice {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.choice:hover {
  border-color: var(--primary);
}

.choice b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 1rem;
}

.choice span {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.choice em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .checking::before {
    animation: none;
  }
}
