/* ════════════════════════════════════════════════════════════
   Page « site indisponible » — langage visuel Docteur SEO
   Fond crème · encre quasi-noire · vert signe vital
   ════════════════════════════════════════════════════════════ */

:root {
  --bg: #f2f0ea;
  --card: #ffffff;
  --ink: #17161b;
  --text: #1d1c22;
  --muted: #595762;
  --soft: #6e6b78;
  --line: #e5e2d9;
  --vital: #0da05f;
  --vital-text: #0a7a48;
  --r-lg: 28px;
  --r-md: 20px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(23,22,27,.04), 0 14px 36px -12px rgba(23,22,27,.12);
  --f-display: "Bricolage Grotesque", "Schibsted Grotesk", sans-serif;
  --f-body: "Schibsted Grotesk", -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(40rem 26rem at 82% -8%, rgba(13,160,95,.09), transparent 62%),
    radial-gradient(34rem 24rem at 8% 108%, rgba(23,22,27,.05), transparent 60%);
  -webkit-text-size-adjust: 100%;
}

h1, h2 { font-family: var(--f-display); margin: 0; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--ink); }

.carte {
  width: min(37rem, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  text-align: center;
}

/* ---- pastille d'état ---- */
.etat {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem .4rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.etat::before {
  content: "";
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: #b9b6c0;
}

/* ---- tracé « signe vital » ---- */
.vital {
  display: block;
  width: 100%;
  max-width: 17rem;
  height: auto;
  margin: 1.25rem auto 1.1rem;
}
.vital-ligne {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vital-actif {
  stroke: var(--vital);
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
  animation: bat 2.6s cubic-bezier(.4, 0, .2, 1) .35s both;
}
@keyframes bat { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.vital-point {
  fill: var(--vital);
  opacity: 0;
  animation: pointe .5s ease-out 2.7s both;
}
@keyframes pointe { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

h1 {
  font-size: clamp(1.65rem, 5vw, 2.3rem);
  font-weight: 700;
  color: var(--ink);
}
.sous {
  max-width: 30rem;
  margin: .7rem auto 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.separateur {
  height: 1px;
  margin: 1.5rem 0 1.3rem;
  background: var(--line);
  border: 0;
}

.relance h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.relance p {
  margin-top: .6rem;
  color: var(--muted);
  font-size: .98rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-plein {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(23,22,27,.5);
}
.btn-plein:hover { background: #000; }
.btn-ligne {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ligne:hover { background: var(--bg); }
.fleche { transition: transform .18s ease; }
.btn:hover .fleche { transform: translateX(3px); }

.atouts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.3rem;
  margin-top: 1.2rem;
  font-size: .88rem;
  color: var(--soft);
}
.atouts li { display: inline-flex; align-items: center; gap: .4rem; }
.atouts svg { width: .95rem; height: .95rem; flex: none; color: var(--vital-text); }
ul { list-style: none; margin: 0; padding: 0; }

.pied {
  margin-top: 1.3rem;
  font-size: .85rem;
  color: var(--soft);
}
.pied a {
  color: var(--vital-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.pied a:hover { border-bottom-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--vital);
  outline-offset: 3px;
  border-radius: .35rem;
}

/* petits écrans : resserrer pour garder le bouton au-dessus de la ligne de flottaison */
@media (max-width: 30rem) {
  body { padding: 1rem; }
  .sous, .relance p { font-size: .95rem; }
  .vital { max-width: 14rem; margin: 1rem auto .9rem; }
  .separateur { margin: 1.25rem 0 1.1rem; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .vital-actif, .vital-point { animation: none; }
  .vital-point { opacity: 1; }
  .btn, .fleche { transition: none; }
  .btn:hover { transform: none; }
}

/* variante 404 : ligne plate, le point n'attend pas le tracé */
.vital--plat .vital-point { animation-delay: .4s; }
