/* Générateur de carte cadeau mariage (carte-cadeau-mariage.html, FR/EN/IT).
   La feuille ne dépend que de styleA01.css : tout composant déclare son propre box-sizing. */
.gc-page {
  --gc-ink: #17131f;
  --gc-muted: #6f6780;
  --gc-line: rgba(111, 76, 255, 0.2);
  --gc-line-strong: rgba(104, 71, 239, 0.45);
  --gc-surface: #fff;
  --gc-soft: #f6f2ff;
  --gc-accent: #6847ef;
  --gc-accent-2: #9b53d8;
  --gc-pink: #ff7aa8;
  --gc-danger: #b4233f;
  --gc-shadow: 0 16px 38px rgba(91, 61, 185, 0.12);
  width: min(1180px, calc(100% - 32px));
  box-sizing: border-box;
  margin: 0 auto 70px;
  color: var(--gc-ink);
  font-family: 'Bahnschrift', Arial, sans-serif;
}

.gc-page *,
.gc-page *::before,
.gc-page *::after {
  box-sizing: border-box;
}

.gc-page [hidden] {
  display: none !important;
}

.gc-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.gc-eyebrow {
  margin: 0;
  color: #5b4ae8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.gc-hero {
  position: relative;
  margin: 18px 0 30px;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px);
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(160deg, #ffbadf 0%, rgba(243, 210, 255, 0.72) 48%, #a5a7ff 100%);
  text-align: center;
}

.gc-hero::after {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  content: "";
  pointer-events: none;
}

.gc-hero > * {
  position: relative;
  z-index: 1;
}

.gc-hero h1 {
  max-width: 780px;
  margin: 10px auto 12px;
  color: #17131f;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.06;
}

/* Seconde ligne du H1 : le métier, en couleur. */
.gc-hero__sub {
  display: block;
  margin-top: 10px;
  background: linear-gradient(90deg, #6847ef, #b04fa0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.56em;
  font-weight: 800;
  line-height: 1.2;
}

.gc-hero__lead {
  max-width: 680px;
  margin: 0 auto;
  color: #3c3350;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
  line-height: 1.5;
}

.gc-hero__lead strong {
  color: #4b2fd6;
}

.gc-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.gc-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  min-width: 210px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
  backdrop-filter: blur(6px);
}

.gc-steps span {
  display: grid;
  grid-row: span 2;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-2));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.gc-steps strong {
  color: #231a38;
  font-size: 14px;
  line-height: 1.2;
}

.gc-steps small {
  color: #5d5470;
  font-size: 12px;
  font-weight: 600;
}

/* Garantie date : remboursement à 100 % si Mathieu n'est pas libre. */
.gc-hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #5b3fe0;
  font-size: 14px;
  font-weight: 800;
}

.gc-hero__trust svg,
.gc-guarantee__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.gc-guarantee {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 140, 90, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, #effaf4, #f6fbff);
  color: #35624d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.gc-guarantee__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #22a06b, #1f8a8a);
  color: #fff;
}

.gc-guarantee strong {
  display: block;
  margin-bottom: 2px;
  color: #17563b;
  font-size: 14.5px;
  font-weight: 850;
}

/* Nom de la garantie, présenté comme un label de confiance. */
.gc-guarantee strong.gc-guarantee__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22a06b, #1f8a8a);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.gc-guarantee strong.gc-guarantee__badge::after {
  content: "✓";
  font-size: 11px;
}

.gc-guarantee [data-gc-guarantee-text] {
  display: block;
}

.gc-theme-options.gc-theme-options--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gc-theme-options--three .gc-choice > span {
  justify-content: center;
  gap: 7px;
  padding-inline: 8px;
}

.gc-guarantee.is-dated {
  border-color: rgba(31, 140, 90, 0.5);
  box-shadow: 0 8px 18px rgba(31, 140, 90, 0.12);
}

.gc-ready__guarantee,
.gc-reveal__guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 750;
}

.gc-ready__guarantee { color: #1f6b4a; }
.gc-reveal__guarantee { justify-content: center; margin: 0; color: #9ff0c8; }

.gc-ready__guarantee::before,
.gc-reveal__guarantee::before {
  content: "✓";
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #22a06b;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

[data-theme="dark"] .gc-guarantee {
  border-color: rgba(120, 220, 170, 0.3);
  background: rgba(34, 160, 107, 0.12);
  color: rgba(220, 255, 238, 0.85);
}

[data-theme="dark"] .gc-guarantee strong:not(.gc-guarantee__badge),
[data-theme="dark"] .gc-ready__guarantee { color: #9ff0c8; }
[data-theme="dark"] .gc-hero__trust { background: rgba(104, 71, 239, 0.16); color: #dbcaff; }

/* ---------- Carte prête (après paiement) ---------- */
.gc-ready {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 30px 40px;
  margin: 0 0 30px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--gc-line-strong);
  border-radius: 30px;
  background: linear-gradient(145deg, var(--gc-surface), var(--gc-soft));
  box-shadow: var(--gc-shadow);
  scroll-margin-top: 110px;
}

.gc-ready h2 {
  margin: 8px 0 10px;
  color: var(--gc-ink);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.1;
}

.gc-ready__intro p {
  margin: 0;
  color: var(--gc-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.gc-ready__intro strong {
  color: var(--gc-ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.gc-ready__card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 22px 40px rgba(59, 31, 110, 0.3);
}

.gc-ready__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.gc-ready__status {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--gc-soft);
  color: var(--gc-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

/* ---------- Paiement par la caisse : confirmation, récapitulatif, annulation ---------- */
.gc-ready__status.is-paid {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: rgba(34, 160, 107, 0.12);
  color: #1f6b4a;
  font-size: 14px;
  font-weight: 800;
}

.gc-ready__status.is-paid::before {
  content: "✓";
  display: grid;
  flex: none;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #22a06b;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.gc-order {
  display: grid;
  margin: 10px 0 0;
  padding: 2px 14px;
  border: 1px solid var(--gc-line);
  border-radius: 16px;
  background: var(--gc-surface);
}

.gc-order > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gc-line);
  font-size: 13.5px;
  line-height: 1.4;
}

.gc-order > div:last-child {
  border-bottom: 0;
}

.gc-order dt {
  margin: 0;
  color: var(--gc-muted);
  font-weight: 650;
}

.gc-order dd {
  margin: 0;
  color: var(--gc-ink);
  font-weight: 780;
  text-align: right;
}

.gc-ready__intro .gc-order-mail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 2px 0;
  font-size: 13px;
}

.gc-ready__intro .gc-order-mail::before {
  content: "✉";
  flex: none;
  color: var(--gc-accent);
  font-size: 15px;
  line-height: 1.3;
}

/* Retour de Stripe, paiement pas encore confirmé : seul le message d'attente reste visible. */
.gc-ready.is-confirming {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.gc-ready.is-confirming .gc-ready__intro {
  max-width: 560px;
}

.gc-ready.is-confirming .gc-ready__card,
.gc-ready.is-confirming .gc-ready__intro > :not(.gc-eyebrow):not(h2):not(.gc-confirm) {
  display: none;
}

.gc-confirm {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 8px;
}

.gc-confirm.is-busy::before {
  content: "";
  width: 34px;
  height: 34px;
  border: 3px solid var(--gc-line-strong);
  border-top-color: var(--gc-accent);
  border-radius: 50%;
  animation: gc-spin 0.9s linear infinite;
}

.gc-confirm .gc-ready__buttons {
  justify-content: center;
}

@keyframes gc-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .gc-confirm.is-busy::before { animation-duration: 2.4s; }
}

.gc-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 10px 12px 16px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 16px;
  background: var(--gc-soft);
  color: var(--gc-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.gc-notice p {
  flex: 1;
  margin: 0;
}

.gc-notice__close {
  flex: none;
  width: 28px;
  height: 28px;
  margin: -3px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gc-muted);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.gc-notice__close:hover {
  background: var(--gc-line);
  color: var(--gc-ink);
}

.gc-pay-error {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f3;
  color: var(--gc-danger);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.gc-pay-error p {
  margin: 0;
}

.gc-pay-error.is-dark {
  max-width: 460px;
  background: rgba(255, 143, 163, 0.14);
  color: #ffd1da;
}

.gc-submit.is-paying,
.gc-btn.is-paying {
  cursor: progress;
  opacity: 0.85;
}

/* ---------- Boutons ---------- */
.gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 999px;
  background: var(--gc-surface);
  color: var(--gc-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gc-btn:hover {
  box-shadow: 0 8px 18px rgba(88, 58, 184, 0.16);
  transform: translateY(-1px);
}

.gc-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-2));
  box-shadow: 0 9px 22px rgba(88, 58, 184, 0.2);
  color: #fff;
}

.gc-btn--primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.gc-link {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--gc-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.gc-btn:focus-visible,
.gc-link:focus-visible,
.gc-submit:focus-visible,
.gc-page input:focus-visible,
.gc-page textarea:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.4);
  outline-offset: 2px;
}

/* ---------- Générateur ---------- */
.gc-builder {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 32px;
  scroll-margin-top: 100px;
}

.gc-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--gc-line);
  border-radius: 28px;
  background: var(--gc-surface);
  box-shadow: var(--gc-shadow);
}

.gc-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gc-field legend,
.gc-label {
  margin: 0 0 8px;
  padding: 0;
  color: var(--gc-ink);
  font-size: 15px;
  font-weight: 800;
}

.gc-field legend small,
.gc-label small {
  color: var(--gc-muted);
  font-size: 12px;
  font-weight: 600;
}

.gc-page input[type="text"],
.gc-page input[type="number"],
.gc-page input[type="date"],
.gc-page textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 14px;
  background: var(--gc-surface);
  color: var(--gc-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gc-page textarea {
  min-height: 74px;
  resize: vertical;
}

.gc-page input::placeholder,
.gc-page textarea::placeholder {
  color: #a39cb2;
  font-weight: 500;
}

.gc-page input:focus,
.gc-page textarea:focus {
  border-color: var(--gc-accent);
  box-shadow: 0 0 0 4px rgba(104, 71, 239, 0.12);
  outline: none;
}

.gc-page [aria-invalid="true"] {
  border-color: var(--gc-danger) !important;
}

.gc-hint {
  margin: 0;
  color: var(--gc-muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.gc-error {
  margin: 0;
  color: var(--gc-danger);
  font-size: 13px;
  font-weight: 750;
}

/* Choix du visuel : film ou photo */
.gc-theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gc-choice {
  min-width: 0;
  position: relative;
  display: block;
  cursor: pointer;
}

.gc-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gc-choice > span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 16px;
  background: var(--gc-surface);
  color: var(--gc-ink);
  font-size: 14.5px;
  font-weight: 780;
  line-height: 1.2;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gc-choice svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gc-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gc-choice input:checked + span {
  border-color: var(--gc-accent);
  background: var(--gc-soft);
  box-shadow: inset 0 0 0 1px var(--gc-accent);
}

.gc-choice input:focus-visible + span {
  outline: 3px solid rgba(139, 92, 246, 0.4);
  outline-offset: 2px;
}

/* Prénoms côte à côte */
.gc-names {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.gc-names__and {
  color: var(--gc-accent);
  font-size: 22px;
  font-weight: 800;
}

/* Montants */
.gc-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gc-amount {
  position: relative;
  cursor: pointer;
}

.gc-amount input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gc-amount > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 999px;
  background: var(--gc-surface);
  color: #4e367e;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gc-amount > span small {
  color: inherit;
  font-size: 11.5px;
  font-weight: 650;
  opacity: 0.8;
}

.gc-amount input:checked + span {
  border-color: var(--gc-accent);
  background: var(--gc-accent);
  color: #fff;
}

.gc-amount input:focus-visible + span {
  outline: 3px solid rgba(139, 92, 246, 0.4);
  outline-offset: 2px;
}

.gc-custom-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
}

.gc-custom-amount > label {
  min-width: 0;
}

.gc-custom-amount span {
  color: var(--gc-ink);
  font-size: 18px;
  font-weight: 800;
}

.gc-counter {
  justify-self: end;
  color: var(--gc-muted);
  font-size: 12px;
  font-weight: 650;
}

.gc-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--gc-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.gc-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--gc-accent);
}

.gc-consent a,
.gc-rules a,
.gc-ready a:not(.gc-btn) {
  color: var(--gc-accent);
  font-weight: 750;
}

.gc-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-2));
  box-shadow: 0 12px 26px rgba(88, 58, 184, 0.24);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 820;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gc-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 15px 30px rgba(88, 58, 184, 0.3);
  transform: translateY(-1px);
}

.gc-submit[aria-busy="true"] {
  cursor: progress;
}

.gc-submit__icon {
  display: none;
  flex: none;
  width: 24px;
  height: 24px;
}

.gc-submit__icon--spark { fill: #fff; }
.gc-submit__icon--gift { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gc-submit.is-generate .gc-submit__icon--spark,
.gc-submit.is-generating .gc-submit__icon--spark,
.gc-submit.is-offer .gc-submit__icon--gift {
  display: block;
}

/* Reflet qui invite à cliquer sur « Générer ma carte ». */
.gc-submit.is-generate::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  content: "";
  animation: gc-sheen 3.4s ease-in-out infinite;
}

.gc-submit.is-generating {
  background-image: linear-gradient(110deg, #6847ef 0%, #9b53d8 30%, #e07ac3 50%, #9b53d8 70%, #6847ef 100%);
  background-size: 220% 100%;
  animation: gc-shimmer 1.1s linear infinite;
}

.gc-submit.is-generating .gc-submit__icon--spark {
  animation: gc-spark-spin 0.9s ease-in-out infinite;
}

.gc-submit.is-offer {
  background: linear-gradient(135deg, #5b3fe0, #a254d2 60%, #e0569b);
}

@keyframes gc-sheen {
  0%, 55% { left: -40%; }
  85%, 100% { left: 120%; }
}

@keyframes gc-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

@keyframes gc-spark-spin {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(90deg) scale(1.25); }
  100% { transform: rotate(180deg) scale(1); }
}

.gc-secure {
  margin: -6px 0 0;
  color: var(--gc-muted);
  font-size: 12.5px;
  font-weight: 650;
  text-align: center;
}

.gc-pay-note {
  margin: -8px 0 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #7a4b00;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Aperçu en direct */
.gc-preview {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
}

.gc-preview__stage {
  padding: clamp(14px, 3vw, 28px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 186, 223, 0.55), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(165, 167, 255, 0.5), transparent 45%),
    var(--gc-soft);
  perspective: 1200px;
}

.gc-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 24px 44px rgba(59, 31, 110, 0.32);
  transform: rotateX(var(--gc-tilt-x, 0deg)) rotateY(var(--gc-tilt-y, 0deg));
  transition: transform 0.25s ease;
}

.gc-preview__code {
  margin: 4px 0 0;
  color: var(--gc-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.gc-preview__code strong {
  margin-left: 6px;
  letter-spacing: 0.06em;
}

.gc-preview__code strong.is-pending {
  color: var(--gc-muted);
  font-weight: 650;
  font-style: italic;
  letter-spacing: 0;
}

.gc-canvas.is-changing {
  animation: gc-pulse 0.45s ease;
}

@keyframes gc-pulse {
  from { opacity: 0.55; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.gc-preview__note {
  margin: 0;
  color: var(--gc-muted);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

/* ---------- Règles ---------- */
.gc-rules {
  margin: 46px 0 0;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--gc-line);
  border-radius: 30px;
  background: var(--gc-surface);
  scroll-margin-top: 100px;
}

.gc-rules h2,
.gc-received h2 {
  margin: 6px 0 18px;
  color: var(--gc-ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}

.gc-rules__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gc-rules__list li {
  position: relative;
  padding-left: 30px;
  color: var(--gc-muted);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}

.gc-rules__list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-2));
  color: #fff;
  content: "✓";
  font-size: 11px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.gc-rules__list strong {
  color: var(--gc-ink);
}

.gc-rules__legal {
  margin: 20px 0 0;
  color: var(--gc-muted);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Questions fréquentes ---------- */
.gc-faq {
  margin: 26px 0 0;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--gc-line);
  border-radius: 30px;
  background: var(--gc-surface);
  scroll-margin-top: 100px;
}

.gc-faq h2 {
  margin: 6px 0 18px;
  color: var(--gc-ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}

.gc-faq__list {
  display: grid;
  gap: 10px;
}

.gc-faq__item {
  border: 1px solid var(--gc-line);
  border-radius: 16px;
  background: var(--gc-surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gc-faq__item[open] {
  border-color: var(--gc-line-strong);
  background: var(--gc-soft);
}

.gc-faq__item summary {
  position: relative;
  padding: 14px 48px 14px 18px;
  color: var(--gc-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.gc-faq__item summary::-webkit-details-marker {
  display: none;
}

.gc-faq__item summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--gc-soft);
  color: var(--gc-accent);
  content: "+";
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  transition: transform 0.2s ease;
}

.gc-faq__item[open] summary::after {
  background: var(--gc-surface);
  transform: rotate(45deg);
}

.gc-faq__item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--gc-muted);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
}

/* Ce que les mariés ont reçu (d'après le lien du QR code) */
.gc-gift {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 20px;
  background: var(--gc-surface);
  box-shadow: 0 12px 28px rgba(88, 58, 184, 0.12);
}

.gc-received__intro .gc-gift__title {
  margin: 0;
  color: var(--gc-ink);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.25;
}

.gc-received__intro .gc-gift__tagline {
  margin: 4px 0 12px;
  color: var(--gc-accent);
  font-size: 13.5px;
  font-weight: 750;
}

.gc-gift__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gc-gift;
}

.gc-gift__steps li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 34px;
  counter-increment: gc-gift;
}

.gc-gift__steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-2));
  color: #fff;
  content: counter(gc-gift);
  font-size: 12px;
  font-weight: 850;
  line-height: 24px;
  text-align: center;
}

.gc-gift__steps strong {
  color: var(--gc-ink);
  font-size: 14px;
  font-weight: 800;
}

.gc-gift__steps span {
  color: var(--gc-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

/* ---------- Carte reçue ---------- */
.gc-received {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px 40px;
  margin: 26px 0 0;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--gc-line);
  border-radius: 30px;
  background: linear-gradient(145deg, var(--gc-surface), var(--gc-soft));
  scroll-margin-top: 100px;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.gc-received.is-highlighted {
  border-color: var(--gc-accent);
  box-shadow: 0 0 0 4px rgba(104, 71, 239, 0.16), var(--gc-shadow);
}

.gc-received h2 {
  margin-bottom: 10px;
}

.gc-received__intro p {
  margin: 0;
  color: var(--gc-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.gc-redeem {
  display: grid;
  gap: 8px;
}

.gc-redeem label {
  color: var(--gc-ink);
  font-size: 14px;
  font-weight: 800;
}

.gc-redeem__row {
  display: flex;
  gap: 8px;
}

.gc-redeem__row input[type="text"] {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gc-received__links {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
}

/* ---------- Sélecteur de formules ---------- */
.gc-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 18px;
  background: var(--gc-soft);
}

.gc-cat {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 58px;
  padding: 8px 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--gc-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gc-cat svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gc-cat[aria-pressed="true"] {
  background: var(--gc-surface);
  box-shadow: 0 6px 16px rgba(88, 58, 184, 0.16);
  color: var(--gc-accent);
}

.gc-cat:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.4);
  outline-offset: 1px;
}

.gc-offers {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.gc-offer {
  position: relative;
  display: block;
  cursor: pointer;
}

.gc-offer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gc-offer__card {
  --gc-stripe: linear-gradient(180deg, #6847ef, #b25bd0);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 20px;
  overflow: hidden;
  border: 1px solid var(--gc-line-strong);
  border-radius: 18px;
  background: var(--gc-surface);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.gc-offer--photo .gc-offer__card { --gc-stripe: linear-gradient(180deg, #d25b9c, #6b5cf0); }
.gc-offer--duo .gc-offer__card { --gc-stripe: linear-gradient(180deg, #6847ef, #e0569b); }

.gc-offer__card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--gc-stripe);
  content: "";
}

.gc-offer:hover .gc-offer__card {
  border-color: var(--gc-accent);
  transform: translateY(-1px);
}

.gc-offer__radio {
  position: relative;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gc-line-strong);
  border-radius: 50%;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gc-offer__radio::after {
  position: absolute;
  inset: 0;
  color: #fff;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.gc-offer input:checked + .gc-offer__card {
  border-color: var(--gc-accent);
  background: linear-gradient(135deg, var(--gc-surface), var(--gc-soft));
  box-shadow: 0 0 0 1px var(--gc-accent), 0 14px 28px rgba(88, 58, 184, 0.16);
}

.gc-offer input:checked + .gc-offer__card .gc-offer__radio {
  border: 0;
  background: var(--gc-stripe);
}

.gc-offer input:checked + .gc-offer__card .gc-offer__radio::after {
  line-height: 22px;
  opacity: 1;
  transform: scale(1);
}

.gc-offer input:focus-visible + .gc-offer__card {
  outline: 3px solid rgba(139, 92, 246, 0.4);
  outline-offset: 2px;
}

.gc-offer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.gc-offer__name {
  color: var(--gc-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.gc-offer__badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: #241638;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gc-offer__badge b {
  color: #d98bd4;
}

.gc-offer__points {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 5px;
}

.gc-offer__points span {
  position: relative;
  padding-left: 12px;
  color: var(--gc-muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}

.gc-offer__points span::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gc-stripe);
  content: "";
}

.gc-offer__price {
  color: var(--gc-accent);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.gc-free {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--gc-line-strong);
  border-radius: 18px;
}

.gc-free__label {
  margin: 0;
  color: var(--gc-ink);
  font-size: 13px;
  font-weight: 800;
}

.gc-theme-options--compact .gc-choice > span {
  min-height: 44px;
  font-size: 13.5px;
}

/* ---------- Ticket « ce que paieront les mariés » ---------- */
.gc-receipt {
  position: relative;
  padding: 16px 18px 14px;
  border: 1px solid var(--gc-line);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gc-surface), var(--gc-soft));
}

.gc-receipt__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--gc-ink);
  font-size: 15px;
  font-weight: 850;
}

.gc-receipt__sim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gc-muted);
  font-size: 13px;
  font-weight: 700;
}

.gc-sim-picker {
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
}

.gc-sim-picker summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 12px;
  background: var(--gc-surface);
  color: var(--gc-ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.gc-sim-picker summary::-webkit-details-marker { display: none; }
.gc-sim-picker summary span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gc-sim-picker summary::after {
  content: '';
  flex: 0 0 7px;
  height: 7px;
  border-right: 2px solid var(--gc-accent);
  border-bottom: 2px solid var(--gc-accent);
  transform: rotate(45deg);
}
.gc-sim-picker[open] summary::after { transform: rotate(225deg); }
.gc-sim-picker__options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 6;
  display: grid;
  gap: 4px;
  max-height: min(320px, 40dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 14px;
  background: var(--gc-surface);
  box-shadow: var(--gc-shadow);
}
.gc-sim-picker__options button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--gc-ink);
  font: inherit;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.gc-sim-picker__options button:hover { background: var(--gc-soft); }
.gc-sim-picker__options button[aria-pressed="true"] {
  background: var(--gc-accent);
  color: #fff;
}
.gc-sim-picker summary:focus-visible,
.gc-sim-picker__options button:focus-visible {
  outline: 3px solid var(--gc-line-strong);
  outline-offset: 2px;
}

.gc-receipt__lines {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px dashed var(--gc-line-strong);
  list-style: none;
}

.gc-receipt__lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gc-ink);
  font-size: 14px;
  font-weight: 650;
}

.gc-receipt__lines li span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gc-receipt__lines li.is-minus span:last-child {
  color: #c2336f;
  font-weight: 800;
}

.gc-receipt__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 6px;
  color: var(--gc-ink);
  font-size: 15px;
  font-weight: 850;
}

.gc-receipt__total strong {
  color: var(--gc-accent);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.gc-receipt__note {
  margin: 0;
  color: var(--gc-muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.45;
}

[data-theme="dark"] .gc-receipt__lines li.is-minus span:last-child {
  color: #ff9cc8;
}

/* ---------- Calendrier ---------- */
.gc-date {
  position: relative;
}

.gc-date__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 14px;
  background: var(--gc-surface);
  color: var(--gc-muted);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gc-date__trigger.has-value {
  color: var(--gc-ink);
}

.gc-date__trigger[aria-expanded="true"],
.gc-date__trigger:focus-visible {
  border-color: var(--gc-accent);
  box-shadow: 0 0 0 4px rgba(104, 71, 239, 0.12);
  outline: none;
}

.gc-date__trigger svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gc-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gc-cal {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: min(340px, 100%);
  padding: 14px;
  border: 1px solid var(--gc-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 56px rgba(40, 20, 90, 0.22);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.gc-cal.is-open {
  opacity: 1;
  transform: none;
}

.gc-cal__head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.gc-cal__nav {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--gc-soft);
  color: var(--gc-accent);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.gc-cal__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.gc-cal__title {
  justify-self: center;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gc-ink);
  font: inherit;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
}

.gc-cal__title::after {
  display: inline-block;
  margin-left: 6px;
  color: var(--gc-accent);
  content: "▾";
  font-size: 12px;
  transition: transform 0.2s ease;
}

.gc-cal.is-months .gc-cal__title::after {
  transform: rotate(180deg);
}

.gc-cal__title:hover,
.gc-cal__nav:not(:disabled):hover {
  background: var(--gc-soft);
  filter: brightness(0.97);
}

.gc-cal__weekdays,
.gc-cal__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.gc-cal__weekdays span {
  padding: 4px 0;
  color: var(--gc-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.gc-cal__weekdays .is-weekend,
.gc-cal__day.is-weekend {
  color: #d0488f;
}

.gc-cal__day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--gc-ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.gc-cal__day:not(:disabled):hover {
  background: var(--gc-soft);
  transform: scale(1.06);
}

.gc-cal__day.is-today {
  box-shadow: inset 0 0 0 2px rgba(104, 71, 239, 0.45);
}

.gc-cal__day.is-selected {
  background: linear-gradient(135deg, var(--gc-accent), #d0488f);
  box-shadow: 0 6px 14px rgba(104, 71, 239, 0.3);
  color: #fff;
}

.gc-cal__day:disabled {
  color: var(--gc-muted);
  opacity: 0.35;
  cursor: default;
}

.gc-cal__day:focus-visible,
.gc-cal__month:focus-visible,
.gc-cal__nav:focus-visible,
.gc-cal__title:focus-visible,
.gc-cal__clear:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.45);
  outline-offset: 1px;
}

.gc-cal__months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 0;
}

.gc-cal__month {
  min-height: 46px;
  border: 1px solid var(--gc-line);
  border-radius: 14px;
  background: transparent;
  color: var(--gc-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.gc-cal__month.is-current {
  border-color: var(--gc-accent);
  color: var(--gc-accent);
}

.gc-cal__month:not(:disabled):hover {
  background: var(--gc-soft);
}

.gc-cal__month:disabled {
  opacity: 0.3;
  cursor: default;
}

.gc-cal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--gc-line);
}

.gc-cal__hint {
  color: var(--gc-muted);
  font-size: 11.5px;
  font-weight: 650;
}

.gc-cal__clear {
  padding: 6px 12px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--gc-accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

/* ---------- Révélation de la carte ---------- */
body.gc-reveal-open {
  overflow: hidden;
}

.gc-reveal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}

.gc-reveal__backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(178, 91, 208, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(20, 10, 44, 0.94), rgba(10, 5, 24, 0.97));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Halo derrière la carte : une lumière douce qui respire, sans rotation. */
.gc-reveal__rays {
  position: fixed;
  top: 38%;
  left: 50%;
  width: min(1100px, 150vw);
  height: min(760px, 110vw);
  background:
    radial-gradient(ellipse at 42% 50%, rgba(124, 92, 255, 0.5), transparent 58%),
    radial-gradient(ellipse at 62% 48%, rgba(226, 110, 190, 0.32), transparent 60%);
  filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.8s ease;
  animation: gc-aura 7s ease-in-out infinite alternate;
}

.gc-reveal.is-open .gc-reveal__backdrop { opacity: 1; }
.gc-reveal.is-open .gc-reveal__rays { opacity: 0.7; }
.gc-reveal.is-revealed .gc-reveal__rays { opacity: 1; }

.gc-reveal__content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(640px, 100%);
}

.gc-reveal__stage {
  position: relative;
  width: min(560px, 88vw);
  aspect-ratio: 2000 / 1260;
  perspective: 1600px;
}

.gc-reveal__inner {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.6);
  transform-style: preserve-3d;
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.gc-reveal.is-open .gc-reveal__inner {
  opacity: 1;
  transform: none;
}

.gc-reveal__stage.is-spinning .gc-reveal__inner {
  animation: gc-card-spin 1.85s cubic-bezier(0.45, 0.05, 0.2, 1) both;
}

.gc-reveal__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 3.6% / 5.7%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gc-reveal__face canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.gc-reveal__face--back {
  background: #fbf8ff;
  transform: rotateY(180deg);
}

/* Une fois la carte révélée, elle se retourne lentement pour montrer le verso. */
.gc-reveal.is-revealed .gc-reveal__stage {
  cursor: pointer;
}

.gc-reveal.is-revealed .gc-reveal__inner {
  transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gc-reveal__stage.is-back .gc-reveal__inner {
  transform: rotateY(180deg);
}

.gc-reveal__turn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -8px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gc-reveal__turn:hover,
.gc-reveal__turn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.gc-reveal__turn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gc-reveal__stage.is-spinning .gc-reveal__face {
  animation: gc-evolve 1.85s ease-in-out both;
}

.gc-reveal__flash {
  position: absolute;
  inset: -4%;
  border-radius: 8%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.gc-reveal.is-flash .gc-reveal__flash {
  animation: gc-flash 0.55s ease-out;
}

.gc-reveal__holo {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 45%, rgba(255, 190, 240, 0.3) 52%, transparent 66%);
  pointer-events: none;
  transform: translateX(-130%);
}

.gc-reveal.is-revealed .gc-reveal__holo {
  animation: gc-holo 1.6s ease-out 0.1s both;
}

.gc-reveal__sparks i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--s, 14px);
  height: var(--s, 14px);
  background: linear-gradient(135deg, #fff, #ffd6f3);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  pointer-events: none;
}

.gc-reveal.is-revealed .gc-reveal__sparks i {
  animation: gc-spark 1.3s ease-out var(--d, 0s) both;
}

.gc-reveal__panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #fff;
  text-align: center;
}

.gc-reveal__status {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gc-reveal.is-revealed .gc-reveal__status {
  color: #fff;
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: 0;
  text-transform: none;
}

.gc-reveal__code {
  margin: 0;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  font-size: clamp(22px, 4vw, 34px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.gc-reveal__next {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.gc-reveal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.gc-reveal__actions .gc-btn--primary {
  min-height: 52px;
  padding: 12px 24px;
  font-size: 16px;
}

.gc-reveal__edit.gc-btn {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
}

.gc-reveal__x {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gc-reveal.is-revealed .gc-reveal__x {
  opacity: 1;
  pointer-events: auto;
}

@keyframes gc-aura {
  from { transform: translate(-50%, -50%) scale(0.94); }
  to { transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes gc-card-spin {
  0% { opacity: 0; transform: rotateY(180deg) scale(0.45); }
  12% { opacity: 1; }
  70% { transform: rotateY(1000deg) scale(1.06); }
  100% { opacity: 1; transform: rotateY(1080deg) scale(1); }
}

@keyframes gc-evolve {
  0%, 22%, 38%, 58%, 82%, 100% { filter: none; }
  30% { filter: brightness(2.4) saturate(0); }
  50% { filter: brightness(2.7) saturate(0); }
  72% { filter: brightness(3.2) saturate(0); }
}

@keyframes gc-flash {
  0% { opacity: 0; }
  20% { opacity: 0.95; }
  100% { opacity: 0; }
}

@keyframes gc-holo {
  to { transform: translateX(130%); }
}

@keyframes gc-spark {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.2); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(180deg); }
}

/* ---------- Étapes après commande ---------- */
.gc-ready__steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.gc-ready__steps > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--gc-line);
  border-radius: 18px;
  background: var(--gc-surface);
}

.gc-ready__num {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-2));
  color: #fff;
  font-weight: 900;
}

.gc-ready__steps strong {
  display: block;
  color: var(--gc-ink);
  font-size: 16px;
}

.gc-ready__steps p {
  margin: 4px 0 10px;
  color: var(--gc-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

.gc-ready__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gc-btn.is-done::after {
  content: "✓";
}

/* ---------- Signature : suggestions et mention « à plusieurs » ---------- */
.gc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gc-chip {
  padding: 5px 12px;
  border: 1px solid var(--gc-line);
  border-radius: 999px;
  background: var(--gc-surface);
  color: var(--gc-accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gc-chip:hover,
.gc-chip:focus-visible {
  border-color: var(--gc-line-strong);
  background: var(--gc-soft);
}

.gc-hint--several {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--gc-soft);
}

.gc-hint--several strong {
  color: var(--gc-ink);
}

/* ---------- Copier le code ---------- */
.gc-codebox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gc-copy {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--gc-line);
  border-radius: 10px;
  background: var(--gc-surface);
  color: var(--gc-accent);
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.gc-copy[hidden] {
  display: none;
}

.gc-copy:hover,
.gc-copy:focus-visible {
  border-color: var(--gc-line-strong);
  background: var(--gc-soft);
}

.gc-copy:active {
  transform: scale(0.94);
}

.gc-copy__icon {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gc-copy__icon--done {
  opacity: 0;
  transform: scale(0.6);
}

.gc-copy.is-copied {
  border-color: rgba(31, 157, 102, 0.5);
  color: #1f9d66;
}

.gc-copy.is-copied .gc-copy__icon--copy {
  opacity: 0;
  transform: scale(0.6);
}

.gc-copy.is-copied .gc-copy__icon--done {
  opacity: 1;
  transform: none;
}

.gc-copy--dark {
  width: 46px;
  height: 46px;
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.gc-copy--dark:hover,
.gc-copy--dark:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
}

.gc-copy--dark .gc-copy__icon {
  width: 22px;
  height: 22px;
}

.gc-copy--dark.is-copied {
  border-color: rgba(159, 240, 200, 0.6);
  color: #9ff0c8;
}

/* ---------- Montant caché ---------- */
.gc-discreet {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--gc-line);
  border-radius: 18px;
  background: var(--gc-surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gc-discreet input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gc-discreet__switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(111, 103, 128, 0.28);
  transition: background 0.25s ease;
}

.gc-discreet__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(23, 19, 31, 0.25);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gc-discreet__copy {
  display: grid;
  gap: 3px;
}

.gc-discreet__copy strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gc-ink);
  font-size: 15px;
  font-weight: 820;
}

.gc-discreet__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gc-accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gc-discreet__copy small {
  color: var(--gc-muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.gc-discreet:hover {
  border-color: var(--gc-line-strong);
}

.gc-discreet:has(input:checked) {
  border-color: var(--gc-line-strong);
  background: linear-gradient(135deg, var(--gc-surface), var(--gc-soft));
  box-shadow: 0 10px 24px rgba(88, 58, 184, 0.12);
}

.gc-discreet input:checked + .gc-discreet__switch {
  background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-2));
}

.gc-discreet input:checked + .gc-discreet__switch::after {
  transform: translateX(20px);
}

.gc-discreet input:focus-visible + .gc-discreet__switch {
  outline: 3px solid rgba(104, 71, 239, 0.35);
  outline-offset: 2px;
}

/* ---------- Recto / verso ---------- */
.gc-faces {
  display: flex;
  justify-self: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--gc-soft);
}

.gc-face {
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gc-muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 780;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gc-face small {
  font-weight: 600;
  opacity: 0.8;
}

.gc-face[aria-pressed="true"] {
  background: var(--gc-surface);
  box-shadow: 0 4px 12px rgba(88, 58, 184, 0.14);
  color: var(--gc-ink);
}

.gc-flip {
  position: relative;
  transform: rotateX(var(--gc-tilt-x, 0deg)) rotateY(var(--gc-tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gc-flip.is-back {
  transform: rotateX(var(--gc-tilt-x, 0deg)) rotateY(calc(180deg + var(--gc-tilt-y, 0deg)));
}


.gc-flip .gc-canvas {
  transform: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gc-flip .gc-canvas--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

.gc-flip .gc-canvas--back.is-changing {
  animation: gc-fade 0.45s ease;
}

@keyframes gc-fade {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.gc-ready__card {
  display: grid;
  gap: 14px;
}

.gc-ready__caption {
  margin: 0;
  color: var(--gc-muted);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

/* ---------- Thème sombre du site ---------- */
[data-theme="dark"] .gc-page {
  --gc-ink: #fff;
  --gc-muted: rgba(249, 243, 255, 0.74);
  --gc-line: rgba(196, 181, 253, 0.22);
  --gc-line-strong: rgba(196, 181, 253, 0.42);
  --gc-surface: rgba(40, 28, 59, 0.96);
  --gc-soft: rgba(167, 139, 250, 0.14);
  --gc-danger: #ff8fa3;
  --gc-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .gc-discreet__icon { stroke: #c4b5fd; }
[data-theme="dark"] .gc-discreet__switch { background: rgba(249, 243, 255, 0.2); }

[data-theme="dark"] .gc-hero {
  background: linear-gradient(165deg, #2a2145 0%, #231c3f 48%, #1d1835 100%);
}

[data-theme="dark"] .gc-hero h1,
[data-theme="dark"] .gc-steps strong {
  color: #fff;
}

[data-theme="dark"] .gc-hero__sub {
  background-image: linear-gradient(90deg, #c4b5fd, #f9a8d4);
  color: transparent;
}

[data-theme="dark"] .gc-hero__lead,
[data-theme="dark"] .gc-steps small {
  color: rgba(249, 243, 255, 0.78);
}

[data-theme="dark"] .gc-hero__lead strong,
[data-theme="dark"] .gc-eyebrow {
  color: #c4b5fd;
}

[data-theme="dark"] .gc-steps li {
  border-color: rgba(196, 181, 253, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .gc-amount > span {
  color: #f3eaff;
}

[data-theme="dark"] .gc-btn {
  color: #e5dcff;
}

[data-theme="dark"] .gc-btn--primary,
[data-theme="dark"] .gc-btn--primary:hover {
  color: #fff;
}

[data-theme="dark"] .gc-consent a,
[data-theme="dark"] .gc-rules a,
[data-theme="dark"] .gc-ready a:not(.gc-btn) {
  color: #c4b5fd;
}

[data-theme="dark"] .gc-cal {
  background: #22183a;
}

[data-theme="dark"] .gc-offer__badge {
  background: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .gc-pay-note {
  background: rgba(255, 196, 87, 0.14);
  color: #ffd88a;
}

[data-theme="dark"] .gc-ready__status.is-paid {
  background: rgba(34, 160, 107, 0.16);
  color: #9ff0c8;
}

[data-theme="dark"] .gc-pay-error:not(.is-dark) {
  background: rgba(255, 143, 163, 0.12);
  color: #ffc2cf;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .gc-builder,
  .gc-ready,
  .gc-received {
    grid-template-columns: minmax(0, 1fr);
  }

  /* L'aperçu reste masqué jusqu'au premier choix, puis apparaît en bas. */
  .gc-preview {
    display: none;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    gap: 8px;
    margin: 0;
    padding: 6px 16px;
    border-top: 1px solid var(--gc-line);
    background: rgba(250, 247, 255, 0.92);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 -18px 30px -22px rgba(59, 31, 110, 0.55);
  }

  .gc-builder.has-mobile-preview {
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }

  [data-theme="dark"] .gc-preview {
    background: rgba(24, 18, 38, 0.92);
  }

  .gc-preview__stage {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  /* Carte plus compacte, adaptée aussi aux petits écrans en hauteur. */
  .gc-flip {
    width: min(82%, calc(24vh * 1.587));
    margin: 0 auto;
  }

  .gc-canvas {
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(59, 31, 110, 0.3);
  }

  /* Le code figure déjà sur la carte. */
  .gc-preview__code,
  .gc-preview__note {
    display: none;
  }

  .gc-faces {
    background: rgba(104, 71, 239, 0.1);
  }

  .gc-preview,
  .gc-flip,
  .gc-faces {
    transition: padding 0.3s ease, width 0.3s ease, margin 0.3s ease, transform 0.3s ease;
  }

  /* Mini-carte en bas pendant la saisie, avec les commandes de face. */
  .gc-preview.is-compact {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: 14px;
    align-items: center;
    padding-top: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .gc-preview.is-compact .gc-faces {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    justify-self: start;
    border-radius: 14px;
  }

  .gc-preview.is-compact .gc-face {
    padding: 4px 10px;
    font-size: 11.5px;
  }

  .gc-preview.is-compact .gc-preview__stage {
    grid-column: 1;
    grid-row: 1;
  }

  .gc-preview.is-compact .gc-flip {
    width: min(52vw, 190px);
    margin: 0;
  }

  .gc-preview.is-compact .gc-canvas {
    border-radius: 7px;
    box-shadow: 0 6px 14px rgba(59, 31, 110, 0.28);
  }

  .gc-face {
    padding: 5px 12px;
    font-size: 12.5px;
  }

  .gc-face small {
    display: none;
  }

  .gc-rules__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .gc-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gc-form {
    padding: 16px;
  }

  .gc-free {
    padding: 12px;
  }

  .gc-free .gc-amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gc-free .gc-amount,
  .gc-free .gc-amount > span {
    min-width: 0;
    width: 100%;
  }

  .gc-free .gc-amount > span {
    height: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 8px;
    white-space: normal;
    text-align: center;
  }

  .gc-free .gc-theme-options--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gc-free .gc-theme-options--three .gc-choice:first-child {
    grid-column: 1 / -1;
  }

  .gc-preview {
    padding-left: 12px;
    padding-right: 12px;
  }

  .gc-page {
    width: calc(100% - 24px);
  }

  .gc-hero {
    margin-top: 8px;
    border-radius: 26px;
  }

  .gc-steps li {
    width: 100%;
  }

  .gc-names {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .gc-names__and {
    justify-self: center;
    font-size: 18px;
    line-height: 1;
  }

  .gc-redeem__row {
    flex-direction: column;
  }

  .gc-ready__buttons .gc-btn,
  .gc-reveal__actions .gc-btn {
    width: 100%;
  }

  .gc-offer__card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px 14px 12px 18px;
  }

  .gc-offer__price {
    grid-column: 2;
    font-size: 18px;
  }

  .gc-cal {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gc-submit::after,
  .gc-submit.is-generating,
  .gc-reveal__rays,
  .gc-canvas.is-changing {
    animation: none;
  }

  .gc-cal,
  .gc-offer__card,
  .gc-canvas,
  .gc-reveal__inner,
  .gc-preview,
  .gc-faces,
  .gc-flip,
  .gc-discreet,
  .gc-discreet__switch,
  .gc-discreet__switch::after,
  .gc-btn,
  .gc-submit,
  .gc-received {
    transition: none;
  }
}

/* ---------- Montant libre = prix d'une formule : on propose la formule ---------- */
.gc-formula-hint {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 14px;
  background: var(--gc-soft);
  color: var(--gc-muted);
  font-size: 13px;
  line-height: 1.5;
  animation: gc-formula-hint-in 0.28s ease-out;
}

.gc-formula-hint[hidden] {
  display: none;
}

.gc-formula-hint p {
  margin: 0;
}

.gc-formula-hint strong {
  color: var(--gc-ink);
}

.gc-formula-hint__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gc-formula-hint__cta,
.gc-formula-hint__keep {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.gc-formula-hint__cta {
  border: 0;
  background: var(--gc-accent);
  color: #fff;
}

.gc-formula-hint__keep {
  border: 1px solid var(--gc-line-strong);
  background: transparent;
  color: var(--gc-ink);
}

.gc-formula-hint__cta:focus-visible,
.gc-formula-hint__keep:focus-visible {
  outline: 2px solid var(--gc-accent);
  outline-offset: 2px;
}

@keyframes gc-formula-hint-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gc-formula-hint { animation: none; }
}

/* ---------- Page des mariés (carte-cadeau-recue.html, carte-cadeau-recue.js) ---------- */
.gcx-loading {
  width: fit-content;
  margin: 70px auto;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gc-surface);
  box-shadow: var(--gc-shadow);
  color: var(--gc-muted);
  font-weight: 700;
}
.gcx-page:not(.is-loading) .gcx-loading { display: none; }

.gcx-hero {
  margin: 18px 0 26px;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 5vw, 56px);
  border-radius: 34px;
  background: linear-gradient(160deg, #ffbadf 0%, rgba(243, 210, 255, 0.72) 48%, #a5a7ff 100%);
  text-align: center;
}

.gcx-hero h1 {
  max-width: 820px;
  margin: 10px auto;
  color: #17131f;
  font-size: clamp(28px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.08;
}

.gcx-lead {
  max-width: 680px;
  margin: 0 auto;
  color: #3c3350;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
  line-height: 1.5;
}

.gcx-message {
  max-width: 560px;
  margin: 14px auto 0;
  color: #4b2fd6;
  font-size: 17px;
  font-style: italic;
  font-weight: 600;
}

.gcx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
}

/* La carte, en HTML : même esprit que le recto dessiné par le générateur. */
.gcx-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  aspect-ratio: 2000 / 1260;
  padding: 5.5% 6.5%;
  border-radius: 26px;
  background: linear-gradient(135deg, #2c1f6b 0%, #5a3be0 52%, #9b53d8 100%);
  box-shadow: 0 26px 50px rgba(59, 31, 110, 0.35);
  color: #fff;
  container-type: inline-size;
}

.gcx-card[data-theme="photo"] { background: linear-gradient(135deg, #3b1d5e 0%, #7a3fd0 55%, #d06aa8 100%); }
.gcx-card__top { display: flex; flex-direction: column; gap: 6px; }
.gcx-card__logo { width: 28cqi; max-width: 220px; height: auto; }
.gcx-card__kind { font-size: 11px; font-size: clamp(9px, 1.9cqi, 13px); font-weight: 800; letter-spacing: 0.14em; opacity: 0.85; }
.gcx-card__body { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.gcx-card__for { font-size: 12px; font-size: clamp(10px, 2.2cqi, 14px); opacity: 0.8; }
.gcx-card__names { font-size: 34px; font-size: clamp(22px, 7.5cqi, 54px); font-weight: 800; line-height: 1.02; overflow-wrap: anywhere; }
.gcx-card__from { font-size: 13px; font-size: clamp(10px, 2.3cqi, 15px); opacity: 0.9; }
.gcx-card__gift { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gcx-card__what { font-size: 30px; font-size: clamp(20px, 6.5cqi, 46px); font-weight: 800; line-height: 1.02; }
.gcx-card__pill { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 11px; font-size: clamp(9px, 2cqi, 13px); font-weight: 700; }
.gcx-card__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 10px;
  padding-top: 3%;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-size: clamp(9px, 1.9cqi, 13px);
  letter-spacing: 0.06em;
  opacity: 0.92;
}
.gcx-card__foot b { letter-spacing: 0.12em; }

/* Colonne d'action : un panneau clair, comme « Carte prête » (le fond vitrine est sombre sur mobile). */
.gcx-side {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--gc-line-strong);
  border-radius: 26px;
  background: linear-gradient(145deg, var(--gc-surface), var(--gc-soft));
  box-shadow: var(--gc-shadow);
}
.gcx-status { margin: 0; padding: 12px 14px; border-radius: 14px; background: #fff7e6; color: #7a4b00; font-weight: 700; line-height: 1.45; }
.gcx-status[data-tone="stop"] { background: #fff1f3; color: var(--gc-danger); }
.gcx-book.gc-btn { min-height: 54px; font-size: 16px; }
.gcx-hint { margin: -4px 0 0; color: var(--gc-muted); font-size: 13.5px; font-weight: 600; }
.gcx-guarantee.gc-ready__guarantee { margin: 0; }
.gcx-inside { margin: 10px 0 0; color: var(--gc-ink); font-size: 18px; font-weight: 800; }
.gcx-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: gcx; }
.gcx-steps li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 14px 12px 48px;
  border: 1px solid var(--gc-line);
  border-radius: 16px;
  background: var(--gc-surface);
  counter-increment: gcx;
}
.gcx-steps li::before {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-2));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  content: counter(gcx);
}
.gcx-steps strong { color: var(--gc-ink); font-size: 15px; }
.gcx-steps span { color: var(--gc-muted); font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.gcx-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.gcx-links a { color: var(--gc-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Code à saisir (lien sans code ou code mal lu) */
.gcx-find {
  max-width: 560px;
  margin: 40px auto;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--gc-line-strong);
  border-radius: 26px;
  background: linear-gradient(145deg, var(--gc-surface), var(--gc-soft));
  text-align: center;
}
.gcx-find h1 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.gcx-find p { margin: 0 0 16px; color: var(--gc-muted); font-weight: 600; }
.gcx-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gcx-input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 14px;
  background: var(--gc-surface);
  color: var(--gc-ink);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.gcx-find .gcx-error { margin: 12px 0 0; color: var(--gc-danger); font-weight: 700; }
.gcx-find .gcx-find__hint { margin: 16px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.5; }

/* Sous le formulaire : pour les mariés qui ont une carte en main et les proches qui veulent en offrir une.
   N'apparaît qu'avec le formulaire (le bloc .gcx-find le précède et porte hidden sinon). */
.gcx-find[hidden] + .gcx-discover { display: none; }
.gcx-discover {
  max-width: 980px;
  margin: 0 auto 56px;
  padding: 0 16px;
  text-align: center;
}
.gcx-discover .gc-eyebrow { margin: 0 0 6px; }
.gcx-discover h2 { margin: 0 0 14px; color: var(--gc-ink); font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.gcx-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  padding: 6px 14px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 999px;
  background: var(--gc-surface);
  color: var(--gc-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(102, 111, 236, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gcx-rating:hover,
.gcx-rating:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(102, 111, 236, 0.18); }
.gcx-rating__stars { color: #f5a623; letter-spacing: 1px; }
.gcx-discover__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}
.gcx-discover__card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--gc-surface), var(--gc-soft));
  color: var(--gc-ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.gcx-discover__card:hover,
.gcx-discover__card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gc-accent);
  box-shadow: 0 14px 30px rgba(102, 111, 236, 0.16);
}
.gcx-discover__icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-2));
}
.gcx-discover__icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gcx-discover__card strong { font-size: 16px; font-weight: 800; }
.gcx-discover__card > span:not(.gcx-discover__icon):not(.gcx-discover__cta) { color: var(--gc-muted); font-size: 14px; font-weight: 600; line-height: 1.45; }
.gcx-discover__cta { margin-top: 4px; color: var(--gc-accent); font-size: 14px; font-weight: 800; }
.gcx-discover__guarantee { margin: 18px 0 0; color: var(--gc-muted); font-size: 14px; font-weight: 600; }
[data-theme="dark"] .gcx-discover h2,
[data-theme="dark"] .gcx-rating,
[data-theme="dark"] .gcx-discover__card { color: #fff; }
[data-theme="dark"] .gcx-discover__cta { color: #c4b5fd; }
@media (max-width: 760px) {
  .gcx-discover__grid { grid-template-columns: minmax(0, 1fr); }
}

[data-theme="dark"] .gcx-hero { background: linear-gradient(165deg, #2a2145 0%, #231c3f 48%, #1d1835 100%); }
[data-theme="dark"] .gcx-hero h1 { color: #fff; }
[data-theme="dark"] .gcx-lead { color: rgba(249, 243, 255, 0.78); }
[data-theme="dark"] .gcx-message,
[data-theme="dark"] .gcx-links a { color: #c4b5fd; }
[data-theme="dark"] .gcx-status { background: rgba(255, 196, 87, 0.14); color: #ffd88a; }
[data-theme="dark"] .gcx-status[data-tone="stop"] { background: rgba(255, 143, 163, 0.12); color: #ffc2cf; }

@media (max-width: 900px) {
  .gcx-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Parcours d'achat progressif : une décision à la fois. */
html:has(body.gc-purchase-page), body.gc-purchase-page { padding-top: 0; }
.gc-purchase-page .gc-hero {
  width: 100vw;
  margin: 0 0 40px calc(50% - 50vw);
  border-radius: 0;
  padding: 120px 24px 42px;
}
.gc-hero__cta { margin: 12px auto 8px; gap: 20px; }
.gc-purchase-page .gc-hero h1 {
  max-width: 1000px;
  margin: 18px auto 24px;
  line-height: 1.1;
  text-wrap: balance;
}
.gc-purchase-page .gc-hero__sub {
  max-width: 820px;
  margin: 20px auto 0;
  line-height: 1.25;
  text-wrap: balance;
}
.gc-purchase-page .gc-hero__lead {
  max-width: 760px;
  line-height: 1.6;
  text-wrap: balance;
}
.gc-journey { grid-column: 1 / -1; display: flex; gap: 6px; max-width: 640px; width: 100%; margin: 0 auto 0; }
.gc-journey button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-bottom: 2px solid var(--gc-line); background: transparent;
  padding: 14px 6px; font: inherit; font-size: 14px; color: var(--gc-muted); cursor: pointer;
}
.gc-journey button span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--gc-soft); font-size: 12px; }
.gc-journey button[aria-current] { color: var(--gc-accent); border-color: var(--gc-accent); font-weight: 800; }
.gc-journey button[aria-current] span { color: #fff; background: var(--gc-accent); }
.gc-journey button:disabled { cursor: default; opacity: .55; }
.gc-journey button.is-complete { color: var(--gc-accent); }
.gc-journey-panel { display: grid; gap: 20px; min-width: 0; animation: gc-journey-enter .3s ease both; }
.gc-journey-title, .gc-journey-intro { margin: 0; font-size: clamp(23px, 2.5vw, 28px); line-height: 1.2; font-weight: 800; color: var(--gc-ink); }
.gc-journey-copy { margin: -8px 0 0; font-size: 14px; line-height: 1.5; color: var(--gc-muted); }
.gc-journey-panel .gc-field legend { font-size: 16px; margin-bottom: 16px; }
.gc-journey-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.gc-journey-next { width: 100%; justify-content: space-between; }
.gc-order-summary { border: 1px solid var(--gc-line); border-radius: 16px; padding: 18px; background: var(--gc-soft); font-size: 14px; }
.gc-order-summary strong { display: block; font-size: 20px; }
.gc-order-summary p { margin: 10px 0 0; line-height: 1.5; }
.gc-order-summary p:last-child { color: var(--gc-muted); font-size: 12px; }
/* La carte est elle-même le bouton : aucun sélecteur de face à comprendre. */
.gc-flip--interactive {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gc-flip--interactive:focus-visible { outline: 3px solid var(--gc-accent); outline-offset: 7px; }
.gc-preview__turn-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 12px;
  color: var(--gc-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}
.gc-preview__turn-hint svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gc-accent); }
.gc-turn-touch { display: none; }
@media (pointer: coarse) {
  .gc-turn-click { display: none; }
  .gc-turn-touch { display: inline; }
}
.gc-card-styles { border: 0; padding: 18px 0 0; margin: 0; text-align: center; }
.gc-card-styles legend { width: 100%; padding: 0; font-weight: 700; font-size: 14px; }
.gc-swatches { display: flex; gap: 22px; justify-content: center; margin: 6px 0 12px; }
.gc-swatch { position: relative; display: grid; justify-items: center; gap: 8px; cursor: pointer; }
.gc-swatch input { position: absolute; opacity: 0; width: 38px; height: 38px; margin: 0; }
.gc-swatch > span { width: 38px; height: 38px; border-radius: 50%; background: var(--swatch); border: 3px solid var(--gc-surface); box-shadow: 0 0 0 1px var(--gc-line); }
.gc-swatch input:checked + span { box-shadow: 0 0 0 2px var(--gc-accent); }
.gc-swatch input:focus-visible + span { outline: 3px solid var(--gc-accent); outline-offset: 5px; }
.gc-swatch small { color: var(--gc-muted); font-size: 12px; }
.gc-swatch input:checked ~ small { color: var(--gc-accent); font-weight: 800; }
.gc-purchase-page .gc-preview { position: sticky; top: 112px; }
.gc-purchase-page .gc-cats { margin-bottom: 16px; }
.gc-purchase-page .gc-hint--several { display: none; }
@keyframes gc-journey-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .gc-purchase-page .gc-builder { gap: 20px; }
  .gc-purchase-page .gc-journey { order: -3; }
  .gc-purchase-page .gc-preview {
    display: grid; position: static; order: -2; margin: 0; padding: 18px;
    border: 1px solid var(--gc-line); border-radius: 22px; box-shadow: none;
    background: var(--gc-soft); gap: 12px;
  }
  .gc-purchase-page [data-journey-step="1"] .gc-preview { display: none; }
  .gc-purchase-page .gc-preview .gc-flip { width: min(100%, 420px); margin: 0 auto; }
  .gc-purchase-page .gc-faces { justify-content: center; }
  .gc-purchase-page .gc-face { font-size: 13px; padding: 8px 16px; }
  .gc-purchase-page .gc-preview__stage { padding: 0; }
  .gc-purchase-page .gc-card-styles { padding-top: 8px; }
  .gc-purchase-page .gc-card-styles .gc-hint { margin: 0; }
  .gc-purchase-page .gc-form { padding: 24px 20px; }
  .gc-journey button { font-size: 12px; gap: 6px; }
  .gc-purchase-page .gc-hero { padding: 112px 20px 30px; margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .gc-journey-panel { animation: none; } }
.gcx-card[data-card-style="film"] { background: linear-gradient(135deg,#2a1650,#5b3fe0,#b25bd0); }
.gcx-card[data-card-style="photo"] { background: linear-gradient(135deg,#8e2a63,#b04fa0,#6b5cf0); }
.gcx-card[data-card-style="duo"] { background: linear-gradient(135deg,#2f1760,#8b3fd6,#e0569b); }
.gc-personal-extra { border-bottom: 1px solid var(--gc-line); padding-bottom: 14px; }
.gc-personal-extra summary { cursor: pointer; color: var(--gc-ink); font-size: 14px; font-weight: 700; }
.gc-personal-extra summary small { color: var(--gc-muted); font-weight: 400; }
.gc-personal-extra[open] .gc-field { padding-top: 16px; }
.gc-purchase-page .gc-journey { scroll-margin-top: 110px; }
.gc-mobile-preview-link { display: none; }
@media (max-width: 900px) {
  .gc-purchase-page .gc-preview { order: 0; scroll-margin-top: 90px; }
  .gc-mobile-preview-link { display: inline-flex; justify-content: center; }
  .gc-card-styles .gc-mobile-preview-link { margin-top: 18px; }
  .gc-purchase-page .gc-names { grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr); gap: 8px; }
  .gc-purchase-page .gc-names input { min-width: 0; }
}

/* Vérifier la disponibilité avant de créer le cadeau. */
.gc-hero__availability { margin: 10px auto 6px; }
.gc-hero__check-date {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px; padding: 10px 16px; border: 1px solid #25d366;
  border-radius: 999px; background: #f0fff5; color: #116149;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.gc-hero__check-date svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gc-hero__check-date:hover { background: #dff9e8; border-color: #1db954; }
.gc-hero__check-date:focus-visible { outline: 3px solid #128c7e; outline-offset: 4px; }
.gc-hero__check-date-service { font-size: 11px; font-weight: 500; }
[data-theme="dark"] .gc-hero__check-date { background: #123c2e; color: #b9f5cc; border-color: #25d366; }
[data-theme="dark"] .gc-hero__check-date:hover { background: #194d3a; }

/* Garantie compacte : explication au survol, au focus et au toucher. */
.gc-purchase-page .gc-hero__availability { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 26px auto 8px; }
.gc-hero__guarantee { position: relative; display: inline-flex; }
.gc-purchase-page .gc-hero__trust { margin: 0; border: 0; font-family: inherit; cursor: help; }
.gc-hero__trust:focus-visible { outline: 3px solid #5b3fe0; outline-offset: 4px; }
.gc-hero__tooltip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: min(280px, calc(100vw - 48px));
  padding: 12px 16px; border-radius: 12px; background: #2a1650; color: #fff;
  box-shadow: 0 8px 24px rgba(42, 22, 80, .2); font-size: 13px; line-height: 1.5; font-weight: 500;
  visibility: hidden; opacity: 0; transition: opacity .15s ease; z-index: 3;
}
.gc-hero__tooltip::after { position: absolute; left: calc(50% - 5px); bottom: -5px; width: 10px; height: 10px; transform: rotate(45deg); background: #2a1650; content: ''; }
.gc-hero__guarantee:hover .gc-hero__tooltip, .gc-hero__guarantee:focus-within .gc-hero__tooltip { visibility: visible; opacity: 1; }
.gc-purchase-page .gc-hero__check-date { padding: 8px 12px; font-size: 12px; }
@media (max-width: 520px) {
  .gc-hero__tooltip { left: 0; transform: none; }
  .gc-hero__tooltip::after { left: 72px; }
}

/* Logo officiel Meta, pack WhatsApp 2026 : proportions et couleurs conservées.
   Source : https://www.meta.com/brand/resources/whatsapp/whatsapp-brand/ */
.gc-hero__whatsapp { display: block; width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

@media (max-width: 600px) {
  .gc-purchase-page .gc-hero h1 { margin-top: 14px; margin-bottom: 20px; }
  .gc-purchase-page .gc-hero__sub { margin-top: 16px; }
  .gc-purchase-page .gc-hero__lead { max-width: 34ch; }
  .gc-purchase-page .gc-hero__availability { margin-top: 22px; }
}

/* Page des mariés (carte-cadeau-recue.html) : peu de contenu, le pied de page et le bandeau
   d'avis s'arrêtaient avant le bas de l'écran et le fond apparaissait dessous, comme coupé.
   Le contenu prend la hauteur restante : le bas de page touche toujours le bas de l'écran.
   Posé sur html : le haut de page (html et body) a une marge variable (0, 3rem ou 5.4rem selon
   l'écran, styleA01.css), elle est ainsi comprise dans la hauteur de l'écran. */
html:has(main.gcx-page) {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

html:has(main.gcx-page) > body {
    box-sizing: border-box;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
}

html:has(main.gcx-page) > body > main.gcx-page {
    flex: 1 0 auto;
    width: 100%;
}
