/* Visuel de la carte-cadeau (page d'achat et carte à imprimer).
   Fond : illustration à l'encre (fond-carte.jpg, 2720 × 1568 à l'origine) avec le logo AtCu en bas à droite.
   Les détails sont du vrai texte posé dans l'espace libre de droite; tailles en unités de conteneur (cqw). */
.gc { container-type: inline-size; }
.gc-card {
  position: relative; aspect-ratio: 2720 / 1568; overflow: hidden; color: #1f3b2d;
  background: #faf1e0 url(/cartes-cadeaux/visuel/fond-carte.jpg) center / cover no-repeat;
  border: 1px solid #ddd2b8; box-shadow: 0 22px 44px -30px rgba(31, 59, 45, .55);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.gc-text { position: absolute; left: 57.5%; right: 4%; top: 7.5%; bottom: 29%; display: flex; flex-direction: column; gap: 1.1cqw; min-width: 0; }
.gc-kind { margin: 0; font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 1.45cqw; letter-spacing: .28em; text-transform: uppercase; color: #8a5713; }
.gc-amt { margin: 0; font-family: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif; font-weight: 900; font-size: 7.6cqw; line-height: .9; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.gc-tag { margin: 0; font-size: 1.6cqw; line-height: 1.4; color: #4f5d54; }
.gc-who { margin: .4cqw 0 0; font-size: 1.8cqw; line-height: 1.45; display: flex; flex-wrap: wrap; gap: .2cqw 2cqw; }
.gc-who span span { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 1.15cqw; letter-spacing: .16em; text-transform: uppercase; color: #4f5d54; margin-right: .7cqw; }
.gc-msg {
  margin: .3cqw 0 0; padding-left: 1.2cqw; border-left: .3cqw solid #b8761f;
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.8cqw; line-height: 1.45;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gc-code { position: absolute; left: 57.5%; right: 18.5%; bottom: 10.5%; margin: 0; padding: 1cqw 1.4cqw; border: .15cqw dashed #a89f8a; background: rgba(250, 241, 224, .75); }
.gc-code small { display: block; font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 1cqw; letter-spacing: .12em; text-transform: uppercase; color: #4f5d54; white-space: nowrap; }
.gc-code b { display: block; font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-weight: 500; font-size: 2.1cqw; letter-spacing: .06em; white-space: nowrap; }
.gc-foot { position: absolute; left: 57.5%; right: 18.5%; bottom: 5%; margin: 0; font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: .95cqw; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; color: #4f5d54; }
.gc [hidden] { display: none !important; }

/* Écran étroit : l'illustration en haut (partie gauche), les détails dessous, lisibles. */
@container (max-width: 34rem) {
  .gc-card { aspect-ratio: auto; background: #faf1e0; padding: 0 0 5cqw; }
  .gc-card::before { content: ""; display: block; height: 52cqw; background: url(/cartes-cadeaux/visuel/fond-carte.jpg) 0 38% / 178cqw auto no-repeat; }
  .gc-text, .gc-code, .gc-foot { position: static; }
  .gc-text { padding: 2cqw 6cqw 0; gap: 2.2cqw; }
  .gc-kind { font-size: 3cqw; }
  .gc-amt { font-size: 15cqw; }
  .gc-tag, .gc-who, .gc-msg { font-size: 3.9cqw; }
  .gc-who span span { font-size: 2.7cqw; }
  .gc-msg { border-left-width: .8cqw; padding-left: 3cqw; -webkit-line-clamp: 5; }
  .gc-code { margin: 4cqw 6cqw 0; padding: 2.5cqw 3.5cqw; border-width: .4cqw; }
  .gc-code small { font-size: 2.5cqw; }
  .gc-code b { font-size: 6cqw; }
  .gc-foot { margin: 3cqw 6cqw 0; font-size: 2.4cqw; }
}
