/* ============================================
   SADIS — Navigation unifiée (tous les onglets)
   Pilule sombre flottante · logo vivant 3 barres
   Accent par pôle via <body data-pole="...">
   ============================================ */

body[data-pole="auto"]    { --sn-accent: #3A5AC9; }
body[data-pole="digital"] { --sn-accent: #47A1AC; }
body[data-pole="immo"]    { --sn-accent: #52A76C; }
body[data-pole="groupe"],
body[data-pole="contact"] { --sn-accent: #ffffff; }

.sadis-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  padding-right: 12px;
  background: rgba(10, 11, 13, 0.62);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: max-content;
  max-width: calc(100% - 24px);
}
@media (min-width: 1024px) {
  .sadis-nav { top: 20px; }
}

.sn-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.3s ease;
}
.sn-logo:hover { background: rgba(255, 255, 255, 0.15); }
.sn-logo svg { width: 20px; height: 20px; display: block; }

.sn-word {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: #fff;
  line-height: 1;
  padding-top: 1px;
}

.sn-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.sn-links a {
  font-family: 'Inter Tight', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.sn-links a:hover { color: #fff; }
.sn-links a.is-active {
  color: color-mix(in srgb, var(--sn-accent, #fff) 72%, #fff);
  background: rgba(255, 255, 255, 0.07);
}
.sn-links a.is-active::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sn-accent, #fff);
  margin-right: 7px;
  vertical-align: 2px;
}

@media (max-width: 620px) {
  .sn-word { display: none; }
  .sn-links a { font-size: 13.5px; padding: 8px 8px; letter-spacing: -0.02em; }
  .sadis-nav { gap: 6px; padding-right: 8px; }
}
@media (max-width: 400px) {
  .sn-links a { font-size: 13px; padding: 7px 6px; }
  .sn-links a.is-active::before { margin-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .sadis-nav, .sn-logo, .sn-links a { transition: none; }
}

/* ---------- Écran de première visite : le logo vivant le temps que le hero
   arrive en HD (≈ 0,6–1 s). Affiché une fois par navigateur (localStorage),
   jamais en reduced-motion ; s'efface dès la première frame HD dessinée. ---------- */
.sadis-loader {
  position: fixed; inset: 0; z-index: 10000;   /* au-dessus de la nav */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: var(--sl-bg, #030b18); color: #fff;
  transition: opacity 0.4s ease;
}
html.sl-skip .sadis-loader { display: none; }
.sadis-loader.sl-out { opacity: 0; pointer-events: none; }
.sl-logo { display: flex; align-items: flex-end; gap: 7px; height: 36px; }
.sl-logo i { display: block; width: 9px; border-radius: 5px; transform-origin: bottom; animation: sl-bar 1.1s ease-in-out infinite; }
.sl-logo i:nth-child(1) { height: 18px; background: #3A5AC9; }
.sl-logo i:nth-child(2) { height: 26px; background: #47A1AC; animation-delay: 0.18s; }
.sl-logo i:nth-child(3) { height: 36px; background: #52A76C; animation-delay: 0.36s; }
@keyframes sl-bar { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }
.sl-word { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 24px; letter-spacing: 0.34em; margin-left: 0.34em; line-height: 1; }
.sl-bar { width: 132px; height: 2px; margin-top: 6px; background: rgba(255, 255, 255, 0.14); border-radius: 2px; overflow: hidden; }
.sl-bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; animation: sl-fill 2.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.sadis-loader.sl-out .sl-bar i { animation: none; transform: scaleX(1); transition: transform 0.25s ease; }
@keyframes sl-fill { to { transform: scaleX(0.86); } }
@media (prefers-reduced-motion: reduce) { .sadis-loader { display: none; } }
