:root {
  --brand-1: #1e3c72;
  --brand-2: #2a5298;
  --bg: #f9fafc;
  --text: #333;
  --muted: #6b7280;
  --card: #fff;
  --link: #2a5298;
  --hover-bg: #e8f0fe;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  text-align: center;
  padding: 50px 20px;
}
header .title {
  font-size: 2.5em;
  font-weight: 700;
}
header .subtitle {
  margin-top: 10px;
  font-size: 1.1em;
  font-weight: 300;
}

/* NAVIGATION */
nav {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
}
nav a {
  margin: 0 15px;
  text-decoration: none;
  font-weight: 600;
  color: var(--link);
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--link);
  transition: width 0.3s ease;
}
nav a:hover::after {
  width: 100%;
}

/* === CONTAINERS === */
.container,
.container-home,
.container-static {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Article avec sidebar */
.container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
}
@media (max-width: 960px) {
  .container { grid-template-columns: 1fr; }
}

/* Home en layout vertical */
.container-home {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Pages statiques */
.container-static {
  display: flex;
  justify-content: center; /* centre la card */
}

/* === CARDS === */
.article-card-main,
.static-card {
  background: var(--card);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 1200px; /* largeur uniforme */
  margin: 0 auto;
}

/* TITRES DANS LES CARDS */
.article-card-main h1,
.static-card h1 {
  font-size: 2em;
  color: var(--brand-1);
  margin-bottom: 15px;
}

/* Contenu dans les cards */
.article-card-main .content p,
.static-card p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #444;
}

/* INTRO (Home) */
.intro {
  background: var(--card);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}
.intro h1 {
  color: var(--brand-1);
  font-size: 1.8em;
  margin-bottom: 10px;
}

/* ARTICLES GRID (Home) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 20px;
  transition: transform 0.2s ease;
}
.article-card:hover {
  transform: translateY(-5px);
}
.article-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--brand-1);
}
.article-card p {
  font-size: 0.95em;
  color: #555;
}
.article-card a {
  text-decoration: none;
  color: var(--link);
  font-weight: 600;
}

/* PREV / NEXT LINKS */
.nav-articles {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  border-top: 1px solid #e5e7eb;
  padding-top: 15px;
}
.nav-articles a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}
.nav-articles a:hover { color: var(--brand-1); }
@media (max-width: 600px) {
  .nav-articles { flex-direction: column; gap: 10px; }
}

/* SIDEBAR */
aside {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}
aside h3 {
  color: var(--brand-1);
  margin-bottom: 15px;
}
aside ul {
  list-style: none;
}
aside li {
  margin: 10px 0;
}
aside li a {
  color: var(--link);
  text-decoration: none;
}
aside li a:hover { text-decoration: underline; }

/* FOOTER */
footer {
  background: var(--brand-1);
  color: #ecf0f1;
  text-align: center;
  padding: 25px 15px;
  margin-top: 50px;
  font-size: 0.95em;
}
footer a {
  color: #6dd5fa;
  font-weight: 600;
  text-decoration: none;
}
footer a:hover { color: #fff; }

/* RESPONSIVE TEXT */
@media (max-width: 900px) {
  header .title { font-size: 2.2em; }
  .article-card-main h1,
  .static-card h1 { font-size: 1.6em; }
}
@media (max-width: 600px) {
  header .title { font-size: 1.8em; }
  .article-card-main h1,
  .static-card h1 { font-size: 1.3em; }
}