/* Page "Fais tes courses" (#FTC) — page autonome, pensée mobile d'abord.
   Deux thèmes : Dark (par défaut) et Light, choisis par le bouton du header
   (attribut data-theme sur <html>, mémorisé dans le navigateur).
   Polices hébergées localement (pas d'appel à Google Fonts). */
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/oswald-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
}

/* ---------- Dark (défaut) ---------- */
:root {
    color-scheme: dark;
    --bg: #111111;
    --bg-glass: rgba(17, 17, 17, .88);
    --bg-clear: rgba(17, 17, 17, 0);
    --surface: #1E1E1E;
    --surface-2: #262626;
    --hover: #222222;
    --line: #2C2C2C;
    --control: #3A3A3A;
    --control-strong: #555555;
    --text: #F3F1EF;
    --text-soft: #CFCAC7;
    --muted: #8F8A87;
    --faint: #6B6664;
    --pic: #D9D5D2;
    --accent: #EC2939; /* rouge du drapeau du logo */
    --accent-press: #C51C2B;
    --accent-soft: rgba(236, 41, 57, .14);
    --accent-ring: rgba(236, 41, 57, .55);
    --accent-ring-0: rgba(236, 41, 57, 0);
    --accent-fill: var(--accent);           /* fond des éléments d'action (dégradé en Girly) */
    --accent-shadow: rgba(236, 41, 57, .25);
    --bg-pattern: none;                     /* motif de fond (cœurs en Girly) */
    --go-bg: #111111;                       /* bouton Commander de la barre mobile */
    --box-fill: rgba(236, 41, 57, .08);
    --checked-bg: #241A1B;
    --checked-hover: #291C1E;
    --sheet-bg: #1A1A1A;
    --scrim: rgba(0, 0, 0, .6);
    --toast-bg: #F3F1EF;
    --toast-text: #111111;
    --ok: #3DBE7A;
    --logo-filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, .95)) drop-shadow(0 0 1.2px rgba(255, 255, 255, .6));
    --logo-halo: rgba(236, 41, 57, .22);
    --logo-halo-2: rgba(236, 41, 57, .06);
    --display: "Oswald", "Arial Narrow", Impact, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --r: 6px;
}

/* ---------- Light ---------- */
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #F3F1EF;
    --bg-glass: rgba(243, 241, 239, .9);
    --bg-clear: rgba(243, 241, 239, 0);
    --surface: #FFFFFF;
    --surface-2: #ECE8E5;
    --hover: #FAF8F7;
    --line: #E6E1DD;
    --control: #D5CFCB;
    --control-strong: #A9A19C;
    --text: #161413;
    --text-soft: #3D3835;
    --muted: #6E6865;
    --faint: #958E8A;
    --pic: #2B2725;
    --accent: #E0192A;
    --accent-press: #BD1221;
    --accent-soft: rgba(224, 25, 42, .08);
    --accent-ring: rgba(224, 25, 42, .45);
    --accent-ring-0: rgba(224, 25, 42, 0);
    --accent-fill: var(--accent);
    --accent-shadow: rgba(224, 25, 42, .22);
    --box-fill: rgba(224, 25, 42, .05);
    --checked-bg: #FDEEEF;
    --checked-hover: #FBE6E8;
    --sheet-bg: #FFFFFF;
    --scrim: rgba(22, 20, 19, .45);
    --toast-bg: #161413;
    --toast-text: #FFFFFF;
    --logo-filter: none;
    --logo-halo: rgba(224, 25, 42, .12);
    --logo-halo-2: rgba(224, 25, 42, .03);
}

/* ---------- Girly : rose poudré, prune, dégradé fuchsia → lilas, semis de petits cœurs ---------- */
:root[data-theme="girly"] {
    color-scheme: light;
    --bg: #FFF0F6;
    --bg-glass: rgba(255, 240, 246, .9);
    --bg-clear: rgba(255, 240, 246, 0);
    --surface: #FFFFFF;
    --surface-2: #FFE2EE;
    --hover: #FFF7FA;
    --line: #F9D5E4;
    --control: #F2B8CF;
    --control-strong: #D98AAE;
    --text: #3B1730;
    --text-soft: #5E3450;
    --muted: #8F5F7C;
    --faint: #B889A5;
    --pic: #7A2E63;
    --accent: #E0288A;
    --accent-press: #C21774;
    --accent-soft: rgba(224, 40, 138, .10);
    --accent-ring: rgba(224, 40, 138, .45);
    --accent-ring-0: rgba(224, 40, 138, 0);
    --accent-fill: linear-gradient(135deg, #F0418F 0%, #B04BE0 100%);
    --accent-shadow: rgba(176, 75, 224, .28);
    --go-bg: #3B1730;
    --box-fill: rgba(224, 40, 138, .06);
    --checked-bg: #FFE4F0;
    --checked-hover: #FFDCEB;
    --sheet-bg: #FFFFFF;
    --scrim: rgba(59, 23, 48, .35);
    --toast-bg: #3B1730;
    --toast-text: #FFFFFF;
    --logo-filter: none;
    --logo-halo: rgba(240, 65, 143, .22);
    --logo-halo-2: rgba(176, 75, 224, .08);
    --bg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='%23E0288A' fill-opacity='.07'%3E%3Cpath d='M18 26s-7-4.3-8.6-8.5C8.2 14.4 10.2 11 13.4 11c1.9 0 3.1 1 4.6 2.8 1.5-1.8 2.7-2.8 4.6-2.8 3.2 0 5.2 3.4 4 6.5C25 21.7 18 26 18 26z'/%3E%3Cpath d='M54 62s-4.7-2.9-5.8-5.7c-.8-2.1.6-4.3 2.7-4.3 1.3 0 2.1.7 3.1 1.9 1-1.2 1.8-1.9 3.1-1.9 2.1 0 3.5 2.2 2.7 4.3C58.7 59.1 54 62 54 62z'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-theme="girly"] .qo-hero h1 span { background: var(--accent-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="girly"] .qo-hashtag { border-color: var(--accent); background: rgba(255, 255, 255, .6); }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { background-image: var(--bg-pattern); background-attachment: fixed; }
body {
    color: var(--text);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    padding-top: env(safe-area-inset-top, 0px);
    transition: background-color .25s, color .25s;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.qo-app { max-width: 480px; margin: 0 auto; padding-inline: 16px; padding-block: 0 140px; }

/* ---------- header ---------- */
.qo-topbar {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: 52px; margin-inline: -16px; padding-inline: 16px;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s, background-color .25s;
}
.qo-topbar.is-scrolled { border-bottom-color: var(--line); }
.qo-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 8px 8px 0; }
.qo-back:hover { color: var(--text); }
.qo-mini-logo { height: 26px; width: auto; opacity: 0; transform: translateY(4px); transition: .25s; filter: var(--logo-filter); }
.qo-topbar.is-scrolled .qo-mini-logo { opacity: 1; transform: none; }
.qo-top-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.qo-theme-seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); }
.qo-theme-seg button {
    display: grid; place-items: center; width: 28px; height: 26px; border: 0; border-radius: 999px;
    background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.qo-theme-seg button svg { width: 15px; height: 15px; }
.qo-theme-seg button:hover { color: var(--text); }
.qo-theme-seg button[aria-checked="true"] { background: var(--accent-fill); color: #fff; }
.qo-theme-seg button:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.qo-cart-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; }
.qo-badge {
    position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--accent-fill); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
    transform: scale(0); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.qo-badge.is-on { transform: scale(1); }

/* ---------- hero ---------- */
.qo-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 14px 22px; }
.qo-logo-wrap { position: relative; width: min(300px, 82%); aspect-ratio: 2411 / 1235; }
.qo-logo-wrap::before {
    content: ""; position: absolute; inset: -18% -10%; z-index: 0;
    background: radial-gradient(closest-side, var(--logo-halo), var(--logo-halo-2) 55%, transparent 75%);
}
.qo-logo-wrap img { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: var(--logo-filter); }
.qo-hashtag {
    margin-top: 16px; padding: 3px 10px; border: 1px solid var(--accent); border-radius: 999px;
    font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .12em; color: var(--accent);
}
.qo-hero h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 40px; line-height: 1; margin: 18px 0 6px; }
.qo-hero h1 span { color: var(--accent); }
.qo-hashtag + h1 { margin-top: 10px; }
.qo-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.qo-cart-t small { font-family: var(--body); font-size: 12px; font-weight: 600; opacity: .85; }

/* ---------- navigation par section ---------- */
.qo-jump {
    position: sticky; top: calc(env(safe-area-inset-top, 0px) + 52px); z-index: 15;
    display: flex; gap: 8px; margin-inline: -16px; padding: 8px 16px 10px;
    background: linear-gradient(var(--bg) 75%, var(--bg-clear));
}
.qo-jump a {
    flex: 1; text-align: center; text-decoration: none;
    font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 600;
    padding: 9px 0; border-radius: var(--r); background: var(--surface); color: var(--muted); border: 1px solid var(--line); transition: .15s;
}
.qo-jump a.is-active { color: var(--text); border-color: var(--control-strong); }
.qo-jump a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.qo-jump svg { width: 15px; height: 15px; flex: none; }
.qo-jump a.is-active svg { color: var(--accent); }

/* ---------- blocs ---------- */
.qo-block { margin-top: 22px; scroll-margin-top: 120px; }
.qo-block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.qo-block-head h2, .qo-search h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 24px; letter-spacing: .03em; margin: 0; }
.qo-block-head h2 { display: inline-flex; align-items: center; gap: 10px; }
.qo-block-head h2 svg { width: 24px; height: 24px; flex: none; color: var(--accent); }
.qo-block-count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

.qo-pills-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 6px; }
.qo-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
.qo-pills::-webkit-scrollbar { display: none; }
.qo-pill { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500; background: var(--surface-2); color: var(--text-soft); cursor: pointer; transition: background .15s, color .15s; }
.qo-pill[aria-pressed="true"] { background: var(--accent-fill); color: #fff; }

.qo-list { background: var(--surface); border-radius: 10px; overflow: hidden; }
.qo-row {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) 48px; column-gap: 12px; align-items: center;
    padding: 14px 10px 14px 14px; position: relative; transition: background .2s, opacity .2s;
}
.qo-row + .qo-row, .qo-list-label + .qo-row { border-top: 1px solid var(--line); }
.qo-row.is-checked { background: var(--checked-bg); }
.qo-row.is-checked::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-fill); }
.qo-row.is-out .qo-sub { color: var(--faint); }
.qo-row.is-busy { opacity: .6; pointer-events: none; }
.qo-pic { width: 36px; height: 36px; display: grid; place-items: center; color: var(--pic); border: 1px solid var(--line); border-radius: 8px; }
.qo-row.is-checked .qo-pic { color: var(--accent); border-color: var(--accent-ring); }
.qo-pic svg { width: 22px; height: 22px; }
.qo-info { min-width: 0; }
.qo-name { font-weight: 600; font-size: 17px; line-height: 1.2; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.qo-row-simple .qo-name { font-size: 15px; }
.qo-code { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 2px 5px; border-radius: 3px; background: var(--surface-2); color: var(--text-soft); }
/* Nom du produit + prix sur la même ligne, même typo ; le nom se tronque, jamais le prix */
.qo-sub { display: flex; min-width: 0; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.qo-sub-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qo-brand { font-weight: 700; color: var(--text); }
.qo-sub-price { flex: none; white-space: nowrap; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.qo-sub-name + .qo-sub-price::before { content: "—"; margin: 0 6px; color: var(--faint); font-weight: 400; }
.qo-sub-price:empty { display: none; }
.qo-precise-btn {
    border: 0; background: none; padding: 0; margin-top: 4px; font-size: 12px; color: var(--muted); cursor: pointer;
    text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 3px;
    display: inline-flex; gap: 4px; align-items: center;
}
.qo-precise-btn.is-set { color: var(--text); text-decoration-color: var(--accent); }

/* case à cocher : contour rouge + halo animé tant que le client n'a rien ajouté */
.qo-check { position: relative; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; }
.qo-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qo-box {
    width: 30px; height: 30px; border-radius: 6px; border: 2px solid var(--accent); background: var(--box-fill);
    display: grid; place-items: center; transition: background .15s, border-color .15s, transform .15s;
}
.qo-box svg { width: 19px; height: 19px; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .22s ease .05s; }
.qo-app:not(.is-engaged) .qo-row:not(.is-checked):not(.is-out) .qo-box { animation: qo-pulse 2.4s ease-out infinite; }
.qo-app:not(.is-engaged) .qo-row:nth-child(2n) .qo-box { animation-delay: .4s; }
.qo-app:not(.is-engaged) .qo-row:nth-child(3n) .qo-box { animation-delay: .8s; }
.qo-check:hover .qo-box { background: var(--accent-soft); }
.qo-check input:checked + .qo-box { background: var(--accent-fill); border-color: var(--accent); animation: qo-pop .25s ease-out; }
.qo-check input:checked + .qo-box svg { stroke-dashoffset: 0; }
.qo-check input:active + .qo-box { transform: scale(.9); }
.qo-check input:focus-visible + .qo-box { outline: 2px solid var(--text); outline-offset: 3px; }
.qo-check input:disabled { cursor: not-allowed; }
.qo-check input:disabled + .qo-box { border-color: var(--control); background: none; }
@keyframes qo-pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-ring); }
    70% { box-shadow: 0 0 0 9px var(--accent-ring-0); }
    100% { box-shadow: 0 0 0 0 var(--accent-ring-0); }
}
@keyframes qo-pop {
    0% { transform: scale(.85); }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* réglages + quantité */
.qo-opts { grid-column: 2 / 4; display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; min-width: 0; }
.qo-row-simple .qo-opts { margin-top: 0; }
.qo-row-simple.is-checked .qo-opts { margin-top: 10px; justify-content: flex-end; }
.qo-row-variants .qo-opts, .qo-row-variants.is-checked .qo-opts { margin-top: 10px; justify-content: space-between; }
.qo-opts-stack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.qo-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px 0; }
.qo-chips:empty { padding: 0; }
.qo-chips::-webkit-scrollbar { display: none; }
.qo-chip {
    flex: none; border: 1px solid var(--control); background: transparent; border-radius: 5px; padding: 6px 10px;
    font-size: 12.5px; font-weight: 500; color: var(--text-soft); cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.qo-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.qo-chips-sub .qo-chip { padding: 4px 9px; font-size: 12px; }
.qo-swatch { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35); }
.qo-swatch[aria-pressed="true"] { border-color: var(--surface); box-shadow: 0 0 0 2px var(--accent); }
.qo-stepper { flex: none; display: none; align-items: center; border: 1px solid var(--control); border-radius: 5px; overflow: hidden; }
.qo-row.is-checked .qo-stepper { display: flex; }
.qo-stepper button { border: 0; background: none; width: 32px; height: 30px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--text-soft); }
.qo-stepper button:active { background: var(--surface-2); }
.qo-stepper span { min-width: 22px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* plusieurs réglages au panier sur une même ligne (ex: 03RL + 07RL) */
.qo-row.has-items::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-fill); }
.qo-taken { grid-column: 2 / 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.qo-taken .qo-stepper { margin-left: auto; }
.qo-tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 9px; border-radius: 5px;
    background: var(--accent-soft); border: 1px solid var(--accent-ring); font-size: 12px; font-weight: 500; color: var(--text);
    font-variant-numeric: tabular-nums;
}
.qo-tag b { font-weight: 700; }
.qo-tag.is-current { background: var(--accent-fill); border-color: var(--accent); color: #fff; }
.qo-tag-x { border: 0; background: none; width: 20px; height: 20px; border-radius: 3px; display: grid; place-items: center; cursor: pointer; color: inherit; opacity: .75; }
.qo-tag-x:hover { opacity: 1; background: rgba(0, 0, 0, .12); }
.qo-chip, .qo-swatch { position: relative; }
.qo-chip.has-item::after, .qo-swatch.has-item::after {
    content: ""; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.qo-swatch.has-item::after { top: -1px; right: -1px; width: 9px; height: 9px; border: 2px solid var(--surface); }

.qo-list-label { padding: 14px 14px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); border-top: 1px solid var(--line); }

/* ---------- mise en avant des cases à cocher (bandeau façon flash old school) ---------- */
.qo-hl-new { --hl: #F5C518; --hl-ink: #161413; --hl-soft: rgba(245, 197, 24, .10); }
.qo-hl-sale { --hl: var(--accent); --hl-ink: #FFFFFF; --hl-soft: var(--accent-soft); }
.qo-hl-favorite { --hl: #FF5FA2; --hl-ink: #FFFFFF; --hl-soft: rgba(255, 95, 162, .10); }
.qo-hl-last { --hl: #FF8A1F; --hl-ink: #161413; --hl-soft: rgba(255, 138, 31, .10); }
.qo-row.qo-hl { background: linear-gradient(90deg, var(--hl-soft), transparent 75%); box-shadow: inset 3px 0 0 var(--hl); }
.qo-row.qo-hl.is-checked { background: linear-gradient(90deg, var(--hl-soft), var(--checked-bg) 75%); }
.qo-row.qo-hl .qo-pic { color: var(--hl); border-color: var(--hl); }
.qo-ribbon {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 5px; margin: 0 0 7px -2px; padding: 3px 13px 3px 12px;
    font-family: var(--display); font-weight: 600; font-size: 11.5px; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase;
    color: var(--hl-ink); background: var(--hl);
    /* bouts crantés comme les bandeaux des planches de flash */
    clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%);
    transform: rotate(-2deg); transform-origin: left center;
}
.qo-ribbon svg { width: 12px; height: 12px; fill: currentColor; stroke: none; flex: none; }
.qo-hl-sale .qo-ribbon svg path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
/* reflet qui traverse le bandeau de temps en temps */
.qo-ribbon::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    animation: qo-shine 4.5s ease-in-out infinite;
}
@keyframes qo-shine { 0%, 70% { left: -40%; } 100% { left: 130%; } }
.qo-old-price { color: var(--faint); font-weight: 500; margin-right: 6px; text-decoration-thickness: 1.5px; }
.qo-old-price:empty { display: none; }
.qo-hl-sale .qo-sub-price { color: var(--accent); }
.qo-stock-note {
    display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--hl);
}
.qo-stock-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hl); animation: qo-blink 1.4s ease-in-out infinite; }
@keyframes qo-blink { 50% { opacity: .25; } }

/* ---------- texte libre du bas de page ---------- */
.qo-note-card {
    position: relative; margin-top: 28px; padding: 22px 20px 18px; border-radius: 12px;
    background: var(--surface); border: 1.5px dashed var(--control-strong);
}
.qo-note-card::before {
    /* Le guillemet "casse" la bordure : son fond prend la couleur de la page au-dessus de la
       bordure et celle de la carte en dessous, pour se fondre dans les deux (pas de carré) */
    content: "“"; position: absolute; top: -13px; left: 16px; height: 24px; padding: 0 8px;
    background: linear-gradient(var(--bg) 50%, var(--surface) 50%);
    font-family: var(--display); font-size: 44px; line-height: 44px; color: var(--accent);
}
.qo-note-card h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 20px; letter-spacing: .04em; margin: 0 0 8px; }
.qo-note-body { color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.qo-note-body p { margin: 0 0 10px; }
.qo-note-body p:last-child { margin-bottom: 0; }
.qo-note-body strong { color: var(--text); }
.qo-note-body a { color: var(--accent); text-underline-offset: 2px; word-break: break-word; }

/* ---------- recherche ---------- */
.qo-search { margin-top: 28px; }
.qo-search h2 { margin-bottom: 10px; }
.qo-search-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; color: var(--muted); }
.qo-search-box:focus-within { border-color: var(--control-strong); }
.qo-search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; padding: 14px 0; }
.qo-search-box input::placeholder { color: var(--faint); }
.qo-results { margin-top: 8px; }
.qo-result { display: grid; grid-template-columns: minmax(0, 1fr) 48px; column-gap: 12px; align-items: center; padding: 12px 10px 12px 14px; }
.qo-result + .qo-result { border-top: 1px solid var(--line); }
.qo-result .qo-name { font-size: 14px; }
.qo-add { width: 48px; height: 48px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.qo-add svg { stroke: var(--accent); stroke-width: 2.6; stroke-dasharray: none; stroke-dashoffset: 0; width: 16px; height: 16px; }
.qo-add.is-done .qo-box { background: var(--accent); }
.qo-add.is-done svg { stroke: #fff; }
.qo-empty { padding: 14px; color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- barre panier (mobile) ---------- */
.qo-cartbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(var(--bg-clear), var(--bg) 30%);
    transform: translateY(110%); transition: transform .3s cubic-bezier(.2, .9, .3, 1);
}
.qo-cartbar.is-on { transform: none; }
.qo-cartbar-inner { max-width: 448px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: var(--accent-fill); color: #fff; border-radius: 12px; padding: 10px 10px 10px 18px; box-shadow: 0 10px 30px var(--accent-shadow); }
.qo-cart-meta {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start;
    border: 0; background: none; color: inherit; padding: 0; text-align: left; cursor: pointer;
}
.qo-cart-n { font-size: 12px; opacity: .9; display: inline-flex; align-items: center; gap: 4px; }
.qo-cart-n u { text-underline-offset: 2px; }
.qo-cart-t { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.qo-cart-go {
    flex: none; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--go-bg); color: #fff;
    font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: 15px; padding: 13px 16px; border-radius: 8px;
}
.qo-cart-go:active { transform: scale(.97); }

/* ---------- panneau panier : feuille sur mobile (ouverte depuis la barre), colonne en desktop ---------- */
.qo-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 52; max-width: 480px; margin: 0 auto;
    transform: translateY(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .9, .3, 1), visibility 0s .3s;
}
.qo-panel.is-open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .9, .3, 1); }
.qo-panel .qo-panel-card { border-radius: 16px 16px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--sheet-bg); }
.qo-panel .qo-panel-list { max-height: 50vh; }
.qo-panel-close { margin-left: auto; border: 0; background: var(--surface-2); color: var(--text); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.qo-panel-head { gap: 10px; }
.qo-panel-card { background: var(--surface); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.qo-panel-head { display: flex; align-items: center; }
.qo-panel-head span { margin-left: 4px; }
.qo-panel-head h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 22px; letter-spacing: .03em; margin: 0; }
.qo-panel-head span { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.qo-panel-list { display: flex; flex-direction: column; max-height: calc(100vh - 330px); overflow-y: auto; margin-inline: -6px; }
.qo-pl { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 10px; align-items: center; padding: 9px 6px; }
.qo-pl + .qo-pl { border-top: 1px solid var(--line); }
.qo-pl-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.qo-pl-name em { font-style: normal; color: var(--faint); font-weight: 500; }
.qo-pl-sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qo-pl-price { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.qo-pl-qty { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--control); border-radius: 5px; overflow: hidden; }
.qo-pl-qty button { border: 0; background: none; width: 28px; height: 26px; font-size: 16px; line-height: 1; cursor: pointer; color: var(--text-soft); }
.qo-pl-qty button:active { background: var(--surface-2); }
.qo-pl-qty span { min-width: 20px; text-align: center; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qo-pl-x { border: 0; background: none; width: 24px; height: 24px; border-radius: 4px; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.qo-pl-x:hover { color: var(--text); background: var(--surface-2); }
.qo-panel-empty { margin: 0; padding: 18px 0; text-align: center; color: var(--faint); font-size: 13px; border: 1px dashed var(--control); border-radius: 8px; }
.qo-panel-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.qo-panel-total span { color: var(--muted); font-size: 13px; }
.qo-panel-total strong { font-family: var(--display); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qo-panel-go {
    display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; background: var(--accent-fill); color: #fff;
    font-family: var(--display); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; font-size: 17px; padding: 15px; border-radius: 8px; transition: background .15s;
}
.qo-panel-go:hover { background: var(--accent-press); }
.qo-panel-go[aria-disabled="true"] { background: var(--surface-2); color: var(--faint); pointer-events: none; }

/* ---------- toast ---------- */
.qo-toast {
    position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
    background: var(--toast-bg); color: var(--toast-text); font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 8px;
    display: flex; gap: 8px; align-items: center; transition: .2s;
    max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qo-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.qo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.qo-toast.is-error .qo-dot { background: var(--accent); }

/* ---------- Produit précis (feuille) ---------- */
.qo-scrim { position: fixed; inset: 0; z-index: 50; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .2s; }
.qo-scrim.is-on { opacity: 1; pointer-events: auto; }
.qo-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 480px; margin: 0 auto;
    background: var(--sheet-bg); border-radius: 16px 16px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .9, .3, 1);
    max-height: 78vh; display: flex; flex-direction: column;
}
.qo-sheet.is-on { transform: none; }
.qo-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--control); margin: 4px auto 12px; }
.qo-sheet h3 { font-family: var(--display); text-transform: uppercase; font-size: 20px; letter-spacing: .03em; margin: 0 0 2px; }
.qo-hint { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.qo-sheet-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.qo-sheet-sep { margin: 10px 0 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.qo-opt {
    display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; gap: 12px; align-items: center; text-align: left; width: 100%;
    border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 12px 14px; cursor: pointer;
}
.qo-opt[aria-checked="true"] { border-color: var(--accent); background: var(--checked-bg); }
.qo-o-name { font-weight: 600; font-size: 14px; }
.qo-o-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.qo-o-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.qo-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--control-strong); display: grid; place-items: center; }
.qo-opt[aria-checked="true"] .qo-radio { border-color: var(--accent); }
.qo-opt[aria-checked="true"] .qo-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* ---------- mobile : le − 1 + passe sous les variantes, aligné à droite ---------- */
@media (max-width: 999px) {
    .qo-opts { flex-wrap: wrap; row-gap: 8px; }
    .qo-opts > .qo-chips, .qo-opts > .qo-opts-stack { flex: 1 1 100%; }
    .qo-opts > .qo-chips:empty { display: none; }
    .qo-stepper { margin-left: auto; }

    /* Nom produit sur 2 lignes (touche = en entier), prix calé à droite de la 1re ligne */
    .qo-sub { align-items: flex-start; gap: 10px; }
    .qo-sub-name {
        white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
        overflow: hidden; line-height: 1.35; cursor: pointer;
    }
    .qo-sub-name.is-open { display: block; -webkit-line-clamp: unset; }
    .qo-sub-name + .qo-sub-price { margin-left: auto; line-height: 1.35; }
    .qo-sub-name + .qo-sub-price::before { content: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 1000px) {
    body { overflow-x: clip; }
    .qo-app { max-width: 1120px; padding-inline: 32px; padding-block: 0 60px; }
    .qo-topbar { height: 60px; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50% + 32px); }
    .qo-mini-logo { height: 30px; }
    .qo-hero { padding-block: 28px 26px; }
    .qo-logo-wrap { width: 260px; }
    .qo-hero h1 { font-size: 52px; }
    .qo-hashtag { font-size: 14px; }
    .qo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
    .qo-jump { top: 60px; margin-inline: 0; padding-inline: 0; justify-content: flex-start; }
    .qo-jump a { flex: none; padding: 9px 22px; }
    .qo-block { scroll-margin-top: 130px; margin-top: 30px; }
    .qo-pills { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }
    .qo-pill:hover { filter: brightness(1.1); }
    .qo-row { grid-template-columns: 40px minmax(0, 1fr) 52px; column-gap: 16px; padding: 16px 14px 16px 18px; }
    .qo-row:hover { background: var(--hover); }
    .qo-row.is-checked:hover { background: var(--checked-hover); }
    .qo-pic { width: 40px; height: 40px; }
    .qo-name { font-size: 18px; }
    .qo-sub { font-size: 13px; }
    .qo-chip:hover { border-color: var(--control-strong); }
    .qo-panel { position: sticky; top: 76px; left: auto; right: auto; bottom: auto; z-index: auto; max-width: none; margin: 0; transform: none; visibility: visible; transition: none; }
    .qo-panel .qo-panel-card { border-radius: 12px; padding-bottom: 20px; background: var(--surface); }
    .qo-panel .qo-panel-list { max-height: calc(100vh - 330px); }
    .qo-panel-close { display: none; }
    .qo-cartbar { display: none; }
    .qo-toast { bottom: 32px; left: calc(50% - 190px); }
    .qo-sheet {
        top: 50%; bottom: auto; left: 50%; right: auto; width: 460px; border-radius: 14px; padding: 22px;
        transform: translate(-50%, -46%); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease; max-height: 80vh;
    }
    .qo-sheet.is-on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
    .qo-grab { display: none; }
    .qo-opt:hover { border-color: var(--control-strong); }
}

/* Bandeau cookies masqué sur cette page (le consentement se donne sur le reste du site).
   Le module cookiesplus reste chargé : il relit le consentement existant et le transmet à GTM,
   donc un visiteur qui n'a jamais consenti n'est simplement pas suivi ici.
   !important nécessaire : le script du module affiche le bandeau en style inline (fadeIn). */
#cookiesplus-modal-container,
#cookiesplus-modal,
#cookiesplus-modal-not-available,
#cookiesplus-overlay,
#cookiesplus-tab {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
