/* ==========================================================================
   Matchbook landing page — scoped entirely to .mbl-* classes and its own
   --mb-* tokens, loaded only by matchbook/index.html. Reuses the site's
   base tokens (fonts, buttons, header) from style.css; everything below is
   new and cannot affect any other page.

   Authored MOBILE-FIRST: every rule with no media query IS the mobile
   design. Tablet (min-width:640px) and desktop (min-width:1024px) queries
   only ADD enhancements on top — nothing is designed on desktop and
   scaled down.

   Brand accent is fixed per brief: #962D26, used consistently for CTAs,
   accent text, icons, decorative lines, the benefits strip and highlights.
   ========================================================================== */

@font-face{
  font-family: 'Madelyn';
  src: url('../medias/MATCHBOOK/FRONT/madelyn_regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}

@font-face{
  font-family: 'Arimo';
  src: url('../medias/personalization/Arimo/Arimo-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

.mbl-page{
  --mb-paper: #ffffff;
  --mb-kraft: #e4d2ac;
  --mb-ink: #2b211c;
  --mb-ink-soft: rgba(43,33,28,.62);
  --mb-accent: #962D26;
  --mb-accent-deep: #6e211c;
  --mb-gold: #a8813f;
  --mb-stamp-font: 'Special Elite', 'Poppins', sans-serif;
  background: var(--mb-paper);
  color: var(--mb-ink);
  overflow-x: hidden;
}

/* The shared site header is reused as-is (structure/behavior untouched),
   but its pink brand button is re-tinted to the Matchbook burgundy so the
   very first screen doesn't read as pink. Scoped to body.mbl-page only —
   no other page is affected. */
.mbl-page .site-header{ background: var(--mb-paper); border-bottom-color: rgba(43,33,28,.1); }
.mbl-page .btn-commander{ background: var(--mb-accent); box-shadow: 0 6px 16px rgba(150,45,38,.28); }
.mbl-page .btn-commander:hover{ background: var(--mb-accent-deep); box-shadow: 0 8px 20px rgba(150,45,38,.38); }
.mbl-page .header-call{ color: var(--mb-ink); }
.mbl-page .header-call:hover{ background: rgba(150,45,38,.1); }

.mbl-wrap{ max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---- Shared vocabulary ---- */
.mbl-stamp{
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mb-stamp-font); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mb-accent); border: 1.5px dashed var(--mb-accent);
  padding: 6px 13px 5px; border-radius: 3px;
  margin-bottom: 16px; background: rgba(150,45,38,.05);
}
/* torn-tag variant used in the hero: a clipped corner reads as a small
   ripped kraft-paper tag rather than a plain rectangle */
.mbl-stamp-tag{
  border-style: solid; border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  padding: 7px 20px 6px 13px;
}
.mbl-stamp-tag svg{ width: 12px; height: 12px; flex: 0 0 auto; }

.mbl-page .btn-ticket{
  position: relative;
  background: var(--mb-accent); color: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(150,45,38,.32);
  clip-path: polygon(
    0% 4px, 4px 0%, calc(100% - 4px) 0%, 100% 4px,
    100% calc(50% - 5px), calc(100% - 3px) 50%, 100% calc(50% + 5px),
    100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0% calc(100% - 4px),
    0% calc(50% + 5px), 3px 50%, 0% calc(50% - 5px)
  );
  padding: 17px 30px 17px 24px;
  width: 100%; text-align: center; justify-content: center;
  font-size: .98rem;
}
.mbl-page .btn-ticket:hover{ transform: translateY(-3px); box-shadow: 0 16px 28px rgba(150,45,38,.42); background: var(--mb-accent-deep); }
.mbl-page .btn-ticket-caps{ text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }

.mbl-divider{
  height: 12px;
  background-image: repeating-linear-gradient(115deg, var(--mb-gold) 0 2px, transparent 2px 12px);
  opacity: .5;
}

/* ---- Hero — MOBILE/TABLET BASE (0–1023px): a compact hybrid layout that
   keeps the same relationship as desktop (text beside the product, not
   text buried underneath it). Top row = badge/headline/lead beside a
   SMALL frame (~40–45% of hero width); benefits + CTAs then run full
   width below, since they need more room than the narrow top row has.
   `.mbl-hero-copy` is `display:contents` so its two children become real
   grid items of `.mbl-hero-grid` alongside the visual column. Desktop
   (1024px+) resets all of this back to the original two-column flex
   layout, untouched. ---- */
.mbl-hero{ position: relative; padding: calc(var(--header-h) + 20px) 0 8px; overflow: visible; }
/* the frame (visual) floats via position:absolute rather than sitting in a
   grid row with the text — a real grid row is only as short as its
   SHORTEST column allows it to be, so once the frame or the title image
   grows taller than the other, the CTA row (which spans both) would wait
   for the taller one and leave a dead gap. Floating the frame sidesteps
   that entirely: text flows top-to-bottom at its own natural height, the
   frame floats independently at its own natural height, and the CTAs
   always sit right after the text with no coupling to the frame at all. */
/* min-height is the actual fix for the frame escaping into the next
   section: .mbl-hero-visual is position:absolute, so it never contributes
   to .mbl-hero-grid's own height — the grid's real height comes only from
   the text column's flow content. If that text is short, the grid (and so
   the whole .mbl-hero section) can end well above where the frame's own
   bottom edge actually is, letting the frame visually spill into whatever
   section comes next. 330px comfortably covers the frame's tallest
   possible rendered size in the 640–1023px tablet range specifically
   (max-width 230px, aspect ratio ~1.36, plus its 14px top offset) — this
   only ever adds a floor, never shrinks anything, so longer text still
   grows the section exactly as before. True mobile (below 640px) gets its
   own tighter floor right below, since the frame never renders anywhere
   near that tall at those narrower widths. */
.mbl-hero-grid{ position: relative; min-height: 330px; }
/* Mobile only — tighter floor (max-width:220px frame + 14px offset caps out
   around 313px) so the redstrip benefits strip right after it sits close
   instead of leaving tablet's larger buffer on phones. */
@media (max-width: 639.98px){
  .mbl-hero-grid{ min-height: 318px; }
}
.mbl-hero-copy{ display: contents; }
.mbl-hero-copy-top, .mbl-hero-copy-bottom{ width: calc((100% - 10px) * .95 / 2.05); }

.mbl-hero-visual{ position: absolute; top: 14px; right: 0; width: calc((100% - 10px) * 1.1 / 2.05); display: flex; justify-content: center; padding: 0 2px; z-index: 5; }
.mbl-hero-frame{
  position: relative; width: 100%; max-width: 220px;
}
.mbl-hero-frame img.mbl-frame-base{
  display: block; width: 100%; height: auto;
}

/* ---- Matchbook composite: FRAME DE BASE (static) + a single ELEMENTS
   layer containing the full pre-composed artwork. Position/size below were
   derived by scanning FRAME DE BASE's own pixels for its inner cream
   window (color-sampled at 5 rows + 5 columns to average out the frame's
   slight tilt: left≈8.9%, top≈7.3%, right≈88.1%, bottom≈90.1%), then
   contain-fitting ELEMENTS' real 600×794 aspect ratio inside that window
   so nothing crops or distorts — this is a measured fit, not a guess.
   transform-origin is centered so the POP scale animation grows evenly
   in place and can never shift the alignment. ---- */
.mbl-frame-base{
  position: relative; z-index: 0; transform-origin: 50% 50%;
  opacity: 0; transform: scale(.90);
}
.mbl-frame-elements{
  position: absolute; z-index: 1; width: 79.2%; height: auto;
  top: 10.15%; left: 8.9%; transform-origin: 50% 50%;
  pointer-events: none;
  opacity: 0; transform: scale(.90);
}

/* the pop — FRAME DE BASE and ELEMENTS share the exact same animation,
   duration, delay and easing so they move as one object with zero
   decalage; only runs once .is-revealed lands on the frame (added by JS
   on first intersection). Reduced motion shows the final state instantly. */
.mbl-hero-frame-animated.is-revealed .mbl-frame-base,
.mbl-hero-frame-animated.is-revealed .mbl-frame-elements{
  animation: mblElementsPop 1.8s cubic-bezier(.22,.68,.32,1) forwards;
}
@keyframes mblElementsPop{
  0%{ opacity: 0; transform: scale(.90); }
  30%{ opacity: 1; }
  70%{ transform: scale(1.03); }
  100%{ opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .mbl-frame-base, .mbl-frame-elements{ opacity: 1; transform: scale(1); animation: none !important; }
}

/* Ambient float — mobile only. Runs on the OUTER frame container (not the
   inner base/elements layers, which already own the one-shot pop-in
   above), so the whole composition (frame + baked-in elements + the two
   floating stickers, all its children) drifts together as one rigid
   piece — nothing shifts relative to anything else. Pure transform, so
   layout position and size are untouched; 0%/100% are identical states,
   so the loop has no visible jump. Starts just as the pop-in settles. */
@media (max-width: 1023px){
  .mbl-hero-frame-animated{
    animation: mblHeroFloat 6.5s ease-in-out 1.8s infinite;
  }
}
@keyframes mblHeroFloat{
  0%, 100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-6px) rotate(-.6deg); }
}
@media (prefers-reduced-motion: reduce){
  .mbl-hero-frame-animated{ animation: none !important; }
}
.mbl-sticker{ position: absolute; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(43,33,28,.25)); z-index: 2; }
.mbl-sticker img{ display: block; width: 100%; height: auto; }

/* the two stickers still floating outside the frame — cherries, the
   balloon-dog, etc. are already baked into elements-master.png, so only
   the lipstick (top) and the rose bouquet (right side) remain as separate
   overlays, matching the approved reference exactly. */
.mbl-sticker-lipstick-float{ width: 46px; top: -16px; left: -10px; transform: rotate(-8deg); }
.mbl-sticker-roses-float{ width: 40px; top: 22%; right: -16px; transform: rotate(8deg); }

/* torn red-paper strip with the "All You Need Is Love" patch — sits as a
   normal-flow sibling right after the hero grid (not inside the frame),
   and .mbl-hero itself has zero horizontal padding, so a plain 100%-width
   block already runs edge-to-edge of the viewport. Mobile only. */
.mbl-redstrip-wrap{ position: relative; margin-top: 18px; z-index: 3; }
/* Mobile only — pulled up closer under the hero frame; tablet (640–1023px)
   keeps the wider 18px gap above, untouched. */
@media (max-width: 639.98px){
  .mbl-redstrip-wrap{ margin-top: 4px; }
}
.mbl-redstrip{
  display: block; width: 100%; height: auto;
  pointer-events: none;
}
/* three compact icon+text blocks overlaid directly on the existing torn
   red texture — never a second banner, never their own background. Kept
   inset from the image's own top/bottom edges so text clears the jagged
   torn-paper edges instead of sitting on them. */
.mbl-redstrip-content{
  position: absolute; left: 0; right: 0; top: 14%; bottom: 14%; z-index: 1;
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 6px; pointer-events: none;
}
.mbl-redstrip-item{
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center;
  text-align: center; color: #fff; gap: 1px;
}
.mbl-redstrip-item svg{ width: 15px; height: 15px; flex: 0 0 auto; margin-bottom: 1px; }
.mbl-redstrip-item strong{ display: block; font-size: .58rem; font-weight: 700; line-height: 1.15; }
.mbl-redstrip-item small{ display: block; font-size: .48rem; font-weight: 400; line-height: 1.2; color: rgba(255,255,255,.85); }

.mbl-hero-copy-top{ grid-area: copytop; position: relative; text-align: center; }
.mbl-hero-copy h1{
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 5.8vw, 1.3rem); line-height: 1.16; color: var(--mb-ink);
  margin-bottom: 6px; letter-spacing: -.01em;
}
/* the desktop reference forces an exact 3-line headline break; on the
   much narrower mobile column that same break makes the script-font line
   wrap again on its own, so mobile lets it flow naturally instead */
.mbl-h1-br{ display: none; }
.mbl-hero-copy h1 em{
  display: inline-block; margin-top: 2px;
  font-family: 'Madelyn', var(--font-display); color: var(--mb-accent);
  font-style: normal; font-weight: 400; font-size: 1.3em; line-height: 1;
}
.mbl-hero-lead{ margin: 0; }
.mbl-stamp-tag{ font-size: 9.5px; padding: 5px 14px 4px 10px; margin-bottom: 10px; }
.mbl-stamp-tag svg{ width: 10px; height: 10px; }

/* headline + lead as provided flattened images (real Canva exports) — this
   replaces the live-text versions above (kept, unused, for easy revert).
   Both images carry their own transparent background and are just scaled
   responsively inside the text column via width/max-width. */
.mbl-h1-img{ margin: 0 0 6px; text-align: center; }
.mbl-h1-img img{ display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
.mbl-lead-img{ text-align: center; }
.mbl-lead-img img{ display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; }
/* the combined badge+headline+description image — taller aspect ratio
   than the headline-only image above, so it gets its own smaller cap to
   keep the mobile hero from growing too tall */
.mbl-titles-combined img{ width: 100%; height: auto; max-width: 224px; }
/* fondu — simple one-shot fade-in, no movement/scale/rotation, triggered
   once when the image scrolls into view (see inline script near </body>) */
.mbl-titles-fade{ opacity: 0; }
.mbl-titles-fade.is-revealed{ animation: mblTitlesFadeIn 1.4s ease-out forwards; }
@keyframes mblTitlesFadeIn{ from{ opacity: 0; } to{ opacity: 1; } }
@media (prefers-reduced-motion: reduce){
  .mbl-titles-fade{ opacity: 1; animation: none !important; }
}

.mbl-hero-copy-bottom{ grid-column: 1 / -1; margin-top: 8px; }
/* mobile/tablet base: compact, side-by-side CTAs (never stacked) — now
   that .mbl-hero-copy-bottom spans the full hero width (not just the
   narrow text column), both buttons have enough room to fit their full
   label on one line at a readable size, with the primary button slightly
   wider than the secondary as allowed by the brief. */
.mbl-hero-ctas{ display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 5px; margin-top: 16px; width: 100%; }
.mbl-hero-ctas .btn-ticket{ flex: 1 1 0; min-width: 0; width: auto; height: 44px; padding: 0 6px; font-size: .5rem; gap: 3px; white-space: normal; line-height: 1.15; }
.mbl-hero-ctas .btn-ticket svg{ width: 10px; height: 10px; flex: 0 0 auto; }
.mbl-page .btn-outline-tag{
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  border: 1.5px solid var(--mb-accent); color: var(--mb-accent); background: transparent;
  border-radius: 999px; font-weight: 600; text-align: center;
  flex: 1 1 0; min-width: 0; width: auto; height: 44px; padding: 0 6px; font-size: .5rem; min-height: auto; white-space: normal; line-height: 1.15;
}
.mbl-page .btn-outline-tag svg{ width: 10px; height: 10px; flex: 0 0 auto; }
.mbl-page .btn-outline-tag:hover{ background: rgba(150,45,38,.06); }

/* mobile/tablet base: a real 4-column row, never 2x2 — grid-template-columns
   is hard-set to repeat(4,...) with no wrap allowed. Desktop (1024px+) pins
   its own separate values below, untouched by this. */
.mbl-benefits-mini{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 3px; text-align: center; }
.mbl-benefit-mini{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--mb-ink); min-width: 0; }
.mbl-benefit-mini .mbl-benefit-icon{
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; border: 1.3px solid var(--mb-accent);
  background: none; color: var(--mb-accent); flex: 0 0 auto;
}
.mbl-benefit-mini .mbl-benefit-icon svg{ width: 16px; height: 16px; }
.mbl-benefit-mini strong{ display: block; font-size: .73rem; font-weight: 700; line-height: 1.15; }
.mbl-benefit-mini small{ display: none; }

/* ---- STRIP2 — mobile/tablet-only (0–1023px) benefits strip. The
   ".ALL YOU NEED IS LOVE" heart is already baked into .mbl-redstrip's own
   artwork right above this section, so STRIP2 no longer adds a second
   copy of it or a second torn-edge transition — it sits flush right after
   redstrip's own bottom tear (same accent-red color, so the join reads as
   one continuous strip) and only closes its own bottom edge before the
   white section below. The original .mbl-strip below is hidden here and
   restored at 1024px+, completely untouched. ---- */
.mbl-strip2{ position: relative; background: var(--mb-accent); padding: 22px 0 26px; margin-top: -40px; overflow: visible; }
.mbl-strip2-edge{
  position: absolute; left: 0; width: 100%; height: 22px;
  background-image: url('../medias/MATCHBOOK/sections/strip2-optimized.png');
  background-repeat: no-repeat; background-size: 100% auto;
  pointer-events: none;
}
.mbl-strip2-edge-bottom{ bottom: 0; transform: translateY(97%) scaleY(-1); background-position: center top; }

/* Exact-layout brief: three icon-left/text-right blocks that must always
   stay in ONE row — never stacked, never wrapped into extra rows. Each
   block shrinks (not the row count) to fit the available width. */
.mbl-strip2-track{
  display: flex; align-items: center; justify-content: space-between;
  gap: 4px; padding: 0 4px;
}
.mbl-strip2-item{
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: row; align-items: center; gap: 5px;
  color: #fff;
}
.mbl-strip2-item svg{ width: 16px; height: 16px; flex: 0 0 auto; }
.mbl-strip2-item span{ display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.mbl-strip2-item strong{ display: block; font-size: .58rem; font-weight: 700; line-height: 1.15; }
.mbl-strip2-item small{ display: block; font-size: .52rem; font-weight: 400; line-height: 1.22; color: rgba(255,255,255,.82); }
.mbl-strip2-divider{ flex: 0 0 auto; width: 1px; align-self: stretch; margin: 1px 0; background: rgba(255,255,255,.28); }

/* ---- Benefits strip (desktop only, see below) — a torn-kraft-paper
   texture (real provided asset) "tears" out of the cream page into a
   solid burgundy band underneath, carrying a clean 2x2 icon grid on
   mobile so every line stays readable. ---- */
.mbl-strip{ display: none; position: relative; background: var(--mb-accent); padding: 40px 0 30px; overflow: visible; }
.mbl-strip-tear{
  display: block; width: 100%; height: auto;
  position: absolute; top: 0; left: 0; transform: translateY(-63%);
  pointer-events: none; z-index: 1;
}
.mbl-strip-grid{ position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }
/* the large "All You Need Is Love" sticker overlaps the strip's top-left
   edge, tucked in as a child of the strip so it always paints above it. */
.mbl-strip-love{
  position: absolute; z-index: 4; left: 14px; top: -46px; width: 96px;
  transform: rotate(-7deg); pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(43,33,28,.3));
}
.mbl-strip-love img{ display: block; width: 100%; height: auto; }
.mbl-strip-item{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; color: #fff; }
.mbl-strip-item svg{ width: 28px; height: 28px; flex: 0 0 auto; }
.mbl-strip-item span{ display: flex; flex-direction: column; gap: 4px; }
.mbl-strip-item strong{ font-size: .84rem; font-weight: 700; letter-spacing: .01em; line-height: 1.3; }
.mbl-strip-item small{ font-size: .72rem; font-weight: 400; line-height: 1.4; color: rgba(255,255,255,.8); }

/* ---- Section shell — MOBILE BASE ---- */
.mbl-section{ padding: 44px 0; }

/* Real-photo gallery (js/mbl-real-gallery.js) — CSS multi-column "masonry"
   rather than a uniform grid, specifically so each photo keeps its own
   original aspect ratio (width:100%, height:auto) with zero cropping,
   whatever mix of portrait/landscape/square photos gets dropped into the
   folder. break-inside:avoid keeps a photo from being split across two
   columns. Purely a photo grid — no titles/prices/captions live here. */
.mbl-real-gallery-section{ padding-top: 0; }
.mbl-real-gallery{ columns: 2; column-gap: 10px; }
.mbl-real-gallery-img{
  width: 100%; display: block; margin: 0 0 10px; border-radius: 14px;
  box-shadow: 0 6px 16px rgba(43,33,28,.1); break-inside: avoid;
}
@media (min-width: 640px){
  .mbl-real-gallery{ columns: 3; column-gap: 14px; }
  .mbl-real-gallery-img{ margin-bottom: 14px; border-radius: 16px; }
}
@media (min-width: 1024px){
  .mbl-real-gallery{ columns: 4; column-gap: 18px; }
}

/* Continuous floating motion (js/mbl-real-gallery.js applyFloat) — each
   photo drifts a few px up and back down on an endless loop. transform
   only (translateY), so the image's own box never resizes/repositions in
   the document flow — no layout shift, no horizontal movement. Each
   image's own animation-delay/duration (set inline in JS) staggers them
   out of sync with each other. */
.mbl-real-gallery-img{
  animation: mblGalleryFloat 3.6s ease-in-out infinite;
  will-change: transform;
}
@keyframes mblGalleryFloat{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce){
  .mbl-real-gallery-img{ animation: none; }
}
/* mobile only: the products section follows directly after the hero's own
   red strip now (no separate banner between them), so it needs much less
   top breathing room than the other .mbl-section instances below it —
   scoped to this one section only via its extra .mbl-products-section
   class, and only under 1024px so desktop (72px 0, untouched) never sees it. */
@media (max-width: 1023px){
  .mbl-products-section{ padding-top: 28px; }
}
.mbl-section-head{ margin-bottom: 26px; text-align: center; }
.mbl-section-head h2{
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  color: var(--mb-ink); margin-bottom: 8px;
}
.mbl-section-head p{ color: var(--mb-ink-soft); font-size: .92rem; }
.mbl-section-tint{ background: linear-gradient(180deg, var(--mb-paper), var(--mb-kraft) 160%); }

/* Two decorative stickers flanking the "Nos Matchbooks" heading — scoped
   via the extra .mbl-section-head-products class so this never touches the
   other .mbl-section-head instances elsewhere on the page. Positioned in %
   relative to this heading block itself (which is already what resizes
   and re-aligns per breakpoint — centered on mobile, left-aligned at
   1023px+), not the viewport, so they stay attached to it at every size
   without needing separate per-breakpoint coordinates. Purely decorative:
   pointer-events:none, aria-hidden, kept inside this block's own
   margin-bottom so they never reach the product grid below. */
/* The stock 26px margin-bottom (mobile) / 40px (desktop) below this heading
   isn't enough room to fit a rotated sticker without it touching either
   the text above or the product grid below — extending it here (scoped to
   this one heading only) is the actual fix, not a smaller sticker or a
   tighter, overlap-risking placement. */
.mbl-section-head-products{ position: relative; margin-bottom: 100px; }
.mbl-heading-sticker{
  position: absolute; pointer-events: none; z-index: 1;
  filter: drop-shadow(0 6px 10px rgba(43,33,28,.2));
}
.mbl-heading-sticker-left{
  width: 72px; bottom: -74px; left: 6%; transform: rotate(-9deg);
  animation: mblStickerFloat 8s ease-in-out infinite;
}
.mbl-heading-sticker-right{
  width: 84px; bottom: -92px; right: 6%; transform: rotate(10deg);
  animation: mblStickerSway 7s ease-in-out infinite .4s;
}
@media (prefers-reduced-motion: reduce){
  .mbl-heading-sticker{ animation: none !important; }
}

/* ---- Matchbook products — premium editorial gallery: the PNG floats
   directly on the page background, no card/border/panel/banner. One
   column on mobile so each piece stays large; exactly two columns on
   desktop (1024px+) with generous gutters. ---- */
.mbl-products-grid{ display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 22px 12px; max-width: 480px; margin: 0 auto; }
.mbl-product-item{
  display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0;
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent; border-radius: 8px; transition: transform .15s ease;
}
.mbl-product-item:active{ transform: scale(.97); }
.mbl-product-item:focus-visible{ outline: 2px solid var(--mb-accent); outline-offset: 4px; }
/* Fixed-ratio container for every product thumbnail, so the DISPLAY AREA
   is identical across all Matchbooks regardless of that product's source
   canvas size or however much transparent margin is baked into it.
   object-fit:contain guarantees no stretching/distortion for any current
   or future product image, whatever its own aspect ratio. The remaining
   problem — some source artwork sitting smaller within its own canvas
   than others (extra transparent padding) — can't be fixed by CSS alone
   since object-fit only sees the whole image, not where the real artwork
   sits inside it; js/matchbook-product-scale.js measures that per image
   at runtime and applies a compensating transform: scale() here so the
   visible artwork itself (not just the canvas) ends up the same size on
   screen for every card, automatically, with no per-product config. */
.mbl-product-thumb{ position: relative; display: block; width: 100%; aspect-ratio: 640 / 853; overflow: hidden; margin-bottom: 4px; }
/* Starts invisible — matchbook-product-scale.js fades each thumbnail in
   only once it already has its final corrective transform applied, so a
   slow-loading image is never visible at its raw, uncorrected size (a
   safety-net timeout in that script guarantees this can't leave the
   catalogue permanently blank if measurement ever fails). */
.mbl-product-thumb img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transform-origin: center center; opacity: 0; transition: opacity .25s ease; }
/* Info block below the thumbnail (name/price/CTA) — the thumbnail itself is
   untouched above this; only the typography, price treatment and CTA below
   it are redesigned here, still with zero HTML changes (same three
   elements every product card already has). */
.mbl-product-item h3{
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--mb-ink); margin: 3px 0 5px; letter-spacing: .01em; line-height: 1.25;
}
.mbl-product-price{
  display: inline-block; font-family: 'Arimo', var(--mb-stamp-font); font-size: .68rem; font-weight: 700;
  color: var(--mb-accent-deep); letter-spacing: .03em;
  background: rgba(150,45,38,.08); padding: 3px 11px; border-radius: 100px;
}
/* visual CTA reinforcing that the whole card is tappable — a styled span,
   not a nested real button, so it stays valid inside .mbl-product-item's
   own <button>; the existing click handler on the card already covers it.
   Full-width + gradient + arrow reads as a proper, clickable action rather
   than a small decorative pill. */
.mbl-product-cta{
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  margin-top: 12px; padding: 9px 14px; border-radius: 999px; box-sizing: border-box;
  background: linear-gradient(135deg, var(--mb-accent), var(--mb-accent-deep)); color: #fff;
  font-family: var(--mb-stamp-font); font-size: .64rem; font-weight: 700; letter-spacing: .015em;
  box-shadow: 0 8px 18px rgba(150,45,38,.3);
  transition: box-shadow .2s ease, transform .2s ease;
}
.mbl-product-cta::after{ content: '→'; font-size: .95em; line-height: 1; }
.mbl-product-item:active .mbl-product-cta{ box-shadow: 0 4px 10px rgba(150,45,38,.26); transform: scale(.98); }
@media (hover: hover){
  .mbl-product-item:hover .mbl-product-cta{ box-shadow: 0 10px 22px rgba(150,45,38,.4); transform: translateY(-1px); }
}

/* ---- Matchbook story — the product photo IS the argument, presented like
   a displayed piece (tilted, soft warm glow behind it, two stickers) rather
   than a plain inline image. Mobile stacks visual → label → headline →
   short lead → three compact benefit cards → CTA, all centered; the
   benefit cards replace what used to be a paragraph-per-item bullet list,
   each one now a single line of description, not a sentence to read. ---- */
.mbl-story{ overflow: visible; }
.mbl-story-grid{ display: flex; flex-direction: column; align-items: center; gap: 32px; }

.mbl-story-visual{
  position: relative; width: 100%; max-width: 280px; margin: 0 auto;
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.mbl-story-glow{
  position: absolute; inset: 6% -8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150,45,38,.16), rgba(168,129,63,.09) 62%, transparent 78%);
}
.mbl-story-frame{ position: relative; z-index: 1; }
.mbl-story-photo{
  display: block; width: 100%; height: auto; border-radius: 5px;
  box-shadow: 0 22px 44px rgba(43,33,28,.22), 0 4px 12px rgba(43,33,28,.14);
}
.mbl-story-sticker-a{ width: 48px; top: -18px; left: -18px; transform: rotate(-10deg); animation: mblStickerFloat 8s ease-in-out infinite; }
.mbl-story-sticker-b{ width: 32px; bottom: -12px; right: -12px; transform: rotate(12deg); animation: mblStickerSway 7s ease-in-out infinite .4s; }

/* Animated (GIF) variant — the looping clip is landscape (~1.62:1), so it
   gets a level frame instead of the tilted-photo treatment (rotating a
   moving image reads as broken, not artistic), a wider box to match its
   shape, and an explicit aspect-ratio so the layout doesn't jump while the
   file loads. */
.mbl-story-visual-video{ max-width: 760px; isolation: isolate; }
@media (max-width: 1023.98px){
  .mbl-story-visual-video{ max-width: 680px; margin-left: auto; margin-right: auto; }
}
.mbl-story-visual-video .mbl-story-glow{ inset: 10% -6%; border-radius: 16px; }
.mbl-story-visual-video .mbl-story-frame{ transform: none; }
/* The GIF (like the MP4 before it) has no alpha channel — its background
   is opaque white, confirmed by sampling it directly (alpha=255 at every
   corner). Since it sits directly on this section's own flat white
   background, mix-blend-mode:multiply achieves the same visible result
   without real transparency: white pixels multiply against the white page
   and disappear, leaving only the actual subject visible, while the soft
   glow behind it still shows through faintly. isolation:isolate above
   keeps the blend scoped to this component only, so it can't affect
   unrelated content elsewhere on the page. A boxed card (shadow + rounded
   corners) would fight that effect by implying a solid rectangle behind
   transparent content, so this variant drops both. */
/* object-fit:contain (not cover) and no transform/overflow-clip anywhere —
   the full composition (Matchbook, decorative elements, the white flowers
   and beige text paper on the right) is the actual content, not "subject +
   background" to crop into. An earlier attempt tried to auto-detect the
   "real" subject by treating near-white pixels as empty background and
   zooming into whatever was left — but the white flowers ARE part of the
   composition, not background, so that crop cut off real content. There's
   nothing to measure here: show the whole file, scaled, nothing else. */
.mbl-story-visual-video .mbl-story-photo{
  aspect-ratio: 1530 / 942; object-fit: contain;
  border-radius: 0; box-shadow: none; mix-blend-mode: multiply;
}
.mbl-story-visual-video .mbl-story-sticker-a{ top: -16px; left: -14px; }
.mbl-story-visual-video .mbl-story-sticker-b{ bottom: -14px; right: -10px; }

.mbl-story-copy{ width: 100%; max-width: 460px; text-align: center; }
.mbl-story-copy .mbl-stamp{ margin-bottom: 14px; }
.mbl-story-headline{
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.55rem, 7vw, 2rem);
  line-height: 1.18; color: var(--mb-ink); margin-bottom: 12px;
}
.mbl-story-lead{ color: var(--mb-ink-soft); font-size: .95rem; line-height: 1.55; margin-bottom: 22px; }

.mbl-story-benefits{ display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; text-align: left; }
.mbl-story-benefit{
  display: flex; align-items: flex-start; gap: 13px;
  background: var(--mb-paper); border: 1px solid rgba(43,33,28,.08);
  border-radius: 12px; padding: 13px 15px;
  box-shadow: 0 8px 20px rgba(43,33,28,.06);
}
.mbl-story-benefit-icon{
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(150,45,38,.08); color: var(--mb-accent);
}
.mbl-story-benefit-icon svg{ width: 17px; height: 17px; }
.mbl-story-benefit strong{ display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--mb-ink); margin-bottom: 2px; }
.mbl-story-benefit span{ display: block; font-size: .83rem; line-height: 1.4; color: var(--mb-ink-soft); }

.mbl-story-copy .btn-ticket{ max-width: 320px; margin: 0 auto; }

/* Entrance reveal — same staggered fade-up used elsewhere on this page
   (hero frame/titles), triggered once by IntersectionObserver adding
   .is-visible to the section. --d (set inline per element) staggers each
   child's delay off one shared rule instead of one keyframe per element. */
.mbl-story-in{ opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.mbl-story.is-visible .mbl-story-in{ opacity: 1; transform: translateY(0); }
.mbl-story.is-visible .mbl-story-visual{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .mbl-story-in, .mbl-story-visual{ transition: none !important; opacity: 1 !important; transform: none !important; }
  .mbl-story-sticker-a, .mbl-story-sticker-b{ animation: none !important; }
}

/* ---- Process: ticket stubs, single column on mobile ---- */
.mbl-process{ display: flex; flex-direction: column; gap: 26px; max-width: 340px; margin: 0 auto; }
.mbl-step{ text-align: center; }
.mbl-step-num{
  font-family: var(--mb-stamp-font); font-size: .8rem; letter-spacing: .05em;
  color: var(--mb-accent); margin-bottom: 8px;
}
.mbl-step h3{ font-family: var(--font-display); font-weight: 600; font-size: .98rem; margin-bottom: 5px; }
.mbl-step p{ font-size: .84rem; color: var(--mb-ink-soft); line-height: 1.5; }

/* ---- Why Matchbook — emotional narrative section ---- */
.mbl-why{ max-width: 480px; margin: 0 auto; text-align: center; }
.mbl-why-lead{
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(1.3rem, 5.5vw, 1.6rem); color: var(--mb-accent); margin-bottom: 18px; line-height: 1.3;
}
.mbl-why p{ font-size: .93rem; line-height: 1.65; color: var(--mb-ink); margin-bottom: 14px; }
.mbl-why-accents{ display: flex; justify-content: center; gap: 18px; margin-top: 22px; opacity: .9; }
.mbl-why-accents img{ width: 46px; height: auto; filter: drop-shadow(0 6px 10px rgba(43,33,28,.15)); }

/* ---- Final CTA ---- */
.mbl-final{
  background: var(--mb-accent);
  background-image: radial-gradient(500px 260px at 20% 15%, rgba(0,0,0,.14), transparent 60%);
  color: #fff; text-align: center; padding: 52px 0;
}
.mbl-final h2{
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(1.5rem, 6vw, 1.9rem); margin-bottom: 10px;
}
.mbl-final p{ color: rgba(255,255,255,.82); font-size: .94rem; margin-bottom: 24px; }
.mbl-final .btn-ticket{ background: var(--mb-ink); box-shadow: 0 14px 30px rgba(0,0,0,.35); max-width: 320px; margin: 0 auto; }
.mbl-final .btn-ticket:hover{ background: #000; }

/* ==========================================================================
   Tablet — min-width 640px
   ========================================================================== */
@media (min-width: 640px){
  .mbl-wrap{ padding: 0 28px; }
  .mbl-hero-copy-top, .mbl-hero-copy-bottom{ width: calc((100% - 30px) * 1.15 / 2.15); }
  .mbl-hero-visual{ width: calc((100% - 30px) * 1 / 2.15); }
  .mbl-hero-frame{ max-width: 230px; }
  .mbl-sticker-lipstick-float{ width: 58px; top: -20px; left: -14px; }
  .mbl-sticker-roses-float{ width: 52px; top: 22%; right: -22px; }
  .mbl-hero-copy h1{ font-size: clamp(1.5rem, 4.6vw, 1.9rem); }
  .mbl-hero-lead{ font-size: .9rem; }
  .mbl-hero-ctas{ flex-direction: row; justify-content: center; }
  .mbl-page .btn-ticket{ width: auto; }
  .mbl-story-visual{ max-width: 340px; }
  .mbl-story-visual-video{ max-width: 960px; }
  .mbl-benefits-mini{ grid-template-columns: repeat(4, 1fr); max-width: none; width: 100%; margin: 0; gap: 12px 20px; }
  .mbl-strip-grid{ grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .mbl-strip-item span{ font-size: .82rem; }
  .mbl-process{ flex-direction: row; max-width: none; }
}

/* ==========================================================================
   Desktop — min-width 1024px
   ========================================================================== */
@media (min-width: 1024px){
  /* reset the mobile/tablet hybrid grid back to the original desktop
     two-column flex layout — .mbl-hero-copy becomes a real flex item
     again (not display:contents), with copy-top/copy-bottom simply
     stacking inside it like plain blocks, exactly as before this fix. */
  .mbl-hero{ padding: calc(var(--header-h) + 46px) 0 80px; }
  .mbl-redstrip-wrap{ display: none; }
  .mbl-hero-grid{ display: flex; flex-direction: row; align-items: center; gap: 40px; text-align: left; min-height: 0; }
  .mbl-hero-copy{ display: flex; flex-direction: column; }
  .mbl-hero-copy-top, .mbl-hero-copy-bottom{ width: auto; }
  .mbl-hero-copy-top{ text-align: left; }
  .mbl-hero-copy-bottom{ margin-top: 0; }
  .mbl-hero-visual{ position: static; order: 2; flex: 0 0 54%; margin: 14px 0 0; padding: 0; justify-content: center; }
  .mbl-hero-frame{ width: 100%; max-width: 520px; }
  /* lipstick floats above the frame's top-left corner, the rose bouquet
     hangs off the right edge at roughly a third of the way down — matching
     the approved reference exactly */
  .mbl-sticker-lipstick-float{ width: 78px; top: -30px; left: -26px; }
  .mbl-sticker-roses-float{ width: 70px; top: 24%; right: -40px; }
  .mbl-h1-img{ margin: 0 0 12px; }
  .mbl-h1-img img{ max-width: 460px; }
  .mbl-lead-img img{ max-width: 400px; }
  .mbl-titles-combined img{ max-width: 380px; }

  .mbl-hero-copy{ order: 1; flex: 0 0 46%; text-align: left; max-width: none; }
  .mbl-hero-lead{ margin: 0 0 8px; max-width: 42ch; }
  .mbl-hero-ctas{ flex-direction: row; justify-content: flex-start; margin-top: 26px; }
  /* pin the hero CTAs back to their original desktop size — the mobile-only
     compact/side-by-side rework above must never affect desktop */
  .mbl-hero-ctas .btn-ticket{ flex: none; padding: 17px 30px 17px 24px; font-size: .98rem; gap: normal; }
  .mbl-hero-ctas .btn-ticket svg{ width: 16px; height: 16px; }
  .mbl-page .btn-outline-tag{ flex: none; width: auto; padding: 15px 26px; font-size: .92rem; min-height: 44px; gap: 8px; }
  .mbl-page .btn-outline-tag svg{ width: 16px; height: 16px; }
  /* spread the 4 items evenly across the full text-column width, each
     centered under its own icon — matches the approved reference exactly */
  .mbl-benefits-mini{ grid-template-columns: repeat(4, 1fr); gap: 10px 18px; margin: 22px 0 0; max-width: none; width: 100%; }
  .mbl-benefit-mini{ flex-direction: column; align-items: center; text-align: center; max-width: none; min-width: 0; }
  .mbl-benefit-mini .mbl-benefit-icon{
    width: 40px; height: 40px; border-radius: 50%;
    border: 1.5px solid var(--mb-accent); background: none;
  }
  .mbl-benefit-mini .mbl-benefit-icon svg{ width: 18px; height: 18px; }
  .mbl-benefit-mini strong{ font-size: .82rem; line-height: 1.25; }
  .mbl-benefit-mini small{ font-size: .72rem; line-height: 1.3; }

  /* STRIP2 is mobile/tablet-only — restore the original strip on desktop */
  .mbl-strip2{ display: none; }
  .mbl-strip{ display: block; }
  .mbl-strip-item{ flex-direction: row; gap: 12px; text-align: left; }
  .mbl-strip-love{ width: 128px; left: 40px; top: -64px; }

  .mbl-section{ padding: 72px 0; }
  .mbl-section-head{ text-align: left; max-width: 620px; margin-bottom: 40px; }
  /* Overrides the generic .mbl-section-head margin-bottom above (same
     specificity, wins on source order) — the bigger desktop stickers need
     more clearance than the standard 40px gives before the product grid. */
  .mbl-section-head-products{ margin-bottom: 148px; }
  .mbl-heading-sticker-left{ width: 92px; top: auto; bottom: -96px; }
  .mbl-heading-sticker-right{ width: 112px; bottom: -136px; }

  .mbl-products-grid{ grid-template-columns: 1fr 1fr; gap: 64px 56px; max-width: 900px; }
  .mbl-product-item h3{ font-size: 1.2rem; }
  .mbl-product-price{ font-size: 1.05rem; }
  .mbl-product-cta{ margin-top: 16px; padding: 11px 22px; font-size: .78rem; }

  .mbl-story-grid{ flex-direction: row; align-items: center; gap: 60px; }
  .mbl-story-visual{ max-width: 440px; flex: 0 0 44%; }
  .mbl-story-copy{ max-width: none; flex: 1 1 auto; text-align: left; }
  /* The GIF variant's native size roughly doubled — a real side-by-side
     split can't fit that width without crushing .mbl-story-copy down to an
     unreadable sliver, so this variant alone stacks instead (full-width
     visual on top, copy below), which is the only way to actually show it
     twice as big without breaking the text column. Scoped with :has() so
     the tilted-photo variant above is untouched. */
  .mbl-story-grid:has(.mbl-story-visual-video){ flex-direction: column; gap: 40px; }
  .mbl-story-visual-video{ max-width: 1080px; flex: none; width: 100%; }
  .mbl-story-grid:has(.mbl-story-visual-video) .mbl-story-copy{ max-width: 640px; text-align: center; }
  .mbl-story-grid:has(.mbl-story-visual-video) .mbl-story-lead{ margin-left: auto; margin-right: auto; }
  .mbl-story-grid:has(.mbl-story-visual-video) .mbl-story-benefits{ margin-left: auto; margin-right: auto; text-align: left; }
  .mbl-story-grid:has(.mbl-story-visual-video) .btn-ticket{ margin: 0 auto; }
  .mbl-story-headline{ font-size: clamp(2.1rem, 3vw, 2.6rem); }
  .mbl-story-lead{ font-size: 1.02rem; max-width: 440px; }
  .mbl-story-benefits{ max-width: 460px; }
  .mbl-story-copy .btn-ticket{ margin: 0; }

  .mbl-process{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
  .mbl-process::before{
    content: ''; position: absolute; top: 8px; left: 6%; right: 6%; height: 0;
    border-top: 2px dashed var(--mb-gold); opacity: .6; z-index: 0;
  }
  .mbl-step{ position: relative; z-index: 1; }

  .mbl-final{ padding: 84px 0; }
  .mbl-final .btn-ticket{ display: inline-flex; width: auto; }
}

/* ==========================================================================
   MATCHBOOK PRODUCT CUSTOMIZATION PAGE — opens on top of the landing page
   when a product card is tapped. Config-driven (see
   js/matchbook-customizer.js): the same markup below is populated
   differently per product, so adding a new Matchbook model only means
   adding one config entry — no HTML/CSS changes needed.

   Visual structure follows the supplied reference image as closely as
   possible: clean white header, numbered step cards on the left, a large
   untouched product preview on the right, a sticky order/CTA bar, and a
   reassurance strip at the bottom. Colors reuse the site's own --mb-accent
   burgundy rather than introducing a separate palette. Mobile (the base,
   unprefixed rules) reorders to preview → disclaimer → cards, per the
   brief's explicit mobile hierarchy; desktop (1024px+) becomes the true
   two-column layout shown in the reference. Scoped entirely to
   .mbl-customizer — cannot affect anything else on the site.
   ========================================================================== */
.mbl-customizer{
  position: fixed; inset: 0; z-index: 980;
  background: #fff;
  display: flex; flex-direction: column;
}
.mbl-customizer[hidden]{ display: none; }
.mbl-customizer-panel{ display: flex; flex-direction: column; height: 100%; min-height: 0; }

.mbl-customizer-header{
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid rgba(43,33,28,.08); background: #fff;
}
/* Mobile/tablet only — the header is pinned to the top of the viewport with
   position:fixed so it stays visible and never moves/resizes while the
   customer scrolls .mbl-customizer-body underneath it. Taking it out of the
   panel's flex flow means bodyEl needs a matching padding-top (see the
   mobile override on .mbl-customizer-body further below) so its content
   never starts out hidden behind the fixed header. Desktop (1024px+) keeps
   the header as a normal in-flow flex item, untouched. */
@media (max-width: 1023.98px){
  .mbl-customizer-header{
    position: fixed; top: 0; left: 0; right: 0; z-index: 5;
    padding: 9px 12px;
  }
}
.mbl-customizer-back{
  display: flex; align-items: center; gap: 4px; flex: 0 0 auto;
  background: none; border: none; cursor: pointer; padding: 6px 4px;
  color: var(--mb-ink-soft); font-size: .84rem; font-weight: 600; font-family: inherit;
}
.mbl-customizer-back:hover{ color: var(--mb-ink); }
.mbl-customizer-title{ flex: 1 1 auto; min-width: 0; text-align: center; display: flex; flex-direction: column; gap: 1px; }
.mbl-customizer-title strong{ font-family: var(--font-display); font-weight: 600; font-size: .96rem; color: var(--mb-ink); }
.mbl-customizer-title span{ font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: .9rem; color: var(--mb-accent); }
.mbl-customizer-help{
  display: flex; align-items: center; gap: 5px; flex: 0 0 auto;
  background: none; border: none; cursor: pointer; padding: 6px 4px;
  color: var(--mb-ink-soft); font-size: .78rem; font-family: inherit; white-space: nowrap;
}
.mbl-customizer-help:hover{ color: var(--mb-accent); }
/* Mobile header only — drop the help link, fold "Personnalisez votre" + the
   dynamic model name onto a single line, and turn Retour into a compact red
   pill. Placed after the base rules above (same selectors) so it wins the
   cascade at equal specificity; desktop (1024px+) is untouched. */
@media (max-width: 1023.98px){
  .mbl-customizer-help{ display: none; }
  .mbl-customizer-title{
    flex-direction: row; align-items: baseline; justify-content: center;
    gap: 4px; white-space: nowrap; overflow: hidden;
  }
  .mbl-customizer-title strong{
    font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mbl-customizer-title .mbl-cust-title-generic{ display: none; }
  .mbl-customizer-title span{
    font-size: .82rem; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis;
  }
  .mbl-customizer-back{
    color: var(--mb-accent); background: rgba(150,45,38,.1); border-radius: 999px;
    padding: 6px 10px 6px 8px;
  }
}

.mbl-customizer-body{ flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 20px 16px 28px; -webkit-overflow-scrolling: touch; }
/* Compensates for the header switching to position:fixed on mobile (see
   above) so content doesn't render underneath it; placed after the base
   rule above so it wins the cascade at equal specificity. */
@media (max-width: 1023.98px){
  .mbl-customizer-body{ padding-top: 68px; }
}

/* ---- Decorative stickers — reused as-is from the existing stickers
   folder. Each one is tucked just outside a card/preview edge (negative
   offsets) rather than over its content, so it can never sit on top of a
   photo slot, input or button; pointer-events:none and a z-index below
   the real content keep them fully inert. Different sticker, position,
   size, rotation and animation timing per spot avoids a rigid/grid feel. ---- */
.mbl-cust-card-decorated{ position: relative; }
.mbl-cust-sticker{ position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(43,33,28,.22)); }
.mbl-cust-sticker-a{ top: -10px; right: -7px; width: 24px; transform: rotate(-12deg); animation: mblStickerSway 7s ease-in-out infinite; }
.mbl-cust-sticker-b{ top: -14px; left: -13px; width: 20px; transform: rotate(9deg); animation: mblStickerFloat 8s ease-in-out infinite .5s; }
.mbl-cust-sticker-c{ top: -24px; left: 0; width: 18px; transform: rotate(-8deg); animation: mblStickerSpin 9s ease-in-out infinite; }
.mbl-cust-sticker-d{ bottom: -26px; right: -6px; width: 16px; transform: rotate(8deg); animation: mblStickerFloat 8.5s ease-in-out infinite .8s; }

@keyframes mblStickerFloat{ 0%,100%{ transform: translateY(0) rotate(var(--r,0deg)); } 50%{ transform: translateY(-6px) rotate(var(--r,0deg)); } }
@keyframes mblStickerSway{ 0%,100%{ transform: translateX(0) rotate(-12deg); } 50%{ transform: translateX(4px) rotate(-6deg); } }
@keyframes mblStickerSpin{ 0%,100%{ transform: rotate(-10deg) scale(1); } 50%{ transform: rotate(4deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce){ .mbl-cust-sticker{ animation: none !important; } }

.mbl-cust-error-banner{
  background: rgba(150,45,38,.07); border: 1.5px solid rgba(150,45,38,.3); color: var(--mb-accent-deep);
  border-radius: 10px; padding: 12px 14px; font-size: .84rem; line-height: 1.5; margin-bottom: 18px;
}
.mbl-cust-error-banner strong{ font-size: .9rem; }

/* Shown briefly in the customizer body while a product's config.json
   (name/price/photo slots/fields) is being fetched. */
.mbl-cust-loading{
  padding: 60px 20px; text-align: center; color: var(--mb-ink-soft, #7a6f68);
  font-family: var(--mb-body-font, inherit); font-size: .95rem;
}

/* ---- Two-column grid — named areas let the visual order differ from the
   source order without touching the DOM: mobile stacks preview → disclaimer
   → left column; desktop places disclaimer under the preview, cards beside
   it, matching the reference exactly. ---- */
/* Row 1 stays side by side at EVERY width, mobile included — a strict
   requirement, not just a desktop nicety. Each card shrinks its own
   padding/photo-grid/fields to fit two columns even at a 375px viewport
   rather than ever dropping to one column (see the mobile-only compaction
   rules further down). For Astra specifically (see
   js/matchbook-customizer.js), the left column stacks photos + a compact
   personalization, with the simulation as the right column — so the
   simulation sits right next to the upload grid and the customer sees
   their photos land in it without scrolling further down the page; every
   other product keeps the plain photos | personalization split. */
.mbl-cust-row-top{ display: flex; flex-direction: row; gap: 8px; align-items: flex-start; }
.mbl-cust-row-top > .mbl-cust-card,
.mbl-cust-row-top > .mbl-cust-row-top-left,
.mbl-cust-row-top > .mbl-cust-row-top-right{ flex: 1 1 0; min-width: 0; }
.mbl-cust-row-top-left,
.mbl-cust-row-top-right{ display: flex; flex-direction: column; gap: 8px; }
/* "2. Personnalisation" shrunk as much as legibility allows, since it now
   sits under the photo grid rather than taking a full half-width column. */
.mbl-cust-card-compact{ padding: 10px; }
.mbl-cust-card-compact .mbl-cust-card-head{ margin-bottom: 2px; }
.mbl-cust-card-compact .mbl-cust-card-head h3{ font-size: .8rem; }
.mbl-cust-card-compact .mbl-cust-card-head svg{ width: 15px; height: 15px; }
.mbl-cust-card-compact .mbl-cust-fields{ gap: 7px; }
.mbl-cust-card-compact .mbl-cust-field label{ font-size: .64rem; margin-bottom: 3px; }
.mbl-cust-card-compact .mbl-cust-field input,
.mbl-cust-card-compact .mbl-cust-field textarea{ padding: 6px 8px; font-size: .72rem; border-radius: 7px; }
.mbl-cust-card-compact .mbl-cust-field textarea{ min-height: 38px; }
.mbl-cust-card-compact .mbl-cust-field input[type="date"]{ padding-right: 26px; }
.mbl-cust-card-compact .mbl-cust-field-icon{ width: 13px; height: 13px; right: 8px; bottom: 8px; }
.mbl-cust-disclaimer{
  display: flex; align-items: flex-start; gap: 8px; margin-top: 18px;
  background: rgba(150,45,38,.05); border: 1px solid rgba(150,45,38,.2); border-radius: 10px; padding: 12px 14px;
}
.mbl-cust-disclaimer svg{ width: 16px; height: 16px; flex: 0 0 auto; color: var(--mb-accent); margin-top: 1px; }
.mbl-cust-disclaimer p{ margin: 0; font-size: .82rem; line-height: 1.45; color: var(--mb-accent-deep); }

/* ---- Numbered step cards ---- */
.mbl-cust-card{ background: #fff; border: 1px solid rgba(43,33,28,.08); border-radius: 16px; padding: 18px; box-shadow: 0 2px 10px rgba(43,33,28,.05); }
.mbl-cust-card-head{ display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.mbl-cust-card-head svg{ width: 19px; height: 19px; color: var(--mb-accent); flex: 0 0 auto; }
.mbl-cust-card-head h3{ font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--mb-ink); }
.mbl-cust-card-subrow{ display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 14px; }
.mbl-cust-card-sub{ font-size: .82rem; color: var(--mb-ink-soft); margin: 0; }
.mbl-cust-photo-progress{ font-family: var(--mb-stamp-font); font-size: .74rem; font-weight: 700; color: var(--mb-accent); flex: 0 0 auto; }

/* ---- Photo grid — 4 columns at every breakpoint, matching the reference's
   "1 2 3 4 / 5 6 7 8" layout literally. Numbered badge top-left, remove
   control top-right, so neither ever collides with the other. ---- */
.mbl-cust-photo-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.mbl-cust-photo-slot{ position: relative; aspect-ratio: 1; }
.mbl-cust-photo-input{ position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.mbl-cust-photo-label{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed rgba(150,45,38,.35); border-radius: 12px; background: rgba(150,45,38,.035);
  cursor: pointer; overflow: hidden;
}
.mbl-cust-photo-icon svg{ width: 20px; height: 20px; color: rgba(150,45,38,.45); }
.mbl-cust-photo-slot.is-filled img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mbl-cust-photo-slot.is-filled .mbl-cust-photo-label{ border-style: solid; border-color: #fff; box-shadow: 0 3px 10px rgba(43,33,28,.2); }
.mbl-cust-photo-badge{
  position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; z-index: 2;
  background: var(--mb-accent); color: #fff; font-family: var(--mb-stamp-font); font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.mbl-cust-photo-remove{
  position: absolute; top: 4px; right: 4px; width: 19px; height: 19px; border-radius: 50%; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff; border: none; display: flex; align-items: center; justify-content: center;
  font-size: .74rem; line-height: 1; cursor: pointer;
}
.mbl-cust-photo-slot.has-error .mbl-cust-photo-label{ border-color: var(--mb-accent); background: rgba(150,45,38,.1); }

/* upload-in-progress / failed states — the photo isn't "in the order" yet
   in either case, so both stay visually distinct from a confirmed upload. */
.mbl-cust-photo-slot.is-uploading .mbl-cust-photo-label{ opacity: .55; }
.mbl-cust-photo-spinner{
  position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; z-index: 2;
  border: 2px solid rgba(255,255,255,.6); border-top-color: var(--mb-accent); border-radius: 50%;
  animation: mblPhotoSpin .7s linear infinite;
}
@keyframes mblPhotoSpin{ to{ transform: rotate(360deg); } }
.mbl-cust-photo-slot.has-error .mbl-cust-photo-label{ opacity: .7; }
.mbl-cust-photo-error-badge{
  position: absolute; bottom: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; z-index: 2;
  background: var(--mb-accent); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.mbl-cust-preview-thumb.is-uploading{ opacity: .55; }
@media (prefers-reduced-motion: reduce){ .mbl-cust-photo-spinner{ animation-duration: 1.4s; } }

.mbl-cust-replace-btn{
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: rgba(150,45,38,.05); border: 1.5px solid rgba(150,45,38,.32); color: var(--mb-accent);
  border-radius: 12px; padding: 12px; font-size: .86rem; font-weight: 600; font-family: inherit; cursor: pointer;
}
.mbl-cust-replace-btn svg{ width: 16px; height: 16px; }
.mbl-cust-replace-btn:hover{ background: rgba(150,45,38,.09); }
.mbl-cust-replace-btn:active{ transform: scale(.98); }

/* ---- Aurora-only: slot 3 (the big central photo) in the live Simulation stage — once
   uploaded, the customer's own photo is blurred (kept private until our team processes it) and
   the "Détourage par notre équipe" explanation overlays it directly, semi-transparent so the
   blurred photo stays faintly visible behind the card. The upload grid on the left is completely
   normal for every slot including 3 (see renderStep1Body — no Aurora-specific markup there at
   all anymore); this overlay only ever renders inside #mblCustSimulationStage, built by
   renderPhotoSimulation/auroraMainPhotoOverlayHtml in js/matchbook-customizer.js. Additive: no
   other Matchbook model, and no other Aurora slot, ever renders these classes. ---- */
.mbl-cust-aurora-main-blur{ filter: blur(9px); }
/* UI FIX — fixed (not %-of-width) padding/sizing throughout: percentage padding on an absolutely
   positioned box resolves against the containing block's WIDTH on every side (top/bottom
   included), which is exactly why the old version (padding: 16% 8% 6%) read as "too tall" on
   slot 3's narrow-but-tall box — a top padding meant to clear the number badge instead grew with
   width, not height. Fixed px avoids that entirely and guarantees the card never exceeds the
   slot regardless of aspect ratio. */
.mbl-cust-aurora-main-overlay{
  position: absolute; pointer-events: none; box-sizing: border-box; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 15px 5px 5px; border-radius: 8px;
  /* UI FIX — was rgba(...,.85): nearly opaque, so the blurred customer photo directly underneath
     (same stacking context, see renderPhotoSimulation) was effectively invisible — the slot read
     as "just a card", exactly the bug reported. Lower alpha keeps the card readable while the
     blurred photo shows clearly through it, on top of the border the inset above (see
     overlayInset in js/matchbook-customizer.js) already leaves fully uncovered. */
  background: rgba(255,250,246,.55); border: 1px solid rgba(150,45,38,.22);
  backdrop-filter: blur(1px);
}
.mbl-cust-aurora-main-overlay-num{
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%; z-index: 2;
  background: var(--mb-accent); color: #fff; font-family: var(--mb-stamp-font); font-size: .58rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.mbl-cust-aurora-main-overlay-card{ display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; min-width: 0; }
.mbl-cust-aurora-main-overlay-title{
  font-family: var(--font-display); font-weight: 700; font-size: .44rem; color: var(--mb-ink); line-height: 1.2;
  max-width: 100%; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto;
}
.mbl-cust-aurora-main-overlay-desc{
  font-size: .37rem; line-height: 1.2; color: var(--mb-ink-soft); margin: 2px 0 0; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-wrap: break-word; overflow-wrap: break-word;
}
.mbl-cust-aurora-main-overlay-small{ font-size: .32rem; font-style: italic; color: var(--mb-ink-soft); opacity: .85; margin-top: 1px; }

/* ---- Personalization + customer fields — short paired "name" fields sit
   two-up, everything else (initials, dates, textareas, single fields)
   spans the full card width, matching the reference exactly. ---- */
.mbl-cust-fields{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mbl-cust-field{ min-width: 0; position: relative; }
.mbl-cust-field-full{ grid-column: 1 / -1; }
.mbl-cust-field label{ display: block; font-size: .78rem; color: var(--mb-ink-soft); margin-bottom: 6px; }
.mbl-cust-field input, .mbl-cust-field textarea{
  width: 100%; border: 1.5px solid rgba(43,33,28,.14); border-radius: 10px; padding: 11px 13px;
  font-family: inherit; font-size: .92rem; color: var(--mb-ink); background: #fff;
}
.mbl-cust-field input[type="date"]{ padding-right: 38px; }
.mbl-cust-field textarea{ resize: vertical; min-height: 64px; }
.mbl-cust-field input:focus, .mbl-cust-field textarea:focus{ outline: none; border-color: var(--mb-accent); box-shadow: 0 0 0 3px rgba(150,45,38,.1); }
.mbl-cust-field.has-error input, .mbl-cust-field.has-error textarea{ border-color: var(--mb-accent); background: rgba(150,45,38,.05); }
.mbl-cust-field-icon{ position: absolute; right: 13px; bottom: 12px; width: 17px; height: 17px; color: var(--mb-ink-soft); pointer-events: none; }

/* ---- Récapitulatif ---- */
.mbl-cust-recap{ display: flex; flex-direction: column; gap: 10px; }
.mbl-cust-recap-row{ display: flex; align-items: center; justify-content: space-between; font-size: .88rem; }
.mbl-cust-recap-row span{ color: var(--mb-ink-soft); }
.mbl-cust-recap-row strong{ color: var(--mb-ink); font-weight: 600; }
.mbl-cust-recap-divider{ height: 1px; background: rgba(43,33,28,.1); margin: 2px 0; }
.mbl-cust-recap-total strong{ color: var(--mb-accent); font-size: 1.15rem; font-weight: 700; }

/* ---- Frame color + size — single-select pill buttons for color, single-
   select cards for size (each showing its own price, so the price link is
   visible at the point of choice, not just in the recap/footer). Reuses
   the same border/radius/color vocabulary as the text fields around it. ---- */
.mbl-cust-frame-group{ margin-bottom: 10px; text-align: center; }
.mbl-cust-frame-group:last-child{ margin-bottom: 0; }
.mbl-cust-frame-group-label{ display: block; font-size: .7rem; color: var(--mb-ink-soft); margin-bottom: 6px; }
.mbl-cust-frame-group-label em{ font-style: normal; color: var(--mb-accent); }
.mbl-cust-frame-colors{ display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mbl-cust-frame-color{
  display: flex; align-items: center; gap: 5px;
  border: 1.5px solid rgba(43,33,28,.14); border-radius: 999px; background: #fff;
  padding: 5px 11px 5px 7px; font: inherit; font-size: .7rem; color: var(--mb-ink);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.mbl-cust-frame-color-dot{ width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(43,33,28,.22); flex: 0 0 auto; }
.mbl-cust-frame-color.is-selected{ border-color: var(--mb-accent); background: rgba(150,45,38,.06); font-weight: 600; }
.mbl-cust-frame-sizes{ display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mbl-cust-frame-size{
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  border: 1.5px solid rgba(43,33,28,.14); border-radius: 10px; background: #fff;
  padding: 7px 9px; font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.mbl-cust-frame-size-label{ font-size: .72rem; color: var(--mb-ink); font-weight: 600; }
.mbl-cust-frame-size-price{ font-size: .66rem; color: var(--mb-accent); font-weight: 700; }
.mbl-cust-frame-size.is-selected{ border-color: var(--mb-accent); background: rgba(150,45,38,.06); }
.mbl-cust-frame-delivery{ display: block; text-align: center; font-size: .66rem; color: var(--mb-accent); font-weight: 600; margin-top: 8px; }

/* Privacy notice under the Vos coordonnées fields — same quiet caption treatment as
   .mbl-cust-cod ("Paiement à la livraison") elsewhere in this customizer, just left-aligned
   under a form instead of centered under a button. */
.mbl-cust-privacy-note{ font-size: .68rem; line-height: 1.4; color: var(--mb-ink-soft); margin: 10px 0 0; }

/* ---- Large product preview (right column) — the real, unmodified
   product artwork, large and sharp, with only a drop shadow; the live
   personalization caption sits underneath rather than over the image
   itself, so "the original composition must remain fixed" always holds. ---- */
.mbl-cust-preview-title{ font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--mb-ink); margin-bottom: 3px; }
.mbl-cust-preview-sub{ font-size: .85rem; color: var(--mb-ink-soft); margin-bottom: 16px; }
.mbl-cust-preview-stage{ position: relative; max-width: 340px; margin: 0 auto; }
.mbl-cust-preview-base{ display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 30px rgba(43,33,28,.18)); transition: opacity .14s ease; }
/* Aurora-only wrapper (see auroraPhotoNumbersHtml in js/matchbook-customizer.js) — gives
   .mbl-cust-preview-slots a positioning context sized to exactly the image, not the whole
   .mbl-cust-preview-stage (which also contains #mblCustPreviewOverlay's own variable-height
   text below it). Purely a positioning box: no size/spacing of its own, so it has no visual
   effect beyond letting the image inside it size normally. */
.mbl-cust-preview-image-wrap{ position: relative; }

/* Casual-download deterrent (paired with js/matchbook-image-guard.js) —
   blocks native drag-to-save and the mobile long-press "Save Image" menu.
   Not applied site-wide, only to the actual product photos: catalogue
   thumbnails and the customizer's live preview. */
.mbl-product-thumb img,
.mbl-cust-preview-base,
.mbl-cust-simulation-base{
  -webkit-user-drag: none; user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}

/* ---- Astra-only client-photo simulation test (js: renderPhotoSimulation).
   A second, separate stage below the untouched original preview — hidden
   until the first photo is uploaded, then shows that same reference artwork
   with each uploaded photo stacked into its real config.json slot. No
   borders, no numbers, no selection boxes: the customer only ever sees
   their photos sitting naturally in the design, never the mechanism. ---- */
.mbl-cust-simulation{ margin-top: 18px; }
.mbl-cust-simulation-banner{
  text-align: center; margin: 0 auto 8px; max-width: 340px;
  padding: 6px 10px; border-radius: 10px;
  background: rgba(150,45,38,.06); border: 1px solid rgba(150,45,38,.16);
}
.mbl-cust-simulation-banner-title{ display: block; font-family: var(--font-display); font-weight: 600; font-size: .68rem; color: var(--mb-accent); line-height: 1.3; }
.mbl-cust-simulation-banner-sub{ display: block; font-size: .58rem; color: var(--mb-ink-soft); margin-top: 2px; line-height: 1.25; }
.mbl-cust-simulation-stage{ position: relative; max-width: 340px; margin: 0 auto; }
.mbl-cust-simulation-base{ display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 30px rgba(43,33,28,.18)); }
.mbl-cust-simulation-photo{
  position: absolute; object-fit: cover; display: block;
  touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none;
}
.mbl-cust-simulation-photo.is-dragging{ cursor: grabbing; }
/* Astra-only: the two heart-charm slots (see the `shape === 'heart'` branch in
   renderPhotoSimulation, js/matchbook-customizer.js) — clips the customer's photo to the actual
   heart outline instead of the plain circle every other radius:999 slot on every other Matchbook
   model still correctly gets. #mblHeartClip is one shared, hidden SVG <clipPath> injected once
   per page (objectBoundingBox units, so it fits either heart slot's own box automatically). */
.mbl-cust-simulation-photo-heart{ clip-path: url(#mblHeartClip); border-radius: 0; }
/* Guide numbers for not-yet-filled slots — centered on the slot via the
   translate(-50%,-50%) counter-shift, so left/top can just be that slot's
   own center point. Same red-circle/white-number language as the upload
   grid's own .mbl-cust-photo-badge, so "3" reads as the same photo in both
   places, scaled up slightly since these sit further apart on the artwork. */
.mbl-cust-simulation-num{
  position: absolute; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mb-accent); color: #fff;
  font-family: var(--mb-stamp-font); font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3); pointer-events: none;
}

/* Measured photo-well overlay — one box per real region in the artwork,
   positioned in % so it scales exactly with the image at any size. Numbers
   always show (badge), matching the numbers in the upload grid below, so
   the customer can see exactly "photo 3 goes here" before uploading. */
.mbl-cust-preview-slots{ position: absolute; inset: 0; pointer-events: none; }
.mbl-cust-slot{
  position: absolute; overflow: hidden; box-sizing: border-box;
  border: 1.5px dashed rgba(150,45,38,.55); background: rgba(255,255,255,.28);
  transition: border-color .15s ease, background .15s ease;
}
.mbl-cust-slot img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.mbl-cust-slot.is-done, .mbl-cust-slot.is-uploading{ border-style: solid; border-color: rgba(255,255,255,.9); background: rgba(0,0,0,.05); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.mbl-cust-slot.is-uploading img{ opacity: .5; }
.mbl-cust-slot.is-error{ border-color: var(--mb-accent); background: rgba(150,45,38,.15); }
.mbl-cust-slot-num{
  position: absolute; top: 2px; left: 2px; z-index: 1;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--mb-accent); color: #fff; font-family: var(--mb-stamp-font);
  font-size: .48rem; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.mbl-cust-preview-overlay{ text-align: center; padding-top: 14px; transition: opacity .2s ease; }
.mbl-cust-preview-empty-hint{ font-size: .8rem; color: var(--mb-ink-soft); font-style: italic; margin: 0; }
.mbl-cust-preview-thumbs{ display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mbl-cust-preview-thumb{
  width: 34px; height: 34px; border-radius: 6px; overflow: hidden; flex: 0 0 auto;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(43,33,28,.25); animation: mblPreviewPopIn .3s ease;
}
.mbl-cust-preview-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.mbl-cust-preview-name{ font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 1.05rem; color: var(--mb-accent-deep); }
.mbl-cust-preview-meta{ font-size: .74rem; color: var(--mb-ink-soft); margin-top: 4px; }
.mbl-cust-preview-phrase{ font-family: var(--font-display); font-style: italic; font-size: .86rem; color: var(--mb-ink); margin-top: 6px; }
.mbl-cust-preview-song{ font-size: .74rem; color: var(--mb-ink-soft); margin-top: 4px; }
.mbl-cust-preview-cities{ font-size: .74rem; color: var(--mb-ink-soft); margin-top: 4px; }
.mbl-cust-preview-message{ font-size: .74rem; color: var(--mb-ink-soft); margin-top: 4px; }
@keyframes mblPreviewPopIn{ from{ opacity: 0; transform: scale(.8); } to{ opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce){ .mbl-cust-preview-thumb{ animation: none; } }

/* ---- Order bar — during customization this stays empty (the Total/CTA
   card now renders inline in bodyEl, see below) so it takes up no space and
   never sits pinned over the page; it's only populated again for the
   post-order "Ouvrir WhatsApp" button, where it's still meant to read as a
   persistently visible footer. :empty collapses its own padding/border/
   background so an empty footer is fully invisible rather than showing as a
   bare strip. ---- */
.mbl-customizer-footer{
  flex: 0 0 auto; max-height: 60vh; overflow-y: auto;
  padding: 12px 14px 14px; border-top: 1px solid rgba(43,33,28,.08); background: #f7f4f0;
}
.mbl-customizer-footer:empty{ padding: 0; border-top: none; background: none; }
/* "④ Format & Couleur" renders inline in bodyEl now (normal document flow,
   scrolls with the rest of the steps) — this card's own look (white
   background, rounded corners, shadow) is unchanged from when it lived in
   the fixed footer, just the container it sits in moved. */
.mbl-cust-footer-frame{ background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(43,33,28,.05); }
.mbl-cust-footer-frame-head{ margin-bottom: 6px; justify-content: center; }
.mbl-cust-footer-frame-head h3{ font-size: .82rem; }
.mbl-cust-footer-frame-head svg{ width: 14px; height: 14px; }
/* Total/checkout — a visually distinct floating card (rounded corners,
   shadow, a small drag-handle bar) sitting over the footer's own tinted
   backdrop, clearly separate from Format & Couleur above it rather than
   flowing together as one long block: handle + summary line + primary CTA +
   the WhatsApp info block + cod note. The price confirms the choice already
   made just above, it doesn't need to shout it — a small uppercase label +
   a modestly-sized accent-colored number reads as "premium receipt line",
   not a billboard. */
.mbl-cust-checkout-card{
  background: #fff; border-radius: 16px; padding: 8px 14px 10px;
  box-shadow: 0 -2px 16px rgba(43,33,28,.08), 0 1px 3px rgba(43,33,28,.06);
}
.mbl-cust-checkout-handle{ width: 34px; height: 4px; border-radius: 999px; background: rgba(43,33,28,.14); margin: 0 auto 6px; }
.mbl-customizer-summary{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.mbl-customizer-summary span{ font-size: .7rem; letter-spacing: .02em; color: var(--mb-ink-soft); }
.mbl-customizer-summary strong{ font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--mb-accent); }
.mbl-cust-checkout-actions{ display: flex; align-items: stretch; gap: 8px; }
.mbl-cust-cta.btn-ticket{ flex: 1 1 auto; width: auto; height: 44px; font-size: .82rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
/* Information block under the primary CTA — replaces the old icon-only WhatsApp square button
   (same underlying link/action, see buildQuickWhatsAppUrl in js/matchbook-customizer.js) with a
   full "need help before ordering?" card. Reuses the site's own WhatsApp green exactly as the
   footer's own WhatsApp link already does (.footer-link-icon--whatsapp in css/style.css: a light
   #dcf8e8 fill behind the solid #25D366 brand green) — not a new palette. No form validation
   gates this — it opens immediately regardless of form state, same as the button it replaces. */
.mbl-cust-whatsapp-info{
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px; padding: 12px 14px;
  border-radius: 14px; background: #dcf8e8;
  text-decoration: none; transition: background .15s ease;
}
.mbl-cust-whatsapp-info:hover{ background: #cdf3de; }
.mbl-cust-whatsapp-info-icon{
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%; background: #25D366;
}
.mbl-cust-whatsapp-info-icon svg{ width: 20px; height: 20px; fill: #fff; }
.mbl-cust-whatsapp-info-text{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mbl-cust-whatsapp-info-text strong{
  font-family: var(--font-display); font-weight: 700; font-size: .84rem; line-height: 1.3;
  color: #167a45;
}
.mbl-cust-whatsapp-info-text span{ font-size: .76rem; line-height: 1.35; color: var(--mb-ink-soft); }

.mbl-cust-cod{ text-align: center; font-size: .58rem; color: var(--mb-ink-soft); margin: 6px 0 0; }

/* ---- Reassurance strip (bottom of page) ---- */
.mbl-cust-reassurance{ display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; padding: 16px 12px; border-radius: 14px; background: rgba(150,45,38,.045); }
.mbl-cust-reassurance-item{ flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }

/* ==========================================================================
   Size-comparison popup — opens when the customer picks a frame size
   (js/matchbook-customizer.js openSizeCompare). Appended to document.body
   (not inside .mbl-customizer) so it always sits on top of it; scoped
   entirely to .mbl-size-compare*, cannot affect anything else. Each card's
   photo is one fixed, real product photo per size (medias/MATCHBOOK/SIZES/),
   identical across every Matchbook model — no simulation, no per-product
   artwork here. Mobile-first: base rules are the bottom-sheet; the
   min-width:1024px query turns it into a centered modal.
   Transition-driven reveal (not @keyframes): an element going from
   [hidden] to visible in the same JS tick can have its CSS animation
   coalesced away by the browser and stick on frame 0. openSizeCompare sets
   the closed state, forces a reflow, then adds .is-open on the next frame,
   so the transition always has two real committed states to animate
   between. */
.mbl-size-compare{ position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.mbl-size-compare[hidden]{ display: none; }
.mbl-size-compare-backdrop{ position: absolute; inset: 0; background: rgba(255,250,245,.7); backdrop-filter: blur(4px); }
.mbl-size-compare-sheet{
  position: relative; width: 100%; max-height: 88vh; overflow-y: auto;
  background: var(--mb-paper); border-radius: 22px 22px 0 0;
  padding: 10px 20px 22px; box-shadow: 0 -20px 50px rgba(43,33,28,.3);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.mbl-size-compare.is-open .mbl-size-compare-sheet{ transform: translateY(0); }
.mbl-size-compare-handle{ width: 40px; height: 4px; border-radius: 4px; background: rgba(43,33,28,.18); margin: 0 auto 14px; }
.mbl-size-compare-close{
  position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(43,33,28,.06); color: var(--mb-ink); cursor: pointer;
  font-size: .9rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.mbl-size-compare-close:hover{ background: rgba(150,45,38,.12); color: var(--mb-accent); }
.mbl-size-compare-head{ text-align: center; padding: 0 30px 14px; }
.mbl-size-compare-head h2{ font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--mb-ink); margin: 0 0 4px; }
.mbl-size-compare-head p{ font-size: .82rem; color: var(--mb-ink-soft); margin: 0 0 8px; }
.mbl-size-compare-product{ display: inline-block; font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: .88rem; color: var(--mb-accent); }
.mbl-size-compare-options{ display: flex; justify-content: center; align-items: flex-end; gap: 16px; padding: 10px 0 6px; }
.mbl-size-compare-card{
  position: relative; flex: 1 1 0; max-width: 200px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid rgba(43,33,28,.12); border-radius: 16px;
  padding: 14px 12px; cursor: pointer; font-family: inherit; text-align: center;
  box-shadow: 0 6px 16px rgba(43,33,28,.06); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mbl-size-compare-card:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(43,33,28,.1); }
.mbl-size-compare-card.is-selected{ border-color: var(--mb-accent); background: rgba(150,45,38,.05); box-shadow: 0 10px 24px rgba(150,45,38,.18); }
.mbl-size-compare-check{
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mb-accent); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .15s ease; box-shadow: 0 4px 10px rgba(150,45,38,.35);
}
.mbl-size-compare-card.is-selected .mbl-size-compare-check{ opacity: 1; transform: scale(1); }
/* Playful handwritten caption above each frame — fixed per size (not
   dynamic per product), reusing the same script font already loaded for
   the hero's accent word so no new font dependency is introduced. */
.mbl-size-compare-caption{
  display: block; font-family: 'Madelyn', var(--font-display); font-weight: 400;
  font-size: 1.4rem; line-height: 1.1; color: var(--mb-ink); margin-bottom: 2px;
}
.mbl-size-compare-frame{ display: block; background: transparent; }
.mbl-size-compare-frame img{ width: 100%; height: auto; display: block; }
.mbl-size-compare-dim{ font-size: .82rem; font-weight: 700; color: var(--mb-ink); }
.mbl-size-compare-price{ font-size: .8rem; font-weight: 700; color: var(--mb-accent); }
.mbl-size-compare-delivery{ display: block; font-size: .62rem; color: var(--mb-accent); font-weight: 600; margin-top: 3px; line-height: 1.3; }
.mbl-size-compare-confirm.btn-ticket{ width: 100%; margin-top: 16px; }

@media (min-width: 1024px){
  .mbl-size-compare{ align-items: center; }
  .mbl-size-compare-backdrop{ backdrop-filter: blur(5px); }
  .mbl-size-compare-sheet{
    width: auto; min-width: 480px; max-width: 620px; max-height: 82vh;
    border-radius: 22px; padding: 16px 36px 32px;
    opacity: 0; transform: translateY(12px) scale(.98);
    transition: transform .22s ease, opacity .22s ease;
  }
  .mbl-size-compare.is-open .mbl-size-compare-sheet{ opacity: 1; transform: translateY(0) scale(1); }
  .mbl-size-compare-handle{ display: none; }
  .mbl-size-compare-head{ padding: 8px 40px 18px; }
  .mbl-size-compare-head h2{ font-size: 1.4rem; }
  .mbl-size-compare-options{ gap: 28px; padding: 10px 0 8px; }
  .mbl-size-compare-card{ max-width: 220px; padding: 18px 16px; }
  .mbl-size-compare-confirm.btn-ticket{ width: auto; min-width: 260px; margin: 20px auto 0; display: flex; }
}

/* Page-1 WhatsApp lead popup — mandatory, no close/skip control at all (see
   ensureWhatsAppLeadOverlay in js/matchbook-customizer.js) — reuses the .mbl-size-compare
   bottom-sheet shell (backdrop, sheet, handle) as-is; only its own content (phone field) needs
   styling. */
.mbl-wa-lead-sheet .mbl-cust-field{ margin: 4px 0 6px; }
.mbl-wa-lead-sheet .mbl-cust-error-banner{ margin: 0 0 10px; }
/* The Darija message is a full sentence, not a short title — .mbl-size-compare-head h2 (1.2rem,
   font-weight 600) is sized for a 3-4 word title, so this overrides just the size/line-height/
   wrapping for THIS popup's own h2, never touching the shared rule other bottom sheets still use. */
.mbl-wa-lead-text{
  font-size: .92rem !important; line-height: 1.5; font-weight: 600;
  overflow-wrap: break-word; word-break: break-word;
}
@media (min-width: 1024px){
  .mbl-wa-lead-sheet{ min-width: 380px; max-width: 460px; }
  .mbl-wa-lead-text{ font-size: 1rem !important; }
}

/* Aurora-only "photo 3" info popup (see openAuroraPhoto3Popup in js/matchbook-customizer.js) —
   skippable/dismissible, unlike the mandatory WhatsApp-lead sheet above, but reuses the exact
   same .mbl-size-compare shell and the same "full sentence, not a short title" text treatment. */
.mbl-aurora-p3-info-sheet{ text-align: center; padding-top: 26px; }
.mbl-aurora-p3-info-text{
  font-family: var(--font-display); font-weight: 600; font-size: .96rem; line-height: 1.55;
  color: var(--mb-ink); margin: 0 0 18px; overflow-wrap: break-word; word-break: break-word;
}
@media (min-width: 1024px){
  .mbl-aurora-p3-info-sheet{ min-width: 360px; max-width: 440px; }
  .mbl-aurora-p3-info-text{ font-size: 1.05rem; }
}

.mbl-cust-reassurance-item svg{ width: 21px; height: 21px; color: var(--mb-accent); flex: 0 0 auto; }
.mbl-cust-reassurance-item span{ font-size: .68rem; color: var(--mb-ink); line-height: 1.3; }

/* ---- Confirmation screen ---- */
.mbl-cust-confirm{ text-align: center; padding: 40px 8px; }
.mbl-cust-confirm-emoji{ font-size: 2.6rem; margin-bottom: 14px; }
.mbl-cust-confirm h3{ font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--mb-ink); margin-bottom: 6px; }
.mbl-cust-confirm-ref{ font-family: var(--mb-stamp-font); font-size: .8rem; color: var(--mb-accent); margin-bottom: 14px; }
.mbl-cust-confirm p{ font-size: .92rem; color: var(--mb-ink-soft); line-height: 1.6; max-width: 380px; margin: 0 auto 10px; }
.mbl-cust-confirm-note{ font-size: .82rem; color: var(--mb-accent-deep); margin-top: 16px; }
.mbl-cust-confirm-summary{
  display: flex; flex-direction: column; gap: 8px; text-align: left; max-width: 380px;
  background: var(--mb-paper-soft, #fdf3ee); border-radius: 14px; padding: 16px 18px; margin: 16px auto;
}
.mbl-cust-confirm-summary div{ display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }
.mbl-cust-confirm-summary span{ color: var(--mb-ink-soft); }
.mbl-cust-confirm-summary strong{ color: var(--mb-accent-deep); font-family: var(--font-display); }

/* ---- Mobile-only compact pass (0–1023px): the split-view above gives
   the left column roughly half the phone's width instead of nearly all
   of it, so every card/photo/field size tuned for the old full-width
   mobile layout needs to shrink to still fit and stay readable. Scoped to
   its own max-width query (rather than editing the shared base rules) so
   desktop — which never had this query applied — keeps its exact current
   sizing with zero risk of regression. ---- */
@media (max-width: 1023px){
  .mbl-cust-card{ padding: 12px; border-radius: 12px; }
  .mbl-cust-card-head{ gap: 6px; }
  .mbl-cust-card-head svg{ width: 15px; height: 15px; }
  .mbl-cust-card-head h3{ font-size: .78rem; line-height: 1.25; }
  .mbl-cust-card-subrow{ flex-direction: column; align-items: flex-start; gap: 2px; margin: 4px 0 10px; }
  .mbl-cust-card-sub{ font-size: .68rem; }
  .mbl-cust-photo-progress{ font-size: .68rem; }

  .mbl-cust-photo-grid{ gap: 5px; margin-bottom: 10px; }
  .mbl-cust-photo-icon svg{ width: 13px; height: 13px; }
  .mbl-cust-photo-badge, .mbl-cust-photo-remove{ width: 15px; height: 15px; font-size: .5rem; }

  /* MOBILE FIX — Aurora slot 3's simulation overlay only (desktop's own rule above is untouched,
     so nothing changes above 1023px). The reported bug was hyphens:auto inserting a literal "-"
     mid-word ("Photo prin-cipale") on the ~35-40px-wide box real phones actually render slot 3
     at (see js/matchbook-customizer.js's renderPhotoSimulation — confirmed via measurement, not
     assumption). Fix: hyphens off entirely here, sized so "principale ✂️" fits as a whole word on
     its own line — the natural two-line "Photo / principale ✂️" break this now produces needs no
     hyphen at all. overflow-wrap:break-word stays only as a last-resort safety net against a
     literal overflow on some narrower-still device; hyphens:none guarantees it can never add the
     "-" character that caused the original complaint even in that fallback case. */
  .mbl-cust-aurora-main-overlay{ padding: 10px 3px 3px; }
  .mbl-cust-aurora-main-overlay-num{ width: 14px; height: 14px; font-size: .5rem; top: 3px; }
  .mbl-cust-aurora-main-overlay-card{ gap: 1px; }
  .mbl-cust-aurora-main-overlay-title{
    font-size: .34rem; line-height: 1.15;
    hyphens: none; -webkit-hyphens: none; word-break: normal; overflow-wrap: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .mbl-cust-aurora-main-overlay-desc{ font-size: .3rem; line-height: 1.2; -webkit-line-clamp: 3; }
  .mbl-cust-aurora-main-overlay-small{ font-size: .26rem; margin-top: 0; }

  .mbl-cust-replace-btn{ padding: 9px; font-size: .68rem; gap: 5px; }
  .mbl-cust-replace-btn svg{ width: 13px; height: 13px; }

  .mbl-cust-fields{ grid-template-columns: 1fr; gap: 9px; }
  .mbl-cust-field label{ font-size: .66rem; margin-bottom: 4px; }
  .mbl-cust-field input, .mbl-cust-field textarea{ padding: 8px 9px; font-size: .78rem; border-radius: 8px; }
  .mbl-cust-field input[type="date"]{ padding-right: 28px; }

  .mbl-cust-field-icon{ width: 14px; height: 14px; right: 9px; bottom: 9px; }
  .mbl-cust-field textarea{ min-height: 48px; }

  .mbl-cust-recap{ gap: 6px; }
  .mbl-cust-recap-row{ font-size: .72rem; }
  .mbl-cust-recap-total strong{ font-size: .92rem; }

  .mbl-cust-preview-title{ font-size: .82rem; margin-bottom: 2px; }
  .mbl-cust-preview-sub{ font-size: .64rem; margin-bottom: 10px; line-height: 1.3; }
  .mbl-cust-preview-stage{ max-width: 100%; }
  .mbl-cust-simulation-banner{ max-width: 100%; }
  .mbl-cust-simulation-stage{ max-width: 100%; }
  .mbl-cust-preview-name{ font-size: .78rem; }
  .mbl-cust-preview-meta{ font-size: .58rem; }
  .mbl-cust-preview-phrase{ font-size: .66rem; }
  .mbl-cust-preview-song{ font-size: .58rem; }
  .mbl-cust-preview-cities{ font-size: .58rem; }
  .mbl-cust-preview-message{ font-size: .58rem; }
  .mbl-cust-preview-thumb{ width: 22px; height: 22px; }
  .mbl-cust-preview-empty-hint{ font-size: .6rem; }

  .mbl-cust-disclaimer{ padding: 8px 9px; margin-top: 10px; gap: 5px; }
  .mbl-cust-disclaimer svg{ width: 12px; height: 12px; }
  .mbl-cust-disclaimer p{ font-size: .6rem; line-height: 1.3; }
}

@media (min-width: 1024px){
  /* Desktop just widens the row-top gap now there's more room — the
     side-by-side pairing itself already applies at every width (see base
     rules above). */
  .mbl-cust-row-top{ gap: 24px; }
  .mbl-customizer-header{ padding: 18px 40px; }
  .mbl-customizer-body{ padding: 32px 40px 40px; max-width: 1200px; margin: 0 auto; }
  .mbl-customizer-footer{ padding: 16px 40px 18px; }
  .mbl-customizer-footer > *{ max-width: 1200px; margin-left: auto; margin-right: auto; }
  .mbl-cust-footer-frame{ max-width: 420px; }
  .mbl-cust-checkout-card{ max-width: 420px; }
  .mbl-cust-preview-stage{ max-width: 420px; }
  .mbl-cust-simulation-banner{ max-width: 420px; }
  .mbl-cust-simulation-stage{ max-width: 420px; }
}
