/********* LENIS *********/
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: clip;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body{
    overflow-x:hidden !important;
}

.medium-container {
    max-width: 800px;
}

.centered {
    text-align: center!important;
}

.lefted {
    text-align: left!important;
}

.b-color {
    color: #000 !important ;
}

.w-color {
    color: #fff !important;
}

.lb-color {
    color: #DAD3FF;
}
.db-color{
    color: #B75CE8;
}

.title-test {
    font-family: var( --e-global-typography-primary-font-family ), Sans-serif;
    font-size: var( --e-global-typography-primary-font-size );
    font-weight: var( --e-global-typography-primary-font-weight );
    line-height: var( --e-global-typography-primary-line-height );
    letter-spacing: var( --e-global-typography-primary-letter-spacing );
    color: var(--e-global-color-d0e7fad);
}

.title-test .highlight-test {
    font-size: var( --e-global-typography-050a004-font-size );
    line-height: var( --e-global-typography-050a004-line-height );
    letter-spacing: var( --e-global-typography-050a004-letter-spacing );
    font-family: var( --e-global-typography-050a004-font-family ), Sans-serif;
    font-weight: var( --e-global-typography-050a004-font-weight );
    text-transform: var( --e-global-typography-050a004-text-transform );
    font-style: var( --e-global-typography-050a004-font-style );
}

.title-test--big{
    font-size:6rem; 
    line-height:6.5rem;
}

.main-text{
    font-family: var( --e-global-typography-text-font-family ), Sans-serif;
    font-size: var( --e-global-typography-text-font-size );
    font-weight: var( --e-global-typography-text-font-weight );
    line-height: var( --e-global-typography-text-line-height );
    letter-spacing: var( --e-global-typography-text-letter-spacing );
}

.highlight-text{
    display: inline-block;
    overflow: hidden;
    font-family: "Schibsted Grotesk", Sans-serif;
    font-weight: 900;
    letter-spacing: -3px;
    text-transform: uppercase;
    font-size:2rem;
}

.alt-text {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-weight: var(--e-global-typography-text-font-weight);
    font-size: var(--e-global-typography-text-font-size);
    line-height: var(--e-global-typography-text-line-height);
    letter-spacing: var(--e-global-typography-text-letter-spacing);
}
.main-acc{
    font-family: var( --e-global-typography-7e0da5a-font-family ), Sans-serif;
    font-size: var( --e-global-typography-7e0da5a-font-size );
    font-weight: var( --e-global-typography-7e0da5a-font-weight );
    line-height: var( --e-global-typography-7e0da5a-line-height );
}
.highlight-acc{
    font-weight:900;
}
.sub-title {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.sub-title::after {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    /* top/right */
    width: 4px;
    height: 1em;
    background: currentColor;
    animation: blink .7s step-end infinite;
}

.pp-button-content-wrapper .pp-button-content-inner.pp-icon-after{
    justify-content: space-between !important;
    width: 100% !important;
}

.pp-button{
    padding:1rem 1rem 1rem 2rem !important;
}
.pp-button .pp-button-icon{
    font-size: 1.5rem !important;
    line-height: 1.5rem !important;
    height: 1.5rem !important;
    width: 1.5rem !important;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.screen-anim {
    transition: transform .3s ease;
    transform-origin: center;
}

.screen-anim:hover {
    transform: scale(1.05);
}

.pp-button-icon svg {
    transform-origin: 50% 50%;
}

.pp-button:hover .pp-button-icon svg {
    animation: dotsRotate .8s ease-in-out forwards;
}

@keyframes dotsRotate {
    0% {
        transform: scale(1) rotate(0);
    }

    40% {
        transform: scale(.6) rotate(0);
    }

    80% {
        transform: scale(.6) rotate(90deg);
    }

    100% {
        transform: scale(1) rotate(90deg);
    }
}

/**********4BTN*************/

  .btn-container {
  background-color: #e6e1fe;
  border-radius: 10rem;
  padding: 0.5rem;
  border: 1px solid #71717A;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* permet le retour à la ligne si trop serré */
  gap: 0.5rem;     /* espace fluide entre les boutons */
}

.btn-debut {
  opacity: 0.5;
  transition: opacity 0.3s ease;
  background: white !important;
  color: black !important;
  border: 1px solid #71717A !important;
  padding: 1rem 2rem; 
  font-family: monospace;
  cursor: pointer;
  border-radius: 10rem;
  font-size: 1rem;
  white-space: nowrap; 
}

.btn-debut:hover,
.btn-debut.active {
  opacity: 1;
  background: #a63aff;
}

@media (max-width: 1024px) {
    
  .btn-container{
    justify-content:space-between;
    border-radius: 1.5rem; /* moins arrondi pour mobile */
    padding:1rem !important;
    }
    
  .btn-debut {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    width:45%;
  }
}

/* RESPONSIVE - mobile */
@media (max-width: 768px) {

  .btn-debut {
    max-width: 280px; 
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    margin: 0.25rem 0 !important;
  }
}

.logi-container {
    position: relative;
}

.logi-container .title {
    font-weight: 300;
    transition: font-weight .3s;
    padding-bottom: 1.5rem;
}

.logi-container .logi-text {
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.logi-container .progress-bar {
    position: absolute;
    inset: auto 0 0 0;
    /* bottom:0; left:0 */
    height: 2px;
    width: 0;
    background: #fff;
    display: none;
}

.logi-container.active .title {
    font-weight: 900;
}

.logi-container.active .logi-text {
    opacity: 1;
    visibility: visible;
}

.logi-container.active .progress-bar {
    display: block;
}

.bloc-container-test {
    width: 45vw !important;
    height: 50vh !important;
    margin-right: 5rem !important;
}

.bloc-img-test {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.solutions .solution {
    position: relative;
    opacity: .5;
    transform: scale(1);
    border-radius: 8px;
    transition:
        opacity .5s ease,
        transform .5s ease,
        border-radius .3s ease !important;
}

.solutions .solution.active {
    opacity: 1;
    transform: scale(1.05);
    border-radius: 0;
}

.solutions .solution .corner {
    position: absolute;
    width: 21px;
    height: 21px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.solutions .solution.active .corner {
    opacity: 1;
}

.corner.top-left {
    top: -15px;
    left: -15px;
    transform: rotate(90deg);
}

.corner.top-right {
    top: -15px;
    right: -15px;
    transform: rotate(180deg);
}

.corner.bottom-right {
    bottom: -15px;
    right: -15px;
    transform: rotate(270deg);
}

.corner.bottom-left {
    bottom: -15px;
    left: -15px;
    transform: rotate(0);
}

/********TRANSITION*******/
/* Section englobante */
.px-section-slide,
.px-shift-container,
.px-shift-inner {
  overflow: visible;
}

.px-section-slide {
  height: 50vh;
  margin: 0;
  position: relative;
  z-index: 1;
}

.px-shift-container {
  height: 102%;
  position: relative;
  z-index: 2;
}

.px-shift-inner {
  width: 100%;
  height: 100%;
  position: sticky;
  top: 0;
  z-index: 1;
}

.px-img-slide {
  width: 110%;
  max-width: 110%;
  height: 100%;
  margin-top: -5px;
  margin-bottom: -5px;
  margin-right: -5%;
  transform-origin: 50% 0%;  
  transform: scaleY(1);      
  will-change: transform;
  z-index: 0;
}

   .o-sec.color-shift.reverse,
.c-color-shift,
.c-color-shift_inner {
  overflow: visible;
}

   .o-sec.color-shift.reverse {
  height: 50vh;
  margin: 0;
  position: relative;
  z-index: 1; 
}

.c-color-shift {
  height: 102%;
  position: relative;
  z-index: 2;
}

.c-color-shift_inner {
  width: 100%;
  height: 100%;
  position: sticky;
  top: 0;
  z-index:1;
  margin-top: -20vh;
}

.c-img.color-shift {
  width: 100%;
  max-width: 110%;
  height: 100%;
  margin-top: -5px;
  margin-bottom: -5px;
  margin-left: 0%;
  transform-origin: 50% 100%;    /* pivot en bas-centre */
  transform: scaleY(0);          /* état initial : aplati */
  will-change: transform;
  z-index: 0; 
}

/******SOCIALS******/
/* Applique une rotation différente aux 4 premiers éléments */
.gain-container:nth-child(1) { transform: rotate(5deg); }
.gain-container:nth-child(2) { transform: rotate(-7deg); }
.gain-container:nth-child(3) { transform: rotate(9deg); }
.gain-container:nth-child(4) { transform: rotate(-6deg); }

/* Transition pour un effet fluide */
.gain-container {
  background:#D3D3D32;
  transition: transform 0.3s ease;
  display: inline-block; 
  backdrop-filter:blur(25px);
}

@media (max-width: 1024px) {
    .title-test {
        font-size: 3.2rem; 
        line-height: 3.5rem;
    }
    .title-test .highlight-test {
        letter-spacing: -2px;
    }
        .lefted {
    text-align: center!important;
    }
}

@media (max-width: 768px) {

    .title-test {
        font-size: 2rem; 
        line-height: 2.5rem;
    }
    .title-test .highlight-test {
        letter-spacing: -1px;
    }
    .title-test--big{
    font-size:3rem; 
    line-height:3.5rem;
}

    
    /**********4BTN*************/
    .btn-debut {
          opacity: 0.7;
          transition: opacity 0.3s ease;
          background: white !important;
          color: black !important;
          border: none;
          padding: 0.5rem 1rem;
          font-family: monospace;
          cursor: pointer;
          border-radius: 10rem;
          margin:0.25rem!important;
        }
}
