
:root{--ff-logo-blue:#1b7e94;--ff-action-blue:#00677d;--ff-logo-gold:#ffd56b}

body.fx{--blue:var(--ff-logo-blue);--cyan:var(--ff-logo-blue);--athanor-500:var(--ff-logo-blue);--athanor-600:var(--ff-logo-blue);--athanor-700:var(--ff-logo-blue);--athanor-800:var(--ff-logo-blue);--ink-accent:var(--blue);--line:color-mix(in srgb,var(--ff-logo-blue) 20%,var(--paper));--pale:color-mix(in srgb,var(--ff-logo-blue) 5%,var(--paper))}
/* Les textes d'accent gardent un contraste lisible dans le thème sombre. */
html[data-theme=dark] body.fx{--blue:color-mix(in srgb,var(--ff-logo-blue) 45%,#fff);--cyan:var(--blue);--athanor-500:var(--blue);--athanor-600:var(--blue);--athanor-700:var(--blue);--athanor-800:var(--blue);--ink-accent:var(--blue)}
/* Les interfaces simulées conservent leurs propres couleurs natives. */
body.fx .fx-ia{--blue:#00677d;--cyan:#83c7d7;--athanor-600:#1b7e94;--athanor-700:#00677d;--athanor-800:oklch(30% .055 220);--ink-accent:#00677d}
.ff-field{isolation:isolate}
.ff-positioned{position:relative}
.ff-atmosphere{position:absolute!important;inset:0;z-index:-1;display:block!important;border-radius:inherit;overflow:hidden;pointer-events:none!important;user-select:none;contain:paint;background:color-mix(in srgb,var(--paper,#f7fcfd) 94%,var(--ff-logo-blue))}
.ff-dark>.ff-atmosphere{background:var(--ff-logo-blue)}
.ff-overlay>.ff-atmosphere{background:none}
/* Proposition 2 pour les deux immersions, sans modifier les photos ni leur mouvement. */
body.fx[data-page=index] #haut.fx-entree{--athanor-900:var(--ff-action-blue);background:var(--ff-action-blue)}
body.fx[data-page=systeme] .system-explorer .lv-traverse .lv-sticky-stage{background:var(--ff-action-blue)}
.ff-button>.ff-atmosphere{background:var(--ff-logo-blue)}
body.fx .ff-field.ff-button,body.fx .ff-field.ff-button:is(:hover,:focus-visible,:active){color:#fff;border-color:color-mix(in srgb,#fff 32%,var(--ff-logo-blue))}
.ff-field.ff-dark:not(.ff-button){--athanor-100:#fff;--athanor-200:#fff;--muted:#fff;--text-soft:#fff}
body.fx .ff-field.ff-dark:not(.ff-button) :is(p,h2,h3,h4,dt,dd,li,small,a,.lw-actions>span){color:#fff}
/* L'optique traverse les trois colonnes : son fond garde le plan -2 d'origine. */
.lw .lw-center.ff-field{isolation:auto}
.lw .lw-center>.ff-atmosphere{inset:0 8px;border-radius:16px;z-index:-2}
.ff-atmosphere>.ff-point{position:absolute;display:block;width:var(--ff-size);height:var(--ff-size);max-width:none;margin:0;padding:0;border:0;border-radius:50%;background:var(--ff-logo-gold);opacity:var(--ff-alpha);box-shadow:0 0 6px #FFD56B20;animation:ff-drift var(--ff-duration) ease-in-out var(--ff-delay) infinite alternate paused;will-change:transform}
.ff-visible>.ff-atmosphere>.ff-point{animation-play-state:running}
.ff-button>.ff-atmosphere{border-radius:inherit}
.ff-button>.ff-atmosphere>.ff-point{box-shadow:none}
.ff-button:disabled>.ff-atmosphere>.ff-point{animation-play-state:paused}
.ff-button:active>.ff-atmosphere{background:var(--ff-action-blue);filter:none}
body.fx .ff-field.ff-button:active{filter:none}
.ff-button>.ff-atmosphere{transition:background-color 160ms ease}
body.fx :is(a,button,summary,[role=button]):not(:where(.fx-ia *)):not(:disabled):active{--blue:var(--ff-action-blue);--cyan:var(--ff-action-blue);--athanor-500:var(--ff-action-blue);--athanor-600:var(--ff-action-blue);--athanor-700:var(--ff-action-blue);--athanor-800:var(--ff-action-blue);--ink-accent:var(--blue);--fs4-teal:var(--blue)}
html[data-theme=dark] body.fx :is(a,button,summary,[role=button]):not(:where(.fx-ia *)):not(:disabled):active{--blue:color-mix(in srgb,var(--ff-action-blue) 45%,#fff);--cyan:var(--blue);--athanor-500:var(--blue);--athanor-600:var(--blue);--athanor-700:var(--blue);--athanor-800:var(--blue);--ink-accent:var(--blue);--fs4-teal:var(--blue)}
@media(hover:hover) and (pointer:fine){
 .ff-button:not(:disabled):hover>.ff-atmosphere{background:var(--ff-action-blue);filter:none}
 body.fx :is(a,button,summary,[role=button]):not(:where(.fx-ia *)):not(:disabled):hover{--blue:var(--ff-action-blue);--cyan:var(--ff-action-blue);--athanor-500:var(--ff-action-blue);--athanor-600:var(--ff-action-blue);--athanor-700:var(--ff-action-blue);--athanor-800:var(--ff-action-blue);--ink-accent:var(--blue);--fs4-teal:var(--blue)}
 html[data-theme=dark] body.fx :is(a,button,summary,[role=button]):not(:where(.fx-ia *)):not(:disabled):hover{--blue:color-mix(in srgb,var(--ff-action-blue) 45%,#fff);--cyan:var(--blue);--athanor-500:var(--blue);--athanor-600:var(--blue);--athanor-700:var(--blue);--athanor-800:var(--blue);--ink-accent:var(--blue);--fs4-teal:var(--blue)}
}
/* Les anciens traits en couleur fixe suivent aussi la palette commune. */
body.fx .route-line,body.fx .v4-gallery .map-line{stroke:var(--blue)}
body.fx .v4-route:not([data-route-v6]) .v4-route-drawing button:not([aria-pressed=true])>span{background:var(--blue)}
/* Le décor reste derrière le texte, sans déplacer les commandes ni leur focus. */
@keyframes ff-drift{from{transform:translate3d(calc(-1 * var(--ff-dx)),var(--ff-dy),0) scale(.75)}to{transform:translate3d(var(--ff-dx),calc(-1 * var(--ff-dy)),0) scale(1.12)}}
.scene-paused .ff-point,.fs4-paused .ff-point,.ls:has(.ls-motion[aria-label^="Reprendre"]) .ff-point,.v4-route:has([data-rt6-motion][aria-pressed=true]) .ff-point,.sc4:has([data-lv-paused=true]) .ff-point,html.reduced .ff-point,body.fp-reduce .ff-point,html.ff-hidden .ff-point{animation-play-state:paused!important}
@media(max-width:700px){.lw .lw-center>.ff-atmosphere{inset:0;border-radius:14px}.ff-atmosphere>.ff-point:nth-child(n+13){display:none}}
@media(prefers-reduced-motion:reduce){.ff-atmosphere>.ff-point{animation:none!important;transform:none;will-change:auto}.ff-button>.ff-atmosphere{transition:none}}
@media print{.ff-atmosphere{display:none!important}}
