/* ==========================================================================
   BDA — Home hero « motion » (2026-10)
   Namespace : .bdx-*  — indépendant de l'ancien .nova-hero
   ========================================================================== */

@font-face {
  font-family: "BDX Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.bdx-hero {
  --gold: #d6ae5a;
  --gold-hi: #f3d68f;
  --gold-lo: #a8792c;
  --ink: #08090c;
  --txt: #f6f5f2;
  --txt-2: #a9aab2;
  --line: rgba(255, 255, 255, .08);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --mx: 70%;
  --my: 40%;
  --scroll: 0;

  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(700px, calc(100svh - 64px));
  isolation: isolate;
  overflow: hidden;
  color: var(--txt);
  background:
    radial-gradient(120% 90% at 85% 0%, #17140e 0%, transparent 55%),
    linear-gradient(180deg, #0b0c10 0%, var(--ink) 70%, #0d0e13 100%);
}

.nova-home > section.bdx-hero::after { content: none; }

/* ---------- Background layers ---------- */
.bdx-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.bdx-hero__silk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: calc(1 - var(--scroll) * 1.2);
  -webkit-mask-image: linear-gradient(100deg, transparent 6%, rgba(0,0,0,.35) 34%, #000 62%);
          mask-image: linear-gradient(100deg, transparent 6%, rgba(0,0,0,.35) 34%, #000 62%);
}

.bdx-hero__glow { position: absolute; border-radius: 50%; filter: blur(20px); }
.bdx-hero__glow--gold {
  top: -28%; right: -10%;
  width: min(62vw, 900px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(214,174,90,.22), rgba(214,174,90,.05) 40%, transparent 68%);
  animation: bdxDrift 16s var(--ease-io) infinite alternate;
}
.bdx-hero__glow--cool {
  bottom: -40%; left: -20%;
  width: min(55vw, 760px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(92,128,200,.12), transparent 66%);
  animation: bdxDrift 20s -6s var(--ease-io) infinite alternate-reverse;
}
.bdx-hero__aura {
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(243,214,143,.085), transparent 60%);
  opacity: 0;
  transition: opacity .8s ease;
}
.bdx-hero.is-pointer .bdx-hero__aura { opacity: 1; }

.bdx-hero__rules {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
}
.bdx-hero__rules i {
  border-left: 1px solid var(--line);
  transform-origin: top;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
}
.bdx-hero__rules i:last-child { border-right: 1px solid var(--line); }

.bdx-hero__grain {
  position: absolute; inset: -50%;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: bdxGrain 1.2s steps(6) infinite;
}

/* ---------- Layout ---------- */
.bdx-hero__layout {
  position: relative;
  display: grid;
  flex: 1;
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
  padding: clamp(56px, 8vh, 112px) 0 clamp(40px, 6vh, 72px);
}

.bdx-hero__copy {
  position: relative;
  z-index: 3;
  transform: translate3d(0, calc(var(--scroll) * -70px), 0);
  opacity: calc(1 - var(--scroll) * 1.1);
}

/* Kicker */
.bdx-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(22px, 3vh, 34px);
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(214,174,90,.22);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(214,174,90,.1), rgba(214,174,90,.02));
  color: #e2c47f !important;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.bdx-hero__kicker-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 14px rgba(243,214,143,.8);
}
.bdx-hero__kicker-dot::after {
  position: absolute; inset: -5px;
  border: 1px solid rgba(243,214,143,.5);
  border-radius: 50%;
  content: "";
  animation: bdxPing 2.4s var(--ease-out) infinite;
}
.bdx-hero__kicker-short { display: none; }

/* Title */
.bdx-hero__title {
  margin: 0 0 clamp(22px, 3vh, 30px);
  color: var(--txt) !important;
  font-size: clamp(2.55rem, 4.1vw, 4.65rem);
  font-weight: 650;
  letter-spacing: -.055em !important;
  line-height: .97;
  text-wrap: balance;
}
.bdx-hero__line { display: block; }
.bdx-hero__signature {
  margin: -.02em 0 -.2em -.06em;
  padding: .08em .24em .2em .06em;
  font-family: "BDX Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.1em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.bdx-hero__signature {
  display: inline-block !important;
  background: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold) 22%, #fff3cf 42%, var(--gold-hi) 55%, var(--gold) 75%, var(--gold-lo) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bdxShimmer 7s 2s var(--ease-io) infinite alternate;
}

/* Word split (JS) */
.bdx-w {
  display: inline-block;
  overflow: hidden;
  padding: .02em .06em .12em 0;
  margin: 0 -.06em -.12em 0;
  vertical-align: top;
}
.bdx-w__i { display: inline-block; will-change: transform; }

/* Lead + proof */
.bdx-hero__lead {
  max-width: 520px;
  margin: 0 0 clamp(26px, 3.6vh, 36px);
  color: var(--txt-2) !important;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.65;
}
.bdx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.bdx-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #8d8f98;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.bdx-hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.bdx-hero__proof li::before {
  width: 14px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  content: "";
}

/* ---------- Buttons ---------- */
.bdx-btn {
  --tx: 0px; --ty: 0px;
  position: relative;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: -.005em;
  isolation: isolate;
  transform: translate3d(var(--tx), var(--ty), 0);
  transition: transform .5s var(--ease-out), box-shadow .4s ease, border-color .3s ease, background-color .3s ease;
}
.bdx-btn__label, .bdx-btn__icon { position: relative; z-index: 1; transition: transform .5s var(--ease-out); }
.bdx-btn__icon {
  display: grid;
  width: 28px; height: 28px;
  margin-right: -12px;
  place-items: center;
  border-radius: 50%;
  font-size: .9rem;
}
.bdx-btn--gold {
  color: #15120b !important;
  background: linear-gradient(135deg, #f6dc98 0%, #d9b061 48%, #b98935 100%);
  box-shadow: 0 18px 50px -12px rgba(214,174,90,.55), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.18);
}
.bdx-btn--gold .bdx-btn__icon { background: rgba(21,18,11,.12); }
.bdx-btn--gold::before {
  position: absolute; inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  content: "";
  transform: translateX(-120%);
  animation: bdxSheen 5.5s 2.6s var(--ease-io) infinite;
}
.bdx-btn--gold:hover { box-shadow: 0 24px 64px -10px rgba(214,174,90,.7), 0 0 0 6px rgba(214,174,90,.1), inset 0 1px 0 rgba(255,255,255,.6); }
.bdx-btn--ghost {
  color: var(--txt) !important;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
}
.bdx-btn--ghost .bdx-btn__icon { border: 1px solid rgba(255,255,255,.14); }
.bdx-btn--ghost:hover { border-color: rgba(214,174,90,.5); background: rgba(214,174,90,.07); }
.bdx-btn:hover .bdx-btn__icon { transform: translateX(3px) rotate(0deg); }
.bdx-btn--gold:hover .bdx-btn__icon { transform: translate(2px, -2px); }

/* ---------- Showreel ---------- */
.bdx-reel {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  z-index: 2;
  transform: translate3d(0, calc(var(--scroll) * 50px), 0) scale(calc(1 - var(--scroll) * .06));
  opacity: calc(1 - var(--scroll) * .9);
}
.bdx-reel__stage {
  position: relative;
  aspect-ratio: 16 / 11.5;
  perspective: 1600px;
  transform-style: preserve-3d;
}
.bdx-reel__stage::before {
  position: absolute;
  inset: 12% -6% -8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214,174,90,.28), transparent);
  filter: blur(30px);
  content: "";
  animation: bdxBreathe 6s var(--ease-io) infinite;
}

.bdx-card {
  position: absolute;
  inset: 8% 0 6% 6%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: #121318;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
  transform-origin: 50% 60%;
  backface-visibility: hidden;
  transition:
    transform 1.1s var(--ease-out),
    opacity .9s var(--ease-out),
    filter 1.1s var(--ease-out);
  will-change: transform, opacity;
}
.bdx-card::after {
  position: absolute; inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,.14) 0%, transparent 26%, transparent 70%, rgba(214,174,90,.08));
  content: "";
  pointer-events: none;
}
.bdx-card.is-instant { transition: none !important; }
.bdx-card__bar {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, #1c1e25, #15161c);
}
.bdx-card__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3d47; }
.bdx-card__bar i:first-child { background: #ff5f57; opacity: .8; }
.bdx-card__bar i:nth-child(2) { background: #febc2e; opacity: .8; }
.bdx-card__bar i:nth-child(3) { background: #28c840; opacity: .8; }
.bdx-card__bar span {
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  color: #7d808a;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.bdx-card img {
  width: 100%;
  height: calc(100% - 30px);
  object-fit: cover;
  object-position: top center;
  transform: scale(1.06);
  transition: transform 6s linear;
}
.bdx-card[data-pos="0"] img { transform: scale(1); }

/* Depth positions — the stage itself tilts with the pointer */
.bdx-card[data-pos="0"] {
  z-index: 4;
  transform: rotateX(var(--rx)) rotateY(calc(-9deg + var(--ry))) translate3d(0, 0, 0);
  opacity: 1;
}
.bdx-card[data-pos="1"] {
  z-index: 3;
  transform: rotateX(var(--rx)) rotateY(calc(-9deg + var(--ry))) translate3d(-7%, -8%, -110px) scale(.95);
  opacity: .7;
  filter: brightness(.62) saturate(.85);
}
.bdx-card[data-pos="2"] {
  z-index: 2;
  transform: rotateX(var(--rx)) rotateY(calc(-9deg + var(--ry))) translate3d(-14%, -16%, -220px) scale(.9);
  opacity: .35;
  filter: brightness(.45) saturate(.6) blur(1px);
}
.bdx-card[data-pos="back"] {
  z-index: 1;
  transform: rotateX(var(--rx)) rotateY(calc(-9deg + var(--ry))) translate3d(-20%, -24%, -340px) scale(.85);
  opacity: 0;
  filter: brightness(.4) blur(2px);
}
.bdx-card[data-pos="exit"] {
  z-index: 5;
  transform: rotateX(var(--rx)) rotateY(calc(-2deg + var(--ry))) translate3d(14%, 10%, 160px) scale(1.04);
  opacity: 0;
  filter: blur(6px);
  transition-duration: .9s, .6s, .9s;
}

/* Floating chips */
.bdx-chip {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(20,21,27,.72);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
  color: #e9e8e4;
  font-size: .7rem;
  font-weight: 650;
  white-space: nowrap;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transform: translateZ(80px);
  animation: bdxFloat 7s var(--ease-io) infinite;
}
.bdx-chip i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 10px var(--gold);
}
.bdx-chip--a { top: 4%; right: -2%; }
.bdx-chip--b { bottom: 18%; left: -4%; animation-delay: -2.4s; }
.bdx-chip--c { bottom: -1%; right: 10%; animation-delay: -4.6s; }
.bdx-chip--b i { background: #7fd6a8; box-shadow: 0 0 10px #4fbf86; }

/* Meta */
.bdx-reel__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(18px, 2.5vh, 28px);
  padding-left: 6%;
}
.bdx-reel__caption {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  gap: 12px;
  color: var(--txt) !important;
}
.bdx-reel__tag {
  color: var(--gold) !important;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bdx-reel__caption strong {
  overflow: hidden;
  font-size: .98rem;
  font-weight: 650;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bdx-reel__go { color: var(--gold); transition: transform .4s var(--ease-out); }
.bdx-reel__caption:hover .bdx-reel__go { transform: translateX(4px); }
.bdx-reel__caption.is-swap [data-bdx-tag],
.bdx-reel__caption.is-swap [data-bdx-title] { animation: bdxCaption .7s var(--ease-out); }

.bdx-reel__controls { display: flex; align-items: center; gap: 14px; }
.bdx-reel__steps { display: flex; gap: 6px; }
.bdx-reel__steps button {
  position: relative;
  width: 34px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.bdx-reel__steps button::before,
.bdx-reel__steps i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  content: "";
}
.bdx-reel__steps button::before { background: rgba(255,255,255,.14); }
.bdx-reel__steps i {
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
  transform: scaleX(0);
  transform-origin: left;
}
.bdx-reel__steps button.is-done i { transform: scaleX(1); opacity: .45; }
.bdx-reel__steps button.is-active i { transform: scaleX(1); opacity: 1; }
.bdx-reel.is-auto .bdx-reel__steps button.is-active i {
  transform: scaleX(0);
  animation: bdxProgress var(--bdx-dur, 4800ms) linear forwards;
}
.bdx-reel.is-paused .bdx-reel__steps button.is-active i { animation-play-state: paused; }

.bdx-reel__toggle {
  display: grid;
  width: 32px; height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: border-color .3s ease;
}
.bdx-reel__toggle:hover { border-color: rgba(214,174,90,.55); }
.bdx-reel__toggle span { width: 8px; height: 9px; border-inline: 2px solid #e6e5e1; }
.bdx-reel.is-user-paused .bdx-reel__toggle span {
  width: 0; height: 0;
  margin-left: 2px;
  border-block: 5px solid transparent;
  border-inline: 8px solid #e6e5e1;
  border-right: 0;
}
.bdx-reel:not(.is-auto) .bdx-reel__toggle { display: none; }

/* ---------- Foot : scroll cue + marquee ---------- */
.bdx-hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(0,0,0,.2));
}
.bdx-hero__scroll {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(24px, 3vw, 44px);
  height: 58px;
  border-right: 1px solid var(--line);
  color: #c9c9cd !important;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.bdx-hero__scroll-line {
  position: relative;
  width: 1px;
  height: 26px;
  overflow: hidden;
  background: rgba(255,255,255,.14);
}
.bdx-hero__scroll-line::after {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 45%;
  background: var(--gold-hi);
  content: "";
  animation: bdxScrollCue 2.2s var(--ease-io) infinite;
}
.bdx-hero__marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bdx-hero__marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  animation: bdxMarquee 38s linear infinite;
}
.bdx-hero__marquee:hover .bdx-hero__marquee-track { animation-play-state: paused; }
.bdx-hero__marquee span {
  color: #8f9099;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.bdx-hero__marquee i { color: var(--gold); font-size: .55rem; font-style: normal; opacity: .8; }

/* ==========================================================================
   Intro choreography (only when .bdx-motion is set → JS + motion allowed)
   ========================================================================== */
.bdx-motion .bdx-hero .bdx-in,
.bdx-motion .bdx-hero [data-bdx-split],
.bdx-motion .bdx-hero .bdx-reel > *,
.bdx-motion .bdx-hero .bdx-hero__foot { opacity: 0; }
.bdx-motion .bdx-hero .bdx-hero__rules i { transform: scaleY(0); }

/* Failsafe : if JS never runs, reveal after 2.5s */
.bdx-motion .bdx-hero:not(.is-ready) .bdx-in,
.bdx-motion .bdx-hero:not(.is-ready) [data-bdx-split],
.bdx-motion .bdx-hero:not(.is-ready) .bdx-reel > *,
.bdx-motion .bdx-hero:not(.is-ready) .bdx-hero__foot { animation: bdxFailsafe .6s 2.5s forwards; }
.bdx-motion .bdx-hero:not(.is-ready) .bdx-hero__rules i { animation: bdxRule 0s 2.5s forwards; }

.bdx-hero.is-ready .bdx-in { animation: bdxRise 1.1s var(--d, 0ms) var(--ease-out) both; }
.bdx-hero.is-ready [data-bdx-split] { opacity: 1; }
.bdx-hero.is-ready .bdx-w__i { animation: bdxWord 1.15s calc(260ms + var(--i) * 55ms) var(--ease-out) both; }
.bdx-hero.is-ready .bdx-hero__rules i { animation: bdxRule 1.6s var(--ease-out) both; }
.bdx-hero.is-ready .bdx-hero__rules i:nth-child(2) { animation-delay: .08s; }
.bdx-hero.is-ready .bdx-hero__rules i:nth-child(3) { animation-delay: .16s; }
.bdx-hero.is-ready .bdx-hero__rules i:nth-child(4) { animation-delay: .24s; }
.bdx-hero.is-ready .bdx-reel__stage { animation: bdxReelIn 1.6s .45s var(--ease-out) both; }
.bdx-hero.is-ready .bdx-reel__meta { animation: bdxRise 1s 1.2s var(--ease-out) both; }
.bdx-hero.is-ready .bdx-hero__signature { animation: bdxWipe 1.4s calc(380ms + var(--i, 8) * 55ms) var(--ease-out) both, bdxShimmer 7s 3s var(--ease-io) infinite alternate; }
.bdx-hero.is-ready .bdx-chip { animation: bdxChipIn .9s var(--ease-out) both, bdxFloat 7s var(--ease-io) infinite; }
.bdx-hero.is-ready .bdx-chip--a { animation-delay: 1.35s, 2.25s; }
.bdx-hero.is-ready .bdx-chip--b { animation-delay: 1.5s, -.2s; }
.bdx-hero.is-ready .bdx-chip--c { animation-delay: 1.65s, -2.6s; }
.bdx-hero.is-ready .bdx-hero__foot { animation: bdxFade 1.2s 1.5s ease both; }
.bdx-hero.is-ready .bdx-hero__silk { animation: bdxFade 2.4s .1s ease both; }


/* ---------- Keyframes ---------- */
@keyframes bdxRise { from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bdxWord { from { transform: translate3d(0, 112%, 0) rotate(4deg); } to { transform: none; } }
@keyframes bdxWipe {
  from { clip-path: inset(-20% 100% -30% 0); filter: blur(8px); translate: -12px 0; }
  to { clip-path: inset(-20% -5% -30% 0); filter: none; translate: 0 0; }
}
@keyframes bdxRule { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bdxReelIn {
  0% { opacity: 0; translate: 60px 40px; scale: .92; filter: blur(14px); }
  100% { opacity: 1; translate: 0 0; scale: 1; filter: none; }
}
@keyframes bdxChipIn { from { opacity: 0; scale: .7; translate: 0 14px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes bdxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bdxFailsafe { to { opacity: 1; } }
@keyframes bdxFloat { 0%, 100% { transform: translateZ(80px) translateY(0); } 50% { transform: translateZ(80px) translateY(-10px); } }
@keyframes bdxDrift { from { transform: translate3d(-3%, -2%, 0) scale(.95); } to { transform: translate3d(4%, 6%, 0) scale(1.08); } }
@keyframes bdxBreathe { 0%, 100% { opacity: .7; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes bdxGrain { 0% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); } 40% { transform: translate(4%,-8%); } 60% { transform: translate(-9%,2%); } 80% { transform: translate(7%,6%); } 100% { transform: translate(0,0); } }
@keyframes bdxPing { 0% { opacity: .9; transform: scale(.5); } 80%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes bdxShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes bdxSheen { 0%, 62% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes bdxProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bdxCaption { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bdxScrollCue { 0% { transform: translateY(-110%); } 100% { transform: translateY(240%); } }
@keyframes bdxMarquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .bdx-hero__layout { grid-template-columns: 1fr; gap: 56px; padding-top: 64px; }
  .bdx-hero__copy { max-width: 720px; }
  .bdx-reel { width: min(100%, 680px); margin-inline: auto; }
  .bdx-hero__rules { grid-template-columns: repeat(3, 1fr); }
  .bdx-hero__rules i:nth-child(4) { display: none; }
  .bdx-hero__rules i:nth-child(3) { border-right: 1px solid var(--line); }
  .bdx-hero__silk {
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.25) 10%, #000 70%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,.25) 10%, #000 70%);
  }
}

@media (max-width: 640px) {
  .bdx-hero { min-height: 0; }
  .bdx-hero__layout { width: calc(100% - 32px); gap: 44px; padding: 36px 0 40px; }
  .bdx-hero__rules { width: calc(100% - 32px); grid-template-columns: repeat(2, 1fr); }
  .bdx-hero__rules i:nth-child(3) { display: none; }
  .bdx-hero__rules i:nth-child(2) { border-right: 1px solid var(--line); }
  .bdx-hero__kicker { font-size: .6rem; letter-spacing: .14em; }
  .bdx-hero__kicker-full { display: none; }
  .bdx-hero__kicker-short { display: inline; }
  .bdx-hero__title { font-size: clamp(2.2rem, 9.6vw, 2.75rem); line-height: 1; }
  .bdx-hero__actions { flex-direction: column; align-items: stretch; }
  .bdx-btn { justify-content: space-between; min-height: 54px; }
  .bdx-hero__proof { gap: 8px 16px; font-size: .68rem; }
  .bdx-reel__stage { aspect-ratio: 16 / 12; }
  .bdx-card { inset: 10% 0 4% 6%; border-radius: 12px; }
  .bdx-card__bar { height: 22px; }
  .bdx-card__bar span { display: none; }
  .bdx-card img { height: calc(100% - 22px); }
  .bdx-chip { padding: 7px 11px; font-size: .62rem; }
  .bdx-chip--a { top: 0; right: 0; }
  .bdx-chip--b { bottom: 10%; left: -2%; }
  .bdx-chip--c { display: none; }
  .bdx-reel__meta { flex-wrap: wrap; padding-left: 0; }
  .bdx-hero__scroll { display: none; }
  .bdx-hero__foot { height: 52px; }
}

/* ==========================================================================
   Reduced motion : everything static, nothing hidden
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .bdx-hero *, .bdx-hero *::before, .bdx-hero *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .bdx-hero__copy, .bdx-reel { transform: none !important; opacity: 1 !important; }
  .bdx-hero__marquee-track { flex-wrap: wrap; width: auto; }
  .bdx-hero__marquee-track > [aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   Bandeau d'alerte sécurité (accueil)
   ========================================================================== */
.bdx-alert {
  position: relative;
  z-index: 5;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 77, 77, .28);
  background:
    linear-gradient(90deg, rgba(255, 60, 60, .2), rgba(255, 60, 60, .06) 45%, rgba(214, 174, 90, .08)),
    #0d0a0c;
}
.bdx-alert::after {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 140, 130, .14) 50%, transparent 70%);
  content: "";
  transform: translateX(-100%);
  animation: bdxAlertSweep 5s 1.2s cubic-bezier(.65, 0, .35, 1) infinite;
  pointer-events: none;
}
.bdx-alert.is-hidden { display: none; }
.bdx-alert__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}
.bdx-alert__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 77, 77, .45);
  border-radius: 999px;
  background: rgba(255, 77, 77, .14);
  color: #ff9b91;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bdx-alert__badge i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; }
.bdx-alert__badge i::after { position: absolute; inset: -5px; border: 1px solid rgba(255, 77, 77, .6); border-radius: 50%; content: ""; animation: bdxPing 1.8s cubic-bezier(.16, 1, .3, 1) infinite; }
.bdx-alert__text { flex: 1; min-width: 0; margin: 0; color: #c9cad0 !important; font-size: .84rem; line-height: 1.45; }
.bdx-alert__text strong { color: #fff; }
.bdx-alert__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b5e, #e5383b 55%, #b8202a);
  box-shadow: 0 10px 28px -10px rgba(255, 77, 77, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
  color: #fff !important;
  font-size: .8rem;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}
.bdx-alert__cta:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(255, 77, 77, .95); }
.bdx-alert__cta span { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.bdx-alert__cta:hover span { transform: translateX(3px); }
.bdx-alert__close {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: transparent;
  color: #9a9ca5;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.bdx-alert__close:hover { border-color: rgba(255, 255, 255, .35); color: #fff; }
@keyframes bdxAlertSweep { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }

@media (max-width: 760px) {
  .bdx-alert__inner { width: calc(100% - 32px); flex-wrap: wrap; justify-content: center; gap: 10px; padding: 14px 34px 14px 0; text-align: center; }
  .bdx-alert__text { flex-basis: 100%; font-size: .8rem; }
  .bdx-alert__close { position: absolute; top: 10px; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bdx-alert::after, .bdx-alert__badge i::after { animation: none !important; }
}

/* Bandeau fixe au scroll (sous le header sticky) */
body .nova-home { overflow: clip; }
.bdx-alert {
  position: sticky;
  top: var(--bdx-header-h, 64px);
  z-index: 900;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.bdx-alert.is-stuck { background: linear-gradient(90deg, rgba(255, 60, 60, .22), rgba(255, 60, 60, .08) 45%, rgba(214, 174, 90, .08)), rgba(13, 10, 12, .94); }
.bdx-alert__inner { transition: padding .3s ease; }
.bdx-alert.is-stuck .bdx-alert__inner { padding-block: 8px; }

@media (max-width: 760px) {
  /* Compact une fois collé : badge + bouton sur une ligne */
  .bdx-alert.is-stuck .bdx-alert__inner { flex-wrap: nowrap; justify-content: space-between; padding: 8px 40px 8px 0; }
  .bdx-alert.is-stuck .bdx-alert__text { display: none; }
  .bdx-alert.is-stuck .bdx-alert__cta { padding: 8px 14px; font-size: .76rem; }
  .bdx-alert.is-stuck .bdx-alert__close { top: 50%; margin-top: -15px; }
}

/* DA 2026-11 · Bandeau d'alerte plus discret : une ligne fine, lien texte au lieu d'un bouton rouge
   (le seul bouton plein du haut de page reste « Demander un devis »). */
.bdx-alert__inner { padding-block: 9px; gap: 16px; }
.bdx-alert__text { font-size: .82rem; }
.bdx-alert__cta { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: #ff9b91 !important; font-size: .82rem; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 155, 145, .45); text-underline-offset: 3px; }
.bdx-alert__cta:hover { transform: none; box-shadow: none !important; color: #ffc1ba !important; }
@media (max-width: 760px) {
  .bdx-alert__inner { flex-wrap: nowrap; justify-content: space-between; padding: 8px 40px 8px 0; text-align: left; }
  .bdx-alert__badge { display: none; }
  .bdx-alert__text { flex: 1 1 auto; flex-basis: auto; font-size: .78rem; }
  .bdx-alert__long { display: none; }
  .bdx-alert__cta { flex: none; font-size: .78rem; }
  .bdx-alert__close { top: 50%; margin-top: -15px; }
}
@media (min-width: 761px) and (max-width: 1180px) { .bdx-alert__long { display: none; } }
