/* Le Registre · site de vérification
   Une page = une fiche du registre. Aucune police externe : rien ne part vers un tiers. */

:root {
  --encre: #1b2230;
  --encre-2: #232b3b;
  --papier: #efe6d2;
  --papier-doux: #c9c0ad;
  --or: #c9a45c;
  --or-vif: #e0bd73;
  --gres: #8a8f99;
  --refus: #a8473f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--encre);
  color: var(--papier);
  font: 1.0625rem/1.6 var(--serif);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1rem 2rem;
}

/* Grain discret de papier, purement CSS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 164, 92, .07), transparent 70%),
    repeating-linear-gradient(0deg, rgba(239, 230, 210, .012) 0 1px, transparent 1px 3px);
}

main { width: 100%; max-width: 34rem; position: relative; }

/* ── En-tête ── */
.sceau { display: block; width: 5.5rem; height: 5.5rem; margin: 0 auto 1.25rem; color: var(--or); }
.marque {
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--papier-doux);
  margin: 0 0 2.25rem;
}

h1 {
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }
.chapeau { font-size: 1.15rem; color: var(--papier-doux); max-width: 30rem; }

/* ── La fiche : marge double à gauche, comme un registre relié ── */
.fiche {
  margin: 2rem 0;
  padding: 1.4rem 1.4rem 1.2rem 1.9rem;
  background: var(--encre-2);
  border-left: 1px solid var(--or);
  box-shadow: inset 4px 0 0 var(--encre), inset 5px 0 0 rgba(201, 164, 92, .45);
  border-radius: 0 6px 6px 0;
}
.fiche h2 {
  font: 600 .95rem/1.4 var(--sans);
  color: var(--or);
  margin: 0 0 .9rem;
}
.fiche dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.25rem; }
.fiche dt { font-style: italic; white-space: nowrap; }
.fiche dd { margin: 0; font: .92rem/1.5 var(--sans); color: var(--papier-doux); }
.fiche.refus { border-left-color: var(--refus); box-shadow: inset 4px 0 0 var(--encre), inset 5px 0 0 rgba(168, 71, 63, .5); }
.fiche.refus h2 { color: #d07a70; }
.fiche ol, .fiche ul { margin: 0; padding-left: 1.2rem; font: .95rem/1.55 var(--sans); color: var(--papier-doux); }
.fiche li + li { margin-top: .4rem; }

@media (max-width: 30rem) {
  .fiche dl { grid-template-columns: 1fr; gap: .15rem; }
  .fiche dd { margin-bottom: .6rem; }
}

/* ── Bouton ── */
.action {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font: 600 1rem/1 var(--sans);
  color: var(--encre);
  background: var(--or);
  border: 0;
  border-radius: 4px;
  padding: 1rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.action:hover { background: var(--or-vif); }
.action:focus-visible, a:focus-visible { outline: 2px solid var(--papier); outline-offset: 3px; }
.action svg { width: 1.3rem; height: 1.3rem; flex: none; }
.action.discret { background: transparent; color: var(--papier); box-shadow: inset 0 0 0 1px var(--gres); }
.action.discret:hover { box-shadow: inset 0 0 0 1px var(--papier); background: transparent; }

.note { font: .85rem/1.5 var(--sans); color: var(--gres); margin-top: 1.25rem; }
a { color: var(--or); text-underline-offset: 3px; }
a:hover { color: var(--or-vif); }

/* ── Page de succès : le sceau est apposé ── */
.inscription { text-align: center; }
.inscription .sceau { width: 9rem; height: 9rem; margin-bottom: 1.75rem; }
.inscription .numero {
  font-size: 1.1rem;
  color: var(--or);
  font-variant-numeric: oldstyle-nums;
  margin-bottom: 1.5rem;
}
.inscription .chapeau { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: no-preference) {
  .appose {
    animation: apposer .55s cubic-bezier(.2, .9, .3, 1.2) .15s both;
    transform-origin: 50% 50%;
  }
  @keyframes apposer {
    0%   { opacity: 0; transform: scale(1.6) rotate(-14deg); }
    70%  { opacity: 1; transform: scale(.96) rotate(-4deg); }
    100% { opacity: 1; transform: scale(1) rotate(-6deg); }
  }
}
@media (prefers-reduced-motion: reduce) { .appose { transform: rotate(-6deg); } }

.refuse .sceau { color: var(--gres); opacity: .6; }

/* ── Pied ── */
footer {
  margin-top: auto;
  padding-top: 3rem;
  font: .8rem/1.5 var(--sans);
  color: var(--gres);
  text-align: center;
}
footer a { color: var(--gres); }

/* ── Page texte (confidentialité) ── */
.texte h2 { font-weight: 400; font-size: 1.35rem; margin: 2rem 0 .5rem; }
.texte p, .texte li { color: var(--papier-doux); }
.texte ul { padding-left: 1.2rem; }
