/* hmm.rezapp.eu — « Mauvaise humeur » : fond noir, texte blanc/gris */

:root {
  --bg: #050505;
  --text: #ece9e5;
  --text-soft: #d6d2cd;
  --text-dim: #9a9691;
  --line: #222222;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

/* ---------- Barre supérieure ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.9);
}

.topbar-article {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

.hint {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: right;
}

.back-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  background: #161616;
  border-color: #3a3a3a;
}

/* ---------- Mur infini ---------- */

.wall-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
}

.wall {
  width: 100%;
  overflow: hidden;
  padding: 28px 0;
}

.wall-scrollable {
  overflow-x: auto;
}

.wall-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
  padding: 0 22px;
}

.card {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: clamp(200px, 23vw, 320px);
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  border-color: #4a4a4a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.85);
  outline: none;
}

.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.72) 82%, rgba(0, 0, 0, 0.92) 100%);
}

.card-title {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: normal;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* ---------- Page article ---------- */

.article-wrap {
  width: 100%;
  max-width: 47rem;
  margin: 0 auto;
  padding: 56px 24px 110px;
}

.article-title {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.article-content {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--text-soft);
}

.article-content p {
  margin: 1.15em 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #ffffff;
  font-weight: normal;
  line-height: 1.3;
  margin: 1.9em 0 0.7em;
  letter-spacing: 0.01em;
}

.article-content h1 { font-size: 1.7rem; }
.article-content h2 { font-size: 1.45rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content h4 { font-size: 1.1rem; }

.article-content em { color: var(--text); }

.article-content strong { color: #ffffff; }

.article-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4em auto;
  width: 60%;
}

.article-content ul,
.article-content ol {
  margin: 1.1em 0;
  padding-left: 1.5em;
}

.article-content li {
  margin: 0.45em 0;
}

.article-content blockquote {
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 2px solid #3a3a3a;
  color: var(--text-dim);
  font-style: italic;
}

.article-content a {
  color: #cfc7bb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .topbar { padding: 14px 16px; }
  .hint { display: none; }
  .card { width: clamp(170px, 60vw, 260px); }
  .article-wrap { padding: 36px 18px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
