/* Boutique Hypnosia : même langage visuel que les pages Vote et Communauté (violet, magenta, or patiné).
   Le mode sombre est généré à partir de ce fichier par theme-hypnosia/tools/dark_gen.py. */
.hbq-wrap {
    --hbq-purple: var(--theme-purple, #6b21a8);
    --hbq-magenta: var(--theme-magenta, #d946ef);
    --hbq-gold: var(--royal-gold, #c9a227);
    --hbq-gold-light: var(--royal-gold-light, #e8c25a);
    --hbq-deep: var(--royal-deep, #4c1d95);
    --hbq-ink: #1e293b;
    --hbq-text: #4f4470;
    --hbq-muted: #8b82a8;
    --hbq-line: rgba(107, 33, 168, 0.14);
    --hbq-soft: rgba(107, 33, 168, 0.06);
    position: relative;
    z-index: 5;
    padding-bottom: 40px;
}

/* ---------- Bandeau (mêmes classes et mêmes règles que la Communauté : réglable dans Blocs de pages) ---------- */
.page-hero-banner.cm-hero { position: relative; overflow: hidden; text-align: center; color: #fff; }
.cm-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #2a1050 0%, #4c1d95 55%, #7e22ce 100%); }
.cm-hero-bg.has-img { background: #1a1d21; }
.cm-hero-bg::before { content: ''; position: absolute; inset: 0; background: var(--cm-hero-img, none) center / cover no-repeat; opacity: 0.4; filter: blur(2px); }
.cm-hero-bg::after { content: ''; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(to bottom, transparent, #faf8fd); }
.cm-hero.has-sep .cm-hero-bg::after { display: none; }
.cm-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cm-hero-logo {
    height: 120px; width: auto; max-width: min(520px, 88%); object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: hbq-float 4s ease-in-out infinite;
}
.cm-hero-title { font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; letter-spacing: -0.5px; text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); color: #fff; }
.cm-hero-sep { position: absolute; left: 0; bottom: -2px; width: 100%; line-height: 0; z-index: 3; fill: var(--sep-fill, #faf8fd); }
.cm-hero-sep svg { display: block; width: 100%; height: 40px; }
@keyframes hbq-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 991px) { .cm-hero-logo { height: 74px; max-width: 82%; } }

/* ---------- En-tête de contenu (badge, titre, sous-titre), comme Vote et Communauté ---------- */
.cm-intro { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin: 6px 0 34px; }
.cm-intro > *:not(.hbq-intro-deco) { position: relative; z-index: 1; }
.cm-intro-badge {
    position: relative; overflow: hidden;
    display: inline-block; margin-bottom: 1rem; padding: 6px 16px; border-radius: 50px;
    background: linear-gradient(135deg, var(--royal-deep, #4c1d95) 0%, var(--theme-purple, #6b21a8) 100%);
    color: var(--royal-gold-light, #e8c25a); border: 1px solid rgba(201, 162, 39, 0.45);
    box-shadow: 0 4px 14px rgba(76, 29, 149, 0.28);
    font-size: 0.85rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.cm-intro-title {
    font-weight: 900; font-size: 2.45rem; line-height: 1.15; letter-spacing: -1px; margin: 0 0 10px;
    background: linear-gradient(115deg, var(--theme-purple, #6b21a8) 0%, var(--theme-magenta, #d946ef) 55%, #f59e0b 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    overflow-wrap: anywhere;
}
.cm-intro-sub { color: #6c757d; font-size: 1.08rem; margin: 0; max-width: 720px; }
.hbq-intro-deco { position: absolute; inset: -10px 0; pointer-events: none; z-index: 0; }
.hbq-intro-deco i { position: absolute; font-size: 1.6rem; opacity: 0.85; animation: hbq-bob 5s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(76, 29, 149, 0.25)); }
.hbq-intro-deco .d1 { left: 8%; top: 18%; color: var(--royal-gold, #c9a227); }
.hbq-intro-deco .d2 { right: 9%; top: 8%; color: var(--theme-magenta, #d946ef); animation-delay: 0.8s; font-size: 1.9rem; }
.hbq-intro-deco .d3 { left: 16%; bottom: 0; color: var(--theme-purple, #6b21a8); animation-delay: 1.6s; font-size: 1.1rem; }
.hbq-intro-deco .d4 { right: 17%; bottom: 6%; color: var(--royal-gold-light, #e8c25a); animation-delay: 2.4s; font-size: 1.2rem; }
.hbq-intro-deco .d5 { left: 30%; top: -6%; color: var(--theme-magenta, #d946ef); animation-delay: 3.1s; font-size: 0.9rem; }
@keyframes hbq-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-6deg); } }
@media (max-width: 991px) { .cm-intro-title { font-size: 2rem; } .cm-intro { margin-bottom: 24px; } .hbq-intro-deco { display: none; } }

/* ---------- Colonne latérale ---------- */
.hbq-side { background: #fff; border: 1px solid var(--hbq-line); border-radius: 18px; padding: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03); }
@media (min-width: 992px) { .hbq-side-sticky { position: sticky; top: 110px; } }
.hbq-side-link { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--hbq-text); font-weight: 600; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.hbq-side-link:hover { background: var(--hbq-soft); color: var(--hbq-purple); }
.hbq-side-link.active { background: linear-gradient(135deg, rgba(107, 33, 168, 0.12), rgba(217, 70, 239, 0.08)); color: var(--hbq-purple); box-shadow: inset 3px 0 0 var(--hbq-purple); }
.hbq-side-count { margin-left: auto; min-width: 26px; text-align: center; font-size: 0.78rem; font-weight: 800; padding: 2px 8px; border-radius: 8px; background: var(--hbq-soft); color: var(--hbq-purple); }
.hbq-side-sep { height: 1px; margin: 6px 10px; background: var(--hbq-line); }
.hbq-side-block { margin-top: 14px; }

/* Code promo prêt (lien reçu en jeu) */
.hbq-promo {
    position: relative; overflow: hidden; padding: 16px 18px; border-radius: 18px; color: #fff;
    background: radial-gradient(220px 140px at 100% 0%, rgba(255, 255, 255, 0.22), transparent 70%), linear-gradient(135deg, #4c1d95, #7e22ce 60%, #d946ef);
    box-shadow: 0 12px 28px rgba(107, 33, 168, 0.25);
}
.hbq-promo::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg); animation: hbq-shine 4.5s ease-in-out infinite; }
.hbq-promo-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--royal-gold-light, #e8c25a); }
.hbq-promo-code { display: block; margin: 4px 0 2px; font-size: 1.35rem; font-weight: 900; letter-spacing: 1.5px; }
.hbq-promo-note { font-size: 0.82rem; opacity: 0.85; }

/* Garanties (colonne de gauche, sous le menu) */
.hbq-trust { background: linear-gradient(160deg, rgba(76, 29, 149, 0.08) 0%, rgba(217, 70, 239, 0.05) 100%); border: 1px solid var(--hbq-line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; }
.hbq-trust-item { display: flex; gap: 12px; align-items: flex-start; }
.hbq-trust-icon { flex: none; width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--royal-gold-light, #e8c25a); background: linear-gradient(135deg, var(--royal-deep, #4c1d95), var(--theme-purple, #6b21a8)); box-shadow: 0 6px 14px rgba(76, 29, 149, 0.22); }
.hbq-trust-item strong { display: block; color: var(--hbq-ink); font-size: 0.9rem; }
.hbq-trust-item > div > span { display: block; color: var(--hbq-muted); font-size: 0.8rem; line-height: 1.4; }

/* ---------- Boutons, champs ---------- */
.hbq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 800; font-size: 0.92rem; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease; white-space: nowrap; }
.hbq-btn:hover { transform: translateY(-1px); }
.hbq-btn:disabled, .hbq-btn.is-disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.hbq-btn-primary { color: #fff !important; background: linear-gradient(135deg, var(--hbq-purple), var(--hbq-magenta)); box-shadow: 0 6px 16px rgba(107, 33, 168, 0.22); }
.hbq-btn-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 22px rgba(107, 33, 168, 0.3); }
.hbq-btn-gold { color: #3b2a00 !important; background: linear-gradient(135deg, #c9a227, #e8c25a); box-shadow: 0 6px 16px rgba(201, 162, 39, 0.3); }
.hbq-btn-white { color: var(--hbq-purple) !important; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }
.hbq-btn-soft { color: var(--hbq-purple) !important; background: var(--hbq-soft); border-color: var(--hbq-line); }
.hbq-btn-lg { padding: 14px 26px; font-size: 1.02rem; border-radius: 14px; }
.hbq-btn-block { width: 100%; }
.hbq-input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--hbq-line); background: #fff; color: var(--hbq-ink); font-size: 0.95rem; font-weight: 600; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.hbq-input:focus { outline: none; border-color: var(--hbq-purple); box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.15); }
.hbq-input.is-invalid { border-color: #ef4444; }
.hbq-label { display: block; font-weight: 700; color: var(--hbq-ink); margin-bottom: 6px; font-size: 0.92rem; }
.hbq-help { color: var(--hbq-muted); font-size: 0.82rem; margin-top: 6px; }
.hbq-muted { color: var(--hbq-muted); }

/* ---------- Panneaux ---------- */
.hbq-panel { background: #fff; border: 1px solid var(--hbq-line); border-radius: 20px; padding: 26px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03); margin-bottom: 22px; }
.hbq-panel-title { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--hbq-ink); font-size: 1.3rem; margin: 0 0 6px; }
.hbq-panel-title i { color: var(--hbq-purple); }
.hbq-panel-sub { color: var(--hbq-muted); margin: 0 0 18px; }

/* ---------- Alertes ---------- */
.hbq-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; }
.hbq-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.hbq-alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hbq-alert-info { background: var(--hbq-soft); color: var(--hbq-text); border: 1px dashed var(--hbq-line); }
.hbq-notice { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; margin-bottom: 22px; color: var(--hbq-text); font-weight: 600; background: linear-gradient(135deg, rgba(232, 194, 90, 0.16), rgba(255, 255, 255, 0.6)); border: 1px solid rgba(201, 162, 39, 0.4); }
.hbq-notice i { color: #b7791f; font-size: 1.2rem; }

/* ---------- Sections de la colonne de droite (Blocs de pages) : un seul espacement régulier entre elles ---------- */
.hbq-block { margin-bottom: 26px; }
.hbq-block > .hbq-feature, .hbq-block > .hbq-goal, .hbq-block > .hbq-notice { margin-bottom: 0; }

/* ---------- Mise en avant (premier produit « mis en avant ») ---------- */
.hbq-feature {
    --acc: #6b21a8; --acc2: #d946ef;
    position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
    padding: 28px 30px; border-radius: 22px; margin-bottom: 26px; color: #fff; text-decoration: none;
    background: radial-gradient(320px 220px at 100% 0%, rgba(255, 255, 255, 0.2), transparent 70%), linear-gradient(135deg, var(--acc) 0%, var(--acc2) 100%);
    box-shadow: 0 18px 40px rgba(107, 33, 168, 0.28);
}
.hbq-feature::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 0; pointer-events: none; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.26), transparent); transform: skewX(-18deg); animation: hbq-shine 5s ease-in-out infinite; }
.hbq-feature::after { content: ''; position: absolute; top: 0; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, transparent, var(--royal-gold-light, #e8c25a), transparent); }
.hbq-feature > * { position: relative; z-index: 1; }
.hbq-feature-media { width: 104px; height: 104px; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); font-size: 3rem; }
.hbq-feature-media img { max-width: 84px; max-height: 84px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); }
.hbq-feature-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #3b2a00; background: linear-gradient(135deg, #c9a227, #e8c25a); margin-bottom: 8px; }
.hbq-feature-name { font-size: 1.75rem; font-weight: 900; margin: 0 0 4px; line-height: 1.15; }
.hbq-feature-tag { opacity: 0.88; margin: 0 0 10px; }
.hbq-feature-feats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hbq-feature-feats li { padding: 4px 10px; border-radius: 9px; font-size: 0.82rem; font-weight: 700; background: rgba(255, 255, 255, 0.16); }
.hbq-feature-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.hbq-feature-price { font-size: 2rem; font-weight: 900; line-height: 1; }
.hbq-feature-price small { font-size: 0.85rem; font-weight: 700; opacity: 0.85; }
.hbq-feature-price s { display: block; font-size: 0.95rem; font-weight: 700; opacity: 0.7; }
@media (max-width: 767px) {
    .hbq-feature { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
    .hbq-feature-feats { justify-content: center; }
    .hbq-feature-buy { align-items: center; text-align: center; }
}

/* ---------- Objectif du mois ---------- */
.hbq-goal { --tone: #a21caf; --tone2: #d946ef; position: relative; overflow: hidden; padding: 20px 22px; border-radius: 20px; margin-bottom: 26px; border: 1px solid var(--hbq-line); background: radial-gradient(260px 200px at 100% 0%, rgba(217, 70, 239, 0.12), transparent 70%), #fff; box-shadow: 0 10px 28px rgba(76, 29, 149, 0.06); }
.hbq-goal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hbq-goal-icon { flex: none; width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--tone), var(--tone2)); box-shadow: 0 8px 18px rgba(217, 70, 239, 0.2); }
.hbq-goal-title { margin: 0; font-weight: 800; color: var(--hbq-ink); font-size: 1.08rem; }
.hbq-goal-text { margin: 2px 0 0; color: var(--hbq-muted); font-size: 0.88rem; }
.hbq-goal-pct { margin-left: auto; padding: 3px 12px; border-radius: 12px; font-weight: 900; font-size: 1.2rem; color: var(--tone); background: rgba(217, 70, 239, 0.1); }
.hbq-bar { height: 12px; border-radius: 50px; background: rgba(107, 33, 168, 0.1); overflow: hidden; }
.hbq-bar-fill { height: 100%; border-radius: 50px; background: repeating-linear-gradient(-45deg, var(--tone), var(--tone) 10px, var(--tone2) 10px, var(--tone2) 20px); background-size: 28px 28px; animation: hbq-stripes 1s linear infinite; }
@keyframes hbq-stripes { from { background-position: 0 0; } to { background-position: 28px 0; } }

/* ---------- Sections de catégories ---------- */
.hbq-section { margin-bottom: 34px; scroll-margin-top: 110px; }
.hbq-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hbq-section-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--royal-gold-light, #e8c25a); background: linear-gradient(135deg, var(--royal-deep, #4c1d95), var(--theme-purple, #6b21a8)); border: 1px solid rgba(201, 162, 39, 0.45); box-shadow: 0 8px 18px rgba(76, 29, 149, 0.22); }
.hbq-section-title { margin: 0; font-weight: 900; color: var(--hbq-ink); font-size: 1.45rem; }
.hbq-section-sub { margin: 2px 0 0; color: var(--hbq-muted); font-size: 0.92rem; }
.hbq-section-count { margin-left: auto; font-size: 0.8rem; font-weight: 800; padding: 3px 10px; border-radius: 9px; background: var(--hbq-soft); color: var(--hbq-purple); white-space: nowrap; }

/* ---------- Cartes produit ---------- */
.hbq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.hbq-card {
    --acc: #6b21a8; --acc2: #d946ef; --acc-soft: rgba(107, 33, 168, 0.1);
    position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%;
    padding: 22px 22px 18px; border-radius: 20px; border: 1px solid var(--hbq-line);
    background: radial-gradient(260px 200px at 100% 0%, var(--acc-soft), transparent 70%), #fff;
    box-shadow: 0 10px 28px rgba(76, 29, 149, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Filet doré en haut de carte : discret au repos, net au survol (comme les sites de vote) */
.hbq-card::after { content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--royal-gold, #c9a227), transparent); opacity: 0.35; transition: opacity 0.25s ease, left 0.25s ease, right 0.25s ease; pointer-events: none; }
.hbq-card:hover { transform: translateY(-4px); border-color: var(--acc-line, rgba(107, 33, 168, 0.35)); box-shadow: 0 16px 34px var(--acc-soft); }
.hbq-card:hover::after { opacity: 1; left: 4%; right: 4%; }
.hbq-card > *:not(.hbq-card-glyph):not(.hbq-card-badge) { position: relative; z-index: 2; }
.hbq-card-glyph { position: absolute; right: -16px; bottom: -26px; font-size: 6.2rem; line-height: 1; color: var(--acc); opacity: 0.07; z-index: 1; pointer-events: none; transform: rotate(-12deg); transition: opacity 0.25s ease, transform 0.25s ease; }
.hbq-card:hover .hbq-card-glyph { opacity: 0.12; transform: rotate(-6deg) scale(1.06); }
.hbq-card-badge { position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.3px; color: #3b2a00; background: rgba(232, 194, 90, 0.95); box-shadow: 0 3px 10px rgba(201, 162, 39, 0.35); }
.hbq-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hbq-card.has-badge .hbq-card-head { padding-right: 78px; }
.hbq-card-icon { flex: none; width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: 0 8px 18px var(--acc-soft); overflow: hidden; }
.hbq-card-icon img { max-width: 46px; max-height: 46px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); }
.hbq-card-name { margin: 0; font-weight: 800; font-size: 1.12rem; line-height: 1.25; color: var(--hbq-ink); }
.hbq-card-name a { color: inherit; text-decoration: none; }
.hbq-card-name a:hover { color: var(--acc); }
.hbq-card-kind { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 9px; border-radius: 7px; font-size: 0.72rem; font-weight: 800; color: var(--acc); background: var(--acc-soft); }
.hbq-card-tag { color: var(--hbq-text); opacity: 0.85; font-size: 0.9rem; line-height: 1.5; margin: 0 0 12px; }
.hbq-feats { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 7px; }
.hbq-feats li { display: flex; gap: 9px; align-items: flex-start; color: var(--hbq-text); font-size: 0.9rem; line-height: 1.45; }
.hbq-feats li i { color: var(--acc); margin-top: 2px; }
.hbq-card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--hbq-line); }
.hbq-price { font-weight: 900; color: var(--hbq-ink); font-size: 1.5rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hbq-price small { font-size: 0.78rem; font-weight: 700; color: var(--hbq-muted); }
.hbq-price s { display: block; font-size: 0.85rem; font-weight: 700; color: var(--hbq-muted); }
.hbq-save { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 0.72rem; font-weight: 900; vertical-align: middle; color: #15803d; background: #dcfce7; }
.hbq-card .hbq-btn { padding: 9px 15px; }
.hbq-card.is-featured { border-color: rgba(201, 162, 39, 0.6); box-shadow: 0 0 0 3px rgba(232, 194, 90, 0.22), 0 14px 32px rgba(76, 29, 149, 0.1); }

/* ---------- Fiche produit ---------- */
.hbq-crumbs { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--hbq-muted); margin-bottom: 14px; }
.hbq-crumbs a { color: var(--hbq-purple); font-weight: 700; text-decoration: none; }
.hbq-crumbs i { font-size: 0.7rem; }
.hbq-detail-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.hbq-detail-head .hbq-card-icon { width: 84px; height: 84px; border-radius: 22px; font-size: 2.3rem; }
.hbq-detail-head .hbq-card-icon img { max-width: 66px; max-height: 66px; }
.hbq-detail-name { font-weight: 900; color: var(--hbq-ink); font-size: 1.8rem; line-height: 1.2; margin: 0 0 4px; }
.hbq-detail-tag { color: var(--hbq-muted); margin: 0; font-size: 1.02rem; }
.hbq-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.hbq-perk { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--acc-line, rgba(107, 33, 168, 0.2)); background: linear-gradient(135deg, var(--acc-soft, rgba(107, 33, 168, 0.08)), #fff 75%); box-shadow: inset 4px 0 0 var(--acc, #6b21a8); font-weight: 700; color: var(--hbq-ink); font-size: 0.93rem; }
.hbq-perk i { color: var(--acc, #6b21a8); font-size: 1.1rem; }
.hbq-prose { color: var(--hbq-text); line-height: 1.7; overflow-wrap: anywhere; }
.hbq-prose h2, .hbq-prose h3 { font-weight: 800; color: var(--hbq-ink); font-size: 1.15rem; margin: 18px 0 8px; }
.hbq-prose > *:first-child { margin-top: 0; }
.hbq-prose > *:last-child { margin-bottom: 0; }
.hbq-prose a { color: var(--hbq-purple); font-weight: 600; }
.hbq-prose img { max-width: 100%; border-radius: 12px; }

/* Carte d'achat (fiche produit, résumé du paiement) : pancarte à filet doré, comme « Pourquoi voter ? » */
.hbq-buy {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, rgba(76, 29, 149, 0.11) 0%, rgba(217, 70, 239, 0.06) 100%);
    border: 1px solid var(--hbq-line); border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--royal-gold, #c9a227), transparent) 1; border-image-slice: 1;
    border-radius: 20px; padding: 26px 24px;
}
@media (min-width: 992px) { .hbq-buy-sticky { position: sticky; top: 110px; } }
.hbq-buy-price { font-weight: 900; color: var(--hbq-ink); font-size: 2.3rem; line-height: 1.05; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.hbq-buy-price small { font-size: 0.9rem; font-weight: 700; color: var(--hbq-muted); }
.hbq-buy-price s { display: block; font-size: 1rem; font-weight: 700; color: var(--hbq-muted); }
.hbq-buy-note { color: #6f6690; font-size: 0.9rem; line-height: 1.55; margin: 10px 0 18px; }
.hbq-buy-sep { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--royal-gold, #c9a227), transparent); opacity: 0.55; margin: 18px 0 14px; }
.hbq-pay-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; color: var(--hbq-muted); font-size: 0.8rem; }
.hbq-pay { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--hbq-line); background: #fff; color: var(--hbq-text); font-weight: 800; font-size: 0.72rem; }

/* ---------- Paiement ---------- */
.hbq-step { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px dashed var(--hbq-line); }
.hbq-step:last-of-type { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.hbq-step-title { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--hbq-ink); font-size: 1.08rem; margin: 0 0 14px; }
.hbq-step-num { flex: none; width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 900; color: var(--royal-gold-light, #e8c25a); background: linear-gradient(135deg, var(--royal-deep, #4c1d95), var(--theme-purple, #6b21a8)); }
.hbq-choices { display: grid; gap: 10px; }
.hbq-choice { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--hbq-line); background: #fff; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.hbq-choice:hover { border-color: rgba(107, 33, 168, 0.35); }
.hbq-choice input { accent-color: var(--hbq-purple); width: 18px; height: 18px; flex: none; }
.hbq-choice:has(input:checked) { border-color: var(--hbq-purple); background: linear-gradient(135deg, rgba(107, 33, 168, 0.07), rgba(217, 70, 239, 0.04)); box-shadow: 0 6px 16px rgba(107, 33, 168, 0.1); }
.hbq-choice-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--hbq-purple); background: var(--hbq-soft); overflow: hidden; }
.hbq-choice-icon img { width: 42px; height: 42px; image-rendering: pixelated; }
.hbq-choice-body { flex: 1; min-width: 0; }
.hbq-choice-body strong { display: block; color: var(--hbq-ink); }
.hbq-choice-body small { display: block; color: var(--hbq-muted); }
.hbq-choice-body small.is-bad { color: #b91c1c; }
.hbq-code { display: flex; gap: 8px; }
.hbq-code .hbq-input { text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.hbq-msg { font-size: 0.88rem; font-weight: 700; margin-top: 8px; min-height: 1.2em; }
.hbq-msg.is-ok { color: #15803d; }
.hbq-msg.is-bad { color: #b91c1c; }
.hbq-check { display: flex; gap: 10px; align-items: flex-start; color: var(--hbq-text); font-size: 0.9rem; line-height: 1.5; margin-bottom: 10px; cursor: pointer; }
.hbq-check input { accent-color: var(--hbq-purple); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.hbq-check a { color: var(--hbq-purple); font-weight: 700; }
.hbq-sum-prod { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hbq-sum-prod strong { display: block; color: var(--hbq-ink); font-size: 1.05rem; }
.hbq-sum-prod span { color: var(--hbq-muted); font-size: 0.85rem; }
.hbq-sum-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: #6f6690; }
.hbq-sum-line.is-discount { color: #15803d; font-weight: 800; }
.hbq-sum-line.is-total { color: var(--hbq-ink); font-weight: 900; font-size: 1.3rem; padding-top: 14px; margin-top: 6px; border-top: 1px dashed rgba(107, 33, 168, 0.25); }
.hbq-secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--hbq-muted); font-size: 0.82rem; margin-top: 12px; text-align: center; }
.hbq-spin { display: inline-block; width: 1em; height: 1em; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hbq-turn 0.8s linear infinite; vertical-align: -0.15em; }
@keyframes hbq-turn { to { transform: rotate(360deg); } }

/* ---------- Commande (suivi) ---------- */
.hbq-status { text-align: center; padding: 38px 24px 30px; }
.hbq-status-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #fff; background: linear-gradient(135deg, var(--theme-purple, #6b21a8), var(--theme-magenta, #d946ef)); box-shadow: 0 14px 30px rgba(107, 33, 168, 0.28); }
.hbq-status-icon.is-done { background: linear-gradient(135deg, #15803d, #22c55e); box-shadow: 0 14px 30px rgba(22, 163, 74, 0.28); }
.hbq-status-icon.is-off { background: linear-gradient(135deg, #8b82a8, #b5aecb); box-shadow: none; }
.hbq-status-icon.is-warn { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.hbq-status-title { font-weight: 900; color: var(--hbq-ink); font-size: 1.7rem; margin: 0 0 8px; }
.hbq-status-text { color: var(--hbq-muted); max-width: 560px; margin: 0 auto; }
.hbq-track { display: flex; justify-content: center; margin: 28px auto 4px; max-width: 520px; }
.hbq-track > div { flex: 1; position: relative; text-align: center; color: var(--hbq-muted); font-size: 0.85rem; font-weight: 700; }
.hbq-track > div::before { content: ''; display: block; position: relative; z-index: 1; width: 20px; height: 20px; margin: 0 auto 8px; border-radius: 50%; background: #fff; border: 3px solid rgba(107, 33, 168, 0.2); }
.hbq-track > div::after { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: rgba(107, 33, 168, 0.15); }
.hbq-track > div:first-child::after { display: none; }
.hbq-track > div.on { color: var(--hbq-ink); }
.hbq-track > div.on::before { border-color: var(--hbq-purple); background: var(--hbq-purple); box-shadow: 0 0 0 4px rgba(107, 33, 168, 0.15); }
.hbq-track > div.on::after { background: linear-gradient(90deg, var(--hbq-purple), var(--hbq-magenta)); }
.hbq-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.hbq-fact { display: flex; flex-direction: column; padding: 11px 14px; border-radius: 12px; background: var(--hbq-soft); border: 1px solid var(--hbq-line); }
.hbq-fact span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--hbq-muted); font-weight: 800; }
.hbq-fact strong { color: var(--hbq-ink); font-size: 0.95rem; overflow-wrap: anywhere; }
.hbq-avatar { border-radius: 8px; image-rendering: pixelated; }

/* ---------- Mes achats ---------- */
.hbq-sub { --tone: #6b21a8; --tone2: #a855f7; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--hbq-line); background: radial-gradient(240px 160px at 100% 0%, rgba(168, 85, 247, 0.12), transparent 70%), #fff; box-shadow: 0 6px 18px rgba(76, 29, 149, 0.05); margin-bottom: 12px; }
.hbq-sub-icon { flex: none; width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--tone), var(--tone2)); }
.hbq-sub-body { flex: 1; min-width: 200px; }
.hbq-sub-body strong { color: var(--hbq-ink); font-size: 1.05rem; }
.hbq-sub-meta { color: var(--hbq-muted); font-size: 0.85rem; margin-top: 2px; }
.hbq-sub-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hbq-sub.is-ended { opacity: 0.75; background: #faf8fd; }
.hbq-rows { display: grid; gap: 10px; }
.hbq-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--hbq-line); background: #fff; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.hbq-row:hover { border-color: rgba(107, 33, 168, 0.3); box-shadow: 0 8px 22px rgba(107, 33, 168, 0.08); }
.hbq-row-body { flex: 1; min-width: 0; }
.hbq-row-title { display: block; font-weight: 800; color: var(--hbq-ink); }
.hbq-row-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--hbq-muted); font-size: 0.8rem; }
.hbq-row-price { font-weight: 900; color: var(--hbq-ink); white-space: nowrap; }
.hbq-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 9px; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.hbq-st-secondary, .hbq-st-light { background: #f1f0f6; color: #5b5675; }
.hbq-st-info { background: #ede9fe; color: #5b21b6; }
.hbq-st-success { background: #dcfce7; color: #15803d; }
.hbq-st-danger { background: #fee2e2; color: #b91c1c; }
.hbq-st-warning { background: #fef3c7; color: #a16207; }
.hbq-empty { text-align: center; padding: 44px 16px; color: var(--hbq-muted); }
.hbq-empty > i { display: block; font-size: 2.6rem; color: rgba(107, 33, 168, 0.3); margin-bottom: 8px; }
.hbq-pages { margin-top: 16px; }
.hbq-pages .page-link { color: var(--hbq-purple); border-color: var(--hbq-line); }
.hbq-pages .page-item.active .page-link { background: var(--hbq-purple); border-color: var(--hbq-purple); color: #fff; }

/* ---------- Panier ---------- */
.hbq-secure a { color: var(--hbq-purple); font-weight: 800; text-decoration: none; }
.hbq-side-count.is-full { color: #fff; background: linear-gradient(135deg, var(--hbq-purple), var(--hbq-magenta)); }
.hbq-card-foot form { margin: 0; }
.hbq-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hbq-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--hbq-line); border-radius: 12px; background: #fff; overflow: hidden; flex: none; }
.hbq-qty-btn { width: 38px; border: 0; background: var(--hbq-soft); color: var(--hbq-purple); font-size: 1.15rem; font-weight: 900; line-height: 1; cursor: pointer; transition: background 0.15s ease; }
.hbq-qty-btn:hover { background: rgba(107, 33, 168, 0.14); }
.hbq-qty-input { width: 52px; border: 0; text-align: center; font-weight: 800; color: var(--hbq-ink); background: #fff; padding: 8px 2px; -moz-appearance: textfield; appearance: textfield; }
.hbq-qty-input::-webkit-outer-spin-button, .hbq-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hbq-qty-input:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(107, 33, 168, 0.25); }
.hbq-cart-count-pill { margin-left: auto; font-size: 0.8rem; font-weight: 800; padding: 3px 10px; border-radius: 9px; background: var(--hbq-soft); color: var(--hbq-purple); }
.hbq-cart-lines { display: grid; gap: 10px; margin-top: 14px; container-type: inline-size; }
.hbq-cart-line { display: grid; grid-template-columns: auto minmax(140px, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--hbq-line); background: radial-gradient(200px 120px at 100% 0%, var(--acc-soft, rgba(107, 33, 168, 0.08)), transparent 70%), #fff; }
.hbq-cart-icon { width: 52px; height: 52px; border-radius: 14px; font-size: 1.4rem; text-decoration: none; }
.hbq-cart-icon img { max-width: 40px; max-height: 40px; }
.hbq-cart-info { min-width: 0; display: flex; flex-direction: column; }
.hbq-cart-name { font-weight: 800; color: var(--hbq-ink); text-decoration: none; overflow-wrap: break-word; }
.hbq-cart-name:hover { color: var(--acc, var(--hbq-purple)); }
.hbq-cart-unit { color: var(--hbq-muted); font-size: 0.82rem; }
.hbq-cart-warn { color: #b91c1c; font-size: 0.8rem; font-weight: 700; margin-top: 2px; }
.hbq-cart-total { min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.hbq-cart-total s { display: block; color: var(--hbq-muted); font-size: 0.8rem; font-weight: 700; }
.hbq-cart-total strong { color: var(--hbq-ink); font-weight: 900; font-size: 1.05rem; }
.hbq-cart-remove { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--hbq-muted); cursor: pointer; transition: color 0.15s ease, background 0.15s ease; }
.hbq-cart-remove:hover { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.hbq-cart-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; }
#hbq-cart.is-js .hbq-no-js { display: none; }
.hbq-sum-items { list-style: none; margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px dashed rgba(107, 33, 168, 0.25); }
.hbq-sum-items li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: var(--hbq-text); font-size: 0.92rem; }
.hbq-sum-items li span:last-child { font-weight: 800; color: var(--hbq-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbq-sum-items em, .hbq-order-lines em { font-style: normal; font-weight: 800; color: var(--hbq-purple); }
.hbq-fact-lines { grid-column: 1 / -1; }
.hbq-order-lines { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.hbq-order-lines li { display: flex; justify-content: space-between; gap: 10px; color: var(--hbq-ink); font-weight: 600; }
.hbq-order-lines li strong { white-space: nowrap; }

/* Bouton flottant et message « ajouté au panier » : hors de .hbq-wrap, couleurs du thème en direct */
.hbq-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 1040;
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 50px;
    color: #fff !important; text-decoration: none; font-weight: 800;
    background: linear-gradient(135deg, var(--theme-purple, #6b21a8), var(--theme-magenta, #d946ef));
    box-shadow: 0 12px 28px rgba(107, 33, 168, 0.35); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hbq-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(107, 33, 168, 0.42); }
.hbq-fab i { font-size: 1.15rem; }
.hbq-fab-count { min-width: 24px; padding: 1px 7px; border-radius: 50px; text-align: center; font-size: 0.82rem; color: #3b2a00; background: linear-gradient(135deg, #c9a227, #e8c25a); }
.hbq-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1050;
    display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px;
    color: #14532d; background: #f0fdf4; border: 1px solid #bbf7d0; font-weight: 700;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16); animation: hbq-pop 0.2s ease-out;
}
.hbq-toast.is-bad { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.hbq-toast-link { margin-left: 6px; white-space: nowrap; color: var(--theme-purple, #6b21a8); font-weight: 800; text-decoration: none; }
.hbq-fab[hidden], .hbq-toast[hidden], .hbq-wrap [hidden] { display: none !important; }
@keyframes hbq-pop { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* Ligne du panier sur deux rangs dès que la colonne est étroite (téléphone, ou bureau à colonne serrée) */
@container (max-width: 600px) {
    .hbq-cart-line { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon info remove" "qty qty total"; gap: 10px 12px; }
    .hbq-cart-icon { grid-area: icon; }
    .hbq-cart-info { grid-area: info; }
    .hbq-cart-line .hbq-qty { grid-area: qty; justify-self: start; }
    .hbq-cart-total { grid-area: total; }
    .hbq-cart-remove { grid-area: remove; }
}
@media (max-width: 767px) {
    .hbq-fab { right: 14px; bottom: 14px; padding: 11px 15px; }
    .hbq-fab-label { display: none; }
    .hbq-toast { bottom: 80px; flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* ---------- Pied de page de la boutique ---------- */
.hbq-legal { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--hbq-muted); font-size: 0.85rem; }
.hbq-legal a { color: var(--hbq-purple); font-weight: 700; text-decoration: none; }

@keyframes hbq-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* ---------- Tablette et mobile : la colonne latérale passe au-dessus, en onglets centrés ---------- */
@media (max-width: 991px) {
    .hbq-side { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px; }
    .hbq-side-link { flex: 0 0 auto; padding: 8px 12px; white-space: nowrap; font-size: 0.9rem; border: 1px solid var(--hbq-line); }
    .hbq-side-link.active { box-shadow: none; border-color: var(--hbq-purple); }
    .hbq-side-count { margin-left: 4px; }
    .hbq-side-sep { display: none; }
    .hbq-side-extra { display: none; }
}
@media (max-width: 767px) {
    .hbq-panel { padding: 18px 16px; border-radius: 16px; }
    .hbq-perks { grid-template-columns: 1fr; }
    .hbq-detail-head { flex-direction: column; text-align: center; }
    .hbq-row { flex-wrap: wrap; }
    .hbq-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .cm-hero-logo, .hbq-intro-deco i, .hbq-feature::before, .hbq-promo::before, .hbq-bar-fill, .hbq-spin, .hbq-toast { animation: none; }
    .hbq-card, .hbq-btn, .hbq-row, .hbq-fab { transition: none; }
    .hbq-card:hover, .hbq-btn:hover, .hbq-fab:hover { transform: none; }
}
