/* =====================================================
   HERO STAGE
===================================================== */

.sv-hero-stage {
  position: relative;
  width: 100vw;
  height: 850px;
  margin-left: calc(50% - 50vw);
  background: #000;
  overflow: hidden;
}

/* =====================================================
   ANIMATION
===================================================== */

#sv-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  z-index: 0;
}

#sv-canvas,
#sv-services {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#sv-canvas {
  display: block;
  pointer-events: none;
  z-index: 1;
}

#sv-services {
  pointer-events: none;
  z-index: 2;
}

/* =====================================================
   SERVICE PILLS
===================================================== */

.sv-service {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 100px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  text-decoration: none;
  overflow: visible;
}

.sv-service-pill {
  position: absolute;
  top: 50%;
  width: 100px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.42);
  color: rgba(255,255,255,.96);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    width .58s cubic-bezier(.19,1,.22,1),
    border-color .35s ease,
    background .35s ease;
}

.sv-service-pill::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: rgba(0,0,0,.82);
  z-index: 0;
}

.sv-expand-center .sv-service-pill {
  left: 50%;
  transform: translate(-50%, -50%);
}

.sv-expand-right .sv-service-pill {
  left: 50%;
  margin-left: -58px;
  transform: translateY(-50%);
}

.sv-expand-left .sv-service-pill {
  right: 50%;
  margin-right: -58px;
  transform: translateY(-50%);
}

.sv-service-label,
.sv-service-thought {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  transition:
    opacity .24s ease,
    transform .32s cubic-bezier(.22,1,.36,1);
}

.sv-service-label {
  opacity: 1;
  transform: translateY(0);
}

.sv-service-thought {
  opacity: 0;
  transform: translateY(7px);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.sv-service:hover .sv-service-pill {
  width: var(--expanded-width);
  border-color: rgba(255,255,255,.36);
  background: rgba(0,0,0,.52);
}

.sv-service:hover .sv-service-label {
  opacity: 0;
  transform: translateY(-7px);
}

.sv-service:hover .sv-service-thought {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .18s;
}

.sv-service-measure {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  white-space: nowrap;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

/* =====================================================
   HERO CONTENT
===================================================== */

.sv-hero-content {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 20;

  width: calc(100% - 48px);
  max-width: 1140px;

  display: grid;
  grid-template-columns: minmax(0, 520px) 200px;
  justify-content: space-between;
  align-items: end;

  gap: 80px;
  pointer-events: none;
}

.sv-hero-copy,
.sv-hero-case {
  pointer-events: auto;
  margin-top: 48px;
}

.sv-hero-copy h1 {
  margin: 0;
  max-width: 520px;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.sv-hero-copy h1 span {
  color: rgba(255,255,255,.42);
  font-size: 20px;
}

.sv-accent-line {
  display: block;
  margin-top: 12px;
}

/* =====================================================
   HERO CTA — FLIP
===================================================== */

.sv-hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 206px;
  height: 44px;
  margin-top: 24px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  color: #111;
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  transition:
    background .45s cubic-bezier(.22,1,.36,1),
    transform .45s cubic-bezier(.22,1,.36,1),
    box-shadow .45s cubic-bezier(.22,1,.36,1);
}

.sv-cta-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.sv-cta-front,
.sv-cta-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body, Inter, Arial, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  color: #111;
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}

.sv-cta-front {
  transform: translateY(0);
}

.sv-cta-back {
  transform: translateY(100%);
}

.sv-hero-cta:hover {
  background: #79CFD2;
  transform: translateY(-2px);
}

.sv-hero-cta:hover .sv-cta-front {
  transform: translateY(-100%);
}

.sv-hero-cta:hover .sv-cta-back {
  transform: translateY(0);
}

.sv-arrow {
  display: inline-block;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}

.sv-hero-cta:hover .sv-arrow {
  transform: translateX(4px);
}

.sv-hero-cta:active {
  transform: translateY(0);
}

/* =====================================================
   HERO CASE
===================================================== */

.sv-hero-case {
  justify-self: end;
  width: 200px;
  color: #fff;
  text-decoration: none;
}

.sv-hero-case p {
  margin: 0 0 14px;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.sv-hero-case-card {
  width: 200px;
  height: 178px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #ff6f8d;
  color: #fff;
}

.sv-hero-case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .86;
}

.sv-hero-case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,.58) 100%
  );
}

.sv-hero-case-card strong {
  position: absolute;
  left: 14px;
  bottom: 32px;
  z-index: 2;
  font-size: 13px;
  line-height: 1.1;
}

.sv-hero-case-card span {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 2;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255,255,255,.82);
}

/* =====================================================
   HERO CONTENT DELAYED REVEAL
===================================================== */

.sv-hero-copy,
.sv-hero-case{
  opacity:0;
  transform:translateY(18px);
  filter:brightness(1.8);
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.22,1,.36,1),
    filter .9s ease;
}

.sv-hero-stage.is-content-visible .sv-hero-copy{
  opacity:1;
  transform:translateY(0);
  filter:brightness(1);
  transition-delay:0s;
}

.sv-hero-stage.is-content-visible .sv-hero-case{
  opacity:1;
  transform:translateY(0);
  filter:brightness(1);
  transition-delay:.25s;
}

/* =====================================================
   HERO MOBILE — POSITIONNEMENT DU CONTENU
===================================================== */

@media screen and (max-width:767px){

  .sv-hero-stage .sv-hero-content{
    position:absolute !important;
    left:25px !important;
    right:auto !important;
    bottom:77px !important;

    width:calc(100vw - 50px) !important;
    max-width:none !important;

    margin:0 !important;
    padding:0 !important;
    transform:none !important;

    display:block !important;
    box-sizing:border-box !important;
    pointer-events:none;
  }

  .sv-hero-stage .sv-hero-copy{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    pointer-events:auto;
  }

  .sv-hero-stage .sv-hero-copy h1{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
  }
  .sv-hero-case{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
}
/* =====================================================
   HEADER FLOTTANT
===================================================== */

#sv-header.is-scrolled .sv-menu-item{
    background:#111 !important;
    border:1px solid rgba(255,255,255,.18) !important;
}

#sv-header.is-scrolled .sv-menu-item .front,
#sv-header.is-scrolled .sv-menu-item .back{
    color:#fff !important;
}

/* Hover */
#sv-header.is-scrolled .sv-menu-item:hover{
    background:#fff !important;
    border:1px solid #111 !important;
}

#sv-header.is-scrolled .sv-menu-item:hover .front,
#sv-header.is-scrolled .sv-menu-item:hover .back{
    color:#111 !important;
}