/* WFX - Pages hubs /comparatif/, /conseils/, /avis/ ([wfx_hub], wfx-hub.php). Tokens --wfx-* (wfx-styles.php).
 * Chargé seulement sur ces trois archives. Les règles du thème sur h2/h3/ul/table sont surchargées par des sélecteurs .wfx-hub. */

.wfx-hub { max-width: 1120px; margin: 0 auto; width: 100%; font-family: Roboto, sans-serif; color: var(--wfx-text, #7A7A7A); }
.wfx-hub a { text-decoration: none !important; }
.wfx-hub a:focus-visible { outline: 3px solid rgba(46, 150, 196, .45); outline-offset: 2px; border-radius: 4px; }
.wfx-hub ul { list-style: none; margin: 0; padding: 0; }
.wfx-hub li { margin: 0; }

/* ---------- En-tête ---------- */
.wfx-hub__hero { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 0 30px; border-bottom: 1px solid var(--wfx-line, #E0E3E6); }
.wfx-hub__hero .wfx-type-badge { margin-bottom: 14px; }
.wfx-hub .wfx-hub__h1 { font: 700 clamp(28px, 4vw, 38px)/1.2 'Roboto Slab', serif !important; color: var(--wfx-ink, #54595F) !important; margin: 0 0 14px !important; max-width: 24ch; text-wrap: balance; }
.wfx-hub__intro { margin: 0 0 18px !important; max-width: 68ch; font-size: 17px !important; line-height: 1.65 !important; color: var(--wfx-text, #7A7A7A) !important; }
.wfx-hub__chiffres { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; font-size: 14px; color: var(--wfx-ink, #54595F); }
.wfx-hub__chiffres li + li::before { content: "·"; margin: 0 10px; color: #AEB5BB; }
.wfx-hub__chiffres strong { font: 700 15px/1 'Roboto Mono', monospace; color: var(--wfx-ink, #54595F); }
.wfx-hub__ancres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.wfx-hub__ancres a { font: 600 13.5px/1 Roboto, sans-serif; color: var(--wfx-cta, #2E96C4) !important; background: var(--wfx-blue-soft, #E8F4FB); border-radius: 8px; padding: 9px 13px; transition: background .15s; }
.wfx-hub__ancres a:hover { background: #D6ECF8; }

/* ---------- Sections ---------- */
.wfx-hub__sec { padding-top: 48px; scroll-margin-top: 100px; }
.wfx-hub__sec-tete { margin-bottom: 18px; }
.wfx-hub .wfx-hub__sec-tete h2 { font: 700 24px/1.3 'Roboto Slab', serif !important; color: var(--wfx-ink, #54595F) !important; margin: 0 0 6px !important; text-wrap: balance; }
.wfx-hub__sec-tete p { margin: 0 !important; max-width: 70ch; font-size: 15px !important; line-height: 1.6 !important; color: var(--wfx-text, #7A7A7A) !important; }

/* ---------- Tableau des meilleurs scores ---------- */
.wfx-hub__tw { overflow-x: auto; border: 1px solid var(--wfx-line, #E0E3E6); border-radius: 14px; background: #fff; }
.wfx-hub .wfx-hub__table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.wfx-hub .wfx-hub__table th, .wfx-hub .wfx-hub__table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--wfx-line, #E0E3E6); background: transparent; text-align: left; vertical-align: middle; line-height: 1.4; color: var(--wfx-text, #7A7A7A); }
.wfx-hub .wfx-hub__table tbody tr:last-child > * { border-bottom: 0; }
.wfx-hub .wfx-hub__table tbody tr:hover > * { background: #FAFBFB; }
.wfx-hub .wfx-hub__table thead th { background: var(--wfx-panel, #F4F6F7); font: 700 11.5px/1.3 Roboto, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--wfx-text, #7A7A7A); white-space: nowrap; }
.wfx-hub .wfx-hub__table .n { text-align: right; }
.wfx-hub .wfx-hub__table tbody th a { font-weight: 600; color: var(--wfx-ink, #54595F) !important; }
.wfx-hub .wfx-hub__table tbody th a:hover { color: var(--wfx-cta, #2E96C4) !important; }
.wfx-hub .wfx-hub__table .wfx-hub__n1 { color: var(--wfx-ink, #54595F); }
.wfx-hub__tmaj { white-space: nowrap; font-size: 13.5px; }
.wfx-hub__note { font: 700 16px/1 'Roboto Mono', monospace; color: var(--wfx-ink, #54595F); }
.wfx-hub__sur { font: 500 12px/1 'Roboto Mono', monospace; color: var(--wfx-text, #7A7A7A); margin-left: 1px; }
.wfx-hub__mob { display: none; }
.wfx-hub__note-t { margin: 10px 0 0 !important; font-size: 13px !important; line-height: 1.5 !important; color: var(--wfx-text, #7A7A7A) !important; }

/* ---------- Cartes ---------- */
.wfx-hub__cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.wfx-hub__cartes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wfx-hub__cartes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wfx-hub__carte { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 18px 16px; border: 1px solid var(--wfx-line, #E0E3E6); border-radius: 14px; background: #fff; transition: border-color .16s, box-shadow .16s, transform .16s; }
.wfx-hub__carte:hover { border-color: #CFD4D8; box-shadow: 0 8px 24px rgba(46, 150, 196, .12); transform: translateY(-2px); }
.wfx-hub__carte:focus-within { border-color: var(--wfx-cta, #2E96C4); }
.wfx-hub .wfx-hub__carte h3 { font: 700 17px/1.3 'Roboto Slab', serif !important; color: var(--wfx-ink, #54595F) !important; margin: 0 !important; text-wrap: balance; }
.wfx-hub .wfx-hub__carte h3 a { color: inherit !important; }
.wfx-hub .wfx-hub__carte h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; } /* toute la carte est cliquable, un seul lien */
.wfx-hub .wfx-hub__carte h3 a:focus-visible { outline: none; }
.wfx-hub__verdict { flex: 1 1 auto; margin: 0 !important; font-size: 14px !important; line-height: 1.55 !important; color: var(--wfx-text, #7A7A7A) !important; }
.wfx-hub__meta { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; line-height: 1.45; color: #8A9199; }
.wfx-hub__sous-lien { position: relative; z-index: 1; color: var(--wfx-cta, #2E96C4) !important; font-weight: 600; }
.wfx-hub__sous-lien:hover { text-decoration: underline !important; }
.wfx-hub__cta { margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--wfx-cta, #2E96C4); }
.wfx-hub__cta::after { content: " →"; }
.wfx-hub__eyebrow { margin: 0 !important; font: 700 10.5px/1.2 Roboto, sans-serif !important; letter-spacing: .08em; text-transform: uppercase; color: var(--wfx-cta, #2E96C4) !important; }
.wfx-hub__score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px; margin: 0 !important; }
.wfx-hub__score .wfx-hub__note { font-size: 26px; color: var(--wfx-ink, #54595F); }
.wfx-hub__score .wfx-hub__sur { font-size: 13px; }
.wfx-hub__score-l { margin-left: 10px; font-size: 12px; color: var(--wfx-text, #7A7A7A); }
.wfx-hub__carte--outil { background: var(--wfx-panel, #F4F6F7); }

/* ---------- Liste des conseils ---------- */
.wfx-hub__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.wfx-hub__liste li { min-width: 0; padding: 14px 0 15px; border-top: 1px solid var(--wfx-line, #E0E3E6); }
.wfx-hub__liste a { font: 600 16px/1.35 'Roboto Slab', serif; color: var(--wfx-ink, #54595F) !important; }
.wfx-hub__liste a:hover { color: var(--wfx-cta, #2E96C4) !important; }
.wfx-hub__liste p { margin: 5px 0 0 !important; font-size: 14px !important; line-height: 1.55 !important; color: var(--wfx-text, #7A7A7A) !important; }
.wfx-hub__voir { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--wfx-line, #E0E3E6); font-size: 14px !important; }
.wfx-hub__voir span { font-weight: 600; color: var(--wfx-ink, #54595F); margin-right: 2px; }
.wfx-hub__voir a { font: 600 13.5px/1 Roboto, sans-serif; color: var(--wfx-cta, #2E96C4) !important; background: var(--wfx-blue-soft, #E8F4FB); border-radius: 8px; padding: 8px 12px; }
.wfx-hub__voir a:hover { background: #D6ECF8; }

/* ---------- Méthode ---------- */
.wfx-hub__methode { margin-top: 56px; padding: 28px 28px 24px; border-radius: 14px; background: var(--wfx-panel, #F4F6F7); }
.wfx-hub__methode .wfx-hub__sec-tete { margin-bottom: 14px; }
.wfx-hub__points { display: flex; flex-direction: column; gap: 10px; max-width: 78ch; }
.wfx-hub__points li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.6; color: var(--wfx-ink, #54595F); }
.wfx-hub__points li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--wfx-cta, #2E96C4)
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.wfx-hub__liens { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0 !important; }
.wfx-hub__liens a { font: 600 14px/1.3 Roboto, sans-serif; color: var(--wfx-cta, #2E96C4) !important; }
.wfx-hub__liens a::after { content: " →"; }
.wfx-hub__liens a:hover { text-decoration: underline !important; }

/* ---------- Questions fréquentes ---------- */
.wfx-hub__faq { max-width: 820px; border-bottom: 1px solid var(--wfx-line, #E0E3E6); }
.wfx-hub__faq details { border-top: 1px solid var(--wfx-line, #E0E3E6); }
.wfx-hub__faq summary { position: relative; display: block; list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font: 600 16px/1.45 Roboto, sans-serif; color: var(--wfx-ink, #54595F); }
.wfx-hub__faq summary::-webkit-details-marker { display: none; }
.wfx-hub__faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font: 400 24px/1 Roboto, sans-serif; color: var(--wfx-cta, #2E96C4); }
.wfx-hub__faq details[open] summary::after { content: "−"; }
.wfx-hub__faq summary:hover { color: #1F6F95; }
.wfx-hub__faq summary:focus-visible { outline: 3px solid rgba(46, 150, 196, .45); outline-offset: 2px; border-radius: 4px; }
.wfx-hub__faq details p { margin: 0 0 18px !important; max-width: 72ch; font-size: 15px !important; line-height: 1.65 !important; color: var(--wfx-text, #7A7A7A) !important; }
.wfx-hub__faq details p a { color: var(--wfx-cta, #2E96C4) !important; font-weight: 600; }

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
	.wfx-hub__cartes--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile (en dernier) ---------- */
@media (max-width: 767px) {
	.wfx-hub__intro { font-size: 16px !important; }
	.wfx-hub__chiffres { column-gap: 16px; }
	.wfx-hub__chiffres li + li::before { display: none; }
	.wfx-hub__ancres { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
	.wfx-hub__ancres::-webkit-scrollbar { display: none; }
	.wfx-hub__ancres a { flex: none; white-space: nowrap; }
	.wfx-hub__sec { padding-top: 40px; scroll-margin-top: 80px; }
	.wfx-hub .wfx-hub__sec-tete h2 { font-size: 21px !important; }
	.wfx-hub__cartes--3, .wfx-hub__cartes--4 { grid-template-columns: 1fr; }
	.wfx-hub__liste { grid-template-columns: 1fr; }
	.wfx-hub__methode { padding: 22px 18px 20px; }

	/* Tableau en lignes empilées : catégorie, produit en tête, nombre de produits ; la note à droite. */
	.wfx-hub .wfx-hub__table thead { display: none; }
	.wfx-hub .wfx-hub__table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; padding: 12px 14px; border-bottom: 1px solid var(--wfx-line, #E0E3E6); }
	.wfx-hub .wfx-hub__table tbody tr:last-child { border-bottom: 0; }
	.wfx-hub .wfx-hub__table tbody tr > * { display: block; padding: 0; border: 0; text-align: left; }
	.wfx-hub .wfx-hub__table tbody th { grid-column: 1; font-size: 15px; }
	.wfx-hub .wfx-hub__table .wfx-hub__n1 { grid-column: 1; font-size: 13.5px; }
	.wfx-hub .wfx-hub__table .wfx-hub__tnb { grid-column: 1; font-size: 12.5px; color: #8A9199; text-align: left; }
	.wfx-hub .wfx-hub__table .wfx-hub__tnote { grid-column: 2; grid-row: 1 / span 3; align-self: center; text-align: right; }
	.wfx-hub .wfx-hub__table .wfx-hub__tmaj { display: none; }
	.wfx-hub__desk { display: none; }
	.wfx-hub__mob { display: inline; }
}
