/* ============================================================
   home.css — Page d'accueil
   ============================================================ */

:root {
  --home-bg: #080c14;
  --home-surface: #0d1420;
  --home-border: rgba(255, 255, 255, 0.07);
  --home-text: #e8edf5;
  --home-muted: rgba(232, 237, 245, 0.55);
  --home-accent: #3b82f6;
  --home-mono: "DM Mono", monospace;
  --home-body: "Sora", sans-serif;
}

/* ── Layout ── */
.home-wrapper {
  min-height: 100vh;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: var(--home-body);
  padding-top: var(--nav-h);
}

/* ── Hero ── */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

.home-hero-text {
  flex: 1;
  max-width: 600px;
}

.home-hero-mono {
  font-family: var(--home-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--home-accent);
  margin-bottom: 1rem;
}

.home-hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--home-text);
}

.home-hero-text h1 em {
  font-style: normal;
  color: var(--home-accent);
}

.home-hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--home-muted);
  margin-bottom: 2rem;
}

.home-hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-hero-btn {
  font-family: var(--home-mono);
  font-size: 0.75rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--home-accent);
  background: rgba(59, 130, 246, 0.06);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.home-hero-btn:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.6);
}

/* ── Décoration hero ── */
.home-hero-deco {
  flex: 0 0 320px;
  height: 320px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 10px;
  opacity: 0.6;
}

.home-deco-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-accent);
  opacity: 0;
  animation: homeDotPulse ease-in-out infinite;
  justify-self: center;
  align-self: center;
}

@keyframes homeDotPulse {
  0%,
  100% {
    opacity: 0.05;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

/* ── Section thèmes ── */
.home-themes {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.home-section-label {
  font-family: var(--home-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1.5rem;
}

/* ── Grille cartes ── */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ── Carte ── */
.home-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--home-text);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.home-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(13, 20, 32, 0.95);
  transform: translateY(-2px);
}

.home-card:hover::before {
  opacity: 1;
}

.home-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.home-card:hover .home-card-icon {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.4);
}

.home-card-icon .material-icons-round {
  font-size: 20px;
  color: var(--home-accent);
}

.home-card-body {
  flex: 1;
}

.home-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.3rem;
  color: var(--home-text);
}

.home-card-body p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--home-muted);
}

.home-card-arrow {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  margin-top: 4px;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.home-card:hover .home-card-arrow {
  color: var(--home-accent);
  transform: translateX(3px);
}
/* ── CTA conférences ── */
.home-cta {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
}

.home-cta-eyebrow {
  font-family: var(--home-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--home-accent);
  margin-bottom: 0.5rem;
}

.home-cta-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.home-cta-title em {
  font-style: normal;
  color: var(--home-accent);
}

.home-cta-desc {
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.6;
  max-width: 500px;
}

.home-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--home-accent);
  color: #fff;
  border-radius: 10px;
  font-family: var(--home-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.home-cta-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}
.home-cta-btn .material-icons-round {
  font-size: 18px;
}

/* ============================================================
   HOME — filtres + groupes  (à ajouter dans home.css)
   ============================================================ */

/* ── filtres ── */
.home-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.home-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.home-filter .material-icons-round {
  font-size: 14px;
  opacity: 0.7;
}
.home-filter:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}
.home-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.home-filter.active .material-icons-round {
  opacity: 1;
}

/* ── groupe ── */
.home-group {
  margin-bottom: 3rem;
}
.home-group--hidden {
  display: none;
}

.home-group-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.home-group-icon {
  font-size: 16px;
  color: var(--accent);
  opacity: 0.85;
}
.home-group-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0;
}
.home-group-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: auto;
  line-height: 1.6;
}

/* ── responsive filtres ── */
@media (max-width: 480px) {
  .home-filters {
    gap: 0.3rem;
  }
  .home-filter {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
  }
  .home-filter .material-icons-round {
    font-size: 13px;
  }
}

@media (max-width: 700px) {
  .home-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-hero-deco {
    flex: 0 0 240px;
    height: 240px;
  }
}

@media (max-width: 700px) {
  .home-hero {
    flex-direction: column;
    padding: 3rem 1.25rem 2rem;
  }
  .home-hero-deco {
    display: none;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-themes {
    padding: 0 1.25rem 3rem;
  }
}
