/* =========================================================
   LSPDFR Hub — Feuille de style principale
   Palette : fond #0d0d0d · violet #8b5cf6 · rose #ec4899
   ========================================================= */

/* ---- Reset & variables ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #0d0d0d;
  --bg-card:     #141414;
  --bg-card-h:   #1a1a1a;
  --border:      #2a2a2a;
  --violet:      #8b5cf6;
  --violet-dim:  #6d28d9;
  --pink:        #ec4899;
  --pink-dim:    #be185d;
  --text:        #e5e7eb;
  --text-muted:  #6b7280;
  --radius:      12px;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.logo__bracket { color: var(--text-muted); }
.logo__accent  { color: var(--violet); }

/* Nav */
.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  transition: width .25s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Burger (mobile) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  text-align: center;
}

/* Lueurs néon en arrière-plan */
.hero__glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}
.hero__glow--left  { background: var(--violet); top: -100px; left: -100px; }
.hero__glow--right { background: var(--pink);   bottom: -100px; right: -100px; }

.hero__content { position: relative; z-index: 1; }

.hero__badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--violet);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  max-width: 560px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* États de chargement des cartes */
.cards__loading,
.cards__empty,
.cards__error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.cards__error { color: #f87171; }

/* =========================================================
   BOUTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--bg-card);
  border-color: var(--violet);
  transform: translateY(-2px);
}

/* =========================================================
   SECTION
   ========================================================= */
.section {
  padding: 5rem 0;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section__title {
  font-size: 1.6rem;
  font-weight: 700;
}

.section__link {
  color: var(--violet);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}
.section__link:hover { color: var(--pink); }

/* =========================================================
   CARTES CALLOUTS
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}

.card:hover {
  border-color: var(--violet);
  background: var(--bg-card-h);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
}
.card__badge--hot {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: var(--pink);
}
.card__badge--new {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

.card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card__footer strong { color: var(--text); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand { font-size: 1.1rem; font-weight: 700; }

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 520px;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
}
.footer__nav a {
  color: var(--text-muted);
  transition: color .2s;
}
.footer__nav a:hover { color: var(--violet); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .nav__list { display: none; }
  .nav__burger { display: flex; }

  .nav__list--open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(13, 13, 13, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }
  .nav__list--open .nav__link {
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__list--open .nav__link:last-child { border-bottom: none; }

  .hero { padding: 4rem 0; }
  .section { padding: 3rem 0; }

  .cards { grid-template-columns: 1fr; }

  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}
