:root {
  --bg: #000000;
  --bg-2: #050505;
  --surface: #0c0c0c;
  --surface-2: #131313;
  --border: #1f1f1f;
  --text: #e8eaf0;
  --muted: #a1a1aa;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(139, 92, 246, 0.04), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.accent {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--muted); font-weight: 500; padding: 8px 14px; border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-links a.active { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .35); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; padding: 13px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, .65);
}
.btn-primary:hover { background: #7c4dee; box-shadow: 0 12px 28px -8px rgba(139, 92, 246, .8); }
.btn-sm { padding: 10px 16px; font-size: .95rem; gap: 8px; }
.btn:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- Accueil ---------- */
.hero { padding: 110px 0 80px; }
.hero h1 { max-width: 820px; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-soft);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 620px; margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.features { padding: 10px 0 90px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(139, 92, 246, .45); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.3rem;
  border-radius: 12px; background: var(--accent-soft); margin-bottom: 16px;
}
.card h2 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Fichiers ---------- */
.page { padding-top: 64px; padding-bottom: 80px; }
.page-head { margin-bottom: 30px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
.page-head p { margin: 8px 0 0; }

.file-list { display: flex; flex-direction: column; gap: 14px; }
.file {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  transition: border-color .2s, background .2s;
}
.file:hover { border-color: rgba(139, 92, 246, .45); background: var(--surface-2); }
.file-type {
  flex: none; width: 56px; height: 64px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  position: relative; color: #fff;
}
.file-type::after { /* coin plié */
  content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px;
  background: linear-gradient(225deg, var(--surface) 50%, rgba(255,255,255,.35) 50%);
  border-bottom-left-radius: 4px;
}
.file:hover .file-type::after { background: linear-gradient(225deg, var(--surface-2) 50%, rgba(255,255,255,.35) 50%); }
.t-pdf { background: #e5484d; }
.t-doc { background: #3b82f6; }
.t-xls { background: #22a06b; }
.t-ppt { background: #f97316; }
.t-zip { background: #a16207; }
.t-img { background: #db2777; }
.t-media { background: #0891b2; }
.t-txt { background: #64748b; }
.t-autre { background: var(--accent); }

.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-desc { margin: 4px 0 0; color: var(--muted); }
.file-meta { margin: 6px 0 0; font-size: .85rem; color: #71717a; white-space: pre-wrap; }
.tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; color: #fbbf24; background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .3);
}

.empty {
  text-align: center; padding: 60px 24px; border: 1px dashed var(--border);
  border-radius: var(--radius); background: var(--bg-2);
}
.empty-icon { font-size: 2.4rem; margin-bottom: 10px; }
.empty h2 { font-size: 1.2rem; margin-bottom: 6px; }
.empty p { margin: 0; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 56px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .nav-links a { padding: 7px 12px; }
  .page { padding-top: 40px; }
  .file { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .file-type { width: 46px; height: 54px; font-size: .66rem; align-self: flex-start; }
  .file-info { flex: 1 1 calc(100% - 64px); }
  .file .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
