/*
 Theme Name:  Le Carnet du Motard
 Theme URI:   https://francemoto.fr
 Template:    generatepress
 Version:     1.0
 Description: Thème blog francemoto.fr — design system unifié.
*/

/* ── Blog layout ─────────────────────────────────────────── */
body { margin: 0; padding: 0; background: #F4F0E8; }

.blog-hero {
  background: #1A1F2E;
  padding: 88px 0 60px;
  text-align: center;
  color: #fff;
}
.blog-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.blog-hero h1 em { color: #B8722E; font-style: normal; }
.blog-hero p { color: rgba(255,255,255,.6); font-size: 1.05rem; max-width: 480px; margin: 0 auto; }

.blog-section { background: #F4F0E8; padding: 52px 0 80px; }

/* Pills */
.blog-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.blog-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px;
  font-size: .84rem; font-weight: 600; text-decoration: none;
  background: #fff; color: #1A1F2E; border: 2px solid #e0dbd2;
  transition: all .2s;
}
.blog-pill span { background: #eee; border-radius: 999px; padding: 1px 7px; font-size: .73rem; }
.blog-pill:hover, .blog-pill.active {
  background: #1A1F2E; border-color: #1A1F2E; color: #fff;
}
.blog-pill.active span, .blog-pill:hover span { background: rgba(255,255,255,.18); }

/* Grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }

/* Card */
.blog-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.11); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: #1A1F2E; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-no-img {
  aspect-ratio: 16/9; background: linear-gradient(135deg, #1A1F2E 0%, #2d3548 100%);
  display: flex; align-items: center; justify-content: center;
}
.blog-card-no-img svg { opacity: .15; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card-cat {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: #B8722E; text-decoration: none; margin-bottom: 10px; display: inline-block;
}
.blog-card-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin: 0 0 10px; }
.blog-card-title a { color: #1A1F2E; text-decoration: none; }
.blog-card-title a:hover { color: #B8722E; }
.blog-card-excerpt {
  font-size: .87rem; color: #666; line-height: 1.55; margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-meta { display: flex; gap: 14px; font-size: .77rem; color: #aaa; margin-top: auto; padding-top: 14px; border-top: 1px solid #f0ece4; }

/* Single article */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 52px 24px 80px; }
.article-breadcrumb { font-size: .8rem; color: #aaa; margin-bottom: 28px; }
.article-breadcrumb a { color: #aaa; text-decoration: none; }
.article-breadcrumb a:hover { color: #B8722E; }
.article-breadcrumb span { color: #ccc; margin: 0 6px; }
.article-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #B8722E; text-decoration: none; display: inline-block; margin-bottom: 14px; }
.article-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800; line-height: 1.1; text-transform: uppercase;
  color: #1A1F2E; margin: 0 0 22px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 18px; font-size: .82rem; color: #999;
  padding: 16px 0; border-top: 1px solid #e5e0d8; border-bottom: 1px solid #e5e0d8; margin-bottom: 32px;
}
.article-featured-img { border-radius: 12px; overflow: hidden; margin-bottom: 36px; }
.article-featured-img img { width: 100%; height: auto; display: block; }
.article-content { font-size: 1rem; line-height: 1.78; color: #333; }
.article-content h2 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.65rem; font-weight: 700;
  text-transform: uppercase; color: #1A1F2E; margin: 44px 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid #e5e0d8;
}
.article-content h3 { font-size: 1.15rem; font-weight: 600; color: #1A1F2E; margin: 30px 0 10px; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: #1A1F2E; font-weight: 600; }
.article-content a { color: #B8722E; }
.article-content blockquote {
  border-left: 4px solid #B8722E; margin: 28px 0; padding: 16px 20px;
  background: #fdf8f2; border-radius: 0 8px 8px 0; font-style: italic; color: #555;
}
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: .9rem; }
.article-content th { background: #1A1F2E; color: #fff; padding: 10px 14px; text-align: left; }
.article-content td { padding: 10px 14px; border-bottom: 1px solid #ede9e1; }
.article-content tr:nth-child(even) td { background: #faf8f4; }

.article-back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 48px;
  padding: 12px 26px; border: 2px solid #1A1F2E; border-radius: 999px;
  color: #1A1F2E; text-decoration: none; font-weight: 600; font-size: .9rem; transition: all .2s;
}
.article-back:hover { background: #1A1F2E; color: #fff; }

.related-section { background: #fff; border-top: 1px solid #e5e0d8; padding: 48px 0 60px; }
.related-section h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; color: #1A1F2E; margin: 0 0 28px;
}

/* Admin bar compensation */
body.admin-bar .notif-bar { margin-top: 32px; }
body.admin-bar .site-header { top: 32px; }

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-pills { gap: 8px; }
  .blog-pill { padding: 6px 14px; font-size: .8rem; }
  .article-wrap { padding: 40px 16px 60px; }
}
