html,
body {
    height: 100%;
}

body.intranet-theme {
    background:
        radial-gradient(1200px 700px at 80% -10%, rgba(91, 108, 255, 0.25), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(168, 180, 255, 0.18), transparent 60%),
        linear-gradient(180deg, #05060a 0%, #0a0c14 60%, #05060a 100%);
    color: #e7e9f3;
    font-feature-settings: "ss01", "cv11";
}

.grain::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.35;
    mix-blend-mode: overlay;
}

.grid-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 75%);
}

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.glow-ring {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from 120deg, rgba(124, 140, 255, 0), rgba(124, 140, 255, 0.55), rgba(168, 180, 255, 0) 60%);
    -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    opacity: 0.9;
    filter: blur(0.3px);
}

.input-field {
    background: rgba(10, 12, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: rgba(124, 140, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.18);
    background: rgba(10, 12, 20, 0.85);
}

.btn-primary {
    background: linear-gradient(180deg, #6f7eff 0%, #4453ee 100%);
    box-shadow: 0 10px 30px -10px rgba(91, 108, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
}

@keyframes float-slow {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.float-slow {
    animation: float-slow 7s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.text-shimmer {
    background: linear-gradient(90deg, #ffffff 0%, #c9cffb 30%, #ffffff 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s linear infinite;
}

/* ===== Impression : socle commun (toutes les vues) =====
   Masque la navigation du site et tout élément marqué .no-print ; conserve les
   couleurs des badges/pastilles (print-color-adjust). Les règles propres à
   chaque vue vivent dans son CSS dédié. */
@media print {
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        background: #fff !important;
    }

    [data-site-header],
    header:has(> [data-site-header]),
    .no-print {
        display: none !important;
    }
}
