/* =============================================================================
   ARTICLES — refonte v2 "Blog autorité santé"
   Typographie aérée, hiérarchie claire, boxes santé, TOC sticky, related.
   ============================================================================= */

/* ============================================================
   CARDS D'ARTICLES (LISTING) — gardés tels quels
   ============================================================ */
.post-card {
  background-color: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(230, 44, 161, 0.15);
}

.post-card:hover .image img {
  transform: scale(1.08);
}

.post-card .image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.post-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card .image .category {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-card .image .category .category-item {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--wp--preset--color--color-1);
}
.post-card .content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.post-card .content .title {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--wp--preset--color--color-8);
}
.post-card .content .excerpt {
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #666;
  line-height: 1.6;
  flex-grow: 1;
}
.post-card .content .btn-color-1 {
  align-self: flex-start;
  padding: 10px 24px;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ============================================================
   READING PROGRESS BAR — fixed top
   ============================================================ */
.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(230, 44, 161, 0.08);
  z-index: 9999;
  pointer-events: none;
}
.article-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #e62ca1, #ff6b9d);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 8px rgba(230, 44, 161, 0.4);
}

/* ============================================================
   SINGLE - HEADER (refonte)
   ============================================================ */
.single-header {
  background: linear-gradient(135deg, #e62ca1 0%, #ff5ba0 100%);
  color: white;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

/* Pattern subtil sur le header */
.single-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}
.single-header > .container {
  position: relative;
  z-index: 1;
}

.single-header .breadcrumb,
.single-header .rank-math-breadcrumb {
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.single-header .breadcrumb a,
.single-header .rank-math-breadcrumb a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
}
.single-header .breadcrumb a:hover,
.single-header .rank-math-breadcrumb a:hover {
  color: white !important;
  text-decoration: underline;
}

.single-header .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}
.single-header .entry-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.95);
}
.single-header .entry-meta i {
  opacity: 0.75;
}
.single-header .entry-meta .post-category {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

.single-header .entry-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 22px;
  color: white;
  letter-spacing: -0.02em;
}

.single-header .entry-excerpt {
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  margin: 0 0 28px;
  max-width: 720px;
}

/* Auteur compact dans le header */
.entry-author-compact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.entry-author-compact__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.entry-author-compact__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.entry-author-compact__info small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.entry-author-compact__info strong {
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   FEATURED IMAGE — chevauche header/contenu
   ============================================================ */
.single-featured-image {
  background: linear-gradient(
    to bottom,
    #ff5ba0 0%,
    #ff5ba0 60px,
    #fafbfc 60px,
    #fafbfc 100%
  );
  padding-bottom: 30px;
}
.featured-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  background: #fff;
}
.featured-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* ============================================================
   CONTENU PRINCIPAL — grid avec TOC sticky
   ============================================================ */
.single-content-wrapper {
  padding: 50px 0 60px;
  background-color: #fafbfc;
}

.single-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  position: relative;
}

/* Layout avec TOC à gauche sur desktop */
@media (min-width: 1024px) {
  .single-content-grid:has(.single-content-grid__toc) {
    grid-template-columns: 240px 1fr;
    gap: 50px;
  }
}

.single-content-grid__main {
  min-width: 0; /* évite l'overflow grid */
}

/* ============================================================
   TABLE DES MATIÈRES (TOC)
   ============================================================ */
.article-toc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (min-width: 1024px) {
  .single-content-grid__toc {
    position: sticky;
    top: 100px; /* sous le header sticky */
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .article-toc__toggle {
    pointer-events: none;
  }
  .article-toc__chevron {
    display: none;
  }
  .article-toc__list {
    display: block !important;
  }
}

.article-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #1f2937;
  text-align: left;
  margin-bottom: 12px;
}
.article-toc__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e62ca1;
}
.article-toc__count {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  margin-left: auto;
  margin-right: 8px;
}
.article-toc__chevron {
  transition: transform 0.25s ease;
  color: #9ca3af;
}
.article-toc__toggle[aria-expanded="true"] .article-toc__chevron {
  transform: rotate(180deg);
}

.article-toc__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
}
.article-toc__list li {
  list-style: none !important;
  margin: 0 !important;
}
.article-toc__list li::marker {
  display: none !important;
  content: none !important;
}
.article-toc__list a,
.article-toc__list .article-toc__link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  font-family: inherit;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 12px;
  color: #4b5563 !important;
  text-decoration: none !important;
  font-size: 13.5px;
  line-height: 1.4;
  transition: all 0.2s ease;
  border-radius: 0 6px 6px 0;
}
.article-toc__list a:hover,
.article-toc__list .article-toc__link:hover {
  color: #e62ca1 !important;
  background: rgba(230, 44, 161, 0.05);
  border-left-color: rgba(230, 44, 161, 0.4);
}
.article-toc__list a.is-active,
.article-toc__list .article-toc__link.is-active {
  color: #e62ca1 !important;
  background: rgba(230, 44, 161, 0.08);
  border-left-color: #e62ca1;
  font-weight: 600;
}
.article-toc__list .article-toc__link:focus-visible {
  outline: 2px solid #e62ca1;
  outline-offset: -2px;
}

/* TOC mobile : accordéon */
@media (max-width: 1023px) {
  .article-toc__list {
    display: none;
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #e5e7eb !important;
  }
  .article-toc__toggle[aria-expanded="true"] + .article-toc__list {
    display: block;
  }
  .article-toc__toggle {
    margin-bottom: 0;
  }
}

/* ============================================================
   ENTRY CONTENT — typographie redessinée
   ============================================================ */
.single .entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #2a3340;
  font-family: inherit;
}

/* Lead paragraph : 1er <p> direct enfant — plus gros, plus aéré */
.single .entry-content > p:first-of-type {
  font-size: 1.18rem;
  line-height: 1.65;
  color: #1f2937;
  font-weight: 500;
  margin-bottom: 1.8rem;
}

/* Paragraphes standards */
.single .entry-content p {
  margin: 0 0 1.4rem;
}

/* H2 : underline accent + style fort */
.single .entry-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 3rem 0 1.2rem;
  color: #1f2937;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 18px;
  scroll-margin-top: 100px; /* offset pour ancres avec header sticky */
}
.single .entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 5px;
  background: linear-gradient(to bottom, #e62ca1, #ff6b9d);
  border-radius: 4px;
}

/* H3 : plus discret */
.single .entry-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.4rem 0 1rem;
  color: #1f2937;
  scroll-margin-top: 100px;
}

.single .entry-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.8rem 0 0.8rem;
  color: #374151;
}

/* Liens inline : underline animé */
.single .entry-content a:not(.lm-card__download):not(.btn-color-1) {
  color: #c91f8a;
  text-decoration: none;
  background-image: linear-gradient(to right, #e62ca1, #e62ca1);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease;
  padding-bottom: 1px;
  font-weight: 500;
}
.single .entry-content a:not(.lm-card__download):not(.btn-color-1):hover {
  background-size: 100% 2px;
}

/* Strong : couleur subtile */
.single .entry-content strong {
  color: #1f2937;
  font-weight: 700;
}

/* Listes : checkmark vert sur ul, numéros stylés sur ol */
.single .entry-content ul,
.single .entry-content ol {
  margin: 1.4rem 0 1.6rem;
  padding-left: 0;
  list-style: none;
}
.single .entry-content ul > li,
.single .entry-content ol > li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 0.6rem;
  line-height: 1.65;
}
.single .entry-content ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0px;
  width: 18px;
  height: 18px;
  background-color: #16a34a;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Counter pour listes ordonnées */
.single .entry-content ol {
  counter-reset: ol-counter;
}
.single .entry-content ol > li {
  counter-increment: ol-counter;
}
.single .entry-content ol > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  background: #e62ca1;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
}

/* Blockquote redessinée — plus quotation moderne */
.single .entry-content blockquote {
  position: relative;
  margin: 2.2rem 0;
  padding: 28px 32px 28px 64px;
  background: linear-gradient(135deg, #fff 0%, #fdf2f9 100%);
  border: 1px solid #f0d5e6;
  border-radius: 12px;
  font-style: normal;
  color: #1f2937;
  font-size: 1.08rem;
  line-height: 1.65;
  box-shadow: 0 4px 12px rgba(230, 44, 161, 0.08);
}
.single .entry-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 18px;
  font-size: 5rem;
  line-height: 1;
  color: #e62ca1;
  opacity: 0.35;
  font-family: Georgia, serif;
}
.single .entry-content blockquote p:last-child {
  margin-bottom: 0;
}
.single .entry-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #6b7280;
  font-style: normal;
}
.single .entry-content blockquote cite::before {
  content: "— ";
}

/* Images : breathing room + subtle shadow */
.single .entry-content img,
.single .entry-content .wp-block-image img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
}
/* Caption */
.single .entry-content figcaption,
.single .entry-content .wp-element-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 8px;
  font-style: italic;
}

/* Wide / Full alignment Gutenberg */
.single .entry-content .alignwide {
  margin-left: -10%;
  margin-right: -10%;
  max-width: 120%;
}
.single .entry-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  border-radius: 0 !important;
}
@media (max-width: 991px) {
  .single .entry-content .alignwide,
  .single .entry-content .alignfull {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
}

/* Tables */
.single .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
}
.single .entry-content thead {
  background: #f9fafb;
}
.single .entry-content th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}
.single .entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
}
.single .entry-content tr:hover td {
  background: #fafafa;
}

/* HR */
.single .entry-content hr {
  margin: 2.5rem auto;
  width: 80px;
  border: none;
  height: 3px;
  background: linear-gradient(to right, transparent, #e62ca1, transparent);
}

/* Code inline + blocks */
.single .entry-content code {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #c91f8a;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.single .entry-content pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 18px 22px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 1.8rem 0;
}
.single .entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* ============================================================
   BOXES SANTÉ — info / warning / tip
   ============================================================ */
.article-box {
  margin: 2rem 0;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid #e6e8eb;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.article-box__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.article-box__icon {
  font-size: 22px;
  line-height: 1;
}
.article-box__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-box__content {
  color: #374151;
  font-size: 15.5px;
  line-height: 1.65;
}
.article-box__content p:last-child {
  margin-bottom: 0 !important;
}

/* Variantes */
.article-box--info {
  background: #eff6ff;
  border-color: #3b82f6;
}
.article-box--info .article-box__title {
  color: #1e40af;
}

.article-box--warning {
  background: #fffbeb;
  border-color: #f59e0b;
}
.article-box--warning .article-box__title {
  color: #92400e;
}

.article-box--tip {
  background: #f0fdf4;
  border-color: #16a34a;
}
.article-box--tip .article-box__title {
  color: #14532d;
}

/* ============================================================
   AVIS DU PHARMACIEN — carte signature
   ============================================================ */
.article-pharmacien {
  display: flex;
  gap: 20px;
  margin: 2.4rem 0;
  padding: 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #16a34a;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.12);
}
.article-pharmacien__avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.article-pharmacien__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-pharmacien__body {
  flex: 1;
  min-width: 0;
}
.article-pharmacien__header {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  line-height: 1.3;
}
.article-pharmacien__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #16a34a;
  margin-bottom: 6px;
}
.article-pharmacien__name {
  font-size: 16px;
  color: #14532d;
  font-weight: 700;
}
.article-pharmacien__role {
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}
.article-pharmacien__quote {
  color: #374151;
  font-size: 15.5px;
  line-height: 1.65;
}
.article-pharmacien__quote p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 600px) {
  .article-pharmacien {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px 18px;
  }
  .article-pharmacien__header {
    align-items: center;
  }
}

/* ============================================================
   AUTHOR CARD (en bas d'article)
   ============================================================ */
.entry-author-card {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 3rem 0 0;
  padding: 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.entry-author-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.entry-author-card small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  font-weight: 600;
}
.entry-author-card h4 {
  margin: 4px 0 6px !important;
  font-size: 1.1rem !important;
  color: #1f2937 !important;
}
.entry-author-card p {
  margin: 0 !important;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ============================================================
   FOOTER (PARTAGE SOCIAL)
   ============================================================ */
.entry-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}
.social-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.social-share .share-label {
  font-weight: 600;
  color: #1f2937;
  margin-right: 8px;
  font-size: 0.95rem;
}
.social-share .share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  font-size: 18px;
}
.social-share .share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.social-share .share-btn.facebook {
  background: #1877f2;
}
.social-share .share-btn.twitter {
  background: #000000;
}
.social-share .share-btn.linkedin {
  background: #0a66c2;
}
.social-share .share-btn.email {
  background: #6b7280;
}

/* ============================================================
   ARTICLES LIÉS
   ============================================================ */
.article-related {
  background: #fff;
  padding: 60px 0 80px;
  border-top: 1px solid #e5e7eb;
}
.article-related__title {
  text-align: center;
  font-size: 1.6rem !important;
  font-weight: 800;
  color: #1f2937 !important;
  margin: 0 0 36px !important;
}
.article-related__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #e62ca1, #ff6b9d);
  margin: 12px auto 0;
  border-radius: 2px;
}
.article-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 720px) {
  .article-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.article-related__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.article-related__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(230, 44, 161, 0.15);
  border-color: #f0abdc;
}
.article-related__img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
}
.article-related__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.3;
}
.article-related__body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-related__cat {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #e62ca1;
  margin-bottom: 8px;
}
.article-related__name {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin: 0 0 12px !important;
  line-height: 1.35 !important;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-related__meta {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1200px) {
  .single-header .entry-title {
    font-size: 3rem;
  }
}
@media (max-width: 1023px) {
  .single-header {
    padding: 50px 0 40px;
  }
  .single-header .entry-title {
    font-size: 2.2rem;
  }
  .single .entry-content {
    font-size: 16.5px;
  }
  .single .entry-content > p:first-of-type {
    font-size: 1.1rem;
  }
}
@media (max-width: 768px) {
  .single-header {
    padding: 36px 0 28px;
  }
  .single-header .entry-title {
    font-size: 1.7rem;
  }
  .single-header .entry-excerpt {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .single-header .entry-meta {
    gap: 12px;
    font-size: 0.8rem;
    margin-bottom: 18px;
  }
  .single-content-wrapper {
    padding: 30px 0 40px;
  }
  .single .entry-content {
    font-size: 16px;
  }
  .single .entry-content h2 {
    font-size: 1.45rem;
    margin: 2.2rem 0 0.8rem;
    padding-left: 14px;
  }
  .single .entry-content h3 {
    font-size: 1.2rem;
    margin: 1.8rem 0 0.7rem;
  }
  .single .entry-content blockquote {
    padding: 22px 22px 22px 50px;
    font-size: 1rem;
  }
  .single .entry-content blockquote::before {
    font-size: 4rem;
    left: 14px;
  }
  .featured-image-wrapper {
    border-radius: 12px;
  }
  .single-featured-image {
    padding-bottom: 20px;
  }
  .social-share {
    justify-content: center;
  }
  .social-share .share-label {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
  }
  .article-related {
    padding: 40px 0 50px;
  }
  .article-related__title {
    font-size: 1.35rem !important;
  }
  .entry-author-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}

/* ================================================================
   Titres rédigés dans WordPress (« Comment choisir », « Quand
   consulter », « Sources »…) alignés sur ceux des blocs du guide
   comparatif (guide-comparatif.css) : plus de barre rose, tailles
   plus sobres. S'applique à tous les articles du site.
   ================================================================ */
.single .entry-content > h2.wp-block-heading {
  /* Même retrait que les paragraphes : le thème parent (Schut2) met 15 px
     aux h2/h3/p d'article sous 992 px, 0 au-dessus */
  padding-left: 15px;
  margin: 48px 0 12px;
  font-size: 24px;
  line-height: 1.25;
  color: #241c21;
}
.single .entry-content > h2.wp-block-heading::before { content: none; }
.single .entry-content > h3.wp-block-heading {
  margin: 28px 0 8px;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: #241c21;
}
@media (min-width: 992px) {
  .single .entry-content > h2.wp-block-heading { padding-left: 0; }
}

/* =============================================================================
   PAGE « ARTICLES & CONSEILS »  (2026-11-12)

   Memes paliers de largeur que le header et que l'accueil : la page partait
   sur 97 % de l'ecran, soit un bord gauche a 64 px quand celui du header est
   a 160. Le bandeau rose pale de 144 px laisse la place a un en-tete sobre,
   fil d'Ariane / titre / chapo, comme sur les pages de rayon.
   ============================================================================= */

.blog .container.large {
  padding-left: 40px;
  padding-right: 40px;
}

@media screen and (min-width: 1200px) {
  .blog .container.large {
    max-width: 1400px;
    padding-left: 80px;
    padding-right: 80px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 1400px) {
  .blog .container.large {
    max-width: 1600px;
    padding-left: 120px;
    padding-right: 120px;
  }
}

@media screen and (min-width: 1600px) {
  .blog .container.large {
    max-width: 1800px;
    padding-left: 160px;
    padding-right: 160px;
  }
}

@media screen and (max-width: 991px) {
  .blog .container.large {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* --- En-tete ------------------------------------------------------------- */

.blog__entete {
  padding-top: 26px;
  padding-bottom: 18px;
}

.blog__entete .rank-math-breadcrumb,
.blog__entete .woocommerce-breadcrumb {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
}

.blog__entete .rank-math-breadcrumb a {
  color: #6b7280;
}

.blog__entete .rank-math-breadcrumb a:hover {
  color: var(--wp--preset--color--color-1);
}

/* Pas d'animation d'apparition sur le titre : si le script ne part pas, le
   titre restait invisible. */
.blog__titre {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.12;
  opacity: 1 !important;
  transform: none !important;
}

@media screen and (min-width: 992px) {
  .blog__titre {
    font-size: 2.5rem;
  }
}

@media screen and (min-width: 1400px) {
  .blog__titre {
    font-size: 2.75rem;
  }
}

.blog__intro {
  max-width: 70ch;
  margin-top: 14px;
  color: #5e6470;
  font-size: 1rem;
  line-height: 1.65;
}

.blog__intro p:last-child {
  margin-bottom: 0;
}

/* --- Filtres par theme ---------------------------------------------------- */

.blog__filtres {
  margin: 0 0 26px;
}

.blog__filtres-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog__filtres-liste li {
  margin: 0;
}

.blog__filtre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #dcdcde;
  border-radius: 999px;
  background: #fff;
  color: #2b2b2b;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.blog__filtre:hover {
  border-color: var(--wp--preset--color--color-1);
  color: var(--wp--preset--color--color-1);
}

.blog__filtre.is-actif {
  border-color: var(--wp--preset--color--color-1);
  background: var(--wp--preset--color--color-1);
  color: #fff;
  font-weight: 600;
}

.blog__filtre-compte {
  font-size: 0.75rem;
  color: #9aa0ab;
  font-variant-numeric: tabular-nums;
}

.blog__filtre:hover .blog__filtre-compte {
  color: inherit;
}

.blog__filtre.is-actif .blog__filtre-compte {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Grille --------------------------------------------------------------- */

.blog__case {
  margin-bottom: 28px;
}

.blog__case[hidden] {
  display: none;
}

.blog__vide {
  margin: 10px 0 40px;
  color: #6b7280;
}

/* --- La carte ------------------------------------------------------------- */

.post-card .content .title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .content .excerpt {
  -webkit-line-clamp: 2;
  margin-bottom: 14px;
  font-size: 0.9375rem;
}

.post-card__date {
  display: block;
  margin-bottom: 8px;
  color: #9aa0ab;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Le gros bouton « LIRE » doublait la carte, qui est elle-meme un lien. */
.post-card__lien {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--wp--preset--color--color-1);
  font-size: 0.875rem;
  font-weight: 700;
}

.post-card__lien svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.post-card:hover .post-card__lien svg {
  transform: translateX(3px);
}

@media screen and (max-width: 991px) {
  .blog__entete {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .blog__titre {
    font-size: 1.5rem;
  }

  .blog__intro {
    font-size: 0.9375rem;
  }

  /* Les pilules defilent sur le cote plutot que d'empiler quatre lignes. */
  .blog__filtres {
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 20px;
  }

  .blog__filtres-liste {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 20px;
    scroll-padding-left: 20px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .blog__filtres-liste::-webkit-scrollbar {
    display: none;
  }

  .blog__filtres-liste li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .blog__case {
    margin-bottom: 20px;
  }

  .post-card .content {
    padding: 16px;
  }

  .post-card .content .title {
    font-size: 1.05rem;
  }

  .post-card .content .excerpt {
    font-size: 0.875rem;
  }
}

/* =============================================================================
   FICHE ARTICLE  (2026-11-13)

   Le bandeau rose en dégradé a disparu, la page tombe sur les mêmes bords que
   le header, et l'image à la une passe en bannière. La mise en forme du CORPS
   de l'article reste au rédacteur : rien ici ne touche à ce qu'il compose
   dans l'éditeur, en dehors de la largeur de sa colonne.
   ============================================================================= */

/* Le bandeau rose, neutralisé. Les règles qui le dessinaient restent plus haut
   dans ce fichier pour les gabarits qui s'en servent encore. */
.pdc-article .single-header,
.pdc-article .single-header::before {
  display: none;
}

.pdc-article {
  padding: 18px 0 40px;
}

/* ── Fil d'ariane ─────────────────────────────────────────────────────────── */

.pdc-article__fil {
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: #8a8f98;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.pdc-article__fil::-webkit-scrollbar {
  display: none;
}

.pdc-article__fil a {
  color: #6b7280 !important;
  text-decoration: none !important;
}

.pdc-article__fil a:hover {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* ── Titre et repères de lecture ──────────────────────────────────────────── */

.pdc-article__entete {
  margin-bottom: 18px;
}

.pdc-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: #8a8f98;
}

.pdc-article__rubrique {
  padding: 4px 11px;
  border-radius: 999px;
  background: #fdf3f9;
  color: var(--wp--preset--color--color-1, #e62ca1) !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none !important;
}

.pdc-article__titre {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
  max-width: 20ch;
  max-width: 900px;
}

/* ── Image à la une, en bannière ──────────────────────────────────────────────
   Elle occupait auparavant sa hauteur naturelle dans une colonne centrée : un
   écran entier avant le premier mot sur les visuels verticaux. Le recadrage
   est fait par le navigateur, le fichier d'origine n'est pas touché. */

.pdc-article__banniere {
  margin: 0 0 26px;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}

.pdc-article__banniere img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media screen and (max-width: 767px) {
  .pdc-article__banniere img {
    aspect-ratio: 16 / 9;
  }

  .pdc-article__banniere {
    border-radius: 12px;
    margin-bottom: 18px;
  }
}

/* ── Corps : sommaire à gauche, texte dans une colonne lisible ───────────────
   La page prend la largeur du header, mais la ligne de texte reste autour de
   75 caractères : au-delà, l'œil perd le début de la ligne suivante. */

.pdc-article__corps {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.pdc-article__corps:not(:has(.pdc-article__sommaire)) {
  grid-template-columns: minmax(0, 1fr);
}

.pdc-article__sommaire {
  position: sticky;
  top: calc(var(--pdc-entete-h, 90px) + 16px);
}

.pdc-article__colonne {
  min-width: 0;
  max-width: 820px;
}

@media screen and (max-width: 991px) {
  .pdc-article__corps {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .pdc-article__sommaire {
    position: static;
  }
}

/* ── Chapô ────────────────────────────────────────────────────────────────── */

.pdc-article__chapo {
  margin: 0 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--wp--preset--color--color-1, #e62ca1);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #374151;
}

/* ── Signature en tête d'article ──────────────────────────────────────────── */

.pdc-article__signature {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ececec;
}

.pdc-article__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.pdc-article__signature-texte {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.pdc-article__signature-texte strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f2937;
}

.pdc-article__signature-texte span {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ── Fiche auteur de fin, et partage ──────────────────────────────────────── */

.pdc-article__auteur {
  display: flex;
  gap: 16px;
  margin: 32px 0 0;
  padding: 20px;
  background: #fafbfc;
  border: 1px solid #e8eaed;
  border-radius: 14px;
}

.pdc-article__auteur img {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.pdc-article__auteur small {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa0a6;
}

.pdc-article__auteur strong {
  display: block;
  margin: 2px 0 6px;
  font-size: 1rem;
  color: #1f2937;
}

.pdc-article__auteur p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4b5563;
}

.pdc-article__partage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.pdc-article__partage > span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
}

/* ── Bloc « Produits » posé dans l'article ───────────────────────────────────
   Quatre sur une rangée sur ordinateur, deux par deux sur téléphone. */

.pdc-bloc-produits {
  margin: 30px 0;
  padding: 20px;
  background: #fafbfc;
  border: 1px solid #e8eaed;
  border-radius: 16px;
}

.pdc-bloc-produits__titre {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
}

.pdc-bloc-produits__liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media screen and (max-width: 991px) {
  .pdc-bloc-produits__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdc-bloc-produits {
    padding: 14px;
  }
}

/* ── Avertissement santé ──────────────────────────────────────────────────── */

.pdc-avertissement {
  display: flex;
  gap: 14px;
  margin: 34px 0 0;
  padding: 18px 20px;
  background: #fffaf2;
  border: 1px solid #f2e2c6;
  border-radius: 14px;
}

.pdc-avertissement__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #b5811f;
}

.pdc-avertissement__icone svg {
  width: 19px;
  height: 19px;
}

.pdc-avertissement__texte strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.92rem;
  color: #7a5713;
}

.pdc-avertissement__texte p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #6b5733;
}

.pdc-avertissement__contact {
  margin-top: 8px !important;
}

.pdc-avertissement__contact a {
  color: #7a5713 !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =============================================================================
   FICHE ARTICLE — RETOURS DU GÉRANT  (2026-11-13)
   ============================================================================= */

/* Image encore plus basse : 4 pour 1. C'est le plancher praticable pour une
   bannière photo. En dessous, le sujet de l'image n'est plus identifiable et
   il devient très difficile de trouver un visuel qui tienne dans la bande. */
.pdc-article__banniere img {
  aspect-ratio: 4 / 1;
}

/* Le titre passe sous l'image. */
.pdc-article__titre {
  margin: 22px 0 0;
  max-width: none;
}

.pdc-article__chapo {
  margin: 14px 0 0;
}

/* L'auteur ressort en premier, au-dessus du sommaire et du texte, sur toute la
   largeur. Il était dans la colonne de texte, donc après le sommaire à l'œil. */
.pdc-article__signature {
  margin: 20px 0 24px;
  padding-bottom: 20px;
}

.pdc-article__avatar {
  width: 52px;
  height: 52px;
}

.pdc-article__signature-texte small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa0a6;
}

.pdc-article__signature-texte strong {
  font-size: 1rem;
}

/* Le texte prend toute la largeur disponible : la colonne n'est plus bornée. */
.pdc-article__colonne {
  max-width: none;
}

/* Plus de pictogramme devant « Sommaire ». L'emoji a ete retire du balisage
   (lib/article-enhancements.php) ; cette regle reste comme garde-fou, WordPress
   remplacant les emojis par des <img class="emoji"> a l'affichage. */
.pdc-article__sommaire .article-toc__title img,
.pdc-article__sommaire .article-toc__title .emoji,
.pdc-article__sommaire .article-toc__title::before {
  display: none !important;
  content: none !important;
}

/* Sur téléphone, le sommaire suit le défilement une fois dépassé : il sert
   justement quand on est au milieu de l'article. */
@media screen and (max-width: 991px) {
  .pdc-article__sommaire {
    position: sticky;
    top: calc(var(--pdc-entete-h, 90px) + 6px);
    z-index: 20;
  }

  .pdc-article__titre {
    margin-top: 16px;
  }

  .pdc-article__signature {
    margin: 16px 0 18px;
    padding-bottom: 16px;
  }
}

/* Avertissement sans pictogramme. */
.pdc-avertissement {
  display: block;
}
