/*
  Styles communs aux pages d'état de poum.be : 404, site en construction,
  service qui redémarre.

  Servi par Nginx sous /_erreurs/style.css — voir snippets/erreurs-poum.conf.
  Le chemin est absolu partout : error_page fait une redirection interne, donc
  le navigateur garde l'URL d'origine et un chemin relatif chercherait à côté
  de la page manquante.
*/

:root {
  --fond: #f4f1ea;
  --carte: #fffdf8;
  --encre: #3f3428;
  --encre-douce: #6f6153;
  --roux: #b5643a;
  --roux-fonce: #8e4c2c;
  --bordure: #e4ddcd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--fond);
  color: var(--encre);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.carte {
  width: 100%;
  max-width: 760px;
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(63, 52, 40, 0.08);
  text-align: center;
}

.illustration {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--bordure);
}

.texte { padding: 28px 28px 32px; }

.etiquette {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roux-fonce);
  background: rgba(181, 100, 58, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 0 12px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 700;
}

p {
  margin: 0 auto 24px;
  max-width: 46ch;
  color: var(--encre-douce);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.bouton {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--roux);
  color: #fffdf8;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.bouton:hover,
.bouton:focus-visible { background: var(--roux-fonce); }

.bouton--discret {
  background: transparent;
  color: var(--roux-fonce);
  border: 1px solid var(--bordure);
}

.bouton--discret:hover,
.bouton--discret:focus-visible {
  background: rgba(181, 100, 58, 0.08);
  color: var(--roux-fonce);
}

.bouton:focus-visible {
  outline: 3px solid var(--roux-fonce);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .texte { padding: 22px 18px 26px; }
  h1 { font-size: 1.35rem; }
}
