/* ========================================================================
   STI2D-paradise · v2
   Modern dark UI: aurora blobs + glassmorphism + micro-anims
   ======================================================================== */

/* ---------- 0. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #07070C;
  --bg-elev: #0C0C14;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --nav-bg: rgba(8, 8, 14, 0.88);
  --dropdown-bg: rgba(10, 10, 16, 0.97);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #F2F0EA;
  --text-muted: #9CA0A8;
  --text-dim: #6A6F78;
  --gold: #C8A97E;
  --gold-soft: #FFE4BE;
  --aurora-1: #8B5CF6;
  --aurora-2: #06B6D4;
  --aurora-3: #EC4899;
  --aurora-4: #F59E0B;
  --ring: rgba(200, 169, 126, 0.65);
  --grid-color: rgba(255, 255, 255, 0.035);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.25);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 80px rgba(0,0,0,0.45);
  --glow-gold: 0 0 0 1px rgba(200,169,126,0.25), 0 12px 40px rgba(200,169,126,0.18);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .18s;
  --t-base: .26s;
  --t-slow: .5s;

  --pad: clamp(16px, 4vw, 28px);
  --maxw: 1180px;
}

[data-theme="light"] {
  --bg: #F6F5F1;
  --bg-elev: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --nav-bg: rgba(246, 245, 241, 0.92);
  --dropdown-bg: rgba(255, 255, 255, 0.98);
  --border: rgba(15, 14, 11, 0.08);
  --border-strong: rgba(15, 14, 11, 0.18);
  --text: #0F0E0B;
  --text-muted: #4E5460;
  --text-dim: #6F7480;
  --grid-color: rgba(15, 14, 11, 0.045);
  --shadow-1: 0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 24px rgba(15,14,11,0.06);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.6) inset, 0 24px 80px rgba(15,14,11,0.10);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Sora', Inter, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { color: var(--text-muted); }

::selection { background: var(--gold); color: #0a0a0a; }

/* ---------- 3. Aurora backdrop ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% -20%, rgba(139,92,246,0.12), transparent 60%), var(--bg);
}
.aurora .blob {
  position: absolute;
  width: 52vmax; height: 52vmax;
  border-radius: 50%;
  filter: blur(80px) saturate(140%);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
  animation: drift 28s var(--ease) infinite alternate;
}
[data-theme="light"] .aurora .blob {
  opacity: 0.35;
  filter: blur(110px) saturate(120%);
  mix-blend-mode: multiply;
}
.aurora .blob-1 { background: radial-gradient(circle, var(--aurora-1), transparent 60%); top: -18%; left: -12%; animation-duration: 26s; }
.aurora .blob-2 { background: radial-gradient(circle, var(--aurora-2), transparent 60%); top: -8%; right: -18%; animation-duration: 32s; animation-delay: -8s; }
.aurora .blob-3 { background: radial-gradient(circle, var(--aurora-3), transparent 60%); bottom: -28%; left: 10%; animation-duration: 36s; animation-delay: -14s; }
.aurora .blob-4 { background: radial-gradient(circle, var(--aurora-4), transparent 60%); bottom: -20%; right: -8%; animation-duration: 30s; animation-delay: -4s; opacity: 0.4; }

.aurora .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 90%);
}

.aurora .noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.06; mix-blend-mode: overlay;
}

@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(6%, -4%, 0) scale(1.08); }
  100% { transform: translate3d(-4%, 6%, 0) scale(0.96); }
}

/* ---------- 4. Layout ---------- */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--pad) 96px;
}

.section { margin-top: clamp(40px, 7vw, 80px); }
.section-head { margin-bottom: 24px; max-width: 640px; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--text-muted); }

.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.crumbs a { color: var(--text-muted); transition: color var(--t-fast); }
.crumbs a:hover { color: var(--text); }
.crumbs span { opacity: 0.45; }

.page-head { margin: 8px 0 32px; }
.page-head h1 { margin-bottom: 6px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { color: var(--text-muted); }

/* ---------- 5. Nav ---------- */
.nav {
  position: sticky; top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  max-width: var(--maxw);
  padding: 10px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: var(--shadow-1);
  width: calc(100% - 2 * var(--pad));
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: transform var(--t-base) var(--ease);
}
.brand:hover { transform: translateY(-1px); }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}
.brand-text i { color: var(--gold); font-style: normal; margin: 0 2px; }

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.dropdown { position: relative; }
.dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500; font-size: 0.92rem;
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.dropdown-trigger:hover,
.dropdown:hover .dropdown-trigger,
.dropdown[open] .dropdown-trigger {
  background: var(--surface-strong);
  color: var(--text);
}
.dropdown-trigger svg { transition: transform var(--t-base) var(--ease); }
.dropdown:hover .dropdown-trigger svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  padding: 8px;
  background: var(--dropdown-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow: var(--shadow-2);
  isolation: isolate;
  z-index: 60;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base);
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
}
.dropdown-menu a span { flex: 1; min-width: 0; }
.dropdown-menu a em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 24px; text-align: center;
}
.dropdown-menu a:hover {
  background: var(--surface);
  color: var(--text);
  padding-left: 16px;
}
.dropdown-menu a:hover em { color: var(--gold); border-color: rgba(200, 169, 126, 0.3); }
.dropdown-all {
  color: var(--gold) !important;
  font-weight: 600;
}
.dropdown-all:hover { color: var(--gold-soft) !important; }
.dropdown-sep {
  display: block;
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.nav-right { display: flex; align-items: center; gap: 8px; }
.search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  transition: border-color var(--t-base), background var(--t-base);
  min-width: 220px;
}
.search:focus-within {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  color: var(--text);
}
.search input {
  flex: 1; min-width: 0;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text);
}
.search input::placeholder { color: var(--text-dim); }
.search kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  background: var(--bg-elev);
}

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-strong); color: var(--text); border-color: var(--border-strong); }

#theme-toggle .i-moon { display: none; }
[data-theme="light"] #theme-toggle .i-sun { display: none; }
[data-theme="light"] #theme-toggle .i-moon { display: block; }

.nav-burger { display: none; }
.nav-burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  margin: 3px 0;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  padding: clamp(40px, 9vw, 90px) 0 clamp(30px, 5vw, 60px);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero-compact { padding-bottom: 40px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: pulse 2.4s infinite;
}
.hero-tag .dot-red { background: #EF4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero-title {
  margin: 18px auto 16px;
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.grad {
  background: linear-gradient(135deg, var(--aurora-1) 0%, var(--aurora-3) 50%, var(--aurora-4) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s var(--ease) infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-sub {
  margin: 0 auto 28px;
  max-width: 560px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--text-muted);
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 540px; margin: 0 auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-stats > div {
  padding: 18px 12px;
  background: var(--surface);
  text-align: center;
}
.hero-stats strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform var(--t-base) var(--ease), background var(--t-base), box-shadow var(--t-base), color var(--t-base);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { transition: transform var(--t-base) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  color: #0A0A0F;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: var(--glow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(200,169,126,0.4), 0 18px 50px rgba(200,169,126,0.32);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* ---------- 8. Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ---------- 9. Cards ---------- */
.card {
  position: relative;
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0%, transparent 70%, var(--gold) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-slow);
  pointer-events: none;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
  border-radius: inherit;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow-2);
}
.card:hover::before { opacity: 1; animation: rotate 4s linear infinite; }
.card:hover::after { opacity: 1; }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rotate { to { --angle: 360deg; } }

.card-year { padding: 32px; }
.card-year-num {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.card-year-body h3 { font-size: 1.4rem; margin-bottom: 6px; }
.card-year-body p { color: var(--text-muted); font-size: 0.92rem; }
.card-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform var(--t-base) var(--ease), background var(--t-base);
}
.card:hover .card-arrow {
  transform: rotate(-45deg);
  background: var(--gold);
  color: #0a0a0a;
  border-color: transparent;
}

.cat-block { margin-bottom: 32px; }
.cat-title {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.cat-pill {
  display: inline-block;
  padding: 6px 14px;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  background: rgba(200, 169, 126, 0.08);
  border: 1px solid rgba(200, 169, 126, 0.22);
  border-radius: 999px;
}
.cat-count {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
}

.card-matiere {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
}
.card-matiere-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease), background var(--t-base);
}
.card-matiere:hover .card-matiere-icon { transform: rotate(-6deg) scale(1.05); }
.card-matiere-label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card-matiere-label strong { font-weight: 500; font-size: 0.94rem; color: var(--text); line-height: 1.25; }
.card-matiere-label em { font-style: normal; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; }
.card-matiere-arrow { color: var(--text-dim); transition: transform var(--t-base) var(--ease), color var(--t-base); }
.card-matiere:hover .card-matiere-arrow { transform: translateX(4px); color: var(--gold); }

.card-file {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  min-height: 130px;
}
.card-file-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}
.card-file-icon.is-pdf { color: #F87171; }
.card-file-icon.is-folder { color: var(--aurora-2); }
.card-file-body { flex: 1; }
.card-file-body strong { display: block; font-size: 0.92rem; color: var(--text); line-height: 1.3; margin-bottom: 3px; }
.card-file-body em { font-style: normal; font-size: 0.74rem; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; }
.card-file-arrow { position: absolute; right: 18px; bottom: 18px; color: var(--text-dim); transition: transform var(--t-base) var(--ease), color var(--t-base); }
.card-file:hover .card-file-arrow { transform: translateX(4px); color: var(--gold); }

/* ---------- 10. Lists / rows ---------- */
.list {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: background var(--t-fast), transform var(--t-fast) var(--ease);
}
.row:hover { background: var(--surface-strong); transform: translateX(3px); }
.row-icon { color: #F87171; display: grid; place-items: center; flex-shrink: 0; }
.row-body { flex: 1; min-width: 0; }
.row-body strong {
  display: block; font-size: 0.92rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-body em { font-style: normal; font-size: 0.75rem; color: var(--text-dim); display: inline-flex; gap: 6px; align-items: center; }
.row-sub { color: var(--gold); opacity: 0.85; }
.row-arrow { color: var(--text-dim); transition: color var(--t-fast), transform var(--t-fast); }
.row:hover .row-arrow { color: var(--gold); transform: translate(2px, -2px); }

.empty {
  padding: 60px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* Explore section titles ("Dossiers" / "Fichiers") */
.explore-section {
  display: flex; align-items: center; gap: 10px;
  margin: 32px 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
}
.explore-section-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--aurora-2);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.explore-section-pill.is-pdf {
  color: #F87171;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.22);
}
.explore-section-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
}
.card-folder { min-height: 110px; }
.card-folder .card-file-icon.is-folder { color: var(--aurora-2); }

/* ---- Upload type toggle ---- */
.type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.type-opt { cursor: pointer; }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt > span {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease);
}
.type-opt > span svg { grid-row: 1 / 3; color: var(--text-muted); }
.type-opt > span strong { font-size: 0.94rem; color: var(--text); }
.type-opt > span em { font-style: normal; font-size: 0.78rem; color: var(--text-muted); }
.type-opt:hover > span { border-color: var(--border-strong); background: var(--surface-strong); }
.type-opt input:checked + span {
  border-color: var(--gold);
  background: rgba(200,169,126,0.08);
  box-shadow: 0 0 0 1px var(--gold);
}
.type-opt input:checked + span svg,
.type-opt input:checked + span strong { color: var(--gold); }
.type-opt input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 3px; }

@media (max-width: 520px) {
  .type-toggle { grid-template-columns: 1fr; }
}

/* ---- Pending type badge ---- */
.pending-type-badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid;
  margin-right: 8px;
  vertical-align: middle;
}
.pending-type-badge.type-cours {
  color: var(--aurora-2);
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.28);
}
.pending-type-badge.type-fiche {
  color: var(--gold);
  background: rgba(200, 169, 126, 0.08);
  border-color: rgba(200, 169, 126, 0.32);
}
.dot.dot-amber { background: #F59E0B; box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
@keyframes pulse-amber {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}

/* ---------- Forms ---------- */
.form {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 18px;
}
.form-narrow { max-width: 440px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.005em;
}
.field .hint { color: var(--text-dim); font-weight: 400; font-size: 0.78rem; }

.field input[type="text"],
.field input[type="password"],
.field input[type="search"],
.field input[type="email"],
.field select,
.field textarea {
  padding: 11px 14px;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field input:hover,
.field select:hover { border-color: var(--border-strong); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-elev);
  box-shadow: 0 0 0 3px rgba(200,169,126,0.18);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA0A8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 6px;
}
.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.55;
}

/* File drop */
.file-drop {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  transition: border-color var(--t-base), background var(--t-base);
  cursor: pointer;
}
.file-drop input[type=file] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.file-drop-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 32px 20px;
  color: var(--text-muted);
  text-align: center;
}
.file-drop-inner strong { color: var(--text); font-size: 0.95rem; font-weight: 600; }
.file-drop-inner em { font-style: normal; font-size: 0.82rem; color: var(--text-dim); }
.file-drop .file-name {
  display: none;
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-drop.has-file .file-name { display: inline-block; }
.file-drop.has-file { border-style: solid; border-color: rgba(200,169,126,0.4); background: rgba(200,169,126,0.04); }
.file-drop.is-drag { border-color: var(--gold); background: rgba(200,169,126,0.07); }
.file-drop.too-big { border-color: #EF4444; background: rgba(239,68,68,0.06); }
.file-drop.too-big .file-name { color: #FCA5A5; }

/* Alerts */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid var(--border);
}
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert-ok  { background: rgba(16,185,129,0.08);  border-color: rgba(16,185,129,0.32);  color: #6EE7B7; }
.alert-err { background: rgba(239,68,68,0.08);   border-color: rgba(239,68,68,0.32);   color: #FCA5A5; }
.alert strong { color: inherit; }

/* Buttons size variants */
.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
  border-radius: 999px;
}
.btn-danger {
  color: #FCA5A5;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.28);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-danger:hover {
  background: rgba(239,68,68,0.16);
  border-color: rgba(239,68,68,0.5);
  color: #FECACA;
  transform: translateY(-1px);
}

/* Nav action (Proposer) */
.nav-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(135deg, rgba(200,169,126,0.18), rgba(200,169,126,0.08));
  border: 1px solid rgba(200,169,126,0.28);
  border-radius: 999px;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.nav-action:hover {
  background: linear-gradient(135deg, rgba(200,169,126,0.32), rgba(200,169,126,0.16));
  border-color: rgba(200,169,126,0.5);
  transform: translateY(-1px);
}
@media (max-width: 720px) { .nav-action span { display: none; } }

/* Admin pending list */
.page-head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 12px;
}
.admin-toolbar { display: flex; align-items: center; gap: 10px; }
.admin-user {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.pending-list {
  display: flex; flex-direction: column; gap: 16px;
}
.pending-card {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.pending-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap;
}
.pending-title strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.pending-meta { font-size: 0.78rem; color: var(--text-dim); }
.pending-meta em { font-style: normal; }
.pending-submitter {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.pending-submitter strong { color: var(--text); font-weight: 600; }
.pending-iphash {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.pending-form { display: flex; flex-direction: column; gap: 12px; }
.pending-form .form-row { gap: 10px; }
.pending-form .field input,
.pending-form .field select {
  padding: 9px 12px;
  font-size: 0.88rem;
}
.pending-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
@media (max-width: 560px) {
  .pending-head { flex-direction: column; align-items: stretch; }
  .pending-actions { justify-content: stretch; }
  .pending-actions > * { flex: 1; }
  .pending-actions .btn { width: 100%; justify-content: center; }
}
.empty a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 11. CTA banner ---------- */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  padding: 32px;
  background:
    radial-gradient(circle at 15% 30%, rgba(139,92,246,0.18), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(236,72,153,0.16), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.cta-banner h2 { margin-bottom: 4px; font-size: 1.5rem; }
.cta-banner p { color: var(--text-muted); }

/* ---------- 12. Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 32px auto 24px;
  padding: 0 var(--pad);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-brand { color: var(--text); font-weight: 600; }
.footer .sep { margin: 0 8px; color: var(--text-dim); }
.footer .ig { display: inline-flex; align-items: center; gap: 6px; transition: color var(--t-fast); }
.footer .ig:hover { color: var(--gold); }
.footer .ig i { color: var(--gold); font-style: italic; }

/* ---------- 13. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-in {
  opacity: 1; transform: none;
}
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }
.reveal:nth-child(5) { transition-delay: .24s; }
.reveal:nth-child(6) { transition-delay: .3s; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 880px) {
  .nav { grid-template-columns: auto auto; padding: 8px 12px; gap: 8px; }
  .nav-menu {
    position: fixed; inset: 90px 16px auto 16px;
    flex-direction: column; align-items: stretch;
    padding: 14px;
    background: var(--dropdown-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    box-shadow: var(--shadow-2);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base);
  }
  .nav[data-open="true"] .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .dropdown { display: block; }
  .dropdown-trigger { width: 100%; justify-content: space-between; padding: 12px 14px; border-radius: 12px; }
  .dropdown-menu {
    position: static; transform: none;
    opacity: 1; visibility: visible;
    box-shadow: none; border: 0; background: transparent;
    padding: 4px 0 4px 14px;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    display: none;
  }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.is-open .dropdown-menu { display: block; }
  .search { display: none; }
  .nav-burger { display: grid; place-items: center; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .card-year { padding: 22px; }
  .card-year-num { font-size: 2.8rem; }
  .card-arrow { width: 32px; height: 32px; top: 16px; right: 16px; }
  .hero-stats > div { padding: 12px 8px; }
  .hero-stats strong { font-size: 1.4rem; }
  .footer-inner { flex-direction: column; text-align: center; padding: 16px; border-radius: var(--radius-lg); }
}

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .aurora .blob { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
