:root {
  --bg: #F8F6F1;
  --text: #141F38;
  --muted: #525E7A;
  --border: #E6E2DA;
  --accent: #141F38;
  --accent-text: #F8F6F1;
  --max: 1100px;
  --narrow: 720px;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  word-break: break-word;
}

h1 {
  font-size: 2.2rem;
  font-weight: 600;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

h3 {
  font-size: 1.3rem;
  font-weight: 500;
}

.container {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 1.5rem, var(--narrow));
  margin-inline: auto;
}

/* ===== HEADER ===== */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0;
}

/*navbar*/
.site-header {
  background: #FFF;
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.site-brand {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center; /* important */
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center; /* aligne verticalement */
  height: 64px; /* match navbar */
}

.site-nav a:hover {
  color: var(--text);
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}
/* ===== HEADER ===== */

.site-main {
  min-height: 70vh;
}

.hero {
  padding: 4rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
}

.hero h1 {
  margin: 0 0 1rem;
  line-height: 1.15;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-text {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.125rem;
}

.section {
  padding: 2rem 0 4rem;
}

.post-list {
  display: grid;
  gap: 1.5rem;
}

.post-card {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.post-card h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.4rem;
  line-height: 1.25;
}

.post-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post {
  padding: 3rem 0 4rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  margin: 0.5rem 0 1rem;
  line-height: 1.15;
  font-size: clamp(2rem, 4vw, 3rem);
}

.post-description {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ===== ARTICLE STRUCTURE ===== */
.post-content {
  font-size: 15.5px;
}

/* Bloc résumé */
.key-points {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.key-points strong {
  display: block;
  margin-bottom: 0.5rem;
}

.key-points ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* CTA */
.post-cta {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.post-cta p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  line-height: 1.25;
  margin-top: 2rem;
}

.post-content p,
.post-content ul,
.post-content ol {
  margin: 1rem 0;
}

.post-content ul,
.post-content ol {
  padding-left: 1.25rem;
}
/* ===== ARTICLE STRUCTURE ===== */

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 240px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-right {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap; 
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text);
}
/* ===== FOOTER ===== */

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.button:hover {
  opacity: 0.9;
}