/* Easy Chantier 1.3.326 · lot site-motion · système de mouvement du site public.
   Feuille statique servie à /motion326.css et chargée partout : index.html (pages React), entête commune des pages
   serveur (shared/brand.mjs, publicHeaderHead) et /plan/index.html.

   1. Jetons de mouvement. Les autres lots les lisent avec un repli : var(--ec-motion-base, 200ms).
      En mouvement réduit et sous html[data-motion=off] les durées valent 0 ms (même convention que --ec-ui-d-*) :
      un script ne doit donc pas attendre transitionend pour finir un état.
   2. Tout ce qui bouge est borné aux surfaces publiques, écrit hors mouvement réduit et hors html[data-motion=off].
      Propriétés animées : opacity, transform et translate seulement. Aucune durée au-dessus de 320 ms.
      Aucun contenu n'est masqué par cette feuille seule : l'état d'attente est posé par /motion326.mjs,
      sur un élément mesuré entièrement sous l'écran. Sans script, sans cette feuille ou sans animation, la page est complète.
   Hors périmètre : entête et menu (lot MN), étapes du parcours d'offre (lot PQ), application (lot MA), boutons (lot BB). */

/* ── 1. Jetons ─────────────────────────────────────────────────────────────────────────────────────────── */
:root{
  --ec-motion-ease:cubic-bezier(.22,.7,.3,1);
  --ec-motion-rapide:120ms;
  --ec-motion-base:200ms;
  --ec-motion-lent:320ms;
  --ec-motion-pas:40ms;
  --ec-motion-trajet:16px;
}
@media (prefers-reduced-motion:reduce){
  :root{--ec-motion-rapide:0ms;--ec-motion-base:0ms;--ec-motion-lent:0ms;--ec-motion-pas:0ms;--ec-motion-trajet:0px}
}
html[data-motion=off]{--ec-motion-rapide:0ms;--ec-motion-base:0ms;--ec-motion-lent:0ms;--ec-motion-pas:0ms;--ec-motion-trajet:0px}

@media (prefers-reduced-motion:no-preference){

/* ── 2. Révélation au défilement (états posés par /motion326.mjs) ──────────────────────────────────────── */
html:not([data-motion=off]) [data-ec-mo=attente]{opacity:0!important;transform:translate3d(0,var(--ec-motion-trajet,16px),0)!important}
html:not([data-motion=off]) [data-ec-mo=vu]{transition:opacity var(--ec-motion-lent,320ms) var(--ec-motion-ease,cubic-bezier(.22,.7,.3,1)),transform var(--ec-motion-lent,320ms) var(--ec-motion-ease,cubic-bezier(.22,.7,.3,1))!important}
html:not([data-motion=off]) [data-ec-mo=vu][data-ec-mo-rang="1"]{transition-delay:var(--ec-motion-pas,40ms)!important}
html:not([data-motion=off]) [data-ec-mo=vu][data-ec-mo-rang="2"]{transition-delay:calc(2*var(--ec-motion-pas,40ms))!important}

/* ── 3. Entrée de la page quand le voile de chargement se lève (accueil et /plan/) ─────────────────────────
   /motion326.mjs pose html[data-ec-mo-entree=voile] dans l'image où le voile est retiré, puis le retire.
   Le noir du voile s'efface en fondu au lieu de disparaître d'un coup ; le texte du premier écran monte de 12 px.
   Le texte reste opaque : rien ne retarde l'affichage. Sans script, la page apparaît comme avant. */
html[data-ec-mo-entree=voile]:not([data-motion=off]) body::before{content:"";position:fixed;inset:0;z-index:2147483646;pointer-events:none;background:#000 url("/brand/v7/easy-chantier-v5-horizontal-white.svg") no-repeat center calc(50% - 12.5px)/min(220px,52vw) auto;opacity:0;animation:ec-mo-voile var(--ec-motion-lent,320ms) var(--ec-motion-ease,cubic-bezier(.22,.7,.3,1)) both}
html[data-ec-mo-entree=voile]:not([data-motion=off]) :is(.ec-showcase .router-marquee .rm-slide.is-active .rm-content,main#contenu>.hero .hero-marquee .foreground>.copy,main#contenu>.hero .hero-copy){animation:ec-mo-monte var(--ec-motion-lent,320ms) var(--ec-motion-ease,cubic-bezier(.22,.7,.3,1)) backwards}

/* ── 4. Entrée des pages sans voile : pages serveur, fonctionnalités, informations légales ───────────────
   L'entête et le pied restent immobiles ; seul le contenu arrive.
   « Pages serveur » : body>header~main sur une page qui n'a pas de voile (ni classe ni attribut du voile sur html),
   ce qui écarte /plan/ et l'accueil quelle que soit la forme de leur entête. */
html:not([data-motion=off]) :is(.ec-site>main.ec-legal,.ec-site>main.ec-features-page>.ec-features342-hero),
html:not([data-motion=off]):not(.ec-public-loading):not([data-public-loading]) body>header~main{animation:ec-mo-entree var(--ec-motion-lent,320ms) var(--ec-motion-ease,cubic-bezier(.22,.7,.3,1)) backwards}

/* ── 5. Accordéons : le contenu se déplie en fondu, le signe plus tourne ─────────────────────────────────
   Hauteur inchangée (aucune mise en page animée). Accueil (questions), /plan/ (questions), fonctionnalités, pages serveur. */
html:not([data-motion=off]) :is(main#contenu .faq,.ec-site>main.ec-features-page,.ec-site>main.ec-legal) details[open]>:not(summary),
html:not([data-motion=off]):not(.ec-public-loading):not([data-public-loading]) body>header~main details[open]>:not(summary),
html:not([data-motion=off]) .ec-showcase .accordion .descr-details.open{animation:ec-mo-deplie var(--ec-motion-base,200ms) var(--ec-motion-ease,cubic-bezier(.22,.7,.3,1)) backwards}
html:not([data-motion=off]) main#contenu .faq summary:before{transition:transform var(--ec-motion-base,200ms) var(--ec-motion-ease,cubic-bezier(.22,.7,.3,1))}

/* ── 6. Appui : liens de texte et lignes de questions ───────────────────────────────────────────────────
   Liens sans classe seulement : un lien qui porte déjà sa propre transition (bouton, carte, entête) n'est pas touché. */
html:not([data-motion=off]) :is(.ec-site>main.ec-legal,.ec-site>main.ec-features-page) a:not([class]),
html:not([data-motion=off]):not(.ec-public-loading):not([data-public-loading]) body>header~:is(main,footer) a:not([class]),
html:not([data-motion=off]) main#contenu .faq summary{transition:opacity var(--ec-motion-rapide,120ms) var(--ec-motion-ease,cubic-bezier(.22,.7,.3,1))}
html:not([data-motion=off]) :is(.ec-site>main.ec-legal,.ec-site>main.ec-features-page) a:not([class]):active,
html:not([data-motion=off]):not(.ec-public-loading):not([data-public-loading]) body>header~:is(main,footer) a:not([class]):active,
html:not([data-motion=off]) main#contenu .faq summary:active{opacity:.64}
/* Liens en pastille des pages de présentation : léger soulèvement au survol, retour à l'appui. */
html:not([data-motion=off]):not(.ec-public-loading):not([data-public-loading]) body>header~main .launch-links a:not([class]){transition:opacity var(--ec-motion-rapide,120ms) var(--ec-motion-ease,cubic-bezier(.22,.7,.3,1)),transform var(--ec-motion-rapide,120ms) var(--ec-motion-ease,cubic-bezier(.22,.7,.3,1))}
html:not([data-motion=off]):not(.ec-public-loading):not([data-public-loading]) body>header~main .launch-links a:not([class]):active{transform:none}

/* ── 7. /plan/ : la barre d'appel fixe arrive par le bas au lieu d'apparaître d'un coup ─────────────────── */
html:not([data-motion=off]) main#contenu~.sticky-cta:not([hidden]){animation:ec-mo-barre var(--ec-motion-base,200ms) var(--ec-motion-ease,cubic-bezier(.22,.7,.3,1)) backwards}

}

@media (prefers-reduced-motion:no-preference) and (hover:hover){
html:not([data-motion=off]):not(.ec-public-loading):not([data-public-loading]) body>header~main .launch-links a:not([class]):hover:not(:active){transform:translate3d(0,-1px,0)}
}

/* Images clés : un seul « from », l'arrivée est l'état propre de l'élément (rien n'est figé après l'animation). */
@keyframes ec-mo-voile{from{opacity:1}to{opacity:0}}
@keyframes ec-mo-monte{from{translate:0 12px}}
@keyframes ec-mo-entree{from{opacity:0;translate:0 8px}}
@keyframes ec-mo-deplie{from{opacity:0;translate:0 -4px}}
@keyframes ec-mo-barre{from{opacity:0;translate:0 100%}}

/* Impression : jamais d'élément resté en attente. */
@media print{
  [data-ec-mo]{opacity:1!important;transform:none!important}
  html[data-ec-mo-entree] body::before{content:none!important}
}
