header{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: hsla(var(--bg), .8) ;
}
.header-container {
  backdrop-filter: blur(16px);
}
/* header */
.logo-svg {
  height: calc( var(--nav-height) - var(--space-unit)* 3);
  transition: height .24s ease-in-out;
}

nav ul li a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  color: var(--color-o-bg);
}

nav ul li a:hover::after {
  content: '';
  display: block;
  width: 100%;
  height: 6px;
  background: var(--color-c2);
  position: absolute;
  bottom: 0;
}

.mobile-nav{
  display: none;
  pointer-events: none;
}
@media screen and (width < 680px) {
  .mobile-nav {
    display: unset;
    transform: translateX(-24px);
    opacity: 0;
    top: calc( var(--nav-height) + var(--space-unit) * 2);
    right: var(--page-padding-h);
    background: var(--color-bg);
    z-index: 100;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  }
  .mobile-nav.--open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-nav li {
    width: 100%;
  }
  .mobile-nav li:not(:first-child) {
      border-top: 1px solid hsla(var(--o-bg), .2);
  }
}
@media screen and (width < 480px) {
  .mobile-nav {
    width: 100%;
    top: var(--nav-height);
    right: 0;
    left: 0;
    transform: translateY(24px);
  }
  .mobile-nav.--open {
    transform: translateX(0);
    opacity: 1;
  }
}

.burger {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-o-bg);
}

.burger-icon {
  display: block;
}

@media screen and (max-width: 680px) {
  .header-nav { display: none; }
  .burger { display: flex; }
}

/* Hero Section */
.hero {
  height: 50vh;
  /* background-color: hsla(var(--c1), .2); */
  color: var(--color-o-bg);
  overflow: hidden;
}

/* Hero background video */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Hero background overlay */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsla(var(--darkest), 0.6);
  z-index: -1;
}
.hero-content {
  transition: row-gap .24s ease-in-out;
}


@media screen and (width < 480px) {
  .hero-content{
    row-gap: calc(var(--space-unit)* 2);
  }
}
@media screen and (width < 396px) {
  .hero-content {
    row-gap: calc(var(--space-unit)* 1);
  }
}

.hero-phone-cont {
  right: calc(var(--space-unit) * 5);
  top: calc(var(--space-unit) * 5);
}

.hero-phone-img {
  position: relative;
  z-index: 0;
  width: 280px;
  min-height: 280px;
  min-width: 120px;
  max-height: 360px;
  object-fit: scale-down;
}

@media screen and (max-width: 680px) {
  .hero .hero-phone-cont { display: none; }
}

/* Hero video */
.hero-video-wrapper {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-unit) * 2);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: min(92vw, 720px);
  opacity: 0;
  transform: translateX(-50%) translateY(24px);
  transition: opacity .24s ease-in-out, transform .24s ease-in-out;
  pointer-events: none;
}
.hero-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-o-bg, #000);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px hsla(var(--o-bg), .5);
}
.hero-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video-wrapper.--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* When video is open, keep overlay above without hiding other elements */
.hero.--video-open { overflow: visible; }

/* Ensure the next section overlays the hero phone when video is open */
.hero.--video-open + .how-it-works {
  position: relative;
  z-index: 2;
}


/* Floating phones */
.floating-phones {
  background: linear-gradient(45deg, hsla(var(--c2), 1) 30%, hsla(var(--c1), 1) 100%);
}

.floating-phones-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: calc(var(--space-unit) * 2);
  width: 100%;

  @media screen and (width < 480px) {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.floating-phones .phone-img {
  height: clamp(240px, 60vh, 70vh);
  width: auto;
  object-fit: contain;
  display: block;
  animation: phone-float 6s ease-in-out infinite;
  will-change: transform;
}

.floating-phones .phone-img-cont {
  padding: calc(var(--space-unit) * 4);
}

@keyframes phone-float {
  0% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
  100% { transform: translateY(0) rotate(-1deg); }
}

/* Alternate float for a different rhythm */
@keyframes phone-float-alt {
  0% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-18px) rotate(-0.5deg); }
  100% { transform: translateY(0) rotate(1deg); }
}

/* Desynchronize animations between the two images */
.floating-phones .floating-phones-container:nth-of-type(1) .phone-img {
  animation-duration: 6.5s;
  animation-delay: 0s;
}

.floating-phones .floating-phones-container:nth-of-type(2) .phone-img {
  animation-name: phone-float-alt;
  animation-duration: 8.2s;
  animation-delay: -1.2s;
}

@media (prefers-reduced-motion: reduce) {
  .floating-phones .phone-img { animation: none; }
}

/* Responsive: reverse children order in floating phones */
@media screen and (max-width: 912px) {
  .floating-phones .floating-phones-container:nth-of-type(2) {
    display: flex !important;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
  }
}

.hero-buttons-cont {
  display: flex;
  gap: calc(var(--space-unit) * 1);
  justify-content: center;
  @media screen and (width < 480px) {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: calc(var(--space-unit) * 2);
  }
}

.primary-cta {
  background: var(--color-c1);
  padding: calc(var(--space-unit)* 2) calc(var(--space-unit)* 2);
  border: none;
  border-radius: 4px;
  font-weight: bold;
}

.secondary-cta {
  background: hsl(204, 100%, 50%);
  color: var(--color-o-blue-logo);
  padding: calc(var(--space-unit)* 2) calc(var(--space-unit)* 2);
  border-radius: 4px;
  font-weight: bold;
}

@media screen and (width < 480px) {
  .primary-cta, .secondary-cta {
    padding: calc(var(--space-unit)* 1) calc(var(--space-unit)* 2);
  }
}

/* Pointers on hover for all buttons */
button:hover,
.primary-cta:hover,
.secondary-cta:hover {
  cursor: pointer;
}

/* Content Sections */
section:not(.hero) {
  padding: calc(var(--space-unit)* 10) var(--page-padding-h);
}

/* section:not(.hero, .floating-phones):nth-child(even) {
  background: hsla(var(--o-bg), .12);
} */

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

ul, ol {
  line-height: 1.4;
}

/* use cases */
.use-cases {
  --circle-size: 280px;
}
.cases-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--circle-size), 1fr));
  gap: calc(var(--space-unit) * 3);

  @media screen and (width < 480px) {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}
.cases-item {
  text-align: center;
}
.cases-item-img {
  overflow: hidden;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  outline: 4px solid var(--color-c1);
  width: var(--circle-size);
  height: var(--circle-size);
  position: relative;
  color: var(--color-c1);
}

/* Pumping outline animation (transform-based for wider support) */
.cases-item-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-sizing: border-box;
  border: 12px solid currentColor;
  opacity: .5;
  transform: scale(1);
  transform-origin: center;
  animation: cases-outline-pump 1.8s ease-in-out infinite;
}

@keyframes cases-outline-pump {
  0% { transform: scale(1); opacity: .4; }
  50% { transform: scale(1.25); opacity: .9; }
  100% { transform: scale(1); opacity: .4; }
}
.cases-item-title {
  background-color: var(--color-bg);
  color: var(--color-o-bg);
  padding: calc(var(--space-unit)* 2) calc(var(--space-unit)* 4);
  transform: skewX(-12deg) translateY(-100%);
}
.cases-item-desc {
  font-size: var(--f-size-p);
  color: var(--color-c1);
  transform: translateY(-64px);
  /* background: linear-gradient(0deg, hsla(var(--c2), 1) 0%, transparent 100%); */
}


/* Testimonials */

/* Testimonials grid */
.testimonials-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--space-unit) * 3);
  margin: 0 auto;
}

.testimonial-card {
  border: 1px solid color-mix(in srgb, var(--color-o-bg), transparent 75%);
  color: hsla(var(--o-bg), .6);
  border-radius: 8px;
  text-align: center;
}

.testimonial-header {
  background: var(--color-dark-green);
  padding: calc(var(--space-unit) * 4);
  border-radius: 8px 8px 0 0;
}

.testimonial-avatar {
  user-select: none;
  width: calc(var(--space-unit) * 10);
  height: calc(var(--space-unit) * 10);
  border-radius: 50%;
  object-fit: cover;
  outline: 4px solid var(--color-c1, yellow);
}

.testimonial-quote {
  font-style: italic;
  font-weight: 600;
  color: var(--color-lightest);
}

.testimonial-quote-cont {
  height: 100%;
  padding: calc(var(--space-unit) * 2);
  background-color: var(--color-logo-blue);
  border-radius: 0 0 8px 8px;
  border-top: 2px solid var(--color-bg);
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-o-bg);
}

.testimonial-date {
  margin-left: 8px;
  font-weight: 500;
  color: hsla(var(--o-bg), .4);
}

.testimonial-rating {
  display: inline-flex;
  gap: 4px;
  margin-top: 4px;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--color-c1);
}

.testimonial-rating span {
  line-height: 1;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-c1);
  color: var(--color-o-bg);
}

/* Footer */
.footer {
  background: var(--color-darkest);
  color: var(--color-lightest);
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;

  
  @media screen and (width < 680px) {
    grid-template-columns: 1fr;
  }
}
.footer-logo-cont {
  @media screen and (width < 680px) {
    align-items: start;
  }
}
.footer-section {
  align-items: start;
  @media screen and (width < 680px) {
      align-items: center;
  }
}
.footer-section h4 {
  font-weight: 600;
  margin-bottom: 20px;
  color: hsla(var(--bg), .4);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-logo {
  display: flex;
  justify-content: start;
  gap: 4px;
  margin-bottom: 16px;
  @media screen and (max-width: 680px) {
      transform: translateX(-16px);
      justify-content: center;
      margin-bottom: 32px;
  }
}

.footer-logo .logo-img {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.footer-logo .logo-text {
  color: white;
}

.footer-bottom {
  border-top: 1px dotted hsla(var(--lightest), .2);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--space-unit)* 2);
  color: hsla(var(--lightest), .4);

  @media screen and (width < 680px) {
    flex-wrap: wrap;
  }
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: hsla(var(--lightest), .6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: hsla(var(--lightest), 1);
}

/* how it works */
.steps-container {
  @media screen and (width > 1200px) {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.steps-scroll-cont {
  @media screen and (width > 1360px) {
    display: none;
  }
  top: 50%;
  transform: translate(-50%, -50%);
  right: calc( -40px - var(--space-unit)* 2);
  width: 80px;
  height: 80px;
  user-select: none;
  background-color: var(--color-bg);
  color: var(--color-o-bg);
  border-radius: 50%;
  font-size: var(--f-size-3);
  transition: background-color 0.32s ease-in-out;
}
.steps-scroll-cont:hover {
  cursor: pointer;
}
.steps-list {
  width: max-content;
}
.steps-item {
  width: 320px;
  /* background-color: var(--color-c1); */
  background: linear-gradient(70deg, hsla(var(--c1), 1) 0%, hsla(var(--c2), 1) 100%);
  border-radius: 16px;
  padding: calc(var(--space-unit)* 2);
  text-align: center;
}
.steps-item-number {
  background-color: var(--color-bg);
  color: var(--color-o-bg);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.steps-item-text {
  color: var(--color-darkest);
}
.steps-img-cont {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.steps-img {
  object-fit: contain;
  max-height: 280px;
}

/* why different */

.diff-list {  
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  grid-gap: calc(var(--space-unit)* 4);
  padding: 0;
  margin: 0;
  list-style: none;
  @media screen and (width < 480px) {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}
.diff-item {
  background-color: hsla(var(--bg), 0.7);
  backdrop-filter: blur(16px);
}
.diff-item h3 { color: var(--color-c1); }

.diff-list li {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-o-c2), transparent 80%);
  padding: calc(var(--space-unit)* 2);
  height: 200px;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  color: var(--color-o-bg);
}


/* FAQ */
.faq-list {
  list-style: none;
  padding: 0;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: calc(var(--space-unit) * 2);
}
.faq-item {
  border: 1px solid color-mix(in srgb, var(--color-o-bg), transparent 70%);
  border-radius: 8px;
  background: var(--color-lightest, #fff);
  color: var(--color-o-lightest, #111);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: calc(var(--space-unit) * 2);
  font-weight: 600;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.32s ease-in-out;
}
.faq-question[aria-expanded="true"] {
  background: hsla(var(--o-bg), .06);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  padding: 0 calc(var(--space-unit) * 2);
  transition: max-height 0.32s ease, padding 0.32s ease;
  background-color: var(--color-c1, lime);
}

.faq-answer.open {
  padding: calc(var(--space-unit) * 2);
}

/* security */

.security-icon {
  width: 72px;
  height: 72px;
  color: var(--color-o-bg);
  @media screen and (width < 680px) {
    width: 64px;
    height: 64px;
  }
  @media screen and (width < 480px) {
    width: 48px;
    height: 48px;
  }
}
.security-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: calc(var(--space-unit) * 4);
  width: 100%;
  @media screen and (width < 480px) {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* Features carousel with background images */
.features-carousel-marquee {
  display: flex;
  overflow: hidden;
  padding: calc(var(--space-unit) * 2) var(--page-padding-h) calc(var(--space-unit) * 4);
}

.features-carousel-track {
  display: flex;
  gap: calc(var(--space-unit) * 3);
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: features-marquee 40s linear infinite;
}

.features-carousel-marquee-item {
  position: relative;
  min-height: 320px;
  border-radius: 0;
  border-top: 2px solid var(--color-c1);
  border-right: 2px solid var(--color-c1);
  border-bottom: 2px solid var(--color-c2);
  border-left: 2px solid var(--color-c2);
  overflow: hidden;
  padding: calc(var(--space-unit) * 4);
  color: var(--color-lightest, #fff);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: none;
  box-shadow: 0 1px 0 0 color-mix(in srgb, var(--color-bg), transparent 80%);
  flex: 0 0 320px;
  transform: skewX(-12deg);
  transform-origin: center;
}

.features-carousel-marquee-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
  transform: skewX(12deg) scale(1.2);
}

.features-carousel-marquee-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: skewX(12deg) scale(1.2);
  transform-origin: center;
  will-change: transform;
}

.features-carousel-marquee-item > * {
  position: relative;
  z-index: 1;
  transform: skewX(12deg);
}

/* multi movements */
.features .features-carousel-marquee-item:nth-child(4n+1)::after {
  background-image: url('_assets/img/jumping-jacks.jpg');
}
/* fonctionalités */
.features .features-carousel-marquee-item:nth-child(4n+2)::after {
  background-image: url('_assets/img/push-ups.jpg');
}
/* historique et stats */
.features .features-carousel-marquee-item:nth-child(4n+3)::after {
  background-image: url('_assets/img/history-stats.jpg');
}
/* Lien de partage */
.features .features-carousel-marquee-item:nth-child(4n+4)::after {
  background-image: url('_assets/img/style-share.jpg');
}

@keyframes features-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* ============================================================
   Navigation fluide + polish (ajout pro)
   ============================================================ */
html { scroll-behavior: smooth; }
/* Décalage pour ne pas passer sous le header fixe (64px) en arrivant sur une ancre */
section[id] { scroll-margin-top: 84px; }

/* Transition douce sur les liens de nav + état ACTIF (section visible) */
nav ul li a { transition: color .2s ease; }
nav ul li a.is-active::after {
  content: ''; display: block; width: 100%; height: 6px;
  background: var(--color-c2); position: absolute; bottom: 0;
}

/* Burger : animation vers une croix quand le menu est ouvert */
.burger-icon line { transition: transform .22s ease, opacity .22s ease; transform-origin: center; }
.burger.--open .burger-icon line:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.--open .burger-icon line:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
