/* Design system UNIVERSE — toute couleur/espacement passe par ces variables. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0a0f1a;
  --text: #eaf4ff;
  --muted: #8fa3bd;
  --border: #16233a;
  --accent: #1fb6ff;        /* bleu électrique */
  --accent-clair: #9be4ff;  /* cœur du néon */
  --accent-text: #00101c;
  --alerte: #ff5d73;        /* rappels et urgences, à utiliser avec parcimonie */
  /* Couleurs de branche (seul le nom de la plateforme les prend ; le bleu UNIVERSE ne change jamais) */
  --pro: #ff8a3d;
  --life: #5ad46a;
  --student: #ffc83d;
  --kids: #b07cff;
  /* Planning : une couleur pleine par code de la journée (fond) et le texte lisible posé dessus */
  --code-t: #1fb6ff;   --code-t-txt: #00101c;   /* travail */
  --code-r: #2a3346;   --code-r-txt: #c9d6ea;   /* repos */
  --code-cp: #3ddc84;  --code-cp-txt: #002412;  /* congé payé */
  --code-rtt: #ffd23f; --code-rtt-txt: #2a2000; /* RTT */
  --code-rc: #7c8cff;  --code-rc-txt: #070a30;  /* récupération */
  --code-for: #c084fc; --code-for-txt: #1e0633; /* formation */
  --code-mal: #ff5d73; --code-mal-txt: #2b0008; /* maladie */
  --code-evf: #ff7ac6; --code-evf-txt: #2e0021; /* événement familial */
  --code-css: #d4a373; --code-css-txt: #241503; /* sans solde */
  --code-abs: #9aa3b5; --code-abs-txt: #0b0f17; /* autre absence */
  --code-anj: #c2185b; --code-anj-txt: #ffffff; /* absence non justifiée */
  --code-fer: #ff8a3d; --code-fer-txt: #2b1000; /* férié chômé */
  /* Effectifs : au-dessus du besoin, juste au besoin, en dessous */
  --effectif-plus: #2fbf71;   --effectif-juste: #ff9f43;   --effectif-manque: #ff4d61;   --effectif-txt: #0b0f17;
  --radius: 14px;
  --gap: 16px;
  --maxw: 1100px;
  --bar-h: 56px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  /* mobile : place pour la barre d'onglets en bas + encoche iPhone */
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 9vw, 5rem); letter-spacing: .08em; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) max(var(--gap), env(safe-area-inset-right)) 10px max(var(--gap), env(safe-area-inset-left));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .12em; text-decoration: none; }

/* Navigation : onglets en bas sur téléphone, en haut sur grand écran */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.nav a {
  flex: 1; display: grid; place-items: center;
  min-height: 44px;
  text-decoration: none; font-size: .9rem; color: var(--muted);
}
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

main { max-width: var(--maxw); margin: 0 auto; padding: var(--gap); outline: none; }
.hero { min-height: 70dvh; gap: 28px; display: grid; place-content: center; justify-items: center; text-align: center; }
.page { padding-top: var(--gap); }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  background: var(--accent); color: var(--accent-text);
  border-radius: 999px; font-weight: 600; text-decoration: none;
}

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .nav { position: static; height: auto; padding: 0; background: none; border: 0; gap: 8px; }
  .nav a { flex: none; padding: 0 14px; border-radius: 999px; }
  .nav a[aria-current="page"] { background: var(--surface); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Logo validé (dessin et animation : marque/logo.js et marque/logo.css) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.logo { display: block; width: min(640px, 88vw); padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius); }
.logo .ul { width: 100%; height: auto; }
.brand .marque { display: block; }
.brand .marque .ul { height: 30px; width: auto; }
@media (max-width: 480px) { .brand .marque .ul { height: 24px; } }
.suite { display: grid; justify-items: center; gap: 8px; animation: apparait .8s 3.8s both; }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .suite { animation: none; }
}
