/* ==========================================================
   PRO VERTICAL — Plugin Modèle Blog v1.2
   Avec recherche intégrée
   ========================================================== */

.pv-article-page,
.pv-actualites-page,
.pv-base-page {
  --pv-bg: #f6efe5;
  --pv-bg-soft: #fbf7f0;
  --pv-white: #ffffff;
  --pv-text: #2f312f;
  --pv-heading: #252724;
  --pv-muted: #6f746f;
  --pv-soft-text: #4d514d;
  --pv-line: #e4d8c9;
  --pv-orange: #ff4d00;
  --pv-orange-dark: #d94100;
  --pv-shadow: 0 18px 45px rgba(54, 42, 30, 0.08);

  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pv-text);
  background: linear-gradient(180deg, #f6efe5 0%, #fbf7f0 45%, #ffffff 100%);
  line-height: 1.75;
}

.pv-article-page *,
.pv-actualites-page *,
.pv-base-page * {
  box-sizing: border-box;
}

.pv-article-wrap,
.pv-actualites-wrap,
.pv-base-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 42px 32px 70px;
}

/* =========================
   COMMUN
   ========================= */

.pv-article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 0;
  background: #fff1e8;
  color: #9c3500;
  font-size: 0.8rem;
  font-weight: 560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pv-article-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--pv-orange);
}

.pv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--pv-orange);
  color: #ffffff !important;
  border: 1px solid var(--pv-orange);
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 650;
  box-shadow: 0 14px 30px rgba(255, 77, 0, 0.18);
  transition: 0.2s ease;
}

.pv-btn:hover {
  background: var(--pv-orange-dark);
  border-color: var(--pv-orange-dark);
  transform: translateY(-2px);
}

/* =========================
   RECHERCHE
   ========================= */

.pv-hero-search {
  margin-top: 28px;
  max-width: 760px;
}

.pv-search-form {
  width: 100%;
}

.pv-search-label {
  display: block;
  color: var(--pv-heading);
  font-size: 0.88rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pv-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.pv-search-row input[type="search"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--pv-line);
  border-radius: 0;
  background: #ffffff;
  color: var(--pv-text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.pv-search-row input[type="search"]:focus {
  border-color: var(--pv-orange);
  box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.12);
}

.pv-search-row button {
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--pv-orange);
  border-radius: 0;
  background: var(--pv-orange);
  color: #ffffff;
  font-family: inherit;
  font-weight: 650;
  cursor: pointer;
}

.pv-search-row button:hover {
  background: var(--pv-orange-dark);
  border-color: var(--pv-orange-dark);
}

.pv-search-compact .pv-search-label {
  display: none;
}

.pv-search-compact .pv-search-row {
  grid-template-columns: 1fr;
}

.pv-search-compact .pv-search-row input[type="search"] {
  min-height: 44px;
  font-size: 0.94rem;
}

.pv-search-compact .pv-search-row button {
  min-height: 42px;
  width: 100%;
}

.pv-results-info {
  max-width: 1280px;
  margin: 0 auto 22px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--pv-line);
  color: var(--pv-soft-text);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.pv-results-info strong {
  color: var(--pv-heading);
  font-weight: 650;
}

.pv-results-info a {
  color: var(--pv-orange-dark);
  font-weight: 650;
  text-decoration: none;
}

/* =========================
   ARTICLE DYNAMIQUE
   ========================= */

.pv-article-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--pv-line);
  border-radius: 0;
  padding: 36px;
  box-shadow: var(--pv-shadow);
  margin: 0 auto 34px;
  max-width: 1280px;
}

.pv-article-title {
  margin: 0;
  color: var(--pv-heading);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.12;
  letter-spacing: 0.015em;
  font-weight: 520;
  text-transform: none;
}

.pv-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--pv-muted);
  font-size: 0.94rem;
}

.pv-article-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 0;
  background: var(--pv-bg-soft);
  border: 1px solid var(--pv-line);
}

.pv-article-meta a {
  color: var(--pv-muted);
  text-decoration: none;
}

.pv-article-hero-image img,
.pv-article-featured-img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(54, 42, 30, 0.11);
}

.pv-article-main-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.pv-article-main-grid.no-sidebar {
  max-width: 1120px;
  display: block;
}

.pv-article-content {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--pv-line);
  border-radius: 0;
  padding: clamp(26px, 4vw, 54px);
  box-shadow: var(--pv-shadow);
}

.pv-article-content p {
  color: var(--pv-soft-text);
  font-size: 1.05rem;
  line-height: 1.85;
  font-weight: 400;
  margin-bottom: 22px;
}

.pv-article-content h2 {
  color: var(--pv-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: 0.018em;
  font-weight: 520;
  text-transform: none;
  margin-top: 54px;
  margin-bottom: 18px;
}

.pv-article-content h2:first-child {
  margin-top: 0;
}

.pv-article-content h3 {
  color: var(--pv-text);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.34;
  letter-spacing: 0.012em;
  font-weight: 500;
  text-transform: none;
  margin-top: 36px;
  margin-bottom: 12px;
}

.pv-article-content ul,
.pv-article-content ol {
  margin: 0 0 28px 1.2em;
  padding-left: 1em;
  color: var(--pv-soft-text);
}

.pv-article-content li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.pv-article-content strong {
  color: var(--pv-heading);
  font-weight: 650;
}

.pv-article-content a {
  color: var(--pv-orange-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.pv-article-content blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 5px solid var(--pv-orange);
  background: #fbf4ea;
  border-radius: 0;
  color: #3e423e;
}

.pv-article-content .pv-note,
.pv-article-content .pv-resume,
.pv-article-content .pv-warning {
  margin: 32px 0;
  padding: 24px;
  border-radius: 0;
  border: 1px solid var(--pv-line);
}

.pv-article-content .pv-note {
  background: #fbf7f0;
}

.pv-article-content .pv-resume {
  background: #f8efe3;
}

.pv-article-content .pv-warning {
  background: #fff4ec;
  border-color: #ffd5bf;
}

.pv-article-cta {
  max-width: 1280px;
  margin: 46px auto 0;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 0;
  background: #303330;
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(54, 42, 30, 0.12);
}

.pv-article-cta h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: 0.015em;
  font-weight: 520;
  margin: 0 0 14px;
}

.pv-article-cta p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 22px;
}

/* =========================
   SIDEBAR
   ========================= */

.pv-article-sidebar,
.pv-base-sidebar {
  position: sticky;
  top: 24px;
}

.pv-sidebar-box {
  background: #ffffff;
  border: 1px solid var(--pv-line);
  border-radius: 0;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(54, 42, 30, 0.06);
  margin-bottom: 18px;
}

.pv-sidebar-cta {
  background: #fff8f2;
}

.pv-sidebar-title {
  margin: 0 0 12px;
  color: var(--pv-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pv-sidebar-box p {
  color: var(--pv-soft-text);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.pv-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pv-sidebar-list li {
  margin: 0;
  border-top: 1px solid #f0e7dc;
}

.pv-sidebar-list li:first-child {
  border-top: none;
}

.pv-sidebar-list a {
  display: block;
  padding: 10px 0;
  color: var(--pv-soft-text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.45;
}

.pv-sidebar-list a:hover,
.pv-sidebar-link:hover {
  color: var(--pv-orange-dark);
}

.pv-sidebar-link {
  color: var(--pv-orange-dark);
  font-weight: 650;
  text-decoration: none;
}

.pv-sidebar-btn {
  width: 100%;
  margin-top: 6px;
}

/* =========================
   PAGE ACTUALITÉS
   ========================= */

.pv-actualites-hero,
.pv-base-hero {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--pv-line);
  border-radius: 0;
  box-shadow: var(--pv-shadow);
  padding: 40px;
  margin: 0 auto 34px;
  max-width: 1280px;
}

.pv-actualites-hero h1,
.pv-base-hero h1 {
  color: var(--pv-heading);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0.015em;
  font-weight: 520;
  margin: 0 0 16px;
}

.pv-actualites-hero p,
.pv-base-hero p {
  max-width: 820px;
  color: var(--pv-soft-text);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0;
}

.pv-base-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--pv-orange-dark);
  font-weight: 650;
  text-decoration: none;
}

.pv-blog-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pv-blog-card {
  background: #ffffff;
  border: 1px solid var(--pv-line);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(54, 42, 30, 0.07);
}

.pv-blog-card-image {
  display: block;
  height: 245px;
  background: #eadfce;
  overflow: hidden;
  text-decoration: none;
  border-radius: 0;
}

.pv-blog-card-image img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.25s ease;
}

.pv-blog-card:hover .pv-blog-card-image img {
  transform: scale(1.035);
}

.pv-blog-card-placeholder {
  width: 100%;
  height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f4e37;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pv-blog-card-body {
  padding: 22px;
}

.pv-blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--pv-muted);
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.pv-blog-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.28;
  font-weight: 520;
  letter-spacing: 0.01em;
}

.pv-blog-card h2 a {
  color: var(--pv-heading);
  text-decoration: none;
}

.pv-blog-card p {
  color: var(--pv-soft-text);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 16px;
}

.pv-blog-card-link {
  color: var(--pv-orange-dark);
  font-weight: 650;
  text-decoration: none;
}

/* Pagination */
.pv-pagination {
  max-width: 1280px;
  margin: 34px auto 0;
}

.pv-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pv-pagination li {
  margin: 0;
}

.pv-pagination a,
.pv-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--pv-line);
  background: #ffffff;
  color: var(--pv-soft-text);
  text-decoration: none;
}

.pv-pagination .current {
  background: var(--pv-orange);
  border-color: var(--pv-orange);
  color: #ffffff;
}

/* =========================
   BASE DE CONSEILS
   ========================= */

.pv-base-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.pv-base-main {
  min-width: 0;
}

.pv-base-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.pv-base-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  background: #ffffff;
  border: 1px solid var(--pv-line);
  box-shadow: 0 12px 30px rgba(54, 42, 30, 0.06);
}

.pv-base-item-image {
  display: block;
  min-height: 190px;
  background: #eadfce;
  overflow: hidden;
  text-decoration: none;
}

.pv-base-item-image img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}

.pv-base-item-body {
  padding: 22px 24px 22px 0;
}

.pv-base-item h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.28;
  font-weight: 520;
  letter-spacing: 0.01em;
}

.pv-base-item h2 a {
  color: var(--pv-heading);
  text-decoration: none;
}

.pv-base-item p {
  color: var(--pv-soft-text);
  font-size: 1rem;
  line-height: 1.68;
  margin: 0 0 14px;
}

.pv-empty-blog,
.pv-plugin-message {
  background: #ffffff;
  border: 1px solid var(--pv-line);
  border-radius: 0;
  padding: 28px;
  color: var(--pv-soft-text);
}

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

@media (max-width: 1100px) {
  .pv-article-main-grid,
  .pv-base-layout {
    grid-template-columns: 1fr;
  }

  .pv-article-sidebar,
  .pv-base-sidebar {
    position: static;
  }

  .pv-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .pv-article-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .pv-article-hero-image img,
  .pv-article-featured-img {
    height: 340px;
  }
}

@media (max-width: 640px) {
  .pv-article-wrap,
  .pv-actualites-wrap,
  .pv-base-wrap {
    padding: 24px 18px 50px;
  }

  .pv-article-hero,
  .pv-actualites-hero,
  .pv-base-hero {
    padding: 20px;
  }

  .pv-article-title,
  .pv-actualites-hero h1,
  .pv-base-hero h1 {
    font-size: 2rem;
    line-height: 1.18;
  }

  .pv-article-hero-image img,
  .pv-article-featured-img {
    height: 250px;
  }

  .pv-article-meta span {
    width: 100%;
  }

  .pv-article-content {
    padding: 24px 20px;
  }

  .pv-article-content p {
    font-size: 1rem;
    line-height: 1.78;
  }

  .pv-blog-grid {
    grid-template-columns: 1fr;
  }

  .pv-blog-card-image,
  .pv-blog-card-image img,
  .pv-blog-card-placeholder {
    height: 220px;
  }

  .pv-base-item {
    grid-template-columns: 1fr;
  }

  .pv-base-item-body {
    padding: 22px;
  }

  .pv-base-item-image,
  .pv-base-item-image img {
    min-height: 220px;
  }

  .pv-btn,
  .pv-search-row button {
    width: 100%;
  }

  .pv-search-row {
    grid-template-columns: 1fr;
  }
}
