[hidden]{display:none!important}
/* Skapánê — blog : page mère et article. Prolonge les tokens de styles.css. */

body.is-blog, body.is-article {
  margin: 0; background: var(--a900); color: #fff;
  font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--c3); color: var(--a900);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; }
a { color: inherit; }
:where(.is-blog, .is-article) :focus-visible { outline: 2px solid var(--c4); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 90; backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(27,10,34,.72); border-bottom: 1px solid var(--hair); }
.hd-in { max-width: 1280px; margin: 0 auto; padding: 0 28px; height: 68px;
  display: flex; align-items: center; gap: 26px; }
.hd-logo img { height: 36px; width: auto; display: block; }
.hd-nav { display: flex; gap: 4px; margin-left: 6px; flex: 1; }
.hd-nav a { padding: 9px 13px; border-radius: 9px; text-decoration: none;
  color: var(--mist); font: 600 14px var(--body); }
.hd-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.hd-nav a[aria-current="page"] { color: var(--c3); }
.btn { display: inline-block; text-decoration: none; font: 700 14px var(--body);
  padding: 12px 20px; border-radius: 12px; cursor: pointer; border: none; }
.btn-primary { background: var(--c3); color: var(--a900); }
.btn-primary:hover { background: var(--c2); }
@media (max-width: 900px) { .hd-nav { display: none; } }

/* ---------- barre de progression ---------- */
.progress { position: sticky; top: 68px; z-index: 80; height: 3px; background: rgba(255,255,255,.06); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c4), var(--c3)); }

/* ---------- page mère ---------- */
.blog, .art { max-width: 1560px; margin: 0 auto; padding: 56px 44px 96px; }
.eyebrow { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--c3); margin: 0 0 14px; }
.blog-hd { max-width: 860px; margin-bottom: 48px; }
.blog-hd h1 { font: 700 clamp(2rem,4vw,3.2rem)/1.1 var(--disp); letter-spacing: -.02em; margin: 0 0 16px; }
@media (min-width: 480px) { .blog-hd h1 .nowrap { white-space: nowrap; } }
.blog-sub { color: var(--mist); font-size: 17px; margin: 0; }

.feat { display: block; text-decoration: none; border: 1px solid var(--hair); border-radius: 20px;
  padding: 36px; margin-bottom: 36px; background:
  linear-gradient(135deg, rgba(156,247,254,.07), rgba(76,9,144,.10)); transition: border-color .2s, transform .2s; }
.feat:hover { border-color: rgba(156,247,254,.45); transform: translateY(-2px); }
.feat h2 { font: 700 clamp(1.5rem,2.6vw,2.2rem)/1.2 var(--disp); margin: 10px 0 12px; letter-spacing: -.015em; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.f-chip { font: 600 13px var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hair); background: rgba(255,255,255,.03); color: var(--mist); }
.f-chip:hover { color: #fff; border-color: rgba(156,247,254,.4); }
.f-chip.is-on { background: rgba(156,247,254,.12); border-color: rgba(156,247,254,.55); color: var(--c2); }

.cards { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cards-3 { grid-template-columns: 1fr; } .feat { padding: 24px; } }
.card { display: flex; flex-direction: column; text-decoration: none; padding: 26px;
  border: 1px solid var(--hair); border-radius: 16px; background: rgba(255,255,255,.025);
  transition: border-color .2s, transform .2s, background .2s; }
.card:hover { border-color: rgba(156,247,254,.45); transform: translateY(-3px); background: rgba(255,255,255,.04); }
.card h3 { font: 700 17px/1.35 var(--disp); margin: 10px 0 10px; }
.card-cat { font: 600 11px var(--mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--c3); margin: 0; }
.card-d { color: var(--mist); font-size: 14px; margin: 0 0 16px; flex: 1; }
.card-m { color: var(--mist2); font-size: 12.5px; margin: 0; }
.empty { color: var(--mist); text-align: center; padding: 40px 0; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pager button { font: 600 14px var(--body); min-width: 42px; padding: 10px 14px; border-radius: 10px;
  cursor: pointer; border: 1px solid var(--hair); background: rgba(255,255,255,.03); color: var(--mist); }
.pager button[aria-current="true"] { background: var(--c3); color: var(--a900); border-color: var(--c3); }

/* ---------- article ---------- */
.crumbs { font-size: 13px; color: var(--mist2); margin-bottom: 26px; }
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--c3); }
.art-hd { max-width: 980px; margin-bottom: 52px; }
.art-cat { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--c3); margin: 0 0 14px; }
.art-hd h1 { font: 700 clamp(2rem,4vw,3.1rem)/1.12 var(--disp); letter-spacing: -.02em; margin: 0 0 18px; }
.art-desc { font-size: 18px; color: var(--mist); margin: 0 0 18px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: var(--mist2); }

/* 3 colonnes : sommaire | contenu | CTA sticky a droite */
.art-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 330px;
  gap: 56px; align-items: start; }
.art-toc-col, .art-cta-col { position: sticky; top: 100px; }
@media (max-width: 1320px) {
  .art-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 44px; }
  .art-cta-col { grid-column: 1 / -1; position: static; max-width: 420px; }
}
@media (max-width: 1000px) {
  .art-grid { grid-template-columns: 1fr; gap: 28px; }
  .art-toc-col { position: static; }
  .art-cta-col { max-width: none; }
}
.toc { border: 1px solid var(--hair); border-radius: 16px; padding: 24px 22px; background: rgba(255,255,255,.025); }
.toc-h { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--c3); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 9px; }
.toc a { display: block; font-size: 14px; line-height: 1.5; color: var(--mist);
  text-decoration: none; padding-left: 22px; position: relative; }
.toc a::before { content: counter(toc); position: absolute; left: 0; font: 600 11px var(--mono); color: var(--mist2); }
.toc a:hover { color: #fff; }
.toc a.is-active { color: var(--c3); }
.toc a.is-active::before { color: var(--c3); }
.side-cta { border: 1px solid rgba(156,247,254,.35); border-radius: 16px; padding: 26px 24px;
  background: linear-gradient(135deg, rgba(156,247,254,.09), rgba(76,9,144,.14)); }
.side-cta-h { font: 700 14px var(--disp); margin: 0 0 8px; }
.side-cta-t { font-size: 13.5px; color: var(--mist); margin: 0 0 18px; line-height: 1.6; }

/* corps de l'article : le fragment CMS est rendu en thème sombre.
   Les couleurs de texte ne s'appliquent pas à l'intérieur des widgets
   ([class^="widget-"]) : conçus sur fond clair, ils gardent leur propre palette. */
.art-body { max-width: 880px; }
.art-body :where(h2) { font: 700 clamp(1.4rem,2.3vw,1.9rem)/1.25 var(--disp);
  letter-spacing: -.015em; margin: 52px 0 18px; scroll-margin-top: 96px; }
.art-body :where(h3) { font: 700 1.15rem/1.35 var(--disp); margin: 34px 0 12px;
  scroll-margin-top: 96px; }
.art-body :where(h3):where(:not([class^="widget-"] *)) { color: #fff; }
.art-body :where(h4) { font: 700 1rem/1.4 var(--disp); margin: 24px 0 10px; }
.art-body :where(p, li):where(:not([class^="widget-"] *)) { color: var(--mist); font-size: 17px; line-height: 1.78; }
.art-body :where(p) { margin: 0 0 16px; }
.art-body :where(strong):where(:not([class^="widget-"] *)) { color: #fff; font-weight: 700; }
.art-body :where(ul, ol) { margin: 0 0 18px; padding-left: 22px; }
.art-body :where(li) { margin-bottom: 8px; }
.art-body :where(a) { color: var(--c3); text-decoration: underline; text-underline-offset: 2px; }
.art-body :where(.table-scroll) { overflow-x: auto; border: 1px solid var(--hair);
  border-radius: 12px; margin: 24px 0; }
.art-body :where(table) { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.art-body :where(thead th):where(:not([class^="widget-"] *)) { background: var(--a700); color: #fff; text-align: left;
  padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--hair); }
.art-body :where(tbody td):where(:not([class^="widget-"] *)) { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--mist); vertical-align: top; }
.art-body :where(tbody tr:last-child td) { border-bottom: none; }
.art-body :where(blockquote) { background: rgba(156,247,254,.06); border: 1px solid var(--hair);
  border-left: 3px solid var(--c3); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 26px 0; }
.art-body :where(blockquote p) { margin: 0 0 8px; color: var(--mist); }
.art-body :where(blockquote p:last-child) { margin: 0; }
.art-body :where(blockquote strong:first-child) { display: block; color: var(--c3); margin-bottom: 8px; }
.art-body :where(details.faq-item) { border: 1px solid var(--hair); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden; background: rgba(255,255,255,.025); }
.art-body :where(details.faq-item summary) { cursor: pointer; list-style: none; padding: 16px 20px;
  font: 700 15px var(--body); color: #fff; display: flex; justify-content: space-between; gap: 14px; }
.art-body :where(details.faq-item summary)::-webkit-details-marker { display: none; }
.art-body :where(details.faq-item summary)::after { content: "+"; color: var(--c3); font-size: 20px; line-height: 1; }
.art-body :where(details.faq-item[open] summary)::after { content: "\2212"; }
.art-body :where(.faq-answer) { padding: 0 20px 18px; }
.art-body :where(.faq-answer p) { margin: 0 0 10px; }
/* les widgets interactifs gardent leur propre habillage */
.art-body :where([class^="widget-"]) { margin: 30px 0; overflow-x: auto; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 44px 0 0;
  padding-top: 24px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--mist2); }
.share a, .share button { font: 600 13px var(--body); color: var(--mist); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hair);
  background: rgba(255,255,255,.03); cursor: pointer; }
.share a:hover, .share button:hover { color: #fff; border-color: rgba(156,247,254,.45); }
.art-hist { margin: 20px 0 0; font-size: 12.5px; color: var(--mist2); }

.related { margin-top: 80px; padding-top: 44px; border-top: 1px solid var(--hair); }
.related h2 { font: 700 1.5rem var(--disp); margin: 0 0 24px; }
.related .cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .related .cards { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--hair); background: var(--a800); margin-top: 80px; }
.ft-in { max-width: 1280px; margin: 0 auto; padding: 56px 28px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .ft-in { grid-template-columns: 1fr 1fr; } }
.ft-tag { color: var(--mist2); font-size: 13.5px; margin: 16px 0 0; max-width: 34ch; }
.ft-h { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--c3); margin: 0 0 14px; }
.ft nav a { display: block; color: var(--mist); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.ft nav a:hover { color: #fff; }
.ft-copy { max-width: 1280px; margin: 0 auto; padding: 20px 28px 32px;
  border-top: 1px solid var(--hair); color: var(--mist2); font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  .card, .feat { transition: none; }
  html { scroll-behavior: auto; }
}


/* ---------- en-tete d'article avec image de mise en avant ---------- */
.art-hd.has-img { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px; align-items: center; max-width: none; }
.art-hd-img { margin: 0; }
.art-hd-img img { width: 100%; height: auto; display: block; border-radius: 18px;
  border: 1px solid var(--hair); background: var(--a800); }
@media (max-width: 900px) {
  .art-hd.has-img { grid-template-columns: 1fr; gap: 24px; }
  .art-hd-img { order: -1; }
}

/* ---------- vignettes ---------- */
.card.has-img { padding: 0; overflow: hidden; }
.card.has-img .card-cat { margin: 22px 22px 0; }
.card.has-img h3 { margin: 10px 22px; }
.card.has-img .card-d { margin: 0 22px 16px; }
.card.has-img .card-m { margin: 0 22px 22px; }
.card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--a800);
  border-bottom: 1px solid var(--hair); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s cubic-bezier(.16,1,.3,1); }
.card:hover .card-img img { transform: scale(1.04); }

.feat.has-img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 34px; align-items: center; padding: 30px; }
.feat-img { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--a800); border: 1px solid var(--hair); }
.feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 780px) {
  .feat.has-img { grid-template-columns: 1fr; gap: 22px; }
  .feat-img { order: -1; }
}

/* liste de reassurance du CTA lateral */
.side-cta-l { list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 7px; }
.side-cta-l li { font-size: 12.5px; color: var(--mist2); padding-left: 18px; position: relative; }
.side-cta-l li::before { content: "\2713"; position: absolute; left: 0; color: var(--c3); font-weight: 700; }

/* ---------- widgets interactifs des articles ----------
   Le CSS d'origine de chaque widget est injecte dans la page.
   On neutralise seulement ce qui depasse du conteneur. */
.art-body [class^="widget-"] { max-width: 100%; }
.art-body [class^="widget-"] img { max-width: 100%; height: auto; }
/* widgets dont le fond transparent laissait voir le thème sombre sous un texte foncé */
.art-body .widget-cta-saviezvous-typologie .saviez-typo { background: #eefdfe; }
.art-body .widget-tableau-comparatif .comparatif-table { background: #fff; }
/* défauts du CSS d'origine : sélecteur .schema-level3 inexistant, numéro cyan sur fond clair */
.art-body .widget-image-schema-certifications .level3 .schema-title { color: #fff; }
.art-body .widget-simulateur-exposition .sim-q-num { color: #4c0990; }
@media (prefers-reduced-motion: reduce) { .card:hover .card-img img { transform: none; } }
