@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --max-width: 900px;
  --accent: #0b69ff;
  --muted: #666;
  --bg: #fafafa;
  --paper: #fff;
  --img-max: 500px;
  --img-radius: 8px;
  --img-radius-sm: 6px;
  --img-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  --img-spacing: 24px;
  --caption-bg: rgba(0, 123, 255, .05);
  --caption-color: #666;
  --trans-speed: .3s;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0%   { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

@keyframes bannerGlow {
  0%   { opacity: .6; }
  100% { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); }
  50%       { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

@keyframes orb1 {
  0%   { opacity: .5; }
  33%  { opacity: .8; }
  66%  { opacity: .4; }
  100% { opacity: .5; }
}

@keyframes orb2 {
  0%   { transform: translate(0, 0) scale(1); opacity: .4; }
  40%  { transform: translate(-50px, 20px) scale(1.2); opacity: .7; }
  75%  { transform: translate(30px, -15px) scale(.85); opacity: .3; }
  100% { transform: translate(0, 0) scale(1); opacity: .4; }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(250%) skewX(-15deg); }
}

@keyframes borderPulse {
  0%, 100% { opacity: .15; }
  50%       { opacity: .4; }
}

.blog-wrapper {
  width: 100%;
  padding: 40px 20px 24px;
  box-sizing: border-box;
}

/* ============================================================
   BLOG BANNER
   Prolonge visuellement le hero (#0a0025 → #1a1450)
   ============================================================ */


.blog-banner {
  position: relative;
  /*margin: 0 0 50px;*/
  border-radius: 0;
  overflow: hidden;

  background: linear-gradient(135deg, #0a0025 0%, #1a1450 100%);

  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 32px;

  /* Séparation douce avec la page blanche en dessous */
  box-shadow:
    0 12px 40px rgba(10, 0, 37, .35),
    0 1px 0 rgba(255, 255, 255, .06) inset;
}

/* Orbes lumineux animés */
.blog-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 100% at -5% 50%,  rgba(31, 124, 255, .18) 0%, transparent 60%),
    radial-gradient(ellipse 30% 80%  at 92% 20%,  rgba(0, 212, 255, .20) 0%, transparent 55%),
    radial-gradient(ellipse 25% 60%  at 60% 90%,  rgba(139, 92, 246, .15) 0%, transparent 50%);
  animation: orb1 8s ease-in-out infinite;
  pointer-events: none;
}

/* Grille + shimmer */
.blog-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Ligne shimmer qui traverse la bannière */
.blog-banner .banner-shimmer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blog-banner .banner-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, .06) 40%,
    rgba(255, 255, 255, .10) 50%,
    rgba(255, 255, 255, .06) 60%,
    transparent 100%
  );
  animation: shimmer 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Bordure lumineuse animée en haut */
.blog-banner .banner-border-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(31, 124, 255, .6) 25%,
    rgba(0, 212, 255, .9) 50%,
    rgba(31, 124, 255, .6) 75%,
    transparent 100%
  );
  animation: borderPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.banner-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  /* Accent bleu du navbar (#1f7cff) */
  background: linear-gradient(135deg, #1f7cff, #0d5fd4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(31, 124, 255, .45);
}

.banner-body {
  position: relative;
  z-index: 1;
  flex: 1;
}

.banner-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.banner-headline em {
  font-style: italic;
  /* Reprend l'accent du hover navbar */
  color: #00d4ff;
}

.banner-sub {
  font-size: .9rem;
  color: rgba(255, 255, 255, .5);
  margin: 0;
  line-height: 1.5;
}

.banner-badge {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  /* Légèrement translucide sur le fond sombre */
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 14px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

.badge-time {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.3;
}

.badge-time-alt {
  font-size: .72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .03em;
}

.badge-label {
  font-size: .7rem;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================
   FILTER BAR
   ============================================================ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0 0 32px;
}

.filter-btn {
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .22s ease;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}

.filter-btn.filter-all {
  background: #1a2533;
  color: #fff;
  border-color: #1a2533;
}

.filter-btn:not(.filter-all) {
  background: var(--cat-color);
  color: #fff;
  border-color: var(--cat-color);
}

.filter-btn.filter-all.active {
  background: #fff;
  color: #1a2533;
  border-color: #1a2533;
  cursor: default;
}

.filter-btn:not(.filter-all).active {
  background: #fff;
  color: var(--cat-color);
  border-color: var(--cat-color);
  cursor: default;
}

.filter-btn.filter-all:not(.active):hover {
  background: #fff;
  color: #1a2533;
  border-color: #1a2533;
}

.filter-btn:not(.filter-all):not(.active):hover {
  background: #fff;
  color: var(--cat-color);
  border-color: var(--cat-color);
}

/* ============================================================
   CARDS GRID
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */

.article-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(10, 20, 40, .07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(10, 20, 40, .13);
  border-color: var(--cat-color);
}

.card-category {
  display: inline-block;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 0 0 10px 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  line-height: 1.4;
}

.card-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f0f4f8;
  flex-shrink: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.article-card:hover .card-img {
  transform: scale(1.12);
}

.card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
  text-decoration: none;
  border-top: 4px solid var(--cat-color);
  transition: border-color .25s ease;
  flex-shrink: 0;
}

.article-card:hover .card-img-placeholder {
  border-color: #fff;
}

.card-img-icon {
  font-size: 2.5rem;
  opacity: .45;
}

.card-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2533;
  margin: 0;
  line-height: 1.4;
  transition: color .25s ease;
}

.article-card:hover .card-title {
  color: var(--cat-color);
}

.card-summary {
  font-size: .875rem;
  color: #5a6777;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.card-read-link {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  transition: opacity .2s;
}

.card-read-link:hover {
  opacity: .75;
  text-decoration: underline;
}

/* ============================================================
   STRETCHED LINK
   Rend toute la zone de la carte cliquable via le lien principal.
   - Le ::after du .main-link recouvre toute la .article-card.
   - .card-top-row a déjà z-index:3 + pointer-events:auto sur ses
     enfants (.card-category, .card-share-group), donc le bouton
     de partage et son dropdown restent cliquables au-dessus.
   ============================================================ */

.article-card .main-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Curseur main sur toute la carte pour signaler qu'elle est cliquable */
.article-card { cursor: pointer; }

/* On reset le curseur sur les éléments interactifs internes
   pour qu'ils gardent leur propre cursor (texte, pointeur de bouton…) */
.article-card .card-title,
.article-card .card-summary {
  cursor: text;
}

.tab-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  padding: 40px 0;
  line-height: 1.7;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 36px 0 8px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: #444;
  background: #fff;
  border: 2px solid #e0e4ea;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.page-btn:hover:not(.page-current) {
  border-color: #aab4c4;
  background: #f4f6f9;
  color: #111;
  transform: translateY(-1px);
}

.page-btn.page-current {
  background: #1a2533;
  color: #fff;
  border-color: #1a2533;
  cursor: default;
  box-shadow: 0 2px 8px rgba(26, 37, 51, .25);
}

.page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  color: #999;
  font-size: .95rem;
  letter-spacing: 1px;
  user-select: none;
}

/* ============================================================
   BLOG INTRO
   ============================================================ */

.blog-intro {
  max-width: var(--max-width);
  margin: 10px auto 40px;
  padding: 20px 30px;
  background: rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .4);
  box-sizing: border-box;
}

.blog-intro p {
  margin: 0 0 12px;
  font-size: .9rem;
  line-height: 1.7;
  color: #555;
  text-align: center;
}

.blog-intro p:last-child { margin-bottom: 0; }

.blog-intro strong {
  font-weight: 700;
  color: #1976d2;
}

/* ============================================================
   ARTICLE PAGE (article.php)
   ============================================================ */

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 28px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}

.article-content > img,
.article-content p img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
  border-radius: var(--img-radius);
  margin: var(--img-spacing) auto;
  box-shadow: var(--img-shadow);
}

.article-content .image-container {
  width: 100%;
  max-width: var(--img-max);
  margin: var(--img-spacing) auto;
  border-radius: var(--img-radius);
  box-shadow: var(--img-shadow);
  overflow: hidden;
  background: #f5f5f5;
}

.article-content .image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.article-content .image-caption {
  display: block;
  text-align: center;
  font-size: .88em;
  color: var(--caption-color);
  font-style: italic;
  padding: 10px 16px;
  background: var(--caption-bg);
  line-height: 1.45;
}

.article-content .image-gallery,
.article-content .image-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 650px;
  margin: var(--img-spacing) auto;
}

.article-content .image-gallery .gallery-item,
.article-content .image-grid-2 .grid-item {
  border-radius: var(--img-radius-sm);
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .1);
  background: #f5f5f5;
}

.article-content .image-gallery img,
.article-content .image-grid-2 img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.article-content .image-hero {
  width: 100%;
  max-width: 700px;
  max-height: 350px;
  margin: var(--img-spacing) auto;
  overflow: hidden;
  border-radius: var(--img-radius);
}

.article-content .image-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.article-content .article-takeaway {
  background: color-mix(in srgb, var(--article-color, #1f7cff) 8%, #fff);
  border-left: 4px solid var(--article-color, #1f7cff);
  border-radius: 0 10px 10px 0;
  padding: .85rem 1.2rem;
  margin-top: 2rem;
}

.image-fallback {
  padding: 30px;
  text-align: center;
  background: #f5f5f5;
  border-radius: 8px;
  color: #999;
  border: 2px dashed #ddd;
  margin: 16px 0;
}

.loading-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.spinner {
  margin: 0 auto 20px;
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.article-permalink {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.article-permalink a {
  color: #1f7cff;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}

.article-permalink a:hover { text-decoration: underline; }

/* ============================================================
   SHARE BUTTON
   ============================================================ */

/* Ligne catégorie + partage dans le header article */
.article-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}

/* Ligne catégorie + partage dans les cartes */
.card-top-row {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.card-top-row .card-category {
  position: static;
  pointer-events: auto;
}

.card-top-row .card-share-group {
  pointer-events: auto;
  margin: 6px 8px 0 0;
}

.share-group {
  position: relative;
}

/* Bouton partage plein texte (header article) */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  background: var(--article-color, #1f7cff);
  border: 1.5px solid var(--article-color, #1f7cff);
  border-radius: 999px;
  padding: .4rem .9rem;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.share-btn:hover {
  background: #fff;
  color: var(--article-color, #1f7cff);
  border-color: var(--article-color, #1f7cff);
}

/* Bouton icône seule dans les cartes */
.card-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--cat-color, #1f7cff);
  border: 1.5px solid var(--cat-color, #1f7cff);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: all .18s ease;
  flex-shrink: 0;
}

.card-share-btn:hover {
  background: #fff;
  border-color: var(--cat-color, #1f7cff);
  color: var(--cat-color, #1f7cff);
}

/* Dropdown commun */
.share-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  min-width: 170px;
  overflow: hidden;
  z-index: 200;
  flex-direction: column;
}

/* Dans le header article, ouvrir vers le bas */
.article-header .share-dropdown {
  top: calc(100% + 6px);
  bottom: auto;
}

.share-dropdown.open { display: flex; }

.share-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .95rem;
  font-size: .84rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .14s;
  white-space: nowrap;
}

.share-item + .share-item {
  border-top: 1px solid #f2f4f7;
}

.share-item:hover          { background: #f5f7fa; }
.share-facebook:hover      { color: #1877f2; }
.share-twitter:hover       { color: #000; }
.share-linkedin:hover      { color: #0a66c2; }
.share-whatsapp:hover      { color: #25d366; }
.share-copy:hover          { color: var(--article-color, #1f7cff); }

/* ============================================================
   AUDIO CONTAINER
   ============================================================ */

.audio-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 28px auto;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  border: 1px solid rgba(255, 255, 255, .2);
  box-sizing: border-box;
  overflow: hidden;
}

.audio-container audio {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.audio-transcript {
  margin-top: 12px;
  font-size: .8em;
  line-height: 1.4;
  color: rgba(255, 255, 255, .9);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.audio-transcript strong { color: #fff; font-weight: 700; }
.audio-transcript * { color: inherit; font-weight: 400; }

/* ============================================================
   PAGE ARTICLE UNIQUE
   ============================================================ */

.article-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.article-breadcrumb {
  font-size: .82rem;
  color: #aab;
  margin-bottom: 2.5rem;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  align-items: center;
}

.article-breadcrumb a {
  color: #6b8cba;
  text-decoration: none;
  transition: color .2s;
}

.article-breadcrumb a:hover { color: #1f7cff; }
.article-breadcrumb span[aria-hidden] { color: #ccc; }

.article-single {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(10, 20, 50, .08);
  overflow: hidden;
}

.article-header {
  padding: 2.5rem 2.5rem 2rem;
  border-bottom: 1px solid #f0f2f6;
  position: relative;
}

.article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--article-color, #1f7cff);
}

.article-category {
  display: inline-block;
  background: var(--article-color, #1f7cff);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1rem;
}

.article-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: #111827;
  margin: 0 0 .75rem;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
  letter-spacing: -.02em;
}

.article-date {
  color: #b0b8c8;
  font-size: .82rem;
  margin: 0;
  letter-spacing: .02em;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-content {
  padding: 2.5rem 2.5rem 1rem;
  line-height: 1.85;
  color: #2d3748;
  font-size: 1.05rem;
}

.article-content p {
  /*margin: 0 0 0.6rem;*/
  text-align: justify;
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  margin: 2.5rem 0 .8rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--article-color, #1f7cff);
  letter-spacing: -.01em;
}

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

.article-content h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--article-color, #1f7cff);
  margin: 2rem 0 .6rem;
}

.article-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #4a5568;
  margin: 1.5rem 0 .5rem;
}

.article-content strong { font-weight: 700; color: #1a202c; }
.article-content em { font-style: italic; color: #4a5568; }

.article-content ul,
.article-content ol {
  padding-left: 1.6rem;
  margin: 0 0 1.2rem;
}

.article-content li {
  margin-bottom: .5rem;
  line-height: 1.75;
}

.article-content ul li { list-style-type: disc; }
.article-content ol li { list-style-type: decimal; }

.article-content a {
  color: var(--article-color, #1f7cff);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  transition: border-style .2s;
}

.article-content a:hover { border-bottom-style: solid; }

.article-content blockquote {
  border-left: 4px solid var(--article-color, #1f7cff);
  padding: .75rem 1.25rem;
  margin: 1.75rem 0;
  color: #555;
  font-style: italic;
  background: color-mix(in srgb, var(--article-color, #1f7cff) 6%, #fff);
  border-radius: 0 10px 10px 0;
}

/* ── Exemples linguistiques dans les articles ── */
.article-content .ex {
  display: block;
  margin: .3rem 0;
  padding-left: 14px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: .96em;
  line-height: 1.6;
  color: #2d3748;
}

.article-content .ex .note {
  font-style: normal;
  color: #888;
  font-size: .88em;
}

/* Badge "Simple" / "Be-ing" / "Present perfect" … */
.article-content .concept {
  display: inline-block;
  border: 1px solid var(--article-color, #1f7cff);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .8em;
  font-weight: 600;
  font-style: normal;
  color: var(--article-color, #1f7cff);
  margin-right: 5px;
  vertical-align: middle;
  line-height: 1.5;
  white-space: nowrap;
}

.article-content code {
  background: #f3f4f6;
  padding: .15em .45em;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: .92em;
  color: #d63384;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 1.5rem auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .09);
}

.article-footer-nav {
  padding: 1.5rem 2.5rem 2rem;
  border-top: 1px solid #f0f2f6;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--article-color, #1f7cff);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  padding: .55rem 1.1rem;
  border: 2px solid var(--article-color, #1f7cff);
  border-radius: 999px;
  transition: all .22s ease;
}

.article-back-link:hover,
.article-back-link:active {
  background: transparent;
  color: var(--article-color, #1f7cff);
}

.article-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #1a2533;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  padding: .55rem 1.1rem;
  border: 2px solid #1a2533;
  border-radius: 999px;
  transition: all .22s ease;
  margin-left: auto;
}

.article-lang-switch:hover,
.article-lang-switch:active {
  background: transparent;
  color: #444;
  border-color: #ccc;
}

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

@media (max-width: 1200px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .filter-btn { font-size: .8rem; padding: 7px 16px; }
  .blog-wrapper { padding: 32px 16px 20px; }
  .blog-banner { padding: 28px 24px; }
}

@media (max-width: 640px) {
  .blog-banner {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    gap: 14px;
    margin: 0 0 40px;
  }
  .banner-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .banner-body { flex: 1; min-width: 0; }
  .banner-headline { font-size: .95rem; margin-bottom: 2px; }
  .banner-sub { font-size: .78rem; }
  .banner-badge {
    flex-direction: column;
    flex-shrink: 0;
    padding: 8px 12px;
    gap: 3px;
  }
  .badge-time { font-size: .85rem; }
  .badge-label { font-size: .6rem; }
  .article-page { padding: 1.5rem 1rem 3rem; }
  .article-header { padding: 1.75rem 1.25rem 1.5rem; }
  .article-content { padding: 1.75rem 1.25rem .75rem; }
  .article-footer-nav { padding: 1.25rem 1.25rem 1.5rem; }
  .article-title { font-size: 1.4rem; }
  .article-content { font-size: 1rem; }
}

@media (max-width: 520px) {
  .cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-body { padding: 14px; }
  .filter-bar { gap: 6px; }
  .filter-btn { font-size: .75rem; padding: 6px 13px; }
  .blog-wrapper { padding: 24px 12px 16px; }
  .blog-intro { margin: 40px auto 24px; padding: 14px 18px; }
  .blog-intro p { font-size: .85rem; }
  .page-btn { min-width: 36px; height: 36px; font-size: .85rem; }
  .audio-container { max-width: 100%; margin: 16px 0; padding: 14px; }
}

@media print {
  .filter-bar, .pagination { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}