/* CollecStation — page d'attente.
   Direction : rétro TCG chaleureux. La page est traitée comme une carte
   à collectionner (cadre, fenêtre d'illustration, flavor text, bandeau bas).
   Palette parchemin + or vieilli + une touche de rouge vintage. */

:root {
  --paper:      #f4ead2;  /* intérieur de carte */
  --paper-deep: #ecdcb6;  /* fenêtres/encadrés */
  --frame:      #d9b45c;  /* bord doré */
  --frame-dark: #9a7c34;  /* liseré intérieur */
  --ink:        #2c2318;  /* texte principal (brun encre) */
  --ink-soft:   #6c5a41;  /* texte secondaire */
  --accent:     #a63a2a;  /* rouge vintage, usage rare */
  --table:      #e6d6b2;  /* fond de page (tapis) */
  --table-deep: #d8c199;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.5;
  /* Tapis : dégradé parchemin + très léger grain en motif de points. */
  background-color: var(--table);
  background-image:
    radial-gradient(120% 90% at 50% 0%, var(--table) 0%, var(--table-deep) 100%),
    radial-gradient(rgba(120, 96, 52, 0.06) 1px, transparent 1px);
  background-size: cover, 14px 14px;
}

/* ---- La carte ---- */

.card {
  width: 100%;
  max-width: 27rem;
  /* Double cadre : le bord doré épais typique des cartes vintage. */
  background: linear-gradient(160deg, #e6c479, var(--frame) 45%, #c39c42);
  border-radius: 16px;
  padding: 0.7rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 18px 40px -18px rgba(58, 42, 16, 0.55);
}

.card__inner {
  background: var(--paper);
  border: 1px solid var(--frame-dark);
  border-radius: 9px;
  padding: 1rem 1.1rem 1.15rem;
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.card__name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card__badge {
  flex: none;
  font-size: 0.68rem;
  font-family: system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--frame-dark);
  border: 1px solid var(--frame-dark);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

/* Fenêtre d'illustration : encadré avec un reflet foil discret et chaud. */
.card__art {
  position: relative;
  overflow: hidden;
  margin-top: 0.8rem;
  height: 8.5rem;
  border: 2px solid var(--frame-dark);
  border-radius: 6px;
  background:
    linear-gradient(135deg, #efe0be 0%, #e4cf9f 55%, #ecdcb6 100%);
  display: grid;
  place-items: center;
}

.card__art-sheen {
  position: absolute;
  inset: -40% -10%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 246, 214, 0.55) 48%,
    rgba(214, 178, 92, 0.35) 52%,
    transparent 62%
  );
  transform: rotate(2deg);
  pointer-events: none;
}

.card__art-note {
  position: relative;
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

.card__type {
  margin: 0.7rem 0 0.2rem;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--frame-dark);
}

/* Boîte de texte, comme la zone de "flavor text" d'une carte. */
.card__text {
  margin-top: 0.55rem;
  background: var(--paper-deep);
  border: 1px solid rgba(154, 124, 52, 0.55);
  border-radius: 6px;
  padding: 0.85rem 0.9rem;
}

.card__flavor {
  margin: 0;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
}

/* ---- Inscription (désactivée pour l'instant) ---- */

.signup { margin-top: 0.95rem; }

.signup__label {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.signup__row { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.signup__input {
  flex: 1 1 11rem;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: #fbf5e4;
  border: 1px solid var(--frame-dark);
  border-radius: 6px;
}

.signup__btn {
  flex: none;
  padding: 0.6rem 1rem;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fbf5e4;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
}

.signup__input:disabled,
.signup__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.signup__note {
  margin: 0.5rem 0 0;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ---- Bandeau bas, comme la ligne illustrateur/© d'une carte ---- */

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(154, 124, 52, 0.4);
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.card__set { flex: none; letter-spacing: 0.05em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Pages légales (mentions, confidentialité) ---- */

.doc {
  width: 100%;
  max-width: 42rem;
  background: var(--paper);
  border: 1px solid var(--frame-dark);
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 14px 34px -20px rgba(58, 42, 16, 0.5);
}

.doc h1 { margin-top: 0; font-size: 1.6rem; }
.doc h2 { font-size: 1.1rem; margin-top: 1.5rem; }
.doc p { font-family: system-ui, sans-serif; font-size: 0.95rem; color: var(--ink); }
.doc .back { display: inline-block; margin-top: 1.75rem; font-family: system-ui, sans-serif; }

/* Léger ajustement pour les écrans sombres : on garde la carte chaude,
   on assombrit seulement le tapis pour le confort. */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #2a2318;
    background-image:
      radial-gradient(120% 90% at 50% 0%, #33291a 0%, #221c12 100%),
      radial-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px);
  }
}
