/* Intro de Nautil (static/intro.js). Fichier à part : la règle de sécurité du dashboard (CSP style-src 'self') refuse les styles écrits par un script. */
#nautil-intro { position: fixed; inset: 0; z-index: 2147483600; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(120% 90% at 50% 20%, var(--ni-bg2), var(--ni-bg) 70%); color: var(--ni-ink);
  transition: opacity .6s ease, transform .6s ease; }
#nautil-intro.light { --ni-bg: #ead5b0; --ni-bg2: #f8eedd; --ni-ink: #c0261c; --ni-word: #2a1712; --ni-dot: #c0261c; }
#nautil-intro.out { opacity: 0; transform: scale(1.03); pointer-events: none; }
#nautil-intro .ni-sable { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; }
#nautil-intro .ni-sable.on { opacity: 1; }
#nautil-intro .ni-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
#nautil-intro .ni-logo { width: min(34vw, 190px); height: auto; overflow: visible; }
#nautil-intro .ni-logo path { fill: none; stroke: var(--ni-ink); stroke-width: 8.5; stroke-linecap: round; stroke-linejoin: round; }
/* logo creusé dans le sable : bourrelet de sable déplacé (éclairé en haut à gauche, à l'ombre en bas à droite) sous le sillon rouge */
#nautil-intro .ni-logo path.ni-rim-l { stroke: rgba(255, 248, 230, .52); stroke-width: 12.5; }
#nautil-intro .ni-logo path.ni-rim-o { stroke: rgba(84, 50, 18, .46); stroke-width: 12.5; }
#nautil-intro .ni-b { stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: ni-draw 1.9s cubic-bezier(.55,.1,.35,1) .2s forwards; }
#nautil-intro .ni-word { height: clamp(40px, 7vw, 64px); width: auto; overflow: visible; filter: drop-shadow(1px 2px 1.5px rgba(70, 38, 12, .3)); }
#nautil-intro .ni-word path { fill: none; stroke: var(--ni-word); stroke-width: 12.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: translateY(16px); animation: ni-up .5s cubic-bezier(.2,.8,.2,1) forwards; }
#nautil-intro .ni-dot { fill: var(--ni-dot); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0);
  animation: ni-pop .45s cubic-bezier(.2,.9,.25,1.6) 2.75s forwards; }
#nautil-intro .ni-ver { position: absolute; z-index: 1; bottom: 48px; font: 600 13px -apple-system, system-ui, sans-serif; letter-spacing: .04em; opacity: .6; color: var(--ni-word); }
#nautil-intro .ni-skip { position: absolute; z-index: 1; bottom: 26px; font: 12px -apple-system, system-ui, sans-serif; opacity: .45; color: var(--ni-word); }
@keyframes ni-draw { to { stroke-dashoffset: 0; } }
@keyframes ni-up { to { opacity: 1; transform: none; } }
@keyframes ni-pop { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { #nautil-intro * { animation-duration: .01s !important; animation-delay: 0s !important; } }
#nautil-intro .ni-word path:nth-of-type(1) { animation-delay: 1.95s; }
#nautil-intro .ni-word path:nth-of-type(2) { animation-delay: 2.05s; }
#nautil-intro .ni-word path:nth-of-type(3) { animation-delay: 2.15s; }
#nautil-intro .ni-word path:nth-of-type(4) { animation-delay: 2.25s; }
#nautil-intro .ni-word path:nth-of-type(5) { animation-delay: 2.35s; }
#nautil-intro .ni-word path:nth-of-type(6) { animation-delay: 2.45s; }
