/* TCG Live Cast : la page « Merci », affichée après le paiement.
   Elle reprend le tapis du site : un fond noir, des lignes claires, et trois emplacements pour les trois étapes.
   Les polices et les couleurs viennent de site.css. */

html:has(.merci) { background: var(--ink); }
.merci { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--ink); color: var(--paper);
  font-size: 19px; line-height: 1.32; }
.merci :focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; box-shadow: none; }

.thanks { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(18px, 4vw, 44px) 28px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); align-content: center; }

.thanks__head .brand { display: inline-flex; padding: 9px 13px 9px 11px; background: none; border: 2px solid rgba(236, 229, 211, .8); transform: rotate(-1.2deg); }
.thanks__head .brand img { display: block; height: 30px; width: auto; }
.thanks__head h1 { margin: clamp(26px, 5vw, 48px) 0 0; max-width: 13ch; font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 8.4vw, 104px); line-height: .92; letter-spacing: .004em; text-wrap: balance; }
.thanks__lead { margin-top: 18px; max-width: 30ch; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.2; color: var(--gold-light); }
.thanks__terms { margin-top: 18px; max-width: 46ch; font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

/* Les trois étapes : trois emplacements du tapis, numérotés parce qu'elles se font dans cet ordre. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; gap: 14px; }
.step { counter-increment: etape; position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 20px 22px 22px 78px;
  border: 2px solid rgba(236, 229, 211, .82); border-radius: 12px; }
.step::before { content: counter(etape); position: absolute; left: 22px; top: 12px; font-family: var(--display); font-weight: 800; font-size: 58px; line-height: 1; color: var(--gold-light); }
.step h2 { font-family: var(--display); font-weight: 800; font-size: 31px; line-height: 1; letter-spacing: .006em; }
.step p { margin-top: 9px; max-width: 46ch; }
.step__go { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 16px; padding: 3px 26px 0;
  background: var(--accent); color: var(--paper); border: 2px solid var(--paper); font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1;
  letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.step__go:hover { background: var(--paper); color: var(--ink); }

.thanks__more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-top: 18px; border-top: 2px solid rgba(236, 229, 211, .28); }
.thanks__more p { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1; margin-right: 4px; }
.thanks__more a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em; }
.thanks__more a:hover { color: var(--gold-light); }

.thanks__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 4px clamp(18px, 4vw, 44px) 22px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; }
.thanks__foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 24px; justify-content: center; color: var(--paper); opacity: .78; text-decoration: none; }
.thanks__foot a:hover, .thanks__foot a[aria-current] { opacity: 1; color: var(--gold-light); }
.thanks__langs { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 0 auto 0 0; padding: 0; list-style: none; }

html:lang(ja) .thanks__head h1 { font-size: clamp(34px, 5.6vw, 68px); line-height: 1.2; word-break: auto-phrase; max-width: 16em; }
html:lang(ja) .step h2 { font-size: 25px; line-height: 1.25; }
html:lang(ja) .merci { line-height: 1.6; font-size: 17px; }
html:lang(ja) .thanks__terms, html:lang(ja) .thanks__foot { letter-spacing: .03em; }

@media (min-width: 900px) {
  .thanks { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(36px, 5vw, 72px); align-items: center; }
  .thanks__more { grid-column: 1 / -1; }
  .thanks__head h1 { font-size: clamp(56px, 5.9vw, 86px); overflow-wrap: break-word; }
  html:lang(ja) .thanks__head h1 { font-size: clamp(34px, 3.9vw, 56px); }
}

/* Une seule entrée en scène : les trois emplacements se posent l'un après l'autre, comme des cartes qu'on distribue. */
@media (prefers-reduced-motion: no-preference) {
  .step { animation: pose .5s cubic-bezier(.2, .7, .2, 1) both; }
  .step:nth-child(2) { animation-delay: .09s; }
  .step:nth-child(3) { animation-delay: .18s; }
  @keyframes pose { from { opacity: 0; transform: translateY(-14px) rotate(-1.2deg); } to { opacity: 1; transform: none; } }
}


/* ---------- La page de résiliation : la demande, le récapitulatif, l'envoi ---------- */
.resilier .thanks { align-content: start; }
.resilier .step::before { content: attr(data-n); }
.resilier .step[hidden] { display: none; }
.resilier .step h2:focus { outline: none; }
.field { display: grid; gap: 6px; width: 100%; max-width: 30em; margin-top: 14px; font-size: 16px; line-height: 1.25; }
.field i { font-style: normal; opacity: .72; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; background: rgba(236, 229, 211, .06); color: var(--paper); border: 2px solid rgba(236, 229, 211, .82);
  border-radius: 8px; font: inherit; font-size: 18px; line-height: 1.3; }
.field textarea { resize: vertical; min-height: 76px; }
button.step__go, .step__back { cursor: pointer; -webkit-appearance: none; appearance: none; border-radius: 0; }
button.step__go { font-family: var(--display); }
.step__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 18px; }
.step__row .step__go { margin-top: 0; }
.step__back { min-height: 52px; padding: 0 4px; background: none; border: 0; color: var(--paper); font: inherit; text-decoration: underline; text-underline-offset: .2em; }
.step__back:hover { color: var(--gold-light); }
.recap { width: 100%; margin: 12px 0 0; }
.recap div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 16px; padding: 9px 0; border-top: 1px solid rgba(236, 229, 211, .28); }
.recap div[hidden] { display: none; }
.recap dt { opacity: .76; }
.recap dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.letter { width: 100%; margin: 14px 0 0; padding: 12px 14px; border: 1px dashed rgba(236, 229, 211, .6); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--mono); font-size: 13px; line-height: 1.5; -webkit-user-select: all; user-select: all; }
.after { margin-top: clamp(24px, 4vw, 36px); max-width: 44ch; }
.after h2 { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1; }
.after ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.after li { position: relative; padding-left: 20px; }
.after li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--gold-light); }
.resilier .thanks__head h1 { max-width: 12ch; }
@media (max-width: 520px) { .recap div { grid-template-columns: minmax(0, 1fr); } .resilier .step { padding-left: 62px; } .resilier .step::before { left: 16px; font-size: 48px; } }
html:lang(ja) .field { font-size: 15px; }
html:lang(ja) .after h2 { font-size: 22px; line-height: 1.3; }

/* Page de résiliation : choix de la date de fin */
.field--quand { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.field--quand legend { padding: 0; margin: 0 0 6px; }
.field--quand .choix { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; cursor: pointer; }
.field--quand .choix input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; flex: none; accent-color: var(--paper); }
.field--quand .field--date { margin-top: 6px; }
.field--quand .field--date[hidden] { display: none; }

/* 29 nov. 2026 : renvoi vers l'autre démarche (résilier ↔ renoncer au contrat), juste sous le chapeau */
.thanks__switch { margin-top: 12px; max-width: 44ch; font-size: 17px; line-height: 1.4; }
.thanks__switch a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
