/* Cartes cadeaux LZQF — les 4 designs (794 × 559 px = A5 paysage à 96 dpi) et la feuille A4.
   Polices auto-hébergées (OFL). Logos : object-fit: contain, jamais de filtre. */

@font-face { font-family: "LZQF Bowlby One"; src: url("../fonts/bowlby-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "LZQF DM Sans"; src: url("../fonts/dm-sans-latin-wght.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: block; }

.lzqf-c { --titre: "LZQF Bowlby One", "Bowlby One", system-ui, sans-serif; width: 794px; height: 559px; position: relative; overflow: hidden; box-sizing: border-box; font-family: "LZQF DM Sans", "DM Sans", system-ui, sans-serif; font-weight: 400; line-height: normal; letter-spacing: 0; text-align: left; -webkit-font-smoothing: antialiased; }
.lzqf-c *, .lzqf-c *::before, .lzqf-c *::after { box-sizing: border-box; }
.lzqf-c p { margin: 0; }
.lzqf-c img { display: block; max-width: none; object-fit: contain; }
.lzqf-c svg { display: block; }
.lzqf-c__fond { position: absolute; top: 0; left: 0; }
.lzqf-c__lbl { font-weight: 700; letter-spacing: 2px; }
.lzqf-c__val { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lzqf-c__num, .lzqf-c__euro { font-family: var(--titre); font-weight: 400; }
.lzqf-c__trait { display: block; flex: 1; height: 60px; border-bottom: 2px dashed currentColor; opacity: .45; }
.lzqf-c__haut { display: flex; align-items: center; gap: 12px; }
.lzqf-c__sur { font-size: 13px; font-weight: 700; letter-spacing: 3px; }
.lzqf-c__noel { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 2px; }

/* ---------------------------------------------------------------- Terracotta (défaut) */
.lzqf-c--terracotta { background: #9a4527; color: #f6e9d3; }
.lzqf-c--terracotta .lzqf-c__geant { position: absolute; left: 30px; top: 352px; font-family: var(--titre); font-size: 236px; line-height: 1; letter-spacing: -4px; color: #8c3d22; white-space: nowrap; }
.lzqf-c--terracotta .lzqf-c__haut { position: absolute; top: 44px; left: 48px; }
.lzqf-c--terracotta .lzqf-c__noel { padding: 4px 10px; border: 1.5px solid #f6e9d3; border-radius: 999px; }
.lzqf-c--terracotta .lzqf-c__titre { position: absolute; top: 90px; left: 48px; max-width: 470px; font-family: var(--titre); font-size: 34px; line-height: 1.05; color: #f6e9d3; }
.lzqf-c--terracotta .lzqf-c__valeur { position: absolute; top: 222px; left: 48px; display: flex; flex-direction: column; gap: 8px; }
.lzqf-c--terracotta .lzqf-c__valeur .lzqf-c__lbl { font-size: 12px; letter-spacing: 3px; }
.lzqf-c--terracotta .lzqf-c__pastille { width: 330px; height: 112px; border-radius: 56px; background: #f6e9d3; display: flex; align-items: center; justify-content: center; gap: 8px; color: #9a4527; padding: 0 36px; }
.lzqf-c--terracotta .lzqf-c__pastille .lzqf-c__num, .lzqf-c--terracotta .lzqf-c__pastille .lzqf-c__euro { font-size: 72px; line-height: 1; }
.lzqf-c--terracotta .lzqf-c__logo { position: absolute; top: 120px; right: 52px; width: 210px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lzqf-c--terracotta .lzqf-c__tete { width: 150px; height: 150px; }
.lzqf-c--terracotta .lzqf-c__texte { width: 210px; height: 47px; }
.lzqf-c--terracotta .lzqf-c__bas { position: absolute; left: 48px; right: 48px; bottom: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; font-size: 12px; }
.lzqf-c--terracotta .lzqf-c__f { display: flex; flex-direction: column; gap: 4px; }
.lzqf-c--terracotta .lzqf-c__f .lzqf-c__val { height: 22px; border-bottom: 1.5px solid #f6e9d3; font-size: 15px; font-weight: 700; }
.lzqf-c--terracotta .lzqf-c__f--code .lzqf-c__val { letter-spacing: 1px; }
.lzqf-c--terracotta .lzqf-c__site { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; text-align: right; line-height: 1.5; }

/* ---------------------------------------------------------------- Duo crème & espresso */
.lzqf-c--duo { display: flex; background: #2b1710; color: #f3e7d3; }
.lzqf-c--duo .lzqf-c__gauche { width: 300px; flex-shrink: 0; background: #f3e7d3; color: #2b1710; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 40px 30px 34px; }
.lzqf-c--duo .lzqf-c__gauche .lzqf-c__sur { font-size: 12px; }
.lzqf-c--duo .lzqf-c__complet { width: 240px; height: 166px; }
.lzqf-c--duo .lzqf-c__info { font-size: 12px; line-height: 1.6; text-align: center; }
.lzqf-c--duo .lzqf-c__droite { flex: 1; padding: 44px 48px 40px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.lzqf-c--duo .lzqf-c__haut { justify-content: space-between; color: #d6a26a; }
.lzqf-c--duo .lzqf-c__montant { display: flex; align-items: flex-end; gap: 10px; height: 132px; }
.lzqf-c--duo .lzqf-c__num, .lzqf-c--duo .lzqf-c__euro { font-size: 124px; line-height: .9; }
.lzqf-c--duo .lzqf-c__euro { color: #d6a26a; }
.lzqf-c--duo .lzqf-c__filet { height: 1px; background: #5a3a2a; }
.lzqf-c--duo .lzqf-c__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 18px; }
.lzqf-c--duo .lzqf-c__f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lzqf-c--duo .lzqf-c__lbl { font-size: 11px; color: #d6a26a; }
.lzqf-c--duo .lzqf-c__val { height: 26px; border-bottom: 1.5px solid #8a6448; font-size: 17px; font-weight: 500; }
.lzqf-c--duo .lzqf-c__f--code .lzqf-c__val { font-weight: 700; letter-spacing: 1px; }

/* ---------------------------------------------------------------- Rayures zèbre */
.lzqf-c--zebre { background: #1d3a2b; color: #efe3cf; }
.lzqf-c--zebre .lzqf-c__haut { position: absolute; top: 44px; left: 48px; }
.lzqf-c--zebre .lzqf-c__noel { padding: 4px 10px; border-radius: 999px; background: #c4452f; color: #efe3cf; }
.lzqf-c--zebre .lzqf-c__titre { position: absolute; top: 88px; left: 46px; font-family: var(--titre); font-size: 66px; line-height: .95; }
.lzqf-c--zebre .lzqf-c__info { position: absolute; top: 232px; left: 48px; font-size: 15px; line-height: 1.5; }
.lzqf-c--zebre .lzqf-c__logo { position: absolute; left: 48px; bottom: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.lzqf-c--zebre .lzqf-c__tete { width: 104px; height: 104px; }
.lzqf-c--zebre .lzqf-c__texte { width: 210px; height: 47px; object-position: left center; }
.lzqf-c--zebre .lzqf-c__encart { position: absolute; top: 150px; right: 56px; width: 270px; border: 4px solid #1d3a2b; border-radius: 22px; background: #efe3cf; color: #1d3a2b; padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.lzqf-c--zebre .lzqf-c__encart > .lzqf-c__lbl { font-size: 11px; }
.lzqf-c--zebre .lzqf-c__encart > .lzqf-c__lbl:first-child { font-size: 12px; letter-spacing: 3px; }
.lzqf-c--zebre .lzqf-c__montant { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; height: 76px; }
.lzqf-c--zebre .lzqf-c__num, .lzqf-c--zebre .lzqf-c__euro { font-size: 72px; line-height: .95; }
.lzqf-c--zebre .lzqf-c__euro { color: #c4452f; }
.lzqf-c--zebre .lzqf-c__filet { height: 1.5px; background: #1d3a2b; margin-top: 6px; }
.lzqf-c--zebre .lzqf-c__val { height: 24px; border-bottom: 1.5px solid #1d3a2b; font-size: 16px; font-weight: 700; }
.lzqf-c--zebre .lzqf-c__val[data-gc="code"] { letter-spacing: 1px; }
.lzqf-c--zebre .lzqf-c__encart > .lzqf-c__lbl:nth-of-type(3) { margin-top: 4px; }

/* ---------------------------------------------------------------- Grain géant */
.lzqf-c--grain { background: #f4ebdd; color: #3d1c10; }
.lzqf-c--grain .lzqf-c__haut { position: absolute; top: 44px; left: 48px; }
.lzqf-c--grain .lzqf-c__noel { color: #b8372a; }
.lzqf-c--grain .lzqf-c__titre { position: absolute; top: 86px; left: 46px; font-family: var(--titre); font-size: 58px; line-height: .98; }
.lzqf-c--grain .lzqf-c__info { position: absolute; top: 216px; left: 48px; width: 230px; font-size: 14px; line-height: 1.55; }
.lzqf-c--grain .lzqf-c__complet { position: absolute; left: 40px; bottom: 30px; width: 210px; height: 146px; }
.lzqf-c--grain .lzqf-c__encart { position: absolute; top: 230px; left: 300px; width: 320px; border: 2.5px solid #3d1c10; border-radius: 28px; background: #f4ebdd; padding: 20px 26px 22px; display: flex; flex-direction: column; gap: 8px; }
.lzqf-c--grain .lzqf-c__encart > .lzqf-c__lbl { font-size: 12px; letter-spacing: 3px; }
.lzqf-c--grain .lzqf-c__montant { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; height: 74px; }
.lzqf-c--grain .lzqf-c__num, .lzqf-c--grain .lzqf-c__euro { font-size: 72px; line-height: .95; }
.lzqf-c--grain .lzqf-c__euro { color: #b8372a; }
.lzqf-c--grain .lzqf-c__trait { height: 60px; border-bottom-color: #c4a98d; opacity: 1; }
.lzqf-c--grain .lzqf-c__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 6px; }
.lzqf-c--grain .lzqf-c__f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lzqf-c--grain .lzqf-c__f .lzqf-c__lbl { font-size: 10px; letter-spacing: 1.5px; }
.lzqf-c--grain .lzqf-c__val { height: 22px; border-bottom: 1.5px solid #3d1c10; font-size: 14px; font-weight: 700; }
.lzqf-c--grain .lzqf-c__f--code .lzqf-c__val { font-size: 13px; }

/* Carte papier non activée : le montant s'écrit à la main. */
.lzqf-c--vierge .lzqf-c__trait { border-bottom-color: currentColor; }
.lzqf-c--vierge.lzqf-c--terracotta .lzqf-c__trait, .lzqf-c--vierge.lzqf-c--duo .lzqf-c__trait { opacity: .5; }

/* ---------------------------------------------------------------- Feuille A4 (794 × 1123 px) */
.lzqf-a4 { width: 794px; height: 1123px; position: relative; overflow: hidden; background: #fff; color: #2b1710; font-family: "LZQF DM Sans", "DM Sans", system-ui, sans-serif; box-sizing: border-box; }
.lzqf-a4 *, .lzqf-a4 *::before, .lzqf-a4 *::after { box-sizing: border-box; }
.lzqf-a4__carte { width: 794px; height: 559px; }
.lzqf-a4__coupe { display: flex; align-items: center; gap: 10px; padding: 0 30px; height: 30px; color: #8a7a6e; font-size: 11px; }
.lzqf-a4__pointilles { flex: 1; border-top: 1.5px dashed #b5a596; }
.lzqf-a4__mot { padding: 18px 64px 0; height: 340px; }
.lzqf-a4__pour { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: #9a4527; }
.lzqf-a4__texte { margin: 0 0 14px; font-family: "LZQF Bowlby One", "Bowlby One", system-ui, sans-serif; font-size: 27px; line-height: 1.32; color: #2b1710; overflow-wrap: anywhere; }
.lzqf-a4__de { margin: 0; font-size: 15px; color: #5a4a40; }
.lzqf-a4__mode { position: absolute; left: 64px; right: 64px; bottom: 56px; border-top: 1.5px solid #2b1710; padding-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lzqf-a4__mode h3 { margin: 0 0 6px; font-family: "LZQF Bowlby One", "Bowlby One", system-ui, sans-serif; font-weight: 400; font-size: 15px; letter-spacing: .5px; color: #9a4527; }
.lzqf-a4__mode p { margin: 0; font-size: 12.5px; line-height: 1.65; }
.lzqf-a4__qr { position: absolute; right: 0; top: -118px; width: 84px; height: 84px; }
.lzqf-a4__qr svg, .lzqf-a4__qr img { width: 84px; height: 84px; display: block; }
.lzqf-a4[data-design="duo"] .lzqf-a4__pour, .lzqf-a4[data-design="duo"] .lzqf-a4__mode h3 { color: #8a5a2b; }
.lzqf-a4[data-design="zebre"] .lzqf-a4__pour, .lzqf-a4[data-design="zebre"] .lzqf-a4__mode h3 { color: #1d3a2b; }
.lzqf-a4[data-design="grain"] .lzqf-a4__pour, .lzqf-a4[data-design="grain"] .lzqf-a4__mode h3 { color: #b8372a; }

/* ---------------------------------------------------------------- Aperçu à l'échelle */
.lzqf-apercu { position: relative; width: 100%; aspect-ratio: 794 / 559; overflow: hidden; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(43, 23, 16, .45); }
.lzqf-apercu__echelle { position: absolute; top: 0; left: 0; width: 794px; height: 559px; transform-origin: 0 0; transform: scale(var(--lzqf-echelle, .5)); }
.lzqf-apercu__d[hidden] { display: none; }

/* Sources du PDF : rendues hors écran (pas display:none, sinon html2canvas ne peut pas les lire). */
.lzqf-sources { position: fixed; left: -10000px; top: 0; width: 794px; pointer-events: none; }
.lzqf-src__a5, .lzqf-src__a4 { margin-bottom: 20px; }

/* ---------------------------------------------------------------- Impression */
.lzqf-impression { display: none; }
@media print {
	body.lzqf-imprime > *:not(.lzqf-impression) { display: none !important; }
	body.lzqf-imprime { margin: 0 !important; padding: 0 !important; background: #fff !important; }
	body.lzqf-imprime .lzqf-impression { display: block !important; }
	.lzqf-impression .lzqf-c, .lzqf-impression .lzqf-a4 { -webkit-print-color-adjust: exact; print-color-adjust: exact; break-after: page; }
	.lzqf-impression--a5 .lzqf-c { zoom: 1; transform-origin: 0 0; }
}
.lzqf-fond [data-gc] { color: transparent !important; }
