/* Site public. (L'admin garde style.css.)
   Direction : un site de produits où la photo fait la couleur. Interface neutre + un seul bleu outremer ; le seul aplat de couleur de la page est le bandeau du bonus.
   Titres en Bricolage Grotesque (large, serré), texte en Schibsted Grotesk. Coins presque droits : 4 px sur les photos, 6 px sur les boutons et champs. */

@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-grotesque.woff2?v=1) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk.woff2?v=1) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk.woff2?v=1) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Sora"; src: url(/fonts/sora.woff2?v=1) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces.woff2?v=1) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Outfit"; src: url(/fonts/outfit.woff2?v=1) format("woff2"); font-weight: 500 800; font-display: swap; }

:root {
  --bg: #eceef2;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --line: #cdd1d9;
  --text: #0d0f14;
  --muted: #566074;
  --accent: #2b3bff;
  --accent-2: #1d2bd1;
  --accent-ink: #ffffff;
  --ok: #0a8a57;
  --warn: #b3261e;
  --foot-bg: #0d0f14;
  --foot-ink: #d7dae2;
  --r-photo: 4px;
  --r-ui: 6px;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10;
    --surface: #14161c;
    --surface-2: #1b1e26;
    --line: #2b2f3a;
    --text: #f1f2f5;
    --muted: #9aa1b2;
    --accent: #7886ff;
    --accent-2: #95a0ff;
    --accent-ink: #090b24;
    --ok: #3ddc97;
    --warn: #ff8f87;
    --foot-bg: #07080b;
    --foot-ink: #aab0bf;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: 72px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ───── en-tête ───── */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.045em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; margin-right: auto; height: 100%; }
.nav a { display: flex; align-items: center; white-space: nowrap; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--text); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.prefs { display: flex; gap: 6px; }
select.pref { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-ui); padding: 7px 8px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
select.pref:hover { border-color: var(--text); }
select.pref option { background: var(--surface); color: var(--text); }
.ssr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───── boutons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--text); background: transparent; color: var(--text); padding: 12px 20px; border-radius: var(--r-ui); font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--text); color: var(--bg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ───── accueil ───── */
.hero > * { min-width: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: 64px 0 36px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: .95; letter-spacing: -.045em; margin: 0 0 22px; font-weight: 800; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 34em; margin: 0 0 28px; }
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--text); border-radius: var(--r-ui); padding: 5px 5px 5px 18px; }
.searchbar:focus-within { border-color: var(--accent); }
.searchbar svg { flex: none; color: var(--muted); }
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 17px; padding: 12px 0; outline: none; }
.searchbar input::placeholder { color: var(--muted); opacity: .8; }
.searchbar .btn { padding: 12px 22px; }
.hint { margin: 14px 0 0; font-size: 14px; color: var(--muted); max-width: 40em; }
.stat { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.stat b { color: var(--text); font-weight: 700; }
.search-msg { margin-top: 12px; font-size: 14px; color: var(--warn); min-height: 20px; }

/* mur de photos : de vrais produits du catalogue, ceux qui ont des photos QC en premier */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.wall a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-photo); background: var(--surface-2); }
.wall a:nth-child(3n + 2) { margin-top: 36px; }
.wall img { width: 100%; height: 100%; object-fit: cover; }
.wall .wp { position: absolute; left: 8px; bottom: 8px; background: var(--surface); color: var(--text); border-radius: 3px; padding: 3px 8px; font-size: 13px; font-weight: 700; }
.wall .wq { position: absolute; left: 8px; top: 8px; background: var(--ok); color: #fff; border-radius: 3px; padding: 2px 7px; font-size: 12px; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .wall a { animation: wall-in .75s cubic-bezier(.2, .7, .2, 1) both; }
  .wall a:nth-child(2) { animation-delay: .08s; } .wall a:nth-child(3) { animation-delay: .16s; }
  .wall a:nth-child(4) { animation-delay: .24s; } .wall a:nth-child(5) { animation-delay: .32s; } .wall a:nth-child(6) { animation-delay: .4s; }
  @keyframes wall-in { from { opacity: 0; transform: translateY(28px); } }
}

/* catégories */
.cats { display: flex; gap: 16px; overflow-x: auto; padding: 24px 8px 10px; margin-inline: -8px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 84px; font-size: 13.5px; color: var(--muted); }
.cat .bub { overflow: hidden; width: 84px; height: 84px; margin-bottom: 8px; border-radius: var(--r-photo); background: var(--surface-2); outline: 2px solid transparent; outline-offset: 2px; display: grid; place-items: center; }
.cat .bub img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat .bub.all { grid-template-columns: repeat(2, 18px); grid-template-rows: repeat(2, 18px); gap: 6px; align-content: center; justify-content: center; place-items: stretch; }
.cat .bub.all i { background: var(--text); border-radius: 2px; }
.cat:hover { color: var(--text); }
.cat.active { color: var(--text); font-weight: 700; }
.cat.active .bub { outline-color: var(--text); }

/* sections + grille de produits */
.sec { margin-top: 52px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; font-size: 32px; letter-spacing: -.035em; line-height: 1; }
.sec-head a { color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; } .sec-head a:hover { color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 28px 18px; }
.card { display: flex; flex-direction: column; }
.card .im { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; border-radius: var(--r-photo); }
.card .im img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--surface); color: var(--text); border-radius: 3px; font-size: 12px; font-weight: 600; padding: 3px 8px; }
.badge.qc { left: auto; right: 8px; background: var(--ok); color: #fff; }
.badge.demo { top: auto; bottom: 8px; background: #ffd24a; color: #111; }
.card .bd { padding: 11px 0 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .t { font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.card .pr { margin-top: auto; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.card .pr b { font-size: 17px; font-weight: 700; }
.card .pr small { color: var(--muted); }

/* étapes : c'est une vraie suite (coller, regarder, commander), donc numérotée */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { border-top: 2px solid var(--text); padding-top: 16px; }
.step .n { font: 800 56px/1 var(--display); letter-spacing: -.05em; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; } .step p { margin: 0; color: var(--muted); max-width: 30em; }

/* bonus BBDBUY : le seul aplat de couleur du site */
.band { margin-top: 64px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-ui); padding: clamp(28px, 5vw, 56px); display: flex; gap: 28px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 54px); line-height: .98; letter-spacing: -.045em; }
.band p { margin: 0; max-width: 38em; opacity: .92; font-size: 17px; }
.band .btn { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent); padding: 16px 26px; font-size: 17px; }
.band .btn:hover { background: transparent; color: var(--accent-ink); }

/* ───── pages ───── */
.page-title { margin: 44px 0 6px; font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.045em; line-height: 1; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.toolbar .searchbar { flex: 1 1 260px; min-width: 0; border-width: 1px; padding: 3px 3px 3px 16px; }
.toolbar .searchbar input { font-size: 16px; padding: 10px 0; }
select.sel { background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: 12px 14px; border-radius: var(--r-ui); font: inherit; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-ui); }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 22px; }

/* fiche produit */
.crumbs { margin: 28px 0 16px; color: var(--muted); font-size: 14px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.gallery .main { aspect-ratio: 1; border-radius: var(--r-photo); overflow: hidden; background: var(--surface-2); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border-radius: var(--r-photo); overflow: hidden; border: 2px solid transparent; background: var(--surface-2); }
.thumbs button.on { border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.noimg { aspect-ratio: 1; border-radius: var(--r-photo); background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 14px, var(--bg) 14px, var(--bg) 28px); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.info h1 { margin: 10px 0 14px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.02; letter-spacing: -.04em; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 3px 10px; border-radius: 3px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.tag.via { color: var(--ok); border-color: var(--ok); background: transparent; }
.price { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 22px; font-variant-numeric: tabular-nums; }
.price b { font: 800 46px/1 var(--display); letter-spacing: -.045em; } .price span { color: var(--muted); font-size: 17px; }
.facts { display: grid; gap: 0; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ui); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding: 11px 16px; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts .k { color: var(--muted); }
.facts b { text-align: right; }
.cta { display: grid; gap: 10px; margin-bottom: 20px; }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; color: var(--muted); font-size: 15px; }
.note strong { color: var(--text); }
.desc { color: var(--muted); margin-top: 18px; }

.qc-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 64px 0 18px; }
.qc-head h2 { margin: 0; font-size: 36px; letter-spacing: -.04em; line-height: 1; }
.qc-head .count { color: var(--ok); font-weight: 700; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { background: transparent; border: 1px solid var(--line); padding: 7px 14px; border-radius: var(--r-ui); font-weight: 600; color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.qc-grid button { padding: 0; border: 0; border-radius: var(--r-photo); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.qc-grid button:hover { outline: 2px solid var(--text); }
.qc-grid img { width: 100%; height: 100%; object-fit: cover; }
.qc-meta { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

/* liens */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.lk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ui); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.lk:hover { border-color: var(--text); }
.lk h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; display: flex; gap: 10px; align-items: center; }
.lk p { margin: 0; color: var(--muted); flex: 1; }
.lk .tag { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* pied de page */
.footer { background: var(--foot-bg); color: var(--foot-ink); padding: 40px 0 48px; }
.footer .logo { color: #fff; }
.footer .muted { color: var(--foot-ink); }
.footer-top { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.footer-top p { margin: 0; max-width: 560px; }
.fine { color: #8b92a3; font-size: 13px; max-width: 860px; margin: 0 0 8px; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }

/* visionneuse, notification, contribution */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: grid; place-items: center; }
.lightbox[hidden], .toast[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 86vh; border-radius: var(--r-photo); }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; display: grid; place-items: center; }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #bbb; font-size: 14px; }
.lb-report { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.12); border: 0; color: #ddd; padding: 8px 16px; border-radius: var(--r-ui); font-size: 13px; }
.lb-report:hover { background: rgba(255,255,255,.24); }
.lb-report[hidden] { display: none; }
.contrib { margin-top: 28px; border: 1px dashed var(--line); border-radius: var(--r-ui); padding: 20px 24px; }
.contrib-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.contrib-head p { margin: 4px 0 0; max-width: 560px; }
.contrib-form { display: grid; gap: 12px; max-width: 560px; }
.contrib input.in { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-ui); padding: 11px 14px; font: inherit; }
.contrib .filepick { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
.contrib .filepick input { font-weight: 400; color: var(--muted); }
.contrib .fine { margin: 0; color: var(--muted); }
.contrib .row-btn { display: flex; gap: 10px; flex-wrap: wrap; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: var(--r-ui); font-weight: 600; z-index: 120; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--bg) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-photo); min-height: 280px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ───── mobile ───── */
@media (max-width: 1100px) { .topbar-in > .btn { display: none; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; gap: 32px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pp { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .burger { display: block; }
  .prefs { margin-left: auto; }
  .topbar-in { gap: 12px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; height: auto; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px 16px 14px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
  .nav a.active { border-bottom-color: var(--line); font-weight: 700; }
  .nav.open { display: flex; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .card .pr b { font-size: 16px; }
  .searchbar .btn { padding: 12px 16px; }
  .wall a:nth-child(3n + 2) { margin-top: 22px; }
  .hero { padding: 22px 0 14px; gap: 22px; }
  .hero h1 { font-size: 34px; line-height: 1; margin-bottom: 12px; }
  .hero p.lead { font-size: 15px; margin-bottom: 16px; }
  .searchbar { flex-wrap: wrap; padding: 6px; gap: 6px; }
  .searchbar svg { margin-left: 8px; }
  .searchbar input { flex: 1 1 calc(100% - 44px); font-size: 16px; }
  .searchbar .btn { flex: 1 0 100%; padding: 13px 16px; }
  .hint { font-size: 13px; margin-top: 10px; }
  /* estimation : un champ par ligne, les 3 dimensions côte à côte */
  div.est-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; align-items: stretch; }
  .est-form label { grid-column: 1 / -1; margin-top: 8px; font-size: 14px; }
  .est-form select, .est-form #est-weight, .est-form #est-order { grid-column: 1 / -1; width: 100% !important; }
  .est-form input.sel { width: 100% !important; font-size: 16px; padding: 12px; }
  .est-form select.sel { font-size: 16px; }
  .qc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ───── fenêtre « Rejoins le Discord » (reste sombre, comme Discord, quel que soit le thème du site) ───── */
.dc-back { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(6,7,12,.7); backdrop-filter: blur(6px); }
.dc-modal { --dc: #5865f2; --surface: #15161b; --surface-2: #1d1f26; --line: #2a2c35; --text: #f4f4f6; --muted: #a3a6b4; --ok: #3ddc97; position: relative; width: min(400px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(88,101,242,.25); }
.dc-banner { position: relative; height: 128px; background: linear-gradient(120deg, #5865f2, #8b5cf6 45%, #ec4899 100%); background-size: 200% 200%; background-position: center; }
.dc-banner.has-img { background-size: cover; background-position: center; }
.dc-badge { position: absolute; left: 16px; top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.dc-icon { position: relative; z-index: 1; display: block; width: 88px; height: 88px; margin: -44px 0 0 24px; border-radius: 50%; border: 5px solid var(--surface); background: var(--surface-2); object-fit: cover; }
.dc-icon-fallback { display: grid; place-items: center; font-size: 36px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #5865f2, #8b5cf6); }
.dc-body { padding: 12px 24px 22px; }
.dc-body h2 { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -.03em; }
.dc-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 12px; color: var(--muted); font-size: 14px; }
.dc-online { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.dc-online i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.dc-body p { margin: 0 0 18px; color: var(--muted); }
.dc-join { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 18px; border-radius: 12px; background: var(--dc); color: #fff; font-weight: 700; font-size: 16px; }
.dc-join:hover { background: #4752c4; }
.dc-arrow { transition: transform .2s ease; }
.dc-join:hover .dc-arrow { transform: translateX(4px); }
.dc-later { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 0; background: none; color: var(--muted); font-size: 14px; }
.dc-later:hover { color: var(--text); }
.dc-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 22px; line-height: 1; }
.dc-x:hover { background: rgba(0,0,0,.6); }
.dc-join:focus-visible, .dc-later:focus-visible, .dc-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--dc); }
@media (prefers-reduced-motion: no-preference) {
  .dc-back { animation: dc-fade .25s ease-out; }
  .dc-modal { animation: dc-pop .45s cubic-bezier(.2, .9, .3, 1.25); }
  .dc-banner:not(.has-img) { animation: dc-shift 9s ease-in-out infinite alternate; }
  .dc-icon { animation: dc-icon-in .55s .12s cubic-bezier(.2, .9, .3, 1.4) both, dc-float 3.4s 1s ease-in-out infinite; }
  .dc-online i { animation: dc-live 1.8s ease-out infinite; }
  .dc-join::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); animation: dc-shine 3.6s 1.2s ease-in-out infinite; }
  @keyframes dc-fade { from { opacity: 0; } }
  @keyframes dc-pop { from { opacity: 0; transform: translateY(18px) scale(.92); } }
  @keyframes dc-shift { to { background-position: 100% 60%; } }
  @keyframes dc-icon-in { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
  @keyframes dc-float { 50% { transform: translateY(-4px); } }
  @keyframes dc-live { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.6); } 100% { box-shadow: 0 0 0 9px rgba(61,220,151,0); } }
  @keyframes dc-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
}

/* ───── fenêtre d'inscription BBDBUY : un « coupon » qui prend la couleur du site ───── */
.af-back { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(6,7,12,.72); backdrop-filter: blur(5px); }
.af-modal { position: relative; width: min(440px, 100%); background: var(--surface); color: var(--text); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.af-ticket { position: relative; padding: 24px 26px 26px; background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.3), transparent 62%), var(--accent); color: var(--accent-ink); text-align: center; }
.af-ticket::before, .af-ticket::after { content: ""; position: absolute; bottom: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); z-index: 1; }
.af-ticket::before { left: -11px; } .af-ticket::after { right: -11px; }
.af-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.22); font-size: 13px; font-weight: 700; }
.af-big { margin-top: 8px; }
.af-big b { display: block; font: 900 clamp(68px, 20vw, 100px)/.88 var(--display); letter-spacing: -.07em; text-shadow: 0 4px 0 rgba(0,0,0,.14); }
.af-big span { display: block; margin-top: 4px; font-weight: 800; font-size: clamp(18px, 5vw, 22px); letter-spacing: -.01em; }
.af-chip { display: inline-block; margin-top: 14px; padding: 7px 16px; border-radius: 999px; background: #ffd23f; color: #1a1300; font-weight: 900; font-size: 17px; transform: rotate(-2deg); box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.af-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.af-perks li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.af-perks li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 13px; font-weight: 900; }
.af-free { margin: 8px 0 0 !important; text-align: center; font-size: 13px; }
.af-count { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 8px; background: #d10f1c; color: #fff; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 16px; white-space: nowrap; max-width: 100%; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.af-count::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; }
.af-count.hot { font-size: 18px; }
.af-body { padding: 26px 26px 22px; border-top: 2px dashed var(--line); }
.af-body h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.08; letter-spacing: -.035em; }
.af-body p { margin: 0 0 18px; color: var(--muted); }
.af-join { position: relative; overflow: hidden; display: block; text-align: center; padding: 16px 18px; border-radius: var(--r-ui); background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 18px; }
.af-join:hover { background: var(--accent-2); }
.af-later { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.af-later:hover { color: var(--text); }
.af-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0,0,0,.28); color: #fff; font-size: 22px; line-height: 1; }
.af-x:hover { background: rgba(0,0,0,.5); }
.af-join:focus-visible, .af-later:focus-visible, .af-x:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .af-back { animation: af-fade .2s ease-out; }
  .af-modal { animation: af-pop .4s cubic-bezier(.2, .9, .3, 1.2); }
  .af-join { animation: af-pulse 1.6s ease-out .6s infinite, af-wiggle 3.2s ease-in-out 1.4s infinite; }
  .af-join::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent); transform: skewX(-18deg); animation: af-shine 2.4s ease-in-out .8s infinite; }
  .af-count::before { animation: af-blink 1s steps(2, jump-none) infinite; }
  .af-count.hot { animation: af-throb .9s ease-in-out infinite; }
  @keyframes af-wiggle { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-1.6deg) scale(1.03); } 90% { transform: rotate(1.6deg) scale(1.03); } 94% { transform: rotate(-1deg) scale(1.02); } }
  @keyframes af-shine { 0%, 45% { left: -70%; } 100% { left: 140%; } }
  @keyframes af-blink { 50% { opacity: .2; } }
  @keyframes af-throb { 50% { transform: scale(1.06); } }
  .af-big b { animation: af-bump 2.8s ease-in-out 1.2s infinite; }
  .af-chip { animation: af-wiggle 3.6s ease-in-out 1s infinite; }
  @keyframes af-fade { from { opacity: 0; } }
  @keyframes af-pop { from { opacity: 0; transform: translateY(16px) scale(.94); } }
  @keyframes af-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
  @keyframes af-bump { 0%, 88%, 100% { transform: scale(1); } 94% { transform: scale(1.05); } }
}

/* ───── vidéo « Comment commander » et estimation de livraison ───── */
.vid-wrap { margin: 24px 0 8px; }
.vid { position: relative; display: block; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r-photo); overflow: hidden; background: #000; color: #fff; text-align: left; }
.vid img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.vid-play::after { content: ""; position: absolute; left: 30px; top: 22px; border-left: 24px solid var(--accent-ink); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.vid:hover .vid-play { background: var(--accent-2); }
.vid-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.8)); display: grid; gap: 2px; }
.vid-cap strong { font: 800 clamp(20px, 3vw, 28px)/1.1 var(--display); letter-spacing: -.03em; }
.vid-cap small { font-size: 14px; opacity: .9; }
@media (prefers-reduced-motion: no-preference) { .vid-play { animation: vid-pulse 2s ease-out infinite; } @keyframes vid-pulse { 0% { box-shadow: 0 8px 30px rgba(0,0,0,.45), 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 8px 30px rgba(0,0,0,.45), 0 0 0 20px transparent; } } }
.est-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.est-form label { color: var(--muted); font-weight: 600; }
.est-list { display: grid; gap: 8px; max-width: 640px; }
.est-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ui); font-variant-numeric: tabular-nums; }
.est-row.best { border-color: var(--ok); box-shadow: inset 4px 0 0 var(--ok); }
.est-row b { font-size: 20px; }
.est-note { max-width: 640px; margin: 14px 0; font-size: 14px; }

/* estimation : prix sans / avec le lien */
.est-form input.sel { padding: 10px 12px; }
.est-name { min-width: 0; }
.est-price { display: grid; justify-items: end; gap: 2px; text-align: right; }
.est-price s { color: var(--muted); font-size: 14px; }
.est-price b { font-size: 22px; color: var(--ok); }
.est-save { font-size: 13px; font-weight: 700; color: var(--ok); }
.est-promo { max-width: 640px; margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r-ui); background: var(--accent); color: var(--accent-ink); }
.est-promo strong { font: 800 20px/1.2 var(--display); letter-spacing: -.02em; }
.est-promo span { display: block; margin-top: 4px; opacity: .92; font-size: 15px; }

/* bandeau d'annonce (créé dans l'admin, Apparence) */
.announce { display: block; text-align: center; padding: 9px 16px; font-size: 14px; font-weight: 600; background: var(--accent); color: var(--accent-ink); }
.announce.dark { background: #0d0f14; color: #fff; }
.announce.light { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); }
a.announce:hover { text-decoration: underline; }

/* favoris, filtres, barre d'achat mobile */
.card .im { position: relative; }
.fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center; backdrop-filter: blur(4px); }
.fav.on { color: #ff4d6d; background: rgba(255,255,255,.92); }
.fav:hover { transform: scale(1.08); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.filters .sel { width: 120px; }
.fchk { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text); }
.buybar { display: none; }
@media (max-width: 700px) {
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
  .buybar .bb-t { flex: 1; min-width: 0; display: grid; }
  .buybar .bb-t b { font-size: 17px; }
  .buybar .bb-t span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .fav { position: static; background: var(--surface-2); color: var(--muted); flex: none; }
  .buybar .fav.on { color: #ff4d6d; }
  main { padding-bottom: 96px; }
}

/* cœur des favoris, en haut à droite */
.favlink { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--muted); border: 1px solid var(--line); background: var(--surface); flex: none; }
.favlink:hover, .favlink.active { color: #ff4d6d; border-color: #ff4d6d; }
.favlink.has { color: #ff4d6d; }
.favlink b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff4d6d; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
