/* ------------------------------------------------------------------------
     Section 1 : Hero
  --------------------------------------------------------------------------- */

.about-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #f6f8fa;
  color: #f6f8fa;
  position: relative;
  overflow: hidden;
}

.about-hero__container {
  background: linear-gradient(120deg, #162139 0%, #5d5ca5 50%, #bddcb6 100%);
  background-size: 400% 400%;
  animation: gradient-move 15s ease-in-out infinite;
  height: 100vh;
  width: 100vw;
  max-width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 5rem 5rem;
}

.about-hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: left;
  padding: 4rem 6rem;
}

.about-hero__title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
  text-transform: uppercase;
  text-align: left;
}

.about-hero__subtitle {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: left;
}

.about-hero__tagline {
  font-size: 1.25rem;
  font-weight: 400;
  text-align: left;
}

.about-hero__img {
  position: absolute;
  width: 120px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.about-hero__img--top-right {
  bottom: -25%;
  left: 75%;
  animation-delay: 0s;
}

.about-hero__img--bottom-left {
  bottom: -20%;
  left: 70%;
  animation-delay: 2s;
}

.about-hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  opacity: 1;
  z-index: 2;
}

.scroll-label {
  color: #f6f8fa;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.2rem;
}

.scroll-arrow {
  display: block;
  animation: scroll-bounce 1.2s infinite;
  margin-bottom: 1rem;
}

/* Animations */
@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes scroll-bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Responsive --------------------------*/
@media (max-width: 480px) {
  .about-hero__container {
    height: 100vh;
    border-radius: 0 0 2rem 2rem;
  }

  .about-hero__content {
    padding: 2rem 1.5rem;
    align-items: flex-start;
  }

  .about-hero__title {
    font-size: 2.25rem;
    line-height: 1.2;
    text-align: left;
  }

  .about-hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.5;
    text-align: left;
  }

  .about-hero__tagline {
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
  }

  .about-hero__img {
    width: 80px;
  }

  .about-hero__img--top-right {
    right: 10%;
    bottom: -15%;
  }

  .about-hero__img--bottom-left {
    left: 10%;
    top: -10%;
  }

  .about-hero__scroll-indicator {
    bottom: 1.25rem;
    font-size: 0.75rem;
    gap: 0.2rem;
  }

  .scroll-arrow {
    margin-bottom: 10vh;
  }

  .scroll-arrow svg {
    width: 28px;
    height: 28px;
  }
}

/* ------------------------------------------------------------------------
     Section 2
  --------------------------------------------------------------------------- */
.match360-scroll {
  height: 100vh;
  overflow: hidden;
  background: #f6f8fa;
  position: relative;
  display: flex;
  align-items: center;
}

.match360-title-container {
  position: absolute;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.match360-title-container h2 {
  font-family: "tt-commons-pro", sans-serif;
  font-size: 2.5rem;
  color: #162139;
  margin: 0;
}

.match360-track {
  display: flex;
  gap: 3rem;
  padding: 0 10vw;
  will-change: transform;
}

.match360-spacer {
  flex: 0 0 50vw; /* moitié de l'écran */
  height: 1px;
}

.match360-card {
  flex: 0 0 45vw;
  min-height: 360px;
  max-width: 600px;
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: perspective(1000px) rotateY(20deg) scale(0.8);
  opacity: 0.3;
}

.match360-card.active {
  opacity: 1;
  border: 2px solid #68c6df;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(56, 175, 235, 0.08);
  transform: scale(1);
  transition: all 0.4s ease;
}

.match360-card h3 {
  font-size: 1.5rem;
  color: #bddcb6;
  margin-bottom: 1rem;
}

.match360-card p {
  font-size: 1rem;
  color: #162139;
}

.match360-card h3,
.match360-card p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.match360-card.active h3,
.match360-card.active p {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------------------
     Section 3
  --------------------------------------------------------------------------- */
.match360-vision {
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: nowrap;
  position: relative;
  justify-content: center;
  align-items: center;
  height: auto;
}

.match360-vision-inner {
  display: inline-block;
  min-width: 200vw;
  white-space: normal;
}

.match360-vision-inner .title-sect3 {
  opacity: 0;
  transform: translateX(100vw);
  transition: none;
}

.match360-vision-inner blockquote {
  opacity: 0;
  transform: translateX(100vw);
  transition: none;
  font-size: 1.3rem;
  margin-top: 2rem;
  color: #162139;
  font-style: italic;
}

/* ------------------------------------------------------------------------
     Section 4
  --------------------------------------------------------------------------- */
.match360-cta,
.match360-cta-inner {
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.match360-cta {
  width: 100vw;
  max-width: 100vw;
  left: 0;
  right: 0;
  text-align: center;
  position: relative;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100vh;
  display: flex;
}

.match360-cta-inner {
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.match360-cta h2 {
  font-family: "tt-commons-pro", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  line-height: 1.3;
  font-weight: 600;
}

.match360-cta p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #162139;
}

.match360-cta-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background: #68c6df;
  color: #162139;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.77, 0, 0.18, 1),
    border-radius 0.4s cubic-bezier(0.77, 0, 0.18, 1),
    background 0.3s cubic-bezier(0.77, 0, 0.18, 1),
    box-shadow 0.3s cubic-bezier(0.77, 0, 0.18, 1),
    color 0.3s cubic-bezier(0.77, 0, 0.18, 1);
  gap: 0;
  padding: 0;
  cursor: pointer;
}

.match360-cta-button .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #162139;
  transition: color 0.4s;
  width: 48px;
  height: 48px;
}

.match360-cta-button .cta-label {
  opacity: 0;
  max-width: 0;
  margin-left: 0;
  padding: 0;
  color: #f6f8fa;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0 24px 24px 0;
  transition: opacity 0.35s cubic-bezier(0.77, 0, 0.18, 1),
    max-width 0.35s cubic-bezier(0.77, 0, 0.18, 1),
    margin-left 0.35s cubic-bezier(0.77, 0, 0.18, 1),
    padding 0.35s cubic-bezier(0.77, 0, 0.18, 1),
    color 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}

.match360-cta-button:hover,
.match360-cta-button:focus {
  width: 240px;
  border-radius: 50px;
  background: #68c6df;
  color: #f6f8fa;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  justify-content: flex-start;
}

.match360-cta-button:hover .icon,
.match360-cta-button:focus .icon {
  color: #f6f8fa;
}

.match360-cta-button:hover .cta-label,
.match360-cta-button:focus .cta-label {
  opacity: 1;
  max-width: 220px;
  margin-left: 0.5rem;
  color: #f6f8fa;
  padding-left: 10px;
  padding-right: 16px;
}

.highlight {
  color: #68c6df;
  font-weight: 700;
  background: linear-gradient(120deg, #162139 0%, #5d5ca5 50%, #bddcb6 100%);
  background-size: 400% 400%;
  animation: gradient-move 10s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ------------------------------------------------------------------------
     RESPONSIVE
  --------------------------------------------------------------------------- */
/*Section 2*/
@media (max-width: 480px) {
  .match360-scroll {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0;
  }

  .match360-title-container {
    position: static;
    transform: none;
    top: 0;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .match360-track {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
    min-width: 0;
    will-change: auto;
  }

  .match360-spacer {
    display: none;
  }

  .match360-card {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    border-radius: 18px;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font-size: 1rem;
  }

  .match360-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }

  .match360-card p {
    font-size: 0.98rem;
  }
}

/*Section 3*/
@media (max-width: 480px) {
  .match360-vision {
    height: auto;
    min-height: 0;
    padding: 2rem 1rem;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .match360-vision-inner {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .match360-vision-inner .title-sect3 {
    font-size: 1.3rem;
    text-align: center;
    padding: 0;
  }

  .match360-vision-inner blockquote {
    font-size: 1rem;
    margin-top: 1.2rem;
    text-align: center;
    padding: 0 0.5rem;
  }
}

/*Section 4*/
@media (max-width: 480px) {
  .match360-cta {
    height: auto;
    margin-bottom: 10vh;
    min-height: 0;
    padding: 2.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .match360-cta-inner {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .match360-cta h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0 0.5rem;
  }

  .match360-cta p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0 0.5rem;
  }

  .match360-cta-button {
    display: none !important;
  }

  .cta-slider-mobile {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 340px;
    height: 56px;
    background: #eaf3f7;
    border-radius: 32px;
    margin: 1.5rem auto 0 auto;
    position: relative;
    box-shadow: 0 2px 12px rgba(22, 33, 57, 0.06);
    overflow: hidden;
    touch-action: pan-x;
    justify-content: flex-start;
    padding: 0 8px;
    align-self: center;
  }
  .cta-slider-mobile .slider-knob {
    width: 48px;
    height: 48px;
    background: #68c6df;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    position: absolute;
    left: 4px;
    top: 4px;
    z-index: 2;
    transition: background 0.3s;
    cursor: pointer;
    touch-action: none;
  }
  .cta-slider-mobile .slider-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-left: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #68c6df;
    transition: color 0.3s, transform 0.3s, background 0.3s;
    user-select: none;
    z-index: 1;
    min-height: 48px;
    text-align: center;
    pointer-events: none;
  }
  .cta-slider-mobile .slider-label.dragging {
    color: inherit;
    background: none;
    border-radius: 24px;
    transform: scale(1.08) translateX(10px);
    box-shadow: 0 2px 16px rgba(104, 198, 223, 0.15);
  }
  .slider-help {
    display: block;
    text-align: center;
    color: #162139;
    padding-top: 0.5rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 340px;
  }
}

.cta-slider-mobile,
.slider-help {
  display: none;
}

@media (max-width: 480px) {
  .cta-slider-mobile,
  .slider-help {
    display: flex;
  }
  .slider-help {
    display: block;
  }
}
