/* ============================================================
   page-blog-v2.css : styles dédiés blog public V2
   Pages : /blog/, /blog/<slug>, /blog/categorie/<slug>
   Dépend de framework-v2.css (tokens couleurs, glass, typo)
   ============================================================ */

/* ---------- HERO ---------- */
.blog-hero {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}
.blog-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--color-text-secondary, #94a3b8);
  margin-bottom: 1rem;
}
.blog-hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-rouge-teco, #E8000A);
}
.blog-hero__h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--color-text-primary, #e8eaf2);
}
.blog-hero__h1 em {
  font-style: italic; color: var(--color-rouge-teco, #E8000A);
}
.blog-hero__sub {
  max-width: 680px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.6;
  color: var(--color-text-secondary, #94a3b8);
}

/* ---------- FILTRES CATÉGORIES ---------- */
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  padding: 0 1.5rem 2rem; max-width: 1100px; margin: 0 auto;
}
.blog-filter-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: var(--color-bg-2, rgba(255,255,255,0.04));
  border: 1px solid var(--color-border, rgba(255,255,255,0.12));
  color: var(--color-text-secondary, #94a3b8);
  font-size: 0.82rem; font-weight: 500;
  text-decoration: none; transition: all 0.15s ease;
}
.blog-filter-chip:hover {
  color: var(--color-text-primary, #e8eaf2);
  border-color: var(--color-border-strong, rgba(255,255,255,0.22));
}
.blog-filter-chip.is-active {
  background: var(--color-rouge-teco, #E8000A);
  color: #fff;
  border-color: transparent;
}

/* ---------- GRILLE ARTICLES ---------- */
.blog-wrapper {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex; flex-direction: column;
  background: var(--color-bg-2, rgba(255,255,255,0.04));
  border: 1px solid var(--color-border, rgba(255,255,255,0.12));
  border-radius: 0.85rem; overflow: hidden;
  transition: all 0.18s ease;
  text-decoration: none; color: inherit;
}
.blog-card:hover {
  border-color: var(--color-border-strong, rgba(255,255,255,0.22));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.blog-card__image {
  display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(232, 0, 10, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(232, 0, 10, 0.05), transparent 70%),
    linear-gradient(135deg, #1F2230 0%, #181a25 100%);
}
.blog-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.04); }

/* Fallback elegant : wordmark TECO en bas-gauche discret + halo subtil */
.blog-card__image--fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem 1.25rem;
}
.blog-card__image--fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
}
.blog-card__image-wordmark {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.35);
  position: relative;
  line-height: 1;
}
.blog-card__image-wordmark .accent {
  color: rgba(232, 0, 10, 0.65);
}

/* Variant light pour le fallback */
[data-theme="light"] .blog-card__image {
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(232, 0, 10, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(232, 0, 10, 0.04), transparent 70%),
    linear-gradient(135deg, #F2EEE6 0%, #E8E2D6 100%);
}
[data-theme="light"] .blog-card__image-wordmark {
  color: rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .blog-card__image-wordmark .accent {
  color: rgba(232, 0, 10, 0.75);
}

.blog-card__content { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__categories {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.65rem;
}
.blog-card__category {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-rouge-teco, #E8000A);
  text-decoration: none;
}
.blog-card__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem; font-weight: 400; line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--color-text-primary, #e8eaf2);
}
.blog-card__excerpt {
  font-size: 0.9rem; line-height: 1.55; margin: 0 0 1rem;
  color: var(--color-text-secondary, #94a3b8);
  flex: 1;
}
.blog-card__meta {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem; color: var(--color-text-secondary, #94a3b8);
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.08));
  padding-top: 0.85rem; margin-top: auto;
}
.blog-card__meta .dot-sep { opacity: 0.5; }

/* ---------- PAGINATION ---------- */
.blog-pagination {
  display: flex; gap: 0.5rem; justify-content: center; align-items: center;
  margin-top: 3rem; flex-wrap: wrap;
}
.blog-pagination a, .blog-pagination span {
  padding: 0.5rem 0.9rem; border-radius: 0.5rem;
  text-decoration: none; font-size: 0.88rem;
  color: var(--color-text-secondary, #94a3b8);
  border: 1px solid var(--color-border, rgba(255,255,255,0.12));
}
.blog-pagination a:hover { color: var(--color-text-primary, #e8eaf2); }
.blog-pagination .current {
  background: var(--color-rouge-teco, #E8000A); color: #fff;
  border-color: transparent;
}

/* ---------- EMPTY STATE ---------- */
.blog-empty {
  text-align: center; padding: 4rem 1.5rem;
  color: var(--color-text-secondary, #94a3b8);
}
.blog-empty svg {
  width: 60px; height: 60px; opacity: 0.4; margin-bottom: 1rem;
}

/* ============================================================
   ARTICLE SINGLE (/blog/<slug>)
   ============================================================ */
.article-hero {
  max-width: 880px; margin: 0 auto; padding: 4rem 1.5rem 2rem;
}
.article-hero__categories {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.article-hero__category {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-rouge-teco, #E8000A);
  text-decoration: none;
}
.article-hero__h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400; line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--color-text-primary, #e8eaf2);
}
.article-hero__excerpt {
  font-size: 1.15rem; line-height: 1.55; margin: 0 0 1.5rem;
  color: var(--color-text-secondary, #94a3b8);
}
.article-hero__meta {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--color-text-secondary, #94a3b8);
  padding-top: 1rem; border-top: 1px solid var(--color-border, rgba(255,255,255,0.08));
}
.article-hero__cover {
  max-width: 1100px; margin: 1.5rem auto; padding: 0 1.5rem;
}
.article-hero__cover img {
  width: 100%; border-radius: 1rem;
  aspect-ratio: 16 / 9; object-fit: cover;
}

/* ---------- CONTENU MD RENDU ---------- */
.article-content {
  max-width: 720px; margin: 0 auto; padding: 1rem 1.5rem 3rem;
  font-size: 1.05rem; line-height: 1.75;
  color: var(--color-text-primary, #e8eaf2);
}
.article-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem; font-weight: 400; line-height: 1.25;
  margin: 2.5rem 0 1rem;
  color: var(--color-text-primary, #e8eaf2);
}
.article-content h3 {
  font-size: 1.3rem; font-weight: 700;
  margin: 2rem 0 0.85rem;
  color: var(--color-text-primary, #e8eaf2);
}
.article-content p {
  margin: 0 0 1.25rem;
  color: var(--color-text-primary, #e8eaf2);
}
.article-content a {
  color: var(--color-rouge-teco, #E8000A);
  text-decoration: underline; text-underline-offset: 3px;
}
.article-content a:hover { filter: brightness(1.2); }
.article-content ul, .article-content ol {
  margin: 0 0 1.25rem; padding-left: 1.5rem;
}
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-rouge-teco, #E8000A);
  background: var(--color-bg-2, rgba(255,255,255,0.04));
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--color-text-secondary, #94a3b8);
  font-style: italic;
}
.article-content blockquote p:last-child { margin: 0; }
.article-content code {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 0.9em; padding: 0.15em 0.4em; border-radius: 0.25rem;
  background: var(--color-bg-2, rgba(255,255,255,0.06));
  color: var(--color-rouge-teco, #E8000A);
}
.article-content pre {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  background: var(--color-bg-2, rgba(255,255,255,0.04));
  border: 1px solid var(--color-border, rgba(255,255,255,0.12));
  border-radius: 0.5rem;
  overflow-x: auto; font-size: 0.9rem; line-height: 1.5;
}
.article-content pre code { background: transparent; color: inherit; padding: 0; }
.article-content img {
  max-width: 100%; height: auto; border-radius: 0.5rem;
  margin: 1.5rem 0;
}
.article-content hr {
  border: 0; border-top: 1px solid var(--color-border, rgba(255,255,255,0.12));
  margin: 2.5rem 0;
}
/* Tableaux article : look pro avec bordure, zebra striping, header distinct */
.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.75rem 0;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.article-content thead th {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.75rem 0.75rem;
  border-bottom: 2px solid rgba(232, 0, 10, 0.55);
}
.article-content tbody td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8eaf2;
  vertical-align: top;
}
.article-content tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}
.article-content tbody tr:last-child td {
  border-bottom: none;
}
.article-content tbody tr:hover td {
  background: rgba(232, 0, 10, 0.06);
}
.article-content td strong {
  color: var(--color-rouge-teco);
  font-weight: 700;
}
.article-content strong { color: var(--color-text-primary, #e8eaf2); font-weight: 700; }
.article-content em { font-style: italic; }

/* ---------- PARTAGE SOCIAL ---------- */
.article-share {
  max-width: 720px; margin: 0 auto; padding: 1rem 1.5rem 2rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.article-share__label {
  font-size: 0.82rem; color: var(--color-text-secondary, #94a3b8);
  margin-right: 0.25rem;
}
.article-share__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-bg-2, rgba(255,255,255,0.04));
  border: 1px solid var(--color-border, rgba(255,255,255,0.12));
  color: var(--color-text-secondary, #94a3b8);
  text-decoration: none; cursor: pointer;
  transition: all 0.15s ease;
}
.article-share__btn:hover {
  color: var(--color-text-primary, #e8eaf2);
  border-color: var(--color-border-strong, rgba(255,255,255,0.22));
}
.article-share__btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- ARTICLES CONNEXES ---------- */
.article-related {
  max-width: 1200px; margin: 2rem auto 0; padding: 3rem 1.5rem;
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.08));
}
.article-related__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem; font-weight: 400;
  text-align: center; margin: 0 0 2rem;
  color: var(--color-text-primary, #e8eaf2);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 680px) {
  .blog-hero { padding: 3rem 1rem 2rem; }
  .article-hero { padding: 2.5rem 1rem 1.5rem; }
  .article-content { padding: 1rem 1rem 2rem; font-size: 1rem; }
  .article-content h2 { font-size: 1.5rem; }
  .blog-card__title { font-size: 1.1rem; }
  .article-content table { font-size: 0.78rem; }
  .article-content thead th { font-size: 0.66rem; padding: 0.55rem 0.5rem; }
  .article-content tbody td { padding: 0.5rem 0.5rem; }
}

/* ============================================================
   MODE LIGHT — overrides explicites
   Toutes les classes blog/article utilisaient des valeurs hardcodees
   en rgba(255,255,255,X) (blanc transparent) qui devenaient invisibles
   sur le papier creme du mode light. Cette section les remappe.
   ============================================================ */

/* Hero liste blog */
[data-theme="light"] .blog-hero__h1 {
  color: rgba(0, 0, 0, 0.9);
}
[data-theme="light"] .blog-hero__sub {
  color: rgba(0, 0, 0, 0.65);
}

/* Chips filtres */
[data-theme="light"] .blog-filter-chip {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.75);
}
[data-theme="light"] .blog-filter-chip:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(232, 0, 10, 0.4);
}

/* Cards article (liste) */
[data-theme="light"] .blog-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .blog-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .blog-card__title {
  color: rgba(0, 0, 0, 0.9);
}
[data-theme="light"] .blog-card__excerpt {
  color: rgba(0, 0, 0, 0.65);
}
[data-theme="light"] .blog-card__meta {
  color: rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .blog-card__category {
  background: rgba(232, 0, 10, 0.08);
  color: var(--color-rouge-teco);
}

/* Pagination */
[data-theme="light"] .blog-pagination a,
[data-theme="light"] .blog-pagination span {
  color: rgba(0, 0, 0, 0.65);
  border-color: rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .blog-pagination a:hover {
  color: rgba(0, 0, 0, 0.9);
}

/* Etat vide */
[data-theme="light"] .blog-empty {
  color: rgba(0, 0, 0, 0.55);
}

/* Article single - hero */
[data-theme="light"] .article-hero__h1 {
  color: rgba(0, 0, 0, 0.9);
}
[data-theme="light"] .article-hero__excerpt {
  color: rgba(0, 0, 0, 0.7);
}
[data-theme="light"] .article-hero__meta {
  color: rgba(0, 0, 0, 0.6);
  border-top-color: rgba(0, 0, 0, 0.10);
}

/* Article single - contenu rendu (texte de l'article) */
[data-theme="light"] .article-content {
  color: rgba(0, 0, 0, 0.85);
}
[data-theme="light"] .article-content h2,
[data-theme="light"] .article-content h3 {
  color: rgba(0, 0, 0, 0.9);
}
[data-theme="light"] .article-content p {
  color: rgba(0, 0, 0, 0.82);
}
[data-theme="light"] .article-content strong {
  color: rgba(0, 0, 0, 0.95);
}
[data-theme="light"] .article-content blockquote {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.7);
}
[data-theme="light"] .article-content code {
  background: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .article-content pre {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .article-content hr {
  border-top-color: rgba(0, 0, 0, 0.10);
}
/* Tableaux article en mode light : papier translucide + borders adaptees */
[data-theme="light"] .article-content table {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .article-content thead th {
  color: rgba(0, 0, 0, 0.92);
  background: rgba(0, 0, 0, 0.10);
  border-bottom: 2px solid rgba(232, 0, 10, 0.55);
}
[data-theme="light"] .article-content tbody td {
  color: rgba(0, 0, 0, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .article-content tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.025);
}
[data-theme="light"] .article-content tbody tr:hover td {
  background: rgba(232, 0, 10, 0.05);
}

/* Partage social */
[data-theme="light"] .article-share__label {
  color: rgba(0, 0, 0, 0.6);
}
[data-theme="light"] .article-share__btn {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.65);
}
[data-theme="light"] .article-share__btn:hover {
  color: rgba(0, 0, 0, 0.9);
  border-color: var(--color-rouge-teco);
  background: rgba(255, 255, 255, 0.9);
}

/* Articles connexes */
[data-theme="light"] .article-related {
  border-top-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .article-related__title {
  color: rgba(0, 0, 0, 0.9);
}

/* ============================================================
   ENGAGEMENT ARTICLE : Like + Commenter + Partage
   ============================================================ */
.article-engagement {
  max-width: 720px;
  margin: 2rem auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.article-engagement__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 150ms ease;
}
.article-engagement__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  border-color: rgba(232, 0, 10, 0.35);
}
.article-engagement__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.article-engagement__btn.article-engagement__like.is-active {
  background: rgba(232, 0, 10, 0.15);
  border-color: var(--color-rouge-teco);
  color: var(--color-rouge-teco);
}
.article-engagement__btn.article-engagement__like.is-active svg {
  fill: var(--color-rouge-teco);
}
.article-engagement__count {
  font-weight: 700;
  min-width: 1ch;
}
.article-engagement__share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.article-engagement__share-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-right: 0.25rem;
}

/* ============================================================
   SECTION COMMENTAIRES
   ============================================================ */
.article-comments {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1.5rem 3rem;
}
.article-comments__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-text-primary);
  margin: 0 0 1.5rem;
}
.article-comments__count {
  color: var(--color-text-muted);
  font-size: 0.9em;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.article-comments__flash {
  padding: 0.9rem 1.1rem;
  border-radius: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.article-comments__flash--ok {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success);
  border-left: 3px solid var(--color-success);
}
.article-comments__flash--err {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-error);
  border-left: 3px solid var(--color-error);
}

/* Formulaire de post commentaire */
.article-comments__form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.article-comments__form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}
.article-comments__form textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--color-text-primary);
  resize: vertical;
  min-height: 100px;
  transition: border-color 150ms ease;
}
.article-comments__form textarea:focus {
  outline: none;
  border-color: var(--color-rouge-teco);
  box-shadow: 0 0 0 3px rgba(232, 0, 10, 0.12);
}
.article-comments__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.article-comments__form-info {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* CTA connexion pour utilisateurs non-connectes */
.article-comments__cta-login {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
}
.article-comments__cta-login p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}
.article-comments__cta-login a {
  color: var(--color-rouge-teco);
  text-decoration: underline;
  font-weight: 600;
}

/* Etat vide */
.article-comments__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 0.92rem;
}

/* Liste commentaires */
.article-comments__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.article-comments__item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
}
.article-comments__item-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.article-comments__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-rouge-teco);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.article-comments__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.article-comments__author {
  color: var(--color-text-primary);
  font-size: 0.92rem;
}
.article-comments__date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.article-comments__body {
  color: var(--color-text-primary);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Reponse de l'equipe TECO */
.article-comments__item--teco {
  background: rgba(232, 0, 10, 0.06);
  border-color: rgba(232, 0, 10, 0.28);
}
.article-comments__item--reponse {
  margin-left: 1.75rem;
  border-left: 2px solid var(--color-rouge-teco);
}
.article-comments__avatar--teco svg { width: 18px; height: 18px; }
.article-comments__badge {
  margin-left: auto; align-self: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--color-rouge-teco);
  border: 1px solid rgba(232, 0, 10, 0.4);
  border-radius: 999px; padding: 0.2rem 0.55rem; white-space: nowrap;
}
@media (max-width: 640px) {
  .article-comments__item--reponse { margin-left: 0.75rem; }
  .article-comments__badge { font-size: 0.64rem; padding: 0.15rem 0.45rem; }
}

/* ============ VARIANTS LIGHT ============ */
[data-theme="light"] .article-engagement {
  border-top-color: rgba(0, 0, 0, 0.10);
  border-bottom-color: rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .article-engagement__btn {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.65);
}
[data-theme="light"] .article-engagement__btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.9);
  border-color: rgba(232, 0, 10, 0.4);
}
[data-theme="light"] .article-engagement__btn.article-engagement__like.is-active {
  background: rgba(232, 0, 10, 0.08);
  border-color: var(--color-rouge-teco);
  color: var(--color-rouge-teco);
}
[data-theme="light"] .article-engagement__share-label {
  color: rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .article-comments__title {
  color: rgba(0, 0, 0, 0.9);
}
[data-theme="light"] .article-comments__count {
  color: rgba(0, 0, 0, 0.5);
}
[data-theme="light"] .article-comments__form,
[data-theme="light"] .article-comments__cta-login,
[data-theme="light"] .article-comments__item {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .article-comments__form textarea {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.85);
}
[data-theme="light"] .article-comments__form textarea:focus {
  background: #FFFFFF;
  border-color: var(--color-rouge-teco);
}
[data-theme="light"] .article-comments__form-label {
  color: rgba(0, 0, 0, 0.7);
}
[data-theme="light"] .article-comments__form-info,
[data-theme="light"] .article-comments__empty,
[data-theme="light"] .article-comments__date {
  color: rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .article-comments__cta-login p {
  color: rgba(0, 0, 0, 0.7);
}
[data-theme="light"] .article-comments__author,
[data-theme="light"] .article-comments__body {
  color: rgba(0, 0, 0, 0.85);
}
[data-theme="light"] .article-comments__item--teco {
  background: rgba(232, 0, 10, 0.05);
  border-color: rgba(232, 0, 10, 0.22);
}
/* Une reponse porte les DEUX classes. Les regles claires ci-dessus visent
   border-color et ont une specificite plus forte que .article-comments__item
   --reponse : elles ramenaient donc la barre gauche rouge a 22 % d'opacite,
   soit la couleur des trois autres cotes de la carte. En clair, le rattachement
   visuel au commentaire d'origine ne tenait plus qu'a l'indentation. Meme
   specificite, placee apres : la barre reste pleine dans les deux themes. */
[data-theme="light"] .article-comments__item--reponse {
  border-left-color: var(--color-rouge-teco);
}
