/* Nawili — identité publique (accueil, connexion, à propos, erreurs). Fond blanc à dégradés pastel bleu/cyan/violet, vagues fluides, cartes blanches arrondies.
   Aucune police ni ressource externe (fonctionne hors ligne). Respecte prefers-reduced-motion. */
:root {
  --np-navy: #0B1B5C; --np-ink: #1B2559; --np-muted: #55608C; --np-line: #E3E7FA;
  --np-cyan: #22C7F2; --np-blue: #3D5CFF; --np-violet: #8B5CF6; --np-card: #FFFFFF;
  --np-radius: 22px; --np-shadow: 0 18px 50px -18px rgba(61, 92, 255, .28), 0 2px 10px rgba(27, 37, 89, .06);
  --np-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.np-body { margin: 0; font-family: var(--np-font); color: var(--np-ink); background: #fff; line-height: 1.55; }
.np-page {
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; isolation: isolate;
  background:
    radial-gradient(1100px 640px at 88% -8%, #D6DAFF 0%, rgba(214, 218, 255, 0) 62%),
    radial-gradient(900px 560px at -6% 4%, #E4F3FF 0%, rgba(228, 243, 255, 0) 58%),
    radial-gradient(700px 420px at 50% 42%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%), #FBFCFF;
}
.np-skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--np-navy); padding: 10px 16px; border-radius: 10px; z-index: 50; box-shadow: var(--np-shadow); }
.np-skip:focus { left: 12px; }
/* vagues */
.np-waves { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(220px, 42vh, 420px); z-index: -1; pointer-events: none; }
.np-waves svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.np-wave-a { animation: np-drift 16s ease-in-out infinite alternate; }
.np-wave-b { animation: np-drift 22s ease-in-out infinite alternate-reverse; }
.np-wave-c { animation: np-drift 28s ease-in-out infinite alternate; }
@keyframes np-drift { from { transform: translateX(-2.5%); } to { transform: translateX(2.5%); } }
/* en-tête */
.np-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 40px); }
.np-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--np-navy); text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.np-brand img { height: 44px; width: auto; display: block; }
.np-nav { display: flex; align-items: center; gap: 10px; }
/* boutons */
.np-btn { --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; -webkit-tap-highlight-color: transparent; }
.np-btn:focus-visible, .np-link:focus-visible, .np-card-link:focus-visible { outline: 3px solid var(--np-blue); outline-offset: 3px; }
.np-btn-primary { color: #fff; background: linear-gradient(135deg, #3D5CFF 0%, #6D5CF6 55%, #8B5CF6 100%); box-shadow: 0 12px 28px -10px rgba(61, 92, 255, .65); }
.np-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -10px rgba(61, 92, 255, .75); }
.np-btn-ghost { color: var(--np-navy); background: rgba(255, 255, 255, .85); border-color: var(--np-line); backdrop-filter: blur(6px); }
.np-btn-ghost:hover { border-color: var(--np-blue); color: var(--np-blue); }
.np-btn:active { transform: translateY(1px) scale(.99); }
.np-btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.np-btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: np-spin .7s linear infinite; }
.np-btn-ghost[aria-busy="true"]::after { border-color: rgba(11, 27, 92, .2); border-top-color: var(--np-blue); }
@keyframes np-spin { to { transform: rotate(360deg); } }
/* hero */
.np-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: clamp(8px, 3vh, 36px) clamp(16px, 4vw, 40px) 32px; }
.np-hero { text-align: center; max-width: 760px; margin: 0 auto; animation: np-rise .7s ease both; }
.np-hero-logo { width: clamp(150px, 26vw, 250px); height: auto; display: block; margin: 0 auto 20px; filter: drop-shadow(0 14px 28px rgba(61, 92, 255, .18)); }
.np-title { margin: 6px 0 10px; font-size: clamp(1.7rem, 4.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.02em; color: var(--np-navy); font-weight: 800; }
.np-lead { margin: 0 auto 26px; max-width: 580px; font-size: clamp(1rem, 2.2vw, 1.18rem); color: var(--np-muted); }
.np-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@keyframes np-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* cartes */
.np-cards { width: 100%; max-width: 1020px; margin: clamp(28px, 6vh, 56px) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; list-style: none; }
.np-card { background: var(--np-card); border-radius: var(--np-radius); box-shadow: var(--np-shadow); padding: 24px 22px 22px; border: 1px solid rgba(227, 231, 250, .7); transition: transform .2s ease, box-shadow .2s ease; animation: np-rise .8s ease both; }
.np-card:nth-child(2) { animation-delay: .08s; } .np-card:nth-child(3) { animation-delay: .16s; }
.np-card:hover { transform: translateY(-3px); }
.np-card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; background: linear-gradient(135deg, var(--np-cyan), var(--np-blue)); }
.np-card:nth-child(2) .np-card-icon { background: linear-gradient(135deg, var(--np-blue), var(--np-violet)); }
.np-card:nth-child(3) .np-card-icon { background: linear-gradient(135deg, var(--np-violet), var(--np-cyan)); }
.np-card h2 { margin: 0 0 6px; font-size: 1.12rem; color: var(--np-navy); letter-spacing: -.01em; }
.np-card p { margin: 0; color: var(--np-muted); font-size: .98rem; }
/* pied de page */
.np-footer { margin-top: auto; padding: 0 clamp(16px, 4vw, 40px) 22px; display: flex; justify-content: center; }
.np-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; padding: 12px 22px; border-radius: 999px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); box-shadow: 0 8px 26px -14px rgba(27, 37, 89, .35); color: var(--np-ink); font-size: .92rem; text-align: center; }
.np-footer strong { color: var(--np-navy); }
.np-link { color: var(--np-blue); font-weight: 600; text-decoration: none; border-radius: 6px; }
.np-link:hover { text-decoration: underline; }
/* bandeau hors connexion */
.np-offline { display: none; margin: 0 auto 10px; max-width: 640px; padding: 10px 16px; border-radius: 14px; background: #FFF7E6; color: #7A4A00; border: 1px solid #FFE0A3; font-size: .95rem; text-align: center; }
.np-offline.is-visible { display: block; }
.np-noscript { margin: 12px auto; max-width: 640px; padding: 10px 16px; border-radius: 14px; background: #EEF1FF; color: var(--np-navy); text-align: center; }
/* pages de contenu (à propos, erreurs) */
.np-panel { width: 100%; max-width: 820px; margin: 12px auto 0; background: var(--np-card); border-radius: var(--np-radius); box-shadow: var(--np-shadow); padding: clamp(22px, 4vw, 40px); border: 1px solid rgba(227, 231, 250, .7); }
.np-panel h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 3.6vw, 2.1rem); letter-spacing: -.02em; color: var(--np-navy); }
.np-panel h2 { margin: 26px 0 8px; font-size: 1.15rem; color: var(--np-navy); }
.np-panel p, .np-panel li { color: var(--np-ink); }
.np-panel table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 8px; }
.np-panel th, .np-panel td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--np-line); vertical-align: top; }
.np-panel th { color: var(--np-navy); font-weight: 700; }
.np-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #F1F3FF; padding: 2px 6px; border-radius: 6px; }
/* adaptatif */
@media (max-width: 900px) { .np-cards { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 520px) {
  .np-header { padding-top: 14px; } .np-brand span { font-size: 1.2rem; } .np-btn { width: 100%; } .np-actions { width: 100%; max-width: 360px; flex-direction: column; }
  .np-nav .np-btn { width: auto; --h: 44px; padding: 0 18px; } .np-footer-inner { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .np-wave-a, .np-wave-b, .np-wave-c, .np-hero, .np-card { animation: none !important; } .np-btn, .np-card { transition: none; } }
