/* Black Friday theme. Every rule is scoped to html.bf, which /bf.js only adds
   between 20 and 30 Nov 2026. Safe to delete afterwards with bf.js, logo-bf.png
   and the tags that load them. */

html.bf {
  --bf-bg: #0a0507;
  --bf-surface: #16090f;
  --bf-line: rgba(255, 255, 255, 0.12);
  --bf-text-2: #d9cdd3;
  --bf-text-3: #b9a9b1;
  --bf-pink: #ff0066;
  --bf-acc: #ff4d94;
  --bf-tint: #3a0a20;
  background: var(--bf-bg);
}
html.bf:has([role="switch"][aria-checked="true"]) { --bf-acc: #4de4ff; --bf-tint: #07303a; }

/* ---------- Bar ---------- */
html.bf .bf-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 14px;
  min-height: 44px; box-sizing: border-box; padding: 8px 20px;
  background: #ff0066; color: #0a0507;
  font: 600 14px/1.35 'Inter', system-ui, sans-serif; text-align: center; text-decoration: none;
}
html.bf .bf-bar strong { font-family: 'Mona Sans', 'Inter', system-ui, sans-serif; font-weight: 900; }
html.bf .bf-bar:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }

/* ---------- Page ---------- */
html.bf:has(#root) body { background: var(--bf-bg); }
html.bf #root > div { background: var(--bf-bg) !important; }
html.bf #root #confiance, html.bf #root #comment, html.bf #root #avantages,
html.bf #root #questions, html.bf #root #faq { background: transparent !important; }
html.bf #root h1, html.bf #root h2 {
  background: none !important; color: #fff !important; -webkit-text-fill-color: #fff;
}
html.bf #root h1 span { color: #fff !important; -webkit-text-fill-color: #fff; background: none !important; }
html.bf #root p { color: var(--bf-text-2) !important; }

/* Header */
html.bf #root header > div {
  background: rgba(22, 9, 15, 0.92) !important; border-color: var(--bf-line) !important; box-shadow: none !important;
}
html.bf #root header nav a { color: #fff !important; opacity: 0.82 !important; }
html.bf #root header nav a:hover { opacity: 1 !important; }
html.bf #root header img[src*="logo-color"] { content: url(/logo-bf.png); }
html.bf #root header a[href*="apps.apple.com"] svg * { stroke: #0a0507 !important; }
html.bf #root header button > span { background: #fff !important; }
html.bf #root header nav[style*="absolute"] { background: rgba(22, 9, 15, 0.98) !important; border-color: var(--bf-line) !important; box-shadow: none !important; }
html.bf #root header nav[style*="absolute"] a { opacity: 1 !important; }

/* Buttons: dark text on pink reads better than white */
html.bf #root header a[href*="apps.apple.com"],
html.bf #root header + div a[href*="apps.apple.com"],
html.bf #root #comment a[href*="apps.apple.com"],
html.bf #root #questions a[href*="partenaires"],
html.bf #root #tarifs .bf-pack-hl a {
  background: var(--bf-pink) !important; color: #0a0507 !important; box-shadow: none !important; border-color: transparent !important;
}
html.bf #root #avantages > div > div:first-child a {
  background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}

/* Hero */
html.bf #root header + div {
  background: radial-gradient(ellipse 46% 52% at 66% 56%, rgba(255, 0, 102, 0.4), rgba(255, 0, 102, 0.13) 50%, rgba(255, 0, 102, 0)) var(--bf-bg) !important;
  padding-bottom: clamp(110px, 13vw, 210px) !important;
}
html.bf #root header + div > div:nth-child(1), html.bf #root header + div > div:nth-child(2) { display: none !important; }
html.bf #root header + div > div:nth-child(3) { z-index: 2; }
html.bf #root header + div::after {
  content: 'BLACK FRIDAY'; position: absolute; left: -6%; right: -6%; bottom: clamp(22px, 2.9vw, 48px); z-index: 1;
  padding: clamp(10px, 1.1vw, 18px) 0; background: var(--bf-pink); color: #0a0507; transform: rotate(-3deg);
  font: 900 clamp(40px, 7vw, 104px)/1 'Mona Sans', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em; text-align: center; white-space: nowrap;
}

/* Switch */
html.bf #root [role="switch"] { background-color: #2b1820 !important; border-color: var(--bf-line) !important; }
html.bf #root [role="switch"] > div > div:nth-child(1) { background: var(--bf-pink) !important; }
html.bf #root [role="switch"][aria-checked="true"] > div > div:nth-child(1) { background: #4de4ff !important; }
html.bf #root [role="switch"] > div > div:nth-child(2) { color: #0a0507 !important; opacity: 1 !important; }

/* Section eyebrows */
html.bf #root #comment > div > div:first-child,
html.bf #root #avantages > div > div:first-child > div:first-child,
html.bf #root #questions > div > div:first-child > div:first-child,
html.bf #root #faq > div > div:first-child > div:first-child,
html.bf #root #tarifs > div > div:first-child { color: var(--bf-acc) !important; }

/* Steps */
html.bf #root #comment > div > div:nth-child(4) > div {
  background: var(--bf-surface) !important; border-color: var(--bf-line) !important; box-shadow: none !important;
}
html.bf #root #comment > div > div:nth-child(4) > div > div:first-child { background: var(--bf-tint) !important; }
html.bf #root #comment > div > div:nth-child(4) > div > div:nth-child(2) > div { background: var(--bf-line) !important; }
html.bf #root #comment > div > div:nth-child(4) > div > div:nth-child(2) > span { color: var(--bf-acc) !important; }
html.bf #root #comment > div > div:nth-child(4) > div > div:nth-child(3) > div:first-child { color: #fff !important; }
html.bf #root #comment > div > div:nth-child(4) > div > div:nth-child(3) > div:last-child { color: var(--bf-text-3) !important; }

html.bf #root #comment > div > div:nth-child(4) > div > div:first-child span[style*="999px"] { background: var(--bf-pink) !important; color: #0a0507 !important; }

/* Hero offer cards (Établissement side), found by their photo at any screen size */
html.bf #root header + div div:has(> div > img:is([src*="/offers/heetch.jpg"], [src*="/offers/sacoddo.jpg"], [src*="/offers/piove.jpg"])) {
  background: #1f0e16 !important; border-color: var(--bf-line) !important; box-shadow: none !important;
}
html.bf #root header + div div:has(> div > img:is([src*="/offers/heetch.jpg"], [src*="/offers/sacoddo.jpg"], [src*="/offers/piove.jpg"])) > div:not(:has(> img)) > div,
html.bf #root header + div div:has(> div > img:is([src*="/offers/heetch.jpg"], [src*="/offers/sacoddo.jpg"], [src*="/offers/piove.jpg"])) > div:not(:has(> img)) span:first-child { color: #fff !important; }
html.bf #root header + div div:has(> div > img:is([src*="/offers/heetch.jpg"], [src*="/offers/sacoddo.jpg"], [src*="/offers/piove.jpg"])) > div:not(:has(> img)) > div:nth-child(3),
html.bf #root header + div div:has(> div > img:is([src*="/offers/heetch.jpg"], [src*="/offers/sacoddo.jpg"], [src*="/offers/piove.jpg"])) > div:not(:has(> img)) span:nth-child(2) { color: var(--bf-text-3) !important; }

/* Points Fame / Freemium card */
html.bf #root #avantages > div > div:last-child > div {
  background: var(--bf-surface) !important; border-color: var(--bf-line) !important; box-shadow: none !important; color: #fff !important;
}
html.bf #root #avantages > div > div:last-child > div:has(button) > div:first-child { background: var(--bf-pink) !important; color: #0a0507 !important; }
html.bf #root #avantages > div > div:last-child > div:has(button) > div:first-child * { color: #0a0507 !important; opacity: 1 !important; }
html.bf #root #avantages > div > div:last-child > div:has(button) > div:first-child > div:nth-child(3) { background: rgba(10, 5, 7, 0.25) !important; }
html.bf #root #avantages > div > div:last-child > div:has(button) > div:first-child > div:nth-child(3) > div { background: #0a0507 !important; }
html.bf #root #avantages > div > div:last-child > div:has(button) > div:nth-child(2) > div { color: #fff !important; }
html.bf #root #avantages > div > div:last-child > div:has(button) > div:nth-child(2) > a { color: var(--bf-acc) !important; }
html.bf #root #avantages > div > div:last-child > div:has(button) > div:nth-child(3) > div { border-color: var(--bf-line) !important; }
html.bf #root #avantages > div > div:last-child > div:has(button) > div:nth-child(3) > div > div > div { color: #fff !important; }
html.bf #root #avantages > div > div:last-child button { background: var(--bf-pink) !important; color: #0a0507 !important; }
html.bf #root #avantages > div > div:last-child > div:not(:has(button)) > div:first-child > div { color: #fff !important; }
html.bf #root #avantages > div > div:last-child > div:not(:has(button)) > div:first-child > span { color: #0a0507 !important; background: #4de4ff !important; }
html.bf #root #avantages > div > div:last-child > div:not(:has(button)) > div:nth-child(2) > div > div:nth-child(2) > div:first-child { color: #fff !important; }
html.bf #root #avantages > div > div:last-child > div:not(:has(button)) > div:nth-child(2) > div > div:nth-child(2) > div:last-child { color: var(--bf-text-3) !important; }

/* Chat */
html.bf #root #questions > div > div:first-child a[href="#tarifs"] { color: #fff !important; border-bottom-color: rgba(255, 255, 255, 0.4) !important; }
html.bf #root #questions > div > div:nth-child(2) { background: var(--bf-surface) !important; border-color: var(--bf-line) !important; box-shadow: none !important; }
html.bf #root #questions > div > div:nth-child(2) > div { border-color: var(--bf-line) !important; }
html.bf #root #questions > div > div:nth-child(2) > div:first-child > div > div:first-child { color: #fff !important; }
html.bf #root #questions > div > div:nth-child(2) > div:first-child > div > div:last-child { color: var(--bf-text-3) !important; }
html.bf #root #questions > div > div:nth-child(2) > div:nth-child(2) { background: transparent !important; }
html.bf #root #questions > div > div:nth-child(2) > div:nth-child(2) > div:not(.fame-msg) > div { background-color: #2b1820 !important; }
html.bf #root #questions .fame-msg > div:first-child { background: #2b1820 !important; color: #fff !important; box-shadow: none !important; }
html.bf #root #questions .fame-msg[style*="flex-end"] > div:first-child { background: var(--bf-pink) !important; color: #0a0507 !important; }
html.bf #root #questions .fame-meta, html.bf #root #questions > div > div:nth-child(2) > div:last-child,
html.bf #root #questions > div > div:nth-child(2) > div:last-child * { color: var(--bf-text-3) !important; }

/* Packs */
html.bf #root #tarifs {
  background: radial-gradient(ellipse 48% 48% at 50% 58%, rgba(255, 0, 102, 0.32), rgba(255, 0, 102, 0.11) 50%, rgba(255, 0, 102, 0)) !important;
}
html.bf .bf-label {
  width: fit-content; margin: 0 auto 20px; padding: 8px 18px; border-radius: 10px;
  background: var(--bf-pink); color: #0a0507; font: 800 17px/1.4 'Mona Sans', 'Inter', system-ui, sans-serif;
}
html.bf #root .bf-pack {
  background: var(--bf-surface) !important; color: #fff !important; border: 1px solid var(--bf-line) !important; box-shadow: none !important;
}
html.bf #root .bf-pack-hl { background: #2a0917 !important; border-color: var(--bf-pink) !important; box-shadow: 0 0 0 1px var(--bf-pink) !important; }
html.bf #root .bf-pack > div:nth-child(3) { color: var(--bf-text-3) !important; min-height: 38px !important; }
html.bf #root .bf-pack > div:nth-child(4) { background: var(--bf-line) !important; }
html.bf #root .bf-pack li, html.bf #root .bf-pack li span { color: #f0e7ec !important; }
html.bf #root .bf-pack li svg { stroke: var(--bf-acc) !important; }
html.bf #root .bf-pack:not(.bf-pack-hl) a { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, 0.3) !important; }
html.bf .bf-per { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; }
html.bf .bf-per s { font-size: 16px; }
html.bf .bf-per strong { padding: 2px 10px; border-radius: 8px; background: var(--bf-pink); color: #0a0507; font-weight: 800; }

/* App */
html.bf #root #app { background: #1f0e16 !important; border-block: 1px solid var(--bf-line); }
html.bf #root #app a { box-shadow: none !important; }
html.bf #root #app a[href] { background: #fff !important; color: #0a0507 !important; }
html.bf #root #app a[href] svg, html.bf #root #app a[href] svg path { fill: #0a0507 !important; }
html.bf #root #confiance * { color: var(--bf-text-2) !important; }
html.bf #root #confiance img[alt*="Piov"] { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
html.bf #root #app a:not([href]) { background: transparent !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25) !important; }

/* FAQ */
html.bf #root #faq > div > div:nth-child(2) > div {
  background: var(--bf-surface) !important; border-color: var(--bf-line) !important; box-shadow: none !important;
}
html.bf #root #faq > div > div:nth-child(2) > div > div:first-child > div { color: #fff !important; }
html.bf #root #faq > div > div:nth-child(2) > div > div:nth-child(2) > div { color: var(--bf-text-2) !important; }

html.bf #root footer { background: var(--bf-bg) !important; border-top: 1px solid var(--bf-line); }

/* ---------- partenaires.html: only the bar ---------- */
html.bf body:not(:has(#root)) > .bf-bar { position: absolute; top: 0; left: 0; right: 0; }
html.bf body:not(:has(#root)) { padding-top: 96px; }
