/* ============================================
   PAGES - Styles spécifiques aux pages
   ============================================ */

/* ========== PAGE D'ACCUEIL ========== */

.home-hero {
  background: linear-gradient(135deg, rgba(0, 103, 255, 0.05), rgba(0, 103, 255, 0.02));
  border-bottom: 1px solid var(--color-border);
}

.home-latest-posts {
  background: var(--color-bg);
}

/* ========== PAGE BLOG ========== */

.blog-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.blog-header h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.blog-search {
  max-width: 500px;
  margin: var(--space-8) auto 0;
  position: relative;
}

.blog-search input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-right: var(--space-12);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

/* ========== ARTICLE DÉTAILLÉ ========== */

.article-header {
  margin-bottom: var(--space-8);
}

.article-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
}

.article-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
}

.article-content {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.article-content h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.article-content p {
  margin-bottom: var(--space-6);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: var(--space-2);
}

.article-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--color-primary-dark);
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.article-content pre {
  background: var(--color-bg-alt);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-6);
}

.article-content code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--color-bg-alt);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
}

/* ========== PAGE CONTACT ========== */

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: var(--space-12);
}

.contact-intro h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.contact-intro p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

/* ========== PAGE À PROPOS ========== */

.about-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.about-header h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-6);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
}

.about-content p {
  margin-bottom: var(--space-6);
}

/* ========== PAGE ERREUR 404 ========== */

.error-page {
  text-align: center;
  padding: var(--space-20) 0;
}

.error-code {
  font-size: 6rem;
  font-weight: var(--font-black);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-6);
}

.error-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.error-message {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

/* ========== PAGE AUTH (Login/Register) ========== */

.auth-container {
  max-width: 450px;
  margin: var(--space-12) auto;
}

.auth-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-header h1 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.auth-header p {
  color: var(--color-text-muted);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.auth-footer a {
  color: var(--color-primary);
  font-weight: var(--font-medium);
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .article-title,
  .about-header h1,
  .blog-header h1 {
    font-size: var(--text-3xl);
  }

  .article-content,
  .about-content {
    font-size: var(--text-base);
  }

  .error-code {
    font-size: 4rem;
  }
}
