:root {
  --bg: #ffffff;
  --paper: #fbfcfd;
  --text: #111111;
  --muted: #6b7280;
  --primary: #184366;
  --radius: 12px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

header {
  background: transparent;
  color: var(--text);
  text-align: center;
  padding: 3rem 1rem 1rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

#articles-container {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.article-card,
.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(24, 67, 102, 0.06);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  border: 1px solid rgba(24, 67, 102, 0.05);
}
.article-card:hover,
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(24, 67, 102, 0.08);
}

.card-image img,
.article-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-title,
.article-card h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.card-date,
.card-description {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-description,
.article-card p {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
}

.card-cta,
.btn-lire {
  display: inline-block;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  align-self: flex-start;
  transition:
    background-color 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease;
}
.card-cta:hover,
.btn-lire:hover {
  background: rgba(24, 67, 102, 0.06);
  color: var(--primary);
}

.article-complet {
  background: var(--paper);
  padding: 2.25rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(24, 67, 102, 0.06);
  border: 1px solid rgba(24, 67, 102, 0.04);
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.article-header time {
  color: var(--muted);
  font-size: 0.95rem;
}
.article-header h1 {
  margin: 0.35rem 0 1rem;
  font-size: 1.8rem;
  color: var(--text);
}

.article-body {
  color: var(--text);
  margin-top: 1rem;
}

.btn-retour {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

#load-more-btn {
  display: inline-block;
  margin: 2.5rem auto 0;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 600px) {
  .card-image img,
  .article-card img {
    height: 160px;
  }
  main {
    padding: 2rem 1rem;
  }
}

.muted {
  color: var(--muted);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
