/* ===================== Offre « 2 livres + cadeau لوّن وازرع » ===================== */

/* bandeau en haut de page */
.promo-bar { display: block; text-align: center; text-decoration: none; color: #fff; background: linear-gradient(90deg, #E8327A, #FF7A3D); font-weight: 700; font-size: .95rem; line-height: 1.5; padding: 9px 14px; }
.promo-bar b { font-weight: 800; }
.promo-bar:hover { filter: brightness(1.05); }

/* section promotionnelle */
.offer2 { background: radial-gradient(80% 50% at 50% 0%, #FFE6F1 0%, transparent 70%), linear-gradient(180deg, #FFF8E8, #fff); scroll-margin-top: 62px; }
.offer2-img { display: block; max-width: 980px; margin: 0 auto 18px; }
.offer2-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 22px; box-shadow: var(--shadow); }
.offer2-grid { display: grid; gap: 14px; max-width: 980px; margin: 0 auto 16px; }
.offer2-books { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.offer2-books img { width: 38%; max-width: 170px; border-radius: 10px; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .45); }
.o2-plus { font-family: var(--font-h); font-weight: 800; font-size: 2rem; color: var(--pink); }
.offer2-gift { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); border: 2px dashed #FFC2D6; }
.offer2-gift h3 { font-size: 1.25rem; color: var(--pink); }
.offer2-gift ul { margin: 0 0 8px; padding-inline-start: 20px; }
.offer2-gift li { margin-bottom: 3px; }
.gift-note { margin: 0; font-size: .92rem; color: var(--muted); background: var(--green-soft); border-radius: 12px; padding: 8px 12px; }
.offer2-buy { max-width: 560px; margin: 0 auto; text-align: center; background: #fff; border-radius: 26px; padding: 18px 16px; box-shadow: var(--shadow); }
.offer2-buy .price { justify-content: center; margin-bottom: 8px; }
.offer2-buy .price .num { font-size: 3.4rem; }
.offer2-facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-weight: 700; }

/* formulaire : choix de l'offre */
fieldset.f-pack { background: #FFF9EC; border: 2px solid #FFE08A; border-radius: var(--r); padding: 14px 12px 12px; margin-bottom: 14px; }
.pack-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px 12px; border: 3px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.opt:has(input:focus-visible) { outline: 3px solid var(--purple); outline-offset: 2px; }
.opt-t { font-family: var(--font-h); font-weight: 800; font-size: 1.15rem; }
.opt-p { font-family: var(--font-h); font-weight: 800; font-size: 1.6rem; color: var(--pink); line-height: 1.2; }
.opt-s { font-size: .82rem; font-weight: 700; color: var(--green); line-height: 1.35; }
.opt-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--cta); color: #fff; font-size: .78rem; font-weight: 800; border-radius: 999px; padding: 1px 10px; }
.opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.opt:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; inset-inline-start: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 800; font-size: .85rem; }

/* formulaire : 1er / 2e livre */
.book-label { font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.book2 { margin-top: 12px; padding-top: 12px; border-top: 2px dashed #FFD0E2; }
.book2.invalid .pick, .ed-choice.invalid .pick { border-color: var(--red); }
#extra-books { display: grid; gap: 8px; margin-top: 10px; }
.xbook { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.xbook-t { font-weight: 800; min-width: 74px; }
.seg { position: relative; flex: 1; text-align: center; border: 2px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; font-weight: 700; background: #fff; min-height: 44px; display: grid; place-items: center; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg-girl:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); }
.seg-boy:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.f-edition .qty-line { margin-top: 14px; }
.qty-lbl { font-weight: 800; }
.upsell { display: block; width: 100%; margin: 4px 0 2px; border: 2px dashed var(--cta); background: #FFF0F5; color: var(--ink); border-radius: var(--r-sm); padding: 12px; font: inherit; font-weight: 700; cursor: pointer; text-align: center; min-height: 52px; }
.upsell b { color: var(--pink); }

/* récapitulatif : cadeau */
.s-gift { color: var(--green); font-weight: 800; }
.s-nogift { color: var(--muted); font-weight: 600 !important; font-size: .9rem; }
.gift-box { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border-radius: var(--r-sm); background: var(--green-soft); border: 2px solid #9BE0B1; }
.gift-box img { width: 42%; max-width: 180px; border-radius: 10px; flex: 0 0 auto; }
.gift-box p { margin: 0; font-size: .9rem; color: #145C2E; line-height: 1.6; }

@media (min-width: 900px) {
  .offer2-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .promo-bar { font-size: 1rem; }
}

/* ===================== V4 — cadeau au premier plan ===================== */
.free-badge { position: absolute; z-index: 5; top: -14px; inset-inline-start: 50%; transform: translateX(50%); white-space: nowrap; background: linear-gradient(135deg, #E8327A, #FF7A3D); color: #fff; font-family: var(--font-h); font-weight: 800; font-size: 1rem; border-radius: 999px; padding: 4px 16px; box-shadow: 0 8px 16px -8px rgba(232, 50, 122, .8); animation: pulse-b 2.4s ease-in-out infinite; }
.free-badge.big { font-size: 1.15rem; padding: 6px 20px; }
@keyframes pulse-b { 50% { transform: translateX(50%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .free-badge { animation: none; } }

/* hero : cadeau sous les deux livres */
.hero-gift { position: relative; z-index: 5; max-width: 520px; margin: -36px auto 26px; background: #fff; border-radius: 24px; padding: 18px 10px 10px; box-shadow: var(--shadow); border: 3px solid #FFC2D6; text-align: center; }
.hero-gift img { width: 100%; height: auto; border-radius: 16px; display: block; }
.hg-cap { margin: 8px 0 0; font-weight: 700; }
.hg-cap b { color: var(--pink); }
.hero-offer { background: linear-gradient(135deg, #FFF0F6, #FFF8E6); border: 2px solid #FFC2D6; border-radius: var(--r); padding: 14px; margin-bottom: 14px; }
.ho-t { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.6; }
.ho-t b { color: var(--pink); font-family: var(--font-h); }
.ho-parts { margin: 0 0 12px; padding-inline-start: 20px; font-size: .92rem; color: var(--muted); }

/* section offre : livres et pot à égalité */
.offer2-duo { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; max-width: 980px; margin: 0 auto 18px; }
.o2-card { position: relative; margin: 0; background: #fff; border-radius: 24px; padding: 18px 12px 12px; box-shadow: var(--shadow); text-align: center; }
.o2-gift { border: 3px solid #FFC2D6; }
.o2-pic { height: 250px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.o2-books .o2-pic img { height: 100%; width: auto; border-radius: 10px; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .45); }
.o2-gift .o2-pic img { max-height: 100%; width: 100%; object-fit: contain; border-radius: 14px; }
.o2-card figcaption { margin-top: 8px; font-family: var(--font-h); font-weight: 800; font-size: 1.15rem; }
.o2-card figcaption small { display: block; font-family: var(--font); font-weight: 600; font-size: .85rem; color: var(--muted); }
.offer2-duo .o2-plus { justify-self: center; }
.o2-h3 { font-size: 1.3rem; margin: 18px 0 10px; }
.gift-parts { list-style: none; padding: 0; margin: 0 auto 8px; max-width: 980px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gift-parts li { background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow); text-align: center; font-weight: 700; font-size: .92rem; line-height: 1.5; }
.gift-parts li:first-child { grid-column: 1 / -1; }
.gp-img { display: grid; place-items: center; height: 110px; margin-bottom: 6px; }
.gift-parts li:first-child .gp-img { height: 200px; }
.gp-img { overflow: hidden; }
.gp-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.grow-steps { list-style: none; padding: 0; margin: 0 auto 10px; max-width: 980px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: gs; }
.grow-steps li { position: relative; background: #fff; border-radius: 16px; padding: 10px 4px; text-align: center; font-weight: 800; font-size: .86rem; box-shadow: var(--shadow); }
.grow-steps li:not(:last-child)::after { content: "←"; position: absolute; inset-inline-end: -11px; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--pink); font-weight: 800; font-size: 1.1rem; }
.gs-ic { display: block; font-size: 1.8rem; line-height: 1.3; }
.center-note { max-width: 760px; margin: 0 auto 16px; text-align: center; }

/* aperçus protégés */
.gal-item img, #lb-img, .ed-pages img { -webkit-touch-callout: none; user-select: none; -webkit-user-drag: none; }

@media (min-width: 700px) {
  .gift-parts { grid-template-columns: repeat(5, 1fr); }
  .gift-parts li:first-child { grid-column: auto; }
  .gift-parts li:first-child .gp-img, .gp-img { height: 120px; }
}
@media (min-width: 900px) {
  .offer2-duo { grid-template-columns: 1fr auto 1fr; }
  .o2-pic { height: 300px; }
  .hero-gift { margin-top: -50px; }
}
