/* REP SOLUTIONS V32 — retouches exclusivement sur l'accueil.
   Mobile: titre > photo > paragraphe karaoké, blocs blancs sans encadrement.
   Desktop: composition et couleurs inchangées. */
@media (max-width:700px) {
  /* Les trois enfants du conteneur de copie deviennent de simples éléments
     du flux flex. Aucun déplacement de noeud : le JS karaoké conserve son sélecteur. */
  body.rs2-site.home .rs2-editorial-hero {
    display:flex;flex-direction:column;align-items:stretch;
    gap:0!important;
  }
  body.rs2-site.home .rs2-editorial-hero > .rs2-hero-copy {display:contents;}
  body.rs2-site.home .rs2-editorial-hero .rs2-eyebrow {
    order:0;margin:0 0 15px!important;
  }
  body.rs2-site.home .rs2-editorial-hero h1#rs2-title {
    order:1;margin:0 0 23px!important;
  }
  body.rs2-site.home .rs2-editorial-hero > .rs2-hero-photo {
    order:2;margin:0 0 21px!important;
  }
  body.rs2-site.home .rs2-editorial-hero .rs2-hero-copy > p.rs28-animated-description {
    order:3;display:block!important;width:100%;max-width:100%;
    margin:0!important;line-height:1.58;
  }
  /* Les sections se lisent directement sur fond blanc, sans boîte teintée,
     trait de contour ou ombre. Images et textes conservent leurs positions. */
  body.rs2-site.home .rs14-mobile-services a.rs14-card,
  body.rs2-site.home .rs14-mobile-services a.rs14-card.rs29-interactive,
  body.rs2-site.home .rs14-mobile-services a.rs14-card.rs29-interactive.rs29-in-view,
  body.rs2-site.home .rs14-mobile-services a.rs14-card:is(:hover,:active,.rs29-touched) {
    background:transparent!important;
    background-color:transparent!important;
    border:0!important;
    border-color:transparent!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body.rs2-site.home .rs14-mobile-services a.rs14-card {overflow:visible;}
  /* Garder les coins doux de la photographie de conseil uniquement. */
  body.rs2-site.home .rs14-mobile-services .rs14-card-conseil > img {border-radius:19px;}
  /* Retour tactile minimal, sans recréer un cadre/une couleur de fond. */
  body.rs2-site.home .rs14-mobile-services a.rs14-card:active,
  body.rs2-site.home .rs14-mobile-services a.rs14-card.rs29-touched {
    transform:scale(.99);
  }
  body.rs2-site.home .rs14-mobile-services {gap:21px;}
  body.rs2-site.home .rs14-mobile-services .rs31-open-cue {
    box-shadow:0 2px 7px rgba(0,65,44,.09);
  }
}
/* Logo plus vivant : double souffle lent, mince lueur et pixels en cascade.
   Aucun changement de dimensions, pas de filtre sur le texte du logo. */
@media (prefers-reduced-motion:no-preference) {
  body.rs2-site.home .rs12-brand.rs31-living-logo img {
    animation:rs32-brand-alive 10.8s ease-in-out infinite;
    transform-origin:25% 65%;
  }
  body.rs2-site.home .rs12-brand.rs31-living-logo::after {
    height:2px;bottom:-5px;
    animation:rs32-brand-line 10.8s ease-in-out infinite;
  }
  body.rs2-site.home .rs12-brand.rs31-living-logo::before {
    content:"";position:absolute;z-index:2;pointer-events:none;
    width:24%;height:85%;left:-6%;top:6%;
    background:linear-gradient(95deg,transparent,rgba(107,207,141,.22),transparent);
    transform:translateX(-100%) skewX(-18deg);opacity:0;
    animation:rs32-brand-gleam 10.8s ease-in-out infinite;
  }
  body.rs2-site.home .rs31-living-logo .rs30-brand-pixels i:nth-child(1) {animation:rs32-pixel 10.8s .0s ease-in-out infinite;}
  body.rs2-site.home .rs31-living-logo .rs30-brand-pixels i:nth-child(2) {animation:rs32-pixel 10.8s .24s ease-in-out infinite;}
  body.rs2-site.home .rs31-living-logo .rs30-brand-pixels i:nth-child(3) {animation:rs32-pixel 10.8s .48s ease-in-out infinite;}
  @keyframes rs32-brand-alive {
    0%,6%,42%,53%,89%,100%{transform:translateY(0) scale(1);}
    12%,18%{transform:translateY(-2px) scale(1.026);}
    24%{transform:translateY(1px) scale(.995);}
    61%,68%{transform:translateY(-1.5px) scale(1.021);}
    77%{transform:translateY(0) scale(1.006);}
  }
  @keyframes rs32-brand-line {
    0%,7%,42%,54%,88%,100%{transform:scaleX(0);opacity:0;}
    15%,29%,64%,75%{transform:scaleX(1);opacity:.7;}
    38%,84%{transform:scaleX(1);opacity:0;}
  }
  @keyframes rs32-brand-gleam {
    0%,7%,43%,54%,88%,100%{transform:translateX(-100%) skewX(-18deg);opacity:0;}
    11%,59%{opacity:.75;}
    33%,81%{transform:translateX(520%) skewX(-18deg);opacity:0;}
  }
  @keyframes rs32-pixel {
    0%,6%,42%,54%,89%,100%{opacity:0;transform:translate(-10px,10px) scale(.4);}
    13%,20%,63%,71%{opacity:1;transform:translate(0,0) scale(1.45);}
    30%,78%{opacity:0;transform:translate(4px,-4px) scale(.8);}
  }
}
@media(prefers-reduced-motion:reduce) {
  body.rs2-site.home .rs12-brand.rs31-living-logo::before{display:none!important;}
}
