/* Y Care Connect - Etape 5 : animations discretes, fluides et accessibles */
body.ycare-public-motion-step5{
  --yc-motion-fast:160ms;
  --yc-motion-normal:260ms;
  --yc-motion-slow:520ms;
  --yc-motion-ease:cubic-bezier(.22,.61,.36,1);
}

/* Boutons et controles */
body.ycare-public-motion-step5 :is(a,button,[role="button"],input[type="submit"],.button,.yc-profile-btn,.yc-book-btn,.yc-message-btn,.yc-related-card__button){
  transition:transform var(--yc-motion-fast) var(--yc-motion-ease),box-shadow var(--yc-motion-normal) var(--yc-motion-ease),background-color var(--yc-motion-fast) ease,border-color var(--yc-motion-fast) ease,opacity var(--yc-motion-fast) ease!important;
  -webkit-tap-highlight-color:transparent;
}
@media (hover:hover) and (pointer:fine){
  body.ycare-public-motion-step5 :is(.yc-profile-btn,.yc-book-btn,.yc-message-btn,.yc-related-card__button,.button):hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(59,73,82,.13);
  }
  body.ycare-public-motion-step5 :is(.yc-profile-btn,.yc-book-btn,.yc-message-btn,.yc-related-card__button,.button):active{
    transform:translateY(0) scale(.985);
  }
}
body.ycare-public-motion-step5 :is(.yc-profile-btn,.yc-book-btn,.yc-message-btn,.yc-related-card__button,.button):focus-visible{
  outline:3px solid rgba(100,145,148,.35)!important;
  outline-offset:3px!important;
}

/* Cartes */
body.ycare-public-motion-step5 :is(.yc-profile-card,.yc-price-card,.yc-review-card,.yc-benefit-card,.yc-step-card,.yc-related-card,.yc-availability-card,.yc-specialties-card,.yc-about-card){
  transition:transform var(--yc-motion-normal) var(--yc-motion-ease),box-shadow var(--yc-motion-normal) var(--yc-motion-ease),border-color var(--yc-motion-normal) ease!important;
  will-change:transform;
}
@media (hover:hover) and (pointer:fine){
  body.ycare-public-motion-step5 :is(.yc-price-card,.yc-review-card,.yc-benefit-card,.yc-step-card,.yc-related-card):hover{
    transform:translateY(-4px);
    box-shadow:0 16px 34px rgba(59,73,82,.10);
  }
}

/* Photo principale et photo A propos */
body.ycare-public-motion-step5 :is(.yc-profile-photo img,.yc-about-photo img,.yc-related-card img){
  transition:transform var(--yc-motion-slow) var(--yc-motion-ease),filter var(--yc-motion-normal) ease!important;
}
@media (hover:hover) and (pointer:fine){
  body.ycare-public-motion-step5 :is(.yc-profile-photo,.yc-about-photo,.yc-related-card__image){overflow:hidden}
  body.ycare-public-motion-step5 :is(.yc-profile-photo img,.yc-about-photo img,.yc-related-card:hover img){transform:scale(1.025)}
}

/* Statut : halo tres discret uniquement quand present */
body.ycare-public-motion-step5 :is(.yc-status-dot,.ycare-status-dot,.status-dot)[data-status="online"],
body.ycare-public-motion-step5 :is(.yc-status-dot,.ycare-status-dot,.status-dot).online,
body.ycare-public-motion-step5 :is(.yc-status-dot,.ycare-status-dot,.status-dot).aanwezig{
  animation:yc-status-pulse 2.6s ease-in-out infinite;
}
@keyframes yc-status-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(46,143,94,.18)}
  50%{box-shadow:0 0 0 6px rgba(46,143,94,0)}
}

/* Apparition au scroll. Sans JS le contenu reste visible. */
html.yc-motion-js body.ycare-public-motion-step5 .yc-reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity var(--yc-motion-slow) var(--yc-motion-ease),transform var(--yc-motion-slow) var(--yc-motion-ease)!important;
}
html.yc-motion-js body.ycare-public-motion-step5 .yc-reveal.yc-reveal--visible{
  opacity:1;
  transform:none;
}
html.yc-motion-js body.ycare-public-motion-step5 .yc-reveal[data-yc-delay="1"]{transition-delay:70ms!important}
html.yc-motion-js body.ycare-public-motion-step5 .yc-reveal[data-yc-delay="2"]{transition-delay:140ms!important}
html.yc-motion-js body.ycare-public-motion-step5 .yc-reveal[data-yc-delay="3"]{transition-delay:210ms!important}

/* Carrousels : mouvement plus naturel */
body.ycare-public-motion-step5 :is(.yc-related-track,.yc-reviews-track,.yc-review-track){scroll-behavior:smooth}
body.ycare-public-motion-step5 :is(.yc-carousel-arrow,.yc-related-arrow,.yc-review-arrow){
  transition:transform var(--yc-motion-fast) var(--yc-motion-ease),box-shadow var(--yc-motion-normal) ease,opacity var(--yc-motion-fast) ease!important;
}
@media (hover:hover) and (pointer:fine){
  body.ycare-public-motion-step5 :is(.yc-carousel-arrow,.yc-related-arrow,.yc-review-arrow):hover{transform:scale(1.07);box-shadow:0 8px 18px rgba(59,73,82,.13)}
}

/* Accessibilite et economie d'energie */
@media (prefers-reduced-motion:reduce){
  body.ycare-public-motion-step5 *,body.ycare-public-motion-step5 *::before,body.ycare-public-motion-step5 *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    transition-delay:0ms!important;
  }
  html.yc-motion-js body.ycare-public-motion-step5 .yc-reveal{opacity:1!important;transform:none!important}
}
@media (max-width:767px){
  body.ycare-public-motion-step5 :is(.yc-price-card,.yc-review-card,.yc-benefit-card,.yc-step-card,.yc-related-card):active{transform:scale(.992)}
}
