/* ===== Blog Layout Principal ===== */
.blog-layout {
  display: flex;
  gap: 40px;
  margin: 48px auto;
  max-width: 1200px;
  padding: 0 16px;
}

/* ===== Colonne principale ===== */
.blog-main {
  flex: 3;
}

/* ===== Article ===== */
.article-card {
  background: #fff;
  border-radius: 20px;
  background: #fff6ea;
  border-radius: 20px;
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: fit-content;
  box-shadow: 0 2px 8px #c9c7e4;
  padding: 32px 24px;
  margin-bottom: 32px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eb7f9722;
  transition: box-shadow 0.2s;
}

.article-card:hover {
  box-shadow: 0 8px 24px rgba(235, 127, 151, 0.18);
}

.article-card h2 {
  color: #6e3071;
  font-family: 'Poppins', Arial, sans-serif;
  text-align: left;
  letter-spacing: 1px;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.article-card .meta {
  color: #eb7f97;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.article-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(235, 127, 151, 0.15);
}

.article-card img:hover {
  transform: scale(1.02);
}

.article-card p {
  color: #9d6232;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== Sidebar ===== */
.blog-sidebar {
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  background: #fff6ea;
  border-radius: 20px;
  box-shadow: 0 2px 12px #c9c7e4;
  padding: 32px 18px;
  height: fit-content;
}
.sidebar-section {
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eb7f9722;
}
.sidebar-section:last-child {
  border-bottom: none;
}
.sidebar-section h2 {
  color: #eb7f97;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
  text-align: left;
  letter-spacing: 1px;
}

.sidebar-section ul {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  list-style: none;
  margin: 0;
}

.sidebar-section ul li {
  margin-bottom: 8px;
  background: none;
  color: #6e3071;
}

.sidebar-section ul li a {
  color: #6e3071;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
  padding: 2px 0;
  border-radius: 8px;
}

.sidebar-section ul li a:hover {
  color: #eb7f97;
  background: #fbe3e8;
}

/* ===== Tags ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 8px;
  justify-content: flex-start;
}

.tags a {
  background: #eb7f97;
  color: #fff;
  border-radius: 14px;
  padding: 6px 16px;
  font-size: 0.98rem;
  text-decoration: none;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px #c9c7e4;
}

.tags a:hover {
  background: #66bda3;
  color: #fff;
  transform: scale(1.08);
}

/* Newsletter stylée */
.sidebar-section form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #eb7f97;
  border-radius: 16px;
  padding: 18px 12px;
  box-shadow: 0 2px 8px #c9c7e4;
  align-items: center;
}
.sidebar-section input[type="email"] {
  padding: 10px 16px;
  border-radius: 20px;
  border: none;
  font-size: 1rem;
  margin-bottom: 8px;
  background: #fff6ea;
  color: #6e3071;
  width: 90%;
}
.sidebar-section button {
  padding: 10px 0;
  border-radius: 20px;
  border: none;
  background: #6e3071;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 700;
  width: 90%;
}
.sidebar-section button:hover {
  background: #f29229;
}

/* ===== Barre de recherche ===== */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.search-bar input[type="text"] {
  flex: 1;
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid #c9c7e4;
  font-size: 1rem;
}

/* ===== Responsive Blog ===== */
@media (max-width: 1000px) {
  .blog-layout {
    flex-direction: column;
    gap: 0;
  }
  .blog-sidebar {
    max-width: 100%;
    margin-top: 32px;
  }
}

/* ===== Page Article Complet ===== */
.article-page {
  max-width: 900px;
  margin: 48px auto;
  padding: 0 16px;
}

.article-full {
  background: #fff6ea;
  border-radius: 20px;
  box-shadow: 0 2px 12px #c9c7e4;
  padding: 48px 32px;
}

.article-header {
  margin-bottom: 32px;
  text-align: center;
}

.article-header h1 {
  color: #6e3071;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 2.2rem;
  margin-bottom: 12px;
  margin-top: 0;
}

.article-meta {
  color: #eb7f97;
  font-size: 1rem;
}

.article-featured-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(235, 127, 151, 0.2);
  margin-bottom: 32px;
  display: block;
}

.article-content {
  color: #9d6232;
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-content h2 {
  color: #6e3071;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.6rem;
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  margin-bottom: 18px;
}

.highlight {
  background: #fff;
  border-left: 4px solid #eb7f97;
  padding: 16px;
  border-radius: 8px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(235, 127, 151, 0.1);
}

.highlight p {
  margin: 0;
  color: #6e3071;
}

.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eb7f9722;
  text-align: center;
}

@media (max-width: 600px) {
  .article-card {
    padding: 18px 6px;
  }
  .blog-sidebar {
    padding: 18px 6px;
  }
  .article-full {
    padding: 24px 16px;
  }
  .article-header h1 {
    font-size: 1.6rem;
  }
}