.flp-hero,
.flp-hero * {
  box-sizing: border-box;
}

/* Intégration Avada : plein viewport, même dans une ligne « Site Width ». */
body.flp-hero-page {
  overflow-x: clip;
}

/* Avada ajoute souvent 30 à 60 px autour du contenu principal. */
body.flp-hero-page #main {
  padding-top: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.flp-hero-page #content,
body.flp-hero-page .post-content {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.fusion-fullwidth.flp-hero-host {
  position: relative;
  left: 50%;
  width: 100vw !important;
  max-width: none !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  margin: 0 0 0 -50vw !important;
  padding: 0 !important;
  overflow: visible !important;
}

.fusion-fullwidth.flp-hero-host > .fusion-builder-row {
  width: 100% !important;
  max-width: none !important;
  min-height: inherit !important;
  margin: 0 !important;
}

.fusion-layout-column.flp-hero-column,
.fusion-column-wrapper.flp-hero-column-wrapper {
  width: 100% !important;
  max-width: none !important;
  min-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fusion-layout-column.flp-hero-column {
  flex: 0 0 100% !important;
}

.fusion-column-wrapper.flp-hero-column-wrapper > .fusion-code-block {
  width: 100% !important;
  margin: 0 !important;
}

/* Le menu Avada flotte au-dessus du premier écran. */
body.flp-hero-page .fusion-header-wrapper {
  position: absolute !important;
  z-index: 10020 !important;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
}

body.admin-bar.flp-hero-page .fusion-header-wrapper {
  top: 32px;
}

body.flp-hero-page .fusion-header,
body.flp-hero-page .fusion-secondary-main-menu {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 782px) {
  body.admin-bar.flp-hero-page .fusion-header-wrapper { top: 46px; }
}

.flp-hero {
  --flp-coral: #e95045;
  --flp-coral-deep: #d9433b;
  --flp-ink: #181b21;
  --flp-cream: #f2eedf;
  --flp-background-light: #f2eedf;
  --flp-background-dark: #080b11;
  position: relative;
  isolation: isolate;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin: 0 0 0 -50vw;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  color: var(--flp-cream);
  background:
    radial-gradient(circle at 72% 63%, rgba(255,255,255,.48), transparent 34%),
    var(--flp-background-light);
  font-family: "Montserrat", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
}

.flp-hero__diagonal {
  position: absolute;
  z-index: 0;
  inset: -4% -3% 26% -3%;
  background:
    linear-gradient(145deg, rgba(255,255,255,.018), transparent 45%),
    var(--flp-background-dark);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  transform: translate3d(calc(var(--flp-x, 0) * -9px), calc(var(--flp-scroll, 0) * -210px), 0) scale(1.16);
  transform-origin: left top;
  will-change: transform;
}

.flp-hero__circle {
  position: absolute;
  z-index: 1;
  left: 51%;
  top: 50%;
  width: clamp(420px, 44vw, 790px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 31%, rgba(255,255,255,.14) 0 2%, transparent 2.4%),
    radial-gradient(circle at 32% 28%, #ff6a5e, #ed483e 63%, #c92f2d 100%);
  box-shadow:
    0 32px 90px rgba(70, 10, 10, .28),
    inset -26px -30px 70px rgba(103, 18, 19, .18),
    inset 18px 18px 45px rgba(255, 153, 132, .15);
  transform: translate3d(calc(-50% + var(--flp-x, 0) * 13px), calc(-50% + var(--flp-y, 0) * 10px + var(--flp-scroll, 0) * 48px), 0) scale(1.02);
  animation: flp-circle-breathe 9s ease-in-out infinite;
  will-change: transform;
}

.flp-hero__circle::after {
  content: "";
  position: absolute;
  inset: 3%;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: inherit;
}

.flp-hero__fx {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flp-hero__content {
  position: relative;
  z-index: 4;
  width: min(1500px, 100%);
  height: 100%;
  margin: 0 auto;
  pointer-events: none;
}

.flp-hero__character-wrap {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -2.5%;
  width: min(69vw, 1050px);
  transform: translate3d(calc(-50% + var(--flp-x, 0) * 22px), calc(var(--flp-y, 0) * 13px + var(--flp-scroll, 0) * 78px), 0);
  transform-origin: center bottom;
  will-change: transform;
}

.flp-hero__character {
  display: block;
  width: 100%;
  height: auto;
  max-height: 94svh;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 30px 35px rgba(20, 8, 8, .26));
  animation: flp-character-float 6.5s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

.flp-hero__title-wrap {
  position: absolute;
  z-index: 5;
  left: clamp(24px, 4vw, 72px);
  top: 23%;
  width: clamp(250px, 27vw, 430px);
  transform: translate3d(calc(var(--flp-x, 0) * 7px), calc(var(--flp-y, 0) * 5px + var(--flp-scroll, 0) * 28px), 0);
  will-change: transform;
}

.flp-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 17px;
  color: rgba(255,248,235,.78);
  font-size: clamp(10px, .74vw, 13px);
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
}

.flp-hero__eyebrow::before {
  content: "";
  width: 0;
  height: 2px;
  background: currentColor;
}

.flp-hero .flp-hero__title {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--flp-cream) !important;
  font-family: "Montserrat", "Avenir Next", Avenir, Helvetica, Arial, sans-serif !important;
  font-size: clamp(38px, 3.55vw, 62px) !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: .9 !important;
  letter-spacing: -.055em !important;
  text-align: left !important;
  text-transform: none !important;
  text-wrap: balance;
}

.flp-hero__title-line {
  display: block;
  overflow: hidden;
  padding: 0 .08em .09em 0;
}

.flp-hero__title-word {
  display: block;
  opacity: 0;
  transform: translateY(112%) rotate(2deg);
  transform-origin: left bottom;
}

.flp-hero__rule {
  display: block;
  width: 0;
  height: 3px;
  margin-top: 25px;
  background: var(--flp-cream);
  opacity: .72;
}

.flp-hero.is-ready .flp-hero__eyebrow {
  animation: flp-reveal-up .8s .15s cubic-bezier(.2,.75,.24,1) forwards;
}

.flp-hero.is-ready .flp-hero__eyebrow::before {
  animation: flp-rule-open .75s .25s cubic-bezier(.2,.75,.24,1) forwards;
}

.flp-hero.is-ready .flp-hero__title-line:nth-child(1) .flp-hero__title-word {
  animation: flp-title-open 1s .28s cubic-bezier(.16,.82,.24,1) forwards;
}

.flp-hero.is-ready .flp-hero__title-line:nth-child(2) .flp-hero__title-word {
  animation: flp-title-open 1s .42s cubic-bezier(.16,.82,.24,1) forwards;
}

.flp-hero.is-ready .flp-hero__title-line:nth-child(3) .flp-hero__title-word {
  animation: flp-title-open 1s .56s cubic-bezier(.16,.82,.24,1) forwards;
}

.flp-hero.is-ready .flp-hero__rule {
  animation: flp-rule-open .9s .75s cubic-bezier(.2,.75,.24,1) forwards;
}

/* Entrée générale en alpha, décalée élément par élément. */
.flp-hero__diagonal,
.flp-hero__title-wrap,
.flp-hero__stage .flp-hero__circle,
.flp-hero__stage .flp-hero__character,
.flp-hero__stage .flp-hero__fx,
.flp-hero__content > .flp-hero__actions .flp-hero__button {
  opacity: 0;
}

.flp-hero.is-ready .flp-hero__diagonal {
  animation: flp-alpha-in .8s .04s ease-out both;
}

.flp-hero.is-ready .flp-hero__title-wrap {
  animation: flp-alpha-in .72s .18s ease-out both;
}

.flp-hero.is-ready .flp-hero__stage .flp-hero__circle {
  animation: flp-circle-breathe 9s ease-in-out infinite, flp-alpha-in .9s .26s ease-out both;
}

.flp-hero.is-ready .flp-hero__stage .flp-hero__character {
  animation: flp-character-float 6.5s ease-in-out infinite, flp-alpha-in 1s .42s ease-out both;
}

.flp-hero.is-ready .flp-hero__stage .flp-hero__fx {
  animation: flp-alpha-in .9s .66s ease-out both;
}

.flp-hero.is-ready .flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(1) {
  animation: flp-alpha-in .55s .74s ease-out both;
}

.flp-hero.is-ready .flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(2) {
  animation: flp-alpha-in .55s .88s ease-out both;
}

.flp-hero.is-ready .flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(3) {
  animation: flp-alpha-in .55s 1.02s ease-out both;
}

@keyframes flp-alpha-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes flp-title-open {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes flp-reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes flp-rule-open {
  to { width: 62px; }
}

@keyframes flp-circle-breathe {
  0%, 100% { border-radius: 50% 48% 52% 49%; }
  50% { border-radius: 48% 52% 49% 51%; }
}

@keyframes flp-character-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-.15deg); }
}

@media (max-width: 980px) {
  .flp-hero {
    min-height: 600px;
  }

  .flp-hero__diagonal {
    inset: -4% -3% 29% -3%;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }

  .flp-hero__circle {
    left: 58%;
    width: min(78vw, 700px);
  }

  .flp-hero__character-wrap {
    left: 58%;
    width: min(88vw, 780px);
  }

  .flp-hero__title-wrap {
    top: 15%;
    width: clamp(240px, 39vw, 360px);
  }
}

@media (max-width: 680px) {
  .flp-hero {
    min-height: 560px;
  }

  .flp-hero__diagonal {
    inset: -3% -22% 42% -3%;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }

  .flp-hero__circle {
    left: 57%;
    top: 59%;
    width: min(112vw, 630px);
  }

  .flp-hero__character-wrap {
    left: 55%;
    bottom: -1%;
    width: min(116vw, 650px);
  }

  .flp-hero__title-wrap {
    top: clamp(48px, 8vh, 80px);
    left: 22px;
    width: min(75vw, 345px);
    transform: translate3d(calc(var(--flp-x, 0) * 5px), calc(var(--flp-y, 0) * 3px + var(--flp-scroll, 0) * 20px), 0);
  }

  .flp-hero__title {
    font-size: clamp(39px, 12.5vw, 62px);
  }

  .flp-hero__eyebrow {
    margin-bottom: 12px;
  }

  .flp-hero__rule {
    margin-top: 17px;
  }
}

@media (max-height: 700px) and (min-width: 681px) {
  .flp-hero { min-height: 540px; }
  .flp-hero__character-wrap { width: min(61vw, 760px); }
  .flp-hero__circle { width: min(49vw, 670px); }
}

@media (prefers-reduced-motion: reduce) {
  .flp-hero__diagonal,
  .flp-hero__title-wrap,
  .flp-hero__circle,
  .flp-hero__character,
  .flp-hero__fx,
  .flp-hero__button {
    opacity: 1 !important;
    animation: none !important;
  }
  .flp-hero__eyebrow,
  .flp-hero__title-word { opacity: 1 !important; transform: none !important; animation: none !important; }
  .flp-hero__eyebrow::before { width: 62px !important; animation: none !important; }
  .flp-hero__rule { width: 62px !important; animation: none !important; }
}

/* Composition finale alignée */
/* Stage commun : le cercle et le masque du PNG partagent le même repère. */
.flp-hero__diagonal {
  inset: -4% -3% 24% -3%;
}

.flp-hero__stage {
  position: absolute;
  z-index: 2;
  left: 51.5%;
  top: 50%;
  bottom: auto;
  width: clamp(860px, 69vw, 1050px);
  aspect-ratio: 1323 / 1068;
  transform: translate3d(
    calc(-50% + var(--flp-x, 0) * 22px),
    calc(-50% + var(--flp-y, 0) * 13px + var(--flp-scroll, 0) * 78px),
    0
  );
  transform-origin: center bottom;
  will-change: transform;
}

.flp-hero__stage .flp-hero__circle {
  position: absolute;
  z-index: 0;
  left: 50.5%;
  top: auto;
  bottom: 6.2%;
  width: 68%;
  transform: translate3d(
    calc(-50% + 10px + var(--flp-x, 0) * 8px),
    calc(var(--flp-y, 0) * 7px + var(--flp-scroll, 0) * 24px),
    0
  );
}

.flp-hero__stage .flp-hero__fx {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flp-hero__stage .flp-hero__character {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 980px) {
  .flp-hero__stage {
    left: 51.5%;
    width: clamp(860px, 90vw, 1050px);
  }

  .flp-hero__stage .flp-hero__circle {
    left: 50.5%;
    top: auto;
    bottom: 6.2%;
    width: 68%;
  }
}

@media (max-width: 680px) {
  .flp-hero__stage {
    left: 51.5%;
    top: 50%;
    bottom: auto;
    width: clamp(500px, 126vw, 860px);
  }

  .flp-hero__stage .flp-hero__circle {
    left: 50.5%;
    top: auto;
    bottom: 6.2%;
    width: 68%;
  }
}

@media (max-height: 700px) and (min-width: 681px) {
  .flp-hero__stage { width: clamp(700px, 61vw, 920px); }
}

@media (prefers-reduced-motion: reduce) {
  .flp-hero__stage {
    transform: translate(-50%, -50%) !important;
  }
}

.flp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  pointer-events: auto;
}

.flp-hero__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  overflow: visible;
  border: 1px solid rgba(255, 248, 235, .22);
  border-radius: 999px;
  color: #fff8eb;
  background: #e95045;
  box-shadow: 0 9px 24px rgba(140, 28, 27, .24);
  font-size: clamp(10px, .68vw, 12px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .035em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .28s cubic-bezier(.2,.75,.24,1), box-shadow .3s ease;
}

.flp-hero__button-sweep {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.flp-hero__button-sweep::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 170%;
  background: #171b22;
  clip-path: polygon(0 0, 78% 0, 100% 100%, 22% 100%);
  transform: translateX(-105%) skewX(-10deg);
  transition: transform .34s cubic-bezier(.55,.02,.18,1);
  will-change: transform;
}

.flp-hero__button-label {
  position: relative;
  z-index: 2;
}

.flp-hero__button-particle {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  background: #e95045;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: .78;
  pointer-events: none;
}

.flp-hero__button-particle--a {
  left: -8px;
  top: 5px;
  animation: flp-button-particle-a 3.7s ease-in-out infinite;
}

.flp-hero__button-particle--b {
  right: -7px;
  bottom: 3px;
  width: 5px;
  height: 5px;
  animation: flp-button-particle-b 4.4s .5s ease-in-out infinite;
}

.flp-hero__button:hover,
.flp-hero__button:focus-visible {
  color: #fff8eb;
  box-shadow: 0 13px 28px rgba(20, 22, 27, .36);
  transform: translateY(-3px);
}

.flp-hero__button:hover .flp-hero__button-sweep::before,
.flp-hero__button:focus-visible .flp-hero__button-sweep::before {
  transform: translateX(0) skewX(-10deg);
}

.flp-hero__button:focus-visible {
  outline: 2px solid #fff8eb;
  outline-offset: 3px;
}

@keyframes flp-button-particle-a {
  0%, 100% { opacity: 0; transform: translate(2px, 3px) scale(.35) rotate(0); }
  28%, 72% { opacity: .9; transform: translate(-3px, -3px) scale(1) rotate(115deg); }
}

@keyframes flp-button-particle-b {
  0%, 100% { opacity: 0; transform: translate(-2px, -2px) scale(.3) rotate(20deg); }
  30%, 70% { opacity: .75; transform: translate(4px, 4px) scale(1) rotate(-95deg); }
}

@media (max-width: 680px) {
  .flp-hero__actions { gap: 7px; margin-top: 15px; }
  .flp-hero__button { min-height: 36px; padding: 8px 12px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .flp-hero__button-particle { animation: none !important; opacity: .7; }
  .flp-hero__button-sweep::before { transition: none !important; }
}

/* Boutons satellisés dans la zone claire */
.flp-hero__content > .flp-hero__actions {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: block;
  margin: 0;
  pointer-events: none;
}

.flp-hero__content > .flp-hero__actions .flp-hero__button {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(1) { left: 24%; top: 69%; }
.flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(2) { left: 82%; top: 62%; }
.flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(3) { left: 57%; top: 84%; }

.flp-hero__content > .flp-hero__actions .flp-hero__button:hover,
.flp-hero__content > .flp-hero__actions .flp-hero__button:focus-visible {
  transform: translate(-50%, calc(-50% - 3px));
}

.flp-hero__button-triangle {
  position: relative;
  z-index: 2;
  display: inline-block;
  flex: 0 0 auto;
  width: 0;
  height: 12px;
  margin-left: 0;
  opacity: 0;
  background: #fff8eb;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: scale(0) rotate(-190deg);
  transform-origin: center;
  transition: width .3s ease, margin-left .3s ease, opacity .16s ease, transform .4s cubic-bezier(.2,.9,.3,1.25);
}

.flp-hero__button:hover .flp-hero__button-triangle,
.flp-hero__button:focus-visible .flp-hero__button-triangle {
  width: 11px;
  margin-left: 8px;
  opacity: 1;
  transform: scale(1) rotate(0);
}

.flp-hero__button:nth-child(1) .flp-hero__button-particle--a { animation: flp-particle-1a 3.1s ease-in-out infinite; }
.flp-hero__button:nth-child(1) .flp-hero__button-particle--b { animation: flp-particle-1b 4.2s .3s ease-in-out infinite; }
.flp-hero__button:nth-child(2) .flp-hero__button-particle--a { animation: flp-particle-2a 4.8s .8s ease-in-out infinite; }
.flp-hero__button:nth-child(2) .flp-hero__button-particle--b { animation: flp-particle-2b 3.4s .1s ease-in-out infinite; }
.flp-hero__button:nth-child(3) .flp-hero__button-particle--a { animation: flp-particle-3a 3.7s .55s ease-in-out infinite; }
.flp-hero__button:nth-child(3) .flp-hero__button-particle--b { animation: flp-particle-3b 5.1s 1s ease-in-out infinite; }

@keyframes flp-particle-1a {
  0%,100% { opacity:0; transform:translate(2px,4px) scale(.2) rotate(0); }
  45% { opacity:.9; transform:translate(-7px,-5px) scale(1) rotate(130deg); }
}

@keyframes flp-particle-1b {
  0%,100% { opacity:0; transform:translate(-1px,-2px) scale(.3) rotate(20deg); }
  35%,70% { opacity:.75; transform:translate(8px,2px) scale(.85) rotate(-100deg); }
}

@keyframes flp-particle-2a {
  0%,100% { opacity:0; transform:translate(-2px,3px) scale(.25) rotate(-30deg); }
  55% { opacity:.85; transform:translate(3px,-10px) scale(1.15) rotate(190deg); }
}

@keyframes flp-particle-2b {
  0%,100% { opacity:0; transform:translate(1px,0) scale(.2) rotate(0); }
  48% { opacity:.8; transform:translate(-9px,7px) scale(.9) rotate(85deg); }
}

@keyframes flp-particle-3a {
  0%,100% { opacity:0; transform:translate(0,2px) scale(.2) rotate(10deg); }
  40%,68% { opacity:.9; transform:translate(9px,-7px) scale(1) rotate(-160deg); }
}

@keyframes flp-particle-3b {
  0%,100% { opacity:0; transform:translate(2px,-1px) scale(.25) rotate(0); }
  58% { opacity:.72; transform:translate(-5px,10px) scale(1.2) rotate(220deg); }
}

@media (max-width: 980px) {
  .flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(1) { left: 16%; top: 71%; }
  .flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(2) { left: 84%; top: 71%; }
  .flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(3) { left: 55%; top: 88%; }
}

@media (max-width: 680px) {
  .flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(1) { left: 18%; top: 72%; }
  .flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(2) { left: 82%; top: 72%; }
  .flp-hero__content > .flp-hero__actions .flp-hero__button:nth-child(3) { left: 55%; top: 87%; }
}

@media (prefers-reduced-motion: reduce) {
  .flp-hero__button-triangle { transition: none !important; }
}

.flp-hero__stage .flp-hero__circle {
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}
