/* ============================================================
   AF18 — ARTICLE CSS
   Header article · Breadcrumbs · Grille contenu · Typographie
   Info boxes · Data tables · Key facts · Author bio
   Social share · Sidebar · Widgets · Comments
   ============================================================ */

/* ---- TAGS / META ---- */
.article-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-strong-text);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.meta-dot { opacity: 0.5; font-size: 0.8rem; }
.article-meta__date {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-meta__date--top {
  align-items: flex-start;
  line-height: 1.45;
}
.article-meta__date-icon {
  flex: 0 0 auto;
  margin-top: calc((1em * 1.45 - 15px) / 2);
}
.article-header--compact {
  padding-bottom: 40px;
}
.article-title--archive {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.actualites--archive {
  padding-top: 48px;
}

.meta-share {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
.meta-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white-pure);
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
  padding: 0 8px;
  font-family: inherit;
  font-size: 0.78rem;
  white-space: nowrap;
}
.meta-share-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-light);
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #0f172a;
  flex-shrink: 0;
}
.author img.author-avatar { background: none; }

.author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}
.author-name  { font-weight: 600; font-size: 0.95rem; }
.author-title { font-size: 0.75rem; color: var(--muted); font-weight: 500; }

.comparator-zone {
  padding: 0;
  margin: 0 0 40px;
}

/* ---- GRILLE ARTICLE ---- */
.article-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  padding: 0 0 48px;
}
.article-main-grid > * {
  min-width: 0;
}
.article-main-grid__full {
  grid-column: 1 / -1;
}

/* ---- IMAGE MISE EN AVANT ---- */
.featured-image-wrap {
  margin: 0 0 40px;
}
.featured-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.featured-image-caption {
  margin-top: 10px;
  padding: 0 4px;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
  color: var(--muted-light);
}
.featured-image-caption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- CONTENU ARTICLE ---- */
.article-content {
  /* Largeur de lecture confortable (~68-70 caractères/ligne) appliquée
     aux éléments de texte courant via --measure ci-dessous. */
  --measure: 70ch;
  font-size: 1.1875rem;       /* ~19px — calibre éditorial */
  color: #1f2937;             /* corps plus contrasté que --text-secondary */
  line-height: 1.72;          /* respiration « presse » pour la lecture longue */
  font-weight: 400;
  letter-spacing: -0.003em;
  min-width: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}
[data-theme="dark"] .article-content { color: var(--text-secondary); }

/* Mesure de lecture : on contraint la largeur des éléments de TEXTE courant
   (pas les images, tableaux, encadrés, CTA qui restent pleine colonne). */
.article-content > p,
.article-content > ul,
.article-content > ol,
.article-content > h2,
.article-content > h3,
.article-content > h4,
.article-content > blockquote,
.article-content > .lead,
.article-content > .pull-quote {
  max-width: var(--measure);
}

/* Encadrés éditoriaux af-blocs : alignés sur la mesure de lecture pour rester
   cohérents avec le texte sur les pages pleine largeur (sans sidebar).
   Exceptions conservées : callout « pleine largeur » ou « largeur limitée »
   (flottants), et af-editorial-cta qui déborde volontairement. */
.article-content > .af-callout:not(.af-callout--width-full):not(.af-callout--width-limited),
.article-content > .info-box,
.article-content > .af-howto,
.article-content > .af-cta,
.article-content > .af-pros-cons,
.article-content > .af-faq,
.article-content > .af-disclosure {
  max-width: var(--measure);
}

.article-content > * {
  max-width: 100%;
  min-width: 0;
}
.article-content > :where(
  pre,
  table:not(.data-table),
  .wp-block-table,
  .wp-block-code,
  .wp-block-preformatted,
  .wp-block-group,
  .wp-block-columns,
  .wp-block-media-text,
  .alignwide,
  .alignfull
) {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.article-content :where(img, svg, video, canvas, object, embed) {
  max-width: 100%;
  height: auto;
}
.article-content iframe {
  max-width: 100%;
}
.article-content .wp-block-embed {
  margin: 32px 0 40px;
}
.article-content .wp-block-embed__wrapper {
  max-width: 100%;
}
.article-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
  position: relative;
}
.article-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
  content: "";
  display: block;
  padding-top: 50%;
}
.article-content .wp-block-embed.wp-has-aspect-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.article-content .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper::before { padding-top: 42.85%; }
.article-content .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper::before { padding-top: 50%; }
.article-content .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { padding-top: 56.25%; }
.article-content .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before { padding-top: 75%; }
.article-content .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { padding-top: 100%; }
.article-content .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { padding-top: 177.77%; }
.article-content .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { padding-top: 200%; }
.article-content pre {
  max-width: 100%;
  overflow-x: auto;
}
.article-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.article-content .wp-block-table table {
  width: 100%;
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  margin: 56px 0 24px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.article-content h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 16px;
  line-height: 1.35;
}
.article-content > :is(h2, h3, h4):first-child {
  margin-top: 0;
}
.article-content p { margin-bottom: 28px; }
.article-content figcaption,
.article-content .wp-element-caption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}
.article-content strong { font-weight: 600; }
.article-content a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.article-content a:hover { text-decoration-thickness: 2px; }
.article-content a.af-offer-card__cta,
.article-content a.af-offer-card__cta:hover,
.article-content a.af-offer-card__cta:active {
  color: var(--accent-strong-text);
  text-decoration: none;
}

.article-content .lead {
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  margin-bottom: 32px;
  font-weight: 500;
}

/* Listes */
.article-content ul,
.article-content ol {
  padding-left: 0;
  list-style: none;
  margin-bottom: 24px;
  display: block;
}
.article-content ol { counter-reset: list-counter; }

.article-content ol li,
.article-content ul li {
  position: relative;
  color: inherit;
  line-height: 1.7;
}
.article-content ol li + li,
.article-content ul li + li {
  margin-top: 10px;
}
.article-content ol li {
  padding-left: 36px;
  counter-increment: list-counter;
}
.article-content ol li::before {
  content: counter(list-counter);
  position: absolute; left: 0; top: 0.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--accent);
  color: var(--accent-strong-text);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}
.article-content ul li { padding-left: 18px; }
.article-content ul li::before {
  content: '';
  position: absolute; left: 0; top: calc(0.9em - 3px);
  display: block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Blockquote */
.article-content blockquote,
.blockquote {
  position: relative;
  border-left: 3px solid var(--accent);
  padding: 15px 0 15px 28px;
  margin: 36px 0;
  font-style: italic;
  /* Même taille que le corps de l'article (pas d'agrandissement) */
  font-size: inherit;
  line-height: 1.6;
  color: var(--text);
}
/* Guillemets français en filigrane, uniquement si une attribution <cite>
   est présente (les citations legacy sans <cite> n'en affichent pas). */
.article-content blockquote:has(cite)::before {
  content: "\00AB\00BB";
  position: absolute;
  bottom: 8px;
  left: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.15em;
}
/* Le contenu passe au-dessus du filigrane */
.article-content blockquote > * {
  position: relative;
  z-index: 1;
}
/* Paragraphes de la citation : marges resserrées (pas le 28px du corps) */
.article-content blockquote p {
  margin-bottom: 14px;
}
.article-content blockquote p:last-of-type {
  margin-bottom: 0;
}
/* Attribution : style distinct de la citation — droit, plus petit,
   police d'affichage, avec tiret cadratin. */
.article-content blockquote cite {
  display: block;
  margin-top: 18px;
  margin-left: 45px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary);
}
.article-content blockquote cite::before {
  content: "— ";
  color: var(--muted);
}

/* ---- PULL QUOTE ---- */
.pull-quote {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 10px;
  font-style: italic;
}
.pull-quote cite {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

/* ---- INFO BOXES ---- */
.info-box {
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-box.info    { background: var(--blue-light);   border-color: #bfdbfe; }
.info-box.warning { background: var(--accent-light); border-color: var(--accent-border); }
.info-box.success { background: var(--green-light);  border-color: #a7f3d0; }

.info-box-icon    { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.info-box-content p { font-size: 0.9rem; line-height: 1.65; margin: 0; color: var(--text-secondary); }
.info-box-content strong { display: block; margin-bottom: 4px; font-size: 0.88rem; color: var(--text); }

/* ---- MENTION LÉGALE DISCRÈTE (affiliation / classement) ---- */
.af-legal-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 28px 0 0;
  padding-top: 16px;
}
.af-legal-note__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: var(--muted-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.af-legal-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}
.af-legal-note strong { font-weight: 600; color: var(--text-secondary); }
.af-legal-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.af-legal-note a:hover { color: var(--text); }

/* ---- GUTENBERG ENCADRE (af-blocs/encadre) ---- */
.article-content .af-callout {
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.article-content .af-callout__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.article-content .af-callout__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.article-content .af-callout__icon-svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-content .af-callout__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.article-content .af-callout__content {
  color: var(--text-secondary);
}

.article-content .af-callout__content > *:last-child {
  margin-bottom: 0;
}

.article-content .af-callout--width-full {
  width: 100%;
  /* « Pleine largeur » = pleine largeur de la colonne de lecture (la mesure),
     pas de la page entière — pour rester aligné avec le texte sur les pages
     full width. Sur un post avec sidebar, mesure ≈ colonne, donc inchangé. */
  max-width: var(--measure);
}

.article-content .af-callout--width-limited {
  width: min(100%, calc(var(--af-callout-limited-width, 40) * 1%));
}

.article-content .af-callout--width-limited.af-callout--float-left {
  float: left;
  margin: 6px 24px 16px 0;
}

.article-content .af-callout--width-limited.af-callout--float-right {
  float: right;
  margin: 6px 0 16px 24px;
}

.article-content .af-callout--width-limited.af-callout--float-none {
  margin-left: 0;
  margin-right: 0;
}

.article-content .af-callout--tip,
.article-content .af-callout--info {
  background: var(--blue-light);
  border-color: #bfdbfe;
}

.article-content .af-callout--tip .af-callout__icon,
.article-content .af-callout--info .af-callout__icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.article-content .af-callout--warning {
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.article-content .af-callout--warning .af-callout__icon {
  background: #fef3c7;
  color: #b45309;
}

.article-content .af-callout--danger {
  background: var(--red-light);
  border-color: #fecaca;
}

.article-content .af-callout--danger .af-callout__icon {
  background: #fee2e2;
  color: #b91c1c;
}

/* Dark mode : fonds translucides (les --blue-light / --red-light clairs
   ne sont pas redéfinis en dark → texte clair illisible sur fond clair).
   --warning fonctionne déjà via le token --accent-light redéfini en dark. */
[data-theme="dark"] .article-content .af-callout--tip,
[data-theme="dark"] .article-content .af-callout--info {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
}

[data-theme="dark"] .article-content .af-callout--danger {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.35);
}

@media (max-width: 900px) {
  .article-content .af-callout--width-limited {
    width: 100%;
    float: none;
    margin: 32px 0;
  }
}

/* ---- GUTENBERG HOW TO (af-blocs/how-to) ---- */
.article-content .af-howto {
  counter-reset: af-howto-step;
  margin: 36px 0;
}

.article-content .af-howto .af-howto__step {
  counter-increment: af-howto-step;
  position: relative;
  padding-left: 54px;
  margin: 0;
  min-height: 32px;
}

.article-content .af-howto .af-howto__step:not(:last-child) {
  margin-bottom: 18px;
}

.article-content .af-howto .af-howto__step::before {
  content: counter(af-howto-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.article-content .af-howto .af-howto__step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 36px;
  bottom: -10px;
  width: 2px;
  background: var(--border-light);
  pointer-events: none;
}

.article-content .af-howto .af-howto__step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 6px;
}

.article-content .af-howto .af-howto__step-content {
  color: var(--text-secondary);
  line-height: 1.55;
}

.article-content .af-howto .af-howto__step-content > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .article-content .af-howto .af-howto__step {
    padding-left: 44px;
    min-height: 28px;
  }

  .article-content .af-howto .af-howto__step::before {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }

  .article-content .af-howto .af-howto__step:not(:last-child)::after {
    left: 12px;
    top: 31px;
  }

  .article-content .af-howto .af-howto__step-title {
    font-size: 1rem;
    margin-bottom: 4px;
  }
}

/* ---- GUTENBERG CTA (af-blocs/cta) ---- */
.article-content .af-cta {
  margin: 28px 0;
}

.article-content .af-cta .af-cta__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease;
  box-sizing: border-box;
}

.article-content .af-cta .af-cta__button::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.article-content .af-cta a.af-cta__button:hover {
  background: var(--accent-hover);
}

/* ---- GUTENBERG CTA EDITORIAL (af-blocs/editorial-cta) ----
   Le bloc déborde latéralement via des marges négatives, mais le texte
   interne reste aligné avec le reste du contenu de l'article grâce au
   padding équivalent. width + max-width:none neutralisent la règle
   `.article-content > * { max-width: 100% }` qui sinon capait à droite. */
.article-content .af-editorial-cta[hidden] {
  display: none;
}

.article-content .af-editorial-cta {
  --af-cta-bleed: 28px;
  width: calc(100% + var(--af-cta-bleed) * 2);
  max-width: none;
  margin: 32px calc(var(--af-cta-bleed) * -1);
  padding: 22px var(--af-cta-bleed);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white-pure);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.article-content .af-editorial-cta .af-editorial-cta__content {
  flex: 1;
  min-width: 0;
}

.article-content .af-editorial-cta .af-editorial-cta__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 6px;
}

.article-content .af-editorial-cta .af-editorial-cta__description {
  color: var(--text-secondary);
  line-height: 1.55;
}

.article-content .af-editorial-cta .af-editorial-cta__description > *:last-child {
  margin-bottom: 0;
}

.article-content .af-editorial-cta .af-editorial-cta__action {
  flex: 0 0 auto;
}

.article-content .af-editorial-cta .af-editorial-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition: background 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.article-content .af-editorial-cta .af-editorial-cta__button::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.article-content .af-editorial-cta a.af-editorial-cta__button:hover {
  background: var(--accent-hover);
}

@media (max-width: 900px) {
  .article-content .af-editorial-cta {
    --af-cta-bleed: 0px;
    width: auto;
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .article-content .af-editorial-cta .af-editorial-cta__action,
  .article-content .af-editorial-cta .af-editorial-cta__button {
    width: 100%;
  }
}

/* ---- GUTENBERG AVANTAGES / INCONVENIENTS (af-blocs/pros-cons) ---- */
.article-content .af-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.article-content .af-pros-cons .af-pros-cons__column {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.article-content .af-pros-cons .af-pros-cons__column--pros {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.article-content .af-pros-cons .af-pros-cons__column--cons {
  background: #fef2f2;
  border-color: #fecaca;
}

/* Dark mode : fonds translucides (les verts/rouges clairs codés en dur
   rendent le texte clair illisible sur fond clair en dark). */
[data-theme="dark"] .article-content .af-pros-cons .af-pros-cons__column--pros {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
}

[data-theme="dark"] .article-content .af-pros-cons .af-pros-cons__column--cons {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
}

.article-content .af-pros-cons .af-pros-cons__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.article-content .af-pros-cons .af-pros-cons__column--pros .af-pros-cons__heading::before,
.article-content .af-pros-cons .af-pros-cons__column--cons .af-pros-cons__heading::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.article-content .af-pros-cons .af-pros-cons__column--pros .af-pros-cons__heading::before {
  content: '+';
  background: #d1fae5;
  color: #065f46;
}

.article-content .af-pros-cons .af-pros-cons__column--cons .af-pros-cons__heading::before {
  content: '-';
  background: #fee2e2;
  color: #991b1b;
}

.article-content .af-pros-cons .af-pros-cons__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-content .af-pros-cons .af-pros-cons__list li {
  position: relative;
  padding-left: 18px;
  margin: 0 0 8px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.article-content .af-pros-cons .af-pros-cons__list li:last-child {
  margin-bottom: 0;
}

.article-content .af-pros-cons .af-pros-cons__list li::before {
  content: none;
}

/* ---- OFFERS UI (cartes liste/comparateurs) ---- */
.af-offers-list {
  margin: 32px 0;
}

.af-offers-tech-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
  flex-wrap: wrap;
}

.af-offers-tech-tab {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.af-offers-tech-tab.active {
  background: var(--white-pure);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.af-offers-tech-tab:hover:not(.active) {
  color: var(--text-secondary);
}

.af-offers-tech-tab__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.af-offers-tech-tab__logo {
  display: block;
  width: 32px;
  height: 22px;
  object-fit: contain;
}

.af-offers-tech-panel[hidden] {
  display: none;
}

.af-offers-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.container--article-bottom {
  padding-bottom: 96px;
}

.news-listing {
  padding: 0 0 96px;
}

.news-load-more {
  margin-top: 48px;
  text-align: center;
}

.news-pagination {
  margin-top: 48px;
}

.news-empty {
  color: var(--muted);
  padding: 64px 0;
  text-align: center;
}

.af-offers-list--fixed .af-offers-list__grid {
  grid-template-columns: repeat(2, 1fr);
}

.af-offer-card {
  background: var(--white-pure);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.22s;
  position: relative;
  overflow: hidden;
}

.af-offer-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease-out;
}

.af-offer-card:hover::before { width: 100%; }

.af-offer-card:hover {
  transform: translateY(-4px);
}

.af-offer-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  column-gap: 8px;
  row-gap: 4px;
  margin-bottom: 14px;
}

.af-offer-card__top:has(.af-offer-card__price-after) {
  margin-bottom: calc(14px - 4px - 0.72rem * 1.5);
}

.af-offer-card__operator {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.af-offer-card__logo {
  width: 72px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.af-offer-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.af-offer-card__logo-initials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent-text);
  line-height: 1;
}

.af-offer-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.af-offer-card__badge--promo {
  background: var(--accent);
  color: var(--accent-strong-text);
}

.af-offer-card__badge--tech-5gplus {
  background: none;
  border: none;
  padding: 0;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .af-offer-card__badge--tech-5gplus {
  color: #4ade80;
}

.af-offer-card__badge--tech-5g {
  background: none;
  border: none;
  padding: 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.af-offer-card__badge--tech-4g {
  background: none;
  border: none;
  padding: 0;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.af-offer-card__badge--tech-other {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.af-offer-card__badge--price {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.af-offer-card__name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.af-offer-card__divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 14px 0;
}

.af-offer-card__pricing {
  margin-bottom: 12px;
}

.af-offer-card__data-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.af-offer-card__data-col {
  background: var(--accent-light);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  color: var(--accent-text);
}

.af-offer-card__data-col .data-volume {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-text);
}

.af-offer-card__data-col .data-volume .data-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0;
}

.af-offer-card__data-col .data-volume--sm {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.af-offer-card__data-col--network {
  justify-content: flex-end;
  gap: 6px;
}

.af-offer-card__data-col--network .data-network-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-network-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-wrap: wrap;
}

.data-network-logo {
  width: 30px;
  max-width: 30px !important;
  height: 18px;
  max-height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: sepia(2.6) saturate(1.8) brightness(0.85);
  transition: filter 0.18s;
}

.af-offer-card:hover .data-network-logo {
  filter: none;
}

.data-network-row .af-offer-card__badge {
  filter: sepia(2.6) saturate(1.8) brightness(0.85);
  transition: filter 0.18s;
}

.af-offer-card:hover .data-network-row .af-offer-card__badge {
  filter: none;
}

.data-network-initials {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.af-offer-card__data-col .data-network-initials {
  color: var(--accent-text);
}

.af-offer-card__data-col .data-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text-soft);
}

.af-offer-card__price-block {
  display: contents;
}

.af-offer-card__price-main {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: stretch;
  line-height: 1;
  color: var(--text);
}

.af-offer-card__price-main--promo { color: var(--accent-text); }
[data-theme="dark"] .af-offer-card__price-main--promo { color: var(--accent); }

.af-offer-card__price-main .price-int {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.af-offer-card__price-main .price-right {
  display: flex;
  flex-direction: column;
  padding-left: 3px;
}

.af-offer-card__price-main .price-cents {
  flex: 1;
  display: flex;
  align-items: flex-end;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  padding-bottom: 1px;
}

.af-offer-card__price-main .price-period {
  flex: 1;
  display: flex;
  align-items: flex-start;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
  padding-top: 1px;
}

.af-offer-card__price-after {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.af-offer-card__price-after.is-empty {
  visibility: hidden;
}

.af-offer-card__price-after strong {
  color: var(--text-secondary);
}

.af-offer-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.af-offer-card__spec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  padding-block: 0.25rem;
  color: var(--text-secondary);
}

.af-offers-list--fixed .af-offer-card__specs--main {
  margin-bottom: 12px;
}

.af-offers-list--fixed .af-offer-card__specs--footer {
  flex: none;
  margin-top: auto;
}

.af-offer-card__spec-text {
  min-width: 0;
  line-height: 1.25;
}

.af-offer-card__spec-category {
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.af-offer-card__spec-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.af-offer-card__spec-icon--green {
  color: var(--green);
}

.af-offer-card__spec-sep {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 4px 0;
  list-style: none;
  padding: 0;
}

.af-offer-card__specs .af-offer-card__spec--secondary {
  color: var(--muted);
}

.af-offer-card__specs .af-offer-card__spec--secondary .af-offer-card__spec-icon {
  color: var(--muted);
}

.af-offer-card__specs .af-offer-card__spec--secondary strong {
  color: var(--muted);
}

.af-offer-card__spec strong {
  font-weight: 600;
  color: var(--text);
}

.af-offer-card__info {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.af-offer-card__info::after {
  content: none !important;
  display: none !important;
}

.af-offer-card__info-trigger {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white-pure);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.af-offer-card__tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: none;
  width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--text);
  color: var(--white-pure);
  font-size: 0.74rem;
  line-height: 1.45;
  box-shadow: var(--shadow);
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.af-offer-card__tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: var(--text);
  transform: rotate(45deg);
}

.af-offer-card__info.is-open .af-offer-card__tooltip,
.af-offer-card__info:focus-within .af-offer-card__tooltip {
  display: block;
  transform: translateY(0);
  pointer-events: auto;
}

@media (hover: hover) {
  .af-offer-card__info:hover .af-offer-card__tooltip {
    display: block;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.af-offers-list--fixed .af-offer-card {
  overflow: visible;
}

.af-offer-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: var(--accent-strong-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s;
  margin-top: auto;
}

.af-offers-list--fixed .af-offer-card__cta {
  margin-top: 0;
}

.af-offer-card__cta:hover {
  transform: scale(1.02) translateY(-1px);
  box-shadow: var(--shadow-accent);
  background: #f5ca00;
  color: var(--accent-strong-text);
}

.af-offer-card__cta:active {
  transform: scale(0.97);
  box-shadow: none;
}

.af-offer-card__cta--disabled,
.af-offer-card__cta--disabled:hover,
.af-offer-card__cta--disabled:active {
  cursor: default;
  transform: none;
  box-shadow: none;
  opacity: 0.72;
}

.af-offer-card__network {
  font-size: 0.72rem;
  color: var(--muted-light);
  margin-top: 10px;
  text-align: center;
}

/* ---- CARTES BROADBAND ---- */
.af-offer-card--bb .af-offer-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 16px 0 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.af-offer-card__data-row--bb {
  grid-template-columns: 1fr 1fr;
}

.af-offer-card__data-row--bb-single {
  grid-template-columns: 1fr;
}

.af-offer-card__data-col--bb-tech {
  justify-content: center;
}

.bb-tech-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent-text);
}

.bb-wifi-norm {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  opacity: 0.75;
  line-height: 1;
}

.af-offer-card__data-col--bb-speeds {
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.af-offer-card__data-col--bb-speeds-full {
  min-height: 88px;
}

.bb-speed-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.bb-speed-arrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-text);
  line-height: 1;
  flex-shrink: 0;
}

.bb-speed-val {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent-text);
}

.bb-speed-unit {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent-text);
}

.bb-tv-line {
  white-space: nowrap;
}

.bb-repeater-line {
  line-height: 1.3;
}

.bb-tv-channels {
  font-weight: 400;
  color: var(--muted);
}

.af-offer-card__specs .af-offer-card__spec--tv-unavailable,
.af-offer-card__specs .af-offer-card__spec--tv-unavailable .af-offer-card__spec-icon,
.af-offer-card__specs .af-offer-card__spec--tv-unavailable strong {
  opacity: 0.45;
}

.af-offer-card__specs .af-offer-card__spec--highlight,
.af-offer-card__specs .af-offer-card__spec--highlight strong,
.af-offer-card__specs .af-offer-card__spec--highlight .af-offer-card__spec-icon {
  color: #16a34a;
  stroke: #16a34a;
}

[data-theme="dark"] .af-offer-card__specs .af-offer-card__spec--highlight,
[data-theme="dark"] .af-offer-card__specs .af-offer-card__spec--highlight strong,
[data-theme="dark"] .af-offer-card__specs .af-offer-card__spec--highlight .af-offer-card__spec-icon {
  color: #4ade80;
  stroke: #4ade80;
}

.af-offer-card__specs .af-offer-card__spec--tv-included .bb-tv-line,
.af-offer-card__specs .af-offer-card__spec--tv-included .bb-tv-line strong,
.af-offer-card__specs .af-offer-card__spec--tv-included .af-offer-card__spec-icon {
  color: #16a34a;
  stroke: #16a34a;
}

[data-theme="dark"] .af-offer-card__specs .af-offer-card__spec--tv-included .bb-tv-line,
[data-theme="dark"] .af-offer-card__specs .af-offer-card__spec--tv-included .bb-tv-line strong,
[data-theme="dark"] .af-offer-card__specs .af-offer-card__spec--tv-included .af-offer-card__spec-icon {
  color: #4ade80;
  stroke: #4ade80;
}

.af-offer-card__specs .af-offer-card__spec--activation-free,
.af-offer-card__specs .af-offer-card__spec--activation-free strong,
.af-offer-card__specs .af-offer-card__spec--activation-free .af-offer-card__spec-icon {
  color: #16a34a;
  stroke: #16a34a;
}

[data-theme="dark"] .af-offer-card__specs .af-offer-card__spec--activation-free,
[data-theme="dark"] .af-offer-card__specs .af-offer-card__spec--activation-free strong,
[data-theme="dark"] .af-offer-card__specs .af-offer-card__spec--activation-free .af-offer-card__spec-icon {
  color: #4ade80;
  stroke: #4ade80;
}

.article-content .af-offer-card__specs li { padding-left: 0; }
.article-content .af-offer-card__specs li::before { content: none; }

.article-content .af-pros-cons .af-pros-cons__list li::after {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
}

.article-content .af-pros-cons .af-pros-cons__column--pros .af-pros-cons__list li::after {
  color: #059669;
}

.article-content .af-pros-cons .af-pros-cons__column--cons .af-pros-cons__list li::after {
  color: #dc2626;
}

@media (max-width: 900px) {
  .article-content .af-pros-cons {
    grid-template-columns: 1fr;
  }

  .af-offers-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- GUTENBERG FAQ ACCORDEON (af-blocs/faq-accordion) ---- */
.article-content .af-faq {
  margin: 32px 0;
  display: grid;
  gap: 12px;
}

.article-content .af-faq .af-faq__item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white-pure);
  overflow: hidden;
}

.article-content .af-faq .af-faq__question-wrap {
  margin: 0;
}

.article-content .af-faq .af-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.article-content .af-faq .af-faq__question-text {
  flex: 1;
  min-width: 0;
}

.article-content .af-faq .af-faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.article-content .af-faq .af-faq__icon::before,
.article-content .af-faq .af-faq__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.article-content .af-faq .af-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.article-content .af-faq .af-faq__item.is-open .af-faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.article-content .af-faq .af-faq__answer {
  padding: 0 18px 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article-content .af-faq .af-faq__answer[hidden] {
  display: none;
}

.article-content .af-faq .af-faq__answer-content > *:last-child {
  margin-bottom: 0;
}

/* ---- GUTENBERG BLOC DEPLIABLE (af-blocs/disclosure) ---- */
.article-content .af-disclosure {
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white-pure);
  overflow: hidden;
}

.article-content .af-disclosure__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.article-content .af-disclosure__summary {
  flex: 1;
  min-width: 0;
}

.article-content .af-disclosure__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.article-content .af-disclosure__icon::before,
.article-content .af-disclosure__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.article-content .af-disclosure__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.article-content .af-disclosure.is-open .af-disclosure__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.article-content .af-disclosure__content {
  padding: 0 18px 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article-content .af-disclosure__content[hidden] {
  display: none;
}

.article-content .af-disclosure__content > *:last-child {
  margin-bottom: 0;
}

/* ---- DATA TABLE ---- */
.data-table-wrap {
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}
.data-table-title {
  background: var(--bg);
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--bg);
  padding: 11px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 13px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.data-table tr:last-child td          { border-bottom: none; }
.data-table tbody tr:hover            { background: var(--bg); }
.data-table .highlight-row            { background: rgba(255,211,1,0.04); }
.data-table .highlight-row:hover      { background: rgba(255,211,1,0.08); }

.tag-ok   { color: #065f46; background: var(--green-light);  padding: 2px 8px; border-radius: 20px; font-size: 0.76rem; font-weight: 600; }
.tag-warn { color: var(--accent-text); background: var(--accent-light); padding: 2px 8px; border-radius: 20px; font-size: 0.76rem; font-weight: 600; }
.tag-bad  { color: #7f1d1d; background: var(--red-light);    padding: 2px 8px; border-radius: 20px; font-size: 0.76rem; font-weight: 600; }

/* ---- KEY FACTS ---- */
.key-facts {
  margin: 36px 0;
  padding: 24px;
  background: #0f172a;
  border-radius: var(--radius-lg);
}
.key-facts-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.key-facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.key-fact {
  border-left: 2px solid rgba(255,211,1,0.3);
  padding-left: 14px;
}
.key-fact-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.key-fact-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
}

/* ---- AUTHOR BIO ---- */
.author-bio {
  margin-top: 40px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--white-pure);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.author-bio-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #f5ca00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
  overflow: hidden;
}
.author-bio-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.author-bio-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 3px; }
.author-bio-role { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.author-bio-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ---- SOCIAL SHARE ---- */
.article-share {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.share-label { font-weight: 700; font-size: 1rem; color: var(--text); }
.share-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: var(--white-pure);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
}
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.share-btn.copy-btn {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent-text);
}
.share-btn.copy-btn:hover { background: var(--accent); color: var(--text); }
[data-theme="dark"] .share-btn.copy-btn       { color: var(--accent); }
[data-theme="dark"] .share-btn.copy-btn:hover { color: #000; }
.share-btn--icon { padding: 10px; }

.meta-share-btn.accent-btn {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent-text);
  gap: 6px;
}
.meta-share-btn.accent-btn:hover { background: var(--accent); color: #0f172a; }
[data-theme="dark"] .meta-share-btn.accent-btn       { color: var(--accent); }
[data-theme="dark"] .meta-share-btn.accent-btn:hover { color: #000; }

.js-native-share,
.share-icon-ios,
.share-icon-android {
  display: none;
}

.js-native-share.is-visible {
  display: inline-flex;
}

.share-icon-ios.is-visible,
.share-icon-android.is-visible {
  display: block;
}

/* ---- SIDEBAR ---- */
.sidebar {
  align-self: stretch;
  position: relative;
}

.sidebar-sticky {
  position: sticky;
  top: 88px; /* header 64px + marge 24px */
}
body.admin-bar .sidebar-sticky {
  top: 120px; /* 32px admin bar + 64px header + 24px marge */
}
@media screen and (max-width: 782px) {
  body.admin-bar .sidebar-sticky {
    top: 134px; /* 46px admin bar + 64px header + 24px marge */
  }
}

.widget {
  background: var(--glass-bg);
  border: 1px solid var(--white-pure);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
}
.widget--dark {
  background: #1e293b;
  border: none;
  color: white;
}
.widget--top-offers {
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.widget-title > * {
  min-width: 0;
}
.widget-title__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.widget--top-offers .widget-title {
  justify-content: space-between;
  gap: 16px;
  color: var(--accent-text);
}
.widget-title a {
  color: inherit;
  text-decoration: none;
}
.widget-title a:hover {
  color: var(--text);
}
.widget--dark .widget-title   { color: white; }

.top-banner-section {
  margin: 0 auto;
  padding: 0 24px;
}

body.has-sitewide-mea-banner #main {
  padding-top: 108px;
}

.top-banner {
  max-width: 1200px;
  margin: 0 auto;
}

.top-banner__link,
.top-banner__image {
  display: block;
  width: 100%;
}

.top-banner__image {
  height: auto;
  border-radius: 14px;
}

.top-banner-section + .article-header {
  padding-top: 48px;
}

/* Mini offer cards */
.sidebar-offer { display: flex; flex-direction: column; gap: 32px; }

.offer-mini { display: flex; flex-direction: column; align-items: flex-start; position: relative; }

.offer-mini-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  text-decoration: none;
  background: var(--white-pure);
  padding: 16px;
  border: 1px solid rgba(255, 211, 1, 0.15);
  border-radius: 12px;
  transition: all 0.2s;
  gap: 10px;
  color: inherit;
}
/* Dark : fond plus sombre, il faut plus d'accent pour rester jaune et
   ressortir (plus clair) sur le bloc olive. */
[data-theme="dark"] .offer-mini-card {
  background: color-mix(in srgb, var(--accent) 13%, var(--bg-elevated));
}
.offer-mini-card:hover {
  border-color: var(--accent);
  color: var(--text);
}
.offer-info {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.mini-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mini-brand-logo {
  display: block;
  width: 48px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.mini-op {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.mini-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.mini-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.3;
  margin: auto 0 0;
}
.mini-subtitle {
  /* Intégrée dans .offer-info, juste sous le titre, alignée à gauche. */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 6px 0 auto;
  color: var(--green);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.mini-subtitle__text {
  min-width: 0;
}
.offer-mini > .offer-mini-card { width: 100%; }
.mini-price {
  display: flex;
  align-items: flex-start;
  color: var(--text);
  line-height: 0.9;
  margin-bottom: 12px;
}
.price-big   { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.05em; }
.price-stack { display: flex; flex-direction: column; margin-left: 2px; padding-top: 4px; }
.price-small  { font-size: 0.95rem; font-weight: 700; }
.price-period { font-size: 0.75rem; color: var(--muted); font-weight: 600; }

.offer-actions { display: flex; flex-direction: column; align-items: center; min-width: 90px; }

.mini-cta {
  background: var(--accent);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  transition: all 0.2s;
  white-space: nowrap;
  width: 100%;
  cursor: pointer;
}
.mini-cta:hover         { background: var(--accent-hover); }
.offer-mini-card:hover .mini-cta { background: var(--accent-hover); }

/* Comparator links */
.comp-links-intro {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--accent-text);
}
.tv-nav-title-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.tv-nav-title-link:hover {
  color: var(--text);
}
.comp-links { display: flex; flex-direction: column; gap: 10px; }
.comp-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white-pure);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
  transition: all 0.2s;
}
.comp-link:hover {
  border-color: var(--accent);
  color: var(--text);
}
.lexique-sidebar-intro {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 12px;
}
.lexique-sidebar-link {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.site-nav-link.is-current {
  border-color: var(--accent);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, var(--white-pure));
}
.comp-link svg {
  color: var(--accent-text);
  opacity: 0.6;
  transition: all 0.2s;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.comp-link:hover svg    { opacity: 1; transform: translateX(3px); }
.site-nav-link.is-current svg { opacity: 1; }

/* Newsletter in sidebar */
.widget--dark p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 20px;
}
.widget--dark input[type="email"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #334155;
  color: white;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}
.widget--dark input[type="email"]::placeholder { color: #64748b; }
.widget--dark input[type="email"]:focus { outline: 2px solid var(--accent); }
.widget--dark button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}
.widget--dark button:hover { background: var(--accent-hover); }

/* Widget badge label */
.widget-badge {
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-text);
}

/* ---- SOMMAIRE (template Dossier) ---- */

.toc-widget--mobile {
  display: none;
}

.toc-widget--desktop {
  position: sticky;
  top: 88px;
  z-index: 3;
  background: var(--white-pure);
  border-color: var(--border);
}

body.admin-bar .toc-widget--desktop {
  top: 120px;
}
body.admin-bar .toc-widget--desktop nav {
  max-height: min(420px, calc(100vh - 392px));
}

[data-theme="dark"] .toc-widget--desktop {
  background: var(--bg-elevated);
  border-color: var(--border);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc-counter;
}
.toc-item--h2 {
  counter-increment: toc-counter;
}
.toc-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  line-height: 1.45;
}
.toc-link::before {
  content: counter(toc-counter);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .toc-link::before { color: #000; }
.toc-link:hover,
.toc-link.is-active {
  background: rgba(255,211,1,0.2);
  color: var(--text);
}
.toc-item--h2 .toc-link.is-active::before {
  background: var(--text);
  color: var(--white);
}
.toc-item--h3 .toc-link {
  padding-left: 20px;
  font-size: 0.81rem;
  color: var(--muted);
}
.toc-item--h3 .toc-link::before { display: none; }
.toc-item--h3 .toc-link::after {
  content: '';
  display: none;
}

.toc-widget__summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}
.toc-widget__summary::-webkit-details-marker {
  display: none;
}
.toc-widget__summary::marker {
  content: '';
}
.toc-widget__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.toc-widget--mobile[open] .toc-widget__chevron {
  transform: rotate(180deg);
}
.toc-widget--desktop[open] .toc-widget__chevron {
  transform: rotate(180deg);
}
.toc-widget--mobile nav {
  margin-top: 16px;
}
.toc-widget--desktop nav {
  margin-top: 16px;
  max-height: min(420px, calc(100vh - 360px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.toc-widget--desktop nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.toc-widget--desktop nav.is-user-scrolling {
  scrollbar-width: thin;
  -ms-overflow-style: auto;
}
.toc-widget--desktop nav.is-user-scrolling::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.toc-widget--desktop nav.is-user-scrolling::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
  border-radius: 999px;
}
.toc-widget--desktop nav.is-user-scrolling::-webkit-scrollbar-track {
  background: transparent;
}

.article-content h2[id],
.article-content h3[id] {
  scroll-margin-top: 88px;
}

body.admin-bar .article-content h2[id],
body.admin-bar .article-content h3[id] {
  scroll-margin-top: 120px;
}

@media (max-width: 782px) {
  body.admin-bar .article-content h2[id],
  body.admin-bar .article-content h3[id] {
    scroll-margin-top: 134px;
  }

  body.admin-bar .toc-widget--desktop {
    top: 134px;
  }
  .toc-widget--desktop nav {
    max-height: min(420px, calc(100vh - 374px));
  }
}

@media (max-width: 1024px) {
  .toc-widget--desktop {
    position: static;
    top: auto;
  }
  .toc-widget--desktop {
    display: none;
  }
  .toc-widget--mobile {
    display: block;
    margin: 20px 0 0;
  }
}

.sidebar-sticky--static {
  position: static;
  top: auto;
}

/* ---- ALIGNEMENTS IMAGES GUTENBERG ---- */
.wp-block-image { margin: 0 0 24px; }
.wp-block-image img { max-width: 100%; height: auto; display: block; }
.wp-block-image.alignleft  { float: left;  margin: 4px 24px 16px 0; }
.wp-block-image.alignright { float: right; margin: 4px 0 16px 24px; }
.wp-block-image.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-block-image.alignfull,
.wp-block-image.alignwide  { max-width: 100%; }

/* Alignements classiques (éditeur classique / shortcodes) */
.alignleft  { float: left;  margin: 4px 24px 16px 0; }
.alignright { float: right; margin: 4px 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* Clearfix pour les floats dans le contenu */
.article-content::after { content: ''; display: table; clear: both; }

/* Neutralise la bordure thead injectée par les styles core WP */
.wp-block-table thead {
  border-bottom: 0 !important;
}

/* ---- TABLEAUX DANS LE CONTENU ---- */
/* Base commune pour tous les tableaux éditoriaux (hors .data-table custom).
   Hiérarchie visuelle :
     - Wrapper avec border + radius + ombre douce (rendu "carte")
     - Thead distinct (fond accent-light, texte brun-jaune en caps)
     - 1ère colonne du tbody = libellé (semi-bold, texte foncé)
     - Lignes section/colspan = bandeau jaune pâle uppercase
     - Alternance subtile + hover accentué */

.article-content .wp-block-table,
.article-content table:not(.data-table) {
  margin: 32px 0 40px;
}

/* Wrapper "carte" Gutenberg — bord arrondi, ombre légère, scroll horizontal */
.article-content .wp-block-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white-pure);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  overflow-y: hidden;
  display: block;
  -webkit-overflow-scrolling: touch;
}

/* Tableaux bruts (sans wrapper figure) — enfant direct de .article-content.
   border-radius non appliqué : display: table + border-collapse: collapse ne
   permettent pas un arrondi propre des coins. Le bord et l'ombre suffisent. */
.article-content > table:not(.data-table) {
  width: 100%;
  background: var(--white-pure);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Inner table du wp-block-table — pleine largeur, sans styles wrapper en double */
.article-content .wp-block-table table {
  display: table;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

/* Base typo + alignement chiffres communs à tous les tableaux éditoriaux */
.article-content .wp-block-table table,
.article-content table:not(.data-table) {
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Caption (figcaption sous le tableau Gutenberg, caption HTML natif) */
.article-content .wp-block-table figcaption,
.article-content .wp-block-table .wp-element-caption {
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 10px 4px 0;
  line-height: 1.5;
}

.article-content table:not(.data-table) caption {
  caption-side: bottom;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 10px 4px 0;
}

/* Spécifique comparatifs volumineux */
.article-content .wp-block-table.tablesorter table {
  min-width: 1100px;
}

/* THEAD — bandeau accent en haut */
.article-content .wp-block-table thead tr,
.article-content table:not(.data-table) thead tr {
  background: var(--accent-light);
}

.article-content .wp-block-table table th,
.article-content .wp-block-table table thead th,
.article-content table:not(.data-table) th,
.article-content table:not(.data-table) thead th {
  padding: 13px 16px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-text);
  text-align: center;
  border: none;
  border-bottom: 1px solid var(--accent-border);
  vertical-align: middle;
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
}

/* Body cells — espacement plus aéré horizontalement, ligne plus serrée verticalement */
.article-content .wp-block-table table td,
.article-content table:not(.data-table) td {
  padding: 11px 16px;
  vertical-align: middle;
  text-align: center;
  color: var(--text-secondary);
  border: none;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

/* 1ère colonne — libellé : aligné à gauche, semi-bold, texte foncé */
.article-content .wp-block-table table th:first-child,
.article-content table:not(.data-table) th:first-child {
  text-align: left;
}

.article-content .wp-block-table tbody td:first-child,
.article-content table:not(.data-table) tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

/* Suppression de la séparation de la dernière ligne */
.article-content .wp-block-table tr:last-child td,
.article-content table:not(.data-table) tr:last-child td {
  border-bottom: none;
}

/* Alternance subtile (zebra) — améliore le suivi des longues lignes */
.article-content .wp-block-table tbody tr:nth-child(2n),
.article-content table:not(.data-table) tbody tr:nth-child(2n) {
  background: color-mix(in srgb, var(--bg-subtle) 40%, var(--white-pure));
}

/* Hover — léger relief jaune */
.article-content .wp-block-table tbody tr,
.article-content table:not(.data-table) tbody tr {
  transition: background 0.12s ease;
}

.article-content .wp-block-table tbody tr:hover,
.article-content table:not(.data-table) tbody tr:hover {
  background: color-mix(in srgb, var(--accent-light) 65%, var(--white-pure));
}

/* Lignes "section" — th/td avec colspan : séparateur intra-tableau plus discret
   que le thead. Fond plus prononcé que le zebra pour bien marquer le rupture. */
.article-content .wp-block-table table tr:has(> th[colspan]),
.article-content .wp-block-table table tr:has(> td[colspan]),
.article-content table:not(.data-table) tr:has(> th[colspan]),
.article-content table:not(.data-table) tr:has(> td[colspan]) {
  background: var(--bg);
}

.article-content .wp-block-table table tbody tr:has(> th[colspan]):hover,
.article-content .wp-block-table table tbody tr:has(> td[colspan]):hover,
.article-content table:not(.data-table) tbody tr:has(> th[colspan]):hover,
.article-content table:not(.data-table) tbody tr:has(> td[colspan]):hover {
  background: var(--bg);
}

.article-content .wp-block-table table tr:has(> th[colspan]) > th,
.article-content .wp-block-table table tr:has(> td[colspan]) > td,
.article-content table:not(.data-table) tr:has(> th[colspan]) > th,
.article-content table:not(.data-table) tr:has(> td[colspan]) > td {
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

/* Strong dans une cellule de section : pas de retraitement extra (déjà bold) */
.article-content .wp-block-table table tr:has(> th[colspan]) > th strong,
.article-content .wp-block-table table tr:has(> th[colspan]) > th b,
.article-content .wp-block-table table tr:has(> td[colspan]) > td strong,
.article-content .wp-block-table table tr:has(> td[colspan]) > td b,
.article-content table:not(.data-table) tr:has(> th[colspan]) > th strong,
.article-content table:not(.data-table) tr:has(> th[colspan]) > th b,
.article-content table:not(.data-table) tr:has(> td[colspan]) > td strong,
.article-content table:not(.data-table) tr:has(> td[colspan]) > td b {
  font-weight: 700;
  color: inherit;
}

/* Première colonne et colspan : aligné à gauche pour les en-têtes */
.article-content .wp-block-table table th[colspan],
.article-content .wp-block-table table td[colspan],
.article-content table:not(.data-table) th[colspan],
.article-content table:not(.data-table) td[colspan] {
  text-align: left;
}

/* Cellule contenant un CTA — compacte, sans padding générique */
.article-content .wp-block-table table td:has(.cbtn),
.article-content table:not(.data-table) td:has(.cbtn) {
  width: 1%;
  padding: 8px 10px;
  white-space: nowrap;
}

/* Logo opérateur (1ère colonne) */
.article-content .wp-block-table.tablesorter td:first-child figure { margin: 0; }
.article-content .wp-block-table.tablesorter td:first-child img {
  border-radius: 6px;
  display: inline;
  max-width: none;
}

/* Prix en gras */
.article-content .wp-block-table td b,
.article-content .wp-block-table td strong,
.article-content table:not(.data-table) td b,
.article-content table:not(.data-table) td strong {
  color: var(--text);
  font-weight: 700;
}

/* Bouton "Voir »" */
.cbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.2s ease;
  box-sizing: border-box;
}
.cbtn::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.cbtn:hover {
  background: var(--accent-hover);
}

/* ---- CONTENU FULL WIDTH (template Comparatif) ---- */
.article-content--wide {
  max-width: 100%;
}
.article-content--wide .data-table-wrap,
.article-content--wide table {
  width: 100%;
}
.article-content--wide > p,
.article-content--wide > ul,
.article-content--wide > ol,
.article-content--wide > h2,
.article-content--wide > h3,
.article-content--wide > h4,
.article-content--wide > blockquote,
.article-content--wide > .lead,
.article-content--wide > .pull-quote {
  max-width: 100%;
}

/* ---- HEADER COMPARATEUR : titre à gauche, CTA app compact à droite ---- */
.article-header--with-cta .article-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.article-header__main { min-width: 0; }

.article-header__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  max-width: 280px;
}

/* Bouton CTA façon .btn-hero mais plus compact */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0f172a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s;
  white-space: nowrap;
}

.header-cta-btn:hover,
.header-cta-btn:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
  outline: none;
}

.header-cta-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.header-cta-btn__icon {
  flex-shrink: 0;
}

.header-cta-btn__label {
  white-space: nowrap;
}

.header-cta-btn__arrow {
  display: inline-block;
  transition: transform 0.18s ease-out;
}

.header-cta-btn:hover .header-cta-btn__arrow {
  transform: translateX(3px);
}

.header-cta-hint {
  margin: 12px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .article-header--with-cta .article-header__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .article-header__cta {
    max-width: 100%;
  }
}

/* Empêche les blocs wide/full de casser la grille contenu + sidebar */
.article-content > .alignwide,
.article-content > .alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* ---- COMMENTS ---- */
.comments-section { padding: 48px 0 96px; background: var(--bg); }
.comments-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}
.comment-list-wrap {
  position: relative;
}
.comment-list-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  transition: opacity 0.2s;
  opacity: 0;
}
.comment-list-wrap.is-scrollable::after {
  opacity: 1;
}
.comment-list-wrap.is-bottom::after {
  opacity: 0;
}

.comment-list {
  list-style: none;
  padding: 0;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.comment-list::-webkit-scrollbar { width: 4px; }
.comment-list::-webkit-scrollbar-track { background: transparent; }
.comment-list::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
.af18-comment { margin-bottom: 24px; }
.comment-inner {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
}
.comment-meta { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.comment-author { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.comment-team-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
  line-height: 1.6;
}
.comment-date   { font-size: 0.8rem; color: var(--muted); }
.comment-text   { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; }
.comment-reply  { margin-top: 8px; }
.comment-reply a { font-size: 0.82rem; color: var(--muted); font-weight: 600; text-decoration: none; }
.comment-reply a:hover { color: var(--text); }
.comments-closed-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 24px;
}

/* Réponses imbriquées — connecteur en └── */
.comment-list .children {
  list-style: none;
  padding: 0 0 0 40px;
  margin: 12px 0 0 16px;
  position: relative;
  border: none;
}

.comment-list .children .af18-comment {
  position: relative;
  margin-bottom: 16px;
}

/* Ligne verticale : pleine hauteur pour les non-derniers, tronquée au bras pour le dernier */
.comment-list .children .af18-comment::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
  border-radius: 2px;
}
.comment-list .children .af18-comment:last-child::before {
  bottom: auto;
  height: 15px;
}

/* Bras horizontal vers la réponse */
.comment-list .children .af18-comment::after {
  content: '';
  position: absolute;
  left: -38px;
  top: 13px;
  width: 30px;
  height: 2px;
  background: var(--border-light);
  border-radius: 0 2px 2px 0;
}

/* Comment form */
#respond { margin-top: 40px; }
.comment-reply-title__text {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.comment-form label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 6px; margin-top: 16px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form #submit { margin-top: 0; }
.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
}
.comment-form .form-submit { margin-top: 14px; }
.comment-form .comment-form-cookies-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
}
.comment-form .comment-form-cookies-consent label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .article-main-grid { grid-template-columns: 1fr; gap: 48px; }
  .article-content-body { order: 1; }
  .article-main-grid__full { order: 2; }
  .sidebar { order: 3; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .sidebar .widget { margin-bottom: 0; }
  .sidebar-sticky { position: static; display: contents; }
}

@media (max-width: 640px) {
  body.has-sitewide-mea-banner #main {
    padding-top: 84px;
  }
  .top-banner-section {
    padding: 0 16px;
  }
  .top-banner-section + .article-header {
    padding-top: 32px;
  }
  .sidebar { grid-template-columns: 1fr; }
  .key-facts-grid { grid-template-columns: 1fr; }
  .share-buttons { flex-wrap: wrap; }
  .af-offers-list__grid { grid-template-columns: repeat(2, 1fr); }

  /* Corps : calibre resserré pour la lecture mobile */
  .article-content { font-size: 1.0625rem; line-height: 1.68; }
  .article-content h2 { font-size: 1.55rem; margin: 40px 0 18px; }
  .article-content h3 { font-size: 1.3rem; margin: 32px 0 16px; }
  .article-content p { margin-bottom: 22px; }
}

@media (max-width: 480px) {
  .meta-share {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .meta-share::-webkit-scrollbar { display: none; }
  .meta-share-btn { flex: 0 0 auto; }
  .meta-share.is-native-share-ready {
    flex: 0 0 auto;
    margin-left: auto;
    overflow: visible;
  }
  .meta-share.is-native-share-ready > :not(.js-native-share),
  .share-buttons.is-native-share-ready > :not(.js-native-share) {
    display: none;
  }
  .meta-share.is-native-share-ready .js-native-share,
  .share-buttons.is-native-share-ready .js-native-share {
    display: inline-flex;
  }
  .offer-mini-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mini-cta { width: 100%; }
  .af-offers-list__grid { grid-template-columns: 1fr; }
}
