/* GiftParty — page d'invitation. Mobile d'abord, contrastes AA, gros texte. */
:root {
  --accent: #c94f3d;
  --accent-clair: #e08a78;
  --fond: #fdf8f4;
  --surface: #ffffff;
  --texte: #1d1a18;
  --texte-doux: #5d544f;
  --bordure: #e8ded7;
  --succes: #1d7a4c;
  --radius: 18px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #f08a72;
    --fond: #14100f;
    --surface: #1f1a18;
    --texte: #f6efea;
    --texte-doux: #bdb0a8;
    --bordure: #322925;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(120% 80% at 50% 0%, var(--surface) 0%, var(--fond) 60%);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
}

.carte {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 20px 20px 14px;
  box-shadow: 0 18px 40px rgba(29, 26, 24, 0.08);
}

.entete {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  flex: 0 0 auto;
}

.marque {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.langue {
  margin-left: auto;
  min-width: 48px;
  min-height: 44px;
  border: 1px solid var(--bordure);
  background: transparent;
  color: var(--texte-doux);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.langue:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.contenu { min-height: 190px; }

.etat {
  color: var(--texte-doux);
  margin: 0;
}

.etiquette {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--texte-doux);
  margin: 0 0 6px;
}

.destinataire {
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.intro {
  margin: 0 0 18px;
  font-size: 1.05rem;
}

.details {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px 0 0;
  border-top: 1px solid var(--bordure);
}

.detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.detail dt {
  color: var(--texte-doux);
  font-size: 0.92rem;
  min-width: 88px;
}

.detail dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.note {
  font-size: 0.9rem;
  color: var(--texte-doux);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0;
}

.erreur .destinataire { color: var(--texte); }

.pied {
  margin-top: 22px;
  border-top: 1px solid var(--bordure);
  padding-top: 12px;
  font-size: 0.82rem;
  color: var(--texte-doux);
  text-align: center;
}

.pied p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .destinataire { animation: apparait 420ms ease-out both; }
  @keyframes apparait {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
}
