:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #111827;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: #0f172a;
  color: white;
  padding: 1rem 0;
}

.site-header .brand h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2vw, 2.5rem);
}

.site-header .brand p {
  margin: 0.35rem 0 0;
  color: #cbd5e1;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.site-nav a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1.05rem;
  padding: 0.35rem 0.6rem;
  font-weight: 600;
  border-radius: 0.375rem;
}

.site-nav a:hover {
  color: #ffffff;
}

.hero {
  padding: 4rem 0;
  background: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 100%);
}

.hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section {
  padding: 3rem 0;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.75rem, 2vw, 2.25rem);
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin-top: 0;
}

/* "Ce que tu trouveras sur ce site" cards display in one row*/
.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.article-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
}

.article-hero h1,
.article-hero p {
  max-width: 70ch;
}

.article-hero h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.article-page {
  padding: 3rem 0 4rem;
}

.article {
  max-width: 90ch;
}

.article h2,
.article h3 {
  margin-top: 2rem;
}

.article h2 {
  margin-top: 0;
}

.article p {
  margin: 1rem 0;
  max-width: 85ch;
  text-align: justify;
}

.article .meta {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 1.5rem;
}

.article-back {
  margin-top: 1.5rem;
}

.article-back a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.article-back a:hover {
  text-decoration: underline;
}

.download-section {
  margin-top: 2.5rem;
  padding: 1rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  max-width: 85ch;
}

.download-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #0f172a;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 700;
}

.download-btn:hover {
  opacity: 0.95;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #e2e8f0;
  background: white;
}

.blog-intro {
  padding: 2rem 0;
}

.search-box {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  max-width: 500px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease;
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.blog-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-card h3 a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card h3 a:hover {
  color: #1e293b;
  text-decoration: underline;
}

.blog-card .meta {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.blog-card p {
  margin: 0.5rem 0;
}

@media (min-width: 720px) {
  .site-header {
    padding: 1.5rem 0;
  }
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .site-nav {
    margin-top: 0;
  }
  .site-nav a {
    font-size: 1.125rem;
  }
}
