/* ============================================================
   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&family=Space+Grotesk:wght@500;600;700&display=swap');

html { color-scheme: dark; }

:root {
  /* ────── Palette rework 2026 ────── */
  /* Fond plus profond pour contraste avec l'orange */
  --bg:        #06090f;
  --bg2:       #0d1422;
  --bg-deep:   #03060c;
  --bg-card:   #11192b;
  --bg-elev:   #0d1422;
  --line:      rgba(255,255,255,.08);
  --line-md:   rgba(255,255,255,.14);
  --text:      #f1f5fb;
  --muted:     #94a3b8;
  --subtle:    #64748b;

  /* Couleur signature : orange ECU */
  --accent:        #ff6b1a;
  --accent-soft:   #ff8a4d;
  --accent-dark:   #e85a0e;
  --accent-glow:   rgba(255,107,26,.22);
  --accent-bg:     rgba(255,107,26,.10);
  --accent-border: rgba(255,107,26,.35);

  /* Bleus (legacy + secondaires) */
  --blue:      #5d9dff;
  --blue-soft: #7fb6ff;
  --blue-dark: #2f73e8;
  --info-fg:   #66afff;
  --info-bg:   rgba(102,175,255,.12);
  --info-border: rgba(102,175,255,.35);

  /* Statuts */
  --success:   #34d399;
  --success-dark: #065f46;
  --danger:    #f87171;
  --danger-dark: #7f1d1d;
  --warn:      #fbbf24;
  --warn-fg:   #facc15;
  --warn-bg:   rgba(250,204,21,.10);
  --warn-border: rgba(250,204,21,.35);
  --vacation-fg: #fbbf24;
  --vacation-bg: rgba(245,158,11,.10);
  --vacation-border: rgba(245,158,11,.35);

  /* Surfaces glass */
  --s1: rgba(255,255,255,.055);
  --s2: rgba(255,255,255,.030);
  --s3: rgba(255,107,26,.08);
  --glass:    rgba(255,255,255,.04);
  --glass-hi: rgba(255,255,255,.07);

  /* Radius scale uniforme */
  --r-sm:   8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --radius-sm: 10px;     /* legacy */
  --radius-md: 14px;     /* legacy */
  --radius-lg: 18px;     /* legacy */
  --radius:    22px;     /* legacy */
  --radius-xl: 22px;     /* legacy */

  /* Shadows */
  --shadow-sm:   0 4px 12px rgba(0,0,0,.25);
  --shadow:      0 12px 40px rgba(0,0,0,.45);
  --shadow-s:    0 8px 26px rgba(255,107,26,.16);
  --shadow-glow: 0 12px 40px rgba(255,107,26,.22);
}

*, *::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(1200px 600px at 70% -100px, rgba(255,107,26,.08), transparent 60%),
    radial-gradient(800px 500px at 10% 30%, rgba(93,157,255,.05), transparent 60%),
    var(--bg);
  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: -.01em;
  line-height: 1.15;
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  font-weight: 700;
}

/* 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 var(--accent);
  outline-offset: 2px;
}

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