/* =============================================================================
 * SwiGift — Design system v2 "Warm Editorial"
 * -----------------------------------------------------------------------------
 * A fresh, original direction (the earlier handoff was only a sketch):
 *   · Display serif Fraunces + UI sans Inter
 *   · Warm ivory paper, ink near-black, terracotta primary, emerald + gold
 *   · Editorial spacing, soft cards, sticky glass header
 *
 * Legacy accent variable names (--coral, --mint, …) are kept as ALIASES mapped
 * to the new palette so template inline styles re-skin automatically.
 * ========================================================================== */

:root {
    /* New palette */
    --ink: #1C1B22;
    --ink-soft: #2A2833;
    --bg: #FBF8F3;
    --surface: #FFFFFF;
    --sand: #F2ECE2;
    --muted: #76727F;
    --line: #E9E2D6;
    --line-strong: #DDD4C5;

    --primary: #E1623D;       /* terracotta */
    --primary-ink: #C24E2E;
    --emerald: #1E7A5E;
    --gold: #E0A33B;
    --berry: #B23A6B;
    --sky: #2F6FB0;

    /* Aliases (legacy names used inline in templates) */
    --navy: var(--ink);
    --navy-deep: #141318;
    --navy-700: #2A2833;
    --navy-600: #3a3744;
    --coral: var(--primary);
    --mint: var(--emerald);
    --yellow: var(--gold);
    --violet: var(--berry);
    --blue: var(--sky);
    --cream: var(--bg);
    --paper: var(--surface);

    /* Shape & type */
    --r-xl: 30px;
    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(28, 27, 34, 0.05);
    --shadow: 0 14px 40px -22px rgba(28, 27, 34, 0.28);
    --shadow-lg: 0 30px 70px -30px rgba(28, 27, 34, 0.40);

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, sans-serif;
    --container: 1320px;
    --head-h: 76px;
}

/* Base ---------------------------------------------------------------------- */
.swigift * { box-sizing: border-box; }
.swigift {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    letter-spacing: -0.01em;
}
.swigift h1, .swigift h2, .swigift h3, .swigift h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.02em;
    margin: 0;
    /* Heading colour is inherited via a custom property so dark sections can flip
       it to white without fighting selector specificity. */
    color: var(--heading-color, var(--ink));
}

/* Dark surfaces: white headings (custom property cascades by inheritance). */
.sg-excl-hero,
.sg-partner-hero,
.sg-success,
.sg-feature-band,
.sg-cta-band,
.sg-preview-panel,
.sg-recap__head,
.sg-footer { --heading-color: #fff; }
.swigift p { margin: 0; }
.swigift img { max-width: 100%; display: block; }
/* Non-button, non-chip links inherit colour; buttons & chips keep their own. */
.swigift a:not(.sg-btn):not(.sg-chip):not(.sg-cat) { color: inherit; }
.swigift a { text-decoration: none; }
.swigift button { font-family: var(--font-body); }
::selection { background: var(--primary); color: #fff; }

.sg-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.sg-muted { color: var(--muted); }
.sg-eyebrow {
    font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary);
    display: inline-flex; align-items: center; gap: 8px;
}
.sg-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; }
.sg-prose { line-height: 1.7; }
.sg-prose p { margin-block: 0.9rem; }
.sg-dot { position: absolute; border-radius: 50%; pointer-events: none; opacity: .9; }
[hidden] { display: none !important; }

/* Header (sticky glass) ----------------------------------------------------- */
.sg-head { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 243, 0.82); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.sg-head.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 248, 243, 0.94); }
.sg-head__bar { max-width: var(--container); margin-inline: auto; height: var(--head-h); padding-inline: clamp(20px, 5vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sg-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: -0.03em; color: var(--ink); }.sg-head__nav { display: flex; gap: 28px; }
.sg-head__nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
.sg-head__nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--primary); transition: width .2s; }
.sg-head__nav a:hover::after, .sg-head__nav a.active::after { width: 100%; }
.sg-head__nav a.active { color: var(--ink); }
/* Grouped nav item with dropdown (Découvrir: À propos / FAQ / Contact) */
.sg-head__group { position: relative; display: flex; align-items: center; }
.sg-head__group > a { display: inline-flex; align-items: center; gap: 5px; }
.sg-head__group > a svg { transition: transform .15s; }
.sg-head__group:hover > a svg, .sg-head__group:focus-within > a svg { transform: rotate(180deg); }
.sg-head__group::after { content: ""; position: absolute; top: 100%; left: -10px; right: -10px; height: 16px; }
.sg-head__drop { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column; min-width: 190px; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.sg-head__group:hover .sg-head__drop, .sg-head__group:focus-within .sg-head__drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sg-head__drop a { padding: 10px 14px; border-radius: 9px; font-size: 14.5px; }
.sg-head__drop a::after { display: none; }
.sg-head__drop a:hover { background: var(--sand); color: var(--ink); }
.sg-head__drop a.active { color: var(--primary); }
.sg-head__actions { display: flex; align-items: center; gap: 16px; }
.sg-head__link { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.sg-head__cart, .sg-head__fav { position: relative; display: inline-flex; align-items: center; color: var(--ink); }
.sg-head__cart { margin-right: 10px; }
.sg-head__fav:hover, .sg-head__cart:hover { color: var(--primary); }
.sg-head__cart span, .sg-head__fav span { position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sg-burger { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; }

/* Mobile drawer */
.sg-drawer { display: none; flex-direction: column; gap: 4px; padding: 12px clamp(20px, 5vw, 40px) 22px; border-top: 1px solid var(--line); background: var(--bg); }
.sg-drawer a { padding: 12px 4px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.sg-drawer.is-open { display: flex; }

/* Buttons ------------------------------------------------------------------- */
.sg-btn {
    font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
    border: 1.5px solid transparent; border-radius: var(--r-sm); padding: 13px 22px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
    transition: transform .06s ease, background .15s, color .15s, box-shadow .2s;
}
.sg-btn:active { transform: translateY(1px); }
.sg-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -12px rgba(225, 98, 61, 0.7); }
.sg-btn--primary:hover { background: var(--primary-ink); color: #fff; }
.sg-btn--dark { background: var(--ink); color: #fff; }
.sg-btn--dark:hover { background: #000; color: #fff; }
.sg-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.sg-btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.sg-btn--light { background: var(--surface); color: var(--ink); border-color: var(--line); }.sg-btn--sm { padding: 9px 16px; font-size: 14px; }
.sg-btn--lg { padding: 16px 28px; font-size: 17px; }
.sg-btn--block { width: 100%; }
/* Illustrative buttons (live-preview mockups): never look clickable. */
.sg-btn--static { pointer-events: none; cursor: default; }

/* Chips --------------------------------------------------------------------- */
.sg-chip {
    font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px;
    background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-soft); cursor: pointer;
    white-space: nowrap; display: inline-flex; align-items: center; transition: all .15s;
}
.sg-chip:hover { border-color: var(--ink); }
.sg-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Cards & bits -------------------------------------------------------------- */
.sg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.sg-tag { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; letter-spacing: 0.01em; display: inline-block; }
.sg-card-tags { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; z-index: 2; }
.sg-card-tags--right { left: auto; right: 14px; align-items: flex-end; }
.sg-tag--featured { background: var(--gold); color: #fff; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 6px 16px -8px rgba(224, 163, 59, .8); }

/* Featured partners slider (home, when more than 3 are flagged) */
.sg-card-slider { display: flex; align-items: center; gap: 12px; }
.sg-card-slider__viewport { overflow: hidden; flex: 1; min-width: 0; padding: 4px; margin: -4px; }
.sg-card-slider__track { display: flex; gap: 26px; transition: transform .35s ease; }
.sg-card-slider__slide { flex: 0 0 calc((100% - 52px) / 3); }
.sg-card-slider__nav { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, border-color .15s; }
.sg-card-slider__nav:hover:not(:disabled) { background: var(--sand); border-color: var(--ink); }
.sg-card-slider__nav:disabled { opacity: .35; cursor: default; }
.sg-card-slider__nav--prev svg { transform: rotate(180deg); }
@media (max-width: 900px) { .sg-card-slider__slide { flex-basis: calc((100% - 26px) / 2); } }
@media (max-width: 600px) { .sg-card-slider__slide { flex-basis: 100%; } }
.sg-photo { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--berry), var(--primary)); }
.sg-photo__label { position: absolute; left: 14px; bottom: 12px; color: rgba(255,255,255,.92); font-size: 12px; font-weight: 600; }
.sg-stars { display: inline-flex; gap: 2px; vertical-align: middle; }

/* Section heads ------------------------------------------------------------- */
.sg-section { padding-block: clamp(68px, 10.5vw, 132px); }
.sg-section__head { max-width: 680px; margin-bottom: 44px; }
.sg-section__title { font-size: clamp(30px, 4.4vw, 48px); margin-top: 22px; }
.sg-section__lead { font-size: 18px; color: var(--muted); margin-top: 16px; }

/* Page generic head --------------------------------------------------------- */
.sg-hero { padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 60px); position: relative; }
.sg-hero__title { font-size: clamp(36px, 6vw, 64px); max-width: 14ch; margin-top: 16px; }
.swigift .sg-hero__lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin-top: 12px; max-width: 56ch; line-height: 1.6; }
.sg-hero--center { text-align: center; }
.sg-hero--center .sg-eyebrow { justify-content: center; }
.sg-hero--center .sg-hero__title, .sg-hero--center .sg-hero__lead { margin-inline: auto; }

/* Search field (listing hero) */
.sg-search { display: flex; gap: 12px; margin-top: 28px; max-width: 580px; }
.sg-search__box {
    flex: 1; display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm);
    padding: 0 16px; height: 54px; transition: border-color .15s, box-shadow .15s;
}
.sg-search__box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225, 98, 61, 0.12); }
.sg-search__box svg { flex: none; }
.sg-search__box input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.sg-search .sg-btn { height: 54px; }
@media (max-width: 560px) { .sg-search { flex-direction: column; } .sg-search .sg-btn { width: 100%; } }

/* ===================== HOMEPAGE ===================== */
.sg-home-hero { position: relative; overflow: hidden; }
.sg-home-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.sg-home-hero__title { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; }
.sg-home-hero__title em { font-style: italic; color: var(--primary); }
.swigift .sg-home-hero__lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); margin-top: 16px; max-width: 50ch; line-height: 1.6; }
.sg-home-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.sg-home-hero__meta { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.sg-home-hero__meta b { font-family: var(--font-display); font-size: 26px; display: block; }
.sg-home-hero__meta span { font-size: 13.5px; color: var(--muted); }
.sg-home-hero__art { position: relative; }
.sg-home-hero__art .sg-giftcard { transform: rotate(3deg); }

/* Hero: faithful miniature of the real generated bon (mirrors BonPdf). */
.sg-hero-bon { position: relative; z-index: 2; width: 350px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 26px 26px 30px; transform: rotate(3deg); overflow: hidden; }
.sg-hero-bon__band { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--primary) 60%, var(--gold) 60%); }
.sg-hero-bon__band--bottom { top: auto; bottom: 0; background: linear-gradient(90deg, var(--gold) 40%, var(--primary) 40%); }
.sg-hero-bon__logo { display: block; width: 74px; height: auto; margin-bottom: 12px; }
.sg-hero-bon__title { font-family: var(--font-display); font-weight: 700; font-size: 27px; text-align: center; color: var(--ink); }
.sg-hero-bon__value { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.sg-hero-bon__bow { display: block; width: 190px; height: auto; margin: 10px auto 12px; }
.sg-hero-bon__eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.sg-hero-bon__panel { background: #FBF8F3; border-radius: 12px; padding: 12px 14px; }
.sg-hero-bon__panel ul { list-style: none; margin: 8px 0 0; padding: 0; }
.sg-hero-bon__panel li { position: relative; padding-left: 14px; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.sg-hero-bon__panel li::before { content: "•"; position: absolute; left: 0; color: var(--primary); }
.sg-hero-bon__row { display: flex; gap: 10px; margin-top: 12px; }
.sg-hero-bon__box { flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.sg-hero-bon__box b { display: block; font-size: 13.5px; color: var(--ink); margin-top: 3px; letter-spacing: .02em; }
.sg-hero-bon__box--code { border: 1.5px dashed var(--primary); background: #FDF6F0; }
.sg-hero-bon__box--code b { color: var(--primary); letter-spacing: .05em; }
.swg-motion .sg-hero-bon { animation: swgFloat 7s ease-in-out .4s infinite; }
@media (max-width: 720px) { .sg-hero-bon { width: 300px; padding: 20px 20px 24px; } .sg-hero-bon__title { font-size: 23px; } .sg-hero-bon__bow { width: 160px; } }
.sg-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .9; }

.sg-trust { border-block: 1px solid var(--line); background: var(--sand); }
.sg-trust__row { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; padding-block: 18px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.sg-trust__row span { display: inline-flex; align-items: center; gap: 9px; }

.sg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sg-step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.sg-step-card__n { width: 42px; height: 42px; border-radius: 12px; background: var(--sand); color: var(--primary); font-family: var(--font-display); font-weight: 600; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.sg-step-card h3 { font-size: 22px; margin-top: 18px; }
.sg-step-card p { color: var(--muted); margin-top: 10px; }

.sg-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sg-cat { position: relative; height: 190px; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; padding: 18px; color: #fff; }
.sg-cat::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 35%, rgba(20,19,24,.6)); }
.sg-cat span { position: relative; z-index: 2; color: #fff; font-weight: 600; font-size: 17px; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }

.sg-feature-band { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(34px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.sg-feature-band h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); }
.sg-feature-band p { color: rgba(255,255,255,.75); margin-top: 16px; font-size: 18px; }

.sg-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sg-quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.sg-quote p { font-size: 18px; line-height: 1.65; margin-top: 14px; }
.sg-quote__by { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; }
.sg-quote__by strong { font-weight: 600; }
.sg-quote__av { width: 38px; height: 38px; border-radius: 50%; flex: none; }

.sg-cta-band { text-align: center; background: linear-gradient(135deg, var(--primary), var(--berry)); color: #fff; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 80px); }
.sg-cta-band h2 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); }
.sg-cta-band p { color: rgba(255,255,255,.85); font-size: 19px; margin-top: 14px; }

/* ===================== LISTING ===================== */
.sg-filters-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 26px; }
.sg-filters-bar__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.sg-toggle-pill { display: inline-flex; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; }
.sg-toggle-pill span { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.sg-toggle-pill span.is-on { background: var(--primary); color: #fff; font-weight: 600; }

.sg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 70px; }
.sg-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 50px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }

.sg-partner-card { cursor: pointer; }
.sg-partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sg-partner-card .sg-photo { height: 190px; }
.sg-partner-card__body { padding: 20px; }
.sg-partner-card__name { font-size: 21px; }
.sg-meta-row { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-top: 8px; }
.sg-rating-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.sg-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sg-price { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.sg-heart-btn { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); cursor: pointer; transition: background .15s, transform .12s; z-index: 3; }
.sg-heart-btn:hover { background: #fff; transform: scale(1.08); }
.sg-heart-btn.is-on { background: var(--primary); }
.sg-heart-btn.is-on svg path { fill: #fff; stroke: #fff; }

/* Filters toolbar — canton select + favorites toggle */
.sg-filters-bar__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }.sg-fav-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.sg-fav-chip:hover { border-color: var(--muted); }
.sg-fav-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.sg-fav-chip.is-on svg path { stroke: #fff; }
.sg-fav-chip__count { background: rgba(20, 19, 24, .08); border-radius: 999px; padding: 1px 8px; font-size: 12.5px; }
.sg-fav-chip.is-on .sg-fav-chip__count { background: rgba(255, 255, 255, .25); }

/* Modern partner listing filter bar (category / canton / type + favourites) */
.sg-filterbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.sg-filterbar__grid { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; min-width: 0; }
.sg-filterbar__field { display: flex; flex-direction: column; gap: 6px; min-width: 140px; flex: 1; }
.sg-filterbar__label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sg-filterbar select {
    width: 100%; -webkit-appearance: none; -moz-appearance: none; appearance: none;
    border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 12px 44px 12px 16px;
    background-color: #fff; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink); cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E1623D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center;
    box-shadow: 0 1px 2px rgba(28, 27, 34, .04);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.sg-filterbar select:hover { border-color: var(--primary); background-color: #FFF9F6; }
.sg-filterbar select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225, 98, 61, .12); }
.sg-filterbar__actions { display: flex; align-items: center; gap: 10px; padding-bottom: 1px; }
.sg-filterbar__reset { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .15s, border-color .15s; }
.sg-filterbar__reset:hover { color: var(--ink); border-color: var(--muted); }
.sg-filterbar__count { color: var(--muted); font-size: 14px; margin: 0 2px 20px; }
@media (max-width: 620px) { .sg-filterbar__actions { width: 100%; } }

/* ===================== PARTNER SINGLE ===================== */
.sg-partner-hero { height: 380px; display: flex; align-items: flex-end; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.sg-partner-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,19,24,.62)); }
.sg-partner-hero__inner { position: relative; padding: 0 clamp(20px,5vw,48px) 32px; color: #fff; max-width: var(--container); margin-inline: auto; width: 100%; }
.sg-partner-hero__title { font-size: clamp(34px, 5vw, 54px); margin-top: 14px; color: #fff; }

/* --- Modern partner page ------------------------------------------------- */
/* Warm top band + discreet profile header (avatar, orange category pill). */
.sg-partner-top { background: linear-gradient(180deg, var(--sand) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.sg-partner-profile { display: flex; align-items: center; gap: 22px; }
.sg-partner-top .sg-partner-profile { padding: 46px 0 42px; }
.sg-partner-profile__avatar { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; flex: none; background: var(--surface); box-shadow: var(--shadow); }
.sg-partner-profile__avatar--ph { display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 42px; }
.sg-partner-profile__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.sg-cat-pill { background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; box-shadow: 0 6px 14px -8px rgba(225, 98, 61, .7); }
.sg-partner-profile__name { font-size: clamp(28px, 4vw, 44px); margin-top: 10px; }
.sg-partner-profile__contact { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 15px; }
.sg-partner-profile__contact span, .sg-partner-profile__contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.sg-partner-profile__contact a:hover { color: var(--primary); }

/* Subdivided content panels */
.sg-partner-main { display: flex; flex-direction: column; gap: 22px; }
.sg-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.sg-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sg-panel__title { font-family: var(--font-display); font-size: 24px; position: relative; padding-left: 15px; }
.sg-panel__title::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; border-radius: 3px; background: var(--primary); }

/* Gallery — 3 photos visible, arrows to slide when there are more */
.sg-gallery-nav { display: flex; gap: 8px; }
.sg-gallery-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s; }
.sg-gallery-nav button:hover:not(:disabled) { background: var(--sand); border-color: var(--ink); }
.sg-gallery-nav button:disabled { opacity: .35; cursor: default; }
.sg-gallery-nav__prev svg { transform: rotate(180deg); }
.sg-gallery-slider { overflow: hidden; margin-top: 16px; }
.sg-gallery-track { display: flex; gap: 14px; transition: transform .35s ease; }
.sg-gallery-slide { flex: 0 0 calc((100% - 28px) / 3); aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--sand) center/cover no-repeat; cursor: zoom-in; transition: filter .15s; }
.sg-gallery-slide:hover { filter: brightness(.92); }

.sg-offer-card__price { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--ink); margin-top: 8px; }

/* Fullscreen image viewer (lightbox) */
.sg-lightbox { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 4vh 3vw; }
.sg-lightbox.is-open { display: flex; }
.sg-lightbox__backdrop { position: absolute; inset: 0; background: rgba(20, 19, 24, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sg-lightbox__img { position: relative; max-width: 100%; max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); object-fit: contain; }
.sg-lightbox__close { position: absolute; top: 18px; right: 22px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .15s; }
.sg-lightbox__close:hover { background: rgba(255, 255, 255, .28); }
.sg-lightbox__nav { position: relative; z-index: 2; flex: none; width: 52px; height: 52px; margin: 0 clamp(6px, 2vw, 18px); border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.sg-lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.sg-lightbox__nav--prev { transform: rotate(180deg); }

@media (max-width: 640px) {
    .sg-gallery-slide { flex-basis: calc((100% - 14px) / 2); }
}
.sg-twocol { display: grid; grid-template-columns: 1fr 360px; gap: 48px; padding-block: 48px 70px; align-items: start; }
.sg-section-title { font-size: 28px; }
.sg-gallery { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.sg-gallery .sg-photo { width: 200px; height: 130px; border-radius: var(--r-md); }
.sg-bons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.sg-bon { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .2s; }
.sg-bon:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.sg-bon.is-pop { border-color: var(--primary); background: #FFF8F4; }
.sg-bon__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sg-bon__v { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.1; }
.sg-bon__pop { flex: none; margin-top: 3px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.sg-bon__d { color: var(--muted); font-size: 14.5px; margin-top: 6px; }.sg-bon__go { margin-top: 18px; color: var(--primary); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.sg-bon__go svg { transition: transform .15s; }
.sg-bon:hover .sg-bon__go svg { transform: translateX(3px); }
.sg-bon__badges { display: flex; align-items: flex-start; gap: 8px; flex: none; }

/* Bon conditions helper — "?" button (opens the centered .sg-pop--cond popup;
   the inline .sg-bonpop markup stays hidden and only feeds the popup content) */
.sg-bonhelp { position: relative; display: inline-flex; flex: none; }
.sg-bonhelp__btn { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; font-family: var(--font-body); line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: border-color .15s, color .15s; }
.sg-bonhelp__btn:hover { border-color: var(--primary); color: var(--primary); }
.sg-pick .sg-bonhelp { margin-left: auto; }

/* Partner-level conditions on the partner page */
.sg-partner-conditions { white-space: pre-line; line-height: 1.65; }
.sg-reviews { display: grid; gap: 14px; margin-top: 18px; }
.sg-review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; }
.sg-review__head { display: flex; justify-content: space-between; align-items: center; }
.sg-offer-card { padding: 26px; position: sticky; top: calc(var(--head-h) + 16px); }
.sg-secure { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 13px; justify-content: center; }

/* ===================== EXCLUSIVE (editorial, light) ===================== */
.sg-exclusive { padding-top: clamp(32px, 5vw, 60px); }
.sg-excl-wrap { max-width: 1440px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.sg-excl__hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.sg-excl__badge { display: inline-flex; align-items: center; gap: 7px; background: #FDF1EC; color: var(--primary-ink); border: 1px solid #F6D7CB; font-weight: 700; }
.sg-excl__title { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin-top: 16px; }
.swigift .sg-excl__lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); margin-top: 12px; line-height: 1.65; max-width: 52ch; }
.sg-excl__cta { display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.sg-excl__stock { font-size: 14px; }
.sg-excl__stock .sg-muted { margin-left: 4px; }
.sg-excl__bar { display: block; width: 170px; height: 6px; border-radius: 999px; background: var(--line); margin-top: 8px; overflow: hidden; }
.sg-excl__bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.sg-excl__media { position: relative; }
.sg-excl__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow); display: block; }

/* Light countdown */
.sg-timer { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.sg-time { text-align: center; }
.sg-time__v { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 38px); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 0; width: 78px; box-shadow: var(--shadow-sm); }
.sg-time__l { font-size: 11.5px; color: var(--muted); margin-top: 8px; letter-spacing: .1em; text-transform: uppercase; }

.sg-play { position: absolute; right: 18px; bottom: 18px; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }

.sg-excl__details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-block: clamp(56px, 7vw, 96px) 84px; align-items: start; }
.sg-excl__partner { padding: 26px; position: sticky; top: calc(var(--head-h) + 16px); }
.sg-excl__valid { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 14px; background: #EAF6F1; border-radius: var(--r-md); color: var(--emerald); font-size: 14px; font-weight: 500; }
.sg-excl__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.sg-excl__price-now { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--ink); }
.sg-excl__price-old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.sg-excl__discount { align-self: center; background: var(--emerald); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; }
.sg-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.sg-feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.sg-feature__t { font-family: var(--font-display); font-weight: 600; font-size: 19px; }

@media (max-width: 1024px) {
    .sg-excl__hero, .sg-excl__details { grid-template-columns: 1fr; }
    .sg-excl__partner { position: static; }
}

/* ===================== TUNNEL ===================== */
.sg-stepbar { display: flex; align-items: center; gap: 4px; padding: 22px clamp(20px,5vw,40px); background: var(--surface); border-bottom: 1px solid var(--line); max-width: var(--container); margin-inline: auto; flex-wrap: wrap; }
.sg-step { display: flex; align-items: center; gap: 10px; }
.sg-step__num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: var(--surface); color: var(--muted); border: 1.5px solid var(--line); }
.sg-step.is-done .sg-step__num { background: var(--emerald); color: #fff; border: none; }
.sg-step.is-active .sg-step__num { background: var(--primary); color: #fff; border: none; }
.sg-step__label { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.sg-step.is-active .sg-step__label { font-weight: 600; color: var(--ink); }
.sg-step__bar { flex: 1; min-width: 16px; height: 2px; background: var(--line); margin: 0 12px; }
.sg-step__bar.is-done { background: var(--emerald); }

.sg-tunnel { display: grid; grid-template-columns: 1fr 440px; min-height: 70vh; max-width: var(--container); margin-inline: auto; }
.sg-tunnel__controls { padding: clamp(28px,4vw,40px) clamp(20px,5vw,40px) 56px; }
.sg-field { margin-bottom: 26px; }
.sg-field__label { font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.sg-option-row { display: flex; gap: 14px; }
.sg-option { flex: 1; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 16px 18px; cursor: pointer; transition: border-color .15s; }
.sg-option.is-on { border: 2px solid var(--primary); background: #FDF1EC; }
.sg-option__head { display: flex; align-items: center; justify-content: space-between; }
.sg-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; box-sizing: border-box; }
.sg-option.is-on .sg-radio { border: 6px solid var(--primary); }
.sg-uploader { flex: 1; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: 18px 20px; display: flex; align-items: center; gap: 12px; color: var(--muted); cursor: pointer; }
.sg-textarea { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: var(--surface); }
.sg-textarea__count { display: flex; justify-content: flex-end; color: var(--muted); font-size: 13px; margin-top: 8px; }
.sg-delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sg-delivery { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 16px; cursor: pointer; transition: border-color .15s; }
.sg-delivery.is-on { border: 2px solid var(--primary); background: #FDF1EC; }
.sg-delivery__img { display: block; width: 100%; height: 200px; border-radius: 10px; background-color: #fff; background-size: contain; background-position: center; background-repeat: no-repeat; }
.sg-delivery__t { font-weight: 600; font-size: 15px; margin-top: 10px; }
.sg-delivery__p { font-family: var(--font-display); font-weight: 600; margin-top: 8px; }.sg-switch-row { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; }
.sg-switch { width: 52px; height: 30px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; flex: none; border: none; }
.sg-switch.is-on { background: var(--emerald); }
.sg-switch__knob { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.sg-switch.is-on .sg-switch__knob { left: 25px; }

.sg-preview-panel { background: var(--ink); padding: clamp(28px,4vw,40px) clamp(22px,3vw,36px); position: relative; overflow: hidden; }
.sg-preview-panel__title { text-align: center; color: rgba(255,255,255,.55); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 24px; }
.sg-summary { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-md); padding: 20px 22px; margin-top: 28px; }
.sg-summary__row { display: flex; justify-content: space-between; color: rgba(255,255,255,.82); font-size: 15px; margin-bottom: 10px; }
.sg-summary__total { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; margin-top: 4px; }
.sg-summary__total .lbl { color: #fff; font-weight: 600; font-size: 17px; }
.sg-summary__total .val { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 22px; }

/* A5 landscape card editor (tunnel) ----------------------------------------- */
.sg-models { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.sg-model { width: 60px; height: 42px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; padding: 0; background-size: cover; background-position: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); transition: transform .1s, border-color .15s; }
.sg-model:hover { transform: translateY(-2px); }
.sg-model.is-on { border-color: #fff; }

/* Font sizes use cqw so they scale with the card exactly like the PDF's pt
   sizes scale with the A5 page (1cqw = 5.9528pt): screen and PDF match. */
.sg-a5 { position: relative; width: 100%; max-width: 480px; margin: 0 auto; aspect-ratio: 210 / 148; border-radius: 12px; overflow: hidden; box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .6); background: var(--surface); color: var(--ink); container-type: inline-size; }
.sg-a5--terracotta { background: linear-gradient(135deg, #E1623D, #E0A33B); color: #fff; }
.sg-a5--emerald { background: linear-gradient(135deg, #1E7A5E, #2F6FB0); color: #fff; }
.sg-a5--sable { background: #F7F2E9; color: #1C1B22; }
.sg-a5--photo { background: #56525d center / cover no-repeat; color: #fff; }
.sg-a5--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .55)); z-index: 1; }
.sg-a5__inner { position: absolute; inset: 0; z-index: 2; padding: 7% 8%; display: flex; flex-direction: column; }
.sg-a5__partner { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .92; }
.sg-a5__title { font-family: var(--font-display); font-weight: 600; font-size: max(13px, calc(4.37cqw * var(--fit, 1) * var(--tscale, 1))); line-height: 1.1; margin-top: 8px; outline: none; border-radius: 6px; transition: background .15s; }
.sg-a5__msg { font-size: max(9px, calc(2.02cqw * var(--fit, 1) * var(--tscale, 1))); line-height: 1.5; margin-top: 8px; outline: none; flex: 1; border-radius: 6px; transition: background .15s; }
.sg-a5__foot { font-family: var(--font-display); font-size: 12px; display: flex; align-items: center; gap: 6px; opacity: .92; border-top: 1px dashed rgba(255, 255, 255, .45); padding-top: 8px; margin-top: 6px; }
.sg-a5--sable .sg-a5__foot { border-top-color: var(--line); }
.sg-a5 [contenteditable]:hover { background: rgba(255, 255, 255, .12); cursor: text; }
.sg-a5 [contenteditable]:focus { background: rgba(255, 255, 255, .18); }
.sg-a5--sable [contenteditable]:hover { background: rgba(225, 98, 61, .08); }
.sg-a5--sable [contenteditable]:focus { background: rgba(225, 98, 61, .12); }
.sg-a5 [contenteditable][data-ph]:empty:before { content: attr(data-ph); opacity: .55; }
.sg-a5__photohint { position: absolute; inset: 0; z-index: 4; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; background: rgba(20, 19, 24, .4); font-size: 13px; cursor: pointer; text-align: center; padding: 20px; }
.sg-a5--photo.is-empty .sg-a5__photohint { display: flex; }
.sg-a5--photo.is-empty .sg-a5__inner { opacity: .25; }

/* Admin card model: full background image + the writing zone placed exactly
   where it was defined in the admin (positioned inline in %). */
.sg-a5__zone { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sg-a5.is-modelimg { background-size: cover; background-position: center; color: #fff; }
.sg-a5.is-modelimg .sg-a5__inner { padding: 0; pointer-events: none; }
.sg-a5.is-modelimg .sg-a5__zone { pointer-events: auto; }
.sg-a5.is-modelimg [data-swg-a5-deco] { display: none; }
/* Zone metrics mirror the PDF renderer exactly: top-aligned content, 3%
   padding, 100% TRANSPARENT background (the PDF adds none either) — only a
   dashed outline remains as an editing affordance (never printed). */
.sg-a5.is-modelimg .sg-a5__zone {
    flex: none; z-index: 2; overflow: hidden; justify-content: flex-start; box-sizing: border-box;
    padding: 3%; background: transparent; border-radius: 8px; outline: 1px dashed rgba(255, 255, 255, .38);
    transition: outline-color .15s;
}
.sg-a5.is-modelimg .sg-a5__zone:hover, .sg-a5.is-modelimg .sg-a5__zone:focus-within { outline-color: rgba(255, 255, 255, .85); }
.sg-a5.is-modelimg .sg-a5__title { margin-top: 0; font-size: max(12px, calc(3.36cqw * var(--fit, 1) * var(--tscale, 1))); }
.sg-a5.is-modelimg .sg-a5__msg { flex: 0 1 auto; font-size: max(9px, calc(1.85cqw * var(--fit, 1) * var(--tscale, 1))); line-height: 1.45; margin-top: 1cqw; }
/* Photo zone — the buyer's photo fills it (cover). It paints BELOW the text
   layer (the PDF does the same): a photo overlapping the writing zone must
   never hide the message. The inner layer lets clicks through outside the
   writing zone so the photo stays clickable. */
.sg-a5__photo { z-index: 1; border-radius: 8px; overflow: hidden; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: box-shadow .15s; }
.sg-a5__photo:not(.has-photo):hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
.sg-a5__photo.has-photo { box-shadow: none; }
.sg-a5__photohint2 { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #fff; background: rgba(20, 19, 24, .55); padding: 5px 10px; border-radius: 999px; text-align: center; }
.sg-a5__photo.has-photo .sg-a5__photohint2 { display: none; }
/* Personalisation flow (options + full-width editor) ------------------------ */
.sg-perso { padding-top: 28px; padding-bottom: 64px; }
.sg-perso__steps { justify-content: center; }
.sg-perso__panel { display: none; }
.sg-perso__panel.is-active { display: block; animation: sg-fade .25s ease; }
.sg-perso__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.sg-perso__steps span.is-done { cursor: pointer; }

/* Layout: content column + sticky order recap (desktop). */
.sg-perso__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.sg-perso__main { min-width: 0; }
.sg-perso.is-editor .sg-perso__layout, .sg-perso.is-editor .sg-recap-bar { display: none; }
.sg-recap { position: sticky; top: 96px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.sg-recap__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.sg-recap__partner { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 6px 0 12px; }
.sg-recap__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.sg-recap__row span { color: var(--muted); flex: none; }
.sg-recap__row strong { font-weight: 600; text-align: right; }
.sg-recap__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.sg-recap__total strong { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); }

/* Mobile: the recap collapses into a fixed bottom total bar. */
.sg-recap-bar { display: none; }

/* "Bon seul" tile + its in-place order actions (step 3). */
.sg-model-thumb.is-on::after { content: "\2713"; position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(20, 19, 24, .2); }
.sg-model-thumb--plain:hover { border-color: var(--primary); }
.sg-model-thumb__img.sg-model-thumb__img--plain { display: flex; align-items: center; justify-content: center; background: var(--sand); }
/* Miniature paper voucher — sells "just the official bon" at a glance. */
.sg-plain-doc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 78%; aspect-ratio: 210 / 260; background: #fff; border-radius: 7px; box-shadow: 0 10px 22px rgba(20, 19, 24, .14); padding: 16px 12px 12px; transform: rotate(-4deg); transition: transform .2s ease; overflow: hidden; }
.sg-plain-doc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--primary) 60%, #E0A33B 60%); }
.sg-model-thumb--plain:hover .sg-plain-doc, .sg-model-thumb--plain.is-on .sg-plain-doc { transform: rotate(0deg) scale(1.03); }
.sg-plain-doc__logo { font-weight: 700; font-size: 10px; letter-spacing: .02em; color: var(--ink); align-self: flex-start; }
.sg-plain-doc__t { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); margin-top: 2px; }
.sg-plain-doc__l { width: 72%; height: 4px; border-radius: 2px; background: var(--line); }
.sg-plain-doc__l--short { width: 48%; }
.sg-plain-doc__code { margin-top: auto; font-size: 8.5px; font-weight: 700; letter-spacing: .08em; color: var(--primary); border: 1px dashed var(--primary); border-radius: 5px; padding: 3px 8px; background: #FDF6F0; }
.sg-plain-cta { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1.5px solid var(--primary); border-radius: var(--r-md); padding: 18px 22px; animation: sg-fade .25s ease; }
.sg-plain-cta[hidden] { display: none; }
.sg-plain-cta__txt strong { display: block; font-size: 15px; }
.sg-plain-cta__txt span { font-size: 13.5px; color: var(--muted); }
.sg-plain-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Live preview of the future partner page: logo box (with placeholder) next
   to the name / city / description, gallery strip under the CTA. */
.sg-live-preview__head { display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; }
.sg-live-preview__logobox { flex: none; width: 68px; height: 68px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--sand); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sg-live-preview__logobox.has-logo { border-style: solid; border-color: var(--line); background: #fff; }
.sg-live-preview__logobox img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.sg-live-preview__logoph { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px; }
.sg-live-preview__logoph[hidden] { display: none; }
.sg-live-preview__gal { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sg-live-preview__gal[hidden] { display: none; }
.sg-live-preview__gal img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }

/* Envelope colour picker (gift box option). */
.sg-env { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; animation: sg-fade .25s ease; }
.sg-env[hidden] { display: none; }
.sg-env__t { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.sg-env__row { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-env__dot { display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(20, 19, 24, .12); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.sg-env__dot:hover { transform: scale(1.12); }
.sg-env__dot.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }

/* Checkout identity/address rows. */
.sg-pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .sg-pay-row { grid-template-columns: 1fr; gap: 0; } }
[data-swg-co-addr][hidden] { display: none; }

/* Recipient data confirmation + editor side quote. */
.sg-gift-confirm { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; cursor: pointer; }
.sg-gift-confirm input { width: auto; margin-top: 3px; accent-color: var(--primary); }
.sg-studio__quote { font-family: var(--font-display); font-style: italic; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

@media (max-width: 940px) {
    .sg-perso__layout { display: block; }
    .sg-recap { display: none; }
    .sg-perso:not(.is-editor) { padding-bottom: 110px; }
    .sg-recap-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: var(--surface); border-top: 1.5px solid var(--line); padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--muted); box-shadow: 0 -6px 24px rgba(20, 19, 24, .07); }
    .sg-recap-bar strong { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); }
}

.sg-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
/* Two-option pickers (perso / bon seul, pour moi / offrir): wider cards. */
.sg-pick-grid[data-swg-mode], .sg-pick-grid--duo { grid-template-columns: repeat(auto-fit, minmax(280px, 420px)); }
/* Gift recipient fields (revealed when sending the voucher to someone) */
.sg-gift-fields { display: grid; gap: 14px; margin-top: 16px; max-width: 620px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.sg-gift-fields .sg-input__box { width: 100%; }
.sg-gift-fields__hint { font-size: 13px; margin: 8px 0 0; }
.sg-gift-fields [data-swg-gift-addr-wrap] .sg-input + .sg-input { margin-top: 12px; }
.sg-pick { display: flex; align-items: flex-start; gap: 12px; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.sg-pick:hover { border-color: var(--ink); }
.sg-pick.is-on { border: 2px solid var(--primary); background: #FDF1EC; }
.sg-pick .sg-radio { margin-top: 3px; }
.sg-pick.is-on .sg-radio { border: 6px solid var(--primary); }
.sg-pick__v { font-family: var(--font-display); font-weight: 600; font-size: 19px; display: block; }
.sg-pick__d { color: var(--muted); font-size: 13.5px; display: block; margin-top: 2px; }
.sg-free-wrap { margin-top: 16px; }

/* Step 2 — model gallery */
.sg-models-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.sg-model-thumb { position: relative; display: block; width: 100%; padding: 0; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sg-model-thumb:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.sg-model-thumb.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225, 98, 61, .14); }
.sg-model-thumb__img { position: relative; display: block; aspect-ratio: 595 / 420; background: var(--sand) center/cover no-repeat; }
.sg-model-thumb__img--terracotta { background: #E1623D; }
.sg-model-thumb__img--emerald { background: #1E7A5E; }
.sg-model-thumb__img--sable { background: #F7F2E9; }
.sg-model-thumb__img--photo { background: linear-gradient(135deg, #2A2833, #4B4658); }
.sg-model-thumb__badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(20, 19, 24, .65); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.sg-model-thumb__name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); padding: 10px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line); }

/* Step 3 — studio workspace: sand stage + structured sidebar + attached
   action bar, all one cohesive surface. */
.sg-studio { display: grid; grid-template-columns: minmax(0, 1fr) 300px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 24px; }
.sg-studio__stage { background: var(--sand); padding: clamp(22px, 4vw, 48px); display: flex; align-items: center; justify-content: center; min-width: 0; }
.sg-studio__side { border-left: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.sg-studio__section + .sg-studio__section { border-top: 1px solid var(--line); padding-top: 20px; }
.sg-studio__actions { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 14px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sg-studio__actions .sg-editor__total { margin-left: auto; }
.sg-studio__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.sg-editor-panel__title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sg-uploader--block { flex-direction: column; text-align: center; align-items: center; gap: 8px; padding: 22px 16px; background: var(--surface); transition: border-color .15s, background .15s; }
.sg-uploader--block:hover { border-color: var(--primary); background: #FFF8F4; }
.sg-opt-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; color: var(--ink-soft); }
.sg-cond-note--side { margin: 0; max-width: none; padding: 12px 14px; font-size: 13.5px; }

.sg-editor { position: relative; min-width: 0; width: 100%; }
.sg-editor .sg-a5 { max-width: 780px; margin: 0 auto; }
.sg-editor__total { font-size: 16px; }
.sg-editor__total strong { font-family: var(--font-display); font-size: 20px; }
.sg-cond-note { margin: 18px auto 0; max-width: 760px; background: #FFF8F4; border: 1.5px solid #F3D8CC; border-radius: var(--r-md); padding: 14px 18px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.sg-cond-note strong { display: block; color: var(--primary-ink); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.sg-cond-note [data-swg-cond-usage] { display: block; font-weight: 600; color: var(--ink); }
.sg-cond-note [data-swg-cond-text] { display: block; white-space: pre-line; }

/* Cart page ----------------------------------------------------------------- */
.sg-cartpage { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; padding-bottom: 70px; }
.sg-cartpage__items { display: grid; gap: 14px; }
.sg-cart-line { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; align-items: center; }
.sg-cart-line__sw { width: 64px; height: 46px; border-radius: 10px; flex: none; }
.sg-cart-line__body { flex: 1; min-width: 0; }
.sg-cart-line__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sg-cart-line__amt { font-family: var(--font-display); font-weight: 600; }
.sg-cart-line__actions { display: flex; gap: 16px; margin-top: 8px; }
.sg-cart-line__actions a { color: var(--ink); text-decoration: underline; font-size: 13.5px; }
.sg-cart-line__actions button { background: none; border: none; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 13.5px; }
.sg-cartpage__summary { position: sticky; top: calc(var(--head-h) + 16px); }
/* PDF preview modal --------------------------------------------------------- */
.sg-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sg-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 19, 24, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sg-modal__panel { position: relative; z-index: 1; background: var(--surface); border-radius: var(--r-lg); width: min(940px, 100%); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); animation: sg-fade .2s ease; }
.sg-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.sg-modal__actions { display: flex; align-items: center; gap: 10px; }
.sg-modal__close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.sg-modal__close:hover { background: var(--sand); }
.sg-modal__body { position: relative; flex: 1; background: var(--sand); display: flex; min-height: 0; }
.sg-modal__body iframe { width: 100%; height: 72vh; max-height: 80vh; border: 0; display: block; }
.sg-modal__spinner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
    .sg-modal { padding: 0; }
    .sg-modal__panel { border-radius: 0; width: 100%; height: 100%; max-height: 100vh; }
    .sg-modal__body iframe { height: 100%; max-height: none; }
}

@media (max-width: 1024px) {
    .sg-studio { grid-template-columns: 1fr; }
    .sg-studio__side { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: stretch; }
    .sg-studio__section { flex: 1 1 240px; }
    .sg-studio__section + .sg-studio__section { border-top: 0; padding-top: 0; }
}
@media (max-width: 860px) {
    .sg-cartpage { grid-template-columns: 1fr; }
    .sg-cartpage__summary { position: static; }
}
/* Phones */
@media (max-width: 640px) {
    .sg-editor .sg-a5 { max-width: 100%; }
    .sg-models-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .sg-studio__stage { padding: 16px 12px; }
    .sg-studio__side { flex-direction: column; padding: 18px 16px; }
    .sg-studio__actions { flex-direction: column-reverse; align-items: stretch; padding: 14px 16px; }
    .sg-studio__actions .sg-editor__total { margin: 0; width: 100%; text-align: center; order: 3; }
    .sg-studio__cta { flex-direction: column; }
    .sg-studio__cta .sg-btn, .sg-studio__actions > .sg-btn { width: 100%; }
    .sg-perso__nav { flex-direction: column-reverse; align-items: stretch; }
    .sg-perso__nav > div { display: flex; flex-direction: column; gap: 10px; }
    .sg-perso__nav .sg-btn { width: 100%; }
}

/* Gift card ----------------------------------------------------------------- */
.sg-giftcard { width: 340px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; margin: 0 auto; }
.sg-giftcard .sg-photo { height: 176px; }
.sg-giftcard__amount { position: absolute; right: 16px; top: 16px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 19px; padding: 7px 15px; border-radius: 999px; }
.sg-giftcard__photochip { position: absolute; left: 16px; bottom: 14px; background: rgba(255,255,255,.92); color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.sg-giftcard__body { padding: 22px; }
.sg-giftcard__from { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.sg-giftcard__title { font-family: var(--font-display); font-weight: 600; font-size: 25px; margin-top: 8px; }
.sg-giftcard__msg { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.sg-giftcard__foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); font-family: var(--font-display); }

/* ===================== CHECKOUT ===================== */
.sg-checkout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; padding-block: 44px 80px; align-items: start; }

/* Payment panel */
.sg-paycard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px 24px; box-shadow: 0 18px 50px -34px rgba(28, 27, 34, .5); }
.sg-pay-field { margin-bottom: 20px; }
.sg-pay-field:last-of-type { margin-bottom: 16px; }
.sg-pay-field__label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.sg-pay-field__hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.sg-pay-field__box { border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; background: #fff; color: var(--ink); font-size: 15px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.sg-pay-field__box::placeholder { color: #a9a3b0; }
input.sg-pay-field__box:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225, 98, 61, .12); }
.sg-pe-host { min-height: 48px; }
.sg-pe-loading { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 8px 2px; }
.sg-pe-spin { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: sgSpin .7s linear infinite; }
@keyframes sgSpin { to { transform: rotate(360deg); } }
.sg-pay-notice { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.sg-pay-btn { margin-top: 4px; font-size: 17px; padding: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.sg-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 12.5px; }
.sg-trust__item { display: inline-flex; align-items: center; gap: 5px; }
.sg-trust__sep { opacity: .5; }

/* Order recap */
.sg-recap { position: sticky; top: calc(var(--head-h) + 16px); }
.sg-recap__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 18px 50px -34px rgba(28, 27, 34, .5); }
.sg-recap__head { background: var(--ink); padding: 22px 24px; color: #fff; }
.sg-recap__body { padding: 20px 24px 24px; }
.sg-recap__line { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sg-recap__line:last-child { border-bottom: 0; }
.sg-recap__row { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); margin-top: 12px; }
.sg-recap__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sg-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }

/* ===================== CONFIRMATION ===================== */
/* Festive success band (Retour 5 #1): warm gradient + confetti, not black. */
.sg-success { background: linear-gradient(135deg, #D95536 0%, #E1623D 42%, #E0A33B 100%); padding: clamp(40px,6vw,60px) 0; position: relative; overflow: hidden; text-align: center; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.sg-success::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle 5px at 8% 26%, rgba(255,255,255,.4) 96%, transparent),
        radial-gradient(circle 4px at 16% 72%, rgba(255,255,255,.28) 96%, transparent),
        radial-gradient(circle 6px at 27% 18%, rgba(255,233,168,.55) 96%, transparent),
        radial-gradient(circle 4px at 38% 82%, rgba(255,255,255,.32) 96%, transparent),
        radial-gradient(circle 5px at 63% 14%, rgba(255,255,255,.35) 96%, transparent),
        radial-gradient(circle 4px at 74% 66%, rgba(255,233,168,.5) 96%, transparent),
        radial-gradient(circle 6px at 86% 30%, rgba(255,255,255,.38) 96%, transparent),
        radial-gradient(circle 4px at 93% 78%, rgba(255,255,255,.3) 96%, transparent);
}
.sg-success .sg-container { position: relative; }
.sg-success__check { box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .45); }
.sg-success__check { width: 64px; height: 64px; border-radius: 50%; background: var(--emerald); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.sg-success__title { font-size: clamp(30px,5vw,44px); color: #fff; margin-top: 20px; }.sg-conf-2col { display: grid; grid-template-columns: 1fr 380px; gap: 24px; padding-block: 44px 72px; align-items: stretch; }

/* Empty cart state */
.sg-cart-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 620px; margin: 0 auto; min-height: 62vh; padding: 56px 20px 96px; }
.sg-cart-empty__icon { display: inline-flex; width: 104px; height: 104px; border-radius: 50%; background: #FDF1EC; align-items: center; justify-content: center; }
.sg-cart-empty__title { font-family: var(--font-display); font-size: 32px; margin-top: 28px; color: var(--ink); }
.sg-cart-empty__text { color: var(--muted); font-size: 16.5px; margin-top: 14px; line-height: 1.65; max-width: 46ch; }
.sg-cart-empty__actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.sg-voucher-meta { display: flex; gap: 24px; margin-top: 18px; flex-wrap: wrap; }
.sg-voucher-meta__k { font-size: 13px; color: var(--muted); font-weight: 500; }
.sg-voucher-meta__v { font-family: var(--font-display); font-weight: 600; font-size: 25px; margin-top: 4px; }
/* ===================== FORMS / CONTACT / BECOME ===================== */
.sg-form { display: grid; grid-template-columns: 1fr 420px; gap: 44px; padding-block: 14px 70px; align-items: start; }
.sg-input { margin-bottom: 16px; flex: 1; }
.sg-input__label { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
.sg-input input, .sg-input textarea, .sg-input select, .sg-input__box {
    width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); transition: border-color .15s;
}
.sg-input input:focus, .sg-input textarea:focus, .sg-input select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225, 98, 61, .1); }
.sg-input textarea { resize: vertical; min-height: 80px; }

/* Custom-styled dropdowns (partner form: canton, catégorie, type de bon) */
.sg-input select,
.sg-bon-line .sg-bon-type {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376727F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-color: #fff;
    cursor: pointer;
}
.sg-input select { background-position: right 14px center; padding-right: 42px; }
.sg-bon-line .sg-bon-type { background-position: right 9px center; padding-right: 30px; transition: border-color .15s, box-shadow .15s; }
.sg-bon-line .sg-bon-type:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225, 98, 61, .1); }
.sg-row { display: flex; gap: 16px; }
.sg-note-secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--emerald); font-weight: 500; margin: -2px 0 10px; }
.sg-signature { display: grid; grid-template-columns: 1fr 240px; gap: 20px; align-items: stretch; }
.sg-contract { border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--sand); padding: 18px 20px; font-size: 13px; color: var(--muted); line-height: 1.55; max-height: 150px; overflow: auto; }
.sg-sign-pad { border: 2px dashed var(--primary); border-radius: var(--r-md); background: var(--surface); height: 110px; position: relative; display: flex; align-items: center; justify-content: center; cursor: crosshair; }
.sg-sign-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sg-sign-pad__hint { position: absolute; bottom: 8px; left: 12px; font-size: 11px; color: var(--muted); }
.sg-sign-meta { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.sg-live-preview { position: sticky; top: calc(var(--head-h) + 16px); }
.sg-live-preview__label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.sg-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.sg-live-note { background: #FDF1EC; border: 1px solid #F6D7CB; border-radius: var(--r-md); padding: 14px 16px; margin-top: 14px; font-size: 13px; color: var(--primary-ink); }

/* Multi-step wizard (become partner) */
.sg-wizard__steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.sg-wizard__steps span { font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.sg-wizard__steps span.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.sg-wizard__steps span.is-done { color: var(--emerald); border-color: var(--emerald); background: #EAF6F1; }
.sg-wizard__panel { display: none; }
.sg-wizard__panel.is-active { display: block; animation: sg-fade .25s ease; }
.sg-wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
@keyframes sg-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sg-contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; padding-block: 20px 70px; align-items: start; }
.sg-contact__info { display: grid; gap: 18px; }
.sg-contact__item { display: flex; gap: 14px; align-items: flex-start; }
.sg-contact__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sand); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.sg-contact__info { gap: 22px; }

/* Decorative gift emblem on the home hero ----------------------------------- */
.sg-gift-badge { position: absolute; top: -18px; left: -10px; z-index: 4; width: 66px; height: 66px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 34px -12px rgba(225, 98, 61, .75); animation: sgGiftPop .5s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes sgGiftPop { from { transform: scale(.5) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 720px) { .sg-gift-badge { width: 54px; height: 54px; top: -12px; left: 6px; } }

/* Brand logo + footer payments ---------------------------------------------- */
.sg-brand__img { height: 58px; width: auto; display: block; }
@media (max-width: 640px) { .sg-brand__img { height: 46px; } }
.sg-footer__pay { height: 24px; width: auto; margin-top: 18px; background: #fff; padding: 6px 10px; border-radius: 8px; }

/* Partner form — bons repeater --------------------------------------------- */
.sg-bons-repeat { display: grid; gap: 10px; }
/* Bons repeater — modern cards mirroring the admin editor's structure. */
.sg-bons-repeat { display: grid; gap: 16px; }
.sg-bonform { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; }
.sg-bonform__row { display: flex; gap: 12px; align-items: flex-end; }
.sg-bonform__field { margin-top: 14px; min-width: 0; }
.sg-bonform__row .sg-bonform__field { margin-top: 0; }
.sg-bonform__field--type { width: 160px; flex: none; }
.sg-bonform__field--amt { width: 170px; flex: none; }
.sg-bonform__field--validity { flex: 1; }
.sg-bonform__field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.sg-bonform__field input, .sg-bonform__field select, .sg-bonform__field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.sg-bonform__field input:focus, .sg-bonform__field select:focus, .sg-bonform__field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225, 98, 61, .1); }
.sg-bonform__field textarea { resize: vertical; }
.sg-bonform__hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.sg-bonform__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; background: none; border: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--primary); cursor: pointer; }
.sg-bonform__more em { font-style: normal; font-weight: 500; color: var(--muted); }
.sg-bonform__more-chev { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid var(--primary); border-radius: 50%; font-size: 12px; line-height: 1; transition: transform .15s; }
.sg-bonform.is-open .sg-bonform__more-chev { transform: rotate(45deg); }
.sg-bonform__conds { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 2px; }
.sg-bonform__conds[hidden] { display: none; }
.sg-info { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--muted); font-size: 10px; font-weight: 700; font-style: normal; vertical-align: 1px; cursor: help; }
.sg-bon-del { background: none; border: none; color: #B23A3A; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px 8px; flex: none; }
@media (max-width: 640px) {
    .sg-bonform__row { flex-wrap: wrap; align-items: flex-start; }
    .sg-bonform__field--type, .sg-bonform__field--amt { width: calc(50% - 24px); }
    .sg-bonform__field--validity { flex: 1 1 100%; }
}

/* Partner form — "how it works" steps -------------------------------------- */
.sg-onboard-steps { list-style: none; margin: 14px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sg-onboard-step { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.sg-onboard-step__num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-family: var(--font-display); display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 8px 18px -8px rgba(225, 98, 61, .7); }
.sg-onboard-step__txt { display: flex; flex-direction: column; gap: 3px; }
.sg-onboard-step__txt strong { color: var(--ink); font-size: 15px; }
.sg-onboard-step__txt span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 760px) { .sg-onboard-steps { grid-template-columns: 1fr; } }

/* Partner form — media guidance (logo / background / gallery) --------------- */
.sg-media-guide { display: grid; gap: 12px; }
.sg-media-guide__item { justify-content: flex-start; text-align: left; gap: 12px; }
.sg-media-guide__t { font-weight: 600; color: var(--ink); }
.sg-media-guide__h { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

/* Functional uploaders (logo / image de fond / galerie) */
.sg-media-guide__item { flex-direction: column; align-items: stretch; cursor: default; padding: 16px 18px; }
.sg-uploader__info { display: flex; align-items: flex-start; gap: 12px; }
.sg-uploader__grid { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-uploader__grid:not(:empty) { margin-top: 14px; }
.sg-uptile { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); flex: none; }
.sg-uptile img { width: 100%; height: 100%; object-fit: cover; }
.sg-uptile__del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(28, 27, 34, .72); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.sg-uptile__del:hover { background: var(--primary); }
.sg-uptile--loading { display: flex; align-items: center; justify-content: center; }
.sg-uptile__spin { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: sg-spin .7s linear infinite; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
.sg-uploader__add { align-self: flex-start; margin-top: 14px; background: none; border: 1.5px dashed var(--line-strong); border-radius: 999px; color: var(--primary); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; cursor: pointer; }
.sg-uploader__add:hover { border-color: var(--primary); background: rgba(225, 98, 61, .06); }
.sg-uploader__err { margin: 10px 0 0; font-size: 13px; color: var(--primary); }

/* Centered success popup --------------------------------------------------- */
.sg-pop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sg-pop__backdrop { position: absolute; inset: 0; background: rgba(20, 19, 24, .22); }
.sg-pop__card { position: relative; z-index: 1; background: #fff; border-radius: 22px; max-width: 430px; width: 100%; padding: 38px 34px; text-align: center; box-shadow: 0 44px 90px -30px rgba(0, 0, 0, .55); animation: sgPopIn .26s ease; }
@keyframes sgPopIn { from { transform: translateY(14px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
.sg-pop__icon { width: 66px; height: 66px; border-radius: 50%; background: var(--emerald); color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.sg-pop__card h2 { font-family: var(--font-display); font-size: 27px; color: var(--ink); }
.sg-pop__card p { color: var(--muted); margin: 10px 0 24px; line-height: 1.55; }

/* Variant: bon conditions popup ("?" on partner page + tunnel) — frosted-glass
   backdrop: a light veil + strong blur so the page stays visible behind. */
.sg-pop--cond .sg-pop__backdrop { background: rgba(28, 27, 34, .16); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
.sg-pop__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.sg-pop__close:hover { background: var(--sand); }
.sg-pop__icon--cond { background: var(--primary); font-family: var(--font-display); font-weight: 600; }
.sg-pop__bon { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.sg-pop--cond .sg-pop__cond { text-align: left; background: #FFF8F4; border: 1.5px solid #F3D8CC; border-radius: var(--r-md); padding: 16px 18px; margin: 18px 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.sg-pop__usage { display: block; font-weight: 600; color: var(--ink); }
.sg-pop__incl, .sg-pop__txt { display: block; white-space: pre-line; }
.sg-pop__usage + .sg-pop__incl, .sg-pop__usage + .sg-pop__txt, .sg-pop__incl + .sg-pop__txt { margin-top: 6px; }

/* Blog ----------------------------------------------------------------------- */
.sg-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.sg-post-card { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .2s; }
.sg-post-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.sg-post-card__img { display: block; aspect-ratio: 16 / 10; background: var(--sand) center/cover no-repeat; }
.sg-post-card__img--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--gold)); }
.sg-post-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.sg-post-card__date { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sg-post-card__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; margin-top: 8px; color: var(--ink); }
.sg-post-card__excerpt { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 8px; }
.sg-post-card__more { margin-top: auto; padding-top: 16px; color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.sg-post-card__more svg { transition: transform .15s; }
.sg-post-card:hover .sg-post-card__more svg { transform: translateX(3px); }

.sg-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.sg-pagination__page, .sg-pagination__nav { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; transition: border-color .15s, background .15s; }
.sg-pagination__page:hover, .sg-pagination__nav:hover { border-color: var(--ink); }
.sg-pagination__page.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.sg-pagination__nav svg { transform: rotate(90deg); }
.sg-pagination__nav--next svg { transform: rotate(-90deg); }

.sg-article__wrap { max-width: 900px; padding-top: clamp(28px, 4vw, 48px); padding-bottom: 48px; }
.sg-article__back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sg-article__back svg { transform: rotate(180deg); }
.sg-article__back:hover { color: var(--ink); }
.sg-article__date { margin-top: 22px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); }
.sg-article__title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; margin-top: 10px; }
.sg-article__hero { margin: 28px 0 0; }
.sg-article__hero img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.sg-article__body { margin-top: 30px; font-size: 17px; color: var(--ink-soft); }
.sg-article__body h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; margin: 1.6em 0 0.5em; }
.sg-article__body h3 { font-size: clamp(18px, 2vw, 21px); line-height: 1.3; margin: 1.4em 0 0.4em; }
.sg-article__body ul, .sg-article__body ol { margin: 0.9rem 0 0.9rem 1.4rem; display: grid; gap: 6px; }
.sg-article__body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.sg-article__body img { max-width: 100%; width: auto; height: auto; max-height: 480px; object-fit: contain; border-radius: var(--r-md); margin: 1.4rem auto; display: block; box-shadow: var(--shadow-sm); }
.sg-article__body strong { color: var(--ink); }
/* Emojis are swapped for <img class="emoji"> by WordPress — keep them inline
   at text size instead of inheriting the article image styles. */
.sg-article__body img.emoji, .sg-article__body img.wp-smiley {
    display: inline-block; width: 1em; height: 1em; max-height: 1em; margin: 0 .07em;
    vertical-align: -0.1em; border-radius: 0; box-shadow: none;
}

/* Scroll motion (gated by html.swg-motion, set inline in <head> when JS runs
   and the visitor does not prefer reduced motion — so content is never hidden
   without JS, and reveals happen before first paint decisions) ---------------- */
.swg-motion .swg-r { opacity: 0; transition: opacity .7s ease, transform .8s cubic-bezier(.16, .68, .3, 1); transition-delay: var(--swg-d, 0ms); }
.swg-motion .swg-r--up { transform: translateY(28px); }
.swg-motion .swg-r--fade { transform: none; }
.swg-motion .swg-r--scale { transform: scale(.94); }
.swg-motion .swg-r--right { transform: translateX(36px); }
.swg-motion .swg-r--left { transform: translateX(-36px); }
.swg-motion .swg-r.is-in { opacity: 1; transform: none; }
/* Ambient float on hero decorations (absolute-positioned, layout-safe). */
.swg-motion .sg-hero-char { animation: swgFloat 7s ease-in-out infinite; }
.swg-motion .sg-about-art__char { animation: swgFloat 8s ease-in-out .5s infinite; }
.swg-motion .sg-cta-band__char { animation: swgFloat 6.5s ease-in-out infinite; }
.swg-motion .sg-gift-badge { animation: sgGiftPop .5s cubic-bezier(.2, .9, .3, 1.2) both, swgFloat 5.5s ease-in-out 1.4s infinite; }
.swg-motion .sg-blob { animation: swgBlob 14s ease-in-out infinite alternate; }
[data-swg-parallax] { will-change: transform; }
@keyframes swgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes swgBlob { from { transform: translate(0, 0) scale(1); } to { transform: translate(12px, -16px) scale(1.07); } }
@media (prefers-reduced-motion: reduce) {
    .swg-r { opacity: 1 !important; transform: none !important; }
    .swg-motion .sg-hero-char, .swg-motion .sg-about-art__char, .swg-motion .sg-cta-band__char, .swg-motion .sg-blob { animation: none; }
}

/* First-visit intro splash ----------------------------------------------------- */
.sg-intro { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: linear-gradient(135deg, #E1623D 0%, #E8834A 48%, #E0A33B 100%); transition: opacity .7s ease; }
.sg-intro__halo { position: absolute; width: 72vmin; height: 72vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .3), transparent 65%); animation: sgIntroHalo 1.9s ease forwards; }
.sg-intro__logo { position: relative; width: min(240px, 52vw); height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .22)); animation: sgIntroLogo .9s cubic-bezier(.2, .9, .3, 1.25) both; }
.sg-intro__tag { position: relative; color: rgba(255, 255, 255, .92); font-size: clamp(11.5px, 1.6vw, 14.5px); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; text-align: center; padding: 0 20px; animation: sgIntroTag .8s ease .45s both; }
.sg-intro.is-done { opacity: 0; pointer-events: none; }
@keyframes sgIntroLogo { from { transform: scale(.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes sgIntroTag { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sgIntroHalo { from { transform: scale(.5); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1.12); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .sg-intro { display: none !important; } }

/* Cookie consent card --------------------------------------------------------- */
.sg-cookies { position: fixed; z-index: 900; left: 20px; bottom: 20px; width: min(370px, calc(100vw - 40px)); background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px 20px; display: grid; gap: 14px; animation: sgPopIn .3s ease; }
.sg-cookies.is-out { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.sg-cookies strong { display: block; font-family: var(--font-display); font-size: 16.5px; color: var(--ink); margin-bottom: 4px; }
.sg-cookies__txt span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.sg-cookies__txt a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.sg-cookies__actions { display: flex; gap: 10px; }
.sg-cookies__actions .sg-btn { flex: 1; }
@media (max-width: 640px) {
    .sg-cookies { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* 404 ------------------------------------------------------------------------ */
.sg-404 { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(70px, 10vw, 130px); }
.sg-404__inner { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }
.sg-404__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.sg-404__blob--1 { width: 420px; height: 420px; background: #FBDDCF; top: -120px; left: -100px; }
.sg-404__blob--2 { width: 380px; height: 380px; background: #F3E6C8; bottom: -140px; right: -80px; }
.sg-404__code { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2.4vw, 26px); font-family: var(--font-display); font-weight: 600; font-size: clamp(96px, 17vw, 190px); line-height: 1; color: var(--ink); }
.sg-404__gift { display: flex; align-items: center; justify-content: center; width: clamp(72px, 12.5vw, 140px); height: clamp(72px, 12.5vw, 140px); border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--gold)); box-shadow: 0 24px 50px -18px rgba(225, 98, 61, .55); animation: sgGiftPop .5s ease; }
.sg-404__gift svg { width: 46%; height: 46%; }
.sg-404__title { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; margin-top: clamp(22px, 4vw, 36px); }
.sg-404__lead { color: var(--muted); font-size: clamp(15.5px, 1.8vw, 18px); line-height: 1.65; max-width: 54ch; margin: 14px auto 0; }
.sg-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 560px) {
    .sg-404__actions { flex-direction: column; width: 100%; max-width: 340px; }
    .sg-404__actions .sg-btn { width: 100%; }
}

/* Legal pages (CGU / CGV) --------------------------------------------------- */
.sg-hero--legal { text-align: center; }
/* Keep the centered title within the SAME 820px column as the body text, so its
   edges line up with the content instead of spanning the full page width. */
.sg-legal-head { max-width: 820px; margin-inline: auto; }
.sg-hero--legal .sg-hero__title { max-width: 100%; }
.sg-legal { max-width: 820px; margin: 0 auto; padding-bottom: 72px; }
/* Only the page title is centered; section headings sit left with the text. */
.sg-legal h2, .sg-legal h3 { text-align: left; }
.sg-legal h2 { font-family: var(--font-display); font-size: 21px; margin: 34px 0 10px; color: var(--ink); }
.sg-legal h3 { font-size: 17px; margin: 22px 0 8px; color: var(--ink); }
.sg-legal p { color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.sg-legal ul { color: var(--muted); line-height: 1.75; margin: 0 0 12px 20px; }
.sg-legal a { color: var(--primary); text-decoration: underline; }

/* Consent checkbox (partner form) */
.sg-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); line-height: 1.5; }
.sg-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.sg-consent a { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* About page ---------------------------------------------------------------- */
.sg-about-art { position: relative; }
.sg-about-art__main { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.sg-about-art__char { position: absolute; bottom: -24px; right: -8px; width: clamp(90px, 14vw, 130px); height: auto; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .18)); }
.sg-imgcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.sg-imgcard__img { height: 190px; background-size: cover; background-position: center; }
.sg-imgcard__body { padding: 22px 24px; }
.sg-imgcard__body h3 { font-size: 21px; }
.sg-imgcard__body p { color: var(--muted); margin-top: 8px; }
.sg-about-support img { width: 100%; border-radius: var(--r-lg); display: block; }
.sg-about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sg-about-split__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow); display: block; }
.sg-about-chars { display: flex; gap: 16px; margin-top: 26px; align-items: flex-end; }
.sg-about-chars img { height: 88px; width: auto; }

/* Decorative imagery across pages ------------------------------------------- */
.sg-hero-char { position: absolute; bottom: -34px; left: -26px; width: clamp(88px, 12vw, 128px); height: auto; z-index: 3; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .18)); }

.sg-feature-band__media { justify-self: center; }
.sg-feature-band__media img { width: 100%; max-width: 360px; border-radius: var(--r-lg); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); display: block; }

.sg-cta-band { position: relative; overflow: hidden; }
.sg-cta-band__char { position: absolute; right: clamp(8px, 4vw, 44px); bottom: 0; width: clamp(88px, 12vw, 150px); height: auto; opacity: .96; pointer-events: none; }

.sg-archive-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.sg-archive-hero__media { position: relative; }
.sg-archive-hero__media img { position: relative; width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow); display: block; }

.sg-faq__char { display: block; width: 128px; height: auto; margin: 0 auto -16px; position: relative; z-index: 2; }
.sg-contact__char { width: 130px; height: auto; margin-top: 12px; }

@media (max-width: 860px) {
    .sg-archive-hero { grid-template-columns: 1fr; }
    .sg-archive-hero__media, .sg-cta-band__char { display: none; }
    .sg-hero-char { width: 92px; left: -10px; }
}

/* FAQ ----------------------------------------------------------------------- */
.sg-faq { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; padding: 10px 0 70px; }
.sg-faq__section { font-size: 22px; margin: 56px 0 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.sg-faq__section:first-child { margin-top: 8px; padding-top: 0; border-top: 0; }
.swigift .sg-faq__section { margin-bottom: 15px; }
.sg-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; transition: border-color .15s; }
.sg-faq__item[open] { border-color: var(--line-strong); }
.sg-faq__item summary { list-style: none; cursor: pointer; padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; }
.sg-faq__item summary::-webkit-details-marker { display: none; }
.sg-faq__icon { transition: transform .2s; flex: none; display: inline-flex; }
.sg-faq__item[open] .sg-faq__icon { transform: rotate(180deg); }
.sg-faq__answer { padding: 0 22px 20px; color: var(--muted); line-height: 1.65; font-size: 14px; }
.sg-faq__aside { position: sticky; top: calc(var(--head-h) + 16px); }

@media (max-width: 1024px) {
    .sg-about-split { grid-template-columns: 1fr; }
    .sg-faq { grid-template-columns: 1fr; }
    .sg-faq__aside { position: static; }
}

/* ===================== FOOTER ===================== */
.sg-footer { background: var(--ink); color: rgba(255,255,255,.66); padding: 64px 0 40px; }
.sg-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px,5vw,40px); }
.sg-footer__about { max-width: 300px; font-size: 14.5px; line-height: 1.7; margin-top: 16px; }
.sg-footer .sg-brand { color: #fff; }
.sg-footer__col h4 { color: #fff; font-weight: 600; margin-bottom: 14px; font-family: var(--font-body); font-size: 14px; letter-spacing: .02em; }
.sg-footer__col a { display: block; margin-bottom: 10px; color: rgba(255,255,255,.66); font-size: 14.5px; }
.sg-footer__col a:hover { color: #fff; }
.sg-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin: 44px auto 0; padding: 22px clamp(20px,5vw,40px) 0; max-width: var(--container); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.sg-footer__credit { opacity: .75; }
.sg-footer__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sg-footer__credit a:hover { color: #fff; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .sg-home-hero__grid, .sg-feature-band, .sg-tunnel, .sg-checkout, .sg-twocol, .sg-details, .sg-form, .sg-conf-2col, .sg-contact { grid-template-columns: 1fr; }
    .sg-cats { grid-template-columns: repeat(2, 1fr); }
    .sg-preview-panel, .sg-live-preview, .sg-offer-card, .sg-recap { position: static; }
    .sg-home-hero__art { display: flex; justify-content: center; }
    .sg-home-hero__art .sg-giftcard { transform: none; }
}
/* Header: with 5 nav links + language pill + icons + CTA, the full bar needs
   ~1030px — below that the nav collapses to the burger (tablet included);
   the CTA and the language pill stay visible down to small phones. */
@media (max-width: 1080px) {
    .sg-head__nav, .sg-head__link { display: none; }
    .sg-burger { display: inline-flex; }
}
@media (max-width: 600px) {
    .sg-head__actions .sg-btn { display: none; }
}
@media (max-width: 860px) {
    .sg-steps, .sg-quotes, .sg-footer__top { grid-template-columns: 1fr; }
    .sg-grid-3 { grid-template-columns: 1fr 1fr; }
}
/* Footer: 2×2 columns on tablets before the single column of phones. */
@media (min-width: 861px) and (max-width: 1024px) {
    .sg-footer__top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 560px) {
    .sg-grid-3, .sg-bons-grid, .sg-feature-grid, .sg-delivery-grid, .sg-cats { grid-template-columns: 1fr; }
    .sg-row { flex-direction: column; gap: 0; }
    .sg-giftcard { width: 100%; max-width: 340px; }
}

/* Retour 4 — bon info visibility, bon numbering, recap overflow ------------- */
/* 5. Validity shown directly on each bon tile in the tunnel (kept in recap). */
.sg-pick__valid { display: block; font-size: 12px; font-weight: 600; color: var(--emerald); margin-top: 4px; }
/* 6. The show-amount toggle must catch the eye (tinted, no longer neutral grey). */
.sg-switch-row--hl { background: #FDF3ED; border-color: rgba(225, 98, 61, .35); }
/* 4. "Voir les conditions" text link variant of the bon-conditions trigger. */
.sg-bonhelp--inline { margin-top: 10px; }
.sg-bonhelp__btn--link { width: auto; height: auto; border: 0; border-radius: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.sg-bonhelp__btn--link:hover { color: var(--ink); }
/* 23. Each bon card of the partner form is clearly its own numbered block. */
.sg-bonform__head { margin-bottom: 12px; }
.sg-bonform__num { display: inline-block; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; border-radius: 999px; padding: 4px 12px; }
.sg-bons-repeat > .sg-bonform { border-color: var(--line-strong); }
.sg-bons-repeat > .sg-bonform:nth-child(even) { background: #FBF6F1; }
/* 1. Long unbroken strings must never push « Retirer » out of the recaps. */
.sg-recap__line { overflow-wrap: anywhere; }
.sg-recap__line > div { min-width: 0; }
[data-swg-co-items] .sg-recap__line .sg-muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-cart-line__body { overflow-wrap: anywhere; }
.sg-cart-line__body > .sg-muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 1. Live character counter under the card editor. */
.sg-editor-count { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--muted); }
.sg-editor-count.is-max { color: var(--primary); font-weight: 600; }

/* Retour 5 — delivery message, vacation mode -------------------------------- */
/* Step-2 notice: the admin "Message de livraison"; --warn = vacation mode. */
.sg-ship-notice { background: #FFFBEF; border: 1.5px solid #FFE9A8; border-radius: var(--r-md); padding: 14px 18px; font-size: 14px; line-height: 1.55; color: var(--ink); margin-bottom: 18px; }
.sg-ship-notice--warn { background: #FDF3ED; border-color: rgba(225, 98, 61, .35); }
/* Vacation mode: physical delivery tiles are visibly suspended. */
.sg-delivery.is-off { opacity: .45; pointer-events: none; filter: grayscale(.35); }
/* Site-wide vacation banner under the nav. */
.sg-site-notice { background: #FDF3ED; color: var(--ink); border-bottom: 1px solid rgba(225, 98, 61, .3); padding: 10px 18px; text-align: center; font-size: 14px; line-height: 1.5; }

/* Retour 6 — card studio tool: colour/size + free move/resize --------------- */
/* Colour swatches + custom picker. */
.sg-textool__row { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sg-textool__row:first-of-type { margin-top: 0; }
.sg-textool__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.sg-textool__label b { font-weight: 600; color: var(--primary); }
.sg-textool__swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sg-textool__swatch { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); cursor: pointer; padding: 0; transition: transform .12s, box-shadow .12s; }
.sg-textool__swatch:hover { transform: scale(1.12); }
.sg-textool__swatch.is-on { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--primary); }
.sg-textool__custom { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; border: 1.5px dashed var(--line-strong); position: relative; cursor: pointer; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.sg-textool__custom input { position: absolute; inset: -6px; width: 40px; height: 40px; opacity: 0; cursor: pointer; }
.sg-textool__range { width: 100%; accent-color: var(--primary); }
/* Free move/resize on the card. The text-zone handles live on a SIBLING
   overlay (.sg-a5__ctrl) that mirrors the zone rect — children extending
   below the zone would inflate its scrollHeight and defeat the auto-fit.
   Visibility is driven by the can-move-* classes JS sets on .sg-a5. */
.sg-a5__ctrl { position: absolute; z-index: 5; pointer-events: none; display: none; }
.sg-a5.can-move-text .sg-a5__ctrl { display: block; }
.sg-a5__grab { position: absolute; top: -12px; left: -12px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: grab; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); user-select: none; touch-action: none; pointer-events: auto; }
.sg-a5__resize { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2.5px solid var(--primary); cursor: nwse-resize; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); touch-action: none; pointer-events: auto; }
/* Photo: its handle sits INSIDE (the photo clips overflowing corners). */
.sg-a5__photo .sg-a5__resize { right: 6px; bottom: 6px; display: none; }
.sg-a5.can-move-photo .sg-a5__photo.has-photo .sg-a5__resize { display: block; }
.sg-a5.can-move-photo .sg-a5__photo.has-photo { cursor: grab; touch-action: none; }
.sg-a5__grab:active, .sg-a5.can-move-photo .sg-a5__photo.has-photo:active { cursor: grabbing; }

/* Card-model category chips (tunnel step 3) --------------------------------- */
/* Horizontal pill row; swipes on mobile (no wrap, hidden scrollbar). */
.sg-modelcats { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sg-modelcats::-webkit-scrollbar { display: none; }
.sg-modelcat { flex: none; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s, transform .12s; }
.sg-modelcat:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.sg-modelcat.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Client-validated hero visuals (transparent WebP) -------------------------- */
/* Home hero: the confetti photo replaces the CSS bon miniature. Cropped to a
   4:3 frame (the source is panoramic, subject centered) with rounded corners. */
/* img.<class> on purpose: the generic `.swigift img { max-width: 100%; }`
   (0-1-1) outranks a lone class (0-1-0) and was defeating the size cap. */
img.sg-hero-photo { position: relative; z-index: 2; display: block; width: 100%; max-width: 390px; margin: 0 auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.swg-motion .sg-hero-photo { animation: swgFloat 7s ease-in-out .4s infinite; }
/* Art images: rounded like the site's cards, but a contour drop-shadow
   instead of a rectangular box-shadow (the WebP has transparent edges). */
.sg-archive-hero__media img.is-art { border-radius: var(--r-xl); box-shadow: none; filter: drop-shadow(0 18px 34px rgba(20, 19, 24, .2)); }

/* Small brand-coloured confetti behind the hero photo, spilling to the right. */
.sg-home-hero__art::after {
    content: ''; position: absolute; z-index: 1; pointer-events: none;
    top: 4%; right: -2%; width: 46%; height: 92%;
    background-image:
        radial-gradient(circle 4px at 88% 6%,  #E0A33B 97%, transparent),
        radial-gradient(circle 3px at 72% 14%, #E1623D 97%, transparent),
        radial-gradient(circle 5px at 95% 22%, #E06A89 97%, transparent),
        radial-gradient(circle 3px at 80% 30%, #1E7A5E 97%, transparent),
        radial-gradient(circle 4px at 90% 41%, #E1623D 97%, transparent),
        radial-gradient(circle 3px at 70% 50%, #E0A33B 97%, transparent),
        radial-gradient(circle 5px at 97% 58%, #E0A33B 97%, transparent),
        radial-gradient(circle 3px at 84% 66%, #E06A89 97%, transparent),
        radial-gradient(circle 4px at 74% 78%, #1E7A5E 97%, transparent),
        radial-gradient(circle 3px at 93% 84%, #E1623D 97%, transparent),
        radial-gradient(circle 4px at 82% 94%, #E0A33B 97%, transparent),
        radial-gradient(circle 3px at 65% 90%, #E06A89 97%, transparent);
}
.swg-motion .sg-home-hero__art::after { animation: swgFloat 9s ease-in-out .8s infinite; }

/* TranslatePress language switcher in the header ---------------------------- */
/* TP inlines its palette as CSS custom properties on the wrapper — they must
   be overridden with !important (inline style) to blend into the warm bar. */
.sg-head__lang { display: flex; align-items: center; }
.sg-head__lang .trp-shortcode-switcher__wrapper,
.sg-drawer__lang .trp-shortcode-switcher__wrapper {
    --bg: transparent !important;
    --bg-hover: #FDF3ED !important;
    --text: var(--ink) !important;
    --text-hover: var(--primary) !important;
    --border: 0 !important;
    --border-width: 0 !important;
    --border-color: transparent !important;
    --border-radius: 10px !important;
    --flag-radius: 3px !important;
    --flag-size: 15px !important;
    --font-size: 13px !important;
    font-family: inherit;
}
.sg-head__lang .trp-language-item-name,
.sg-drawer__lang .trp-language-item-name { font-weight: 600; letter-spacing: .02em; }
/* The dropdown list: clean white card, small radius, soft shadow. */
.sg-head__lang .trp-switcher-dropdown-list,
.sg-drawer__lang .trp-switcher-dropdown-list { border-radius: 10px !important; box-shadow: var(--shadow); overflow: hidden; background: #fff !important; }
/* Fine alignment: everything on one centred row, chevron snug to the code. */
.sg-head__lang .trp-shortcode-switcher__wrapper { display: flex; align-items: center; }
.sg-head__lang .trp-current-language-item__wrapper,
.sg-drawer__lang .trp-current-language-item__wrapper { display: flex !important; align-items: center !important; gap: 0 !important; }
.sg-head__lang .trp-language-item,
.sg-drawer__lang .trp-language-item { display: flex !important; align-items: center !important; gap: 6px !important; line-height: 1 !important; }
.sg-head__lang .trp-flag-image,
.sg-drawer__lang .trp-flag-image { display: block; }
.sg-head__lang .trp-shortcode-arrow,
.sg-drawer__lang .trp-shortcode-arrow { width: 15px; height: 15px; margin-left: -4px; flex: none; }
/* Mobile drawer variant. */
.sg-drawer__lang { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .sg-head__lang { display: none; } }

/* Responsive pass (tablette/mobile) ----------------------------------------- */
/* Guard: decorative offsets (confetti, blobs) must never create a horizontal
   scroll. `clip` does not spawn a scroll container, so sticky keeps working. */
html, body { overflow-x: clip; }
/* Drawer: primary CTA above the language row. */
.sg-drawer__cta { margin-top: 14px; justify-content: center; }
/* Tunnel step pills: one swipeable line on phones instead of an uneven wrap. */
@media (max-width: 640px) {
    .sg-perso__steps { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .sg-perso__steps::-webkit-scrollbar { display: none; }
    .sg-perso__steps span { flex: none; }
}
/* Checkout stepbar: on phones, only the active step keeps its label. */
@media (max-width: 560px) {
    .sg-stepbar { gap: 8px; }
    .sg-step:not(.is-active) .sg-step__label { display: none; }
}
/* Delivery tiles stack on phones: shorter visuals keep the step scannable. */
@media (max-width: 560px) {
    .sg-delivery__img { height: 150px; }
}
/* Panels breathe less on phones (container padding already frames them). */
@media (max-width: 560px) {
    .sg-panel { padding: 22px 18px; }
}

/* Responsive pass 2 — latent fixes ------------------------------------------ */
/* Drawer CTA/language only when their header versions are hidden (<=600px):
   between 601 and 1080px the open drawer duplicated both. */
@media (min-width: 601px) {
    .sg-drawer__cta, .sg-drawer__lang { display: none; }
}
/* Signature grid (1fr + fixed 240px) must collapse on phones. */
@media (max-width: 640px) {
    .sg-signature { grid-template-columns: 1fr; }
}
