/* Hero madebykota.com — 3 lignes, bas d’écran, TWK Lausanne, sans Framer */

@font-face {
  font-family: "TWK Lausanne";
  src: url("./fonts/twk-lausanne-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TWK Lausanne";
  src: url("./fonts/twk-lausanne-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TWK Lausanne";
  src: url("./fonts/twk-lausanne-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.section_hero.kota-hero,
.section_hero.kota-hero * {
  visibility: visible !important;
}

.section_hero.kota-hero {
  --kota-fg: #ffffff;
  --kota-muted: #6d6d6d;
  position: relative;
  margin: 0 !important;
  border-radius: 0 !important;
  min-height: 100svh !important;
  min-height: 100dvh !important;
  height: 100svh !important;
  height: 100dvh !important;
  overflow: hidden;
  background: #000;
  color: var(--kota-fg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: "TWK Lausanne", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.kota-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.kota-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  animation: kota-hero-ken 18s ease-out forwards;
}

.kota-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.2) 35%,
      rgba(0, 0, 0, 0.55) 58%,
      rgba(0, 0, 0, 0.78) 100%
    ),
    radial-gradient(95% 55% at 50% 72%, rgba(0, 0, 0, 0.72), transparent 70%);
  pointer-events: none;
}

/* Bloc titre bas — comme madebykota.com */
.kota-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem) clamp(4.5rem, 12vh, 7rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  animation: kota-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

/* Zone d’ombre derrière le texte pour la lisibilité */
.kota-hero__inner::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: min(120%, 36rem);
  height: min(70%, 22rem);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 42%,
    rgba(0, 0, 0, 0) 72%
  );
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

.kota-hero__title {
  margin: 0;
  width: 100%;
  font-family: "TWK Lausanne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.55rem, 9.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.65);
}

.kota-hero__line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.32em 0.42em;
  width: 100%;
}

.kota-hero__line + .kota-hero__line {
  margin-top: 0.02em;
}

/* Ligne 1 & 3 : mots écartés (Turning ideas … into / mark … websites) */
.kota-hero__line--spread {
  justify-content: space-between;
  gap: 0.5rem;
}

.kota-hero__line--spread > span:last-child {
  flex-shrink: 0;
}

/* Chip = remplace la vidéo Kota */
.kota-hero__chip {
  display: inline-grid;
  place-items: center;
  width: clamp(3.1rem, 14vw, 5rem);
  height: clamp(2.15rem, 9.5vw, 3.35rem);
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #0a0a0a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.kota-hero__chip img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  display: block;
}

/* Mark = remplace l’icône Framer */
.kota-hero__mark {
  display: inline-grid;
  place-items: center;
  width: clamp(2.2rem, 9vw, 3.2rem);
  height: clamp(2.2rem, 9vw, 3.2rem);
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #0a0a0a;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.kota-hero__mark img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  display: block;
}

.kota-hero__avail {
  margin: 0.85rem 0 0;
  align-self: flex-end;
  max-width: 14rem;
  color: var(--kota-muted);
  font-family: "TWK Lausanne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: right;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.kota-hero__avail span {
  color: #fff;
}

.kota-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  animation: kota-scroll 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes kota-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kota-hero-ken {
  to {
    transform: scale(1);
  }
}

@keyframes kota-scroll {
  0%,
  100% {
    transform: translateX(-50%) scaleY(0.7);
    opacity: 0.45;
  }
  50% {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .kota-hero__inner {
    width: min(100%, 48rem);
    padding-bottom: calc(var(--mb-dock-height, 72px) + var(--mb-dock-bottom, 24px) + clamp(4rem, 10vh, 6.5rem));
  }

  .kota-hero__title {
    font-size: clamp(3.25rem, 6.2vw, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kota-hero__bg img,
  .kota-hero__inner,
  .kota-hero__scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .kota-hero__scroll {
    transform: translateX(-50%) !important;
  }
}
