/* ==========================================================
   BLACK NOVEMBER · Dernières Pièces (9 → 30 novembre 2026)
   Couche ajoutée par-dessus citydesk.tn — rien d'autre n'est modifié.
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap');
:root { --bn-red: #b5121b; --bn-red-dark: #8f0e15; --bn-black: #0d0d0d; --bn-cream: #f4efe6; --bn-gold: #d6b25e; }

/* 1. En-tête — message dans la barre noire */
.bn-topmsg { display: inline-flex; align-items: center; gap: 10px; color: #ddd; font-family: Inter, sans-serif; font-size: 13px; white-space: nowrap; text-decoration: none; }
.bn-topmsg b { color: #fff; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.bn-topmsg i { width: 1px; height: 14px; background: #555; }
.bn-topmsg:hover { color: #fff; }
.bn-topbar { position: relative; }
.bn-topbar .bn-topmsg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.bn-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bn-red); flex: none; animation: bn-pulse 2s infinite; }
@keyframes bn-pulse { 0% { box-shadow: 0 0 0 0 rgba(181,18,27,.7); } 70%, 100% { box-shadow: 0 0 0 7px rgba(181,18,27,0); } }

/* 2. En-tête — bouton rouge avant « Nos Produits » */
.bn-headbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--bn-red); color: #fff !important; font-family: Inter, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 20px; border-radius: 999px; box-shadow: 0 4px 14px rgba(181,18,27,.35); transition: background .2s, transform .2s; white-space: nowrap; text-decoration: none; margin-right: 22px; }
.bn-headbtn::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.bn-headwrap { display: flex; justify-content: flex-end; align-items: center; width: 0; flex: none; overflow: visible; margin-right: calc(-1 * var(--bn-gap, 20px)); }
.bn-headbtn:hover { background: var(--bn-red-dark); transform: translateY(-1px); }

/* 3. Accueil — bannière de campagne à la place du slider */
.bn-hidden { display: none !important; }
.bn-hero { display: block; position: relative; overflow: hidden; background: var(--bn-black); }
.bn-hero img { width: 100%; height: auto; display: block; }


/* 5. Page Promotions — bannière à la largeur de la grille */
.bn-promo-banner { display: block; width: 100%; margin: 0; }
.bn-promo-sec { padding-top: 24px !important; }
.bn-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.bn-band { padding-top: 0 !important; padding-bottom: 0 !important; }
.bn-band .brxe-container { max-width: 100%; margin-left: auto; margin-right: auto; }
.bn-band__link { display: block; width: 100%; }
.bn-band__link img { width: 100%; height: auto; display: block; }
.bn-promo-banner img { width: 100%; height: auto; display: block; }

/* 6. Cartes produits — badge noir -% / « Dernières pièces » / prix soldé en noir */
.bn-has-badge { position: relative; }
.bn-badge { position: absolute; top: 10px; left: 10px; z-index: 3; background: var(--bn-black); color: #fff; font-family: Inter, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .04em; padding: 3px 7px; line-height: 1.3; pointer-events: none; }
.bn-last { position: absolute; top: 12px; right: 12px; z-index: 3; color: var(--bn-red); font-family: Inter, sans-serif; font-size: 9.5px; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; line-height: 1.3; pointer-events: none; }
.bn-sale ins, .bn-sale ins bdi, .bn-sale ins .amount { color: #111 !important; }
html.bn-no-tags .bn-last { display: none; }

/* 7. Fiche produit — étiquette rouge + badge sur la photo */
.bn-label { display: inline-block; background: var(--bn-red); color: #fff; font-family: Inter, sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px; line-height: 1.2; margin: 6px 0 18px; }
.bn-photo-badge { position: absolute; top: 16px; left: 16px; z-index: 5; background: var(--bn-black); color: #fff; font-family: Inter, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .04em; padding: 7px 10px; line-height: 1.2; pointer-events: none; }

/* 7b. Produit variable (aperçu local) : choix de l'attribut */
.bn-variations { margin: 4px 0 22px; font-family: Inter, sans-serif; }
.bn-variations__label { font-size: 13px; color: #555; margin-bottom: 10px; }
.bn-variations__label b { color: #111; font-weight: 600; }
.bn-variations__opts { display: flex; gap: 10px; flex-wrap: wrap; }
.bn-variations__opts button { background: #fff; color: #111; border: 1px solid #d9d9d9; padding: 10px 18px; font: 500 14px Inter, sans-serif; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.bn-variations__opts button:hover { border-color: #111; }
.bn-variations__opts button.on { border-color: #111; box-shadow: inset 0 0 0 1px #111; }

/* 8. Rideau noir à l'arrivée — remonte vers le haut */
.bn-curtain { position: fixed; inset: 0; z-index: 99999; background: var(--bn-black); display: grid; place-items: center; text-align: center; transform: translateY(0); transition: transform .95s cubic-bezier(.77, 0, .18, 1); cursor: pointer; }
.bn-curtain.up { transform: translateY(-100%); }
html.bn-pre::after { content: ""; position: fixed; inset: 0; z-index: 99999; background: var(--bn-black); animation: bn-pre-off 0s 3.5s forwards; }
/* sécurité : si black-november.js ne se charge pas (bloqueur, réseau), le cache noir disparaît seul après 3,5 s */
@keyframes bn-pre-off { to { visibility: hidden; } }
.bn-curtain__k { font-family: Inter, sans-serif; color: #888; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: 0; animation: bn-in .6s .1s forwards; }
.bn-curtain__t { font-family: Belleza, Georgia, serif; color: var(--bn-red); font-size: clamp(34px, 6.5vw, 78px); letter-spacing: .06em; line-height: 1; margin: 14px 0 16px; opacity: 0; animation: bn-in .7s .3s forwards; }
.bn-curtain__l { width: 48px; height: 1px; background: var(--bn-red); margin: 0 auto 14px; transform: scaleX(0); animation: bn-line .6s .7s forwards; }
.bn-curtain__s { font-family: "Playfair Display", Georgia, serif; font-style: italic; color: var(--bn-cream); font-size: clamp(17px, 2vw, 24px); opacity: 0; animation: bn-in .6s .9s forwards; }
@keyframes bn-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bn-line { to { transform: scaleX(1); } }

/* 9. Pluie de petits cadeaux sur le hero */
.bn-rain { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.bn-rain { perspective: 600px; }
.bn-gold { position: absolute; top: -30px; animation: bn-gfall linear infinite; will-change: transform; }
.bn-gold i { display: block; width: 100%; height: 100%; animation: bn-gflip var(--spin) linear infinite; }
.bn-gold--leaf i { background: linear-gradient(135deg, #7a5a14 0%, #c9982e 25%, #f5d77a 45%, #fff3c4 52%, #e2b54a 62%, #8a6a1f 100%); border-radius: 1px; box-shadow: 0 0 6px rgba(245,215,122,.45); }
.bn-gold--sequin i { background: radial-gradient(circle at 35% 30%, #fff6d6 0%, #f2cf6b 35%, #b8862b 75%, #6e4f12 100%); border-radius: 50%; box-shadow: 0 0 8px rgba(245,215,122,.6); }
.bn-gold--spark i { animation: bn-twinkle 1.6s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255,220,130,.95)) drop-shadow(0 0 10px rgba(214,178,94,.6)); }
@keyframes bn-gfall {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(var(--sx), calc(var(--h) * .25), 0); }
  50% { transform: translate3d(calc(var(--sx) * -1), calc(var(--h) * .5), 0); }
  75% { transform: translate3d(var(--sx), calc(var(--h) * .75), 0); }
  100% { transform: translate3d(0, calc(var(--h) + 60px), 0); }
}
@keyframes bn-gflip { to { transform: rotate3d(var(--ax), var(--ay), .3, 720deg); } }
@keyframes bn-twinkle { 0%, 100% { transform: scale(.55) rotate(0); opacity: .55; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }

/* 10. Boîte cadeau (bas à gauche) + carte « Votre pièce » */
.bn-box { position: fixed; left: 24px; bottom: 14px; z-index: 9990; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; }
.bn-box__ico { width: 64px; height: 64px; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.28)); transform-origin: 50% 90%; animation: bn-wiggle 4s ease-in-out infinite; }
.bn-box__tag { background: #fff; color: #111; font: 400 13px Inter, sans-serif; padding: 8px 12px; border-left: 2px solid var(--bn-red); box-shadow: 0 3px 12px rgba(0,0,0,.14); white-space: nowrap; }
.bn-box:hover .bn-box__tag { background: var(--bn-red); color: #fff; }
@keyframes bn-wiggle { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(-10deg) scale(1.06); } 90% { transform: rotate(8deg) scale(1.06); } 93% { transform: rotate(-4deg); } }

.bn-pick { position: fixed; left: 24px; bottom: 94px; z-index: 9991; width: 260px; background: #fff; border-top: 3px solid var(--bn-red); box-shadow: 0 16px 40px rgba(0,0,0,.28); padding: 16px 16px 14px; font-family: Inter, sans-serif; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }
.bn-pick.open { opacity: 1; transform: none; pointer-events: auto; }
.bn-pick__k { color: var(--bn-red); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-right: 20px; }
.bn-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 16px; color: #999; cursor: pointer; line-height: 1; padding: 0; }
.bn-pick__img { position: relative; background: var(--bn-cream); aspect-ratio: 4/3; margin: 12px 0; overflow: hidden; }
.bn-pick__img img { position: absolute; inset: 8px; width: calc(100% - 16px) !important; height: calc(100% - 16px) !important; max-width: none; object-fit: contain; mix-blend-mode: multiply; }
.bn-pick__n { font-family: Belleza, serif; font-size: 19px; color: #111; }
.bn-pick__c { font-size: 11px; color: #888; margin-bottom: 6px; }
.bn-pick__p { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bn-pick__p del { color: #999; font-size: 11px; }
.bn-pick__p b { color: #111; }
.bn-pick__p em { font-style: normal; background: var(--bn-red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 5px; }
.bn-pick__cta { display: block; background: var(--bn-red); color: #fff !important; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 11px; margin: 12px 0 8px; text-decoration: none; }
.bn-pick__cta:hover { background: var(--bn-red-dark); }
.bn-pick__all { display: block; text-align: center; font-size: 12px; color: #111 !important; text-decoration: underline; text-underline-offset: 3px; }

/* 11. Carte de bienvenue (3 s) */
.bn-welcome { position: fixed; right: 20px; bottom: 20px; z-index: 9990; width: 310px; background: var(--bn-black); color: #fff; border-top: 3px solid var(--bn-red); padding: 18px 20px; box-shadow: 0 16px 40px rgba(0,0,0,.35); font-family: Inter, sans-serif; opacity: 0; transform: translateY(16px); pointer-events: none; transition: .4s; }
.bn-welcome.open { opacity: 1; transform: none; pointer-events: auto; }
.bn-welcome .bn-x { color: #888; }
.bn-welcome__k { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.bn-welcome__t { font-family: Belleza, Georgia, serif; font-size: 23px; line-height: 1.25; margin: 10px 0 8px; }
.bn-welcome p { color: #bbb; font-size: 12.5px; margin: 0 0 12px; line-height: 1.5; }
.bn-welcome a { color: #fff !important; font-size: 12px; font-weight: 700; border-bottom: 1px solid #fff; padding-bottom: 2px; text-decoration: none; }

/* 12. Panneau « Idées » (localhost uniquement) */
.bn-ideas { position: fixed; right: 0; top: 50%; z-index: 99998; font: 13px Inter, sans-serif; }
.bn-ideas__tab { position: absolute; right: 0; top: 0; background: #fff3c4; border: 1px solid #e8d48a; border-right: 0; padding: 7px 11px; font: 600 12px Inter, sans-serif; color: #111; cursor: pointer; white-space: nowrap; }
.bn-ideas__panel { position: absolute; right: 8px; top: 38px; width: 260px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 14px 16px; display: none; }
.bn-ideas.open .bn-ideas__panel { display: block; }
.bn-ideas h5 { margin: 0 0 8px; font: 700 13px Inter, sans-serif; color: #111; }
.bn-ideas label { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; color: #666; cursor: pointer; line-height: 1.4; }
.bn-ideas label input { margin-top: 3px; accent-color: #1a73e8; }
.bn-ideas .bn-replay { width: 100%; background: #111; color: #fff; border: 0; padding: 9px; font: 600 12px Inter, sans-serif; margin: 10px 0 6px; cursor: pointer; }
.bn-ideas small { color: #999; font-size: 11px; }

@media (max-width: 991px) {
  .bn-topmsg { font-size: 11px; gap: 7px; }
  .bn-topmsg b { font-size: 11px; }
  .bn-headbtn { font-size: 10px; padding: 8px 12px; letter-spacing: .08em; margin-right: 10px; }
  .bn-headbtn::before { display: none; }
}
@media (max-width: 767px) {
  .bn-topbar { flex-wrap: wrap; }
  .bn-topbar .bn-topmsg { position: static; transform: none; order: 10; width: 100%; justify-content: center; padding: 2px 0 6px; }
  .bn-headwrap { display: none; }
  .bn-badge { top: 8px; left: 8px; font-size: 10.5px; padding: 3px 6px; }
  .bn-last { top: 11px; right: 8px; font-size: 8px; letter-spacing: .1em; }
  .bn-box { left: 12px; bottom: 10px; }
  .bn-box__ico { width: 54px; height: 54px; }
  .bn-box__tag { display: none; }
  .bn-pick { left: 12px; bottom: 76px; }
  .bn-welcome { right: 12px; left: 12px; width: auto; bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .bn-rain, .bn-curtain { display: none; }
  .bn-dot, .bn-box__ico { animation: none; }
}
