/*
Theme Name: Parkouda Conseil
Theme URI: https://parkoudaconseil.fr
Author: Parkouda Conseil
Description: Thème blog pour Parkouda Conseil - Conseiller Financier Indépendant
Version: 1.0
*/

/* ── VARIABLES ── */
:root {
  --marine:   #1A2D4E;
  --marine2:  #243A62;
  --marine3:  #122038;
  --cuivre:   #B87333;
  --cuivre2:  #D4924A;
  --cuivre3:  #E8B87A;
  --blanc:    #F5F0EB;
  --creme:    #F8F5F0;
  --bord:     #DDD6CC;
  --texte:    #1A2D4E;
  --texte2:   #4A5568;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--creme);
  color: var(--texte);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--cuivre); text-decoration: none; }
a:hover { color: var(--marine); }

img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ── */
#site-header {
  background: var(--marine);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
}

.site-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.site-name span { color: var(--cuivre3); }

.header-nav { display: flex; align-items: center; gap: 1.5rem; }

.header-nav a {
  color: rgba(245,240,235,.75);
  font-size: .85rem;
  font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
}

.header-nav a:hover { color: var(--cuivre3); }

.header-nav .btn-header {
  background: var(--cuivre);
  color: #fff !important;
  padding: .45rem 1rem;
  border-radius: 6px;
  font-size: .82rem;
}

.header-nav .btn-header:hover { background: var(--cuivre2); }

/* ── HERO BLOG ── */
.blog-hero {
  background: var(--marine2);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--cuivre);
}

.blog-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: .5rem;
}

.blog-hero h1 em { color: var(--cuivre3); font-style: normal; }

.blog-hero p {
  color: rgba(245,240,235,.65);
  font-size: .95rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── FILTRES RUBRIQUES ── */
.cat-filters {
  background: var(--marine);
  padding: .75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.cat-filter {
  background: rgba(255,255,255,.08);
  color: rgba(245,240,235,.7);
  border: 1px solid rgba(255,255,255,.12);
  padding: .35rem .9rem;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.cat-filter:hover,
.cat-filter.active {
  background: var(--cuivre);
  color: #fff;
  border-color: var(--cuivre);
}

/* ── CONTENEUR PRINCIPAL ── */
.main-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .main-wrap { grid-template-columns: 1fr; padding: 1.5rem 1rem; }
}

/* ── GRILLE ARTICLES ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

/* ── CARTE ARTICLE ── */
.post-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--bord);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26,45,78,.12);
}

.post-card .thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card .thumb-placeholder {
  width: 100%;
  height: 180px;
  background: var(--marine2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .6rem;
}

.post-card .cat-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(26,45,78,.08);
  color: var(--marine);
  width: fit-content;
}

.post-card h2 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--marine);
  line-height: 1.35;
}

.post-card h2 a { color: inherit; }
.post-card h2 a:hover { color: var(--cuivre); }

.post-card .excerpt {
  font-size: .82rem;
  color: var(--texte2);
  line-height: 1.6;
  flex: 1;
}

.post-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .74rem;
  color: #8A97AB;
  padding-top: .6rem;
  border-top: 1px solid var(--bord);
  margin-top: auto;
}

.post-card .read-more {
  font-size: .78rem;
  font-weight: 600;
  color: var(--cuivre);
}

.post-card .read-more:hover { color: var(--marine); }

/* ── ARTICLE SINGLE ── */
.single-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.single-header { margin-bottom: 2rem; }

.single-header .cat-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--cuivre);
  color: #fff;
  margin-bottom: 1rem;
}

.single-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--marine);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.single-meta {
  font-size: .82rem;
  color: #8A97AB;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.single-thumb {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 2.5rem;
}

/* ── CONTENU ARTICLE ── */
.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--texte);
}

.entry-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--marine);
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--cuivre);
}

.entry-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--marine2);
  margin: 1.75rem 0 .75rem;
}

.entry-content p { margin-bottom: 1.25rem; }

.entry-content ul, .entry-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.entry-content li { margin-bottom: .4rem; }

.entry-content strong { color: var(--marine); }

.entry-content em { color: var(--texte2); }

.entry-content blockquote {
  border-left: 4px solid var(--cuivre);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--creme);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--texte2);
}

/* CTA article */
.article-cta {
  background: var(--marine);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-cta p { color: rgba(245,240,235,.85); font-size: .9rem; margin: 0; }
.article-cta p strong { color: var(--cuivre3); display: block; margin-bottom: .25rem; }

.article-cta a {
  background: var(--cuivre);
  color: #fff;
  padding: .6rem 1.25rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}

.article-cta a:hover { background: var(--cuivre2); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.widget {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--bord);
  overflow: hidden;
}

.widget-title {
  background: var(--marine);
  color: var(--cuivre3);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .65rem 1.25rem;
}

.widget-body { padding: 1.25rem; }

/* Widget contact */
.widget-contact { background: var(--marine); }
.widget-contact .widget-title { background: var(--cuivre); color: #fff; }
.widget-contact .widget-body { padding: 1.25rem; }
.widget-contact p { color: rgba(245,240,235,.8); font-size: .85rem; line-height: 1.6; margin-bottom: 1rem; }
.widget-contact .btn-contact {
  display: block;
  background: var(--cuivre);
  color: #fff;
  text-align: center;
  padding: .65rem 1rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s;
}
.widget-contact .btn-contact:hover { background: var(--cuivre2); }

/* Widget catégories */
.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px solid var(--bord); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  font-size: .85rem;
  color: var(--marine);
  transition: color .2s;
}
.cat-list a:hover { color: var(--cuivre); }
.cat-list .count {
  background: var(--creme);
  color: #8A97AB;
  font-size: .7rem;
  padding: 1px 7px;
  border-radius: 3px;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: .85rem;
  border: 1px solid var(--bord);
  background: #fff;
  color: var(--marine);
  transition: all .2s;
}

.pagination a:hover, .pagination .current {
  background: var(--marine);
  color: #fff;
  border-color: var(--marine);
}

/* ── FOOTER ── */
#site-footer {
  background: var(--marine3);
  padding: 2rem;
  text-align: center;
  border-top: 3px solid var(--cuivre);
}

#site-footer p {
  color: rgba(245,240,235,.5);
  font-size: .78rem;
  line-height: 1.7;
}

#site-footer a { color: var(--cuivre2); }

/* ── BACK TO SITE ── */
.back-to-site {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(245,240,235,.65);
  font-size: .78rem;
  padding: .4rem .85rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  transition: all .2s;
}
.back-to-site:hover { color: var(--cuivre3); border-color: var(--cuivre); }
