/* Blog Box Design 97 */
.ph-blog, .ph-post, .ph-products, .ph-recent, .ph-home-news {
  --ph-blue: #2c4491;
  --ph-green: #68a668;
  font-family: "Convergence", "Helvetica Neue", Arial, sans-serif;
}
.page-blog #main .page-header h1 { text-align: center; color: #000; text-transform: uppercase; font-size: 18px; font-weight: 700; margin-bottom: 1.2rem; }
.page-blog-post #main .page-header h1 { text-transform: none; font-size: 1.6rem; line-height: 1.3; }
.page-blog #content.page-content { box-shadow: none; background: transparent; padding: 0; }

.ph-blog-intro { text-align: center; color: #555; margin-bottom: 1.5rem; }
.ph-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; }
.ph-cats a { border: 2px solid var(--ph-blue); padding: .35rem .9rem; color: #555; text-transform: uppercase; font-size: .8rem; }
.ph-cats a.is-current, .ph-cats a:hover { background: var(--ph-blue); color: #fff; text-decoration: none; }

/* Grille d'articles */
.ph-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.ph-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ph-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ph-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ph-card {
  background: #fff;
  border: 1px solid #ccc;
  margin: 0 0 -1px -1px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: box-shadow .2s;
}
.ph-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .12); position: relative; z-index: 1; }
.ph-card-img { display: block; height: 145px; overflow: hidden; background: #f2f2f2; margin: 0 10px; }
.ph-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ph-card:hover .ph-card-img img { transform: scale(1.04); }
.ph-card-body { padding: 10px; flex: 1; display: flex; flex-direction: column; }
.ph-card-title { font-size: 14px; font-weight: 700; line-height: 1.4; text-transform: uppercase; margin: 10px 0 10px; text-align: center; }
.ph-card-title a { color: #000; }
.ph-card-title a:hover { color: var(--ph-green); text-decoration: none; }
.ph-card-excerpt { color: #000; font-size: 16px; line-height: 1.4; margin: 0 0 .5rem; text-align: center; }
.ph-card-more { margin-top: auto; align-self: flex-end; font-weight: 700; color: #000; font-size: 16px; }
.ph-card-more:hover { color: var(--ph-green); text-decoration: none; }
.ph-card-meta {
  display: flex;
  justify-content: center;
  border-top: 1px solid #ddd;
  padding: 5px;
  font-size: 10px;
  color: #000;
}
.ph-card-meta svg { vertical-align: -1px; }

/* Pagination */
.ph-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin: 2rem 0 1rem; }
.ph-pagination a, .ph-pagination span {
  min-width: 36px;
  padding: .4rem .7rem;
  border: 1px solid #ddd;
  text-align: center;
  color: var(--ph-blue);
}
.ph-pagination .is-current { background: var(--ph-blue); color: #fff; border-color: var(--ph-blue); }
.ph-pagination a:hover { background: var(--ph-green); color: #fff; text-decoration: none; }

/* Article */
.ph-post { max-width: 900px; margin: 0 auto; }
.ph-post-meta { text-align: center; color: #888; font-size: .85rem; margin-bottom: 1.25rem; }
.ph-post-meta a { color: var(--ph-green); }
.ph-post-cover { margin: 0 0 1.5rem; text-align: center; }
.ph-post-cover img { max-width: 100%; height: auto; }
.ph-post-content { color: #333; font-size: 1rem; line-height: 1.75; }
.ph-post-content img { max-width: 100%; height: auto; }
.ph-post-content h2, .ph-post-content h3 { color: var(--ph-blue); margin-top: 1.75rem; }
.ph-post-content a { color: var(--ph-blue); text-decoration: underline; }
.ph-post-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 2rem 0; }

.ph-section-title {
  display: table;
  margin: 2.5rem auto 1.5rem;
  background: #2c4491;
  color: #fff;
  font-size: .9rem;
  padding: .45rem 1.1rem;
  text-transform: uppercase;
}
.ph-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ph-product { border: 2px solid rgba(104, 166, 104, .55); background: #fff; text-align: center; display: flex; flex-direction: column; }
.ph-product-img { display: flex; align-items: center; justify-content: center; height: 180px; padding: 8px; }
.ph-product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ph-product-name { color: #000; text-transform: uppercase; font-size: .75rem; padding: .5rem; min-height: 3.4em; }
.ph-product-name:hover { color: var(--ph-green); text-decoration: none; }
.ph-product-btn { margin: auto .6rem .6rem; background: #2c4491; color: #fff; padding: .45rem; font-size: .8rem; }
.ph-product-btn:hover { background: var(--ph-green); color: #fff; text-decoration: none; }

/* Accueil */
.ph-home-news { padding: 40px 0 30px; }
.ph-home-title { text-align: center; font-size: 20px; font-weight: 700; text-transform: uppercase; margin: 0 0 20px; }
.ph-home-title a { color: #000; }
.ph-home-title a:hover { color: var(--ph-green); text-decoration: none; }
.ph-home-more { text-align: center; margin-top: 1.5rem; }

@media (max-width: 991px) {
  .ph-grid-3, .ph-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ph-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .ph-grid, .ph-grid-2, .ph-grid-3, .ph-grid-4, .ph-products-grid { grid-template-columns: 1fr; }
}
