/* ===========================
   Philippe Ihuel — style.css v2
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f8f5f0;
  --bg-dark: #1e1a16;
  --text: #1a1614;
  --muted: #72675e;
  --border: #e2d9cf;
  --accent: #8b5e3c;
  --accent-light: #f0e6db;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --max: 960px;
  --reading-width: 640px;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
}

/* ---- Page container ---- */

.page-container {
  max-width: var(--max);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

main {
  padding-top: 2rem;
}

/* ---- Banner image ---- */

.site-banner {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(160deg, #1e2d1e 0%, #2e4a30 40%, #1a2a2a 100%);
}

.site-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  opacity: 0.92;
}

/* ---- Site header (dark band) ---- */

.site-header {
  background: var(--bg-dark);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand { display: flex; flex-direction: column; gap: 0.15rem; }

.site-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: #f8f5f0;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-title:hover { color: #d4b99a; }

.site-subtitle {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.site-tagline {
  font-size: 0.72rem;
  font-style: italic;
  color: #a09488;
  font-family: var(--serif);
  white-space: nowrap;
}

.site-desc {
  font-size: 0.72rem;
  color: #6b6058;
  line-height: 1.5;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: #a09488;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}

nav a:hover,
nav a.active { color: #f8f5f0; }


/* ---- Hero ---- */

.hero {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hero-name {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-body {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}

.hero-body strong {
  color: var(--text);
  font-weight: 500;
}

/* ---- Section label ---- */

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ---- Post list ---- */

.post-list { list-style: none; margin-bottom: 2rem; }

.post-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list-item:first-child { border-top: 1px solid var(--border); }

.post-list-left { display: flex; flex-direction: column; gap: 0.3rem; }

.post-list-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s;
}

.post-list-title:hover { color: var(--accent); }

.post-tags { display: flex; gap: 0.4em; }

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.15em 0.55em;
  border-radius: 2px;
  text-transform: lowercase;
  text-decoration: none;
}

.post-list-meta {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---- Voir tout ---- */

.see-all {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.1em;
  transition: border-color 0.15s;
}

.see-all:hover { border-color: var(--accent); }

/* ---- Article ---- */

.article-back {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  margin: 2rem 0 1.5rem;
}

.article-back:hover { color: var(--text); }
.article-back::before { content: '← '; }

.article-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.article-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--reading-width);
  flex: 1;
}

.article-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  min-width: 120px;
  flex-shrink: 0;
}

.article-date-badge::before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin-bottom: 0.4rem;
}

.badge-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}

.badge-month {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.badge-day {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  font-family: var(--sans);
}

.article-header time {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.article-header h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-body { margin-bottom: 5rem; max-width: var(--reading-width); }

.article-body p { margin-bottom: 1.4rem; }

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.article-body ul, .article-body ol {
  margin: 0 0 1.4rem 1.5rem;
}

.article-body li { margin-bottom: 0.35em; }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.75rem 0;
  background: var(--accent-light);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--text);
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 4px;
}

/* ---- About ---- */

.about-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.about-hero h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.about-body { max-width: var(--reading-width); }

.about-body p { margin-bottom: 1.25rem; color: var(--text); }

.about-body h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent);
  margin: 2.5rem 0 0.75rem;
}

.about-body a { color: var(--accent); }

/* ---- Resources ---- */

.page-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  padding: 3.5rem 0 0.75rem;
}

.page-intro {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 460px;
  margin-bottom: 3rem;
}

.resources-section { margin-bottom: 3rem; }

.resources-section h2 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.resources-list { list-style: none; }

.resources-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.resources-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
}

.resources-list a:hover { color: var(--accent); }

.res-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ---- Footer ---- */

footer {
  background: transparent;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---- Responsive ---- */

@media (max-width: 580px) {
  html { font-size: 15px; }
  .site-header { padding: 1rem; }
  .hero-name { font-size: 2rem; }
  .post-list-item { grid-template-columns: 1fr; }
  .post-list-meta { font-size: 0.75rem; }
}
