/* ============================================================
   SUMO ; carte cadeau (18/11/2026)
   ------------------------------------------------------------
   .gcard : la carte elle-même, au format carte bancaire agrandi.
   Sert d'aperçu en direct sur carte-cadeau.html et de carte
   définitive, imprimable, sur ma-carte-cadeau.html. Préfixe « gc ».
============================================================ */
.gcard {
  --gc-gold: #C89A4B;
  position: relative; overflow: hidden; isolation: isolate;
  width: min(100%, 460px); aspect-ratio: 1.586;
  padding: clamp(18px, 4.2%, 26px) clamp(20px, 5%, 30px);
  border-radius: 22px; color: #fff;
  background: radial-gradient(120% 100% at 85% 0%, #2A2620 0%, #14151A 55%, #0B0C0E 100%);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.08);
  display: flex; flex-direction: column; font-family: var(--font);
  container-type: inline-size;
}
/* le grand octogone, en filigrane doré */
.gcard::before {
  content: ""; position: absolute; z-index: -1; right: -14%; top: -30%;
  width: 78%; aspect-ratio: 1; clip-path: var(--oct);
  background: linear-gradient(140deg, rgba(200,154,75,.36), rgba(200,154,75,.04) 60%);
}
.gcard::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -24%;
  width: 70%; aspect-ratio: 1; clip-path: var(--oct); background: #15161B;
}
.gcard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gcard__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .2em; font-size: clamp(.8rem, 3.4cqi, 1rem); }
.gcard__logo svg { width: 1.5em; height: 1.5em; color: var(--gc-gold); }
.gcard__kind { font-size: clamp(.58rem, 2.4cqi, .7rem); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gc-gold); }
.gcard__amount {
  margin-top: auto; display: flex; align-items: baseline; gap: 4px;
  font-size: clamp(2.6rem, 17cqi, 4.6rem); font-weight: 800; line-height: .9; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.gcard__amount small { font-size: .45em; letter-spacing: 0; color: var(--gc-gold); }
.gcard__to { margin-top: 8px; font-size: clamp(.72rem, 3cqi, .9rem); color: rgba(255,255,255,.72); min-height: 1.3em; }
.gcard__to b { color: #fff; font-weight: 700; }
.gcard__msg {
  margin-top: 4px; font-size: clamp(.66rem, 2.7cqi, .82rem); font-style: italic; line-height: 1.4;
  color: rgba(255,255,255,.55); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gcard__bottom { margin-top: clamp(10px, 3.4cqi, 16px); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.gcard__code { display: flex; flex-direction: column; gap: 3px; }
.gcard__code span { font-size: clamp(.5rem, 2cqi, .6rem); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.gcard__code b {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: clamp(.82rem, 3.9cqi, 1.12rem);
  font-weight: 700; letter-spacing: .12em; padding: 5px 10px; border-radius: 8px;
  background: rgba(200,154,75,.14); box-shadow: inset 0 0 0 1px rgba(200,154,75,.45);
}
.gcard__foot { font-size: clamp(.56rem, 2.4cqi, .72rem); line-height: 1.45; text-align: right; white-space: pre-line; color: rgba(255,255,255,.5); }

/* ---------- page d'achat ---------- */
.gc-visual .gcard { animation: sbFloat 7s ease-in-out infinite; }
.gc-other { margin-top: 4px; }
.gc-count { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .gc-visual .gcard { animation: none; } }

/* ---------- ma-carte-cadeau.html ---------- */
.gc-page {
  min-height: 100svh; background: #0B0C0E; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  padding: calc(var(--snav-h, 0px) + clamp(40px, 8vh, 80px)) var(--gut) clamp(50px, 9vh, 90px); text-align: center;
}
.gc-page h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.gc-page h1 span { color: #C89A4B; }
.gc-page__lead { max-width: 52ch; color: rgba(255,255,255,.6); line-height: 1.6; }
.gc-page .gcard { width: min(100%, 520px); text-align: left; }
.gc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gc-actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.gc-how { max-width: 560px; display: grid; gap: 10px; text-align: left; list-style: none; padding: 0; counter-reset: gch; }
.gc-how li { counter-increment: gch; display: flex; gap: 12px; font-size: .95rem; line-height: 1.5; color: rgba(255,255,255,.7); }
.gc-how li::before { content: counter(gch); flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(200,154,75,.16); color: #C89A4B; font-weight: 800; font-size: .8rem; }
.gc-how b { color: #fff; }
.gc-state { color: rgba(255,255,255,.6); }
.gc-state--err { color: #F0A58C; }
.gc-page [hidden] { display: none !important; }

/* ---------- impression : la carte seule, en couleurs ---------- */
@media print {
  @page { size: A5 landscape; margin: 14mm; }
  body { background: #fff !important; }
  body > *:not(.gc-page) { display: none !important; }
  .gc-page { min-height: 0; padding: 0; background: #fff; }
  .gc-page > *:not(.gcard):not(.gc-wrap) { display: none !important; }
  .gcard { width: 150mm; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
