/* ============================================================
   BASE — reset, variables, typographie
   Chargé sur toutes les pages (portail + auth)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Palette */
  --bg:        #07101f;
  --bg2:       #0b1730;
  --line:      rgba(255,255,255,.08);
  --line-md:   rgba(255,255,255,.14);
  --text:      #eef4ff;
  --muted:     #9fb2d1;
  --blue:      #62a8ff;
  --blue-dark: #2f73e8;
  --success:   #39d98a;
  --danger:    #ff6b6b;
  --warn:      #ffcf6b;

  /* Surfaces (verre)  */
  --s1: rgba(255,255,255,.055);
  --s2: rgba(255,255,255,.030);
  --s3: rgba(98,168,255,.10);

  /* Divers */
  --radius:  22px;
  --shadow:  0 18px 50px rgba(0,0,0,.35);
  --shadow-s:0 8px  26px rgba(40,110,255,.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(78,140,255,.20), transparent 28%),
    radial-gradient(circle at 90%  0%, rgba(99,179,255,.14), transparent 24%),
    linear-gradient(160deg, #07101f 0%, #08142a 50%, #07101f 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin-top: 0;
  letter-spacing: -.02em;
  line-height: 1.15;
}

/* Shimmer loading */
[data-loading="true"] {
  position: relative;
  overflow: hidden;
}
[data-loading="true"]::after {
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Focus visible global */
:focus-visible {
  outline: 2px solid rgba(99,179,255,.85);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
