



/* #region Espace personnel */
section.online_test .connectWrapper {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    max-width: 980px;
    margin: 36px auto 28px;
    padding: clamp(22px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid #eedbd8;
    border-radius: 28px;
    background: linear-gradient(125deg, #fffaf7 0%, #fff 55%, #fcece8 100%);
    box-shadow: 0 16px 48px -24px #823d3d40;
    color: #392d30;
    text-align: left;
    animation: connect-enter 650ms ease-out both;
}
section.online_test .connectWrapper::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    top: -170px;
    right: -70px;
    border: 35px solid #b8273210;
    border-radius: 50%;
    pointer-events: none;
}
section.online_test .connect-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}
section.online_test .connect-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    height: 64px;
    border: 1px solid #efd2cd;
    border-radius: 20px;
    background: #fae8e3;
    color: #a51c29;
    transform: rotate(-6deg);
}
section.online_test .connect-symbol svg { width: 38px; height: 38px; }
section.online_test .connect-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #9d3039;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
section.online_test .connectWrapper h2 {
    margin: 0;
    color: #392d30;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.3rem, 2.8vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.025em;
}
section.online_test .connectWrapper .connect-intro {
    width: auto;
    max-width: 720px;
    margin: 22px 0 26px;
    color: #6d5b60;
    line-height: 1.7;
}
section.online_test .connect-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
section.online_test .connect-benefits li {
    padding: 20px;
    border: 1px solid #efdfdc;
    border-radius: 18px;
    background: #ffffffba;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
section.online_test .connect-number {
    display: inline-block;
    margin-bottom: 18px;
    color: #ab3440;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
}
section.online_test .connect-benefits h3 {
    margin: 0 0 9px;
    color: #392d30;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}
section.online_test .connect-benefits p {
    width: auto;
    margin: 0;
    color: #6d5b60;
    font-size: .9rem;
    line-height: 1.6;
}
section.online_test .connect-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 26px;
    margin-top: 28px;
}
section.online_test .connect-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    box-sizing: border-box;
    min-height: 50px;
    padding: 14px 23px;
    border: 1px solid #a31c29;
    border-radius: 12px;
    background: #a31c29;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 7px 16px #a31c2920;
    transition: background 200ms ease, transform 200ms ease;
}
section.online_test .connect-cta span { transition: transform 200ms ease; }
section.online_test .connect-note { color: #6d5b60; font-size: .87rem; line-height: 1.6; }
section.online_test .connect-note a {
    display: inline-block;
    padding-block: 8px;
    color: #9b2330;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}
section.online_test .connectWrapper a:focus-visible {
    outline: 3px solid #9b2330;
    outline-offset: 5px;
}
@media (hover: hover) {
    section.online_test .connect-benefits li:hover {
        transform: translateY(-4px);
        border-color: #dca9a4;
        box-shadow: 0 10px 22px #823d3d10;
    }
    section.online_test .connect-cta:hover { background: #861522; transform: translateY(-2px); }
    section.online_test .connect-cta:hover span { transform: translateX(4px); }
}
@media (max-width: 640px) {
    section.online_test .connectWrapper { border-radius: 22px; }
    section.online_test .connect-heading { align-items: flex-start; gap: 14px; }
    section.online_test .connect-symbol { flex-basis: 48px; height: 48px; border-radius: 15px; }
    section.online_test .connect-symbol svg { width: 30px; height: 30px; }
    section.online_test .connect-benefits { grid-template-columns: minmax(0, 1fr); }
    section.online_test .connect-benefits li { position: relative; padding: 18px 18px 18px 55px; }
    section.online_test .connect-number { position: absolute; top: 21px; left: 18px; margin: 0; }
    section.online_test .connect-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    section.online_test .connect-note { text-align: center; }
}
@keyframes connect-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    section.online_test .connectWrapper,
    section.online_test .connectWrapper * { animation: none; transition: none; }
    section.online_test .connect-benefits li:hover,
    section.online_test .connect-cta:hover,
    section.online_test .connect-cta:hover span { transform: none; }
}
/* #endregion */

/* #region   Page d'explications */
    section.online_test{
        display: flex;
        flex-direction: column;
        min-height: 80vh;
        padding: 12px 8px;
        margin-top:2rem;
    }
    section.online_test .mainWrapper{
        display: flex;
        flex-direction: column;
        border: none;
        background: transparent;
        padding: 10px 15px;
    }

    section.online_test  .ctn-nav{
        display: flex;
        gap: 8px;
        margin-top: 26px;
        margin-bottom: 15px;
        align-items: center;
        justify-content: center;
    }

    section.online_test  .wrap_title{
        margin-top: 40px;
    }
    section.online_test  .img_start{   
        width: 130px;
        height: 130px;
        margin-top: 50px;
        right: 20px;
        position: absolute;
    }
    section.online_test  h1{
        width: calc(100% - 150px);
        min-height: 80px;
        margin-top: 48px;
        vertical-align: middle;
        margin-bottom: 1.8rem;
        margin-left: 0;
        font-family: "Montserrat", sans-serif;
        letter-spacing: 2px;
        font-size: 8vw;
        transform: scaleY(1.05);
        line-height: 2rem;
    }



    section.online_test  h1>b{ color: #A33; font-weight: 600; font-size: 2.6rem; letter-spacing: 0.25rem;}
    section.online_test  p{ width: 85%;  font-size: 1rem; line-height: 1.45rem;  color: #666; margin-left: 0; margin-bottom:1.4rem; margin-top:5px;}
 
    section.online_test  ul>li>img{width: 45px; height: 45px; background-color: #fce9e4; border-radius: 60px; padding: 8px;  margin-right: 0.6rem; vertical-align: middle;}
    section.online_test  ul>li .check{ width: 50px; height: 50px; margin-left: 10px; margin-bottom: -5px; display:inline-block; vertical-align: middle;}
    section.online_test  ul>li .check *{ fill:#a77a7a7d; box-shadow:inset 2px 2px; }


/* #endregion */

/* #region boutons */

    section.online_test  .ctn-nav>*{display:none;}
    section.online_test  .ctn-nav>.show{
        padding: 18px 40px;
        font-size: 1.3rem;
        position: relative;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 12px;
        margin-bottom: 25px;
        background: linear-gradient( 180deg, #b70d16 0%, #990810 100% );
        color: #fff;
        font-size: 21px;
        font-weight: 700;
        letter-spacing: 0.03em;
        box-shadow: 0 5px 0 #76060c, 0 12px 22px rgba(145, 5, 14, 0.22);
        cursor: pointer;
        opacity: 0;
        transform: translateY(12px) scale(0.96);
        animation: button-appear 1.2s ease 2.2s forwards, button-breathe 2.6s ease-in-out 2.8s infinite;
    }
    
    

    @keyframes button-appear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    }
    /*Pulsation légère*/
    @keyframes button-breathe {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
        0 5px 0 #76060c,
        0 12px 24px rgba(145, 5, 14, 0.22);
    }

    50% {
        transform: scale(1.025);
        box-shadow:
        0 5px 0 #76060c,
        0 16px 32px rgba(190, 10, 20, 0.32);
    }
    }

/* #endregion */

/* #region   TAGS ------------------------------------------------------------------------*/
    section.online_test .tag{
        background-color: #fdf8f8; 
        color:#cc1516; 
        border-radius: 12px;  
        border:1px solid #fdeeec; 
        padding: 0.3rem 0.8rem; 
        font-weight: 600; 
        font-size: 0.95rem; 
        display:inline-block;     
        
        
        margin-left:auto;
        margin-right:0;
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
    }
    section.online_test .tag svg{
        width: 16px;
        height: 16px;
        margin-bottom: -2px;
        display: inline-block;
    }
    section.online_test .tag.green svg *{
        fill:#1a7f37;
    }
    section.online_test .tag.green{
        color: #1a7f37;
        border-color: #d3f0d8;
        box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
        background-color: #f0f9f3;
    }

    section.online_test .tag.center{ 
        margin-left:auto; margin-right:auto; 
        display:block; text-align:center; 
        margin-bottom: 5px;
        margin-top: -25px;
        border-radius: 0 0 12px 12px;
        padding: 0.4rem 1rem;
    }


/* #endregion */


/* #region  UL STEPS  ANIMATE -----------------------------------------------------------------------*/
section.online_test  ul.steps {
  --item-height: 60px;
  --gap: 18px;
  --outline-offset: -1px;

  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap);

  width: min(70%, 250px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

section.online_test  ul.steps::before {
  content: "";

  position: absolute;
  z-index: 0;
  opacity:0;

  top: calc(var(--outline-offset) * 2 );
  left: calc(var(--outline-offset) * 2 + 1px);

  width: calc(100% + var(--outline-offset) * 2);
  height: calc(var(--item-height) + var(--outline-offset) * 2);

  border: 2px solid rgba(184, 26, 32, 0.25);
  border-radius: 18px;
  /*background: rgba(255, 242, 240, 0.45);*/

  box-shadow:
    0 8px 22px rgba(120, 20, 20, 0.08),
    0 2px 10px 2px rgba(255, 10, 10, 0.3),
    0 0 0 5px rgba(255, 242, 240, 0.35);

  pointer-events: none;

  animation: fade-highlight 0.5s ease 1s forwards, move-highlight 6s ease-in-out 1.5s infinite;
}

.steps li {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  gap: 18px;

  height: var(--item-height);
  padding: 0 18px;

  border: 1px solid #f3ddda;
  border-radius: 15px;
  background: rgba(255, 249, 248, 0.92);

  font-size: 20px;
  font-weight: 600;
}




@property --halo-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

section.online_test  ul.steps::before {
  content: "";

  position: absolute;
  z-index: 0;

  top: calc(var(--outline-offset) * 2);
  left: calc(var(--outline-offset) * 2 + 1px);

  width: calc(100% + var(--outline-offset) * 2);
  height: calc(var(--item-height) + var(--outline-offset) * 2);

  border-radius: 18px;
  pointer-events: none;

  /*
    Halo tournant :
    une zone lumineuse rouge suivie d'une zone transparente.
  */
  background:
    conic-gradient(
      from var(--halo-angle),
      transparent 0deg,
      transparent 235deg,
      rgba(184, 26, 32, 0.08) 265deg,
      rgba(230, 35, 45, 0.95) 315deg,
      rgba(255, 120, 120, 0.35) 345deg,
      transparent 360deg
    );

  /*
    On masque le centre pour ne conserver
    qu'une bordure lumineuse.
  */
  padding: 2px;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask-composite: exclude;

  filter:
    drop-shadow(0 0 4px rgba(220, 20, 30, 0.45))
    drop-shadow(0 0 9px rgba(255, 70, 70, 0.25));

  opacity: 0;

  animation:
    highlight-appear 0.5s ease 1s forwards,
    halo-spin 1.4s linear 1s infinite,
    move-highlight 7s ease-in-out 1.5s infinite;
}


@keyframes halo-spin {
  from {
    --halo-angle: 0deg;
  }

  to {
    --halo-angle: 360deg;
  }
}

@keyframes highlight-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.85;
  }
}


@keyframes move-highlight {
  /* Premier élément */
  0%,
  23% {
    transform: translateY(0);
    opacity: 0.85;
  }

  /* Disparition avant déplacement */
  27% {
    transform: translateY(0);
    opacity: 0;
  }

  /* Déplacement invisible vers le deuxième */
  30% {
    transform: translateY(
      calc(var(--item-height) + var(--gap))
    );
    opacity: 0;
  }

  /* Deuxième élément */
  34%,
  56% {
    transform: translateY(
      calc(var(--item-height) + var(--gap))
    );
    opacity: 0.85;
  }

  /* Disparition avant le troisième */
  60% {
    transform: translateY(
      calc(var(--item-height) + var(--gap))
    );
    opacity: 0;
  }

  /* Déplacement invisible vers le troisième */
  64% {
    transform: translateY(
      calc((var(--item-height) + var(--gap)) * 2)
    );
    opacity: 0;
  }

  /* Troisième élément */
  68%,
  91% {
    transform: translateY(
      calc((var(--item-height) + var(--gap)) * 2)
    );
    opacity: 0.85;
  }

  /* Disparition avant le retour */
  95% {
    transform: translateY(
      calc((var(--item-height) + var(--gap)) * 2)
    );
    opacity: 0;
  }

  /* Retour invisible au premier */
  98% {
    transform: translateY(0);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
}




/*----------------------------------------------------*/
section.online_test .vp ul.steps li.is-complete {
  border-color: rgba(45, 145, 75, 0.45);
  background: rgba(240, 250, 243, 0.96);
  color: #23733b;
  box-shadow:
    0 4px 12px rgba(45, 145, 75, 0.08);
}




section.online_test .vp ul.steps li {
  overflow: hidden;
}

section.online_test .vp ul.steps li.is-just-complete {
  border-color: rgba(45, 145, 75, 0.65);
  background: rgba(240, 250, 243, 0.96);
  color: #23733b;

  animation:
    just-complete-green 0.65s ease forwards,
    just-complete-sparkle 1.6s ease-in-out 0.65s infinite;
}



section.online_test .vp ul.steps li {
  overflow: hidden;
}

section.online_test .vp ul.steps li.is-just-complete {
  border-color: rgba(45, 145, 75, 0.65);
  background: rgba(240, 250, 243, 0.96);
  color: #23733b;

  animation:
    just-complete-green 0.65s ease forwards,
    just-complete-sparkle 1.6s ease-in-out 0.65s infinite;
}


section.online_test .vp ul.steps li.is-just-complete::before {
  content: "";

  position: absolute;
  inset: -3px;
  z-index: -1;

  border-radius: 18px;
  padding: 3px;

  background:
    conic-gradient(
      from var(--halo-angle),
      transparent 0deg,
      transparent 220deg,
      rgba(65, 180, 95, 0.15) 255deg,
      rgba(52, 180, 85, 0.95) 305deg,
      rgba(170, 255, 190, 0.7) 335deg,
      transparent 360deg
    );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  filter:
    drop-shadow(0 0 5px rgba(45, 180, 85, 0.55))
    drop-shadow(0 0 12px rgba(45, 180, 85, 0.32));

  animation: halo-spin 1.1s linear infinite;
}





@property --halo-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes halo-spin {
  from {
    --halo-angle: 0deg;
  }

  to {
    --halo-angle: 360deg;
  }
}

@keyframes just-complete-green {
  0% {
    background: rgba(255, 249, 248, 0.92);
    border-color: #f3ddda;
    color: inherit;
    box-shadow: none;
  }

  45% {
    background: rgba(232, 250, 237, 0.98);
    border-color: rgba(45, 145, 75, 0.75);
    color: #23733b;
    box-shadow:
      0 0 0 5px rgba(45, 180, 85, 0.12),
      0 0 20px rgba(45, 180, 85, 0.22);
  }

  100% {
    background: rgba(240, 250, 243, 0.96);
    border-color: rgba(45, 145, 75, 0.65);
    color: #23733b;
    box-shadow:
      0 4px 14px rgba(45, 145, 75, 0.12);
  }
}

@keyframes just-complete-sparkle {
  0%,
  100% {
    box-shadow:
      0 4px 14px rgba(45, 145, 75, 0.10),
      0 0 0 rgba(45, 180, 85, 0);
  }

  50% {
    box-shadow:
      0 4px 16px rgba(45, 145, 75, 0.14),
      0 0 18px rgba(45, 180, 85, 0.28),
      0 0 0 5px rgba(45, 180, 85, 0.08);
  }
}

@keyframes check-pop {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.4);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes check-sparkle {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(47, 143, 78, 0.13),
      0 4px 10px rgba(47, 143, 78, 0.22);
  }

  50% {
    box-shadow:
      0 0 0 7px rgba(47, 143, 78, 0.08),
      0 0 18px rgba(47, 143, 78, 0.35),
      0 4px 12px rgba(47, 143, 78, 0.25);
  }
}

/* #endregion */

































    section.online_test{
        display: flex;
        flex-direction: column;
        min-height: 80vh;
        padding: 0;
    }


    section.online_test h1{
        margin:10px;
        font-size: 1.6rem;
    }


    section.online_test .lcf-step{
        margin: 10px;
    }
    


/* #region */


    section.online_test .lcf-item{
        border:none;
        margin: 5px;
    }
    
    section.online_test #next{

    }
    section.online_test #prev{

    }
    section.online_test #progress{
        margin-left: auto; color: #666; font-size: 0.8rem;
        float:right
    }





    section.online_test .chart_bw{
        width: 80%!important;
        height: 100px !important;
        margin: auto;
        margin-bottom: 20px;   
    }

    section.online_test .wrap_bw{
        position: relative;
        display: flex;
        flex-direction: row;
    }

    section.online_test .slider_bw{
        margin: 5px 10px;
        flex:1;
    }
/* #endregion */

/* #region BUTTON PLAY/PAUSE ------------------------------------------------------------------------*/
    .btn_playpause{
        position: absolute;
        background: #FFF;
        box-shadow: #FFF -1px -1px 8px 5px, 1px 1px 1px 3px, inset 1px 1px 1px;
        border-radius: 40px;
        min-width: 0;
        width: 30px;
        height: 30px;
        top: 0px;
        right: 0px;
        transition: opacity 1s;
    }
    .btn_playpause.clean{
        background:none;
        box-shadow:none;
    }
    .btn_playpause svg{
        margin:0;
        top:4px;
        left:5px;
        position:absolute;
        width: 22px;
        height:22px;
    }

    .lcs-main[type="tab"].vertical .lcs-slider .btn_playpause{
        top: 50%;
        transform: translate(5px, -15px);
    }



    

/* #endregion */



    section.online_test .noUi-tooltip{
        bottom: -45px;
        margin-left: 2px;
    }





    section.online_test .btn-arrow:after{
        content:'→';
        display:block;
    }




    /* Animation de la flèche */
    section.online_test .btn-arrow {
        display: inline-block;
        margin-top:-2px;
        animation: arrow-move 2s ease-in-out 3s infinite;
    }

    @keyframes arrow-move {
    0%,
    100% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(4px) scale(1.2);
    }
    }
    

/* #region   BUTTON START ------------------------------------------------------------------------*/
    section.online_test #start.show{
        padding:18px 40px;
        font-size: 1.3rem;
        
        position: relative;
        overflow: hidden;

        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top:12px;
        margin-bottom:25px;


        background: linear-gradient(
            180deg,
            #b70d16 0%,
            #990810 100%
        );

        color: #fff;
        font-size: 21px;
        font-weight: 700;
        letter-spacing: 0.03em;

        box-shadow:
            0 5px 0 #76060c,
            0 12px 22px rgba(145, 5, 14, 0.22);

        cursor: pointer;

        opacity: 0;
        transform: translateY(12px) scale(0.96);

        animation:
            button-appear 1.2s ease 2.2s forwards,
            button-breathe 2.6s ease-in-out 2.8s infinite;


    }


    @keyframes button-appear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    }
    /*Pulsation légère*/
    @keyframes button-breathe {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
        0 5px 0 #76060c,
        0 12px 24px rgba(145, 5, 14, 0.22);
    }

    50% {
        transform: scale(1.025);
        box-shadow:
        0 5px 0 #76060c,
        0 16px 32px rgba(190, 10, 20, 0.32);
    }
    }

    /**Reflet lumineux traversant le bouton */
    section.online_test #start::before {
        content: "";

        position: absolute;
        top: -35%;
        left: -45%;

        width: 28%;
        height: 170%;

        background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.42),
            transparent
        );

        transform: skewX(-22deg);

        animation: button-shine 3.4s ease-in-out 3.2s infinite;
        }

        @keyframes button-shine {
        0%,
        68% {
            left: -45%;
            opacity: 0;
        }

        72% {
            opacity: 1;
        }

        88% {
            left: 120%;
            opacity: 1;
        }

        100% {
            left: 120%;
            opacity: 0;
        }
        }

        

        /**/
        section.online_test #start:hover {
        animation-play-state: paused;
        transform: translateY(-2px) scale(1.025);
        }

        section.online_test #start:active {
        transform: translateY(3px) scale(0.99);

        box-shadow:
            0 2px 0 #76060c,
            0 7px 15px rgba(145, 5, 14, 0.2);
        }


        @media (prefers-reduced-motion: reduce) {
        section.online_test #start {
            opacity: 1;
            transform: none;
            animation: none;
        }

        section.online_test #start::before,
        section.online_test .btn-arrow {
            animation: none;
        }
        }
/* #endregion */





    section.online_test  .lcs-main[type]{
        background: linear-gradient(40deg, #fffCfC, #f9f9f9 ) ;
        box-shadow: 1px 2px 4px rgba(0,0,0,0.2), inset 1px 1px 2px rgba(255,255,255,0.5);
        transition: background 0.5s ease;
    }

    section.online_test  .lcs-main[type].full{
        background: linear-gradient(40deg, #e9e7e7, #f3f2f2 ) ;
    }

    section.online_test  .branch .lcs-main[type]{
        background:none;
    }
 

    section.online_test  .lcs-main[type="list"],
    section.online_test  .lcf-select-multi-select.lcs-main[type]{
        background: none;
        border: none ;
        outline:none;
        box-shadow: none;
        max-height: none;
    }





    section.online_test  .lcs-item{
        padding:10px 12px;
    }
    section.online_test  .lcf-item.small{
        padding: 5px 6px;
    }
    section.online_test  .lcf-item.small .lcs-item{
        padding: 3px 5px;
    }
    section.online_test  .lcf-item.small .lcf-label{
        font-weight: 400;
        font-size:0.95rem;
    }

    section.online_test .lcs-main.stepper .lcs-item{
        padding:0;
    }

    section.online_test .lcs-main.stepper .lcs-item:before,
    section.online_test .lcs-main.stepper .lcs-item:after {
        content: '';
        position: absolute;
        display: block;
        background-image: repeating-linear-gradient(to top, rgba(141, 141, 141, 0.05) 0 8px, transparent 9px 25px);
        background-position: left bottom;
        width: 2px;
        left: 50%;
        height: 100%;
        bottom: 24px;
        z-index: -2;
    }
    section.online_test .lcs-main.stepper .lcs-item:after{
        top : 24px;
        bottom: auto;

    }




    .lcs-main[type="tab"] .lcs-item::after{
        content:"";
        display:block;
        position: absolute;
        width:2px;
        background: linear-gradient(#FFF, #fef3e6);
        box-shadow: inset #888 1px 1px 1px;
        top: 5%;
        bottom: 5%;
        right: -1px;
        opacity:0.5;
        transition: opacity 1s ease;
    }
    .lcs-main[type="tab"].vertical .lcs-item::after{
        top: initial;
        bottom: -1px;
        right: 5%;
        left: 5%;
        width:auto;
        height:2px;
    }
    .lcs-main[type="tab"] .lcs-item:not(:has(~ .lcs-item))::after{
        display: none;
    }
    .lcs-main[type="tab"] .lcs-item.selected::after{
        opacity:0;
    }



    section.online_test .lcf-select-multi {
        margin-left: -10px;
        margin-right: -10px;
    }

    section.online_test .lcf-select-multi-rowlabel {
        padding-left: 15px;
        padding-bottom: 15px;
    }



/* #region   TAGS ------------------------------------------------------------------------*/
    section.online_test .tag{
        background-color: #fdf8f8; 
        color:#cc1516; 
        border-radius: 12px;  
        border:1px solid #fdeeec; 
        padding: 0.3rem 0.8rem; 
        font-weight: 600; 
        font-size: 0.95rem; 
        display:inline-block;     
        
        
        margin-left:auto;
        margin-right:0;
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
    }
    section.online_test .tag svg{
        width: 16px;
        height: 16px;
        margin-bottom: -2px;
        display: inline-block;
    }
    section.online_test .tag.green svg *{
        fill:#1a7f37;
    }
    section.online_test .tag.green{
        color: #1a7f37;
        border-color: #d3f0d8;
        box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
        background-color: #f0f9f3;
    }

    section.online_test .tag.center{ 
        margin-left:auto; margin-right:auto; 
        display:block; text-align:center; 
        margin-bottom: 5px;
        margin-top: -25px;
        border-radius: 0 0 12px 12px;
        padding: 0.4rem 1rem;
    }


/* #endregion */



    section.online_test .icon.tinnitus_feeling{
        width: 13px;
        height: 13px;
        margin-bottom: -4px;
    }

    section.online_test .lcf-item[name="situations"]  .lcf-label{
        display:flex; flex-direction:row;
    }
    section.online_test .lcf-item[name="situations"]  .lcf-label>div{
        flex: 0 0 170px;
    }    




/* #region   Pages d'explications  ------------------------------------------------------------------------*/

/*
    section.online_test .vp{ margin:0; padding: 0;}
    section.online_test .vp .lcf-item{ margin:0; padding: 12px 8px;}

    section.online_test .vp .wrap_title{
        margin-top: 40px;
    }
    section.online_test .vp .img_start{float:right; width: 130px; height: 130px; margin-top: -15px;}
    section.online_test .vp h1{ margin-bottom: 1.8rem; margin-left: 0; font-family: "Montserrat", sans-serif; letter-spacing: 2px; font-size: 8vw; transform: scaleY(1.05); line-height: 2rem; }
    section.online_test .vp h1>b{ color: #A33; font-weight: 600; font-size: 2.6rem; letter-spacing: 0.25rem;}
    section.online_test .vp p{ width: 85%;  font-size: 1rem; line-height: 1.45rem;  color: #666; margin-left: 0; margin-bottom:1.4rem; margin-top:5px;}
 
    section.online_test .vp ul>li>img{width: 45px; height: 45px; background-color: #fce9e4; border-radius: 60px; padding: 8px;  margin-right: 0.6rem; vertical-align: middle;}
*/

    section.online_test .vp{ margin:0; padding: 0;}
    section.online_test .vp .lcf-item{ margin:0; padding: 12px 8px;}

    section.online_test .vp .wrap_title{
        margin-top: 40px;
    }
    section.online_test .vp .img_start{    width: 130px;
    height: 130px;
    margin-top: 50px;
    right: 20px;
    position: absolute;}
    section.online_test .vp h1{width:calc(100% - 150px);     min-height: 80px;
    margin-top: 48px;
    vertical-align: middle; margin-bottom: 1.8rem; margin-left: 0; font-family: "Montserrat", sans-serif; letter-spacing: 2px; font-size: 8vw; transform: scaleY(1.05); line-height: 2rem; }
    section.online_test .vp h1>b{ color: #A33; font-weight: 600; font-size: 2.6rem; letter-spacing: 0.25rem;}
    section.online_test .vp p{ width: 85%;  font-size: 1rem; line-height: 1.45rem;  color: #666; margin-left: 0; margin-bottom:1.4rem; margin-top:5px;}
 
    section.online_test .vp ul>li>img{width: 45px; height: 45px; background-color: #fce9e4; border-radius: 60px; padding: 8px;  margin-right: 0.6rem; vertical-align: middle;}
    section.online_test .vp ul>li .check{ width: 50px; height: 50px; margin-left: 10px; margin-bottom: -5px; display:inline-block; vertical-align: middle;}
    section.online_test .vp ul>li .check *{ fill:#a77a7a7d; box-shadow:inset 2px 2px; }






/* #endregion */

/* #region  UL STEPS  ANIMATE -----------------------------------------------------------------------*/
section.online_test .vp ul.steps {
  --item-height: 60px;
  --gap: 18px;
  --outline-offset: -1px;

  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap);

  width: min(70%, 250px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

section.online_test .vp ul.steps::before {
  content: "";

  position: absolute;
  z-index: 0;
  opacity:0;

  top: calc(var(--outline-offset) * 2 );
  left: calc(var(--outline-offset) * 2 + 1px);

  width: calc(100% + var(--outline-offset) * 2);
  height: calc(var(--item-height) + var(--outline-offset) * 2);

  border: 2px solid rgba(184, 26, 32, 0.25);
  border-radius: 18px;
  /*background: rgba(255, 242, 240, 0.45);*/

  box-shadow:
    0 8px 22px rgba(120, 20, 20, 0.08),
    0 2px 10px 2px rgba(255, 10, 10, 0.3),
    0 0 0 5px rgba(255, 242, 240, 0.35);

  pointer-events: none;

  animation: fade-highlight 0.5s ease 1s forwards, move-highlight 6s ease-in-out 1.5s infinite;
}

.steps li {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  gap: 18px;

  height: var(--item-height);
  padding: 0 18px;

  border: 1px solid #f3ddda;
  border-radius: 15px;
  background: rgba(255, 249, 248, 0.92);

  font-size: 20px;
  font-weight: 600;
}




@property --halo-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

section.online_test .vp ul.steps::before {
  content: "";

  position: absolute;
  z-index: 0;

  top: calc(var(--outline-offset) * 2);
  left: calc(var(--outline-offset) * 2 + 1px);

  width: calc(100% + var(--outline-offset) * 2);
  height: calc(var(--item-height) + var(--outline-offset) * 2);

  border-radius: 18px;
  pointer-events: none;

  /*
    Halo tournant :
    une zone lumineuse rouge suivie d'une zone transparente.
  */
  background:
    conic-gradient(
      from var(--halo-angle),
      transparent 0deg,
      transparent 235deg,
      rgba(184, 26, 32, 0.08) 265deg,
      rgba(230, 35, 45, 0.95) 315deg,
      rgba(255, 120, 120, 0.35) 345deg,
      transparent 360deg
    );

  /*
    On masque le centre pour ne conserver
    qu'une bordure lumineuse.
  */
  padding: 2px;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask-composite: exclude;

  filter:
    drop-shadow(0 0 4px rgba(220, 20, 30, 0.45))
    drop-shadow(0 0 9px rgba(255, 70, 70, 0.25));

  opacity: 0;

  animation:
    highlight-appear 0.5s ease 1s forwards,
    halo-spin 1.4s linear 1s infinite,
    move-highlight 7s ease-in-out 1.5s infinite;
}


@keyframes halo-spin {
  from {
    --halo-angle: 0deg;
  }

  to {
    --halo-angle: 360deg;
  }
}

@keyframes highlight-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.85;
  }
}


@keyframes move-highlight {
  /* Premier élément */
  0%,
  23% {
    transform: translateY(0);
    opacity: 0.85;
  }

  /* Disparition avant déplacement */
  27% {
    transform: translateY(0);
    opacity: 0;
  }

  /* Déplacement invisible vers le deuxième */
  30% {
    transform: translateY(
      calc(var(--item-height) + var(--gap))
    );
    opacity: 0;
  }

  /* Deuxième élément */
  34%,
  56% {
    transform: translateY(
      calc(var(--item-height) + var(--gap))
    );
    opacity: 0.85;
  }

  /* Disparition avant le troisième */
  60% {
    transform: translateY(
      calc(var(--item-height) + var(--gap))
    );
    opacity: 0;
  }

  /* Déplacement invisible vers le troisième */
  64% {
    transform: translateY(
      calc((var(--item-height) + var(--gap)) * 2)
    );
    opacity: 0;
  }

  /* Troisième élément */
  68%,
  91% {
    transform: translateY(
      calc((var(--item-height) + var(--gap)) * 2)
    );
    opacity: 0.85;
  }

  /* Disparition avant le retour */
  95% {
    transform: translateY(
      calc((var(--item-height) + var(--gap)) * 2)
    );
    opacity: 0;
  }

  /* Retour invisible au premier */
  98% {
    transform: translateY(0);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
}




/*----------------------------------------------------*/
section.online_test .vp ul.steps li.is-complete {
  border-color: rgba(45, 145, 75, 0.45);
  background: rgba(240, 250, 243, 0.96);
  color: #23733b;
  box-shadow:
    0 4px 12px rgba(45, 145, 75, 0.08);
}




section.online_test .vp ul.steps li {
  overflow: hidden;
}

section.online_test .vp ul.steps li.is-just-complete {
  border-color: rgba(45, 145, 75, 0.65);
  background: rgba(240, 250, 243, 0.96);
  color: #23733b;

  animation:
    just-complete-green 0.65s ease forwards,
    just-complete-sparkle 1.6s ease-in-out 0.65s infinite;
}



section.online_test .vp ul.steps li {
  overflow: hidden;
}

section.online_test .vp ul.steps li.is-just-complete {
  border-color: rgba(45, 145, 75, 0.65);
  background: rgba(240, 250, 243, 0.96);
  color: #23733b;

  animation:
    just-complete-green 0.65s ease forwards,
    just-complete-sparkle 1.6s ease-in-out 0.65s infinite;
}


section.online_test .vp ul.steps li.is-just-complete::before {
  content: "";

  position: absolute;
  inset: -3px;
  z-index: -1;

  border-radius: 18px;
  padding: 3px;

  background:
    conic-gradient(
      from var(--halo-angle),
      transparent 0deg,
      transparent 220deg,
      rgba(65, 180, 95, 0.15) 255deg,
      rgba(52, 180, 85, 0.95) 305deg,
      rgba(170, 255, 190, 0.7) 335deg,
      transparent 360deg
    );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  filter:
    drop-shadow(0 0 5px rgba(45, 180, 85, 0.55))
    drop-shadow(0 0 12px rgba(45, 180, 85, 0.32));

  animation: halo-spin 1.1s linear infinite;
}





@property --halo-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes halo-spin {
  from {
    --halo-angle: 0deg;
  }

  to {
    --halo-angle: 360deg;
  }
}

@keyframes just-complete-green {
  0% {
    background: rgba(255, 249, 248, 0.92);
    border-color: #f3ddda;
    color: inherit;
    box-shadow: none;
  }

  45% {
    background: rgba(232, 250, 237, 0.98);
    border-color: rgba(45, 145, 75, 0.75);
    color: #23733b;
    box-shadow:
      0 0 0 5px rgba(45, 180, 85, 0.12),
      0 0 20px rgba(45, 180, 85, 0.22);
  }

  100% {
    background: rgba(240, 250, 243, 0.96);
    border-color: rgba(45, 145, 75, 0.65);
    color: #23733b;
    box-shadow:
      0 4px 14px rgba(45, 145, 75, 0.12);
  }
}

@keyframes just-complete-sparkle {
  0%,
  100% {
    box-shadow:
      0 4px 14px rgba(45, 145, 75, 0.10),
      0 0 0 rgba(45, 180, 85, 0);
  }

  50% {
    box-shadow:
      0 4px 16px rgba(45, 145, 75, 0.14),
      0 0 18px rgba(45, 180, 85, 0.28),
      0 0 0 5px rgba(45, 180, 85, 0.08);
  }
}

@keyframes check-pop {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.4);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes check-sparkle {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(47, 143, 78, 0.13),
      0 4px 10px rgba(47, 143, 78, 0.22);
  }

  50% {
    box-shadow:
      0 0 0 7px rgba(47, 143, 78, 0.08),
      0 0 18px rgba(47, 143, 78, 0.35),
      0 4px 12px rgba(47, 143, 78, 0.25);
  }
}

/* #endregion */






/* #region   SINCE ------------------------------------------------------------------------*/
    section.online_test .lcf-item[name="since"] .lcf-control{
        display:flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
     }
     section.online_test .lcf-item[name="since"] .lcf-control::after{
        content:'';
        flex:0;
        display: block;
     }
    section.online_test .lcf-item[name="since"] .tinnitus_since_number{
        padding: 5px;
     }
    section.online_test .lcf-item[name="since"] .lcf-control input[type="number"]{
        min-width: 0;
        flex:0 0 70px;
     }

     section.online_test .lcf-item[name="since"] .lcf-control .noUiSlider{
        flex:auto;
     }

     section.online_test .lcf-item[name="since"] .lcf-control .lcs-main{
        flex:1;
     }

     section.online_test .lcf-item[name="since"] .lcf-control .tinnitus_since_number{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap:0;
        flex: 0 0 170px;
        padding: 5px;
     }
     section.online_test .lcf-item[name="since"] .lcf-control .tinnitus_since_number .lcs-item{
        width:30px;
        margin:4px;
        padding:0;
     }
     section.online_test .lcf-item[name="since"] .lcf-control .tinnitus_since_number .label{
        padding: 5px;
        margin: 0;
     }
     section.online_test .lcf-item[name="since"] .lcf-control .tinnitus_since_number input{
        width: 20px;
        flex: 0 0 35px;
     }
     section.online_test .lcf-item[name="since"] .lcf-control .tinnitus_since_number .lcs-item:nth-child(11) {
        grid-column: 3 / -1;
        width: 70px;
        font-size: 1.5rem;
        display: flex;
        flex-direction: row;
    }


/* #endregion */

/* #region   SPECIALIST & TREATMENTS ------------------------------------------------------------------------*/

    section.online_test .lcf-item[name="specialist"] .lcs-item,
    section.online_test .lcf-item[name="treatments"] .lcs-item{
        padding: 4px 24px;
        flex:1;
    }
    section.online_test .lcf-item[name="specialist"] .lcs-main,
    section.online_test .lcf-item[name="treatments"] .lcs-main{
        flex-direction:row;
        flex-wrap:wrap;
        gap: 10px;
    }
/* #endregion */

/* #region   SITUATIONS ------------------------------------------------------------------------*/


    section.online_test .lcf-item[name="situations"] .lcf-select-multi{
        --label-col: 52%
    }
    section.online_test .lcf-item[name="situations"] .lcf-select-multi-scale-cell > i{
        transform:translate(1%, 0px);
    }

    .lcf-select-multi-row-inner{
        padding-right:0;
    }


/* #endregion */




/* #region   FEELINGS ------------------------------------------------------------------------*/

section.online_test .lcf-item[name="feelings"] .lcf-multi-follow-label {
    flex: 0;
    padding: 0;
    transform: rotate(-90deg);
    margin-left: -12px;
}


section.online_test .lcf-item[name="feelings"] .lcf-select-multi-follow .lcs-main{
    padding: 2px 2px;
}

section.online_test .lcf-item[name="feelings"] .lcf-select-multi-follow .lcs-main .lcs-item .label{
    text-align:center;
}

section.online_test .lcf-item[name="feelings"] .lcf-select-multi-follow{
    margin-right: -40px;
    padding-left:12px;
}

section.online_test .lcf-item[name="feelings"] .lcf-select-multi{
    --label-col: 40%;
    padding-right: 22px;
}

/* #endregion */    

section.online_test .lcf-item[name="consequences"] .lcf-multi-follow-label{flex:0;}


section.online_test .lcf-item[name="attitude"] .lcs-main{
    flex-direction: row;
    flex-wrap: wrap;
}
section.online_test .lcf-item[name="attitude"] .lcs-item{
    padding: 7px 15px;
    flex: 1;
}






/* #region AUDIO TEST : KIND OF ------------------------------------------------------------------------*/
    .lcf-item[name="kind"] .lcs-picker{
        overflow: visible;
        max-height: none;
    }
    .lcf-item[name="kind"] .lcs-item>.label{
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .lcf-item[name="kind"] .lcs-item>.label>span{
        margin-top:0;
        margin-left: 10px;
        font-size: 1.05rem;
    }
    .lcf-item[name="kind"] .lcs-item svg.icon{
        width: 35px;
        height: 35px;
    }
/* #endregion */




/*------------------------------------------------------------------------*/


















    section.online_test h1{
        margin:10px;
        font-size: 1.6rem;
    }


    







    section.online_test .lcf-item .noUiSlider{
        margin: 10px;
    }

    section.online_test .noUi-handle{
        border-radius: 40px;
        box-shadow: #FFF -1px -1px 8px 5px, 1px 1px 1px 3px, inset 1px 1px 1px;
        width: 25px;
        height: 25px;
        top: -10px;
        right: -13px;
        transition: opacity 1s;
    }
    section.online_test .noUi-handle.pin{
        border-radius: 40px 40px 0px 40px;
        transform: rotate(45deg);
    }
    section.online_test .noUi-handle:before{
        display: none;
    }
    section.online_test .noUi-handle.clean:after{display:none}
    section.online_test .noUi-handle:after{
        width: 10px;
        height: 10px;
        border-radius: 40px;
        box-shadow: inset #888 1px 1px 2px;
        background-color: #333;
        left: 6px;
        top: 6px;
    }

    section.online_test .noUi-target{
        height: 10px;
        background: none;
        border:none;
        box-shadow: none;
        position: relative;
    }

    section.online_test .noUi-target:before{
        content: "";
        position: absolute;
        top: 0px;
        right: -10px;
        left: -10px;
        height: 10px;
        background-color: #ddd;
        box-shadow: inset #888 1px 1px 2px;
        border-radius: 5px;
    }


    section.online_test .noUi-marker.noUi-marker-horizontal.noUi-marker-large{
        background-color: rgb(28, 22, 22);
        height:10px;
    }





    section.online_test .lcf-item{
        border:none;
    }
    
    section.online_test #next{

    }
    section.online_test #prev{

    }
    section.online_test #progress{
        margin-left: auto; color: #666; font-size: 0.8rem;
        float:right
    }





    section.online_test .chart_bw{
        width: 80%!important;
        height: 100px !important;
        margin: auto;
        margin-bottom: 20px;   
    }

    section.online_test .wrap_bw{
        position: relative;
        display: flex;
        flex-direction: row;
    }

    section.online_test .slider_tbw{
        margin: 5px 10px;
        flex:1;
    }

    


    section.online_test .lcf-item[name="origin"] .lcs-main{
        padding: 0;
        margin-left: -2px;
        max-height: none;
    }

    section.online_test .lcf-item[name="origin"] .lcs-slider{
        display:none;
    }

    section.online_test .lcf-item[name="origin"] .lcs-item .head .description {
        display:block;
    }

    section.online_test .lcf-item[name="origin"] .lcs-item .head{
        padding: 7px 0px;
    }

    section.online_test .lcf-item[name="origin"] .nesting-page .lcs-item.open > .head > .branch-arrow{
        margin-left:2px;
    }

    section.online_test .lcf-item[name="origin"] .lcs-main>.lcs-item:not(.isBranch) {
        padding-left: 40px;
        margin-left: 10px;
    }

    section.online_test .lcf-item[name="origin"]>.lcs-main>.lcs-item:not(.isBranch) {
        padding-left: 20px;
        margin-left: 10px;
    }

    section.online_test .lcf-item[name="origin"] .lcs-item.isBranch{
        padding: 8px 0px;
    }

    section.online_test .lcf-item[name="origin"] .lcs-item.isOther.selected input,
    section.online_test .lcf-item[name="origin"] .lcs-item.isOther:not(.selected) .label{
        display:inline;
    }

    section.online_test .lcf-item[name="origin"] .lcs-item.isOther.selected .label,
    section.online_test .lcf-item[name="origin"] .lcs-item.isOther:not(.selected) input{
        display:none;
    }

    section.online_test .lcf-item[name="consequences"] .lcf-select-multi{
        --label-col: 44%;
        padding-right:15px;
    }

/* Étapes commencées : variables --step-progress-* héritées du thème.
   color / bg / border : palette du badge, de la carte et du bouton.
   size / width / linecap / linejoin / path : apparence du SVG.
   duration : durée du dessin si li.inProgress.animate.
   --step-resume-radius : arrondi du bouton de reprise.
*/
:where(body[data-theme='dark']) {
    --step-progress-color: #f4cb83;
    --step-progress-bg: #3b3020;
    --step-progress-border: #94733d;
}
@media (prefers-color-scheme: dark) {
    :where(body[data-theme='auto']) {
        --step-progress-color: #f4cb83;
        --step-progress-bg: #3b3020;
        --step-progress-border: #94733d;
    }
}
section.online_test ul.steps > li > .step-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 2px;
}
section.online_test ul.steps > li .resume {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 26px;
    margin: 0;
    padding: 2px 9px;
    border: 1px solid var(--step-progress-border, #d7b678);
    border-radius: var(--step-resume-radius, 7px);
    background: var(--step-progress-bg, #fff6e5);
    color: var(--step-progress-color, #805413);
    box-shadow: none;
    font-family: inherit;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}
section.online_test ul.steps > li.inProgress {
    overflow: visible;
    border-color: var(--step-progress-border, #d7b678);
    background: var(--step-progress-bg, #fff6e5);
    color: var(--step-progress-color, #805413);
}
section.online_test ul.steps > li.inProgress .resume { display: inline-flex; }
section.online_test ul.steps > li .resume:focus-visible {
    outline: 2px solid var(--step-progress-color, #805413);
    outline-offset: 3px;
}
@media (hover: hover) {
    section.online_test ul.steps > li .resume:hover {
        background: var(--step-progress-color, #805413);
        color: var(--step-progress-bg, #fff6e5);
    }
}
section.online_test ul.steps > li > .step-progress {
    display: none;
    position: absolute;
    z-index: 2;
    top: -12px;
    right: -12px;
    width: var(--step-progress-size, 32px);
    height: var(--step-progress-size, 32px);
    overflow: visible;
    color: var(--step-progress-color, #805413);
    pointer-events: none;
}
section.online_test ul.steps > li.inProgress > .step-progress { display: block; }
/* En cas de classes cumulées, l'état en cours est prioritaire. */
section.online_test ul.steps > li.inProgress.check > .step-check { display: none; }
section.online_test .step-progress-disc {
    fill: var(--step-progress-bg, #fff6e5);
    stroke: var(--step-progress-border, #d7b678);
    stroke-width: 1.5;
}
section.online_test .step-progress-mark {
    d: var(--step-progress-path, path("M16 8 L16 16 L22 19"));
    fill: none;
    stroke: currentColor;
    stroke-width: var(--step-progress-width, 2.5);
    stroke-linecap: var(--step-progress-linecap, round);
    stroke-linejoin: var(--step-progress-linejoin, round);
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}
section.online_test ul.steps > li.inProgress.animate > .step-progress {
    animation: step-check-appear 250ms ease-out both;
}
section.online_test ul.steps > li.inProgress.animate .step-progress-mark {
    animation: step-progress-draw var(--step-progress-duration, 600ms) ease-out 150ms both;
}
@keyframes step-progress-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
    section.online_test ul.steps > li.inProgress.animate > .step-progress,
    section.online_test ul.steps > li.inProgress.animate .step-progress-mark { animation: none; }
    section.online_test ul.steps > li .resume { transition: none; }
}

/* Validation des étapes : variables héritées, surchargeables sur body[data-theme].
   --step-check-color, --step-check-bg, --step-check-border : couleurs
   --step-check-size, --step-check-width, --step-check-linecap : style
   --step-check-duration : durée du dessin
   --step-check-path : path("M9 16 L14 21 L23 11")
   --step-check-path-start : path("M9 16 L14 16 L23 16")
   Pour le morphing, conserver les mêmes commandes (ici M L L) dans les deux paths.
   L'attribut d du SVG reste le repli si la propriété CSS d n'est pas disponible.
   Exemple : body[data-theme='light'] { --step-check-color: #276b48; }
*/
:where(body[data-theme='dark']) {
    --step-check-color: #9be0b7;
    --step-check-bg: #203d30;
    --step-check-border: #52876a;
}
@media (prefers-color-scheme: dark) {
    :where(body[data-theme='auto']) {
        --step-check-color: #9be0b7;
        --step-check-bg: #203d30;
        --step-check-border: #52876a;
    }
}
section.online_test ul.steps > li > .step-check {
    display: none;
    position: absolute;
    z-index: 2;
    top: -12px;
    right: -12px;
    width: var(--step-check-size, 32px);
    height: var(--step-check-size, 32px);
    overflow: visible;
    color: var(--step-check-color, #237345);
    pointer-events: none;
}
section.online_test ul.steps > li.check { overflow: visible; }
section.online_test ul.steps > li.check:not(.inProgress) {
    border-color: var(--step-check-border, #9dceb0);
    background: var(--step-check-bg, #edf8f0);
    color: var(--step-check-color, #237345);
}
section.online_test ul.steps > li.check:not(.inProgress) > img {
    filter: hue-rotate(155deg);
    background: #ec00fd1c;
}
section.online_test ul.steps > li.inProgress > img {
    filter: hue-rotate(50deg);
    background: #af13130d;
}
section.online_test ul.steps > li.check > .step-check { display: block; }
section.online_test .step-check-disc {
    fill: var(--step-check-bg, #edf8f0);
    stroke: var(--step-check-border, #9dceb0);
    stroke-width: 1.5;
}
section.online_test .step-check-mark {
    d: var(--step-check-path, path("M9 16 L14 21 L23 11"));
    fill: none;
    stroke: currentColor;
    stroke-width: var(--step-check-width, 3);
    stroke-linecap: var(--step-check-linecap, round);
    stroke-linejoin: var(--step-check-linejoin, round);
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: d var(--step-check-duration, 650ms) ease, stroke 200ms ease;
}
section.online_test ul.steps > li.check.animate .step-check-disc {
    transform-box: fill-box;
    transform-origin: center;
    animation: step-check-appear 250ms ease-out both;
}
section.online_test ul.steps > li.check.animate .step-check-mark {
    animation: step-check-draw var(--step-check-duration, 650ms) ease-out 150ms both;
}
@keyframes step-check-appear {
    from { opacity: 0; transform: scale(.65); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes step-check-draw {
    from {
        stroke-dashoffset: 1;
        d: var(--step-check-path-start, path("M9 16 L14 16 L23 16"));
    }
    to {
        stroke-dashoffset: 0;
        d: var(--step-check-path, path("M9 16 L14 21 L23 11"));
    }
}
@media (prefers-reduced-motion: reduce) {
    section.online_test ul.steps > li.check.animate .step-check-disc,
    section.online_test ul.steps > li.check.animate .step-check-mark {
        animation: none;
    }
    section.online_test .step-check-mark { transition: none; }
}





/* Halo mobile : la couleur suit l'état du li visité.
   Variables de thème : --step-halo-color (défaut), --step-progress-halo-color,
   --step-check-halo-color. Par défaut, les états reprennent la couleur du SVG.
   Les variables numérotées sont internes à la séquence des trois étapes.
*/
section.online_test ul.steps {
    --step-halo-1: var(--step-halo-color, #e6232d);
    --step-halo-2: var(--step-halo-color, #e6232d);
    --step-halo-3: var(--step-halo-color, #e6232d);
}
section.online_test ul.steps:has(> li:nth-child(1).check) {
    --step-halo-1: var(--step-check-halo-color, var(--step-check-color, #237345));
}
section.online_test ul.steps:has(> li:nth-child(2).check) {
    --step-halo-2: var(--step-check-halo-color, var(--step-check-color, #237345));
}
section.online_test ul.steps:has(> li:nth-child(3).check) {
    --step-halo-3: var(--step-check-halo-color, var(--step-check-color, #237345));
}
/* Même priorité que pour le badge si les deux classes sont présentes. */
section.online_test ul.steps:has(> li:nth-child(1).inProgress) {
    --step-halo-1: var(--step-progress-halo-color, var(--step-progress-color, #c28a22));
}
section.online_test ul.steps:has(> li:nth-child(2).inProgress) {
    --step-halo-2: var(--step-progress-halo-color, var(--step-progress-color, #c28a22));
}
section.online_test ul.steps:has(> li:nth-child(3).inProgress) {
    --step-halo-3: var(--step-progress-halo-color, var(--step-progress-color, #c28a22));
}
section.online_test ul.steps::before,
section.online_test .vp ul.steps::before {
    color: var(--step-halo-1);
    border-color: color-mix(in srgb, currentColor 25%, transparent);
    background: conic-gradient(
        from var(--halo-angle),
        transparent 0deg,
        transparent 235deg,
        color-mix(in srgb, currentColor 8%, transparent) 265deg,
        color-mix(in srgb, currentColor 95%, transparent) 315deg,
        color-mix(in srgb, currentColor 35%, transparent) 345deg,
        transparent 360deg
    );
    box-shadow:
        0 8px 22px color-mix(in srgb, currentColor 8%, transparent),
        0 2px 10px 2px color-mix(in srgb, currentColor 30%, transparent),
        0 0 0 5px color-mix(in srgb, currentColor 10%, transparent);
    filter:
        drop-shadow(0 0 4px color-mix(in srgb, currentColor 45%, transparent))
        drop-shadow(0 0 9px color-mix(in srgb, currentColor 25%, transparent));
    animation:
        halo-spin 1.4s linear 1s infinite,
        online-step-halo 7s ease-in-out 1.5s infinite backwards;
}
@keyframes online-step-halo {
    0%, 23% { transform: translateY(0); opacity: .85; color: var(--step-halo-1); }
    27% { transform: translateY(0); opacity: 0; color: var(--step-halo-1); }
    30% { transform: translateY(calc(var(--item-height) + var(--gap))); opacity: 0; color: var(--step-halo-2); }
    34%, 56% { transform: translateY(calc(var(--item-height) + var(--gap))); opacity: .85; color: var(--step-halo-2); }
    60% { transform: translateY(calc(var(--item-height) + var(--gap))); opacity: 0; color: var(--step-halo-2); }
    64% { transform: translateY(calc((var(--item-height) + var(--gap)) * 2)); opacity: 0; color: var(--step-halo-3); }
    68%, 91% { transform: translateY(calc((var(--item-height) + var(--gap)) * 2)); opacity: .85; color: var(--step-halo-3); }
    95% { transform: translateY(calc((var(--item-height) + var(--gap)) * 2)); opacity: 0; color: var(--step-halo-3); }
    98% { transform: translateY(0); opacity: 0; color: var(--step-halo-1); }
    100% { transform: translateY(0); opacity: .85; color: var(--step-halo-1); }
}
@media (prefers-reduced-motion: reduce) {
    section.online_test ul.steps::before,
    section.online_test .vp ul.steps::before { animation: none; opacity: 0; }
}
