/* Carte blanche et logo rose naqä, comme la carte Wallet */
:root {
  color-scheme: light;
  --chocolate: #310a0a;
  --cocoa: #5b3a32;
  --raspberry: #8c2f56;
  --naqa-pink: #ffa2c4;
  --blush: #fff4f8;
  --line: #f6d3e0;
  --white: #ffffff;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--blush);
  color: var(--chocolate);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.masthead { text-align: center; margin-bottom: 20px; }
.masthead img { width: 132px; height: auto; display: block; margin: 0 auto 6px; }
.eyebrow {
  color: var(--raspberry);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 8px;
  text-align: center;
}
.lead { color: var(--cocoa); margin: 0 0 24px; text-align: center; }

/* Aperçu de la carte, fidèle à la carte Wallet */
.card {
  background: var(--white);
  color: var(--chocolate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(140, 47, 86, 0.14);
  margin-bottom: 28px;
}
.card-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 12px; }
.card-logo { height: 32px; width: auto; display: block; }
.label { color: var(--raspberry); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.value { font-size: 15px; }
.right { text-align: right; }
.strip {
  padding: 10px 16px 14px;
}
.points { font-size: 46px; line-height: 1; font-weight: 300; }
.card-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px 16px; }

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--cocoa); }
input {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--chocolate);
}
input:focus { outline: 2px solid var(--naqa-pink); border-color: var(--raspberry); }

.button {
  display: block;
  width: 100%;
  text-align: center;
  font: inherit;
  font-weight: 600;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--chocolate);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}
.button:disabled { opacity: 0.6; cursor: wait; }
.button.wallet { background: #000; color: #fff; }
.button.ghost { background: transparent; color: var(--chocolate); border: 1px solid var(--raspberry); font-weight: 500; }

.message { margin: 0; padding: 12px 14px; border-radius: 12px; background: #ffe3ee; font-size: 14px; }
.message.error { background: #fde8e8; color: #8a1c1c; }
.hidden { display: none !important; }
.stack { display: grid; gap: 12px; }
.small { font-size: 13px; color: var(--cocoa); }

.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.progress > span { display: block; height: 100%; background: var(--raspberry); border-radius: 999px; }

.reward {
  border: 1px dashed var(--raspberry);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
  text-align: center;
}
.code { font: 600 22px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 0.08em; margin: 6px 0 10px; }

ul.history { list-style: none; margin: 0; padding: 0; }
ul.history li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.plus { color: #2e7d4f; font-weight: 600; }
.minus { color: var(--raspberry); font-weight: 600; }
h2 { font-size: 17px; margin: 28px 0 8px; }
