/* Scenes animees des pages accueil, a-propos et contact (27/10/2026).
   Elles montrent le mecanisme : l'outil qui travaille seul, le probleme qui se joue,
   les etapes qui s'enchainent. Le texte ne change jamais.
   Etats de depart uniquement sous html.pa-anim, pose par pa-anime.js lui-meme sauf si
   « reduire les animations » est demande : sans JavaScript, tout est a l'etat final.
   Le texte n'est jamais masque, au plus attenue. */

/* Elements statiques (visibles aussi sans JavaScript) */
.pa-hero__card-icon { position: relative; }
.pa-hero__card-icon::after {
  content: ''; position: absolute; right: -5px; bottom: -5px; width: 15px; height: 15px; border-radius: 50%;
  background: #0084FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/9px no-repeat;
  box-shadow: 0 0 0 2px #152231;
}
.pa-approach__card { position: relative; }
.pa-approach__card:not(:last-child)::after {
  content: ''; position: absolute; top: 50%; right: -17px; width: 10px; height: 10px; margin-top: -5px;
  border-top: 3px solid #0084FF; border-right: 3px solid #0084FF;
  -webkit-transform: rotate(45deg); transform: rotate(45deg);
}
@media (max-width: 960px) {
  .pa-approach__card:not(:last-child)::after {
    top: auto; right: auto; left: 50%; bottom: -17px; margin: 0 0 0 -5px;
    -webkit-transform: rotate(135deg); transform: rotate(135deg);
  }
}
.pa-process__steps::after {
  content: ''; position: absolute; top: 28px; left: calc(12.5% + 28px); right: calc(12.5% + 28px);
  height: 2px; background: #0084FF; z-index: 0;
  -webkit-transform-origin: 0 50%; transform-origin: 0 50%;
}
@media (max-width: 960px) { .pa-process__steps::after { display: none; } }
.pa-timeline__line { background: #0084FF; }

/* Le temps de poser les etats de depart : aucune transition (pas de fondu a l'envers) */
.pa-depart *, .pa-depart *::before, .pa-depart *::after { -webkit-transition: none !important; transition: none !important; }

/* Etats de depart et transitions (JavaScript actif, mouvement accepte) */
.pa-anim .pa-hero__card-item { opacity: .35; -webkit-transition: opacity .6s ease; transition: opacity .6s ease; }
.pa-anim .pa-hero__card-icon::after { -webkit-transform: scale(0); transform: scale(0); -webkit-transition: -webkit-transform .45s cubic-bezier(.34,1.56,.64,1); transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.pa-anim .pa-hero__card-item.pa-fait { opacity: 1; }
.pa-anim .pa-fait .pa-hero__card-icon::after { -webkit-transform: none; transform: none; }

.pa-anim .pa-problem__icon svg > * { -webkit-transform-box: view-box; transform-box: view-box; -webkit-transform-origin: 12px 12px; transform-origin: 12px 12px; }
.pa-anim .pa-joue.pa-pb1 .pa-problem__icon svg > :not(:first-child) { -webkit-animation: pa-sort 1.4s ease-in-out; animation: pa-sort 1.4s ease-in-out; }
.pa-anim .pa-joue.pa-pb2 .pa-problem__icon svg { -webkit-animation: pa-sonne .9s ease-in-out; animation: pa-sonne .9s ease-in-out; }
.pa-anim .pa-joue.pa-pb3 .pa-problem__icon svg > polyline { -webkit-animation: pa-tourne 1.6s ease-in-out; animation: pa-tourne 1.6s ease-in-out; }
@-webkit-keyframes pa-sort { 0%,100% { -webkit-transform: none; opacity: 1; } 45% { -webkit-transform: translateX(7px); opacity: 0; } 55% { -webkit-transform: translateX(-4px); opacity: 0; } }
@keyframes pa-sort { 0%,100% { transform: none; opacity: 1; } 45% { transform: translateX(7px); opacity: 0; } 55% { transform: translateX(-4px); opacity: 0; } }
@-webkit-keyframes pa-sonne { 0%,100% { -webkit-transform: none; } 15%,45%,75% { -webkit-transform: rotate(-12deg); } 30%,60% { -webkit-transform: rotate(12deg); } }
@keyframes pa-sonne { 0%,100% { transform: none; } 15%,45%,75% { transform: rotate(-12deg); } 30%,60% { transform: rotate(12deg); } }
@-webkit-keyframes pa-tourne { from { -webkit-transform: rotate(-360deg); } to { -webkit-transform: none; } }
@keyframes pa-tourne { from { transform: rotate(-360deg); } to { transform: none; } }

.pa-anim .pa-demo-card__live::before { -webkit-animation: pa-vivant 2.4s ease-out infinite; animation: pa-vivant 2.4s ease-out infinite; }
@-webkit-keyframes pa-vivant { 0% { box-shadow: 0 0 0 0 rgba(30,169,122,.55); } 70%,100% { box-shadow: 0 0 0 7px rgba(30,169,122,0); } }
@keyframes pa-vivant { 0% { box-shadow: 0 0 0 0 rgba(30,169,122,.55); } 70%,100% { box-shadow: 0 0 0 7px rgba(30,169,122,0); } }

.pa-anim .pa-process__steps::after { -webkit-transform: scaleX(var(--pa-p, 0)); transform: scaleX(var(--pa-p, 0)); }
.pa-anim .pa-process__num, .pa-anim .pa-timeline__dot {
  -webkit-transition: background-color .45s ease, color .45s ease, box-shadow .45s ease;
  transition: background-color .45s ease, color .45s ease, box-shadow .45s ease;
}
.pa-anim .pa-process__num:not(.pa-fait), .pa-anim .pa-timeline__dot:not(.pa-fait) {
  background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--line);
}
.pa-anim .pa-timeline__line {
  -webkit-transform: scaleY(0); transform: scaleY(0); -webkit-transform-origin: 50% 0; transform-origin: 50% 0;
  -webkit-transition: -webkit-transform .9s ease .3s; transition: transform .9s ease .3s;
}
.pa-anim .pa-timeline__line.pa-fait { -webkit-transform: none; transform: none; }

.pa-anim .pa-approach__card:not(:last-child)::after { opacity: 0; -webkit-transition: opacity .5s ease; transition: opacity .5s ease; }
.pa-anim .pa-approach__card.pa-fait::after { opacity: 1; }

.pa-anim .pa-attente__item { opacity: .45; -webkit-transition: opacity .5s ease; transition: opacity .5s ease; }
.pa-anim .pa-attente__check polyline { stroke-dasharray: 24; stroke-dashoffset: 24; -webkit-transition: stroke-dashoffset .5s ease .15s; transition: stroke-dashoffset .5s ease .15s; }
.pa-anim .pa-attente__item.pa-fait { opacity: 1; }
.pa-anim .pa-attente__item.pa-fait polyline { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .pa-anim * { -webkit-animation: none !important; animation: none !important; -webkit-transition: none !important; transition: none !important; }
}
