/* Ninja Box — hero overlay (lisibilité texte) */

.banner__area.banner__padding {
  overflow: hidden;
}

.banner__area.banner__padding .banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(8, 0, 6, 0.52) 0%,
      rgba(12, 0, 8, 0.28) 42%,
      rgba(8, 0, 6, 0.58) 100%
    ),
    radial-gradient(
      ellipse 70% 55% at 50% 45%,
      rgba(255, 0, 94, 0.07) 0%,
      transparent 65%
    );
}

.banner__area.banner__padding .container {
  position: relative;
  z-index: 1;
}

/* Ninja Box — animations logo */

.logo.logo--animate a {
  display: inline-block;
  transform-origin: center bottom;
}

.logo.logo--animate img {
  transform-origin: center bottom;
  will-change: transform;
  animation:
    nbLogoEnter 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    nbLogoSquash 4s ease-in-out 0.9s infinite;
}

.logo.logo--animate a:hover img {
  animation: nbLogoSquashHover 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Entrée : atterrissage écrasé puis rebond */
@keyframes nbLogoEnter {
  0% {
    opacity: 0;
    transform: scale(1.25, 0.55) translateY(-18px);
  }
  45% {
    opacity: 1;
    transform: scale(1.14, 0.78) translateY(8px);
    filter: drop-shadow(0 6px 16px rgba(255, 0, 94, 0.45));
  }
  70% {
    transform: scale(0.94, 1.08) translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: scale(1, 1) translateY(0);
    filter: drop-shadow(0 2px 8px rgba(255, 0, 94, 0.2));
  }
}

/* Boucle : petit écrasement régulier */
@keyframes nbLogoSquash {
  0%, 78%, 100% {
    transform: scale(1, 1) translateY(0);
    filter: drop-shadow(0 2px 6px rgba(255, 0, 94, 0.15));
  }
  10% {
    transform: scale(1.1, 0.84) translateY(5px);
    filter: drop-shadow(0 5px 14px rgba(255, 0, 94, 0.4));
  }
  20% {
    transform: scale(0.97, 1.05) translateY(-7px);
  }
  30% {
    transform: scale(1.02, 0.98) translateY(0);
  }
  40% {
    transform: scale(1, 1);
  }
}

/* Au survol : écrasement plus marqué */
@keyframes nbLogoSquashHover {
  0% {
    transform: scale(1, 1);
  }
  35% {
    transform: scale(1.18, 0.72) translateY(7px);
    filter: drop-shadow(0 8px 20px rgba(255, 0, 94, 0.55));
  }
  65% {
    transform: scale(0.9, 1.1) translateY(-5px);
  }
  100% {
    transform: scale(1, 1);
    filter: drop-shadow(0 2px 8px rgba(255, 0, 94, 0.25));
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo.logo--animate img {
    animation: none;
  }
}

/* Hero — sous-titre Thomas Ballet */
.banner__tagline {
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.nb-hero {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nb-hero-title {
  margin-bottom: 12px;
  line-height: 0.95;
}

.nb-hero-title__main,
.nb-hero-title__sub {
  display: block;
}

.nb-hero-title__main {
  font-size: clamp(3.4rem, 12vw, 8.2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nb-hero-title__sub {
  margin-top: 10px;
  font-size: clamp(1.2rem, 3.3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.nb-hero-lead {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.8vw, 1.22rem);
  line-height: 1.5;
  text-align: center !important;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.92);
}

.nb-hero .banner__tagline {
  max-width: 700px;
  margin: 10px auto 0;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: none;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.84);
}

/* Slider proto / parcours (bloc about) */
.nb-proto-frame {
  max-width: 580px !important;
  min-height: 480px;
}

.nb-proto-frame .bg-shape {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* Zone écran dans le cadre */
.nb-proto-viewport {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 468px;
  height: 390px;
  z-index: 4;
  padding: 3px;
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(255, 0, 94, 0.55), rgba(255, 0, 94, 0.08) 40%, rgba(255, 0, 94, 0.35));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(255, 0, 94, 0.2);
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}

.nb-proto-frame .nb-proto-active {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: #0d0d12;
}

.nb-proto-frame .nb-proto-active .swiper-wrapper,
.nb-proto-frame .nb-proto-active .swiper-slide {
  height: 100%;
}

.nb-proto-slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.nb-proto-frame .nb-proto-active .swiper-slide img {
  width: 100%;
  height: 100%;
  max-height: 382px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.nb-proto-frame .nb-proto-active .swiper-slide-active img {
  animation: nbProtoKen 8s ease-in-out infinite alternate;
}

@keyframes nbProtoKen {
  from {
    transform: scale(1);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5)) brightness(1);
  }
  to {
    transform: scale(1.06);
    filter: drop-shadow(0 12px 32px rgba(255, 0, 94, 0.25)) brightness(1.05);
  }
}

/* Reflet animé */
.nb-proto-shine {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 58%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: nbProtoShine 4.5s ease-in-out infinite;
}

@keyframes nbProtoShine {
  0%, 100% { background-position: 130% 0; opacity: 0; }
  45% { opacity: 1; }
  55% { background-position: -30% 0; opacity: 0; }
}

/* Hover : roue rose derrière + glow */
.nb-proto-frame:hover::after,
.nb-proto-frame.nb-proto-frame--hover::after {
  transform: rotate(0deg) !important;
  height: calc(100% + 0px) !important;
  opacity: 1 !important;
  box-shadow: 0 0 70px rgba(255, 0, 94, 0.5);
}

.nb-proto-frame:hover .nb-proto-viewport,
.nb-proto-frame.nb-proto-frame--hover .nb-proto-viewport {
  transform: translateX(-50%) scale(1.02);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(255, 0, 94, 0.45);
}

.nb-proto-frame:hover .nb-proto-active .swiper-slide-active img {
  filter: drop-shadow(0 14px 36px rgba(255, 0, 94, 0.35)) brightness(1.08) saturate(1.06);
}

.nb-proto-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 8px 12px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
}

.nb-proto-prev,
.nb-proto-next {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 0, 94, 0.75);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nb-proto-prev:hover,
.nb-proto-next:hover {
  background: var(--tg-theme-primary, #ff005e);
  border-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(255, 0, 94, 0.6);
}

.nb-proto-pagination {
  pointer-events: auto;
  position: static !important;
  width: auto !important;
}

.nb-proto-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 5px !important;
  transition: width 0.3s ease, background 0.3s ease;
}

.nb-proto-pagination .swiper-pagination-bullet-active {
  background: var(--tg-theme-primary, #ff005e);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 0, 94, 0.8);
}

@media (max-width: 1199.98px) {
  .nb-proto-viewport {
    max-width: 400px;
    height: 320px;
  }
  .nb-proto-frame .nb-proto-active .swiper-slide img {
    max-height: 310px;
  }
}

@media (max-width: 767.98px) {
  .nb-hero-title {
    line-height: 1;
  }

  .nb-hero-title__sub {
    margin-top: 8px;
    letter-spacing: 0.04em;
  }

  .nb-hero-lead {
    padding: 0 8px;
  }

  .nb-hero .banner__tagline {
    padding: 0 8px;
  }

  .nb-proto-frame {
    min-height: 380px;
  }
  .nb-proto-viewport {
    width: 88%;
    max-width: 300px;
    height: 250px;
  }
  .nb-proto-frame .nb-proto-active .swiper-slide img {
    max-height: 240px;
  }
}

/* Tags carrousel parcours */
.nb-slide-tag {
  color: var(--tg-theme-primary, #ff005e);
  font-size: 0.85rem;
  display: block;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.streamers__thumb img {
  object-fit: cover;
}

/* Badge circulaire : alignement parfait anneau + texte */
.about__content-circle {
  position: relative;
  display: grid;
  place-items: center;
}

.about__content-circle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  display: block;
  object-fit: contain;
}

.about__content-circle svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-33deg);
  transform-origin: 50% 50%;
}

/* Section « Nos réalisations » — marge sous la zone sombre au-dessus */
.section-pt-100 {
  padding-top: 110px;
}

@media (max-width: 991.98px) {
  .section-pt-100 {
    padding-top: 90px;
  }
}

@media (max-width: 767.98px) {
  .section-pt-100 {
    padding-top: 76px;
  }
}

.upcoming-match__area.nb-realisations {
  background-position: top center;
}

.upcoming-match__area.nb-realisations > .container > .row:first-child .section__title {
  padding-top: 16px;
}

.upcoming-match__area.nb-realisations .section__title .sub-title {
  display: inline-block;
  margin-top: 0;
}

/* Section CTA contact — marge sous la zone au-dessus */
.section-pt-80 {
  padding-top: 96px;
}

.section-pb-80 {
  padding-bottom: 80px;
}

@media (max-width: 991.98px) {
  .section-pt-80 {
    padding-top: 80px;
  }

  .section-pb-80 {
    padding-bottom: 68px;
  }
}

@media (max-width: 767.98px) {
  .section-pt-80 {
    padding-top: 68px;
  }

  .section-pb-80 {
    padding-bottom: 56px;
  }
}

.upcoming-match__area.nb-cta-contact > .container > .row .section__title {
  padding-top: 16px;
}

.upcoming-match__area.nb-cta-contact .section__title .sub-title {
  display: inline-block;
  margin-top: 0;
}

.banner__btn {
  gap: 14px;
  flex-wrap: wrap;
}

.nb-btn-ghost {
  opacity: 0.92;
}

.nb-manifest {
  background: linear-gradient(160deg, rgba(8, 9, 15, 0.96), rgba(18, 14, 31, 0.95));
}

.nb-manifest__copy {
  text-align: center;
}

.nb-manifest__copy p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.nb-manifest__baseline {
  margin: 14px 0 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.nb-service-card {
  height: 100%;
  padding: 24px 22px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(11, 13, 24, 0.92), rgba(22, 19, 39, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.nb-service-card h4 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: #fff;
}

.nb-service-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.nb-concept-card {
  height: 100%;
  padding: 24px 22px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(12, 14, 26, 0.9), rgba(20, 16, 35, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.nb-concept-card h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.2rem;
}

.nb-concept-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.nb-concept-card__offers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nb-concept-card__offers span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nb-extra-area {
  background: radial-gradient(circle at top, rgba(255, 0, 94, 0.1), transparent 55%), #08090f;
}

.nb-extra-copy {
  text-align: center;
}

.nb-extra-copy p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
}

.nb-extra-tags {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
}

.nb-extra-tags li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.85rem;
}

.nb-team-intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  line-height: 1.75;
}

.nb-founder-box {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 8, 15, 0.72);
}

.nb-founder-box h4 {
  margin-bottom: 10px;
  color: #fff;
}

.nb-founder-box p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.nb-targets {
  background: #08090f;
}

.nb-targets__intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
  margin-bottom: 20px;
}

.nb-targets__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nb-targets__list li {
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nb-included {
  background-position: center;
  background-size: cover;
}

.nb-included__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nb-included__grid li {
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.9rem;
}

.nb-included__note {
  margin: 18px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .nb-targets__list,
  .nb-included__grid {
    grid-template-columns: 1fr;
  }
}
