/* Page provisoire de ximeg.fr : aucune ressource externe (CSP stricte). */

:root {
  --fond: #f6f7f9;
  --carte: #ffffff;
  --texte: #1c2330;
  --discret: #5b6575;
  --bordure: #e3e6eb;
  --accent: #0b6bcb;
  --accent-fond: #e8f1fb;
  --ok: #d97706;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0f1319;
    --carte: #171c24;
    --texte: #e6e9ee;
    --discret: #9aa4b2;
    --bordure: #262d38;
    --accent: #5ea8f2;
    --accent-fond: #16273a;
    --ok: #f5a524;
  }
}

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

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  background: var(--fond);
  color: var(--texte);
}

.carte {
  width: 100%;
  max-width: 34rem;
  padding: 2.5rem 2rem;
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 24px rgb(0 0 0 / 6%);
}

.etat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  color: var(--discret);
  font-size: 0.85rem;
}

.pastille {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.poste {
  margin: 0.35rem 0 1.25rem;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 600;
}

.profil {
  color: var(--discret);
}

p {
  margin: 0 0 1rem;
}

.lien {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  background: var(--accent-fond);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.lien:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.lien:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

footer {
  color: var(--discret);
  font-size: 0.85rem;
}

.domaine {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-reduced-motion: no-preference) {
  .lien {
    transition: background-color 0.15s ease;
  }
}
