/* ===========================================================
   Genjournal — Sport & Perte de poids (version simple, sans admin)
   Design : sombre, moderne, dégradés violet/bleu
   Articles écrits directement dans le HTML — voir index.html
   =========================================================== */

:root {
  --bg: #0b0d17;
  --bg-alt: #10131f;
  --surface: #161a2b;
  --surface-2: #1c2136;
  --border: #262c47;
  --text: #eef0f8;
  --text-dim: #9aa1c2;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--text-dim); }

a { color: inherit; text-decoration: none; }

ul { padding-left: 1.2em; color: var(--text-dim); }

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
  color: var(--accent-2);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(139, 92, 246, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(139, 92, 246, 0.75); }
.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 23, 0.75);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent-2); }

.nav { display: flex; gap: 30px; }
.nav__link {
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  text-align: center;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background: radial-gradient(circle at 30% 30%, rgba(139,92,246,0.35), transparent 60%),
              radial-gradient(circle at 70% 40%, rgba(34,211,238,0.25), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__kicker {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  max-width: 760px;
  margin: 0 auto 20px;
  letter-spacing: -1px;
}
.hero__subtitle {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 1.05rem;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stats span { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Sections génériques ---------- */
.section { padding: 70px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 560px; margin-bottom: 40px; }
.section__head h2 { font-size: 2rem; }

/* ---------- Filtres ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter:hover { color: var(--text); border-color: var(--accent-2); }
.filter.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-color: transparent;
  color: #fff;
}

/* ---------- Grille d'articles ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  align-items: start;
}
.empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--text-dim);
}

.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.post__banner {
  height: 190px;
  overflow: hidden;
}
.post__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.post:hover .post__banner img { transform: scale(1.05); }
.post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.post__title { font-size: 1.15rem; margin: 0; }
.post__meta { font-size: 0.8rem; color: var(--text-dim); margin: 0; }
.post__excerpt { font-size: 0.92rem; margin: 0; }

.post__details { margin-top: 6px; }
.post__details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-2);
  list-style: none;
  padding: 6px 0;
}
.post__details summary::-webkit-details-marker { display: none; }
.post__details summary::before {
  content: "+ ";
}
.post__details[open] summary::before {
  content: "− ";
}
.post__content {
  padding-top: 8px;
  color: var(--text);
  font-size: 0.92rem;
}
.post__content p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--accent-2);
  border: 1px solid var(--border);
  width: fit-content;
}

/* ---------- À propos ---------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}
.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.about__card h3 { color: var(--accent-2); }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; max-width: 560px; }
.newsletter__form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter__form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
}
.newsletter__form input:focus { outline: 2px solid var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-alt);
}
.footer__inner p { margin: 6px 0 0; font-size: 0.85rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav__burger { display: flex; }
  .hero__stats { gap: 30px; }
}
