/* Scout-ARCHIKIN — vitrine & app : simple, désaturé, animé */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --fpi-night: #1c2430;
  --fpi-deep: #2a3340;
  --fpi-analytic: #4a5568;
  --fpi-gold: #a89878;
  --fpi-gold-soft: #c4b8a0;
  --fpi-bg: #f3f4f6;
  --fpi-surface: #fafafa;
  --fpi-muted: #6b7280;
  --fpi-white: #ffffff;
  --fpi-border: rgba(28, 36, 48, 0.08);
  --fpi-shadow: 0 1px 2px rgba(28, 36, 48, 0.04), 0 8px 24px rgba(28, 36, 48, 0.05);
  --fpi-radius: 12px;
  --font-sans: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-duration: 0.7s;

  /* Palette scouts désaturée */
  --scak-primary: #3d4554;
  --scak-primary-light: #5a6474;
  --scak-secondary: #5b6b7c;
  --scak-accent: #a89878;
  --scak-accent-light: #c4b8a0;
  --scak-lavender: #d5d8de;
  --scak-light: #f7f8f9;
  --scak-dark: #1c2430;
  --scak-darker: #141a22;
  --bs-primary: #3d4554;
  --bs-primary-rgb: 61, 69, 84;
  --bs-link-color: #3d4554;
  --bs-link-hover-color: #1c2430;
}

*, *::before, *::after { box-sizing: border-box; }

body,
body.public-site,
body.app-body-fpi {
  font-family: var(--font-sans) !important;
  color: var(--fpi-night);
  background: var(--fpi-bg) !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5,
.public-section-title,
.public-footer-title,
.public-editorial-block-title,
.text-scak {
  font-family: var(--font-serif) !important;
  letter-spacing: -0.02em;
  color: var(--fpi-night) !important;
}

a { color: var(--scak-primary); }
a:hover { color: var(--fpi-night); }

/* Hide decorative clutter */
body.public-site .public-vector-scene,
body.public-site .public-wave-ribbon,
body.public-site .public-gradient-panel-deco,
body.public-site .public-navbar { display: none !important; }

/* ——— Nav ——— */
.sc-nav-shell { position: sticky; top: 0; z-index: 1040; }
.sc-nav {
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--fpi-border);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease;
}
.sc-nav.is-scrolled { box-shadow: 0 8px 24px rgba(28, 36, 48, 0.06); }
.sc-nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,152,120,0.35), transparent);
}
.sc-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sc-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.sc-brand:hover { color: inherit; opacity: 0.9; }
.sc-brand-logo-wrap {
  background: #fff;
  border: 1px solid var(--fpi-border);
  border-radius: 10px;
  padding: 0.25rem 0.35rem;
}
.sc-brand-logo { height: 42px; width: auto; display: block; }
.sc-brand-text { display: none; flex-direction: column; gap: 0.1rem; }
@media (min-width: 768px) { .sc-brand-text { display: flex; } }
.sc-brand-text strong {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fpi-night);
}
.sc-brand-text span {
  font-size: 0.58rem;
  color: var(--fpi-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.sc-menu {
  display: none;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
  background: #eef0f3;
  border: 1px solid var(--fpi-border);
  border-radius: 999px;
  padding: 0.25rem;
  max-width: 680px;
  margin: 0 auto;
}
@media (min-width: 992px) { .sc-menu { display: flex; } }
.sc-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fpi-muted) !important;
  text-decoration: none !important;
  border: 0;
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease;
}
.sc-nav-link:hover { color: var(--fpi-night) !important; background: rgba(255,255,255,0.7); }
.sc-nav-link.active {
  color: var(--fpi-night) !important;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28,36,48,0.05);
}
.sc-nav-actions { display: none; align-items: center; gap: 0.5rem; }
@media (min-width: 992px) { .sc-nav-actions { display: flex; } }

.btn-sc-login,
.btn-sc-access,
.btn-sc-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none !important;
  transition: transform 0.2s var(--motion-ease), background 0.2s ease, box-shadow 0.2s ease;
}
.btn-sc-login {
  color: var(--fpi-night) !important;
  background: #fff;
  border: 1px solid var(--fpi-border);
}
.btn-sc-login:hover { background: var(--fpi-surface); color: var(--fpi-night) !important; }
.btn-sc-access {
  color: #fff !important;
  background: var(--fpi-night);
  border: 0;
}
.btn-sc-access:hover {
  transform: translateY(-1px);
  background: var(--fpi-deep);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(28,36,48,0.15);
}
.btn-sc-ghost-light {
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}
.btn-sc-ghost-light:hover { background: rgba(255,255,255,0.16); color: #fff !important; }

.sc-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--fpi-border);
  background: #fff;
  color: var(--fpi-night);
}
@media (min-width: 992px) { .sc-menu-toggle { display: none; } }
.sc-menu.is-open {
  display: flex;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 1rem; right: 1rem;
  flex-direction: column;
  align-items: stretch;
  border-radius: 14px;
  padding: 0.55rem;
  max-width: none;
  z-index: 20;
  box-shadow: var(--fpi-shadow);
  background: #fff;
}
.sc-menu.is-open .sc-nav-link { justify-content: flex-start; border-radius: 10px; }
.sc-nav-cta-mobile { display: none !important; }
.sc-menu.is-open .sc-nav-cta-mobile {
  display: inline-flex !important;
  margin-top: 0.35rem;
  justify-content: center;
}

/* Ticker — calme */
.sc-ticker {
  display: flex;
  align-items: stretch;
  min-height: 34px;
  color: #e8eaed;
  overflow: hidden;
  background: #1c2430;
  border-bottom: 1px solid rgba(168,152,120,0.2);
}
.sc-ticker-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fpi-gold-soft);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.sc-ticker-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fpi-gold);
  animation: scPulse 2s ease-out infinite;
}
@keyframes scPulse {
  0% { box-shadow: 0 0 0 0 rgba(168,152,120,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(168,152,120,0); }
  100% { box-shadow: 0 0 0 0 rgba(168,152,120,0); }
}
.sc-ticker-viewport { flex: 1; overflow: hidden; }
.sc-ticker-track {
  display: flex;
  width: max-content;
  animation: scTickerScroll 48s linear infinite;
}
.sc-ticker:hover .sc-ticker-track { animation-play-state: paused; }
.sc-ticker-seq { display: flex; list-style: none; margin: 0; padding: 0; }
.sc-ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.45rem 1.25rem;
  white-space: nowrap;
  font-size: 0.76rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.sc-ticker-k {
  color: rgba(232,234,237,0.55);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.sc-ticker-v { font-weight: 650; color: var(--fpi-gold-soft); }
@keyframes scTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ——— Page body ——— */
.public-main { min-height: 50vh; }
.sc-static-page { padding: 0; }

.sc-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
}
.sc-section-head { margin-bottom: 1.75rem; }
.sc-section-head h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
}
.sc-section-head p {
  margin: 0;
  color: var(--fpi-muted);
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.65;
}
.sc-section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fpi-muted);
}
.sc-section-kicker-light { color: var(--fpi-gold-soft); }
.sc-section-head-center { text-align: center; max-width: 38rem; margin-left: auto; margin-right: auto; }
.sc-section-head-center p { margin-left: auto; margin-right: auto; }
.sc-section-actions { display: flex; justify-content: center; margin-top: 1.75rem; }

.sc-card,
.sc-kpi-mini,
.sc-feature-card,
.sc-article-card {
  background: #fff;
  border: 1px solid var(--fpi-border);
  border-radius: var(--fpi-radius);
  box-shadow: none;
  transition: transform 0.35s var(--motion-ease), box-shadow 0.35s ease, border-color 0.25s ease;
}
.sc-card:hover,
.sc-kpi-mini:hover,
.sc-feature-card:hover,
.sc-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fpi-shadow);
  border-color: rgba(28,36,48,0.12);
}
.sc-card { padding: 1.35rem; }
.sc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) { .sc-grid-3 { grid-template-columns: 1fr; } }

.sc-stats-grid--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 640px;
  margin: 1.75rem auto 0;
}
@media (max-width: 640px) { .sc-stats-grid--2 { grid-template-columns: 1fr; } }

.sc-kpi-mini {
  padding: 1.25rem 1.25rem 1.2rem 1.35rem;
  position: relative;
  overflow: hidden;
}
.sc-kpi-mini::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--fpi-gold);
}
.sc-kpi-mini .lbl { font-size: 0.76rem; color: var(--fpi-muted); margin-bottom: 0.4rem; }
.sc-kpi-mini .val {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sc-kpi-mini .hint { font-size: 0.72rem; color: var(--fpi-muted); margin-top: 0.35rem; }

.sc-feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef0f3;
  color: var(--fpi-night);
  font-size: 1.05rem;
}
.sc-feature-card h4,
.sc-article-card h4 {
  margin: 0.8rem 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}
.sc-feature-card p,
.sc-article-card p {
  margin: 0;
  color: var(--fpi-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.sc-article-cover {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  margin: -0.25rem -0.25rem 0.85rem;
  aspect-ratio: 16/10;
  background: #e8eaed;
}
.sc-article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-article-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fpi-muted);
}
.sc-article-card h4 a { color: inherit; text-decoration: none; }
.sc-text-link {
  display: inline-flex;
  margin-top: 0.8rem;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--fpi-night);
  text-decoration: none;
  border-bottom: 1px solid rgba(28,36,48,0.2);
}
.sc-text-link:hover { border-color: var(--fpi-night); }

.sc-disclosure {
  background: #1c2430;
  color: #fff;
  padding: 3.25rem 1.25rem;
  margin-top: 0.5rem;
}
.sc-disclosure-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.sc-disclosure-inner h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  color: #fff !important;
}
.sc-disclosure-inner p {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
}

/* Hero home */
.sc-hero-bleed {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
}
.sc-hero-bleed-media { position: absolute; inset: 0; }
.sc-hero-bleed-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.2s ease, transform 7s ease;
  filter: saturate(0.72) contrast(1.02);
}
.sc-hero-bleed-slide.is-active { opacity: 1; transform: scale(1); }
.sc-hero-bleed-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20,26,34,0.88) 0%, rgba(20,26,34,0.55) 50%, rgba(20,26,34,0.3) 100%),
    linear-gradient(0deg, rgba(20,26,34,0.7) 0%, transparent 45%);
  z-index: 1;
}
.sc-hero-bleed-content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 7rem) 1.25rem 2.25rem;
}
.sc-hero-brand {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
}
.sc-hero-brand::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 0.75rem;
  background: var(--fpi-gold);
}
.sc-hero-bleed-content h1 {
  margin: 0 0 0.9rem;
  max-width: 14ch;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
  color: #fff !important;
}
.sc-hero-lead {
  margin: 0 0 1.4rem;
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
}
.sc-hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.sc-hero-bleed-foot {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sc-hero-cap { font-size: 0.75rem; color: rgba(255,255,255,0.62); }
.sc-hero-dots { display: flex; gap: 0.35rem; }
.sc-hero-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.sc-hero-dots button.is-active { background: var(--fpi-gold); transform: scale(1.2); }
.sc-home-intro { padding-top: 3.5rem; }

/* Inner page hero */
.sc-page-hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  margin: 0 0 1.5rem;
  background: #1c2430;
}
.sc-page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.7);
}
.sc-page-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,26,34,0.9) 0%, rgba(20,26,34,0.6) 100%);
}
.sc-page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.2rem, 4.5vw, 3rem) 1.25rem;
}
.sc-page-hero-inner h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #fff !important;
  max-width: 18ch;
}
.sc-page-hero-lead {
  margin: 0;
  max-width: 36rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.sc-page-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fpi-gold-soft);
}
.sc-page-crumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.55);
}
.sc-page-crumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.sc-page-crumb .is-current { color: #fff; font-weight: 600; }
.sc-page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Inner pages content */
body.public-site .public-page:not(.public-home) { padding-bottom: 3rem; }
body.public-site .public-editorial-section,
body.public-site .public-section {
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 2.25rem 1.25rem !important;
  background: transparent !important;
}
body.public-site .public-editorial-content-block,
body.public-site .public-editorial-aside,
body.public-site .public-editorial-card,
body.public-site .public-feature-tile,
body.public-site .public-card {
  background: #fff !important;
  border: 1px solid var(--fpi-border) !important;
  border-radius: var(--fpi-radius) !important;
  box-shadow: none !important;
  transition: transform 0.35s var(--motion-ease), box-shadow 0.35s ease;
}
body.public-site .public-editorial-content-block:hover,
body.public-site .public-editorial-aside:hover,
body.public-site .public-editorial-card:hover,
body.public-site .public-feature-tile:hover,
body.public-site .public-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fpi-shadow) !important;
}
body.public-site .public-section-eyebrow,
body.public-site .public-editorial-section-label {
  font-size: 0.7rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: var(--fpi-muted) !important;
}
body.public-site .public-btn-pill,
body.public-site .btn-primary {
  border-radius: 999px !important;
  font-weight: 650 !important;
  background: var(--fpi-night) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.public-site .public-btn-pill--ghost,
body.public-site .public-btn-pill--light {
  background: #fff !important;
  color: var(--fpi-night) !important;
  border: 1px solid var(--fpi-border) !important;
}

/* Footer simple */
body.public-site .public-footer {
  background: #1c2430 !important;
  color: rgba(255,255,255,0.7) !important;
  border-top: 0 !important;
  margin-top: 0;
}
body.public-site .public-footer-title { color: #fff !important; }
body.public-site .public-footer-text,
body.public-site .public-footer-copy { color: rgba(255,255,255,0.55) !important; }
body.public-site .public-footer-divider { border-color: rgba(255,255,255,0.1) !important; }

/* App / login désaturés */
.scak-sidebar {
  background: #1c2430 !important;
  box-shadow: none !important;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.scak-sidebar .nav-link.active { box-shadow: inset 2px 0 0 var(--fpi-gold); }
.scak-sidebar .nav-link i { color: var(--fpi-gold-soft) !important; }
.scak-topbar {
  background: rgba(255,255,255,0.95) !important;
  border-bottom: 1px solid var(--fpi-border) !important;
  box-shadow: none !important;
}
.scak-topbar::after { display: none; }
.scak-title-banner {
  background: #1c2430 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.scak-avatar {
  background: var(--fpi-gold) !important;
  color: #1c2430 !important;
}
.scak-page-content .card,
.scak-main .card {
  border: 1px solid var(--fpi-border) !important;
  border-radius: var(--fpi-radius) !important;
  box-shadow: none !important;
}
.btn-primary, .btn.btn-primary {
  background: var(--fpi-night) !important;
  border-color: transparent !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.scak-login-bg-overlay {
  background: linear-gradient(155deg, rgba(20,26,34,0.9), rgba(28,36,48,0.75)) !important;
}
.scak-login-bg .card {
  border-radius: var(--fpi-radius) !important;
  border: 1px solid var(--fpi-border) !important;
  box-shadow: var(--fpi-shadow) !important;
}

/* ——— Animations ——— */
body.scak-motion-ready .sc-static-page,
body.scak-motion-ready .public-page {
  animation: scakPageIn var(--motion-duration) var(--motion-ease) both;
}
@keyframes scakPageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sc-hero-bleed-content > * {
  opacity: 0;
  transform: translateY(16px);
  animation: scakHeroLine 0.75s var(--motion-ease) forwards;
}
.sc-hero-bleed-content > *:nth-child(1) { animation-delay: 0.06s; }
.sc-hero-bleed-content > *:nth-child(2) { animation-delay: 0.16s; }
.sc-hero-bleed-content > *:nth-child(3) { animation-delay: 0.26s; }
.sc-hero-bleed-content > *:nth-child(4) { animation-delay: 0.36s; }
@keyframes scakHeroLine {
  to { opacity: 1; transform: none; }
}

.sc-page-hero-inner > * {
  opacity: 0;
  transform: translateY(14px);
  animation: scakHeroLine 0.7s var(--motion-ease) forwards;
}
.sc-page-hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.sc-page-hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
.sc-page-hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
.sc-page-hero-inner > *:nth-child(4) { animation-delay: 0.28s; }
.sc-page-hero-inner > *:nth-child(5) { animation-delay: 0.34s; }

.scak-reveal-anim {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease);
  transition-delay: var(--reveal-delay, 0s);
}
.scak-reveal-anim.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sc-ticker-track { animation: none !important; }
  .scak-reveal-anim { opacity: 1; transform: none; }
}

/* ——— Espace utilisateur style FPI (topnav) ——— */
:root {
  --app-brandbar-height: 78px;
}
body.app-body-topnav {
  background:
    radial-gradient(900px 360px at 10% 0%, rgba(168,152,120,0.06), transparent 55%),
    linear-gradient(180deg, #f7f8fa 0%, #f0f1f4 45%, #e9ebef 100%) !important;
}
body.app-body-topnav .scak-page-loader,
body.app-body-topnav .scak-page-loader--hidden {
  pointer-events: none !important;
}
.app-shell-top {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
body.app-body-topnav .scak-layout,
body.app-body-topnav .scak-sidebar,
body.app-body-topnav .scak-topbar {
  display: none !important;
}
.app-brandbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--fpi-border);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}
.app-brandbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,152,120,0.4), transparent);
}
.app-brandbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 78px;
  padding: 0.55rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.app-brandbar-side { display: flex; align-items: center; gap: 0.5rem; }
.app-brandbar-side-left { justify-content: flex-start; }
.app-brandbar-side-right { justify-content: flex-end; }
.app-brandbar-meta {
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  color: var(--fpi-muted);
  font-weight: 500;
}
.app-brandbar-sep {
  width: 1px; height: 14px;
  background: rgba(28,36,48,0.14);
}
.app-env-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fpi-night);
  background: #eef0f3;
  border: 1px solid var(--fpi-border);
}
.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--fpi-muted);
  font-weight: 500;
}
.sync-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6f8f7a;
  box-shadow: 0 0 0 0 rgba(111,143,122,0.4);
  animation: scPulse 2s ease-out infinite;
}
.app-brand-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--fpi-night);
  gap: 0.08rem;
}
.app-brand-centered:hover { color: var(--fpi-night); opacity: 0.95; }
.app-brand-centered-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.05rem;
}
.app-brand-centered strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.app-brand-centered span {
  font-size: 0.6rem;
  color: var(--fpi-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.mobile-toggle {
  display: none;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--fpi-border);
  background: #fff;
  color: var(--fpi-night);
}

.app-pill-wrap {
  position: sticky;
  top: var(--app-brandbar-height);
  z-index: 1210;
  padding: 0.9rem 1.25rem 0.45rem;
  display: flex;
  justify-content: center;
  overflow: visible;
  pointer-events: auto;
}
.app-pill-nav {
  width: min(100%, 1320px);
  background: linear-gradient(105deg, #121820 0%, #1c2430 48%, #2a3340 100%);
  color: #fff;
  border-radius: 18px;
  padding: 0.5rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 14px 34px rgba(20,26,34,0.24),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: visible !important;
  pointer-events: auto;
}
.app-pill-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.app-pill-logo img { height: 24px; width: auto; object-fit: contain; }
.app-pill-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  overflow: visible !important;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.app-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.8rem;
  border-radius: 11px;
  color: rgba(255,255,255,0.82) !important;
  font-size: 0.78rem;
  font-weight: 560;
  text-decoration: none !important;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
}
.app-pill-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff !important;
  transform: translateY(-1px);
}
.app-pill-link.active {
  background: rgba(255,255,255,0.14);
  color: #fff !important;
  border-color: rgba(168,152,120,0.5);
  box-shadow: inset 0 -2px 0 rgba(168,152,120,0.85);
}
.app-pill-link .nav-caret { font-size: 0.7rem; opacity: 0.65; transition: transform 0.18s ease; }
.app-nav-dropdown { position: relative; z-index: 2; pointer-events: auto; }
.app-nav-dropdown.open { z-index: 3000; }
.app-nav-dropdown.open .nav-caret { transform: rotate(180deg); display: inline-block; }
.app-nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--fpi-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20,26,34,0.16);
  padding: 0.45rem;
  z-index: 3010;
  pointer-events: auto !important;
}
.app-nav-dropdown.open > .app-nav-submenu { display: block; }
.app-nav-submenu-label {
  margin: 0 0 0.3rem;
  padding: 0.35rem 0.7rem 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fpi-muted);
  font-weight: 650;
  border-bottom: 1px solid var(--fpi-border);
}
.app-nav-submenu a {
  display: block;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  color: var(--fpi-night) !important;
  font-size: 0.85rem;
  text-decoration: none !important;
  font-weight: 500;
  cursor: pointer;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
.app-nav-submenu a:hover { background: #eef0f3; }
.app-nav-submenu a.active { background: #e8eaed; font-weight: 650; }

.app-pill-user { position: relative; flex-shrink: 0; margin-left: 0.2rem; z-index: 3; pointer-events: auto; }
.app-pill-user-btn {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 12px;
  min-height: 38px;
  padding: 0.2rem 0.45rem 0.2rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}
.app-pill-user-btn:hover { background: rgba(255,255,255,0.14); }
.app-pill-user-avatar {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--fpi-night);
  font-size: 0.68rem;
  font-weight: 700;
}
.app-pill-user-copy {
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
  max-width: 140px;
}
.app-pill-user-copy strong { font-size: 0.72rem; font-weight: 600; }
.app-pill-user-copy small { font-size: 0.62rem; color: rgba(255,255,255,0.65); }
.app-pill-user-caret { font-size: 0.7rem; opacity: 0.7; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--fpi-border);
  border-radius: 14px;
  box-shadow: var(--fpi-shadow);
  padding: 0.45rem;
  z-index: 1500;
}
.user-dropdown-head {
  padding: 0.55rem 0.75rem 0.65rem;
  border-bottom: 1px solid var(--fpi-border);
  margin-bottom: 0.25rem;
}
.user-dropdown-head strong { display: block; font-size: 0.86rem; color: var(--fpi-night); }
.user-dropdown-head span { font-size: 0.72rem; color: var(--fpi-muted); }
.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.58rem 0.75rem;
  border-radius: 10px;
  color: var(--fpi-night) !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}
.user-dropdown a:hover,
.user-dropdown button:hover { background: #eef0f3; }

.main-wrap-top {
  margin-left: 0 !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.page-context-bar {
  padding: 1rem 1.25rem 0;
  position: relative;
  z-index: 1;
}
.page-context-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--fpi-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20,26,34,0.03);
}
.breadcrumb-fpi {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--fpi-muted);
  flex-wrap: wrap;
}
.breadcrumb-fpi a { color: var(--fpi-muted); text-decoration: none; }
.breadcrumb-fpi a:hover { color: var(--fpi-night); }
.breadcrumb-fpi .is-current {
  color: var(--fpi-night);
  font-weight: 650;
  font-family: var(--font-serif);
}
.breadcrumb-fpi i { font-size: 0.65rem; opacity: 0.55; }
.page-context-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--fpi-border);
  font-size: 0.74rem;
  color: var(--fpi-muted);
  font-weight: 500;
}
body.app-body-topnav .scak-page-content {
  margin-left: 0 !important;
  padding-top: 1rem;
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
}
body.app-body-topnav .scak-page-content a,
body.app-body-topnav .scak-page-content button,
body.app-body-topnav .scak-page-content .nav-link,
body.app-body-topnav .scak-page-content .btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}
body.app-body-topnav .scak-page-content .card,
body.app-body-topnav .scak-stat-card,
body.app-body-topnav .scak-title-banner,
body.app-body-topnav .scak-page-content .scak-table-card {
  border-radius: 16px !important;
  border: 1px solid var(--fpi-border) !important;
  box-shadow: 0 1px 2px rgba(20,26,34,0.03) !important;
  background: #fff;
  overflow: hidden;
}
body.app-body-topnav .scak-page-content .scak-table-card > .table-responsive,
body.app-body-topnav .scak-page-content .card > .table-responsive {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
body.app-body-topnav .scak-page-content .scak-pagination-footer,
body.app-body-topnav .scak-page-content .scak-table-card .card-footer {
  border-top: 1px solid var(--fpi-border) !important;
  background: #fafbfc !important;
  padding: 0.85rem 1.15rem !important;
}
body.app-body-topnav .scak-page-content .scak-pagination-inner {
  width: 100%;
  gap: 0.75rem;
}
body.app-body-topnav .scak-page-content .scak-pagination-list {
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 0;
}
body.app-body-topnav .scak-title-banner {
  background: linear-gradient(135deg, #141a22, #1c2430 55%, #2a3340) !important;
  color: #fff !important;
}
body.app-body-topnav .scak-page-content .container-fluid {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 992px) {
  .app-brandbar .mobile-toggle { display: grid; }
  .app-pill-wrap { padding-top: 0.5rem; }
  .app-pill-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.75rem;
  }
  .app-pill-nav.open { display: flex; }
  .app-pill-links { flex-direction: column; align-items: stretch; overflow: visible; }
  .app-pill-link { width: 100%; justify-content: flex-start; }
  .app-nav-dropdown { width: 100%; }
  .app-nav-submenu {
    position: static;
    background: rgba(255,255,255,0.08);
    border: 0;
    box-shadow: none;
    margin-top: 0.25rem;
  }
  .app-nav-submenu-label { color: rgba(255,255,255,0.55); border-bottom-color: rgba(255,255,255,0.1); }
  .app-nav-submenu a { color: rgba(255,255,255,0.9) !important; }
  .app-nav-submenu a:hover,
  .app-nav-submenu a.active { background: rgba(255,255,255,0.12); color: #fff !important; }
  .page-context-inner { flex-direction: column; align-items: stretch; }
  .app-brand-centered strong { font-size: 0.9rem; }
}

/* Chants vitrine — paroles compactes + PDF */
.public-song-lyrics {
  white-space: pre-line !important;
  line-height: 1.4 !important;
  font-size: 1rem !important;
  padding: 1rem 1.15rem !important;
  margin: 0 !important;
}
.public-song-section-title {
  margin-bottom: 0.65rem !important;
}
.public-song-card-pdf {
  position: relative;
  z-index: 2;
  color: var(--scak-primary, #3e1d7c);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.public-songs-pdf-all {
  white-space: nowrap;
}
.public-editorial-section .scak-pagination-wrap {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
}
