/* REP SOLUTIONS V29 — effets uniquement sur l'accueil, sans changement des grilles.
   Animations répétées mais respectueuses de prefers-reduced-motion. */

/* Animation du texte : trois segments successifs, continuellement, sans masquer
   la phrase ni en déplacer les lignes. Chaque segment est lisible en permanence. */
body.rs2-site.home .rs2-hero-copy > p.rs29-copy {
  display:block !important;
}
body.rs2-site.home .rs29-copy .rs29-segment {
  display:inline;
  border-radius:2px;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}
@media (prefers-reduced-motion:no-preference) {
  body.rs2-site.home .rs29-copy.rs29-animate .rs29-segment {
    /* Trait surligné de gauche à droite, relevé de couleur et retour au gris. */
    background-image:linear-gradient(90deg,rgba(188,231,197,.60),rgba(188,231,197,.29) 83%,rgba(246,167,97,.22));
    background-repeat:no-repeat;
    background-position:0 95%;
    background-size:0% 58%;
    animation:rs29-phrase-cycle 9s linear infinite;
    animation-delay:calc(var(--rs29-order,0) * 3s);
  }
  @keyframes rs29-phrase-cycle {
    0%,2% {background-size:0% 58%; color:#627a71;}
    7% {background-size:0% 58%; color:#0e5b45;}
    21%,27% {background-size:100% 58%; color:#004735;}
    32% {background-size:100% 58%; color:#365e52;}
    37%,100% {background-size:0% 58%;color:#627a71;}
  }
}

/* Mobile : cartes relevées lorsqu'elles entrent à l'écran, puis réaction visible
   au toucher. La transformation ne modifie pas l'ordre ni les dimensions. */
@media (max-width:700px) {
  body.rs2-site.home a.rs14-card.rs29-interactive {
    border:1px solid rgba(0,85,57,.13);
    box-shadow:0 3px 12px rgba(0,69,43,.055);
    transition:transform .25s cubic-bezier(.23,.8,.25,1),
               box-shadow .25s ease, border-color .25s ease, filter .25s ease;
    transform-origin:center center;
    touch-action:manipulation;
  }
  body.rs2-site.home a.rs14-card.rs29-interactive.rs29-in-view {
    border-color:rgba(0,100,60,.22);
    box-shadow:0 9px 24px rgba(0,69,43,.115);
  }
  body.rs2-site.home a.rs14-card.rs29-interactive.rs29-touched,
  body.rs2-site.home a.rs14-card.rs29-interactive:active {
    transform:translateY(-4px) scale(.989);
    box-shadow:0 17px 30px rgba(0,65,44,.20);
    border-color:#9accad;
    filter:saturate(1.06);
  }
  body.rs2-site.home a.rs14-card.rs29-interactive.rs29-touched img {
    transform:scale(1.018);
  }

  /* Barre fixe : mêmes 54px, largeur bord-à-bord et coins supérieurs 22px.
     Couche graphique plus visible, dans la même DA sans ajout d'icône/texte. */
  body.rs2-site.home .rs15-mobile-fixed-cta {
    isolation:isolate;
    overflow:hidden;
    background:
      radial-gradient(ellipse 55% 160% at 83% -55%,rgba(141,223,167,.48),transparent 77%),
      linear-gradient(116deg,#003f30 3%,#00654c 53%,#004735 100%);
    box-shadow:0 -6px 24px rgba(0,60,39,.18),
               inset 0 2px 0 rgba(206,246,216,.32),
               inset 0 -2px 0 rgba(0,36,26,.20);
    border-radius:22px 22px 0 0;
    text-shadow:0 1px 3px rgba(0,30,18,.18);
  }
  body.rs2-site.home .rs15-mobile-fixed-cta::before {
    content:"";
    position:absolute;
    z-index:-1;
    pointer-events:none;
    inset:-25% auto -50% -52%;
    width:43%;
    background:linear-gradient(105deg,
      transparent 0%,rgba(204,255,205,.03) 25%,
      rgba(198,255,203,.27) 47%,rgba(198,255,203,.07) 64%,transparent 100%);
    transform:translateX(0) skewX(-17deg);
  }
  body.rs2-site.home .rs15-mobile-fixed-cta::after {
    content:"";
    position:absolute;
    z-index:-1;
    pointer-events:none;
    inset:0;
    border-radius:inherit;
    background:linear-gradient(120deg,transparent 0%,transparent 68%,rgba(109,213,145,.14) 74%,rgba(109,213,145,.01) 100%);
  }
  @media (prefers-reduced-motion:no-preference) {
    body.rs2-site.home .rs15-mobile-fixed-cta::before {
      animation:rs29-cta-sheen 6.2s ease-in-out infinite;
    }
    @keyframes rs29-cta-sheen {
      0%,20% {transform:translateX(0) skewX(-17deg);opacity:0;}
      23% {opacity:1;}
      52% {transform:translateX(365%) skewX(-17deg);opacity:.9;}
      57%,100% {transform:translateX(365%) skewX(-17deg);opacity:0;}
    }
  }
}

@media (prefers-reduced-motion:reduce) {
  body.rs2-site.home .rs29-segment {animation:none!important;background:none!important;color:inherit!important;opacity:1!important;filter:none!important;}
  body.rs2-site.home a.rs14-card.rs29-interactive,
  body.rs2-site.home a.rs14-card.rs29-interactive img {
    animation:none!important;transition:none!important;transform:none!important;
  }
  body.rs2-site.home .rs15-mobile-fixed-cta::before {animation:none!important;opacity:0!important;}
}
