/* fx-actu.css : page Actualités (assets/design/fx-actu.js).
   Ruban des marchés sous le titre, cartes de communiqués qui se posent. */

/* ---------- Ruban des marchés ---------- */
.fxa-marches{--fxa-haut:#8fc4a3;--fxa-bas:#dc9a9a;margin-top:28px;opacity:0;transition:opacity 1.2s ease}
.fxa-marches.fxa-vu{opacity:1}
.fxa-ruban{position:relative;overflow:hidden;padding:12px 0;border-radius:2px;
  background:linear-gradient(180deg,rgba(184,205,224,.035),rgba(184,205,224,.015));
  border-top:1px solid rgba(201,211,222,.14);border-bottom:1px solid rgba(201,211,222,.14);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.fxa-ruban:focus{outline:none}
.fxa-ruban:focus-visible{outline:1px solid rgba(201,211,222,.55);outline-offset:3px;-webkit-mask-image:none;mask-image:none}
.fxa-piste{display:flex;width:max-content;animation:fxa-defile 80s linear infinite;will-change:transform}
.fxa-ruban:hover .fxa-piste,.fxa-ruban:focus-within .fxa-piste,.fxa-horsvue .fxa-piste{animation-play-state:paused}
.fxa-serie{display:flex;flex:none}
.fxa-item{position:relative;display:inline-flex;align-items:baseline;gap:10px;padding:0 24px;white-space:nowrap;
  font-family:'DM Sans',sans-serif;font-size:13px;line-height:1.4;font-variant-numeric:tabular-nums lining-nums}
/* Séparateur fin entre deux valeurs */
.fxa-item::before{content:'';position:absolute;left:0;top:50%;width:1px;height:14px;margin-top:-7px;
  background:rgba(201,211,222,.20)}
.fxa-nom{color:#b8cde0;font-weight:500;letter-spacing:.01em}
.fxa-val{color:#e8edf3;font-weight:500}
.fxa-unite{font-size:10.5px;font-weight:400;color:rgba(184,205,224,.55)}
.fxa-var{display:inline-flex;align-items:baseline;gap:4px;font-size:12px;font-weight:500;color:rgba(184,205,224,.7)}
.fxa-fleche{font-size:8px;position:relative;top:-1px}
.fxa-haut .fxa-var{color:var(--fxa-haut)}
.fxa-bas .fxa-var{color:var(--fxa-bas)}
/* Texte pour lecteur d'écran seulement (« en hausse de 0.58 % ») */
.fxa-lu{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.mgf-press .fxa-note{margin-top:10px;font-family:'DM Sans',sans-serif;font-size:11px;line-height:1.5;color:rgba(184,205,224,.55)}
@keyframes fxa-defile{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}

/* Thème clair éventuel : mêmes repères, encres foncées. */
body.mgf-light .fxa-marches{--fxa-haut:#2f7a52;--fxa-bas:#a84848}
body.mgf-light .fxa-ruban{background:rgba(27,58,107,.03);border-color:rgba(27,58,107,.12)}
body.mgf-light .fxa-item::before{background:rgba(27,58,107,.18)}
body.mgf-light .fxa-nom{color:#41597a}
body.mgf-light .fxa-val{color:#0b1633}
body.mgf-light .fxa-unite,body.mgf-light .fxa-var,body.mgf-light .mgf-press .fxa-note{color:rgba(27,58,107,.6)}

/* ---------- Cartes qui se posent sur le bureau ---------- */
.mgf-press-grid[data-fxa="attente"] .mgf-press-card{opacity:0}
.mgf-press-card.fxa-chute{animation:fxa-pose .78s cubic-bezier(.22,.68,.32,1) both;animation-delay:calc(var(--fxa-i,0) * 85ms)}
@keyframes fxa-pose{
  0%  {opacity:0;transform:translateY(-26px) scale(1.025);box-shadow:0 46px 50px -18px rgba(0,0,0,.0)}
  25% {opacity:1}
  70% {transform:translateY(1.5px) scale(1);box-shadow:0 10px 18px -6px rgba(0,0,0,.42)}
  100%{opacity:1;transform:none;box-shadow:0 1px 2px rgba(0,0,0,0)}
}

/* Téléphone : chute plus courte, ruban un peu plus petit. */
@media (max-width:767px){
  .fxa-marches{margin-top:20px}
  .fxa-ruban{padding:10px 0}
  .fxa-item{font-size:12px;gap:8px;padding:0 16px}
  .fxa-unite{display:none}
  @keyframes fxa-pose{
    0%  {opacity:0;transform:translateY(-14px)}
    100%{opacity:1;transform:none}
  }
}

/* Mouvement réduit et lecture calme : ruban figé en grille (toutes les valeurs visibles),
   cartes posées. Le séparateur fin sépare les colonnes. */
@media (prefers-reduced-motion:reduce){
  .fxa-marches{transition:none;opacity:1}
  .fxa-ruban{-webkit-mask-image:none;mask-image:none;padding:4px 0}
  .fxa-piste{animation:none;width:auto;display:block}
  .fxa-serie{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:0}
  .fxa-serie[aria-hidden]{display:none}
  .fxa-item{display:flex;flex-wrap:wrap;column-gap:8px;row-gap:1px;padding:9px 14px;white-space:normal}
  .fxa-item::before{top:9px;bottom:9px;height:auto;margin-top:0}
  .fxa-nom{flex-basis:100%;font-size:12px}
  .mgf-press-card.fxa-chute{animation:none}
  .mgf-press-grid[data-fxa="attente"] .mgf-press-card{opacity:1}
}
html.fx-calm .fxa-marches{transition:none;opacity:1}
html.fx-calm .fxa-ruban{-webkit-mask-image:none;mask-image:none;padding:4px 0}
html.fx-calm .fxa-piste{animation:none;width:auto;display:block}
html.fx-calm .fxa-serie{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:0}
html.fx-calm .fxa-serie[aria-hidden]{display:none}
html.fx-calm .fxa-item{display:flex;flex-wrap:wrap;column-gap:8px;row-gap:1px;padding:9px 14px;white-space:normal}
html.fx-calm .fxa-item::before{top:9px;bottom:9px;height:auto;margin-top:0}
html.fx-calm .fxa-nom{flex-basis:100%;font-size:12px}
html.fx-calm .mgf-press-card.fxa-chute{animation:none}
html.fx-calm .mgf-press-grid[data-fxa="attente"] .mgf-press-card{opacity:1}
@media (max-width:767px) and (prefers-reduced-motion:reduce){.fxa-serie{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){html.fx-calm .fxa-serie{grid-template-columns:repeat(2,minmax(0,1fr))}}
